Whamcloud - gitweb
b34f34b37a8297fc8f99fd3933deda9dee72c95c
[tools/e2fsprogs.git] / 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="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 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 DEBUGFS_CMT
688 IMAGER_CMT
689 RESIZER_CMT
690 FSCK_PROG
691 FSCK_MAN
692 E2INITRD_PROG
693 E2INITRD_MAN
694 PKG_CONFIG
695 DEVMAPPER_REQ
696 DEVMAPPER_PC_LIBS
697 DEVMAPPER_LIBS
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
700 UUIDD_CMT
701 GETTEXT_PACKAGE
702 PACKAGE
703 VERSION
704 SET_MAKE
705 INSTALL_PROGRAM
706 INSTALL_SCRIPT
707 INSTALL_DATA
708 MKINSTALLDIRS
709 USE_NLS
710 MSGFMT
711 GMSGFMT
712 XGETTEXT
713 MSGMERGE
714 RANLIB
715 ALLOCA
716 GLIBC21
717 HAVE_POSIX_PRINTF
718 HAVE_ASPRINTF
719 HAVE_SNPRINTF
720 HAVE_WPRINTF
721 LIBICONV
722 LTLIBICONV
723 INTLBISON
724 BUILD_INCLUDED_LIBINTL
725 USE_INCLUDED_LIBINTL
726 CATOBJEXT
727 DATADIRNAME
728 INSTOBJEXT
729 GENCAT
730 INTLOBJS
731 INTL_LIBTOOL_SUFFIX_PREFIX
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 BINARY_TYPE
737 LN
738 LN_S
739 MV
740 CP
741 RM
742 CHMOD
743 AWK
744 SED
745 PERL
746 LDCONFIG
747 AR
748 STRIP
749 MAKEINFO
750 BUILD_CC
751 SIZEOF_SHORT
752 SIZEOF_INT
753 SIZEOF_LONG
754 SIZEOF_LONG_LONG
755 SOCKET_LIB
756 DLOPEN_LIB
757 UNI_DIFF_OPTS
758 LINUX_CMT
759 CYGWIN_CMT
760 UNIX_CMT
761 root_prefix
762 root_bindir
763 root_sbindir
764 root_libdir
765 root_sysconfdir
766 LDFLAG_STATIC
767 SS_DIR
768 ET_DIR
769 DO_TEST_SUITE
770 INTL_FLAGS
771 BUILD_CFLAGS
772 BUILD_LDFLAGS
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files='MCONFIG
776 MAKEFILE_ELF
777 MAKEFILE_BSDLIB
778 MAKEFILE_PROFILE
779 MAKEFILE_CHECKER
780 MAKEFILE_LIBRARY
781 ASM_TYPES_HEADER'
782       ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP
791 PKG_CONFIG'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844   # If the previous option needs an argument, assign it.
845   if test -n "$ac_prev"; then
846     eval $ac_prev=\$ac_option
847     ac_prev=
848     continue
849   fi
850
851   case $ac_option in
852   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853   *)    ac_optarg=yes ;;
854   esac
855
856   # Accept the important Cygnus configure options, so we can diagnose typos.
857
858   case $ac_dashdash$ac_option in
859   --)
860     ac_dashdash=yes ;;
861
862   -bindir | --bindir | --bindi | --bind | --bin | --bi)
863     ac_prev=bindir ;;
864   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865     bindir=$ac_optarg ;;
866
867   -build | --build | --buil | --bui | --bu)
868     ac_prev=build_alias ;;
869   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870     build_alias=$ac_optarg ;;
871
872   -cache-file | --cache-file | --cache-fil | --cache-fi \
873   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874     ac_prev=cache_file ;;
875   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877     cache_file=$ac_optarg ;;
878
879   --config-cache | -C)
880     cache_file=config.cache ;;
881
882   -datadir | --datadir | --datadi | --datad)
883     ac_prev=datadir ;;
884   -datadir=* | --datadir=* | --datadi=* | --datad=*)
885     datadir=$ac_optarg ;;
886
887   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888   | --dataroo | --dataro | --datar)
889     ac_prev=datarootdir ;;
890   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892     datarootdir=$ac_optarg ;;
893
894   -disable-* | --disable-*)
895     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896     # Reject names that are not valid shell variable names.
897     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
898       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899    { (exit 1); exit 1; }; }
900     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
901     eval enable_$ac_feature=no ;;
902
903   -docdir | --docdir | --docdi | --doc | --do)
904     ac_prev=docdir ;;
905   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906     docdir=$ac_optarg ;;
907
908   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909     ac_prev=dvidir ;;
910   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911     dvidir=$ac_optarg ;;
912
913   -enable-* | --enable-*)
914     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
917       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918    { (exit 1); exit 1; }; }
919     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
920     eval enable_$ac_feature=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1126     eval with_$ac_package=no ;;
1127
1128   --x)
1129     # Obsolete; use --with-x.
1130     with_x=yes ;;
1131
1132   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133   | --x-incl | --x-inc | --x-in | --x-i)
1134     ac_prev=x_includes ;;
1135   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137     x_includes=$ac_optarg ;;
1138
1139   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141     ac_prev=x_libraries ;;
1142   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144     x_libraries=$ac_optarg ;;
1145
1146   -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 Try \`$0 --help' for more information." >&2
1148    { (exit 1); exit 1; }; }
1149     ;;
1150
1151   *=*)
1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156    { (exit 1); exit 1; }; }
1157     eval $ac_envvar=\$ac_optarg
1158     export $ac_envvar ;;
1159
1160   *)
1161     # FIXME: should be removed in autoconf 3.0.
1162     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166     ;;
1167
1168   esac
1169 done
1170
1171 if test -n "$ac_prev"; then
1172   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173   { echo "$as_me: error: missing argument to $ac_option" >&2
1174    { (exit 1); exit 1; }; }
1175 fi
1176
1177 # Be sure to have absolute directory names.
1178 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179                 datadir sysconfdir sharedstatedir localstatedir includedir \
1180                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181                 libdir localedir mandir
1182 do
1183   eval ac_val=\$$ac_var
1184   case $ac_val in
1185     [\\/$]* | ?:[\\/]* )  continue;;
1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187   esac
1188   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189    { (exit 1); exit 1; }; }
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201   if test "x$build_alias" = x; then
1202     cross_compiling=maybe
1203     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204     If a cross compiler is detected then cross compile mode will be used." >&2
1205   elif test "x$build_alias" != "x$host_alias"; then
1206     cross_compiling=yes
1207   fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219   { echo "$as_me: error: Working directory cannot be determined" >&2
1220    { (exit 1); exit 1; }; }
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   { echo "$as_me: error: pwd does not report name of working directory" >&2
1223    { (exit 1); exit 1; }; }
1224
1225
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228   ac_srcdir_defaulted=yes
1229   # Try the directory containing this script, then the parent directory.
1230   ac_confdir=`$as_dirname -- "$0" ||
1231 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232          X"$0" : 'X\(//\)[^/]' \| \
1233          X"$0" : 'X\(//\)$' \| \
1234          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1235 echo X"$0" |
1236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)[^/].*/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\/\)$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\).*/{
1249             s//\1/
1250             q
1251           }
1252           s/.*/./; q'`
1253   srcdir=$ac_confdir
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255     srcdir=..
1256   fi
1257 else
1258   ac_srcdir_defaulted=no
1259 fi
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1268    { (exit 1); exit 1; }; }
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures this package to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR           user executables [EPREFIX/bin]
1329   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR       program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR           object code libraries [EPREFIX/lib]
1335   --includedir=DIR       C header files [PREFIX/include]
1336   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR          info documentation [DATAROOTDIR/info]
1340   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR           man documentation [DATAROOTDIR/man]
1342   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1343   --htmldir=DIR          html documentation [DOCDIR]
1344   --dvidir=DIR           dvi documentation [DOCDIR]
1345   --pdfdir=DIR           pdf documentation [DOCDIR]
1346   --psdir=DIR            ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 System types:
1352   --build=BUILD     configure for building on BUILD [guessed]
1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358
1359   cat <<\_ACEOF
1360
1361 Optional Features:
1362   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364   --enable-maintainer-mode enable makefile rules useful for maintainers
1365   --enable-compression    enable EXPERIMENTAL compression support
1366   --enable-htree          enable EXPERIMENTAL htree directory support
1367   --enable-elf-shlibs     select ELF shared libraries
1368   --enable-bsd-shlibs     select BSD shared libraries
1369   --enable-profile        build profiling libraries
1370   --enable-checker        build checker libraries
1371   --enable-jbd-debug      enable journal debugging
1372   --enable-blkid-debug    enable blkid debugging
1373   --enable-testio-debug   enable the use of the test I/O manager for debugging
1374   --disable-debugfs       disable support of debugfs program
1375   --disable-imager        disable support of e2image program
1376   --disable-resizer       disable support of e2resize program
1377   --enable-fsck           build fsck wrapper program
1378   --enable-e2initrd-helper build e2initrd-helper program
1379   --enable-blkid-devmapper  build with device-mapper support
1380   --disable-tls           disable use of thread local support
1381   --disable-uuidd         disable building the uuid daemon
1382   --disable-nls           do not use Native Language Support
1383   --disable-rpath         do not hardcode runtime library paths
1384
1385 Optional Packages:
1386   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388   --with-diet-libc        use diet libc
1389   --with-cc=COMPILER      select compiler to use
1390   --with-linker=LINKER    select linker to use
1391   --with-ccopts=CCOPTS    select compiler command line options
1392   --with-ldopts=LDOPTS    select linker command line options
1393   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1394   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1395   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1396   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1397   --with-included-gettext use the GNU gettext library included here
1398   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1399   --without-libintl-prefix     don't search for libintl in includedir and libdir
1400
1401 Some influential environment variables:
1402   CC          C compiler command
1403   CFLAGS      C compiler flags
1404   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405               nonstandard directory <lib dir>
1406   LIBS        libraries to pass to the linker, e.g. -l<library>
1407   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408               you have headers in a nonstandard directory <include dir>
1409   CPP         C preprocessor
1410   PKG_CONFIG  path to pkg-config utility
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 _ACEOF
1416 ac_status=$?
1417 fi
1418
1419 if test "$ac_init_help" = "recursive"; then
1420   # If there are subdirs, report their specific --help.
1421   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422     test -d "$ac_dir" || continue
1423     ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429   # A ".." for each directory in $ac_dir_suffix.
1430   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431   case $ac_top_builddir_sub in
1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434   esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442   .)  # We are building in place.
1443     ac_srcdir=.
1444     ac_top_srcdir=$ac_top_builddir_sub
1445     ac_abs_top_srcdir=$ac_pwd ;;
1446   [\\/]* | ?:[\\/]* )  # Absolute name.
1447     ac_srcdir=$srcdir$ac_dir_suffix;
1448     ac_top_srcdir=$srcdir
1449     ac_abs_top_srcdir=$srcdir ;;
1450   *) # Relative name.
1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457     cd "$ac_dir" || { ac_status=$?; continue; }
1458     # Check for guested configure.
1459     if test -f "$ac_srcdir/configure.gnu"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462     elif test -f "$ac_srcdir/configure"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure" --help=recursive
1465     else
1466       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467     fi || ac_status=$?
1468     cd "$ac_pwd" || { ac_status=$?; break; }
1469   done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474   cat <<\_ACEOF
1475 configure
1476 generated by GNU Autoconf 2.61
1477
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483   exit
1484 fi
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1488
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.61.  Invocation command line was
1491
1492   $ $0 $@
1493
1494 _ACEOF
1495 exec 5>>config.log
1496 {
1497 cat <<_ASUNAME
1498 ## --------- ##
1499 ## Platform. ##
1500 ## --------- ##
1501
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1510
1511 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1512 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1515 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1516 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1517 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1518
1519 _ASUNAME
1520
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   echo "PATH: $as_dir"
1527 done
1528 IFS=$as_save_IFS
1529
1530 } >&5
1531
1532 cat >&5 <<_ACEOF
1533
1534
1535 ## ----------- ##
1536 ## Core tests. ##
1537 ## ----------- ##
1538
1539 _ACEOF
1540
1541
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1547 ac_configure_args=
1548 ac_configure_args0=
1549 ac_configure_args1=
1550 ac_must_keep_next=false
1551 for ac_pass in 1 2
1552 do
1553   for ac_arg
1554   do
1555     case $ac_arg in
1556     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558     | -silent | --silent | --silen | --sile | --sil)
1559       continue ;;
1560     *\'*)
1561       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562     esac
1563     case $ac_pass in
1564     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565     2)
1566       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567       if test $ac_must_keep_next = true; then
1568         ac_must_keep_next=false # Got value, back to normal.
1569       else
1570         case $ac_arg in
1571           *=* | --config-cache | -C | -disable-* | --disable-* \
1572           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574           | -with-* | --with-* | -without-* | --without-* | --x)
1575             case "$ac_configure_args0 " in
1576               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577             esac
1578             ;;
1579           -* ) ac_must_keep_next=true ;;
1580         esac
1581       fi
1582       ac_configure_args="$ac_configure_args '$ac_arg'"
1583       ;;
1584     esac
1585   done
1586 done
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log.  We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596   # Save into config.log some information that might help in debugging.
1597   {
1598     echo
1599
1600     cat <<\_ASBOX
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1604 _ASBOX
1605     echo
1606     # The following way of writing the cache mishandles newlines in values,
1607 (
1608   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609     eval ac_val=\$$ac_var
1610     case $ac_val in #(
1611     *${as_nl}*)
1612       case $ac_var in #(
1613       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1615       esac
1616       case $ac_var in #(
1617       _ | IFS | as_nl) ;; #(
1618       *) $as_unset $ac_var ;;
1619       esac ;;
1620     esac
1621   done
1622   (set) 2>&1 |
1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624     *${as_nl}ac_space=\ *)
1625       sed -n \
1626         "s/'\''/'\''\\\\'\'''\''/g;
1627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628       ;; #(
1629     *)
1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631       ;;
1632     esac |
1633     sort
1634 )
1635     echo
1636
1637     cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642     echo
1643     for ac_var in $ac_subst_vars
1644     do
1645       eval ac_val=\$$ac_var
1646       case $ac_val in
1647       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648       esac
1649       echo "$ac_var='\''$ac_val'\''"
1650     done | sort
1651     echo
1652
1653     if test -n "$ac_subst_files"; then
1654       cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659       echo
1660       for ac_var in $ac_subst_files
1661       do
1662         eval ac_val=\$$ac_var
1663         case $ac_val in
1664         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665         esac
1666         echo "$ac_var='\''$ac_val'\''"
1667       done | sort
1668       echo
1669     fi
1670
1671     if test -s confdefs.h; then
1672       cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677       echo
1678       cat confdefs.h
1679       echo
1680     fi
1681     test "$ac_signal" != 0 &&
1682       echo "$as_me: caught signal $ac_signal"
1683     echo "$as_me: exit $exit_status"
1684   } >&5
1685   rm -f core *.core core.conftest.* &&
1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687     exit $exit_status
1688 ' 0
1689 for ac_signal in 1 2 13 15; do
1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1693
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1696
1697 # Predefined preprocessor variables.
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1722
1723
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727   set x "$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE; then
1729   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1730 else
1731   set x "$ac_default_prefix/share/config.site" \
1732         "$ac_default_prefix/etc/config.site"
1733 fi
1734 shift
1735 for ac_site_file
1736 do
1737   if test -r "$ac_site_file"; then
1738     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740     sed 's/^/| /' "$ac_site_file" >&5
1741     . "$ac_site_file"
1742   fi
1743 done
1744
1745 if test -r "$cache_file"; then
1746   # Some versions of bash will fail to source /dev/null (special
1747   # files actually), so we avoid doing that.
1748   if test -f "$cache_file"; then
1749     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1751     case $cache_file in
1752       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753       *)                      . "./$cache_file";;
1754     esac
1755   fi
1756 else
1757   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1759   >$cache_file
1760 fi
1761
1762 # Check that the precious variables saved in the cache have kept the same
1763 # value.
1764 ac_cache_corrupted=false
1765 for ac_var in $ac_precious_vars; do
1766   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767   eval ac_new_set=\$ac_env_${ac_var}_set
1768   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769   eval ac_new_val=\$ac_env_${ac_var}_value
1770   case $ac_old_set,$ac_new_set in
1771     set,)
1772       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774       ac_cache_corrupted=: ;;
1775     ,set)
1776       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778       ac_cache_corrupted=: ;;
1779     ,);;
1780     *)
1781       if test "x$ac_old_val" != "x$ac_new_val"; then
1782         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1785 echo "$as_me:   former value:  $ac_old_val" >&2;}
1786         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1787 echo "$as_me:   current value: $ac_new_val" >&2;}
1788         ac_cache_corrupted=:
1789       fi;;
1790   esac
1791   # Pass precious variables to config.status.
1792   if test "$ac_new_set" = set; then
1793     case $ac_new_val in
1794     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795     *) ac_arg=$ac_var=$ac_new_val ;;
1796     esac
1797     case " $ac_configure_args " in
1798       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1799       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1800     esac
1801   fi
1802 done
1803 if $ac_cache_corrupted; then
1804   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808    { (exit 1); exit 1; }; }
1809 fi
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832
1833
1834
1835 ac_aux_dir=
1836 for ac_dir in config "$srcdir"/config; do
1837   if test -f "$ac_dir/install-sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install-sh -c"
1840     break
1841   elif test -f "$ac_dir/install.sh"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/install.sh -c"
1844     break
1845   elif test -f "$ac_dir/shtool"; then
1846     ac_aux_dir=$ac_dir
1847     ac_install_sh="$ac_aux_dir/shtool install -c"
1848     break
1849   fi
1850 done
1851 if test -z "$ac_aux_dir"; then
1852   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1854    { (exit 1); exit 1; }; }
1855 fi
1856
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1864
1865
1866 MCONFIG=./MCONFIG
1867
1868 BINARY_TYPE=bin
1869 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1870         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1871 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1872         | tr \" " "`
1873 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1874 MONTH=`echo $DATE | awk -F- '{print $2}'`
1875 YEAR=`echo $DATE | awk -F- '{print $3}'`
1876
1877 if expr $YEAR ">" 1900 > /dev/null ; then
1878         E2FSPROGS_YEAR=$YEAR
1879 elif expr $YEAR ">" 90 >/dev/null ; then
1880         E2FSPROGS_YEAR=19$YEAR
1881 else
1882         E2FSPROGS_YEAR=20$YEAR
1883 fi
1884
1885 case $MONTH in
1886 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1887 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1888 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1889 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1890 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1891 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1892 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1893 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1894 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1895 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1896 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1897 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1898 *)      echo "Unknown month $MONTH??" ;;
1899 esac
1900
1901 base_ver=`echo $E2FSPROGS_VERSION | \
1902                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1903
1904 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1905
1906 case $E2FSPROGS_VERSION in
1907 *-WIP|pre-*)
1908         pre_vers=`echo $base_ver 0.01 - p | dc`
1909         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1910         ;;
1911 *)
1912         E2FSPROGS_PKGVER="$base_ver"
1913         ;;
1914 esac
1915
1916 unset DATE MONTH YEAR base_ver pre_vers date_spec
1917 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1919
1920
1921
1922
1923
1924 # Make sure we can run config.sub.
1925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1928    { (exit 1); exit 1; }; }
1929
1930 { echo "$as_me:$LINENO: checking build system type" >&5
1931 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_build+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   ac_build_alias=$build_alias
1936 test "x$ac_build_alias" = x &&
1937   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938 test "x$ac_build_alias" = x &&
1939   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941    { (exit 1); exit 1; }; }
1942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1945    { (exit 1); exit 1; }; }
1946
1947 fi
1948 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949 echo "${ECHO_T}$ac_cv_build" >&6; }
1950 case $ac_cv_build in
1951 *-*-*) ;;
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953 echo "$as_me: error: invalid value of canonical build" >&2;}
1954    { (exit 1); exit 1; }; };;
1955 esac
1956 build=$ac_cv_build
1957 ac_save_IFS=$IFS; IFS='-'
1958 set x $ac_cv_build
1959 shift
1960 build_cpu=$1
1961 build_vendor=$2
1962 shift; shift
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1965 build_os=$*
1966 IFS=$ac_save_IFS
1967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1968
1969
1970 { echo "$as_me:$LINENO: checking host system type" >&5
1971 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_host+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test "x$host_alias" = x; then
1976   ac_cv_host=$ac_cv_build
1977 else
1978   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
1983
1984 fi
1985 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986 echo "${ECHO_T}$ac_cv_host" >&6; }
1987 case $ac_cv_host in
1988 *-*-*) ;;
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990 echo "$as_me: error: invalid value of canonical host" >&2;}
1991    { (exit 1); exit 1; }; };;
1992 esac
1993 host=$ac_cv_host
1994 ac_save_IFS=$IFS; IFS='-'
1995 set x $ac_cv_host
1996 shift
1997 host_cpu=$1
1998 host_vendor=$2
1999 shift; shift
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2002 host_os=$*
2003 IFS=$ac_save_IFS
2004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2005
2006
2007
2008 # Check whether --with-diet-libc was given.
2009 if test "${with_diet_libc+set}" = set; then
2010   withval=$with_diet_libc; CC="diet cc -nostdinc"
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2013 fi
2014
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2019 CC=$withval
2020 else
2021   if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2024 fi
2025 export CC
2026
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056 IFS=$as_save_IFS
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070 fi
2071 if test -z "$ac_cv_prog_CC"; then
2072   ac_ct_CC=$CC
2073   # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$ac_ct_CC"; then
2081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090     ac_cv_prog_ac_ct_CC="gcc"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096 IFS=$as_save_IFS
2097
2098 fi
2099 fi
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 else
2105   { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2107 fi
2108
2109   if test "x$ac_ct_CC" = x; then
2110     CC=""
2111   else
2112     case $cross_compiling:$ac_tool_warned in
2113 yes:)
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet.  If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet.  If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2121 esac
2122     CC=$ac_ct_CC
2123   fi
2124 else
2125   CC="$ac_cv_prog_CC"
2126 fi
2127
2128 if test -z "$CC"; then
2129           if test -n "$ac_tool_prefix"; then
2130     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147     ac_cv_prog_CC="${ac_tool_prefix}cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167   fi
2168 fi
2169 if test -z "$CC"; then
2170   # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$CC"; then
2178   ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180   ac_prog_rejected=no
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189        ac_prog_rejected=yes
2190        continue
2191      fi
2192     ac_cv_prog_CC="cc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 if test $ac_prog_rejected = yes; then
2201   # We found a bogon in the path, so make sure we never use it.
2202   set dummy $ac_cv_prog_CC
2203   shift
2204   if test $# != 0; then
2205     # We chose a different compiler from the bogus one.
2206     # However, it has the same basename, so the bogon will be chosen
2207     # first if we set CC to just the basename; use the full file name.
2208     shift
2209     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2210   fi
2211 fi
2212 fi
2213 fi
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216   { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221 fi
2222
2223
2224 fi
2225 if test -z "$CC"; then
2226   if test -n "$ac_tool_prefix"; then
2227   for ac_prog in cl.exe
2228   do
2229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$CC"; then
2237   ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258   { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2260 else
2261   { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 fi
2264
2265
2266     test -n "$CC" && break
2267   done
2268 fi
2269 if test -z "$CC"; then
2270   ac_ct_CC=$CC
2271   for ac_prog in cl.exe
2272 do
2273   # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$ac_ct_CC"; then
2281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     ac_cv_prog_ac_ct_CC="$ac_prog"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 else
2305   { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310   test -n "$ac_ct_CC" && break
2311 done
2312
2313   if test "x$ac_ct_CC" = x; then
2314     CC=""
2315   else
2316     case $cross_compiling:$ac_tool_warned in
2317 yes:)
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet.  If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet.  If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2325 esac
2326     CC=$ac_ct_CC
2327   fi
2328 fi
2329
2330 fi
2331
2332
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2343 case "(($ac_try" in
2344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345   *) ac_try_echo=$ac_try;;
2346 esac
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348   (eval "$ac_compiler --version >&5") 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_compiler -v >&5") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368   (eval "$ac_compiler -V >&5") 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379
2380 int
2381 main ()
2382 {
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2392 # of exeext.
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 #
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort.  b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 #
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions.  Remove them first so a
2404 # subsequent execution test works.
2405 ac_rmfiles=
2406 for ac_file in $ac_files
2407 do
2408   case $ac_file in
2409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411   esac
2412 done
2413 rm -f $ac_rmfiles
2414
2415 if { (ac_try="$ac_link_default"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421   (eval "$ac_link_default") 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; then
2425   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2429 # Autoconf.
2430 for ac_file in $ac_files ''
2431 do
2432   test -f "$ac_file" || continue
2433   case $ac_file in
2434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2435         ;;
2436     [ab].out )
2437         # We found the default executable, but exeext='' is most
2438         # certainly right.
2439         break;;
2440     *.* )
2441         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442         then :; else
2443            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444         fi
2445         # We set ac_cv_exeext here because the later test for it is not
2446         # safe: cross compilers may not add the suffix if given an `-o'
2447         # argument, so we may need to know it at that point already.
2448         # Even if this section looks crufty: it has the advantage of
2449         # actually working.
2450         break;;
2451     * )
2452         break;;
2453   esac
2454 done
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456
2457 else
2458   ac_file=''
2459 fi
2460
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471    { (exit 77); exit 77; }; }
2472 fi
2473
2474 ac_exeext=$ac_cv_exeext
2475
2476 # Check that the compiler produces executables we can run.  If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483   if { ac_try='./$ac_file'
2484   { (case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_try") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493     cross_compiling=no
2494   else
2495     if test "$cross_compiling" = maybe; then
2496         cross_compiling=yes
2497     else
2498         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505     fi
2506   fi
2507 fi
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2510
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run.  If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2519
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_link") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 # `rm'.
2536 for ac_file in conftest.exe conftest conftest.*; do
2537   test -f "$ac_file" || continue
2538   case $ac_file in
2539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541           break;;
2542     * ) break;;
2543   esac
2544 done
2545 else
2546   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2559 ac_exeext=$EXEEXT
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2582 case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_compile") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; then
2591   for ac_file in conftest.o conftest.obj conftest.*; do
2592   test -f "$ac_file" || continue;
2593   case $ac_file in
2594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596        break;;
2597   esac
2598 done
2599 else
2600   echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607    { (exit 1); exit 1; }; }
2608 fi
2609
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 fi
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2615 ac_objext=$OBJEXT
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631 #ifndef __GNUC__
2632        choke me
2633 #endif
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646   (eval "$ac_compile") 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } && {
2653          test -z "$ac_c_werror_flag" ||
2654          test ! -s conftest.err
2655        } && test -s conftest.$ac_objext; then
2656   ac_compiler_gnu=yes
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661         ac_compiler_gnu=no
2662 fi
2663
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2666
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   ac_save_c_werror_flag=$ac_c_werror_flag
2679    ac_c_werror_flag=yes
2680    ac_cv_prog_cc_g=no
2681    CFLAGS="-g"
2682    cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688
2689 int
2690 main ()
2691 {
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } && {
2711          test -z "$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        } && test -s conftest.$ac_objext; then
2714   ac_cv_prog_cc_g=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719         CFLAGS=""
2720       cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726
2727 int
2728 main ()
2729 {
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compile") 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && {
2749          test -z "$ac_c_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         ac_c_werror_flag=$ac_save_c_werror_flag
2758          CFLAGS="-g"
2759          cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compile") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } && {
2788          test -z "$ac_c_werror_flag" ||
2789          test ! -s conftest.err
2790        } && test -s conftest.$ac_objext; then
2791   ac_cv_prog_cc_g=yes
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806    ac_c_werror_flag=$ac_save_c_werror_flag
2807 fi
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811   CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813   if test "$GCC" = yes; then
2814     CFLAGS="-g -O2"
2815   else
2816     CFLAGS="-g"
2817   fi
2818 else
2819   if test "$GCC" = yes; then
2820     CFLAGS="-O2"
2821   else
2822     CFLAGS=
2823   fi
2824 fi
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   ac_cv_prog_cc_c89=no
2831 ac_save_CC=$CC
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <stdarg.h>
2839 #include <stdio.h>
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2846      char **p;
2847      int i;
2848 {
2849   return p[i];
2850 }
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2852 {
2853   char *s;
2854   va_list v;
2855   va_start (v,p);
2856   s = g (p, va_arg (v,int));
2857   va_end (v);
2858   return s;
2859 }
2860
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2862    function prototypes and stuff, but not '\xHH' hex character constants.
2863    These don't provoke an error unfortunately, instead are silently treated
2864    as 'x'.  The following induces an error, until -std is added to get
2865    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2866    array size at least.  It's necessary to write '\x00'==0 to get something
2867    that's true only with -std.  */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871    inside strings and character constants.  */
2872 #define FOO(x) 'x'
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879 int argc;
2880 char **argv;
2881 int
2882 main ()
2883 {
2884 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compile") 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } && {
2907          test -z "$ac_c_werror_flag" ||
2908          test ! -s conftest.err
2909        } && test -s conftest.$ac_objext; then
2910   ac_cv_prog_cc_c89=$ac_arg
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915
2916 fi
2917
2918 rm -f core conftest.err conftest.$ac_objext
2919   test "x$ac_cv_prog_cc_c89" != "xno" && break
2920 done
2921 rm -f conftest.$ac_ext
2922 CC=$ac_save_CC
2923
2924 fi
2925 # AC_CACHE_VAL
2926 case "x$ac_cv_prog_cc_c89" in
2927   x)
2928     { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2930   xno)
2931     { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2933   *)
2934     CC="$CC $ac_cv_prog_cc_c89"
2935     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2937 esac
2938
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2955   CPP=
2956 fi
2957 if test -z "$CPP"; then
2958   if test "${ac_cv_prog_CPP+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961       # Double quotes because CPP needs to be expanded
2962     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963     do
2964       ac_preproc_ok=false
2965 for ac_c_preproc_warn_flag in '' yes
2966 do
2967   # Use a header file that comes with gcc, so configuring glibc
2968   # with a fresh cross-compiler works.
2969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970   # <limits.h> exists even on freestanding compilers.
2971   # On the NeXT, cc -E runs the code through the compiler's parser,
2972   # not just through cpp. "Syntax error" is here to catch this case.
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #ifdef __STDC__
2980 # include <limits.h>
2981 #else
2982 # include <assert.h>
2983 #endif
2984                      Syntax error
2985 _ACEOF
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } >/dev/null && {
2999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        }; then
3002   :
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Broken: fails on valid input.
3008 continue
3009 fi
3010
3011 rm -f conftest.err conftest.$ac_ext
3012
3013   # OK, works on sane cases.  Now check whether nonexistent headers
3014   # can be detected and how.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <ac_nonexistent.h>
3022 _ACEOF
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null && {
3036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037          test ! -s conftest.err
3038        }; then
3039   # Broken: success on invalid input.
3040 continue
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Passes both tests.
3046 ac_preproc_ok=:
3047 break
3048 fi
3049
3050 rm -f conftest.err conftest.$ac_ext
3051
3052 done
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3056   break
3057 fi
3058
3059     done
3060     ac_cv_prog_CPP=$CPP
3061
3062 fi
3063   CPP=$ac_cv_prog_CPP
3064 else
3065   ac_cv_prog_CPP=$CPP
3066 fi
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3069 ac_preproc_ok=false
3070 for ac_c_preproc_warn_flag in '' yes
3071 do
3072   # Use a header file that comes with gcc, so configuring glibc
3073   # with a fresh cross-compiler works.
3074   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075   # <limits.h> exists even on freestanding compilers.
3076   # On the NeXT, cc -E runs the code through the compiler's parser,
3077   # not just through cpp. "Syntax error" is here to catch this case.
3078   cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089                      Syntax error
3090 _ACEOF
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } >/dev/null && {
3104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        }; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112   # Broken: fails on valid input.
3113 continue
3114 fi
3115
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether nonexistent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null && {
3141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        }; then
3144   # Broken: success on invalid input.
3145 continue
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150   # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154
3155 rm -f conftest.err conftest.$ac_ext
3156
3157 done
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3161   :
3162 else
3163   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167    { (exit 1); exit 1; }; }
3168 fi
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3181 LD=$withval
3182 else
3183   if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3186 fi
3187 export LD
3188
3189
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194 CFLAGS=$withval
3195 fi
3196
3197
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216   for ac_prog in grep ggrep; do
3217   for ac_exec_ext in '' $ac_executable_extensions; do
3218     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220     # Check for GNU ac_path_GREP and select it if it is found.
3221   # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3223 *GNU*)
3224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225 *)
3226   ac_count=0
3227   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228   while :
3229   do
3230     cat "conftest.in" "conftest.in" >"conftest.tmp"
3231     mv "conftest.tmp" "conftest.in"
3232     cp "conftest.in" "conftest.nl"
3233     echo 'GREP' >> "conftest.nl"
3234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236     ac_count=`expr $ac_count + 1`
3237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238       # Best one so far, save it but keep looking for a better one
3239       ac_cv_path_GREP="$ac_path_GREP"
3240       ac_path_GREP_max=$ac_count
3241     fi
3242     # 10*(2^10) chars as input seems more than enough
3243     test $ac_count -gt 10 && break
3244   done
3245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 esac
3247
3248
3249     $ac_path_GREP_found && break 3
3250   done
3251 done
3252
3253 done
3254 IFS=$as_save_IFS
3255
3256
3257 fi
3258
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263    { (exit 1); exit 1; }; }
3264 fi
3265
3266 else
3267   ac_cv_path_GREP=$GREP
3268 fi
3269
3270
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274  GREP="$ac_cv_path_GREP"
3275
3276
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283    then ac_cv_path_EGREP="$GREP -E"
3284    else
3285      # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298   for ac_prog in egrep; do
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302     # Check for GNU ac_path_EGREP and select it if it is found.
3303   # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3305 *GNU*)
3306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3307 *)
3308   ac_count=0
3309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3310   while :
3311   do
3312     cat "conftest.in" "conftest.in" >"conftest.tmp"
3313     mv "conftest.tmp" "conftest.in"
3314     cp "conftest.in" "conftest.nl"
3315     echo 'EGREP' >> "conftest.nl"
3316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318     ac_count=`expr $ac_count + 1`
3319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320       # Best one so far, save it but keep looking for a better one
3321       ac_cv_path_EGREP="$ac_path_EGREP"
3322       ac_path_EGREP_max=$ac_count
3323     fi
3324     # 10*(2^10) chars as input seems more than enough
3325     test $ac_count -gt 10 && break
3326   done
3327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328 esac
3329
3330
3331     $ac_path_EGREP_found && break 3
3332   done
3333 done
3334
3335 done
3336 IFS=$as_save_IFS
3337
3338
3339 fi
3340
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345    { (exit 1); exit 1; }; }
3346 fi
3347
3348 else
3349   ac_cv_path_EGREP=$EGREP
3350 fi
3351
3352
3353    fi
3354 fi
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357  EGREP="$ac_cv_path_EGREP"
3358
3359
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_compile") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } && {
3398          test -z "$ac_c_werror_flag" ||
3399          test ! -s conftest.err
3400        } && test -s conftest.$ac_objext; then
3401   ac_cv_header_stdc=yes
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406         ac_cv_header_stdc=no
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <string.h>
3420
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423   $EGREP "memchr" >/dev/null 2>&1; then
3424   :
3425 else
3426   ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <stdlib.h>
3441
3442 _ACEOF
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444   $EGREP "free" >/dev/null 2>&1; then
3445   :
3446 else
3447   ac_cv_header_stdc=no
3448 fi
3449 rm -f conftest*
3450
3451 fi
3452
3453 if test $ac_cv_header_stdc = yes; then
3454   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455   if test "$cross_compiling" = yes; then
3456   :
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ctype.h>
3465 #include <stdlib.h>
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 #else
3470 # define ISLOWER(c) \
3471                    (('a' <= (c) && (c) <= 'i') \
3472                      || ('j' <= (c) && (c) <= 'r') \
3473                      || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475 #endif
3476
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478 int
3479 main ()
3480 {
3481   int i;
3482   for (i = 0; i < 256; i++)
3483     if (XOR (islower (i), ISLOWER (i))
3484         || toupper (i) != TOUPPER (i))
3485       return 2;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_link") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500   { (case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_try") 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; }; then
3509   :
3510 else
3511   echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 ( exit $ac_status )
3516 ac_cv_header_stdc=no
3517 fi
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3519 fi
3520
3521
3522 fi
3523 fi
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3527
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3530 _ACEOF
3531
3532 fi
3533
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545                   inttypes.h stdint.h unistd.h
3546 do
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 $ac_includes_default
3560
3561 #include <$ac_header>
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_compile") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } && {
3577          test -z "$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        } && test -s conftest.$ac_objext; then
3580   eval "$as_ac_Header=yes"
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585         eval "$as_ac_Header=no"
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591                { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594   cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596 _ACEOF
3597
3598 fi
3599
3600 done
3601
3602
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 fi
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3611 else
3612   # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_compile") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } && {
3638          test -z "$ac_c_werror_flag" ||
3639          test ! -s conftest.err
3640        } && test -s conftest.$ac_objext; then
3641   ac_header_compiler=yes
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         ac_header_compiler=no
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3652
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #include <linux/fs.h>
3663 _ACEOF
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null && {
3677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        }; then
3680   ac_header_preproc=yes
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685   ac_header_preproc=no
3686 fi
3687
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3691
3692 # So?  What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694   yes:no: )
3695     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699     ac_header_preproc=yes
3700     ;;
3701   no:yes:* )
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3714
3715     ;;
3716 esac
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_cv_header_linux_fs_h=$ac_header_preproc
3723 fi
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3726
3727 fi
3728 if test $ac_cv_header_linux_fs_h = yes; then
3729   linux_headers=yes
3730 else
3731   linux_headers=no
3732 fi
3733
3734
3735 if test "$linux_headers" != yes; then
3736   LINUX_INCLUDE='-I$(top_builddir)/include'
3737 fi
3738
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3742 then
3743     case "$host_cpu" in
3744         alpha)          addcflags="-mieee" ;;
3745     esac
3746 fi
3747 if test "x$addcflags" != x
3748 then
3749     { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751     CFLAGS="$addcflags $CFLAGS"
3752 else
3753     { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3755 fi
3756 LIB_EXT=.a
3757 STATIC_LIB_EXT=.a
3758 PROFILE_LIB_EXT=.a
3759
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3764 LDFLAGS=$withval
3765 else
3766   LDFLAGS=
3767 fi
3768
3769
3770 # Check whether --with-root-prefix was given.
3771 if test "${with_root_prefix+set}" = set; then
3772   withval=$with_root_prefix; root_prefix=$withval
3773 else
3774   root_prefix=NONE
3775 fi
3776 # Check whether --enable-maintainer-mode was given.
3777 if test "${enable_maintainer_mode+set}" = set; then
3778   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3779 then
3780         MAINTAINER_CMT=#
3781         echo "Disabling maintainer mode"
3782 else
3783         MAINTAINER_CMT=
3784         echo "Enabling maintainer mode"
3785 fi
3786
3787 else
3788   MAINTAINER_CMT=#
3789 echo "Disabling maintainer mode by default"
3790
3791 fi
3792
3793
3794 # Check whether --enable-compression was given.
3795 if test "${enable_compression+set}" = set; then
3796   enableval=$enable_compression; if test "$enableval" = "no"
3797 then
3798         echo "Disabling compression support"
3799 else
3800         cat >>confdefs.h <<\_ACEOF
3801 #define ENABLE_COMPRESSION 1
3802 _ACEOF
3803
3804         echo "Enabling compression support"
3805         echo "WARNING: Compression support is experimental"
3806 fi
3807
3808 else
3809   echo "Disabling compression support by default"
3810
3811 fi
3812
3813 # Check whether --enable-htree was given.
3814 if test "${enable_htree+set}" = set; then
3815   enableval=$enable_htree; if test "$enableval" = "no"
3816 then
3817         HTREE_CMT=#
3818         echo "Disabling htree directory support"
3819 else
3820         HTREE_CMT=
3821         cat >>confdefs.h <<\_ACEOF
3822 #define ENABLE_HTREE 1
3823 _ACEOF
3824
3825         echo "Enabling htree directory support"
3826 fi
3827
3828 else
3829   HTREE_CMT=
3830 cat >>confdefs.h <<\_ACEOF
3831 #define ENABLE_HTREE 1
3832 _ACEOF
3833
3834 echo "Enabling htree directory support by default"
3835
3836 fi
3837
3838
3839 E2_PKG_CONFIG_STATIC=--static
3840 # Check whether --enable-elf-shlibs was given.
3841 if test "${enable_elf_shlibs+set}" = set; then
3842   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3843 then
3844         ELF_CMT=#
3845         MAKEFILE_ELF=/dev/null
3846         echo "Disabling ELF shared libraries"
3847 else
3848         E2_PKG_CONFIG_STATIC=
3849         ELF_CMT=
3850         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3851         case "$host_os" in
3852         solaris2.*)
3853                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3854         ;;
3855         esac
3856         BINARY_TYPE=elfbin
3857         LIB_EXT=.so
3858         echo "Enabling ELF shared libraries"
3859 fi
3860
3861 else
3862   MAKEFILE_ELF=/dev/null
3863 ELF_CMT=#
3864 echo "Disabling ELF shared libraries by default"
3865
3866 fi
3867
3868
3869
3870 # Check whether --enable-bsd-shlibs was given.
3871 if test "${enable_bsd_shlibs+set}" = set; then
3872   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3873 then
3874         BSDLIB_CMT=#
3875         MAKEFILE_BSDLIB=/dev/null
3876         echo "Disabling BSD shared libraries"
3877 else
3878         E2_PKG_CONFIG_STATIC=
3879         BSDLIB_CMT=
3880         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3881         LIB_EXT=.so
3882         case "$host_os" in
3883         darwin*)
3884                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3885                 LIB_EXT=.dylib
3886         ;;
3887         esac
3888         echo "Enabling BSD shared libraries"
3889 fi
3890
3891 else
3892   MAKEFILE_BSDLIB=/dev/null
3893 BSDLIB_CMT=#
3894 echo "Disabling BSD shared libraries by default"
3895
3896 fi
3897
3898
3899
3900 # Check whether --enable-profile was given.
3901 if test "${enable_profile+set}" = set; then
3902   enableval=$enable_profile; if test "$enableval" = "no"
3903 then
3904         PROFILE_CMT=#
3905         MAKEFILE_PROFILE=/dev/null
3906         echo "Disabling profiling libraries"
3907 else
3908         PROFILE_CMT=
3909         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910         PROFILED_LIB_EXT=_p.a
3911         echo "Building profiling libraries"
3912 fi
3913
3914 else
3915   PROFILE_CMT=#
3916 MAKEFILE_PROFILE=/dev/null
3917 echo "Disabling profiling libraries by default"
3918
3919 fi
3920
3921
3922
3923 # Check whether --enable-checker was given.
3924 if test "${enable_checker+set}" = set; then
3925   enableval=$enable_checker; if test "$enableval" = "no"
3926 then
3927         CHECKER_CMT=#
3928         MAKEFILE_CHECKER=/dev/null
3929         echo "Disabling checker libraries"
3930 else
3931         CHECKER_CMT=
3932         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933         echo "Building checker libraries"
3934 fi
3935
3936 else
3937   CHECKER_CMT=#
3938 MAKEFILE_CHECKER=/dev/null
3939 echo "Disabling checker libraries by default"
3940
3941 fi
3942
3943
3944
3945
3946
3947
3948 # Check whether --enable-jbd-debug was given.
3949 if test "${enable_jbd_debug+set}" = set; then
3950   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3951 then
3952         echo "Disabling journal debugging"
3953 else
3954         cat >>confdefs.h <<\_ACEOF
3955 #define CONFIG_JBD_DEBUG 1
3956 _ACEOF
3957
3958         echo "Enabling journal debugging"
3959 fi
3960
3961 else
3962   echo "Disabling journal debugging by default"
3963
3964 fi
3965
3966 # Check whether --enable-blkid-debug was given.
3967 if test "${enable_blkid_debug+set}" = set; then
3968   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3969 then
3970         echo "Disabling blkid debugging"
3971 else
3972         cat >>confdefs.h <<\_ACEOF
3973 #define CONFIG_BLKID_DEBUG 1
3974 _ACEOF
3975
3976         echo "Enabling blkid debugging"
3977 fi
3978
3979 else
3980   echo "Disabling blkid debugging by default"
3981
3982 fi
3983
3984 # Check whether --enable-testio-debug was given.
3985 if test "${enable_testio_debug+set}" = set; then
3986   enableval=$enable_testio_debug; if test "$enableval" = "no"
3987 then
3988         echo "Disabling testio debugging"
3989 else
3990         cat >>confdefs.h <<\_ACEOF
3991 #define CONFIG_TESTIO_DEBUG 1
3992 _ACEOF
3993
3994         echo "Enabling testio debugging"
3995 fi
3996
3997 else
3998   echo "Disabling testio debugging by default"
3999
4000 fi
4001
4002 # Check whether --enable-debugfs was given.
4003 if test "${enable_debugfs+set}" = set; then
4004   enableval=$enable_debugfs; if test "$enableval" = "no"
4005 then
4006         echo "Disabling debugfs support"
4007         DEBUGFS_CMT="#"
4008 else
4009         DEBUGFS_CMT=
4010         echo "Enabling debugfs support"
4011 fi
4012
4013 else
4014   echo "Enabling debugfs support by default"
4015 DEBUGFS_CMT=
4016
4017 fi
4018
4019
4020 # Check whether --enable-imager was given.
4021 if test "${enable_imager+set}" = set; then
4022   enableval=$enable_imager; if test "$enableval" = "no"
4023 then
4024         echo "Disabling e2image support"
4025         IMAGER_CMT="#"
4026 else
4027         IMAGER_CMT=
4028         echo "Enabling e2image support"
4029 fi
4030
4031 else
4032   echo "Enabling e2image support by default"
4033 IMAGER_CMT=
4034
4035 fi
4036
4037
4038 # Check whether --enable-resizer was given.
4039 if test "${enable_resizer+set}" = set; then
4040   enableval=$enable_resizer; if test "$enableval" = "no"
4041 then
4042         echo "Disabling e2resize support"
4043         RESIZER_CMT="#"
4044 else
4045         RESIZER_CMT=
4046         echo "Enabling e2resize support"
4047 fi
4048
4049 else
4050   echo "Enabling e2resize support by default"
4051 RESIZER_CMT=
4052
4053 fi
4054
4055
4056 # Check whether --enable-fsck was given.
4057 if test "${enable_fsck+set}" = set; then
4058   enableval=$enable_fsck; if test "$enableval" = "no"
4059 then
4060         FSCK_PROG='' FSCK_MAN=''
4061         echo "Not building fsck wrapper"
4062 else
4063         FSCK_PROG=fsck FSCK_MAN=fsck.8
4064         echo "Building fsck wrapper"
4065 fi
4066
4067 else
4068   case "$host_os" in
4069   gnu*)
4070     FSCK_PROG='' FSCK_MAN=''
4071     echo "Not building fsck wrapper by default"
4072     ;;
4073   *)
4074     FSCK_PROG=fsck FSCK_MAN=fsck.8
4075     echo "Building fsck wrapper by default"
4076 esac
4077
4078 fi
4079
4080
4081
4082 # Check whether --enable-e2initrd-helper was given.
4083 if test "${enable_e2initrd_helper+set}" = set; then
4084   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4085 then
4086         E2INITRD_PROG='' E2INITRD_MAN=''
4087         echo "Not building e2initrd helper"
4088 else
4089         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090         echo "Building e2initrd helper"
4091 fi
4092
4093 else
4094   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095 echo "Building e2initrd helper by default"
4096
4097 fi
4098
4099
4100
4101 STATIC_BLKID_DEVMAPPER_LIBS=''
4102 # Check whether --enable-blkid-devmapper was given.
4103 if test "${enable_blkid_devmapper+set}" = set; then
4104   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4105 then
4106         echo "Disabling device-mapper support"
4107         DEVMAPPER_REQ=''
4108         DEVMAPPER_LIBS=''
4109         STATIC_DEVMAPPER_LIBS=''
4110 else
4111         cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_DEVMAPPER 1
4113 _ACEOF
4114
4115         echo "Enabling device-mapper support"
4116
4117
4118
4119 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120         if test -n "$ac_tool_prefix"; then
4121   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   case $PKG_CONFIG in
4129   [\\/]* | ?:[\\/]*)
4130   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4131   ;;
4132   *)
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_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
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   ;;
4149 esac
4150 fi
4151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152 if test -n "$PKG_CONFIG"; then
4153   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4155 else
4156   { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160
4161 fi
4162 if test -z "$ac_cv_path_PKG_CONFIG"; then
4163   ac_pt_PKG_CONFIG=$PKG_CONFIG
4164   # Extract the first word of "pkg-config", so it can be a program name with args.
4165 set dummy pkg-config; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   case $ac_pt_PKG_CONFIG in
4172   [\\/]* | ?:[\\/]*)
4173   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4174   ;;
4175   *)
4176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189 IFS=$as_save_IFS
4190
4191   ;;
4192 esac
4193 fi
4194 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195 if test -n "$ac_pt_PKG_CONFIG"; then
4196   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4198 else
4199   { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4201 fi
4202
4203   if test "x$ac_pt_PKG_CONFIG" = x; then
4204     PKG_CONFIG=""
4205   else
4206     case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet.  If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet.  If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4215 esac
4216     PKG_CONFIG=$ac_pt_PKG_CONFIG
4217   fi
4218 else
4219   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4220 fi
4221
4222 fi
4223 if test -n "$PKG_CONFIG"; then
4224         _pkg_min_version=0.9.0
4225         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228                 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4230         else
4231                 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233                 PKG_CONFIG=""
4234         fi
4235
4236 fi
4237
4238         if test -z "$PKG_CONFIG"; then
4239                 echo "pkg-config not installed; please install it."
4240                 exit 1;
4241         fi
4242
4243         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256
4257 /* Override any GCC internal prototype to avoid an error.
4258    Use char because int might match the return type of a GCC
4259    builtin and then its argument prototype would still apply.  */
4260 #ifdef __cplusplus
4261 extern "C"
4262 #endif
4263 char dm_tree_create ();
4264 int
4265 main ()
4266 {
4267 return dm_tree_create ();
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_link") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } && {
4286          test -z "$ac_c_werror_flag" ||
4287          test ! -s conftest.err
4288        } && test -s conftest$ac_exeext &&
4289        $as_test_x conftest$ac_exeext; then
4290   ac_cv_lib_devmapper_dm_tree_create=yes
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         ac_cv_lib_devmapper_dm_tree_create=no
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299       conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4301 fi
4302 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307                  DEVMAPPER_REQ="devmapper";
4308                  DEVMAPPER_PC_LIBS="-ldevmapper"
4309 else
4310   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311 echo "$as_me: error: device-mapper library not found" >&2;}
4312    { (exit 1); exit 1; }; }
4313 fi
4314
4315         # work around stupid devmapper.pc bug in Debian
4316         case "$STATIC_DEVMAPPER_LIBS" in
4317         *pthread*)
4318             ;;
4319         *)
4320             echo "Working around Debian bug #390243..."
4321             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4322             ;;
4323         esac
4324         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327         fi
4328 fi
4329
4330 else
4331   echo "Disabling device-mapper support by default"
4332
4333 fi
4334
4335
4336
4337
4338
4339
4340 # Check whether --enable-tls was given.
4341 if test "${enable_tls+set}" = set; then
4342   enableval=$enable_tls; if test "$enableval" = "no"
4343 then
4344         try_tls=""
4345         echo "Disabling thread local support"
4346 else
4347         try_tls="yes"
4348         echo "Enabling thread local support"
4349 fi
4350
4351 else
4352   try_tls="yes"
4353 echo "Try using thread local support by default"
4354
4355 fi
4356
4357 if test "$try_tls" = "yes"
4358 then
4359
4360   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362   if test "${ac_cv_tls+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365
4366     ax_tls_keywords="__thread __declspec(thread) none"
4367     for ax_tls_keyword in $ax_tls_keywords; do
4368        case $ax_tls_keyword in
4369           none) ac_cv_tls=none ; break ;;
4370           *)
4371              cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 #include <stdlib.h>
4378                  static void
4379                  foo(void) {
4380                  static  $ax_tls_keyword  int bar;
4381                  exit(1);
4382                  }
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4393 case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398   (eval "$ac_compile") 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && {
4405          test -z "$ac_c_werror_flag" ||
4406          test ! -s conftest.err
4407        } && test -s conftest.$ac_objext; then
4408   ac_cv_tls=$ax_tls_keyword ; break
4409 else
4410   echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413         ac_cv_tls=none
4414
4415 fi
4416
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418           esac
4419     done
4420
4421 fi
4422
4423
4424   if test "$ac_cv_tls" != "none"; then
4425
4426 cat >>confdefs.h <<_ACEOF
4427 #define TLS $ac_cv_tls
4428 _ACEOF
4429
4430   fi
4431   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432 echo "${ECHO_T}$ac_cv_tls" >&6; }
4433
4434 fi
4435 # Check whether --enable-uuidd was given.
4436 if test "${enable_uuidd+set}" = set; then
4437   enableval=$enable_uuidd; if test "$enableval" = "no"
4438 then
4439         echo "Not building uuidd"
4440         UUIDD_CMT="#"
4441 else
4442         cat >>confdefs.h <<\_ACEOF
4443 #define USE_UUIDD 1
4444 _ACEOF
4445
4446         UUIDD_CMT=""
4447         echo "Building uuidd"
4448 fi
4449
4450 else
4451   cat >>confdefs.h <<\_ACEOF
4452 #define USE_UUIDD 1
4453 _ACEOF
4454
4455 UUIDD_CMT=""
4456 echo "Building uuidd by default"
4457
4458 fi
4459
4460
4461 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4462
4463 GETTEXT_PACKAGE=e2fsprogs
4464 PACKAGE=e2fsprogs
4465 VERSION="$E2FSPROGS_VERSION"
4466 VERSION=0.14.1
4467 cat >>confdefs.h <<_ACEOF
4468 #define PACKAGE "$PACKAGE"
4469 _ACEOF
4470
4471 cat >>confdefs.h <<_ACEOF
4472 #define VERSION "$VERSION"
4473 _ACEOF
4474
4475
4476
4477
4478
4479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   cat >conftest.make <<\_ACEOF
4486 SHELL = /bin/sh
4487 all:
4488         @echo '@@@%%%=$(MAKE)=@@@%%%'
4489 _ACEOF
4490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4492   *@@@%%%=?*=@@@%%%*)
4493     eval ac_cv_prog_make_${ac_make}_set=yes;;
4494   *)
4495     eval ac_cv_prog_make_${ac_make}_set=no;;
4496 esac
4497 rm -f conftest.make
4498 fi
4499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500   { echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6; }
4502   SET_MAKE=
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506   SET_MAKE="MAKE=${MAKE-make}"
4507 fi
4508
4509 # Find a good install program.  We prefer a C program (faster),
4510 # so one script is as good as another.  But avoid the broken or
4511 # incompatible versions:
4512 # SysV /etc/install, /usr/sbin/install
4513 # SunOS /usr/etc/install
4514 # IRIX /sbin/install
4515 # AIX /bin/install
4516 # AmigaOS /C/install, which installs bootblocks on floppy discs
4517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4520 # OS/2's system install, which has a completely different semantic
4521 # ./install, which can be erroneously created by make from ./install.sh.
4522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4524 if test -z "$INSTALL"; then
4525 if test "${ac_cv_path_install+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   # Account for people who put trailing slashes in PATH elements.
4534 case $as_dir/ in
4535   ./ | .// | /cC/* | \
4536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4538   /usr/ucb/* ) ;;
4539   *)
4540     # OSF1 and SCO ODT 3.0 have their own names for install.
4541     # Don't use installbsd from OSF since it installs stuff as root
4542     # by default.
4543     for ac_prog in ginstall scoinst install; do
4544       for ac_exec_ext in '' $ac_executable_extensions; do
4545         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4546           if test $ac_prog = install &&
4547             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4548             # AIX install.  It has an incompatible calling convention.
4549             :
4550           elif test $ac_prog = install &&
4551             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552             # program-specific install script used by HP pwplus--don't use.
4553             :
4554           else
4555             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4556             break 3
4557           fi
4558         fi
4559       done
4560     done
4561     ;;
4562 esac
4563 done
4564 IFS=$as_save_IFS
4565
4566
4567 fi
4568   if test "${ac_cv_path_install+set}" = set; then
4569     INSTALL=$ac_cv_path_install
4570   else
4571     # As a last resort, use the slow shell script.  Don't cache a
4572     # value for INSTALL within a source directory, because that will
4573     # break other packages using the cache if that directory is
4574     # removed, or if the value is a relative name.
4575     INSTALL=$ac_install_sh
4576   fi
4577 fi
4578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4579 echo "${ECHO_T}$INSTALL" >&6; }
4580
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4586
4587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4588
4589
4590         MKINSTALLDIRS=
4591   if test -n "$ac_aux_dir"; then
4592     case "$ac_aux_dir" in
4593       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4595     esac
4596   fi
4597   if test -z "$MKINSTALLDIRS"; then
4598     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4599   fi
4600
4601
4602
4603   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605     # Check whether --enable-nls was given.
4606 if test "${enable_nls+set}" = set; then
4607   enableval=$enable_nls; USE_NLS=$enableval
4608 else
4609   USE_NLS=yes
4610 fi
4611
4612   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613 echo "${ECHO_T}$USE_NLS" >&6; }
4614
4615
4616
4617
4618
4619
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623   echo "#! /bin/sh" >conf$$.sh
4624   echo  "exit 0"   >>conf$$.sh
4625   chmod +x conf$$.sh
4626   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627     PATH_SEPARATOR=';'
4628   else
4629     PATH_SEPARATOR=:
4630   fi
4631   rm -f conf$$.sh
4632 fi
4633
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4637 #! /bin/sh
4638 exit 0
4639 _ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642   ac_executable_p="test -x"
4643 else
4644   ac_executable_p="test -f"
4645 fi
4646 rm -f conf$$.file
4647
4648 # Extract the first word of "msgfmt", so it can be a program name with args.
4649 set dummy msgfmt; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGFMT+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case "$MSGFMT" in
4656   [\\/]* | ?:[\\/]*)
4657     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4658     ;;
4659   *)
4660     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661     for ac_dir in $PATH; do
4662       IFS="$ac_save_IFS"
4663       test -z "$ac_dir" && ac_dir=.
4664       for ac_exec_ext in '' $ac_executable_extensions; do
4665         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4669             break 2
4670           fi
4671         fi
4672       done
4673     done
4674     IFS="$ac_save_IFS"
4675   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4676     ;;
4677 esac
4678 fi
4679 MSGFMT="$ac_cv_path_MSGFMT"
4680 if test "$MSGFMT" != ":"; then
4681   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682 echo "${ECHO_T}$MSGFMT" >&6; }
4683 else
4684   { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 fi
4687
4688   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689 set dummy gmsgfmt; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   case $GMSGFMT in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705   for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4716   ;;
4717 esac
4718 fi
4719 GMSGFMT=$ac_cv_path_GMSGFMT
4720 if test -n "$GMSGFMT"; then
4721   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722 echo "${ECHO_T}$GMSGFMT" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727
4728
4729
4730
4731 # Prepare PATH_SEPARATOR.
4732 # The user is always right.
4733 if test "${PATH_SEPARATOR+set}" != set; then
4734   echo "#! /bin/sh" >conf$$.sh
4735   echo  "exit 0"   >>conf$$.sh
4736   chmod +x conf$$.sh
4737   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4738     PATH_SEPARATOR=';'
4739   else
4740     PATH_SEPARATOR=:
4741   fi
4742   rm -f conf$$.sh
4743 fi
4744
4745 # Find out how to test for executable files. Don't use a zero-byte file,
4746 # as systems may use methods other than mode bits to determine executability.
4747 cat >conf$$.file <<_ASEOF
4748 #! /bin/sh
4749 exit 0
4750 _ASEOF
4751 chmod +x conf$$.file
4752 if test -x conf$$.file >/dev/null 2>&1; then
4753   ac_executable_p="test -x"
4754 else
4755   ac_executable_p="test -f"
4756 fi
4757 rm -f conf$$.file
4758
4759 # Extract the first word of "xgettext", so it can be a program name with args.
4760 set dummy xgettext; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   case "$XGETTEXT" in
4767   [\\/]* | ?:[\\/]*)
4768     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4769     ;;
4770   *)
4771     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772     for ac_dir in $PATH; do
4773       IFS="$ac_save_IFS"
4774       test -z "$ac_dir" && ac_dir=.
4775       for ac_exec_ext in '' $ac_executable_extensions; do
4776         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778      (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
4779             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4780             break 2
4781           fi
4782         fi
4783       done
4784     done
4785     IFS="$ac_save_IFS"
4786   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4787     ;;
4788 esac
4789 fi
4790 XGETTEXT="$ac_cv_path_XGETTEXT"
4791 if test "$XGETTEXT" != ":"; then
4792   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793 echo "${ECHO_T}$XGETTEXT" >&6; }
4794 else
4795   { echo "$as_me:$LINENO: result: no" >&5
4796 echo "${ECHO_T}no" >&6; }
4797 fi
4798
4799     rm -f messages.po
4800
4801
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805   echo "#! /bin/sh" >conf$$.sh
4806   echo  "exit 0"   >>conf$$.sh
4807   chmod +x conf$$.sh
4808   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4809     PATH_SEPARATOR=';'
4810   else
4811     PATH_SEPARATOR=:
4812   fi
4813   rm -f conf$$.sh
4814 fi
4815
4816 # Find out how to test for executable files. Don't use a zero-byte file,
4817 # as systems may use methods other than mode bits to determine executability.
4818 cat >conf$$.file <<_ASEOF
4819 #! /bin/sh
4820 exit 0
4821 _ASEOF
4822 chmod +x conf$$.file
4823 if test -x conf$$.file >/dev/null 2>&1; then
4824   ac_executable_p="test -x"
4825 else
4826   ac_executable_p="test -f"
4827 fi
4828 rm -f conf$$.file
4829
4830 # Extract the first word of "msgmerge", so it can be a program name with args.
4831 set dummy msgmerge; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   case "$MSGMERGE" in
4838   [\\/]* | ?:[\\/]*)
4839     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4840     ;;
4841   *)
4842     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843     for ac_dir in $PATH; do
4844       IFS="$ac_save_IFS"
4845       test -z "$ac_dir" && ac_dir=.
4846       for ac_exec_ext in '' $ac_executable_extensions; do
4847         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4850             break 2
4851           fi
4852         fi
4853       done
4854     done
4855     IFS="$ac_save_IFS"
4856   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4857     ;;
4858 esac
4859 fi
4860 MSGMERGE="$ac_cv_path_MSGMERGE"
4861 if test "$MSGMERGE" != ":"; then
4862   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863 echo "${ECHO_T}$MSGMERGE" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869
4870       if test "$GMSGFMT" != ":"; then
4871             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4873       : ;
4874     else
4875       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4876       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4878       GMSGFMT=":"
4879     fi
4880   fi
4881
4882       if test "$XGETTEXT" != ":"; then
4883             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884        (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
4885       : ;
4886     else
4887       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4889       XGETTEXT=":"
4890     fi
4891         rm -f messages.po
4892   fi
4893
4894   ac_config_commands="$ac_config_commands default-1"
4895
4896
4897 if test -n "$ac_tool_prefix"; then
4898   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_RANLIB+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   if test -n "$RANLIB"; then
4906   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 RANLIB=$ac_cv_prog_RANLIB
4926 if test -n "$RANLIB"; then
4927   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928 echo "${ECHO_T}$RANLIB" >&6; }
4929 else
4930   { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4932 fi
4933
4934
4935 fi
4936 if test -z "$ac_cv_prog_RANLIB"; then
4937   ac_ct_RANLIB=$RANLIB
4938   # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$ac_ct_RANLIB"; then
4946   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_prog_ac_ct_RANLIB="ranlib"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966 if test -n "$ac_ct_RANLIB"; then
4967   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4969 else
4970   { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4972 fi
4973
4974   if test "x$ac_ct_RANLIB" = x; then
4975     RANLIB=":"
4976   else
4977     case $cross_compiling:$ac_tool_warned in
4978 yes:)
4979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet.  If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&5
4982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983 whose name does not start with the host triplet.  If you think this
4984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985 ac_tool_warned=yes ;;
4986 esac
4987     RANLIB=$ac_ct_RANLIB
4988   fi
4989 else
4990   RANLIB="$ac_cv_prog_RANLIB"
4991 fi
4992
4993
4994         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4996 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lcposix  $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007
5008 /* Override any GCC internal prototype to avoid an error.
5009    Use char because int might match the return type of a GCC
5010    builtin and then its argument prototype would still apply.  */
5011 #ifdef __cplusplus
5012 extern "C"
5013 #endif
5014 char strerror ();
5015 int
5016 main ()
5017 {
5018 return strerror ();
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext conftest$ac_exeext
5024 if { (ac_try="$ac_link"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030   (eval "$ac_link") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } && {
5037          test -z "$ac_c_werror_flag" ||
5038          test ! -s conftest.err
5039        } && test -s conftest$ac_exeext &&
5040        $as_test_x conftest$ac_exeext; then
5041   ac_cv_lib_cposix_strerror=yes
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046         ac_cv_lib_cposix_strerror=no
5047 fi
5048
5049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5050       conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5052 fi
5053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5055 if test $ac_cv_lib_cposix_strerror = yes; then
5056   LIBS="$LIBS -lcposix"
5057 fi
5058
5059
5060
5061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5063 if test "${ac_cv_c_const+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072
5073 int
5074 main ()
5075 {
5076 /* FIXME: Include the comments suggested by Paul. */
5077 #ifndef __cplusplus
5078   /* Ultrix mips cc rejects this.  */
5079   typedef int charset[2];
5080   const charset cs;
5081   /* SunOS 4.1.1 cc rejects this.  */
5082   char const *const *pcpcc;
5083   char **ppc;
5084   /* NEC SVR4.0.2 mips cc rejects this.  */
5085   struct point {int x, y;};
5086   static struct point const zero = {0,0};
5087   /* AIX XL C 1.02.0.0 rejects this.
5088      It does not let you subtract one const X* pointer from another in
5089      an arm of an if-expression whose if-part is not a constant
5090      expression */
5091   const char *g = "string";
5092   pcpcc = &g + (g ? g-g : 0);
5093   /* HPUX 7.0 cc rejects these. */
5094   ++pcpcc;
5095   ppc = (char**) pcpcc;
5096   pcpcc = (char const *const *) ppc;
5097   { /* SCO 3.2v4 cc rejects this.  */
5098     char *t;
5099     char const *s = 0 ? (char *) 0 : (char const *) 0;
5100
5101     *t++ = 0;
5102     if (s) return 0;
5103   }
5104   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5105     int x[] = {25, 17};
5106     const int *foo = &x[0];
5107     ++foo;
5108   }
5109   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110     typedef const int *iptr;
5111     iptr p = 0;
5112     ++p;
5113   }
5114   { /* AIX XL C 1.02.0.0 rejects this saying
5115        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116     struct s { int j; const int *ap[3]; };
5117     struct s *b; b->j = 5;
5118   }
5119   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5120     const int foo = 10;
5121     if (!foo) return 0;
5122   }
5123   return !cs[0] && !zero.x;
5124 #endif
5125
5126   ;
5127   return 0;
5128 }
5129 _ACEOF
5130 rm -f conftest.$ac_objext
5131 if { (ac_try="$ac_compile"
5132 case "(($ac_try" in
5133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134   *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137   (eval "$ac_compile") 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } && {
5144          test -z "$ac_c_werror_flag" ||
5145          test ! -s conftest.err
5146        } && test -s conftest.$ac_objext; then
5147   ac_cv_c_const=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152         ac_cv_c_const=no
5153 fi
5154
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5159 if test $ac_cv_c_const = no; then
5160
5161 cat >>confdefs.h <<\_ACEOF
5162 #define const
5163 _ACEOF
5164
5165 fi
5166
5167
5168   { echo "$as_me:$LINENO: checking for signed" >&5
5169 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5170 if test "${bh_cv_c_signed+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179
5180 int
5181 main ()
5182 {
5183 signed char x;
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_compile") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } && {
5202          test -z "$ac_c_werror_flag" ||
5203          test ! -s conftest.err
5204        } && test -s conftest.$ac_objext; then
5205   bh_cv_c_signed=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210         bh_cv_c_signed=no
5211 fi
5212
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5217   if test $bh_cv_c_signed = no; then
5218
5219 cat >>confdefs.h <<\_ACEOF
5220 #define signed
5221 _ACEOF
5222
5223   fi
5224
5225 { echo "$as_me:$LINENO: checking for inline" >&5
5226 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5227 if test "${ac_cv_c_inline+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   ac_cv_c_inline=no
5231 for ac_kw in inline __inline__ __inline; do
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #ifndef __cplusplus
5239 typedef int foo_t;
5240 static $ac_kw foo_t static_foo () {return 0; }
5241 $ac_kw foo_t foo () {return 0; }
5242 #endif
5243
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249   *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252   (eval "$ac_compile") 2>conftest.er1
5253   ac_status=$?
5254   grep -v '^ *+' conftest.er1 >conftest.err
5255   rm -f conftest.er1
5256   cat conftest.err >&5
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); } && {
5259          test -z "$ac_c_werror_flag" ||
5260          test ! -s conftest.err
5261        } && test -s conftest.$ac_objext; then
5262   ac_cv_c_inline=$ac_kw
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267
5268 fi
5269
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271   test "$ac_cv_c_inline" != no && break
5272 done
5273
5274 fi
5275 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5277
5278
5279 case $ac_cv_c_inline in
5280   inline | yes) ;;
5281   *)
5282     case $ac_cv_c_inline in
5283       no) ac_val=;;
5284       *) ac_val=$ac_cv_c_inline;;
5285     esac
5286     cat >>confdefs.h <<_ACEOF
5287 #ifndef __cplusplus
5288 #define inline $ac_val
5289 #endif
5290 _ACEOF
5291     ;;
5292 esac
5293
5294 { echo "$as_me:$LINENO: checking for off_t" >&5
5295 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5296 if test "${ac_cv_type_off_t+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 $ac_includes_default
5306 typedef off_t ac__type_new_;
5307 int
5308 main ()
5309 {
5310 if ((ac__type_new_ *) 0)
5311   return 0;
5312 if (sizeof (ac__type_new_))
5313   return 0;
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322   *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325   (eval "$ac_compile") 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } && {
5332          test -z "$ac_c_werror_flag" ||
5333          test ! -s conftest.err
5334        } && test -s conftest.$ac_objext; then
5335   ac_cv_type_off_t=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340         ac_cv_type_off_t=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5347 if test $ac_cv_type_off_t = yes; then
5348   :
5349 else
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define off_t long int
5353 _ACEOF
5354
5355 fi
5356
5357 { echo "$as_me:$LINENO: checking for size_t" >&5
5358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5359 if test "${ac_cv_type_size_t+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 typedef size_t ac__type_new_;
5370 int
5371 main ()
5372 {
5373 if ((ac__type_new_ *) 0)
5374   return 0;
5375 if (sizeof (ac__type_new_))
5376   return 0;
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_compile") 2>conftest.er1
5389   ac_status=$?
5390   grep -v '^ *+' conftest.er1 >conftest.err
5391   rm -f conftest.er1
5392   cat conftest.err >&5
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } && {
5395          test -z "$ac_c_werror_flag" ||
5396          test ! -s conftest.err
5397        } && test -s conftest.$ac_objext; then
5398   ac_cv_type_size_t=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403         ac_cv_type_size_t=no
5404 fi
5405
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5410 if test $ac_cv_type_size_t = yes; then
5411   :
5412 else
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define size_t unsigned int
5416 _ACEOF
5417
5418 fi
5419
5420
5421   { echo "$as_me:$LINENO: checking for long long" >&5
5422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_long_long+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 long long ll = 1LL; int i = 63;
5433 int
5434 main ()
5435 {
5436 long long llmax = (long long) -1;
5437      return ll << i | ll >> i | llmax / ll | llmax % ll;
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5444 case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_link") 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } && {
5456          test -z "$ac_c_werror_flag" ||
5457          test ! -s conftest.err
5458        } && test -s conftest$ac_exeext &&
5459        $as_test_x conftest$ac_exeext; then
5460   ac_cv_type_long_long=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465         ac_cv_type_long_long=no
5466 fi
5467
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469       conftest$ac_exeext conftest.$ac_ext
5470 fi
5471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5473   if test $ac_cv_type_long_long = yes; then
5474
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_LONG_LONG 1
5477 _ACEOF
5478
5479   fi
5480
5481
5482   { echo "$as_me:$LINENO: checking for long double" >&5
5483 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5484 if test "${gt_cv_c_long_double+set}" = set; then
5485   echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487   if test "$GCC" = yes; then
5488        gt_cv_c_long_double=yes
5489      else
5490        cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496
5497          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5498          long double foo = 0.0;
5499          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5500          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5501
5502 int
5503 main ()
5504 {
5505
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_compile") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && {
5524          test -z "$ac_c_werror_flag" ||
5525          test ! -s conftest.err
5526        } && test -s conftest.$ac_objext; then
5527   gt_cv_c_long_double=yes
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532         gt_cv_c_long_double=no
5533 fi
5534
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536      fi
5537 fi
5538 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5540   if test $gt_cv_c_long_double = yes; then
5541
5542 cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_LONG_DOUBLE 1
5544 _ACEOF
5545
5546   fi
5547
5548
5549   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5551 if test "${gt_cv_c_wchar_t+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h.  */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h.  */
5560 #include <stddef.h>
5561        wchar_t foo = (wchar_t)'\0';
5562 int
5563 main ()
5564 {
5565
5566   ;
5567   return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_compile") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && {
5584          test -z "$ac_c_werror_flag" ||
5585          test ! -s conftest.err
5586        } && test -s conftest.$ac_objext; then
5587   gt_cv_c_wchar_t=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592         gt_cv_c_wchar_t=no
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5599   if test $gt_cv_c_wchar_t = yes; then
5600
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_WCHAR_T 1
5603 _ACEOF
5604
5605   fi
5606
5607
5608   { echo "$as_me:$LINENO: checking for wint_t" >&5
5609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5610 if test "${gt_cv_c_wint_t+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <wchar.h>
5620        wint_t foo = (wchar_t)'\0';
5621 int
5622 main ()
5623 {
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compile") 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } && {
5643          test -z "$ac_c_werror_flag" ||
5644          test ! -s conftest.err
5645        } && test -s conftest.$ac_objext; then
5646   gt_cv_c_wint_t=yes
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651         gt_cv_c_wint_t=no
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5658   if test $gt_cv_c_wint_t = yes; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_WINT_T 1
5662 _ACEOF
5663
5664   fi
5665
5666
5667   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5669 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5678 #include <sys/types.h>
5679 #include <inttypes.h>
5680 int
5681 main ()
5682 {
5683 uintmax_t i = (uintmax_t) -1;
5684   ;
5685   return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5690 case "(($ac_try" in
5691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692   *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695   (eval "$ac_compile") 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } && {
5702          test -z "$ac_c_werror_flag" ||
5703          test ! -s conftest.err
5704        } && test -s conftest.$ac_objext; then
5705   jm_ac_cv_header_inttypes_h=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710         jm_ac_cv_header_inttypes_h=no
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5717   if test $jm_ac_cv_header_inttypes_h = yes; then
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5721 _ACEOF
5722
5723   fi
5724
5725
5726   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5728 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737 #include <sys/types.h>
5738 #include <stdint.h>
5739 int
5740 main ()
5741 {
5742 uintmax_t i = (uintmax_t) -1;
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_compile") 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } && {
5761          test -z "$ac_c_werror_flag" ||
5762          test ! -s conftest.err
5763        } && test -s conftest.$ac_objext; then
5764   jm_ac_cv_header_stdint_h=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769         jm_ac_cv_header_stdint_h=no
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5776   if test $jm_ac_cv_header_stdint_h = yes; then
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define HAVE_STDINT_H_WITH_UINTMAX 1
5780 _ACEOF
5781
5782   fi
5783
5784
5785
5786
5787   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5789 if test "${gt_cv_c_intmax_t+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798
5799 #include <stddef.h>
5800 #include <stdlib.h>
5801 #if HAVE_STDINT_H_WITH_UINTMAX
5802 #include <stdint.h>
5803 #endif
5804 #if HAVE_INTTYPES_H_WITH_UINTMAX
5805 #include <inttypes.h>
5806 #endif
5807
5808 int
5809 main ()
5810 {
5811 intmax_t x = -1;
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } && {
5830          test -z "$ac_c_werror_flag" ||
5831          test ! -s conftest.err
5832        } && test -s conftest.$ac_objext; then
5833   gt_cv_c_intmax_t=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838         gt_cv_c_intmax_t=no
5839 fi
5840
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 fi
5843 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5845   if test $gt_cv_c_intmax_t = yes; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_INTMAX_T 1
5849 _ACEOF
5850
5851   fi
5852
5853
5854
5855   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5857 if test "${gt_cv_func_printf_posix+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860
5861       if test "$cross_compiling" = yes; then
5862
5863         cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869
5870 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5871   notposix
5872 #endif
5873
5874 _ACEOF
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876   $EGREP "notposix" >/dev/null 2>&1; then
5877   gt_cv_func_printf_posix="guessing no"
5878 else
5879   gt_cv_func_printf_posix="guessing yes"
5880 fi
5881 rm -f conftest*
5882
5883
5884 else
5885   cat >conftest.$ac_ext <<_ACEOF
5886 /* confdefs.h.  */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h.  */
5891
5892 #include <stdio.h>
5893 #include <string.h>
5894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5895    dollar expansion (possibly an autoconf bug).  */
5896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897 static char buf[100];
5898 int main ()
5899 {
5900   sprintf (buf, format, 33, 55);
5901   return (strcmp (buf, "55 33") != 0);
5902 }
5903 _ACEOF
5904 rm -f conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_link") 2>&5
5912   ac_status=$?
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915   { (case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_try") 2>&5
5921   ac_status=$?
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); }; }; then
5924   gt_cv_func_printf_posix=yes
5925 else
5926   echo "$as_me: program exited with status $ac_status" >&5
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ( exit $ac_status )
5931 gt_cv_func_printf_posix=no
5932 fi
5933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5934 fi
5935
5936
5937
5938 fi
5939 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5941   case $gt_cv_func_printf_posix in
5942     *yes)
5943
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_POSIX_PRINTF 1
5946 _ACEOF
5947
5948       ;;
5949   esac
5950
5951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952 # for constant arguments.  Useless!
5953 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5955 if test "${ac_cv_working_alloca_h+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #include <alloca.h>
5965 int
5966 main ()
5967 {
5968 char *p = (char *) alloca (2 * sizeof (int));
5969                           if (p) return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_link") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && {
5988          test -z "$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        } && test -s conftest$ac_exeext &&
5991        $as_test_x conftest$ac_exeext; then
5992   ac_cv_working_alloca_h=yes
5993 else
5994   echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997         ac_cv_working_alloca_h=no
5998 fi
5999
6000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001       conftest$ac_exeext conftest.$ac_ext
6002 fi
6003 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6005 if test $ac_cv_working_alloca_h = yes; then
6006
6007 cat >>confdefs.h <<\_ACEOF
6008 #define HAVE_ALLOCA_H 1
6009 _ACEOF
6010
6011 fi
6012
6013 { echo "$as_me:$LINENO: checking for alloca" >&5
6014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6015 if test "${ac_cv_func_alloca_works+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024 #ifdef __GNUC__
6025 # define alloca __builtin_alloca
6026 #else
6027 # ifdef _MSC_VER
6028 #  include <malloc.h>
6029 #  define alloca _alloca
6030 # else
6031 #  ifdef HAVE_ALLOCA_H
6032 #   include <alloca.h>
6033 #  else
6034 #   ifdef _AIX
6035  #pragma alloca
6036 #   else
6037 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6038 char *alloca ();
6039 #    endif
6040 #   endif
6041 #  endif
6042 # endif
6043 #endif
6044
6045 int
6046 main ()
6047 {
6048 char *p = (char *) alloca (1);
6049                                     if (p) return 0;
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (ac_try="$ac_link"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061   (eval "$ac_link") 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } && {
6068          test -z "$ac_c_werror_flag" ||
6069          test ! -s conftest.err
6070        } && test -s conftest$ac_exeext &&
6071        $as_test_x conftest$ac_exeext; then
6072   ac_cv_func_alloca_works=yes
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077         ac_cv_func_alloca_works=no
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081       conftest$ac_exeext conftest.$ac_ext
6082 fi
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6085
6086 if test $ac_cv_func_alloca_works = yes; then
6087
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_ALLOCA 1
6090 _ACEOF
6091
6092 else
6093   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094 # that cause trouble.  Some versions do not even contain alloca or
6095 # contain a buggy version.  If you still want to use their alloca,
6096 # use ar to extract alloca.o from them instead of compiling alloca.c.
6097
6098 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6099
6100 cat >>confdefs.h <<\_ACEOF
6101 #define C_ALLOCA 1
6102 _ACEOF
6103
6104
6105 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6107 if test "${ac_cv_os_cray+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #if defined CRAY && ! defined CRAY2
6117 webecray
6118 #else
6119 wenotbecray
6120 #endif
6121
6122 _ACEOF
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124   $EGREP "webecray" >/dev/null 2>&1; then
6125   ac_cv_os_cray=yes
6126 else
6127   ac_cv_os_cray=no
6128 fi
6129 rm -f conftest*
6130
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6134 if test $ac_cv_os_cray = yes; then
6135   for ac_func in _getb67 GETB67 getb67; do
6136     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6150 #define $ac_func innocuous_$ac_func
6151
6152 /* System header to define __stub macros and hopefully few prototypes,
6153     which can conflict with char $ac_func (); below.
6154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155     <limits.h> exists even on freestanding compilers.  */
6156
6157 #ifdef __STDC__
6158 # include <limits.h>
6159 #else
6160 # include <assert.h>
6161 #endif
6162
6163 #undef $ac_func
6164
6165 /* Override any GCC internal prototype to avoid an error.
6166    Use char because int might match the return type of a GCC
6167    builtin and then its argument prototype would still apply.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 char $ac_func ();
6172 /* The GNU C library defines this for functions which it implements
6173     to always fail with ENOSYS.  Some functions are actually named
6174     something starting with __ and the normal name is an alias.  */
6175 #if defined __stub_$ac_func || defined __stub___$ac_func
6176 choke me
6177 #endif
6178
6179 int
6180 main ()
6181 {
6182 return $ac_func ();
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6189 case "(($ac_try" in
6190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191   *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194   (eval "$ac_link") 2>conftest.er1
6195   ac_status=$?
6196   grep -v '^ *+' conftest.er1 >conftest.err
6197   rm -f conftest.er1
6198   cat conftest.err >&5
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); } && {
6201          test -z "$ac_c_werror_flag" ||
6202          test ! -s conftest.err
6203        } && test -s conftest$ac_exeext &&
6204        $as_test_x conftest$ac_exeext; then
6205   eval "$as_ac_var=yes"
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210         eval "$as_ac_var=no"
6211 fi
6212
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214       conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 ac_res=`eval echo '${'$as_ac_var'}'`
6217                { echo "$as_me:$LINENO: result: $ac_res" >&5
6218 echo "${ECHO_T}$ac_res" >&6; }
6219 if test `eval echo '${'$as_ac_var'}'` = yes; then
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define CRAY_STACKSEG_END $ac_func
6223 _ACEOF
6224
6225     break
6226 fi
6227
6228   done
6229 fi
6230
6231 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6233 if test "${ac_cv_c_stack_direction+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   if test "$cross_compiling" = yes; then
6237   ac_cv_c_stack_direction=0
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 $ac_includes_default
6246 int
6247 find_stack_direction ()
6248 {
6249   static char *addr = 0;
6250   auto char dummy;
6251   if (addr == 0)
6252     {
6253       addr = &dummy;
6254       return find_stack_direction ();
6255     }
6256   else
6257     return (&dummy > addr) ? 1 : -1;
6258 }
6259
6260 int
6261 main ()
6262 {
6263   return find_stack_direction () < 0;
6264 }
6265 _ACEOF
6266 rm -f conftest$ac_exeext
6267 if { (ac_try="$ac_link"
6268 case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_link") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6277   { (case "(($ac_try" in
6278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279   *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282   (eval "$ac_try") 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286   ac_cv_c_stack_direction=1
6287 else
6288   echo "$as_me: program exited with status $ac_status" >&5
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 ( exit $ac_status )
6293 ac_cv_c_stack_direction=-1
6294 fi
6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6296 fi
6297
6298
6299 fi
6300 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6302
6303 cat >>confdefs.h <<_ACEOF
6304 #define STACK_DIRECTION $ac_cv_c_stack_direction
6305 _ACEOF
6306
6307
6308 fi
6309
6310
6311
6312 for ac_header in stdlib.h unistd.h
6313 do
6314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 fi
6321 ac_res=`eval echo '${'$as_ac_Header'}'`
6322                { echo "$as_me:$LINENO: result: $ac_res" >&5
6323 echo "${ECHO_T}$ac_res" >&6; }
6324 else
6325   # Is the header compilable?
6326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 $ac_includes_default
6335 #include <$ac_header>
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6339 case "(($ac_try" in
6340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341   *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344   (eval "$ac_compile") 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } && {
6351          test -z "$ac_c_werror_flag" ||
6352          test ! -s conftest.err
6353        } && test -s conftest.$ac_objext; then
6354   ac_header_compiler=yes
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359         ac_header_compiler=no
6360 fi
6361
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6; }
6365
6366 # Is the header present?
6367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <$ac_header>
6376 _ACEOF
6377 if { (ac_try="$ac_cpp conftest.$ac_ext"
6378 case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6384   ac_status=$?
6385   grep -v '^ *+' conftest.er1 >conftest.err
6386   rm -f conftest.er1
6387   cat conftest.err >&5
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } >/dev/null && {
6390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391          test ! -s conftest.err
6392        }; then
6393   ac_header_preproc=yes
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398   ac_header_preproc=no
6399 fi
6400
6401 rm -f conftest.err conftest.$ac_ext
6402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6; }
6404
6405 # So?  What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407   yes:no: )
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412     ac_header_preproc=yes
6413     ;;
6414   no:yes:* )
6415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6427
6428     ;;
6429 esac
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   eval "$as_ac_Header=\$ac_header_preproc"
6436 fi
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438                { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6440
6441 fi
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443   cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 fi
6448
6449 done
6450
6451
6452 for ac_func in getpagesize
6453 do
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6468 #define $ac_func innocuous_$ac_func
6469
6470 /* System header to define __stub macros and hopefully few prototypes,
6471     which can conflict with char $ac_func (); below.
6472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473     <limits.h> exists even on freestanding compilers.  */
6474
6475 #ifdef __STDC__
6476 # include <limits.h>
6477 #else
6478 # include <assert.h>
6479 #endif
6480
6481 #undef $ac_func
6482
6483 /* Override any GCC internal prototype to avoid an error.
6484    Use char because int might match the return type of a GCC
6485    builtin and then its argument prototype would still apply.  */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 char $ac_func ();
6490 /* The GNU C library defines this for functions which it implements
6491     to always fail with ENOSYS.  Some functions are actually named
6492     something starting with __ and the normal name is an alias.  */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6494 choke me
6495 #endif
6496
6497 int
6498 main ()
6499 {
6500 return $ac_func ();
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6507 case "(($ac_try" in
6508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509   *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512   (eval "$ac_link") 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } && {
6519          test -z "$ac_c_werror_flag" ||
6520          test ! -s conftest.err
6521        } && test -s conftest$ac_exeext &&
6522        $as_test_x conftest$ac_exeext; then
6523   eval "$as_ac_var=yes"
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528         eval "$as_ac_var=no"
6529 fi
6530
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532       conftest$ac_exeext conftest.$ac_ext
6533 fi
6534 ac_res=`eval echo '${'$as_ac_var'}'`
6535                { echo "$as_me:$LINENO: result: $ac_res" >&5
6536 echo "${ECHO_T}$ac_res" >&6; }
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6538   cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6540 _ACEOF
6541
6542 fi
6543 done
6544
6545 { echo "$as_me:$LINENO: checking for working mmap" >&5
6546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test "$cross_compiling" = yes; then
6551   ac_cv_func_mmap_fixed_mapped=no
6552 else
6553   cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559 $ac_includes_default
6560 /* malloc might have been renamed as rpl_malloc. */
6561 #undef malloc
6562
6563 /* Thanks to Mike Haertel and Jim Avera for this test.
6564    Here is a matrix of mmap possibilities:
6565         mmap private not fixed
6566         mmap private fixed at somewhere currently unmapped
6567         mmap private fixed at somewhere already mapped
6568         mmap shared not fixed
6569         mmap shared fixed at somewhere currently unmapped
6570         mmap shared fixed at somewhere already mapped
6571    For private mappings, we should verify that changes cannot be read()
6572    back from the file, nor mmap's back from the file at a different
6573    address.  (There have been systems where private was not correctly
6574    implemented like the infamous i386 svr4.0, and systems where the
6575    VM page cache was not coherent with the file system buffer cache
6576    like early versions of FreeBSD and possibly contemporary NetBSD.)
6577    For shared mappings, we should conversely verify that changes get
6578    propagated back to all the places they're supposed to be.
6579
6580    Grep wants private fixed already mapped.
6581    The main things grep needs to know about mmap are:
6582    * does it exist and is it safe to write into the mmap'd area
6583    * how to use it (BSD variants)  */
6584
6585 #include <fcntl.h>
6586 #include <sys/mman.h>
6587
6588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6589 char *malloc ();
6590 #endif
6591
6592 /* This mess was copied from the GNU getpagesize.h.  */
6593 #ifndef HAVE_GETPAGESIZE
6594 /* Assume that all systems that can run configure have sys/param.h.  */
6595 # ifndef HAVE_SYS_PARAM_H
6596 #  define HAVE_SYS_PARAM_H 1
6597 # endif
6598
6599 # ifdef _SC_PAGESIZE
6600 #  define getpagesize() sysconf(_SC_PAGESIZE)
6601 # else /* no _SC_PAGESIZE */
6602 #  ifdef HAVE_SYS_PARAM_H
6603 #   include <sys/param.h>
6604 #   ifdef EXEC_PAGESIZE
6605 #    define getpagesize() EXEC_PAGESIZE
6606 #   else /* no EXEC_PAGESIZE */
6607 #    ifdef NBPG
6608 #     define getpagesize() NBPG * CLSIZE
6609 #     ifndef CLSIZE
6610 #      define CLSIZE 1
6611 #     endif /* no CLSIZE */
6612 #    else /* no NBPG */
6613 #     ifdef NBPC
6614 #      define getpagesize() NBPC
6615 #     else /* no NBPC */
6616 #      ifdef PAGESIZE
6617 #       define getpagesize() PAGESIZE
6618 #      endif /* PAGESIZE */
6619 #     endif /* no NBPC */
6620 #    endif /* no NBPG */
6621 #   endif /* no EXEC_PAGESIZE */
6622 #  else /* no HAVE_SYS_PARAM_H */
6623 #   define getpagesize() 8192   /* punt totally */
6624 #  endif /* no HAVE_SYS_PARAM_H */
6625 # endif /* no _SC_PAGESIZE */
6626
6627 #endif /* no HAVE_GETPAGESIZE */
6628
6629 int
6630 main ()
6631 {
6632   char *data, *data2, *data3;
6633   int i, pagesize;
6634   int fd;
6635
6636   pagesize = getpagesize ();
6637
6638   /* First, make a file with some known garbage in it. */
6639   data = (char *) malloc (pagesize);
6640   if (!data)
6641     return 1;
6642   for (i = 0; i < pagesize; ++i)
6643     *(data + i) = rand ();
6644   umask (0);
6645   fd = creat ("conftest.mmap", 0600);
6646   if (fd < 0)
6647     return 1;
6648   if (write (fd, data, pagesize) != pagesize)
6649     return 1;
6650   close (fd);
6651
6652   /* Next, try to mmap the file at a fixed address which already has
6653      something else allocated at it.  If we can, also make sure that
6654      we see the same garbage.  */
6655   fd = open ("conftest.mmap", O_RDWR);
6656   if (fd < 0)
6657     return 1;
6658   data2 = (char *) malloc (2 * pagesize);
6659   if (!data2)
6660     return 1;
6661   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6662   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6664     return 1;
6665   for (i = 0; i < pagesize; ++i)
6666     if (*(data + i) != *(data2 + i))
6667       return 1;
6668
6669   /* Finally, make sure that changes to the mapped area do not
6670      percolate back to the file as seen by read().  (This is a bug on
6671      some variants of i386 svr4.0.)  */
6672   for (i = 0; i < pagesize; ++i)
6673     *(data2 + i) = *(data2 + i) + 1;
6674   data3 = (char *) malloc (pagesize);
6675   if (!data3)
6676     return 1;
6677   if (read (fd, data3, pagesize) != pagesize)
6678     return 1;
6679   for (i = 0; i < pagesize; ++i)
6680     if (*(data + i) != *(data3 + i))
6681       return 1;
6682   close (fd);
6683   return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6688 case "(($ac_try" in
6689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690   *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693   (eval "$ac_link") 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697   { (case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702   (eval "$ac_try") 2>&5
6703   ac_status=$?
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); }; }; then
6706   ac_cv_func_mmap_fixed_mapped=yes
6707 else
6708   echo "$as_me: program exited with status $ac_status" >&5
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 ( exit $ac_status )
6713 ac_cv_func_mmap_fixed_mapped=no
6714 fi
6715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6716 fi
6717
6718
6719 fi
6720 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_MMAP 1
6726 _ACEOF
6727
6728 fi
6729 rm -f conftest.mmap
6730
6731
6732     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6734 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743
6744 #include <features.h>
6745 #ifdef __GNU_LIBRARY__
6746  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6747   Lucky GNU user
6748  #endif
6749 #endif
6750
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6754   ac_cv_gnu_library_2_1=yes
6755 else
6756   ac_cv_gnu_library_2_1=no
6757 fi
6758 rm -f conftest*
6759
6760
6761
6762 fi
6763 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6765
6766     GLIBC21="$ac_cv_gnu_library_2_1"
6767
6768
6769
6770
6771   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6773 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776
6777       if test "$cross_compiling" = yes; then
6778
6779           # Guess based on the CPU.
6780           case "$host_cpu" in
6781             alpha* | i3456786 | m68k | s390*)
6782               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6783             *)
6784               gt_cv_int_divbyzero_sigfpe="guessing no";;
6785           esac
6786
6787 else
6788   cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794
6795 #include <stdlib.h>
6796 #include <signal.h>
6797
6798 static void
6799 #ifdef __cplusplus
6800 sigfpe_handler (int sig)
6801 #else
6802 sigfpe_handler (sig) int sig;
6803 #endif
6804 {
6805   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6806   exit (sig != SIGFPE);
6807 }
6808
6809 int x = 1;
6810 int y = 0;
6811 int z;
6812 int nan;
6813
6814 int main ()
6815 {
6816   signal (SIGFPE, sigfpe_handler);
6817 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6818 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819   signal (SIGTRAP, sigfpe_handler);
6820 #endif
6821 /* Linux/SPARC yields signal SIGILL.  */
6822 #if defined (__sparc__) && defined (__linux__)
6823   signal (SIGILL, sigfpe_handler);
6824 #endif
6825
6826   z = x / y;
6827   nan = y / y;
6828   exit (1);
6829 }
6830
6831 _ACEOF
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6834 case "(($ac_try" in
6835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836   *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839   (eval "$ac_link") 2>&5
6840   ac_status=$?
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6843   { (case "(($ac_try" in
6844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845   *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848   (eval "$ac_try") 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   gt_cv_int_divbyzero_sigfpe=yes
6853 else
6854   echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ( exit $ac_status )
6859 gt_cv_int_divbyzero_sigfpe=no
6860 fi
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6862 fi
6863
6864
6865
6866 fi
6867 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6869   case "$gt_cv_int_divbyzero_sigfpe" in
6870     *yes) value=1;;
6871     *) value=0;;
6872   esac
6873
6874 cat >>confdefs.h <<_ACEOF
6875 #define INTDIV0_RAISES_SIGFPE $value
6876 _ACEOF
6877
6878
6879
6880   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6882 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 unsigned long long ull = 1ULL; int i = 63;
6892 int
6893 main ()
6894 {
6895 unsigned long long ullmax = (unsigned long long) -1;
6896      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_link") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_c_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest$ac_exeext &&
6918        $as_test_x conftest$ac_exeext; then
6919   ac_cv_type_unsigned_long_long=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924         ac_cv_type_unsigned_long_long=no
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928       conftest$ac_exeext conftest.$ac_ext
6929 fi
6930 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6932   if test $ac_cv_type_unsigned_long_long = yes; then
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_UNSIGNED_LONG_LONG 1
6936 _ACEOF
6937
6938   fi
6939
6940
6941
6942
6943   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6944
6945     test $ac_cv_type_unsigned_long_long = yes \
6946       && ac_type='unsigned long long' \
6947       || ac_type='unsigned long'
6948
6949 cat >>confdefs.h <<_ACEOF
6950 #define uintmax_t $ac_type
6951 _ACEOF
6952
6953   else
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_UINTMAX_T 1
6957 _ACEOF
6958
6959   fi
6960
6961
6962   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6964 if test "${gt_cv_header_inttypes_h+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967
6968     cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 #include <sys/types.h>
6975 #include <inttypes.h>
6976 int
6977 main ()
6978 {
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (ac_try="$ac_compile"
6986 case "(($ac_try" in
6987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988   *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991   (eval "$ac_compile") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } && {
6998          test -z "$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        } && test -s conftest.$ac_objext; then
7001   gt_cv_header_inttypes_h=yes
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006         gt_cv_header_inttypes_h=no
7007 fi
7008
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010
7011 fi
7012 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7014   if test $gt_cv_header_inttypes_h = yes; then
7015
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_INTTYPES_H 1
7018 _ACEOF
7019
7020   fi
7021
7022
7023
7024   if test $gt_cv_header_inttypes_h = yes; then
7025     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7027 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030
7031         cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <inttypes.h>
7038 #ifdef PRId32
7039 char *p = PRId32;
7040 #endif
7041
7042 int
7043 main ()
7044 {
7045
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7052 case "(($ac_try" in
7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054   *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057   (eval "$ac_compile") 2>conftest.er1
7058   ac_status=$?
7059   grep -v '^ *+' conftest.er1 >conftest.err
7060   rm -f conftest.er1
7061   cat conftest.err >&5
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } && {
7064          test -z "$ac_c_werror_flag" ||
7065          test ! -s conftest.err
7066        } && test -s conftest.$ac_objext; then
7067   gt_cv_inttypes_pri_broken=no
7068 else
7069   echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072         gt_cv_inttypes_pri_broken=yes
7073 fi
7074
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076
7077 fi
7078 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7080   fi
7081   if test "$gt_cv_inttypes_pri_broken" = yes; then
7082
7083 cat >>confdefs.h <<_ACEOF
7084 #define PRI_MACROS_BROKEN 1
7085 _ACEOF
7086
7087   fi
7088
7089
7090
7091 for ac_header in stdint.h
7092 do
7093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 fi
7100 ac_res=`eval echo '${'$as_ac_Header'}'`
7101                { echo "$as_me:$LINENO: result: $ac_res" >&5
7102 echo "${ECHO_T}$ac_res" >&6; }
7103 else
7104   # Is the header compilable?
7105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113 $ac_includes_default
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7118 case "(($ac_try" in
7119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120   *) ac_try_echo=$ac_try;;
7121 esac
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123   (eval "$ac_compile") 2>conftest.er1
7124   ac_status=$?
7125   grep -v '^ *+' conftest.er1 >conftest.err
7126   rm -f conftest.er1
7127   cat conftest.err >&5
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } && {
7130          test -z "$ac_c_werror_flag" ||
7131          test ! -s conftest.err
7132        } && test -s conftest.$ac_objext; then
7133   ac_header_compiler=yes
7134 else
7135   echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138         ac_header_compiler=no
7139 fi
7140
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6; }
7144
7145 # Is the header present?
7146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 #include <$ac_header>
7155 _ACEOF
7156 if { (ac_try="$ac_cpp conftest.$ac_ext"
7157 case "(($ac_try" in
7158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159   *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } >/dev/null && {
7169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170          test ! -s conftest.err
7171        }; then
7172   ac_header_preproc=yes
7173 else
7174   echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177   ac_header_preproc=no
7178 fi
7179
7180 rm -f conftest.err conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 echo "${ECHO_T}$ac_header_preproc" >&6; }
7183
7184 # So?  What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186   yes:no: )
7187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191     ac_header_preproc=yes
7192     ;;
7193   no:yes:* )
7194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206
7207     ;;
7208 esac
7209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   eval "$as_ac_Header=\$ac_header_preproc"
7215 fi
7216 ac_res=`eval echo '${'$as_ac_Header'}'`
7217                { echo "$as_me:$LINENO: result: $ac_res" >&5
7218 echo "${ECHO_T}$ac_res" >&6; }
7219
7220 fi
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227
7228 done
7229
7230     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7232   result=
7233   cat >conftest.$ac_ext <<_ACEOF
7234 /* confdefs.h.  */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h.  */
7239
7240 #include <limits.h>
7241 #if HAVE_STDINT_H
7242 #include <stdint.h>
7243 #endif
7244 #ifdef SIZE_MAX
7245 Found it
7246 #endif
7247
7248 _ACEOF
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250   $EGREP "Found it" >/dev/null 2>&1; then
7251   result=yes
7252 fi
7253 rm -f conftest*
7254
7255   if test -z "$result"; then
7256                     if test "$cross_compiling" = yes; then
7257   # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h.  */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h.  */
7264 #include <stddef.h>
7265 int
7266 main ()
7267 {
7268 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7269 test_array [0] = 0
7270
7271   ;
7272   return 0;
7273 }
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7277 case "(($ac_try" in
7278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279   *) ac_try_echo=$ac_try;;
7280 esac
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282   (eval "$ac_compile") 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } && {
7289          test -z "$ac_c_werror_flag" ||
7290          test ! -s conftest.err
7291        } && test -s conftest.$ac_objext; then
7292   ac_lo=0 ac_mid=0
7293   while :; do
7294     cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #include <stddef.h>
7301 int
7302 main ()
7303 {
7304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7305 test_array [0] = 0
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318   (eval "$ac_compile") 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } && {
7325          test -z "$ac_c_werror_flag" ||
7326          test ! -s conftest.err
7327        } && test -s conftest.$ac_objext; then
7328   ac_hi=$ac_mid; break
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333         ac_lo=`expr $ac_mid + 1`
7334                         if test $ac_lo -le $ac_mid; then
7335                           ac_lo= ac_hi=
7336                           break
7337                         fi
7338                         ac_mid=`expr 2 '*' $ac_mid + 1`
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342   done
7343 else
7344   echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347         cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353 #include <stddef.h>
7354 int
7355 main ()
7356 {
7357 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7358 test_array [0] = 0
7359
7360   ;
7361   return 0;
7362 }
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7366 case "(($ac_try" in
7367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368   *) ac_try_echo=$ac_try;;
7369 esac
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371   (eval "$ac_compile") 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } && {
7378          test -z "$ac_c_werror_flag" ||
7379          test ! -s conftest.err
7380        } && test -s conftest.$ac_objext; then
7381   ac_hi=-1 ac_mid=-1
7382   while :; do
7383     cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 #include <stddef.h>
7390 int
7391 main ()
7392 {
7393 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7394 test_array [0] = 0
7395
7396   ;
7397   return 0;
7398 }
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7402 case "(($ac_try" in
7403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404   *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407   (eval "$ac_compile") 2>conftest.er1
7408   ac_status=$?
7409   grep -v '^ *+' conftest.er1 >conftest.err
7410   rm -f conftest.er1
7411   cat conftest.err >&5
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } && {
7414          test -z "$ac_c_werror_flag" ||
7415          test ! -s conftest.err
7416        } && test -s conftest.$ac_objext; then
7417   ac_lo=$ac_mid; break
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422         ac_hi=`expr '(' $ac_mid ')' - 1`
7423                         if test $ac_mid -le $ac_hi; then
7424                           ac_lo= ac_hi=
7425                           break
7426                         fi
7427                         ac_mid=`expr 2 '*' $ac_mid`
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431   done
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         ac_lo= ac_hi=
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 # Binary search between lo and hi bounds.
7444 while test "x$ac_lo" != "x$ac_hi"; do
7445   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446   cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <stddef.h>
7453 int
7454 main ()
7455 {
7456 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7457 test_array [0] = 0
7458
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7465 case "(($ac_try" in
7466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467   *) ac_try_echo=$ac_try;;
7468 esac
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470   (eval "$ac_compile") 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } && {
7477          test -z "$ac_c_werror_flag" ||
7478          test ! -s conftest.err
7479        } && test -s conftest.$ac_objext; then
7480   ac_hi=$ac_mid
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485         ac_lo=`expr '(' $ac_mid ')' + 1`
7486 fi
7487
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 done
7490 case $ac_lo in
7491 ?*) res_hi=$ac_lo;;
7492 '') result=? ;;
7493 esac
7494 else
7495   cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 #include <stddef.h>
7502 static long int longval () { return ~(size_t)0 / 10; }
7503 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7504 #include <stdio.h>
7505 #include <stdlib.h>
7506 int
7507 main ()
7508 {
7509
7510   FILE *f = fopen ("conftest.val", "w");
7511   if (! f)
7512     return 1;
7513   if ((~(size_t)0 / 10) < 0)
7514     {
7515       long int i = longval ();
7516       if (i != (~(size_t)0 / 10))
7517         return 1;
7518       fprintf (f, "%ld\n", i);
7519     }
7520   else
7521     {
7522       unsigned long int i = ulongval ();
7523       if (i != (~(size_t)0 / 10))
7524         return 1;
7525       fprintf (f, "%lu\n", i);
7526     }
7527   return ferror (f) || fclose (f) != 0;
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_link") 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7544   { (case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549   (eval "$ac_try") 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); }; }; then
7553   res_hi=`cat conftest.val`
7554 else
7555   echo "$as_me: program exited with status $ac_status" >&5
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ( exit $ac_status )
7560 result=?
7561 fi
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 rm -f conftest.val
7565
7566     if test "$cross_compiling" = yes; then
7567   # Depending upon the size, compute the lo and hi bounds.
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 #include <stddef.h>
7575 int
7576 main ()
7577 {
7578 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7579 test_array [0] = 0
7580
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589   *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592   (eval "$ac_compile") 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } && {
7599          test -z "$ac_c_werror_flag" ||
7600          test ! -s conftest.err
7601        } && test -s conftest.$ac_objext; then
7602   ac_lo=0 ac_mid=0
7603   while :; do
7604     cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 #include <stddef.h>
7611 int
7612 main ()
7613 {
7614 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7615 test_array [0] = 0
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628   (eval "$ac_compile") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } && {
7635          test -z "$ac_c_werror_flag" ||
7636          test ! -s conftest.err
7637        } && test -s conftest.$ac_objext; then
7638   ac_hi=$ac_mid; break
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643         ac_lo=`expr $ac_mid + 1`
7644                         if test $ac_lo -le $ac_mid; then
7645                           ac_lo= ac_hi=
7646                           break
7647                         fi
7648                         ac_mid=`expr 2 '*' $ac_mid + 1`
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652   done
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657         cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h.  */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h.  */
7663 #include <stddef.h>
7664 int
7665 main ()
7666 {
7667 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7668 test_array [0] = 0
7669
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7676 case "(($ac_try" in
7677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678   *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681   (eval "$ac_compile") 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } && {
7688          test -z "$ac_c_werror_flag" ||
7689          test ! -s conftest.err
7690        } && test -s conftest.$ac_objext; then
7691   ac_hi=-1 ac_mid=-1
7692   while :; do
7693     cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 #include <stddef.h>
7700 int
7701 main ()
7702 {
7703 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7704 test_array [0] = 0
7705
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714   *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717   (eval "$ac_compile") 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } && {
7724          test -z "$ac_c_werror_flag" ||
7725          test ! -s conftest.err
7726        } && test -s conftest.$ac_objext; then
7727   ac_lo=$ac_mid; break
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732         ac_hi=`expr '(' $ac_mid ')' - 1`
7733                         if test $ac_mid -le $ac_hi; then
7734                           ac_lo= ac_hi=
7735                           break
7736                         fi
7737                         ac_mid=`expr 2 '*' $ac_mid`
7738 fi
7739
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741   done
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746         ac_lo= ac_hi=
7747 fi
7748
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756   cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762 #include <stddef.h>
7763 int
7764 main ()
7765 {
7766 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7767 test_array [0] = 0
7768
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7775 case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_compile") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } && {
7787          test -z "$ac_c_werror_flag" ||
7788          test ! -s conftest.err
7789        } && test -s conftest.$ac_objext; then
7790   ac_hi=$ac_mid
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795         ac_lo=`expr '(' $ac_mid ')' + 1`
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 done
7800 case $ac_lo in
7801 ?*) res_lo=$ac_lo;;
7802 '') result=? ;;
7803 esac
7804 else
7805   cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811 #include <stddef.h>
7812 static long int longval () { return ~(size_t)0 % 10; }
7813 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7814 #include <stdio.h>
7815 #include <stdlib.h>
7816 int
7817 main ()
7818 {
7819
7820   FILE *f = fopen ("conftest.val", "w");
7821   if (! f)
7822     return 1;
7823   if ((~(size_t)0 % 10) < 0)
7824     {
7825       long int i = longval ();
7826       if (i != (~(size_t)0 % 10))
7827         return 1;
7828       fprintf (f, "%ld\n", i);
7829     }
7830   else
7831     {
7832       unsigned long int i = ulongval ();
7833       if (i != (~(size_t)0 % 10))
7834         return 1;
7835       fprintf (f, "%lu\n", i);
7836     }
7837   return ferror (f) || fclose (f) != 0;
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_link") 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854   { (case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_try") 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   res_lo=`cat conftest.val`
7864 else
7865   echo "$as_me: program exited with status $ac_status" >&5
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ( exit $ac_status )
7870 result=?
7871 fi
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7873 fi
7874 rm -f conftest.val
7875
7876     if test "$cross_compiling" = yes; then
7877   # Depending upon the size, compute the lo and hi bounds.
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 #include <stddef.h>
7885 int
7886 main ()
7887 {
7888 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7889 test_array [0] = 0
7890
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902   (eval "$ac_compile") 2>conftest.er1
7903   ac_status=$?
7904   grep -v '^ *+' conftest.er1 >conftest.err
7905   rm -f conftest.er1
7906   cat conftest.err >&5
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } && {
7909          test -z "$ac_c_werror_flag" ||
7910          test ! -s conftest.err
7911        } && test -s conftest.$ac_objext; then
7912   ac_lo=0 ac_mid=0
7913   while :; do
7914     cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 #include <stddef.h>
7921 int
7922 main ()
7923 {
7924 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7925 test_array [0] = 0
7926
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } && {
7945          test -z "$ac_c_werror_flag" ||
7946          test ! -s conftest.err
7947        } && test -s conftest.$ac_objext; then
7948   ac_hi=$ac_mid; break
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953         ac_lo=`expr $ac_mid + 1`
7954                         if test $ac_lo -le $ac_mid; then
7955                           ac_lo= ac_hi=
7956                           break
7957                         fi
7958                         ac_mid=`expr 2 '*' $ac_mid + 1`
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962   done
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967         cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 #include <stddef.h>
7974 int
7975 main ()
7976 {
7977 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7978 test_array [0] = 0
7979
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_compile") 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && {
7998          test -z "$ac_c_werror_flag" ||
7999          test ! -s conftest.err
8000        } && test -s conftest.$ac_objext; then
8001   ac_hi=-1 ac_mid=-1
8002   while :; do
8003     cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009 #include <stddef.h>
8010 int
8011 main ()
8012 {
8013 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8014 test_array [0] = 0
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_compile") 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } && {
8034          test -z "$ac_c_werror_flag" ||
8035          test ! -s conftest.err
8036        } && test -s conftest.$ac_objext; then
8037   ac_lo=$ac_mid; break
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042         ac_hi=`expr '(' $ac_mid ')' - 1`
8043                         if test $ac_mid -le $ac_hi; then
8044                           ac_lo= ac_hi=
8045                           break
8046                         fi
8047                         ac_mid=`expr 2 '*' $ac_mid`
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051   done
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056         ac_lo= ac_hi=
8057 fi
8058
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 # Binary search between lo and hi bounds.
8064 while test "x$ac_lo" != "x$ac_hi"; do
8065   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066   cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 #include <stddef.h>
8073 int
8074 main ()
8075 {
8076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8077 test_array [0] = 0
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8085 case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_compile") 2>conftest.er1
8091   ac_status=$?
8092   grep -v '^ *+' conftest.er1 >conftest.err
8093   rm -f conftest.er1
8094   cat conftest.err >&5
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } && {
8097          test -z "$ac_c_werror_flag" ||
8098          test ! -s conftest.err
8099        } && test -s conftest.$ac_objext; then
8100   ac_hi=$ac_mid
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         ac_lo=`expr '(' $ac_mid ')' + 1`
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 done
8110 case $ac_lo in
8111 ?*) fits_in_uint=$ac_lo;;
8112 '') result=? ;;
8113 esac
8114 else
8115   cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h.  */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h.  */
8121 #include <stddef.h>
8122 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8124 #include <stdio.h>
8125 #include <stdlib.h>
8126 int
8127 main ()
8128 {
8129
8130   FILE *f = fopen ("conftest.val", "w");
8131   if (! f)
8132     return 1;
8133   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8134     {
8135       long int i = longval ();
8136       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8137         return 1;
8138       fprintf (f, "%ld\n", i);
8139     }
8140   else
8141     {
8142       unsigned long int i = ulongval ();
8143       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8144         return 1;
8145       fprintf (f, "%lu\n", i);
8146     }
8147   return ferror (f) || fclose (f) != 0;
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_link") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8164   { (case "(($ac_try" in
8165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166   *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169   (eval "$ac_try") 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   fits_in_uint=`cat conftest.val`
8174 else
8175   echo "$as_me: program exited with status $ac_status" >&5
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ( exit $ac_status )
8180 result=?
8181 fi
8182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 rm -f conftest.val
8185
8186     if test "$fits_in_uint" = 1; then
8187                   cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193 #include <stddef.h>
8194         extern size_t foo;
8195         extern unsigned long foo;
8196
8197 int
8198 main ()
8199 {
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } && {
8219          test -z "$ac_c_werror_flag" ||
8220          test ! -s conftest.err
8221        } && test -s conftest.$ac_objext; then
8222   fits_in_uint=0
8223 else
8224   echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8226
8227
8228 fi
8229
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231     fi
8232     if test -z "$result"; then
8233       if test "$fits_in_uint" = 1; then
8234         result="$res_hi$res_lo"U
8235       else
8236         result="$res_hi$res_lo"UL
8237       fi
8238     else
8239             result='~(size_t)0'
8240     fi
8241   fi
8242   { echo "$as_me:$LINENO: result: $result" >&5
8243 echo "${ECHO_T}$result" >&6; }
8244   if test "$result" != yes; then
8245
8246 cat >>confdefs.h <<_ACEOF
8247 #define SIZE_MAX $result
8248 _ACEOF
8249
8250   fi
8251
8252
8253
8254
8255 for ac_header in stdint.h
8256 do
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 fi
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265                { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8267 else
8268   # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 $ac_includes_default
8278 #include <$ac_header>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_compile") 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } && {
8294          test -z "$ac_c_werror_flag" ||
8295          test ! -s conftest.err
8296        } && test -s conftest.$ac_objext; then
8297   ac_header_compiler=yes
8298 else
8299   echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8301
8302         ac_header_compiler=no
8303 fi
8304
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8308
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318 #include <$ac_header>
8319 _ACEOF
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8321 case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8327   ac_status=$?
8328   grep -v '^ *+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } >/dev/null && {
8333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334          test ! -s conftest.err
8335        }; then
8336   ac_header_preproc=yes
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341   ac_header_preproc=no
8342 fi
8343
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8347
8348 # So?  What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350   yes:no: )
8351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355     ac_header_preproc=yes
8356     ;;
8357   no:yes:* )
8358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8362     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8370
8371     ;;
8372 esac
8373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   eval "$as_ac_Header=\$ac_header_preproc"
8379 fi
8380 ac_res=`eval echo '${'$as_ac_Header'}'`
8381                { echo "$as_me:$LINENO: result: $ac_res" >&5
8382 echo "${ECHO_T}$ac_res" >&6; }
8383
8384 fi
8385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386   cat >>confdefs.h <<_ACEOF
8387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388 _ACEOF
8389
8390 fi
8391
8392 done
8393
8394
8395
8396       if test "X$prefix" = "XNONE"; then
8397     acl_final_prefix="$ac_default_prefix"
8398   else
8399     acl_final_prefix="$prefix"
8400   fi
8401   if test "X$exec_prefix" = "XNONE"; then
8402     acl_final_exec_prefix='${prefix}'
8403   else
8404     acl_final_exec_prefix="$exec_prefix"
8405   fi
8406   acl_save_prefix="$prefix"
8407   prefix="$acl_final_prefix"
8408   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409   prefix="$acl_save_prefix"
8410
8411
8412 # Check whether --with-gnu-ld was given.
8413 if test "${with_gnu_ld+set}" = set; then
8414   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8415 else
8416   with_gnu_ld=no
8417 fi
8418
8419 # Prepare PATH_SEPARATOR.
8420 # The user is always right.
8421 if test "${PATH_SEPARATOR+set}" != set; then
8422   echo "#! /bin/sh" >conf$$.sh
8423   echo  "exit 0"   >>conf$$.sh
8424   chmod +x conf$$.sh
8425   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8426     PATH_SEPARATOR=';'
8427   else
8428     PATH_SEPARATOR=:
8429   fi
8430   rm -f conf$$.sh
8431 fi
8432 ac_prog=ld
8433 if test "$GCC" = yes; then
8434   # Check if gcc -print-prog-name=ld gives a path.
8435   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8437   case $host in
8438   *-*-mingw*)
8439     # gcc leaves a trailing carriage return which upsets mingw
8440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441   *)
8442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8443   esac
8444   case $ac_prog in
8445     # Accept absolute paths.
8446     [\\/]* | [A-Za-z]:[\\/]*)
8447       re_direlt='/[^/][^/]*/\.\./'
8448       # Canonicalize the path of ld
8449       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8452       done
8453       test -z "$LD" && LD="$ac_prog"
8454       ;;
8455   "")
8456     # If it fails, then pretend we aren't using GCC.
8457     ac_prog=ld
8458     ;;
8459   *)
8460     # If it is relative, then search for the first ld in PATH.
8461     with_gnu_ld=unknown
8462     ;;
8463   esac
8464 elif test "$with_gnu_ld" = yes; then
8465   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8467 else
8468   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8470 fi
8471 if test "${acl_cv_path_LD+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   if test -z "$LD"; then
8475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476   for ac_dir in $PATH; do
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479       acl_cv_path_LD="$ac_dir/$ac_prog"
8480       # Check to see if the program is GNU ld.  I'd rather use --version,
8481       # but apparently some GNU ld's only accept -v.
8482       # Break only if it was the GNU/non-GNU ld that we prefer.
8483       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484       *GNU* | *'with BFD'*)
8485         test "$with_gnu_ld" != no && break ;;
8486       *)
8487         test "$with_gnu_ld" != yes && break ;;
8488       esac
8489     fi
8490   done
8491   IFS="$ac_save_ifs"
8492 else
8493   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8494 fi
8495 fi
8496
8497 LD="$acl_cv_path_LD"
8498 if test -n "$LD"; then
8499   { echo "$as_me:$LINENO: result: $LD" >&5
8500 echo "${ECHO_T}$LD" >&6; }
8501 else
8502   { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8504 fi
8505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507    { (exit 1); exit 1; }; }
8508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8510 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514 case `$LD -v 2>&1 </dev/null` in
8515 *GNU* | *'with BFD'*)
8516   acl_cv_prog_gnu_ld=yes ;;
8517 *)
8518   acl_cv_prog_gnu_ld=no ;;
8519 esac
8520 fi
8521 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8523 with_gnu_ld=$acl_cv_prog_gnu_ld
8524
8525
8526
8527                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8529 if test "${acl_cv_rpath+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532
8533     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8535     . ./conftest.sh
8536     rm -f ./conftest.sh
8537     acl_cv_rpath=done
8538
8539 fi
8540 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8542   wl="$acl_cv_wl"
8543   libext="$acl_cv_libext"
8544   shlibext="$acl_cv_shlibext"
8545   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547   hardcode_direct="$acl_cv_hardcode_direct"
8548   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8549     # Check whether --enable-rpath was given.
8550 if test "${enable_rpath+set}" = set; then
8551   enableval=$enable_rpath; :
8552 else
8553   enable_rpath=yes
8554 fi
8555
8556
8557
8558
8559
8560
8561
8562
8563     use_additional=yes
8564
8565   acl_save_prefix="$prefix"
8566   prefix="$acl_final_prefix"
8567   acl_save_exec_prefix="$exec_prefix"
8568   exec_prefix="$acl_final_exec_prefix"
8569
8570     eval additional_includedir=\"$includedir\"
8571     eval additional_libdir=\"$libdir\"
8572
8573   exec_prefix="$acl_save_exec_prefix"
8574   prefix="$acl_save_prefix"
8575
8576
8577 # Check whether --with-libiconv-prefix was given.
8578 if test "${with_libiconv_prefix+set}" = set; then
8579   withval=$with_libiconv_prefix;
8580     if test "X$withval" = "Xno"; then
8581       use_additional=no
8582     else
8583       if test "X$withval" = "X"; then
8584
8585   acl_save_prefix="$prefix"
8586   prefix="$acl_final_prefix"
8587   acl_save_exec_prefix="$exec_prefix"
8588   exec_prefix="$acl_final_exec_prefix"
8589
8590           eval additional_includedir=\"$includedir\"
8591           eval additional_libdir=\"$libdir\"
8592
8593   exec_prefix="$acl_save_exec_prefix"
8594   prefix="$acl_save_prefix"
8595
8596       else
8597         additional_includedir="$withval/include"
8598         additional_libdir="$withval/lib"
8599       fi
8600     fi
8601
8602 fi
8603
8604       LIBICONV=
8605   LTLIBICONV=
8606   INCICONV=
8607   rpathdirs=
8608   ltrpathdirs=
8609   names_already_handled=
8610   names_next_round='iconv '
8611   while test -n "$names_next_round"; do
8612     names_this_round="$names_next_round"
8613     names_next_round=
8614     for name in $names_this_round; do
8615       already_handled=
8616       for n in $names_already_handled; do
8617         if test "$n" = "$name"; then
8618           already_handled=yes
8619           break
8620         fi
8621       done
8622       if test -z "$already_handled"; then
8623         names_already_handled="$names_already_handled $name"
8624                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625         eval value=\"\$HAVE_LIB$uppername\"
8626         if test -n "$value"; then
8627           if test "$value" = yes; then
8628             eval value=\"\$LIB$uppername\"
8629             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630             eval value=\"\$LTLIB$uppername\"
8631             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8632           else
8633                                     :
8634           fi
8635         else
8636                               found_dir=
8637           found_la=
8638           found_so=
8639           found_a=
8640           if test $use_additional = yes; then
8641             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642               found_dir="$additional_libdir"
8643               found_so="$additional_libdir/lib$name.$shlibext"
8644               if test -f "$additional_libdir/lib$name.la"; then
8645                 found_la="$additional_libdir/lib$name.la"
8646               fi
8647             else
8648               if test -f "$additional_libdir/lib$name.$libext"; then
8649                 found_dir="$additional_libdir"
8650                 found_a="$additional_libdir/lib$name.$libext"
8651                 if test -f "$additional_libdir/lib$name.la"; then
8652                   found_la="$additional_libdir/lib$name.la"
8653                 fi
8654               fi
8655             fi
8656           fi
8657           if test "X$found_dir" = "X"; then
8658             for x in $LDFLAGS $LTLIBICONV; do
8659
8660   acl_save_prefix="$prefix"
8661   prefix="$acl_final_prefix"
8662   acl_save_exec_prefix="$exec_prefix"
8663   exec_prefix="$acl_final_exec_prefix"
8664   eval x=\"$x\"
8665   exec_prefix="$acl_save_exec_prefix"
8666   prefix="$acl_save_prefix"
8667
8668               case "$x" in
8669                 -L*)
8670                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8671                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8672                     found_dir="$dir"
8673                     found_so="$dir/lib$name.$shlibext"
8674                     if test -f "$dir/lib$name.la"; then
8675                       found_la="$dir/lib$name.la"
8676                     fi
8677                   else
8678                     if test -f "$dir/lib$name.$libext"; then
8679                       found_dir="$dir"
8680                       found_a="$dir/lib$name.$libext"
8681                       if test -f "$dir/lib$name.la"; then
8682                         found_la="$dir/lib$name.la"
8683                       fi
8684                     fi
8685                   fi
8686                   ;;
8687               esac
8688               if test "X$found_dir" != "X"; then
8689                 break
8690               fi
8691             done
8692           fi
8693           if test "X$found_dir" != "X"; then
8694                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695             if test "X$found_so" != "X"; then
8696                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8698               else
8699                                                                                 haveit=
8700                 for x in $ltrpathdirs; do
8701                   if test "X$x" = "X$found_dir"; then
8702                     haveit=yes
8703                     break
8704                   fi
8705                 done
8706                 if test -z "$haveit"; then
8707                   ltrpathdirs="$ltrpathdirs $found_dir"
8708                 fi
8709                                 if test "$hardcode_direct" = yes; then
8710                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8711                 else
8712                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8714                                                             haveit=
8715                     for x in $rpathdirs; do
8716                       if test "X$x" = "X$found_dir"; then
8717                         haveit=yes
8718                         break
8719                       fi
8720                     done
8721                     if test -z "$haveit"; then
8722                       rpathdirs="$rpathdirs $found_dir"
8723                     fi
8724                   else
8725                                                                                 haveit=
8726                     for x in $LDFLAGS $LIBICONV; do
8727
8728   acl_save_prefix="$prefix"
8729   prefix="$acl_final_prefix"
8730   acl_save_exec_prefix="$exec_prefix"
8731   exec_prefix="$acl_final_exec_prefix"
8732   eval x=\"$x\"
8733   exec_prefix="$acl_save_exec_prefix"
8734   prefix="$acl_save_prefix"
8735
8736                       if test "X$x" = "X-L$found_dir"; then
8737                         haveit=yes
8738                         break
8739                       fi
8740                     done
8741                     if test -z "$haveit"; then
8742                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8743                     fi
8744                     if test "$hardcode_minus_L" != no; then
8745                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8746                     else
8747                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8748                     fi
8749                   fi
8750                 fi
8751               fi
8752             else
8753               if test "X$found_a" != "X"; then
8754                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8755               else
8756                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8757               fi
8758             fi
8759                         additional_includedir=
8760             case "$found_dir" in
8761               */lib | */lib/)
8762                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763                 additional_includedir="$basedir/include"
8764                 ;;
8765             esac
8766             if test "X$additional_includedir" != "X"; then
8767                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8768                 haveit=
8769                 if test "X$additional_includedir" = "X/usr/local/include"; then
8770                   if test -n "$GCC"; then
8771                     case $host_os in
8772                       linux*) haveit=yes;;
8773                     esac
8774                   fi
8775                 fi
8776                 if test -z "$haveit"; then
8777                   for x in $CPPFLAGS $INCICONV; do
8778
8779   acl_save_prefix="$prefix"
8780   prefix="$acl_final_prefix"
8781   acl_save_exec_prefix="$exec_prefix"
8782   exec_prefix="$acl_final_exec_prefix"
8783   eval x=\"$x\"
8784   exec_prefix="$acl_save_exec_prefix"
8785   prefix="$acl_save_prefix"
8786
8787                     if test "X$x" = "X-I$additional_includedir"; then
8788                       haveit=yes
8789                       break
8790                     fi
8791                   done
8792                   if test -z "$haveit"; then
8793                     if test -d "$additional_includedir"; then
8794                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8795                     fi
8796                   fi
8797                 fi
8798               fi
8799             fi
8800                         if test -n "$found_la"; then
8801                                                         save_libdir="$libdir"
8802               case "$found_la" in
8803                 */* | *\\*) . "$found_la" ;;
8804                 *) . "./$found_la" ;;
8805               esac
8806               libdir="$save_libdir"
8807                             for dep in $dependency_libs; do
8808                 case "$dep" in
8809                   -L*)
8810                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8812                       haveit=
8813                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8814                         if test -n "$GCC"; then
8815                           case $host_os in
8816                             linux*) haveit=yes;;
8817                           esac
8818                         fi
8819                       fi
8820                       if test -z "$haveit"; then
8821                         haveit=
8822                         for x in $LDFLAGS $LIBICONV; do
8823
8824   acl_save_prefix="$prefix"
8825   prefix="$acl_final_prefix"
8826   acl_save_exec_prefix="$exec_prefix"
8827   exec_prefix="$acl_final_exec_prefix"
8828   eval x=\"$x\"
8829   exec_prefix="$acl_save_exec_prefix"
8830   prefix="$acl_save_prefix"
8831
8832                           if test "X$x" = "X-L$additional_libdir"; then
8833                             haveit=yes
8834                             break
8835                           fi
8836                         done
8837                         if test -z "$haveit"; then
8838                           if test -d "$additional_libdir"; then
8839                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8840                           fi
8841                         fi
8842                         haveit=
8843                         for x in $LDFLAGS $LTLIBICONV; do
8844
8845   acl_save_prefix="$prefix"
8846   prefix="$acl_final_prefix"
8847   acl_save_exec_prefix="$exec_prefix"
8848   exec_prefix="$acl_final_exec_prefix"
8849   eval x=\"$x\"
8850   exec_prefix="$acl_save_exec_prefix"
8851   prefix="$acl_save_prefix"
8852
8853                           if test "X$x" = "X-L$additional_libdir"; then
8854                             haveit=yes
8855                             break
8856                           fi
8857                         done
8858                         if test -z "$haveit"; then
8859                           if test -d "$additional_libdir"; then
8860                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8861                           fi
8862                         fi
8863                       fi
8864                     fi
8865                     ;;
8866                   -R*)
8867                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868                     if test "$enable_rpath" != no; then
8869                                                                   haveit=
8870                       for x in $rpathdirs; do
8871                         if test "X$x" = "X$dir"; then
8872                           haveit=yes
8873                           break
8874                         fi
8875                       done
8876                       if test -z "$haveit"; then
8877                         rpathdirs="$rpathdirs $dir"
8878                       fi
8879                                                                   haveit=
8880                       for x in $ltrpathdirs; do
8881                         if test "X$x" = "X$dir"; then
8882                           haveit=yes
8883                           break
8884                         fi
8885                       done
8886                       if test -z "$haveit"; then
8887                         ltrpathdirs="$ltrpathdirs $dir"
8888                       fi
8889                     fi
8890                     ;;
8891                   -l*)
8892                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8893                     ;;
8894                   *.la)
8895                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8896                     ;;
8897                   *)
8898                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8900                     ;;
8901                 esac
8902               done
8903             fi
8904           else
8905                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8907           fi
8908         fi
8909       fi
8910     done
8911   done
8912   if test "X$rpathdirs" != "X"; then
8913     if test -n "$hardcode_libdir_separator"; then
8914                         alldirs=
8915       for found_dir in $rpathdirs; do
8916         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8917       done
8918             acl_save_libdir="$libdir"
8919       libdir="$alldirs"
8920       eval flag=\"$hardcode_libdir_flag_spec\"
8921       libdir="$acl_save_libdir"
8922       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8923     else
8924             for found_dir in $rpathdirs; do
8925         acl_save_libdir="$libdir"
8926         libdir="$found_dir"
8927         eval flag=\"$hardcode_libdir_flag_spec\"
8928         libdir="$acl_save_libdir"
8929         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8930       done
8931     fi
8932   fi
8933   if test "X$ltrpathdirs" != "X"; then
8934             for found_dir in $ltrpathdirs; do
8935       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8936     done
8937   fi
8938
8939
8940
8941
8942
8943
8944
8945
8946   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8948 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 $ac_includes_default
8958 typedef ptrdiff_t ac__type_new_;
8959 int
8960 main ()
8961 {
8962 if ((ac__type_new_ *) 0)
8963   return 0;
8964 if (sizeof (ac__type_new_))
8965   return 0;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_compile") 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } && {
8984          test -z "$ac_c_werror_flag" ||
8985          test ! -s conftest.err
8986        } && test -s conftest.$ac_objext; then
8987   ac_cv_type_ptrdiff_t=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992         ac_cv_type_ptrdiff_t=no
8993 fi
8994
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 fi
8997 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8999 if test $ac_cv_type_ptrdiff_t = yes; then
9000   :
9001 else
9002
9003 cat >>confdefs.h <<\_ACEOF
9004 #define ptrdiff_t long
9005 _ACEOF
9006
9007
9008 fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9021 stdlib.h string.h unistd.h sys/param.h
9022 do
9023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 fi
9030 ac_res=`eval echo '${'$as_ac_Header'}'`
9031                { echo "$as_me:$LINENO: result: $ac_res" >&5
9032 echo "${ECHO_T}$ac_res" >&6; }
9033 else
9034   # Is the header compilable?
9035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h.  */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h.  */
9043 $ac_includes_default
9044 #include <$ac_header>
9045 _ACEOF
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9048 case "(($ac_try" in
9049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050   *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053   (eval "$ac_compile") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } && {
9060          test -z "$ac_c_werror_flag" ||
9061          test ! -s conftest.err
9062        } && test -s conftest.$ac_objext; then
9063   ac_header_compiler=yes
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068         ac_header_compiler=no
9069 fi
9070
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6; }
9074
9075 # Is the header present?
9076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084 #include <$ac_header>
9085 _ACEOF
9086 if { (ac_try="$ac_cpp conftest.$ac_ext"
9087 case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } >/dev/null && {
9099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100          test ! -s conftest.err
9101        }; then
9102   ac_header_preproc=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107   ac_header_preproc=no
9108 fi
9109
9110 rm -f conftest.err conftest.$ac_ext
9111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112 echo "${ECHO_T}$ac_header_preproc" >&6; }
9113
9114 # So?  What about this header?
9115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116   yes:no: )
9117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121     ac_header_preproc=yes
9122     ;;
9123   no:yes:* )
9124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9136
9137     ;;
9138 esac
9139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   eval "$as_ac_Header=\$ac_header_preproc"
9145 fi
9146 ac_res=`eval echo '${'$as_ac_Header'}'`
9147                { echo "$as_me:$LINENO: result: $ac_res" >&5
9148 echo "${ECHO_T}$ac_res" >&6; }
9149
9150 fi
9151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152   cat >>confdefs.h <<_ACEOF
9153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154 _ACEOF
9155
9156 fi
9157
9158 done
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9186 __fsetlocking
9187 do
9188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9202 #define $ac_func innocuous_$ac_func
9203
9204 /* System header to define __stub macros and hopefully few prototypes,
9205     which can conflict with char $ac_func (); below.
9206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207     <limits.h> exists even on freestanding compilers.  */
9208
9209 #ifdef __STDC__
9210 # include <limits.h>
9211 #else
9212 # include <assert.h>
9213 #endif
9214
9215 #undef $ac_func
9216
9217 /* Override any GCC internal prototype to avoid an error.
9218    Use char because int might match the return type of a GCC
9219    builtin and then its argument prototype would still apply.  */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 char $ac_func ();
9224 /* The GNU C library defines this for functions which it implements
9225     to always fail with ENOSYS.  Some functions are actually named
9226     something starting with __ and the normal name is an alias.  */
9227 #if defined __stub_$ac_func || defined __stub___$ac_func
9228 choke me
9229 #endif
9230
9231 int
9232 main ()
9233 {
9234 return $ac_func ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (ac_try="$ac_link"
9241 case "(($ac_try" in
9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243   *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246   (eval "$ac_link") 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } && {
9253          test -z "$ac_c_werror_flag" ||
9254          test ! -s conftest.err
9255        } && test -s conftest$ac_exeext &&
9256        $as_test_x conftest$ac_exeext; then
9257   eval "$as_ac_var=yes"
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262         eval "$as_ac_var=no"
9263 fi
9264
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266       conftest$ac_exeext conftest.$ac_ext
9267 fi
9268 ac_res=`eval echo '${'$as_ac_var'}'`
9269                { echo "$as_me:$LINENO: result: $ac_res" >&5
9270 echo "${ECHO_T}$ac_res" >&6; }
9271 if test `eval echo '${'$as_ac_var'}'` = yes; then
9272   cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9274 _ACEOF
9275
9276 fi
9277 done
9278
9279
9280
9281   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9283 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <stdio.h>
9293 int
9294 main ()
9295 {
9296
9297 #ifndef _snprintf
9298   char *p = (char *) _snprintf;
9299 #endif
9300
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309   *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312   (eval "$ac_compile") 2>conftest.er1
9313   ac_status=$?
9314   grep -v '^ *+' conftest.er1 >conftest.err
9315   rm -f conftest.er1
9316   cat conftest.err >&5
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } && {
9319          test -z "$ac_c_werror_flag" ||
9320          test ! -s conftest.err
9321        } && test -s conftest.$ac_objext; then
9322   ac_cv_have_decl__snprintf=yes
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         ac_cv_have_decl__snprintf=no
9328 fi
9329
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9334   if test $ac_cv_have_decl__snprintf = yes; then
9335     gt_value=1
9336   else
9337     gt_value=0
9338   fi
9339
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DECL__SNPRINTF $gt_value
9342 _ACEOF
9343
9344
9345
9346   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 #include <stdio.h>
9358 int
9359 main ()
9360 {
9361
9362 #ifndef _snwprintf
9363   char *p = (char *) _snwprintf;
9364 #endif
9365
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext
9371 if { (ac_try="$ac_compile"
9372 case "(($ac_try" in
9373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374   *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377   (eval "$ac_compile") 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } && {
9384          test -z "$ac_c_werror_flag" ||
9385          test ! -s conftest.err
9386        } && test -s conftest.$ac_objext; then
9387   ac_cv_have_decl__snwprintf=yes
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392         ac_cv_have_decl__snwprintf=no
9393 fi
9394
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396 fi
9397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9399   if test $ac_cv_have_decl__snwprintf = yes; then
9400     gt_value=1
9401   else
9402     gt_value=0
9403   fi
9404
9405 cat >>confdefs.h <<_ACEOF
9406 #define HAVE_DECL__SNWPRINTF $gt_value
9407 _ACEOF
9408
9409
9410
9411
9412   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9414 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423 #include <stdio.h>
9424 int
9425 main ()
9426 {
9427
9428 #ifndef feof_unlocked
9429   char *p = (char *) feof_unlocked;
9430 #endif
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440   *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443   (eval "$ac_compile") 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } && {
9450          test -z "$ac_c_werror_flag" ||
9451          test ! -s conftest.err
9452        } && test -s conftest.$ac_objext; then
9453   ac_cv_have_decl_feof_unlocked=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458         ac_cv_have_decl_feof_unlocked=no
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9465   if test $ac_cv_have_decl_feof_unlocked = yes; then
9466     gt_value=1
9467   else
9468     gt_value=0
9469   fi
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9473 _ACEOF
9474
9475
9476
9477   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9479 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488 #include <stdio.h>
9489 int
9490 main ()
9491 {
9492
9493 #ifndef fgets_unlocked
9494   char *p = (char *) fgets_unlocked;
9495 #endif
9496
9497   ;
9498   return 0;
9499 }
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9503 case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_compile") 2>conftest.er1
9509   ac_status=$?
9510   grep -v '^ *+' conftest.er1 >conftest.err
9511   rm -f conftest.er1
9512   cat conftest.err >&5
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } && {
9515          test -z "$ac_c_werror_flag" ||
9516          test ! -s conftest.err
9517        } && test -s conftest.$ac_objext; then
9518   ac_cv_have_decl_fgets_unlocked=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523         ac_cv_have_decl_fgets_unlocked=no
9524 fi
9525
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9530   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9531     gt_value=1
9532   else
9533     gt_value=0
9534   fi
9535
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9538 _ACEOF
9539
9540
9541
9542   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9544 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553 #include <stdio.h>
9554 int
9555 main ()
9556 {
9557
9558 #ifndef getc_unlocked
9559   char *p = (char *) getc_unlocked;
9560 #endif
9561
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9568 case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_compile") 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } && {
9580          test -z "$ac_c_werror_flag" ||
9581          test ! -s conftest.err
9582        } && test -s conftest.$ac_objext; then
9583   ac_cv_have_decl_getc_unlocked=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_have_decl_getc_unlocked=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9595   if test $ac_cv_have_decl_getc_unlocked = yes; then
9596     gt_value=1
9597   else
9598     gt_value=0
9599   fi
9600
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9603 _ACEOF
9604
9605
9606
9607   case $gt_cv_func_printf_posix in
9608     *yes) HAVE_POSIX_PRINTF=1 ;;
9609     *) HAVE_POSIX_PRINTF=0 ;;
9610   esac
9611
9612   if test "$ac_cv_func_asprintf" = yes; then
9613     HAVE_ASPRINTF=1
9614   else
9615     HAVE_ASPRINTF=0
9616   fi
9617
9618   if test "$ac_cv_func_snprintf" = yes; then
9619     HAVE_SNPRINTF=1
9620   else
9621     HAVE_SNPRINTF=0
9622   fi
9623
9624   if test "$ac_cv_func_wprintf" = yes; then
9625     HAVE_WPRINTF=1
9626   else
9627     HAVE_WPRINTF=0
9628   fi
9629
9630
9631
9632
9633
9634
9635
9636           am_save_CPPFLAGS="$CPPFLAGS"
9637
9638   for element in $INCICONV; do
9639     haveit=
9640     for x in $CPPFLAGS; do
9641
9642   acl_save_prefix="$prefix"
9643   prefix="$acl_final_prefix"
9644   acl_save_exec_prefix="$exec_prefix"
9645   exec_prefix="$acl_final_exec_prefix"
9646   eval x=\"$x\"
9647   exec_prefix="$acl_save_exec_prefix"
9648   prefix="$acl_save_prefix"
9649
9650       if test "X$x" = "X$element"; then
9651         haveit=yes
9652         break
9653       fi
9654     done
9655     if test -z "$haveit"; then
9656       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9657     fi
9658   done
9659
9660
9661   { echo "$as_me:$LINENO: checking for iconv" >&5
9662 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9663 if test "${am_cv_func_iconv+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666
9667     am_cv_func_iconv="no, consider installing GNU libiconv"
9668     am_cv_lib_iconv=no
9669     cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #include <stdlib.h>
9676 #include <iconv.h>
9677 int
9678 main ()
9679 {
9680 iconv_t cd = iconv_open("","");
9681        iconv(cd,NULL,NULL,NULL,NULL);
9682        iconv_close(cd);
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } && {
9701          test -z "$ac_c_werror_flag" ||
9702          test ! -s conftest.err
9703        } && test -s conftest$ac_exeext &&
9704        $as_test_x conftest$ac_exeext; then
9705   am_cv_func_iconv=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714       conftest$ac_exeext conftest.$ac_ext
9715     if test "$am_cv_func_iconv" != yes; then
9716       am_save_LIBS="$LIBS"
9717       LIBS="$LIBS $LIBICONV"
9718       cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724 #include <stdlib.h>
9725 #include <iconv.h>
9726 int
9727 main ()
9728 {
9729 iconv_t cd = iconv_open("","");
9730          iconv(cd,NULL,NULL,NULL,NULL);
9731          iconv_close(cd);
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9738 case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_link") 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && {
9750          test -z "$ac_c_werror_flag" ||
9751          test ! -s conftest.err
9752        } && test -s conftest$ac_exeext &&
9753        $as_test_x conftest$ac_exeext; then
9754   am_cv_lib_iconv=yes
9755         am_cv_func_iconv=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760
9761 fi
9762
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764       conftest$ac_exeext conftest.$ac_ext
9765       LIBS="$am_save_LIBS"
9766     fi
9767
9768 fi
9769 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9771   if test "$am_cv_func_iconv" = yes; then
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ICONV 1
9775 _ACEOF
9776
9777   fi
9778   if test "$am_cv_lib_iconv" = yes; then
9779     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782 echo "${ECHO_T}$LIBICONV" >&6; }
9783   else
9784             CPPFLAGS="$am_save_CPPFLAGS"
9785     LIBICONV=
9786     LTLIBICONV=
9787   fi
9788
9789
9790
9791   if test "$am_cv_func_iconv" = yes; then
9792     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9794     if test "${am_cv_proto_iconv+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797
9798       cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 #include <stdlib.h>
9806 #include <iconv.h>
9807 extern
9808 #ifdef __cplusplus
9809 "C"
9810 #endif
9811 #if defined(__STDC__) || defined(__cplusplus)
9812 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9813 #else
9814 size_t iconv();
9815 #endif
9816
9817 int
9818 main ()
9819 {
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && {
9839          test -z "$ac_c_werror_flag" ||
9840          test ! -s conftest.err
9841        } && test -s conftest.$ac_objext; then
9842   am_cv_proto_iconv_arg1=""
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         am_cv_proto_iconv_arg1="const"
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851       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);"
9852 fi
9853
9854     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9855     { echo "$as_me:$LINENO: result: ${ac_t:-
9856          }$am_cv_proto_iconv" >&5
9857 echo "${ECHO_T}${ac_t:-
9858          }$am_cv_proto_iconv" >&6; }
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define ICONV_CONST $am_cv_proto_iconv_arg1
9862 _ACEOF
9863
9864   fi
9865
9866
9867   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9869 if test "${am_cv_langinfo_codeset+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <langinfo.h>
9879 int
9880 main ()
9881 {
9882 char* cs = nl_langinfo(CODESET);
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } && {
9901          test -z "$ac_c_werror_flag" ||
9902          test ! -s conftest.err
9903        } && test -s conftest$ac_exeext &&
9904        $as_test_x conftest$ac_exeext; then
9905   am_cv_langinfo_codeset=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910         am_cv_langinfo_codeset=no
9911 fi
9912
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914       conftest$ac_exeext conftest.$ac_ext
9915
9916 fi
9917 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9919   if test $am_cv_langinfo_codeset = yes; then
9920
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LANGINFO_CODESET 1
9923 _ACEOF
9924
9925   fi
9926
9927   if test $ac_cv_header_locale_h = yes; then
9928
9929   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9931 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940 #include <locale.h>
9941 int
9942 main ()
9943 {
9944 return LC_MESSAGES
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } && {
9963          test -z "$ac_c_werror_flag" ||
9964          test ! -s conftest.err
9965        } && test -s conftest$ac_exeext &&
9966        $as_test_x conftest$ac_exeext; then
9967   am_cv_val_LC_MESSAGES=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972         am_cv_val_LC_MESSAGES=no
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9976       conftest$ac_exeext conftest.$ac_ext
9977 fi
9978 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9980   if test $am_cv_val_LC_MESSAGES = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LC_MESSAGES 1
9984 _ACEOF
9985
9986   fi
9987
9988   fi
9989
9990                       for ac_prog in bison
9991 do
9992   # Extract the first word of "$ac_prog", so it can be a program name with args.
9993 set dummy $ac_prog; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   if test -n "$INTLBISON"; then
10000   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005   IFS=$as_save_IFS
10006   test -z "$as_dir" && as_dir=.
10007   for ac_exec_ext in '' $ac_executable_extensions; do
10008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009     ac_cv_prog_INTLBISON="$ac_prog"
10010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011     break 2
10012   fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 fi
10018 fi
10019 INTLBISON=$ac_cv_prog_INTLBISON
10020 if test -n "$INTLBISON"; then
10021   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022 echo "${ECHO_T}$INTLBISON" >&6; }
10023 else
10024   { echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6; }
10026 fi
10027
10028
10029   test -n "$INTLBISON" && break
10030 done
10031
10032   if test -z "$INTLBISON"; then
10033     ac_verc_fail=yes
10034   else
10035         { echo "$as_me:$LINENO: checking version of bison" >&5
10036 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10037     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038     case $ac_prog_version in
10039       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10043     esac
10044     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045 echo "${ECHO_T}$ac_prog_version" >&6; }
10046   fi
10047   if test $ac_verc_fail = yes; then
10048     INTLBISON=:
10049   fi
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068     # Check whether --enable-nls was given.
10069 if test "${enable_nls+set}" = set; then
10070   enableval=$enable_nls; USE_NLS=$enableval
10071 else
10072   USE_NLS=yes
10073 fi
10074
10075   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076 echo "${ECHO_T}$USE_NLS" >&6; }
10077
10078
10079
10080
10081     BUILD_INCLUDED_LIBINTL=no
10082     USE_INCLUDED_LIBINTL=no
10083
10084   LIBINTL=
10085   LTLIBINTL=
10086   POSUB=
10087
10088     if test "$USE_NLS" = "yes"; then
10089     gt_use_preinstalled_gnugettext=no
10090
10091       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10093
10094 # Check whether --with-included-gettext was given.
10095 if test "${with_included_gettext+set}" = set; then
10096   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10097 else
10098   nls_cv_force_use_gnu_gettext=no
10099 fi
10100
10101       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10103
10104       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10106
10107
10108
10109
10110
10111
10112         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10114 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115   echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117   cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123 #include <libintl.h>
10124 extern int _nl_msg_cat_cntr;
10125 extern int *_nl_domain_bindings;
10126 int
10127 main ()
10128 {
10129 bindtextdomain ("", "");
10130 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139   *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142   (eval "$ac_link") 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } && {
10149          test -z "$ac_c_werror_flag" ||
10150          test ! -s conftest.err
10151        } && test -s conftest$ac_exeext &&
10152        $as_test_x conftest$ac_exeext; then
10153   gt_cv_func_gnugettext1_libc=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158         gt_cv_func_gnugettext1_libc=no
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162       conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10166
10167         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10168
10169
10170
10171     use_additional=yes
10172
10173   acl_save_prefix="$prefix"
10174   prefix="$acl_final_prefix"
10175   acl_save_exec_prefix="$exec_prefix"
10176   exec_prefix="$acl_final_exec_prefix"
10177
10178     eval additional_includedir=\"$includedir\"
10179     eval additional_libdir=\"$libdir\"
10180
10181   exec_prefix="$acl_save_exec_prefix"
10182   prefix="$acl_save_prefix"
10183
10184
10185 # Check whether --with-libintl-prefix was given.
10186 if test "${with_libintl_prefix+set}" = set; then
10187   withval=$with_libintl_prefix;
10188     if test "X$withval" = "Xno"; then
10189       use_additional=no
10190     else
10191       if test "X$withval" = "X"; then
10192
10193   acl_save_prefix="$prefix"
10194   prefix="$acl_final_prefix"
10195   acl_save_exec_prefix="$exec_prefix"
10196   exec_prefix="$acl_final_exec_prefix"
10197
10198           eval additional_includedir=\"$includedir\"
10199           eval additional_libdir=\"$libdir\"
10200
10201   exec_prefix="$acl_save_exec_prefix"
10202   prefix="$acl_save_prefix"
10203
10204       else
10205         additional_includedir="$withval/include"
10206         additional_libdir="$withval/lib"
10207       fi
10208     fi
10209
10210 fi
10211
10212       LIBINTL=
10213   LTLIBINTL=
10214   INCINTL=
10215   rpathdirs=
10216   ltrpathdirs=
10217   names_already_handled=
10218   names_next_round='intl '
10219   while test -n "$names_next_round"; do
10220     names_this_round="$names_next_round"
10221     names_next_round=
10222     for name in $names_this_round; do
10223       already_handled=
10224       for n in $names_already_handled; do
10225         if test "$n" = "$name"; then
10226           already_handled=yes
10227           break
10228         fi
10229       done
10230       if test -z "$already_handled"; then
10231         names_already_handled="$names_already_handled $name"
10232                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233         eval value=\"\$HAVE_LIB$uppername\"
10234         if test -n "$value"; then
10235           if test "$value" = yes; then
10236             eval value=\"\$LIB$uppername\"
10237             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238             eval value=\"\$LTLIB$uppername\"
10239             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10240           else
10241                                     :
10242           fi
10243         else
10244                               found_dir=
10245           found_la=
10246           found_so=
10247           found_a=
10248           if test $use_additional = yes; then
10249             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250               found_dir="$additional_libdir"
10251               found_so="$additional_libdir/lib$name.$shlibext"
10252               if test -f "$additional_libdir/lib$name.la"; then
10253                 found_la="$additional_libdir/lib$name.la"
10254               fi
10255             else
10256               if test -f "$additional_libdir/lib$name.$libext"; then
10257                 found_dir="$additional_libdir"
10258                 found_a="$additional_libdir/lib$name.$libext"
10259                 if test -f "$additional_libdir/lib$name.la"; then
10260                   found_la="$additional_libdir/lib$name.la"
10261                 fi
10262               fi
10263             fi
10264           fi
10265           if test "X$found_dir" = "X"; then
10266             for x in $LDFLAGS $LTLIBINTL; do
10267
10268   acl_save_prefix="$prefix"
10269   prefix="$acl_final_prefix"
10270   acl_save_exec_prefix="$exec_prefix"
10271   exec_prefix="$acl_final_exec_prefix"
10272   eval x=\"$x\"
10273   exec_prefix="$acl_save_exec_prefix"
10274   prefix="$acl_save_prefix"
10275
10276               case "$x" in
10277                 -L*)
10278                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10279                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10280                     found_dir="$dir"
10281                     found_so="$dir/lib$name.$shlibext"
10282                     if test -f "$dir/lib$name.la"; then
10283                       found_la="$dir/lib$name.la"
10284                     fi
10285                   else
10286                     if test -f "$dir/lib$name.$libext"; then
10287                       found_dir="$dir"
10288                       found_a="$dir/lib$name.$libext"
10289                       if test -f "$dir/lib$name.la"; then
10290                         found_la="$dir/lib$name.la"
10291                       fi
10292                     fi
10293                   fi
10294                   ;;
10295               esac
10296               if test "X$found_dir" != "X"; then
10297                 break
10298               fi
10299             done
10300           fi
10301           if test "X$found_dir" != "X"; then
10302                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303             if test "X$found_so" != "X"; then
10304                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10306               else
10307                                                                                 haveit=
10308                 for x in $ltrpathdirs; do
10309                   if test "X$x" = "X$found_dir"; then
10310                     haveit=yes
10311                     break
10312                   fi
10313                 done
10314                 if test -z "$haveit"; then
10315                   ltrpathdirs="$ltrpathdirs $found_dir"
10316                 fi
10317                                 if test "$hardcode_direct" = yes; then
10318                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10319                 else
10320                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10322                                                             haveit=
10323                     for x in $rpathdirs; do
10324                       if test "X$x" = "X$found_dir"; then
10325                         haveit=yes
10326                         break
10327                       fi
10328                     done
10329                     if test -z "$haveit"; then
10330                       rpathdirs="$rpathdirs $found_dir"
10331                     fi
10332                   else
10333                                                                                 haveit=
10334                     for x in $LDFLAGS $LIBINTL; do
10335
10336   acl_save_prefix="$prefix"
10337   prefix="$acl_final_prefix"
10338   acl_save_exec_prefix="$exec_prefix"
10339   exec_prefix="$acl_final_exec_prefix"
10340   eval x=\"$x\"
10341   exec_prefix="$acl_save_exec_prefix"
10342   prefix="$acl_save_prefix"
10343
10344                       if test "X$x" = "X-L$found_dir"; then
10345                         haveit=yes
10346                         break
10347                       fi
10348                     done
10349                     if test -z "$haveit"; then
10350                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10351                     fi
10352                     if test "$hardcode_minus_L" != no; then
10353                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354                     else
10355                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10356                     fi
10357                   fi
10358                 fi
10359               fi
10360             else
10361               if test "X$found_a" != "X"; then
10362                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10363               else
10364                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10365               fi
10366             fi
10367                         additional_includedir=
10368             case "$found_dir" in
10369               */lib | */lib/)
10370                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371                 additional_includedir="$basedir/include"
10372                 ;;
10373             esac
10374             if test "X$additional_includedir" != "X"; then
10375                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10376                 haveit=
10377                 if test "X$additional_includedir" = "X/usr/local/include"; then
10378                   if test -n "$GCC"; then
10379                     case $host_os in
10380                       linux*) haveit=yes;;
10381                     esac
10382                   fi
10383                 fi
10384                 if test -z "$haveit"; then
10385                   for x in $CPPFLAGS $INCINTL; do
10386
10387   acl_save_prefix="$prefix"
10388   prefix="$acl_final_prefix"
10389   acl_save_exec_prefix="$exec_prefix"
10390   exec_prefix="$acl_final_exec_prefix"
10391   eval x=\"$x\"
10392   exec_prefix="$acl_save_exec_prefix"
10393   prefix="$acl_save_prefix"
10394
10395                     if test "X$x" = "X-I$additional_includedir"; then
10396                       haveit=yes
10397                       break
10398                     fi
10399                   done
10400                   if test -z "$haveit"; then
10401                     if test -d "$additional_includedir"; then
10402                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10403                     fi
10404                   fi
10405                 fi
10406               fi
10407             fi
10408                         if test -n "$found_la"; then
10409                                                         save_libdir="$libdir"
10410               case "$found_la" in
10411                 */* | *\\*) . "$found_la" ;;
10412                 *) . "./$found_la" ;;
10413               esac
10414               libdir="$save_libdir"
10415                             for dep in $dependency_libs; do
10416                 case "$dep" in
10417                   -L*)
10418                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10420                       haveit=
10421                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10422                         if test -n "$GCC"; then
10423                           case $host_os in
10424                             linux*) haveit=yes;;
10425                           esac
10426                         fi
10427                       fi
10428                       if test -z "$haveit"; then
10429                         haveit=
10430                         for x in $LDFLAGS $LIBINTL; do
10431
10432   acl_save_prefix="$prefix"
10433   prefix="$acl_final_prefix"
10434   acl_save_exec_prefix="$exec_prefix"
10435   exec_prefix="$acl_final_exec_prefix"
10436   eval x=\"$x\"
10437   exec_prefix="$acl_save_exec_prefix"
10438   prefix="$acl_save_prefix"
10439
10440                           if test "X$x" = "X-L$additional_libdir"; then
10441                             haveit=yes
10442                             break
10443                           fi
10444                         done
10445                         if test -z "$haveit"; then
10446                           if test -d "$additional_libdir"; then
10447                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10448                           fi
10449                         fi
10450                         haveit=
10451                         for x in $LDFLAGS $LTLIBINTL; do
10452
10453   acl_save_prefix="$prefix"
10454   prefix="$acl_final_prefix"
10455   acl_save_exec_prefix="$exec_prefix"
10456   exec_prefix="$acl_final_exec_prefix"
10457   eval x=\"$x\"
10458   exec_prefix="$acl_save_exec_prefix"
10459   prefix="$acl_save_prefix"
10460
10461                           if test "X$x" = "X-L$additional_libdir"; then
10462                             haveit=yes
10463                             break
10464                           fi
10465                         done
10466                         if test -z "$haveit"; then
10467                           if test -d "$additional_libdir"; then
10468                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10469                           fi
10470                         fi
10471                       fi
10472                     fi
10473                     ;;
10474                   -R*)
10475                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476                     if test "$enable_rpath" != no; then
10477                                                                   haveit=
10478                       for x in $rpathdirs; do
10479                         if test "X$x" = "X$dir"; then
10480                           haveit=yes
10481                           break
10482                         fi
10483                       done
10484                       if test -z "$haveit"; then
10485                         rpathdirs="$rpathdirs $dir"
10486                       fi
10487                                                                   haveit=
10488                       for x in $ltrpathdirs; do
10489                         if test "X$x" = "X$dir"; then
10490                           haveit=yes
10491                           break
10492                         fi
10493                       done
10494                       if test -z "$haveit"; then
10495                         ltrpathdirs="$ltrpathdirs $dir"
10496                       fi
10497                     fi
10498                     ;;
10499                   -l*)
10500                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10501                     ;;
10502                   *.la)
10503                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10504                     ;;
10505                   *)
10506                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10508                     ;;
10509                 esac
10510               done
10511             fi
10512           else
10513                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10515           fi
10516         fi
10517       fi
10518     done
10519   done
10520   if test "X$rpathdirs" != "X"; then
10521     if test -n "$hardcode_libdir_separator"; then
10522                         alldirs=
10523       for found_dir in $rpathdirs; do
10524         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10525       done
10526             acl_save_libdir="$libdir"
10527       libdir="$alldirs"
10528       eval flag=\"$hardcode_libdir_flag_spec\"
10529       libdir="$acl_save_libdir"
10530       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10531     else
10532             for found_dir in $rpathdirs; do
10533         acl_save_libdir="$libdir"
10534         libdir="$found_dir"
10535         eval flag=\"$hardcode_libdir_flag_spec\"
10536         libdir="$acl_save_libdir"
10537         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10538       done
10539     fi
10540   fi
10541   if test "X$ltrpathdirs" != "X"; then
10542             for found_dir in $ltrpathdirs; do
10543       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10544     done
10545   fi
10546
10547           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10549 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   gt_save_CPPFLAGS="$CPPFLAGS"
10553             CPPFLAGS="$CPPFLAGS $INCINTL"
10554             gt_save_LIBS="$LIBS"
10555             LIBS="$LIBS $LIBINTL"
10556                         cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 #include <libintl.h>
10563 extern int _nl_msg_cat_cntr;
10564 extern
10565 #ifdef __cplusplus
10566 "C"
10567 #endif
10568 const char *_nl_expand_alias ();
10569 int
10570 main ()
10571 {
10572 bindtextdomain ("", "");
10573 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_link") 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && {
10592          test -z "$ac_c_werror_flag" ||
10593          test ! -s conftest.err
10594        } && test -s conftest$ac_exeext &&
10595        $as_test_x conftest$ac_exeext; then
10596   gt_cv_func_gnugettext1_libintl=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601         gt_cv_func_gnugettext1_libintl=no
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605       conftest$ac_exeext conftest.$ac_ext
10606                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607               LIBS="$LIBS $LIBICONV"
10608               cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614 #include <libintl.h>
10615 extern int _nl_msg_cat_cntr;
10616 extern
10617 #ifdef __cplusplus
10618 "C"
10619 #endif
10620 const char *_nl_expand_alias ();
10621 int
10622 main ()
10623 {
10624 bindtextdomain ("", "");
10625 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634   *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637   (eval "$ac_link") 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } && {
10644          test -z "$ac_c_werror_flag" ||
10645          test ! -s conftest.err
10646        } && test -s conftest$ac_exeext &&
10647        $as_test_x conftest$ac_exeext; then
10648   LIBINTL="$LIBINTL $LIBICONV"
10649                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650                 gt_cv_func_gnugettext1_libintl=yes
10651
10652 else
10653   echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656
10657 fi
10658
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660       conftest$ac_exeext conftest.$ac_ext
10661             fi
10662             CPPFLAGS="$gt_save_CPPFLAGS"
10663             LIBS="$gt_save_LIBS"
10664 fi
10665 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10667         fi
10668
10669                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10671                 && test "$PACKAGE" != gettext-runtime \
10672                 && test "$PACKAGE" != gettext-tools; }; then
10673           gt_use_preinstalled_gnugettext=yes
10674         else
10675                     LIBINTL=
10676           LTLIBINTL=
10677           INCINTL=
10678         fi
10679
10680
10681         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682                               nls_cv_use_gnu_gettext=yes
10683         fi
10684       fi
10685
10686       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10687                 BUILD_INCLUDED_LIBINTL=yes
10688         USE_INCLUDED_LIBINTL=yes
10689         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10692       fi
10693
10694       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10696                 CATOBJEXT=.gmo
10697       fi
10698
10699
10700     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10702
10703 cat >>confdefs.h <<\_ACEOF
10704 #define ENABLE_NLS 1
10705 _ACEOF
10706
10707     else
10708       USE_NLS=no
10709     fi
10710   fi
10711
10712   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715 echo "${ECHO_T}$USE_NLS" >&6; }
10716   if test "$USE_NLS" = "yes"; then
10717     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10719     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721         gt_source="external libintl"
10722       else
10723         gt_source="libc"
10724       fi
10725     else
10726       gt_source="included intl directory"
10727     fi
10728     { echo "$as_me:$LINENO: result: $gt_source" >&5
10729 echo "${ECHO_T}$gt_source" >&6; }
10730   fi
10731
10732   if test "$USE_NLS" = "yes"; then
10733
10734     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10736         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739 echo "${ECHO_T}$LIBINTL" >&6; }
10740
10741   for element in $INCINTL; do
10742     haveit=
10743     for x in $CPPFLAGS; do
10744
10745   acl_save_prefix="$prefix"
10746   prefix="$acl_final_prefix"
10747   acl_save_exec_prefix="$exec_prefix"
10748   exec_prefix="$acl_final_exec_prefix"
10749   eval x=\"$x\"
10750   exec_prefix="$acl_save_exec_prefix"
10751   prefix="$acl_save_prefix"
10752
10753       if test "X$x" = "X$element"; then
10754         haveit=yes
10755         break
10756       fi
10757     done
10758     if test -z "$haveit"; then
10759       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10760     fi
10761   done
10762
10763       fi
10764
10765
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_GETTEXT 1
10768 _ACEOF
10769
10770
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DCGETTEXT 1
10773 _ACEOF
10774
10775     fi
10776
10777         POSUB=po
10778   fi
10779
10780
10781             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10782       BUILD_INCLUDED_LIBINTL=yes
10783     fi
10784
10785
10786
10787
10788
10789         nls_cv_header_intl=
10790     nls_cv_header_libgt=
10791
10792         DATADIRNAME=share
10793
10794
10795         INSTOBJEXT=.mo
10796
10797
10798         GENCAT=gencat
10799
10800
10801         if test "$USE_INCLUDED_LIBINTL" = yes; then
10802       INTLOBJS="\$(GETTOBJS)"
10803     fi
10804
10805
10806         INTL_LIBTOOL_SUFFIX_PREFIX=
10807
10808
10809
10810     INTLLIBS="$LIBINTL"
10811
10812
10813
10814
10815
10816
10817
10818 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   cat >conftest.make <<\_ACEOF
10825 SHELL = /bin/sh
10826 all:
10827         @echo '@@@%%%=$(MAKE)=@@@%%%'
10828 _ACEOF
10829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831   *@@@%%%=?*=@@@%%%*)
10832     eval ac_cv_prog_make_${ac_make}_set=yes;;
10833   *)
10834     eval ac_cv_prog_make_${ac_make}_set=no;;
10835 esac
10836 rm -f conftest.make
10837 fi
10838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839   { echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6; }
10841   SET_MAKE=
10842 else
10843   { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845   SET_MAKE="MAKE=${MAKE-make}"
10846 fi
10847
10848 # Extract the first word of "ln", so it can be a program name with args.
10849 set dummy ln; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_LN+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   case $LN in
10856   [\\/]* | ?:[\\/]*)
10857   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10858   ;;
10859   *)
10860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863   IFS=$as_save_IFS
10864   test -z "$as_dir" && as_dir=.
10865   for ac_exec_ext in '' $ac_executable_extensions; do
10866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869     break 2
10870   fi
10871 done
10872 done
10873 IFS=$as_save_IFS
10874
10875   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10876   ;;
10877 esac
10878 fi
10879 LN=$ac_cv_path_LN
10880 if test -n "$LN"; then
10881   { echo "$as_me:$LINENO: result: $LN" >&5
10882 echo "${ECHO_T}$LN" >&6; }
10883 else
10884   { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10886 fi
10887
10888
10889 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10891 LN_S=$as_ln_s
10892 if test "$LN_S" = "ln -s"; then
10893   { echo "$as_me:$LINENO: result: yes" >&5
10894 echo "${ECHO_T}yes" >&6; }
10895 else
10896   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897 echo "${ECHO_T}no, using $LN_S" >&6; }
10898 fi
10899
10900 # Extract the first word of "mv", so it can be a program name with args.
10901 set dummy mv; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_path_MV+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   case $MV in
10908   [\\/]* | ?:[\\/]*)
10909   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10910   ;;
10911   *)
10912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915   IFS=$as_save_IFS
10916   test -z "$as_dir" && as_dir=.
10917   for ac_exec_ext in '' $ac_executable_extensions; do
10918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921     break 2
10922   fi
10923 done
10924 done
10925 IFS=$as_save_IFS
10926
10927   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10928   ;;
10929 esac
10930 fi
10931 MV=$ac_cv_path_MV
10932 if test -n "$MV"; then
10933   { echo "$as_me:$LINENO: result: $MV" >&5
10934 echo "${ECHO_T}$MV" >&6; }
10935 else
10936   { echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6; }
10938 fi
10939
10940
10941 # Extract the first word of "cp", so it can be a program name with args.
10942 set dummy cp; ac_word=$2
10943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10945 if test "${ac_cv_path_CP+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   case $CP in
10949   [\\/]* | ?:[\\/]*)
10950   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10951   ;;
10952   *)
10953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10955 do
10956   IFS=$as_save_IFS
10957   test -z "$as_dir" && as_dir=.
10958   for ac_exec_ext in '' $ac_executable_extensions; do
10959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10960     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962     break 2
10963   fi
10964 done
10965 done
10966 IFS=$as_save_IFS
10967
10968   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10969   ;;
10970 esac
10971 fi
10972 CP=$ac_cv_path_CP
10973 if test -n "$CP"; then
10974   { echo "$as_me:$LINENO: result: $CP" >&5
10975 echo "${ECHO_T}$CP" >&6; }
10976 else
10977   { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10979 fi
10980
10981
10982 # Extract the first word of "rm", so it can be a program name with args.
10983 set dummy rm; ac_word=$2
10984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10986 if test "${ac_cv_path_RM+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   case $RM in
10990   [\\/]* | ?:[\\/]*)
10991   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10992   ;;
10993   *)
10994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997   IFS=$as_save_IFS
10998   test -z "$as_dir" && as_dir=.
10999   for ac_exec_ext in '' $ac_executable_extensions; do
11000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003     break 2
11004   fi
11005 done
11006 done
11007 IFS=$as_save_IFS
11008
11009   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11010   ;;
11011 esac
11012 fi
11013 RM=$ac_cv_path_RM
11014 if test -n "$RM"; then
11015   { echo "$as_me:$LINENO: result: $RM" >&5
11016 echo "${ECHO_T}$RM" >&6; }
11017 else
11018   { echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6; }
11020 fi
11021
11022
11023 # Extract the first word of "chmod", so it can be a program name with args.
11024 set dummy chmod; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_CHMOD+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   case $CHMOD in
11031   [\\/]* | ?:[\\/]*)
11032   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11033   ;;
11034   *)
11035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040   for ac_exec_ext in '' $ac_executable_extensions; do
11041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044     break 2
11045   fi
11046 done
11047 done
11048 IFS=$as_save_IFS
11049
11050   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11051   ;;
11052 esac
11053 fi
11054 CHMOD=$ac_cv_path_CHMOD
11055 if test -n "$CHMOD"; then
11056   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057 echo "${ECHO_T}$CHMOD" >&6; }
11058 else
11059   { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11061 fi
11062
11063
11064 for ac_prog in gawk mawk nawk awk
11065 do
11066   # Extract the first word of "$ac_prog", so it can be a program name with args.
11067 set dummy $ac_prog; ac_word=$2
11068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11070 if test "${ac_cv_prog_AWK+set}" = set; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   if test -n "$AWK"; then
11074   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079   IFS=$as_save_IFS
11080   test -z "$as_dir" && as_dir=.
11081   for ac_exec_ext in '' $ac_executable_extensions; do
11082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083     ac_cv_prog_AWK="$ac_prog"
11084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085     break 2
11086   fi
11087 done
11088 done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 AWK=$ac_cv_prog_AWK
11094 if test -n "$AWK"; then
11095   { echo "$as_me:$LINENO: result: $AWK" >&5
11096 echo "${ECHO_T}$AWK" >&6; }
11097 else
11098   { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 fi
11101
11102
11103   test -n "$AWK" && break
11104 done
11105
11106 { echo "$as_me:$LINENO: checking for egrep" >&5
11107 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_EGREP+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112    then ac_cv_path_EGREP="$GREP -E"
11113    else
11114      # Extract the first word of "egrep" to use in msg output
11115 if test -z "$EGREP"; then
11116 set dummy egrep; ac_prog_name=$2
11117 if test "${ac_cv_path_EGREP+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   ac_path_EGREP_found=false
11121 # Loop through the user's path and test for each of PROGNAME-LIST
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11124 do
11125   IFS=$as_save_IFS
11126   test -z "$as_dir" && as_dir=.
11127   for ac_prog in egrep; do
11128   for ac_exec_ext in '' $ac_executable_extensions; do
11129     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11130     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11131     # Check for GNU ac_path_EGREP and select it if it is found.
11132   # Check for GNU $ac_path_EGREP
11133 case `"$ac_path_EGREP" --version 2>&1` in
11134 *GNU*)
11135   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11136 *)
11137   ac_count=0
11138   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11139   while :
11140   do
11141     cat "conftest.in" "conftest.in" >"conftest.tmp"
11142     mv "conftest.tmp" "conftest.in"
11143     cp "conftest.in" "conftest.nl"
11144     echo 'EGREP' >> "conftest.nl"
11145     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147     ac_count=`expr $ac_count + 1`
11148     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149       # Best one so far, save it but keep looking for a better one
11150       ac_cv_path_EGREP="$ac_path_EGREP"
11151       ac_path_EGREP_max=$ac_count
11152     fi
11153     # 10*(2^10) chars as input seems more than enough
11154     test $ac_count -gt 10 && break
11155   done
11156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11157 esac
11158
11159
11160     $ac_path_EGREP_found && break 3
11161   done
11162 done
11163
11164 done
11165 IFS=$as_save_IFS
11166
11167
11168 fi
11169
11170 EGREP="$ac_cv_path_EGREP"
11171 if test -z "$EGREP"; then
11172   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174    { (exit 1); exit 1; }; }
11175 fi
11176
11177 else
11178   ac_cv_path_EGREP=$EGREP
11179 fi
11180
11181
11182    fi
11183 fi
11184 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186  EGREP="$ac_cv_path_EGREP"
11187
11188
11189 # Extract the first word of "sed", so it can be a program name with args.
11190 set dummy sed; ac_word=$2
11191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11193 if test "${ac_cv_path_SED+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   case $SED in
11197   [\\/]* | ?:[\\/]*)
11198   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11199   ;;
11200   *)
11201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206   for ac_exec_ext in '' $ac_executable_extensions; do
11207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11217   ;;
11218 esac
11219 fi
11220 SED=$ac_cv_path_SED
11221 if test -n "$SED"; then
11222   { echo "$as_me:$LINENO: result: $SED" >&5
11223 echo "${ECHO_T}$SED" >&6; }
11224 else
11225   { echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6; }
11227 fi
11228
11229
11230 # Extract the first word of "perl", so it can be a program name with args.
11231 set dummy perl; ac_word=$2
11232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11234 if test "${ac_cv_path_PERL+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   case $PERL in
11238   [\\/]* | ?:[\\/]*)
11239   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11240   ;;
11241   *)
11242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245   IFS=$as_save_IFS
11246   test -z "$as_dir" && as_dir=.
11247   for ac_exec_ext in '' $ac_executable_extensions; do
11248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251     break 2
11252   fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11258   ;;
11259 esac
11260 fi
11261 PERL=$ac_cv_path_PERL
11262 if test -n "$PERL"; then
11263   { echo "$as_me:$LINENO: result: $PERL" >&5
11264 echo "${ECHO_T}$PERL" >&6; }
11265 else
11266   { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11268 fi
11269
11270
11271 # Extract the first word of "ldconfig", so it can be a program name with args.
11272 set dummy ldconfig; ac_word=$2
11273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11275 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   case $LDCONFIG in
11279   [\\/]* | ?:[\\/]*)
11280   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11281   ;;
11282   *)
11283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286   IFS=$as_save_IFS
11287   test -z "$as_dir" && as_dir=.
11288   for ac_exec_ext in '' $ac_executable_extensions; do
11289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292     break 2
11293   fi
11294 done
11295 done
11296 IFS=$as_save_IFS
11297
11298   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11299   ;;
11300 esac
11301 fi
11302 LDCONFIG=$ac_cv_path_LDCONFIG
11303 if test -n "$LDCONFIG"; then
11304   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305 echo "${ECHO_T}$LDCONFIG" >&6; }
11306 else
11307   { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11309 fi
11310
11311
11312 if test -n "$ac_tool_prefix"; then
11313   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11314 set dummy ${ac_tool_prefix}ar; ac_word=$2
11315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11317 if test "${ac_cv_prog_AR+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   if test -n "$AR"; then
11321   ac_cv_prog_AR="$AR" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326   IFS=$as_save_IFS
11327   test -z "$as_dir" && as_dir=.
11328   for ac_exec_ext in '' $ac_executable_extensions; do
11329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330     ac_cv_prog_AR="${ac_tool_prefix}ar"
11331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11332     break 2
11333   fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 AR=$ac_cv_prog_AR
11341 if test -n "$AR"; then
11342   { echo "$as_me:$LINENO: result: $AR" >&5
11343 echo "${ECHO_T}$AR" >&6; }
11344 else
11345   { echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6; }
11347 fi
11348
11349
11350 fi
11351 if test -z "$ac_cv_prog_AR"; then
11352   ac_ct_AR=$AR
11353   # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   if test -n "$ac_ct_AR"; then
11361   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366   IFS=$as_save_IFS
11367   test -z "$as_dir" && as_dir=.
11368   for ac_exec_ext in '' $ac_executable_extensions; do
11369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370     ac_cv_prog_ac_ct_AR="ar"
11371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11372     break 2
11373   fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381 if test -n "$ac_ct_AR"; then
11382   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383 echo "${ECHO_T}$ac_ct_AR" >&6; }
11384 else
11385   { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11387 fi
11388
11389   if test "x$ac_ct_AR" = x; then
11390     AR="ar"
11391   else
11392     case $cross_compiling:$ac_tool_warned in
11393 yes:)
11394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395 whose name does not start with the host triplet.  If you think this
11396 configuration is useful to you, please write to autoconf@gnu.org." >&5
11397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398 whose name does not start with the host triplet.  If you think this
11399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400 ac_tool_warned=yes ;;
11401 esac
11402     AR=$ac_ct_AR
11403   fi
11404 else
11405   AR="$ac_cv_prog_AR"
11406 fi
11407
11408 if test -n "$ac_tool_prefix"; then
11409   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11413 if test "${ac_cv_prog_RANLIB+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   if test -n "$RANLIB"; then
11417   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11418 else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422   IFS=$as_save_IFS
11423   test -z "$as_dir" && as_dir=.
11424   for ac_exec_ext in '' $ac_executable_extensions; do
11425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428     break 2
11429   fi
11430 done
11431 done
11432 IFS=$as_save_IFS
11433
11434 fi
11435 fi
11436 RANLIB=$ac_cv_prog_RANLIB
11437 if test -n "$RANLIB"; then
11438   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439 echo "${ECHO_T}$RANLIB" >&6; }
11440 else
11441   { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11443 fi
11444
11445
11446 fi
11447 if test -z "$ac_cv_prog_RANLIB"; then
11448   ac_ct_RANLIB=$RANLIB
11449   # Extract the first word of "ranlib", so it can be a program name with args.
11450 set dummy ranlib; ac_word=$2
11451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   if test -n "$ac_ct_RANLIB"; then
11457   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462   IFS=$as_save_IFS
11463   test -z "$as_dir" && as_dir=.
11464   for ac_exec_ext in '' $ac_executable_extensions; do
11465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466     ac_cv_prog_ac_ct_RANLIB="ranlib"
11467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468     break 2
11469   fi
11470 done
11471 done
11472 IFS=$as_save_IFS
11473
11474 fi
11475 fi
11476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477 if test -n "$ac_ct_RANLIB"; then
11478   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11480 else
11481   { echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6; }
11483 fi
11484
11485   if test "x$ac_ct_RANLIB" = x; then
11486     RANLIB=":"
11487   else
11488     case $cross_compiling:$ac_tool_warned in
11489 yes:)
11490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491 whose name does not start with the host triplet.  If you think this
11492 configuration is useful to you, please write to autoconf@gnu.org." >&5
11493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494 whose name does not start with the host triplet.  If you think this
11495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496 ac_tool_warned=yes ;;
11497 esac
11498     RANLIB=$ac_ct_RANLIB
11499   fi
11500 else
11501   RANLIB="$ac_cv_prog_RANLIB"
11502 fi
11503
11504 if test -n "$ac_tool_prefix"; then
11505   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}strip; ac_word=$2
11507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11509 if test "${ac_cv_prog_STRIP+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   if test -n "$STRIP"; then
11513   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11514 else
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518   IFS=$as_save_IFS
11519   test -z "$as_dir" && as_dir=.
11520   for ac_exec_ext in '' $ac_executable_extensions; do
11521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527 done
11528 IFS=$as_save_IFS
11529
11530 fi
11531 fi
11532 STRIP=$ac_cv_prog_STRIP
11533 if test -n "$STRIP"; then
11534   { echo "$as_me:$LINENO: result: $STRIP" >&5
11535 echo "${ECHO_T}$STRIP" >&6; }
11536 else
11537   { echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6; }
11539 fi
11540
11541
11542 fi
11543 if test -z "$ac_cv_prog_STRIP"; then
11544   ac_ct_STRIP=$STRIP
11545   # Extract the first word of "strip", so it can be a program name with args.
11546 set dummy strip; ac_word=$2
11547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   if test -n "$ac_ct_STRIP"; then
11553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560   for ac_exec_ext in '' $ac_executable_extensions; do
11561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562     ac_cv_prog_ac_ct_STRIP="strip"
11563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570 fi
11571 fi
11572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573 if test -n "$ac_ct_STRIP"; then
11574   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11576 else
11577   { echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6; }
11579 fi
11580
11581   if test "x$ac_ct_STRIP" = x; then
11582     STRIP=":"
11583   else
11584     case $cross_compiling:$ac_tool_warned in
11585 yes:)
11586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587 whose name does not start with the host triplet.  If you think this
11588 configuration is useful to you, please write to autoconf@gnu.org." >&5
11589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590 whose name does not start with the host triplet.  If you think this
11591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592 ac_tool_warned=yes ;;
11593 esac
11594     STRIP=$ac_ct_STRIP
11595   fi
11596 else
11597   STRIP="$ac_cv_prog_STRIP"
11598 fi
11599
11600 # Extract the first word of "makeinfo", so it can be a program name with args.
11601 set dummy makeinfo; ac_word=$2
11602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   if test -n "$MAKEINFO"; then
11608   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11609 else
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613   IFS=$as_save_IFS
11614   test -z "$as_dir" && as_dir=.
11615   for ac_exec_ext in '' $ac_executable_extensions; do
11616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617     ac_cv_prog_MAKEINFO="makeinfo"
11618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619     break 2
11620   fi
11621 done
11622 done
11623 IFS=$as_save_IFS
11624
11625 fi
11626 fi
11627 MAKEINFO=$ac_cv_prog_MAKEINFO
11628 if test -n "$MAKEINFO"; then
11629   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630 echo "${ECHO_T}$MAKEINFO" >&6; }
11631 else
11632   { echo "$as_me:$LINENO: result: no" >&5
11633 echo "${ECHO_T}no" >&6; }
11634 fi
11635
11636
11637 if test "_$MAKEINFO" = "_"; then
11638     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11639 else
11640     case "$MAKEINFO" in
11641       */missing.*)
11642         { echo "$as_me:$LINENO: WARNING:
11643 *** Makeinfo is missing. Info documentation will not be built." >&5
11644 echo "$as_me: WARNING:
11645 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11646         ;;
11647       *)
11648         ;;
11649     esac
11650 fi
11651
11652 # Find a good install program.  We prefer a C program (faster),
11653 # so one script is as good as another.  But avoid the broken or
11654 # incompatible versions:
11655 # SysV /etc/install, /usr/sbin/install
11656 # SunOS /usr/etc/install
11657 # IRIX /sbin/install
11658 # AIX /bin/install
11659 # AmigaOS /C/install, which installs bootblocks on floppy discs
11660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11663 # OS/2's system install, which has a completely different semantic
11664 # ./install, which can be erroneously created by make from ./install.sh.
11665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11667 if test -z "$INSTALL"; then
11668 if test "${ac_cv_path_install+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676   # Account for people who put trailing slashes in PATH elements.
11677 case $as_dir/ in
11678   ./ | .// | /cC/* | \
11679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11681   /usr/ucb/* ) ;;
11682   *)
11683     # OSF1 and SCO ODT 3.0 have their own names for install.
11684     # Don't use installbsd from OSF since it installs stuff as root
11685     # by default.
11686     for ac_prog in ginstall scoinst install; do
11687       for ac_exec_ext in '' $ac_executable_extensions; do
11688         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11689           if test $ac_prog = install &&
11690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11691             # AIX install.  It has an incompatible calling convention.
11692             :
11693           elif test $ac_prog = install &&
11694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695             # program-specific install script used by HP pwplus--don't use.
11696             :
11697           else
11698             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11699             break 3
11700           fi
11701         fi
11702       done
11703     done
11704     ;;
11705 esac
11706 done
11707 IFS=$as_save_IFS
11708
11709
11710 fi
11711   if test "${ac_cv_path_install+set}" = set; then
11712     INSTALL=$ac_cv_path_install
11713   else
11714     # As a last resort, use the slow shell script.  Don't cache a
11715     # value for INSTALL within a source directory, because that will
11716     # break other packages using the cache if that directory is
11717     # removed, or if the value is a relative name.
11718     INSTALL=$ac_install_sh
11719   fi
11720 fi
11721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11722 echo "${ECHO_T}$INSTALL" >&6; }
11723
11724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725 # It thinks the first close brace ends the variable substitution.
11726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11727
11728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11729
11730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11731
11732 # See if we need a separate native compiler.
11733 if test $cross_compiling = no; then
11734   BUILD_CC="$CC"
11735
11736 else
11737   for ac_prog in gcc cc
11738 do
11739   # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   if test -n "$BUILD_CC"; then
11747   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754   for ac_exec_ext in '' $ac_executable_extensions; do
11755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756     ac_cv_prog_BUILD_CC="$ac_prog"
11757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 BUILD_CC=$ac_cv_prog_BUILD_CC
11767 if test -n "$BUILD_CC"; then
11768   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769 echo "${ECHO_T}$BUILD_CC" >&6; }
11770 else
11771   { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11773 fi
11774
11775
11776   test -n "$BUILD_CC" && break
11777 done
11778
11779 fi
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11816 do
11817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 fi
11824 ac_res=`eval echo '${'$as_ac_Header'}'`
11825                { echo "$as_me:$LINENO: result: $ac_res" >&5
11826 echo "${ECHO_T}$ac_res" >&6; }
11827 else
11828   # Is the header compilable?
11829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 $ac_includes_default
11838 #include <$ac_header>
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_compile") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } && {
11854          test -z "$ac_c_werror_flag" ||
11855          test ! -s conftest.err
11856        } && test -s conftest.$ac_objext; then
11857   ac_header_compiler=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_header_compiler=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <$ac_header>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null && {
11893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894          test ! -s conftest.err
11895        }; then
11896   ac_header_preproc=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901   ac_header_preproc=no
11902 fi
11903
11904 rm -f conftest.err conftest.$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6; }
11907
11908 # So?  What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910   yes:no: )
11911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915     ac_header_preproc=yes
11916     ;;
11917   no:yes:* )
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930
11931     ;;
11932 esac
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   eval "$as_ac_Header=\$ac_header_preproc"
11939 fi
11940 ac_res=`eval echo '${'$as_ac_Header'}'`
11941                { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11943
11944 fi
11945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946   cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948 _ACEOF
11949
11950 fi
11951
11952 done
11953
11954
11955
11956 for ac_header in sys/disk.h sys/mount.h
11957 do
11958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 #if HAVE_SYS_QUEUE_H
11972 #include <sys/queue.h>
11973 #endif
11974
11975
11976 #include <$ac_header>
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_compile") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } && {
11992          test -z "$ac_c_werror_flag" ||
11993          test ! -s conftest.err
11994        } && test -s conftest.$ac_objext; then
11995   eval "$as_ac_Header=yes"
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         eval "$as_ac_Header=no"
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 fi
12005 ac_res=`eval echo '${'$as_ac_Header'}'`
12006                { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017
12018 for ac_header in net/if.h
12019 do
12020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032
12033 #if HAVE_SYS_TYPES_H
12034 #include <sys/types.h>
12035 #endif
12036 #if HAVE_SYS_SOCKET
12037 #include <sys/socket.h>
12038 #endif
12039
12040
12041 #include <$ac_header>
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_compile") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } && {
12057          test -z "$ac_c_werror_flag" ||
12058          test ! -s conftest.err
12059        } && test -s conftest.$ac_objext; then
12060   eval "$as_ac_Header=yes"
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065         eval "$as_ac_Header=no"
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071                { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074   cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076 _ACEOF
12077
12078 fi
12079
12080 done
12081
12082
12083 for ac_func in vprintf
12084 do
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12099 #define $ac_func innocuous_$ac_func
12100
12101 /* System header to define __stub macros and hopefully few prototypes,
12102     which can conflict with char $ac_func (); below.
12103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104     <limits.h> exists even on freestanding compilers.  */
12105
12106 #ifdef __STDC__
12107 # include <limits.h>
12108 #else
12109 # include <assert.h>
12110 #endif
12111
12112 #undef $ac_func
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115    Use char because int might match the return type of a GCC
12116    builtin and then its argument prototype would still apply.  */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char $ac_func ();
12121 /* The GNU C library defines this for functions which it implements
12122     to always fail with ENOSYS.  Some functions are actually named
12123     something starting with __ and the normal name is an alias.  */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12125 choke me
12126 #endif
12127
12128 int
12129 main ()
12130 {
12131 return $ac_func ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext &&
12153        $as_test_x conftest$ac_exeext; then
12154   eval "$as_ac_var=yes"
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159         eval "$as_ac_var=no"
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163       conftest$ac_exeext conftest.$ac_ext
12164 fi
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166                { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169   cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171 _ACEOF
12172
12173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12175 if test "${ac_cv_func__doprnt+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12186 #define _doprnt innocuous__doprnt
12187
12188 /* System header to define __stub macros and hopefully few prototypes,
12189     which can conflict with char _doprnt (); below.
12190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191     <limits.h> exists even on freestanding compilers.  */
12192
12193 #ifdef __STDC__
12194 # include <limits.h>
12195 #else
12196 # include <assert.h>
12197 #endif
12198
12199 #undef _doprnt
12200
12201 /* Override any GCC internal prototype to avoid an error.
12202    Use char because int might match the return type of a GCC
12203    builtin and then its argument prototype would still apply.  */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char _doprnt ();
12208 /* The GNU C library defines this for functions which it implements
12209     to always fail with ENOSYS.  Some functions are actually named
12210     something starting with __ and the normal name is an alias.  */
12211 #if defined __stub__doprnt || defined __stub____doprnt
12212 choke me
12213 #endif
12214
12215 int
12216 main ()
12217 {
12218 return _doprnt ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_link") 2>conftest.er1
12231   ac_status=$?
12232   grep -v '^ *+' conftest.er1 >conftest.err
12233   rm -f conftest.er1
12234   cat conftest.err >&5
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } && {
12237          test -z "$ac_c_werror_flag" ||
12238          test ! -s conftest.err
12239        } && test -s conftest$ac_exeext &&
12240        $as_test_x conftest$ac_exeext; then
12241   ac_cv_func__doprnt=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246         ac_cv_func__doprnt=no
12247 fi
12248
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250       conftest$ac_exeext conftest.$ac_ext
12251 fi
12252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12254 if test $ac_cv_func__doprnt = yes; then
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_DOPRNT 1
12258 _ACEOF
12259
12260 fi
12261
12262 fi
12263 done
12264
12265
12266 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12268 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 #include <dirent.h>
12278
12279 int
12280 main ()
12281 {
12282 static struct dirent ac_aggr;
12283 if (ac_aggr.d_reclen)
12284 return 0;
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest.$ac_objext; then
12306   ac_cv_member_struct_dirent_d_reclen=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317 #include <dirent.h>
12318
12319 int
12320 main ()
12321 {
12322 static struct dirent ac_aggr;
12323 if (sizeof ac_aggr.d_reclen)
12324 return 0;
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_compile") 2>conftest.er1
12337   ac_status=$?
12338   grep -v '^ *+' conftest.er1 >conftest.err
12339   rm -f conftest.er1
12340   cat conftest.err >&5
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); } && {
12343          test -z "$ac_c_werror_flag" ||
12344          test ! -s conftest.err
12345        } && test -s conftest.$ac_objext; then
12346   ac_cv_member_struct_dirent_d_reclen=yes
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351         ac_cv_member_struct_dirent_d_reclen=no
12352 fi
12353
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12361 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362   cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_RECLEN_DIRENT 1
12364 _ACEOF
12365
12366 fi
12367
12368 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12370 if test "${ac_cv_type_ssize_t+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 #include <sys/types.h>
12380
12381 typedef ssize_t ac__type_new_;
12382 int
12383 main ()
12384 {
12385 if ((ac__type_new_ *) 0)
12386   return 0;
12387 if (sizeof (ac__type_new_))
12388   return 0;
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400   (eval "$ac_compile") 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } && {
12407          test -z "$ac_c_werror_flag" ||
12408          test ! -s conftest.err
12409        } && test -s conftest.$ac_objext; then
12410   ac_cv_type_ssize_t=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         ac_cv_type_ssize_t=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12422 if test $ac_cv_type_ssize_t = yes; then
12423   cat >>confdefs.h <<\_ACEOF
12424 #define HAVE_TYPE_SSIZE_T 1
12425 _ACEOF
12426
12427 fi
12428
12429 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12431 if test "${ac_cv_have_decl_llseek+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 #include <unistd.h>
12441
12442 int
12443 main ()
12444 {
12445 #ifndef llseek
12446   (void) llseek;
12447 #endif
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_compile") 2>conftest.er1
12461   ac_status=$?
12462   grep -v '^ *+' conftest.er1 >conftest.err
12463   rm -f conftest.er1
12464   cat conftest.err >&5
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); } && {
12467          test -z "$ac_c_werror_flag" ||
12468          test ! -s conftest.err
12469        } && test -s conftest.$ac_objext; then
12470   ac_cv_have_decl_llseek=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475         ac_cv_have_decl_llseek=no
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12482 if test $ac_cv_have_decl_llseek = yes; then
12483   cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_LLSEEK_PROTOTYPE 1
12485 _ACEOF
12486
12487 fi
12488
12489 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12491 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h.  */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h.  */
12500 #define _LARGEFILE_SOURCE
12501                  #define _LARGEFILE64_SOURCE
12502                  #include <unistd.h>
12503
12504 int
12505 main ()
12506 {
12507 #ifndef lseek64
12508   (void) lseek64;
12509 #endif
12510
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_compile") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } && {
12529          test -z "$ac_c_werror_flag" ||
12530          test ! -s conftest.err
12531        } && test -s conftest.$ac_objext; then
12532   ac_cv_have_decl_lseek64=yes
12533 else
12534   echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537         ac_cv_have_decl_lseek64=no
12538 fi
12539
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12544 if test $ac_cv_have_decl_lseek64 = yes; then
12545   cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_LSEEK64_PROTOTYPE 1
12547 _ACEOF
12548
12549 fi
12550
12551 { echo "$as_me:$LINENO: checking for short" >&5
12552 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12553 if test "${ac_cv_type_short+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562 $ac_includes_default
12563 typedef short ac__type_new_;
12564 int
12565 main ()
12566 {
12567 if ((ac__type_new_ *) 0)
12568   return 0;
12569 if (sizeof (ac__type_new_))
12570   return 0;
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext
12576 if { (ac_try="$ac_compile"
12577 case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_compile") 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } && {
12589          test -z "$ac_c_werror_flag" ||
12590          test ! -s conftest.err
12591        } && test -s conftest.$ac_objext; then
12592   ac_cv_type_short=yes
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597         ac_cv_type_short=no
12598 fi
12599
12600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601 fi
12602 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12603 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12604
12605 # The cast to long int works around a bug in the HP C Compiler
12606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12608 # This bug is HP SR number 8606223364.
12609 { echo "$as_me:$LINENO: checking size of short" >&5
12610 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12611 if test "${ac_cv_sizeof_short+set}" = set; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   if test "$cross_compiling" = yes; then
12615   # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 $ac_includes_default
12623    typedef short ac__type_sizeof_;
12624 int
12625 main ()
12626 {
12627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12628 test_array [0] = 0
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_compile") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } && {
12648          test -z "$ac_c_werror_flag" ||
12649          test ! -s conftest.err
12650        } && test -s conftest.$ac_objext; then
12651   ac_lo=0 ac_mid=0
12652   while :; do
12653     cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_includes_default
12660    typedef short ac__type_sizeof_;
12661 int
12662 main ()
12663 {
12664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12665 test_array [0] = 0
12666
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (ac_try="$ac_compile"
12673 case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_compile") 2>conftest.er1
12679   ac_status=$?
12680   grep -v '^ *+' conftest.er1 >conftest.err
12681   rm -f conftest.er1
12682   cat conftest.err >&5
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); } && {
12685          test -z "$ac_c_werror_flag" ||
12686          test ! -s conftest.err
12687        } && test -s conftest.$ac_objext; then
12688   ac_hi=$ac_mid; break
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         ac_lo=`expr $ac_mid + 1`
12694                         if test $ac_lo -le $ac_mid; then
12695                           ac_lo= ac_hi=
12696                           break
12697                         fi
12698                         ac_mid=`expr 2 '*' $ac_mid + 1`
12699 fi
12700
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702   done
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707         cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713 $ac_includes_default
12714    typedef short ac__type_sizeof_;
12715 int
12716 main ()
12717 {
12718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12719 test_array [0] = 0
12720
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext
12726 if { (ac_try="$ac_compile"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_compile") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } && {
12739          test -z "$ac_c_werror_flag" ||
12740          test ! -s conftest.err
12741        } && test -s conftest.$ac_objext; then
12742   ac_hi=-1 ac_mid=-1
12743   while :; do
12744     cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 $ac_includes_default
12751    typedef short ac__type_sizeof_;
12752 int
12753 main ()
12754 {
12755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12756 test_array [0] = 0
12757
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769   (eval "$ac_compile") 2>conftest.er1
12770   ac_status=$?
12771   grep -v '^ *+' conftest.er1 >conftest.err
12772   rm -f conftest.er1
12773   cat conftest.err >&5
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } && {
12776          test -z "$ac_c_werror_flag" ||
12777          test ! -s conftest.err
12778        } && test -s conftest.$ac_objext; then
12779   ac_lo=$ac_mid; break
12780 else
12781   echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12783
12784         ac_hi=`expr '(' $ac_mid ')' - 1`
12785                         if test $ac_mid -le $ac_hi; then
12786                           ac_lo= ac_hi=
12787                           break
12788                         fi
12789                         ac_mid=`expr 2 '*' $ac_mid`
12790 fi
12791
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793   done
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798         ac_lo= ac_hi=
12799 fi
12800
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 fi
12803
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 # Binary search between lo and hi bounds.
12806 while test "x$ac_lo" != "x$ac_hi"; do
12807   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12808   cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814 $ac_includes_default
12815    typedef short ac__type_sizeof_;
12816 int
12817 main ()
12818 {
12819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12820 test_array [0] = 0
12821
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_compile") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } && {
12840          test -z "$ac_c_werror_flag" ||
12841          test ! -s conftest.err
12842        } && test -s conftest.$ac_objext; then
12843   ac_hi=$ac_mid
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848         ac_lo=`expr '(' $ac_mid ')' + 1`
12849 fi
12850
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 done
12853 case $ac_lo in
12854 ?*) ac_cv_sizeof_short=$ac_lo;;
12855 '') if test "$ac_cv_type_short" = yes; then
12856      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: cannot compute sizeof (short)
12859 See \`config.log' for more details." >&2;}
12860    { (exit 77); exit 77; }; }
12861    else
12862      ac_cv_sizeof_short=0
12863    fi ;;
12864 esac
12865 else
12866   cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872 $ac_includes_default
12873    typedef short ac__type_sizeof_;
12874 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12875 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12876 #include <stdio.h>
12877 #include <stdlib.h>
12878 int
12879 main ()
12880 {
12881
12882   FILE *f = fopen ("conftest.val", "w");
12883   if (! f)
12884     return 1;
12885   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12886     {
12887       long int i = longval ();
12888       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12889         return 1;
12890       fprintf (f, "%ld\n", i);
12891     }
12892   else
12893     {
12894       unsigned long int i = ulongval ();
12895       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12896         return 1;
12897       fprintf (f, "%lu\n", i);
12898     }
12899   return ferror (f) || fclose (f) != 0;
12900
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 rm -f conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909   *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912   (eval "$ac_link") 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12916   { (case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_try") 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_sizeof_short=`cat conftest.val`
12926 else
12927   echo "$as_me: program exited with status $ac_status" >&5
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ( exit $ac_status )
12932 if test "$ac_cv_type_short" = yes; then
12933      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12934 See \`config.log' for more details." >&5
12935 echo "$as_me: error: cannot compute sizeof (short)
12936 See \`config.log' for more details." >&2;}
12937    { (exit 77); exit 77; }; }
12938    else
12939      ac_cv_sizeof_short=0
12940    fi
12941 fi
12942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12943 fi
12944 rm -f conftest.val
12945 fi
12946 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12947 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12948
12949
12950
12951 cat >>confdefs.h <<_ACEOF
12952 #define SIZEOF_SHORT $ac_cv_sizeof_short
12953 _ACEOF
12954
12955
12956 { echo "$as_me:$LINENO: checking for int" >&5
12957 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12958 if test "${ac_cv_type_int+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 $ac_includes_default
12968 typedef int ac__type_new_;
12969 int
12970 main ()
12971 {
12972 if ((ac__type_new_ *) 0)
12973   return 0;
12974 if (sizeof (ac__type_new_))
12975   return 0;
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (ac_try="$ac_compile"
12982 case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_compile") 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } && {
12994          test -z "$ac_c_werror_flag" ||
12995          test ! -s conftest.err
12996        } && test -s conftest.$ac_objext; then
12997   ac_cv_type_int=yes
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002         ac_cv_type_int=no
13003 fi
13004
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 fi
13007 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13008 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13009
13010 # The cast to long int works around a bug in the HP C Compiler
13011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13013 # This bug is HP SR number 8606223364.
13014 { echo "$as_me:$LINENO: checking size of int" >&5
13015 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13016 if test "${ac_cv_sizeof_int+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   if test "$cross_compiling" = yes; then
13020   # Depending upon the size, compute the lo and hi bounds.
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h.  */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h.  */
13027 $ac_includes_default
13028    typedef int ac__type_sizeof_;
13029 int
13030 main ()
13031 {
13032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13033 test_array [0] = 0
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_compile") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } && {
13053          test -z "$ac_c_werror_flag" ||
13054          test ! -s conftest.err
13055        } && test -s conftest.$ac_objext; then
13056   ac_lo=0 ac_mid=0
13057   while :; do
13058     cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064 $ac_includes_default
13065    typedef int ac__type_sizeof_;
13066 int
13067 main ()
13068 {
13069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13070 test_array [0] = 0
13071
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } && {
13090          test -z "$ac_c_werror_flag" ||
13091          test ! -s conftest.err
13092        } && test -s conftest.$ac_objext; then
13093   ac_hi=$ac_mid; break
13094 else
13095   echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098         ac_lo=`expr $ac_mid + 1`
13099                         if test $ac_lo -le $ac_mid; then
13100                           ac_lo= ac_hi=
13101                           break
13102                         fi
13103                         ac_mid=`expr 2 '*' $ac_mid + 1`
13104 fi
13105
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107   done
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112         cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118 $ac_includes_default
13119    typedef int ac__type_sizeof_;
13120 int
13121 main ()
13122 {
13123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13124 test_array [0] = 0
13125
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (ac_try="$ac_compile"
13132 case "(($ac_try" in
13133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134   *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137   (eval "$ac_compile") 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } && {
13144          test -z "$ac_c_werror_flag" ||
13145          test ! -s conftest.err
13146        } && test -s conftest.$ac_objext; then
13147   ac_hi=-1 ac_mid=-1
13148   while :; do
13149     cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 $ac_includes_default
13156    typedef int ac__type_sizeof_;
13157 int
13158 main ()
13159 {
13160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13161 test_array [0] = 0
13162
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_compile") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } && {
13181          test -z "$ac_c_werror_flag" ||
13182          test ! -s conftest.err
13183        } && test -s conftest.$ac_objext; then
13184   ac_lo=$ac_mid; break
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189         ac_hi=`expr '(' $ac_mid ')' - 1`
13190                         if test $ac_mid -le $ac_hi; then
13191                           ac_lo= ac_hi=
13192                           break
13193                         fi
13194                         ac_mid=`expr 2 '*' $ac_mid`
13195 fi
13196
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198   done
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203         ac_lo= ac_hi=
13204 fi
13205
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 # Binary search between lo and hi bounds.
13211 while test "x$ac_lo" != "x$ac_hi"; do
13212   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 $ac_includes_default
13220    typedef int ac__type_sizeof_;
13221 int
13222 main ()
13223 {
13224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13225 test_array [0] = 0
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (ac_try="$ac_compile"
13233 case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_compile") 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } && {
13245          test -z "$ac_c_werror_flag" ||
13246          test ! -s conftest.err
13247        } && test -s conftest.$ac_objext; then
13248   ac_hi=$ac_mid
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253         ac_lo=`expr '(' $ac_mid ')' + 1`
13254 fi
13255
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 done
13258 case $ac_lo in
13259 ?*) ac_cv_sizeof_int=$ac_lo;;
13260 '') if test "$ac_cv_type_int" = yes; then
13261      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13262 See \`config.log' for more details." >&5
13263 echo "$as_me: error: cannot compute sizeof (int)
13264 See \`config.log' for more details." >&2;}
13265    { (exit 77); exit 77; }; }
13266    else
13267      ac_cv_sizeof_int=0
13268    fi ;;
13269 esac
13270 else
13271   cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 $ac_includes_default
13278    typedef int ac__type_sizeof_;
13279 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13280 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13281 #include <stdio.h>
13282 #include <stdlib.h>
13283 int
13284 main ()
13285 {
13286
13287   FILE *f = fopen ("conftest.val", "w");
13288   if (! f)
13289     return 1;
13290   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13291     {
13292       long int i = longval ();
13293       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13294         return 1;
13295       fprintf (f, "%ld\n", i);
13296     }
13297   else
13298     {
13299       unsigned long int i = ulongval ();
13300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13301         return 1;
13302       fprintf (f, "%lu\n", i);
13303     }
13304   return ferror (f) || fclose (f) != 0;
13305
13306   ;
13307   return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314   *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317   (eval "$ac_link") 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321   { (case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_try") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_cv_sizeof_int=`cat conftest.val`
13331 else
13332   echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336 ( exit $ac_status )
13337 if test "$ac_cv_type_int" = yes; then
13338      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13339 See \`config.log' for more details." >&5
13340 echo "$as_me: error: cannot compute sizeof (int)
13341 See \`config.log' for more details." >&2;}
13342    { (exit 77); exit 77; }; }
13343    else
13344      ac_cv_sizeof_int=0
13345    fi
13346 fi
13347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 rm -f conftest.val
13350 fi
13351 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13352 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13353
13354
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define SIZEOF_INT $ac_cv_sizeof_int
13358 _ACEOF
13359
13360
13361 { echo "$as_me:$LINENO: checking for long" >&5
13362 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13363 if test "${ac_cv_type_long+set}" = set; then
13364   echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372 $ac_includes_default
13373 typedef long ac__type_new_;
13374 int
13375 main ()
13376 {
13377 if ((ac__type_new_ *) 0)
13378   return 0;
13379 if (sizeof (ac__type_new_))
13380   return 0;
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (ac_try="$ac_compile"
13387 case "(($ac_try" in
13388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389   *) ac_try_echo=$ac_try;;
13390 esac
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392   (eval "$ac_compile") 2>conftest.er1
13393   ac_status=$?
13394   grep -v '^ *+' conftest.er1 >conftest.err
13395   rm -f conftest.er1
13396   cat conftest.err >&5
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } && {
13399          test -z "$ac_c_werror_flag" ||
13400          test ! -s conftest.err
13401        } && test -s conftest.$ac_objext; then
13402   ac_cv_type_long=yes
13403 else
13404   echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407         ac_cv_type_long=no
13408 fi
13409
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 fi
13412 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13413 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13414
13415 # The cast to long int works around a bug in the HP C Compiler
13416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13418 # This bug is HP SR number 8606223364.
13419 { echo "$as_me:$LINENO: checking size of long" >&5
13420 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13421 if test "${ac_cv_sizeof_long+set}" = set; then
13422   echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424   if test "$cross_compiling" = yes; then
13425   # Depending upon the size, compute the lo and hi bounds.
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h.  */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h.  */
13432 $ac_includes_default
13433    typedef long ac__type_sizeof_;
13434 int
13435 main ()
13436 {
13437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13438 test_array [0] = 0
13439
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext
13445 if { (ac_try="$ac_compile"
13446 case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451   (eval "$ac_compile") 2>conftest.er1
13452   ac_status=$?
13453   grep -v '^ *+' conftest.er1 >conftest.err
13454   rm -f conftest.er1
13455   cat conftest.err >&5
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } && {
13458          test -z "$ac_c_werror_flag" ||
13459          test ! -s conftest.err
13460        } && test -s conftest.$ac_objext; then
13461   ac_lo=0 ac_mid=0
13462   while :; do
13463     cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h.  */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h.  */
13469 $ac_includes_default
13470    typedef long ac__type_sizeof_;
13471 int
13472 main ()
13473 {
13474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13475 test_array [0] = 0
13476
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_compile") 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } && {
13495          test -z "$ac_c_werror_flag" ||
13496          test ! -s conftest.err
13497        } && test -s conftest.$ac_objext; then
13498   ac_hi=$ac_mid; break
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503         ac_lo=`expr $ac_mid + 1`
13504                         if test $ac_lo -le $ac_mid; then
13505                           ac_lo= ac_hi=
13506                           break
13507                         fi
13508                         ac_mid=`expr 2 '*' $ac_mid + 1`
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512   done
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517         cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523 $ac_includes_default
13524    typedef long ac__type_sizeof_;
13525 int
13526 main ()
13527 {
13528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13529 test_array [0] = 0
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest.$ac_objext
13536 if { (ac_try="$ac_compile"
13537 case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_compile") 2>conftest.er1
13543   ac_status=$?
13544   grep -v '^ *+' conftest.er1 >conftest.err
13545   rm -f conftest.er1
13546   cat conftest.err >&5
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } && {
13549          test -z "$ac_c_werror_flag" ||
13550          test ! -s conftest.err
13551        } && test -s conftest.$ac_objext; then
13552   ac_hi=-1 ac_mid=-1
13553   while :; do
13554     cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 $ac_includes_default
13561    typedef long ac__type_sizeof_;
13562 int
13563 main ()
13564 {
13565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13566 test_array [0] = 0
13567
13568   ;
13569   return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_compile") 2>conftest.er1
13580   ac_status=$?
13581   grep -v '^ *+' conftest.er1 >conftest.err
13582   rm -f conftest.er1
13583   cat conftest.err >&5
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } && {
13586          test -z "$ac_c_werror_flag" ||
13587          test ! -s conftest.err
13588        } && test -s conftest.$ac_objext; then
13589   ac_lo=$ac_mid; break
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594         ac_hi=`expr '(' $ac_mid ')' - 1`
13595                         if test $ac_mid -le $ac_hi; then
13596                           ac_lo= ac_hi=
13597                           break
13598                         fi
13599                         ac_mid=`expr 2 '*' $ac_mid`
13600 fi
13601
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603   done
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608         ac_lo= ac_hi=
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 fi
13613
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 # Binary search between lo and hi bounds.
13616 while test "x$ac_lo" != "x$ac_hi"; do
13617   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 $ac_includes_default
13625    typedef long ac__type_sizeof_;
13626 int
13627 main ()
13628 {
13629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13630 test_array [0] = 0
13631
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (ac_try="$ac_compile"
13638 case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_compile") 2>conftest.er1
13644   ac_status=$?
13645   grep -v '^ *+' conftest.er1 >conftest.err
13646   rm -f conftest.er1
13647   cat conftest.err >&5
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); } && {
13650          test -z "$ac_c_werror_flag" ||
13651          test ! -s conftest.err
13652        } && test -s conftest.$ac_objext; then
13653   ac_hi=$ac_mid
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658         ac_lo=`expr '(' $ac_mid ')' + 1`
13659 fi
13660
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 done
13663 case $ac_lo in
13664 ?*) ac_cv_sizeof_long=$ac_lo;;
13665 '') if test "$ac_cv_type_long" = yes; then
13666      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13667 See \`config.log' for more details." >&5
13668 echo "$as_me: error: cannot compute sizeof (long)
13669 See \`config.log' for more details." >&2;}
13670    { (exit 77); exit 77; }; }
13671    else
13672      ac_cv_sizeof_long=0
13673    fi ;;
13674 esac
13675 else
13676   cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682 $ac_includes_default
13683    typedef long ac__type_sizeof_;
13684 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13685 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13686 #include <stdio.h>
13687 #include <stdlib.h>
13688 int
13689 main ()
13690 {
13691
13692   FILE *f = fopen ("conftest.val", "w");
13693   if (! f)
13694     return 1;
13695   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13696     {
13697       long int i = longval ();
13698       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13699         return 1;
13700       fprintf (f, "%ld\n", i);
13701     }
13702   else
13703     {
13704       unsigned long int i = ulongval ();
13705       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13706         return 1;
13707       fprintf (f, "%lu\n", i);
13708     }
13709   return ferror (f) || fclose (f) != 0;
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_link") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13726   { (case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_try") 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_cv_sizeof_long=`cat conftest.val`
13736 else
13737   echo "$as_me: program exited with status $ac_status" >&5
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ( exit $ac_status )
13742 if test "$ac_cv_type_long" = yes; then
13743      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long)
13746 See \`config.log' for more details." >&2;}
13747    { (exit 77); exit 77; }; }
13748    else
13749      ac_cv_sizeof_long=0
13750    fi
13751 fi
13752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13753 fi
13754 rm -f conftest.val
13755 fi
13756 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13758
13759
13760
13761 cat >>confdefs.h <<_ACEOF
13762 #define SIZEOF_LONG $ac_cv_sizeof_long
13763 _ACEOF
13764
13765
13766 { echo "$as_me:$LINENO: checking for long long" >&5
13767 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13768 if test "${ac_cv_type_long_long+set}" = set; then
13769   echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771   cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h.  */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h.  */
13777 $ac_includes_default
13778 typedef long long ac__type_new_;
13779 int
13780 main ()
13781 {
13782 if ((ac__type_new_ *) 0)
13783   return 0;
13784 if (sizeof (ac__type_new_))
13785   return 0;
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_compile") 2>conftest.er1
13798   ac_status=$?
13799   grep -v '^ *+' conftest.er1 >conftest.err
13800   rm -f conftest.er1
13801   cat conftest.err >&5
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } && {
13804          test -z "$ac_c_werror_flag" ||
13805          test ! -s conftest.err
13806        } && test -s conftest.$ac_objext; then
13807   ac_cv_type_long_long=yes
13808 else
13809   echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812         ac_cv_type_long_long=no
13813 fi
13814
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 fi
13817 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13818 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13819
13820 # The cast to long int works around a bug in the HP C Compiler
13821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13823 # This bug is HP SR number 8606223364.
13824 { echo "$as_me:$LINENO: checking size of long long" >&5
13825 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13826 if test "${ac_cv_sizeof_long_long+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   if test "$cross_compiling" = yes; then
13830   # Depending upon the size, compute the lo and hi bounds.
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837 $ac_includes_default
13838    typedef long long ac__type_sizeof_;
13839 int
13840 main ()
13841 {
13842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13843 test_array [0] = 0
13844
13845   ;
13846   return 0;
13847 }
13848 _ACEOF
13849 rm -f conftest.$ac_objext
13850 if { (ac_try="$ac_compile"
13851 case "(($ac_try" in
13852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853   *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856   (eval "$ac_compile") 2>conftest.er1
13857   ac_status=$?
13858   grep -v '^ *+' conftest.er1 >conftest.err
13859   rm -f conftest.er1
13860   cat conftest.err >&5
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); } && {
13863          test -z "$ac_c_werror_flag" ||
13864          test ! -s conftest.err
13865        } && test -s conftest.$ac_objext; then
13866   ac_lo=0 ac_mid=0
13867   while :; do
13868     cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 $ac_includes_default
13875    typedef long long ac__type_sizeof_;
13876 int
13877 main ()
13878 {
13879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13880 test_array [0] = 0
13881
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893   (eval "$ac_compile") 2>conftest.er1
13894   ac_status=$?
13895   grep -v '^ *+' conftest.er1 >conftest.err
13896   rm -f conftest.er1
13897   cat conftest.err >&5
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } && {
13900          test -z "$ac_c_werror_flag" ||
13901          test ! -s conftest.err
13902        } && test -s conftest.$ac_objext; then
13903   ac_hi=$ac_mid; break
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908         ac_lo=`expr $ac_mid + 1`
13909                         if test $ac_lo -le $ac_mid; then
13910                           ac_lo= ac_hi=
13911                           break
13912                         fi
13913                         ac_mid=`expr 2 '*' $ac_mid + 1`
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917   done
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922         cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 $ac_includes_default
13929    typedef long long ac__type_sizeof_;
13930 int
13931 main ()
13932 {
13933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13934 test_array [0] = 0
13935
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext
13941 if { (ac_try="$ac_compile"
13942 case "(($ac_try" in
13943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944   *) ac_try_echo=$ac_try;;
13945 esac
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947   (eval "$ac_compile") 2>conftest.er1
13948   ac_status=$?
13949   grep -v '^ *+' conftest.er1 >conftest.err
13950   rm -f conftest.er1
13951   cat conftest.err >&5
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } && {
13954          test -z "$ac_c_werror_flag" ||
13955          test ! -s conftest.err
13956        } && test -s conftest.$ac_objext; then
13957   ac_hi=-1 ac_mid=-1
13958   while :; do
13959     cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965 $ac_includes_default
13966    typedef long long ac__type_sizeof_;
13967 int
13968 main ()
13969 {
13970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13971 test_array [0] = 0
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (ac_try="$ac_compile"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_compile") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } && {
13991          test -z "$ac_c_werror_flag" ||
13992          test ! -s conftest.err
13993        } && test -s conftest.$ac_objext; then
13994   ac_lo=$ac_mid; break
13995 else
13996   echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999         ac_hi=`expr '(' $ac_mid ')' - 1`
14000                         if test $ac_mid -le $ac_hi; then
14001                           ac_lo= ac_hi=
14002                           break
14003                         fi
14004                         ac_mid=`expr 2 '*' $ac_mid`
14005 fi
14006
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008   done
14009 else
14010   echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013         ac_lo= ac_hi=
14014 fi
14015
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 # Binary search between lo and hi bounds.
14021 while test "x$ac_lo" != "x$ac_hi"; do
14022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14023   cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029 $ac_includes_default
14030    typedef long long ac__type_sizeof_;
14031 int
14032 main ()
14033 {
14034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14035 test_array [0] = 0
14036
14037   ;
14038   return 0;
14039 }
14040 _ACEOF
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045   *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048   (eval "$ac_compile") 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } && {
14055          test -z "$ac_c_werror_flag" ||
14056          test ! -s conftest.err
14057        } && test -s conftest.$ac_objext; then
14058   ac_hi=$ac_mid
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063         ac_lo=`expr '(' $ac_mid ')' + 1`
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 done
14068 case $ac_lo in
14069 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14070 '') if test "$ac_cv_type_long_long" = yes; then
14071      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14072 See \`config.log' for more details." >&5
14073 echo "$as_me: error: cannot compute sizeof (long long)
14074 See \`config.log' for more details." >&2;}
14075    { (exit 77); exit 77; }; }
14076    else
14077      ac_cv_sizeof_long_long=0
14078    fi ;;
14079 esac
14080 else
14081   cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087 $ac_includes_default
14088    typedef long long ac__type_sizeof_;
14089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14091 #include <stdio.h>
14092 #include <stdlib.h>
14093 int
14094 main ()
14095 {
14096
14097   FILE *f = fopen ("conftest.val", "w");
14098   if (! f)
14099     return 1;
14100   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14101     {
14102       long int i = longval ();
14103       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14104         return 1;
14105       fprintf (f, "%ld\n", i);
14106     }
14107   else
14108     {
14109       unsigned long int i = ulongval ();
14110       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14111         return 1;
14112       fprintf (f, "%lu\n", i);
14113     }
14114   return ferror (f) || fclose (f) != 0;
14115
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest$ac_exeext
14121 if { (ac_try="$ac_link"
14122 case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_link") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14131   { (case "(($ac_try" in
14132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133   *) ac_try_echo=$ac_try;;
14134 esac
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136   (eval "$ac_try") 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   ac_cv_sizeof_long_long=`cat conftest.val`
14141 else
14142   echo "$as_me: program exited with status $ac_status" >&5
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 ( exit $ac_status )
14147 if test "$ac_cv_type_long_long" = yes; then
14148      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14149 See \`config.log' for more details." >&5
14150 echo "$as_me: error: cannot compute sizeof (long long)
14151 See \`config.log' for more details." >&2;}
14152    { (exit 77); exit 77; }; }
14153    else
14154      ac_cv_sizeof_long_long=0
14155    fi
14156 fi
14157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14158 fi
14159 rm -f conftest.val
14160 fi
14161 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14162 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14163
14164
14165
14166 cat >>confdefs.h <<_ACEOF
14167 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14168 _ACEOF
14169
14170
14171 SIZEOF_SHORT=$ac_cv_sizeof_short
14172 SIZEOF_INT=$ac_cv_sizeof_int
14173 SIZEOF_LONG=$ac_cv_sizeof_long
14174 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14175
14176
14177
14178
14179 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14180 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14181 if test "${ac_cv_c_bigendian+set}" = set; then
14182   echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184   # See if sys/param.h defines the BYTE_ORDER macro.
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h.  */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h.  */
14191 #include <sys/types.h>
14192 #include <sys/param.h>
14193
14194 int
14195 main ()
14196 {
14197 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14198         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14199  bogus endian macros
14200 #endif
14201
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_compile") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } && {
14220          test -z "$ac_c_werror_flag" ||
14221          test ! -s conftest.err
14222        } && test -s conftest.$ac_objext; then
14223   # It does; now see whether it defined to BIG_ENDIAN or not.
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h.  */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h.  */
14230 #include <sys/types.h>
14231 #include <sys/param.h>
14232
14233 int
14234 main ()
14235 {
14236 #if BYTE_ORDER != BIG_ENDIAN
14237  not big endian
14238 #endif
14239
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14258          test -z "$ac_c_werror_flag" ||
14259          test ! -s conftest.err
14260        } && test -s conftest.$ac_objext; then
14261   ac_cv_c_bigendian=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266         ac_cv_c_bigendian=no
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274         # It does not; compile a test program.
14275 if test "$cross_compiling" = yes; then
14276   # try to guess the endianness by grepping values into an object file
14277   ac_cv_c_bigendian=unknown
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14285 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14286 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14287 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14288 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14289 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14290 int
14291 main ()
14292 {
14293  _ascii (); _ebcdic ();
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (ac_try="$ac_compile"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_compile") 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } && {
14312          test -z "$ac_c_werror_flag" ||
14313          test ! -s conftest.err
14314        } && test -s conftest.$ac_objext; then
14315   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14316   ac_cv_c_bigendian=yes
14317 fi
14318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14319   if test "$ac_cv_c_bigendian" = unknown; then
14320     ac_cv_c_bigendian=no
14321   else
14322     # finding both strings is unlikely to happen, but who knows?
14323     ac_cv_c_bigendian=unknown
14324   fi
14325 fi
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330
14331 fi
14332
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 else
14335   cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341 $ac_includes_default
14342 int
14343 main ()
14344 {
14345
14346   /* Are we little or big endian?  From Harbison&Steele.  */
14347   union
14348   {
14349     long int l;
14350     char c[sizeof (long int)];
14351   } u;
14352   u.l = 1;
14353   return u.c[sizeof (long int) - 1] == 1;
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_link") 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14370   { (case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_try") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   ac_cv_c_bigendian=no
14380 else
14381   echo "$as_me: program exited with status $ac_status" >&5
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ( exit $ac_status )
14386 ac_cv_c_bigendian=yes
14387 fi
14388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14389 fi
14390
14391
14392 fi
14393
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 fi
14396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14398 case $ac_cv_c_bigendian in
14399   yes)
14400
14401 cat >>confdefs.h <<\_ACEOF
14402 #define WORDS_BIGENDIAN 1
14403 _ACEOF
14404  ;;
14405   no)
14406      ;;
14407   *)
14408     { { echo "$as_me:$LINENO: error: unknown endianness
14409 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14410 echo "$as_me: error: unknown endianness
14411 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14412    { (exit 1); exit 1; }; } ;;
14413 esac
14414
14415 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14416 ASM_TYPES_HEADER=./asm_types.h
14417
14418
14419 for ac_header in inttypes.h
14420 do
14421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 fi
14428 ac_res=`eval echo '${'$as_ac_Header'}'`
14429                { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14431 else
14432   # Is the header compilable?
14433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 $ac_includes_default
14442 #include <$ac_header>
14443 _ACEOF
14444 rm -f conftest.$ac_objext
14445 if { (ac_try="$ac_compile"
14446 case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_compile") 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } && {
14458          test -z "$ac_c_werror_flag" ||
14459          test ! -s conftest.err
14460        } && test -s conftest.$ac_objext; then
14461   ac_header_compiler=yes
14462 else
14463   echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466         ac_header_compiler=no
14467 fi
14468
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14471 echo "${ECHO_T}$ac_header_compiler" >&6; }
14472
14473 # Is the header present?
14474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482 #include <$ac_header>
14483 _ACEOF
14484 if { (ac_try="$ac_cpp conftest.$ac_ext"
14485 case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } >/dev/null && {
14497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14498          test ! -s conftest.err
14499        }; then
14500   ac_header_preproc=yes
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505   ac_header_preproc=no
14506 fi
14507
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14511
14512 # So?  What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514   yes:no: )
14515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519     ac_header_preproc=yes
14520     ;;
14521   no:yes:* )
14522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14534
14535     ;;
14536 esac
14537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   eval "$as_ac_Header=\$ac_header_preproc"
14543 fi
14544 ac_res=`eval echo '${'$as_ac_Header'}'`
14545                { echo "$as_me:$LINENO: result: $ac_res" >&5
14546 echo "${ECHO_T}$ac_res" >&6; }
14547
14548 fi
14549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14550   cat >>confdefs.h <<_ACEOF
14551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14552 _ACEOF
14553
14554 fi
14555
14556 done
14557
14558 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14559 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14560 if test "${ac_cv_type_intptr_t+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 $ac_includes_default
14570 typedef intptr_t ac__type_new_;
14571 int
14572 main ()
14573 {
14574 if ((ac__type_new_ *) 0)
14575   return 0;
14576 if (sizeof (ac__type_new_))
14577   return 0;
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_compile") 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } && {
14596          test -z "$ac_c_werror_flag" ||
14597          test ! -s conftest.err
14598        } && test -s conftest.$ac_objext; then
14599   ac_cv_type_intptr_t=yes
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604         ac_cv_type_intptr_t=no
14605 fi
14606
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14610 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14611 if test $ac_cv_type_intptr_t = yes; then
14612
14613 cat >>confdefs.h <<_ACEOF
14614 #define HAVE_INTPTR_T 1
14615 _ACEOF
14616
14617
14618 fi
14619
14620 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14621 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14622 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14623   echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625   cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 #include <sys/stat.h>
14632 int
14633 main ()
14634 {
14635 struct stat stat; stat.st_flags = 0;
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext
14641 if { (ac_try="$ac_compile"
14642 case "(($ac_try" in
14643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644   *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647   (eval "$ac_compile") 2>conftest.er1
14648   ac_status=$?
14649   grep -v '^ *+' conftest.er1 >conftest.err
14650   rm -f conftest.er1
14651   cat conftest.err >&5
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } && {
14654          test -z "$ac_c_werror_flag" ||
14655          test ! -s conftest.err
14656        } && test -s conftest.$ac_objext; then
14657   e2fsprogs_cv_struct_st_flags=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         e2fsprogs_cv_struct_st_flags=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667
14668 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14669 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14670 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14671   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14672 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14673   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14674   echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676   cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h.  */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h.  */
14682 #include <sys/stat.h>
14683 int
14684 main ()
14685 {
14686 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_compile") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } && {
14705          test -z "$ac_c_werror_flag" ||
14706          test ! -s conftest.err
14707        } && test -s conftest.$ac_objext; then
14708   e2fsprogs_cv_struct_st_flags_immut=yes
14709 else
14710   echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713         e2fsprogs_cv_struct_st_flags_immut=no
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 fi
14718
14719   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14720 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14721   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14722           cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_STAT_FLAGS 1
14724 _ACEOF
14725
14726   fi
14727 fi
14728 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14729 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14730 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733   cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 #include <sys/types.h>
14740          #include <sys/socket.h>
14741
14742 int
14743 main ()
14744 {
14745 static struct sockaddr ac_aggr;
14746 if (ac_aggr.sa_len)
14747 return 0;
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 rm -f conftest.$ac_objext
14753 if { (ac_try="$ac_compile"
14754 case "(($ac_try" in
14755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756   *) ac_try_echo=$ac_try;;
14757 esac
14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759   (eval "$ac_compile") 2>conftest.er1
14760   ac_status=$?
14761   grep -v '^ *+' conftest.er1 >conftest.err
14762   rm -f conftest.er1
14763   cat conftest.err >&5
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); } && {
14766          test -z "$ac_c_werror_flag" ||
14767          test ! -s conftest.err
14768        } && test -s conftest.$ac_objext; then
14769   ac_cv_member_struct_sockaddr_sa_len=yes
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774         cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h.  */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h.  */
14780 #include <sys/types.h>
14781          #include <sys/socket.h>
14782
14783 int
14784 main ()
14785 {
14786 static struct sockaddr ac_aggr;
14787 if (sizeof ac_aggr.sa_len)
14788 return 0;
14789   ;
14790   return 0;
14791 }
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797   *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800   (eval "$ac_compile") 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } && {
14807          test -z "$ac_c_werror_flag" ||
14808          test ! -s conftest.err
14809        } && test -s conftest.$ac_objext; then
14810   ac_cv_member_struct_sockaddr_sa_len=yes
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815         ac_cv_member_struct_sockaddr_sa_len=no
14816 fi
14817
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 fi
14820
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 fi
14823 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14824 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14825 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14826
14827 cat >>confdefs.h <<_ACEOF
14828 #define HAVE_SA_LEN 1
14829 _ACEOF
14830
14831 fi
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
14863 do
14864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h.  */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h.  */
14876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14878 #define $ac_func innocuous_$ac_func
14879
14880 /* System header to define __stub macros and hopefully few prototypes,
14881     which can conflict with char $ac_func (); below.
14882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14883     <limits.h> exists even on freestanding compilers.  */
14884
14885 #ifdef __STDC__
14886 # include <limits.h>
14887 #else
14888 # include <assert.h>
14889 #endif
14890
14891 #undef $ac_func
14892
14893 /* Override any GCC internal prototype to avoid an error.
14894    Use char because int might match the return type of a GCC
14895    builtin and then its argument prototype would still apply.  */
14896 #ifdef __cplusplus
14897 extern "C"
14898 #endif
14899 char $ac_func ();
14900 /* The GNU C library defines this for functions which it implements
14901     to always fail with ENOSYS.  Some functions are actually named
14902     something starting with __ and the normal name is an alias.  */
14903 #if defined __stub_$ac_func || defined __stub___$ac_func
14904 choke me
14905 #endif
14906
14907 int
14908 main ()
14909 {
14910 return $ac_func ();
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext conftest$ac_exeext
14916 if { (ac_try="$ac_link"
14917 case "(($ac_try" in
14918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919   *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922   (eval "$ac_link") 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } && {
14929          test -z "$ac_c_werror_flag" ||
14930          test ! -s conftest.err
14931        } && test -s conftest$ac_exeext &&
14932        $as_test_x conftest$ac_exeext; then
14933   eval "$as_ac_var=yes"
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938         eval "$as_ac_var=no"
14939 fi
14940
14941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14942       conftest$ac_exeext conftest.$ac_ext
14943 fi
14944 ac_res=`eval echo '${'$as_ac_var'}'`
14945                { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14947 if test `eval echo '${'$as_ac_var'}'` = yes; then
14948   cat >>confdefs.h <<_ACEOF
14949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14950 _ACEOF
14951
14952 fi
14953 done
14954
14955 SOCKET_LIB=''
14956 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14957 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14958 if test "${ac_cv_lib_socket_socket+set}" = set; then
14959   echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961   ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-lsocket  $LIBS"
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h.  */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h.  */
14969
14970 /* Override any GCC internal prototype to avoid an error.
14971    Use char because int might match the return type of a GCC
14972    builtin and then its argument prototype would still apply.  */
14973 #ifdef __cplusplus
14974 extern "C"
14975 #endif
14976 char socket ();
14977 int
14978 main ()
14979 {
14980 return socket ();
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_link") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } && {
14999          test -z "$ac_c_werror_flag" ||
15000          test ! -s conftest.err
15001        } && test -s conftest$ac_exeext &&
15002        $as_test_x conftest$ac_exeext; then
15003   ac_cv_lib_socket_socket=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008         ac_cv_lib_socket_socket=no
15009 fi
15010
15011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15012       conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15014 fi
15015 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15016 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15017 if test $ac_cv_lib_socket_socket = yes; then
15018   SOCKET_LIB=-lsocket
15019 fi
15020
15021
15022 DLOPEN_LIB=''
15023 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15024 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15025 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   ac_check_lib_save_LIBS=$LIBS
15029 LIBS="-ldl  $LIBS"
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
15037 /* Override any GCC internal prototype to avoid an error.
15038    Use char because int might match the return type of a GCC
15039    builtin and then its argument prototype would still apply.  */
15040 #ifdef __cplusplus
15041 extern "C"
15042 #endif
15043 char dlopen ();
15044 int
15045 main ()
15046 {
15047 return dlopen ();
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 rm -f conftest.$ac_objext conftest$ac_exeext
15053 if { (ac_try="$ac_link"
15054 case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_link") 2>conftest.er1
15060   ac_status=$?
15061   grep -v '^ *+' conftest.er1 >conftest.err
15062   rm -f conftest.er1
15063   cat conftest.err >&5
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); } && {
15066          test -z "$ac_c_werror_flag" ||
15067          test ! -s conftest.err
15068        } && test -s conftest$ac_exeext &&
15069        $as_test_x conftest$ac_exeext; then
15070   ac_cv_lib_dl_dlopen=yes
15071 else
15072   echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075         ac_cv_lib_dl_dlopen=no
15076 fi
15077
15078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079       conftest$ac_exeext conftest.$ac_ext
15080 LIBS=$ac_check_lib_save_LIBS
15081 fi
15082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15084 if test $ac_cv_lib_dl_dlopen = yes; then
15085   DLOPEN_LIB=-ldl
15086 cat >>confdefs.h <<\_ACEOF
15087 #define HAVE_DLOPEN 1
15088 _ACEOF
15089
15090 fi
15091
15092
15093 { echo "$as_me:$LINENO: checking for optreset" >&5
15094 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15095 if test "${ac_cv_have_optreset+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104 #include <unistd.h>
15105
15106 _ACEOF
15107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15108   $EGREP "optreset" >/dev/null 2>&1; then
15109   ac_cv_have_optreset=yes
15110 else
15111   ac_cv_have_optreset=no
15112 fi
15113 rm -f conftest*
15114
15115 fi
15116 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15117 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15118 if test $ac_cv_have_optreset = yes; then
15119   cat >>confdefs.h <<\_ACEOF
15120 #define HAVE_OPTRESET 1
15121 _ACEOF
15122
15123 fi
15124 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15125 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15126 if diff -u $0 $0 > /dev/null 2>&1 ; then
15127    UNI_DIFF_OPTS=-u
15128 else
15129    UNI_DIFF_OPTS=-c
15130 fi
15131 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15132 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15133
15134 case "$host_os" in
15135 linux*)
15136         cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_EXT2_IOCTLS 1
15138 _ACEOF
15139
15140         ;;
15141 esac
15142 LINUX_CMT="#"
15143 CYGWIN_CMT="#"
15144 UNIX_CMT=
15145 case "$host_os" in
15146 linux*)
15147         LINUX_CMT=
15148         ;;
15149 cygwin)
15150         CYGWIN_CMT=
15151         UNIX_CMT="#"
15152         ;;
15153 esac
15154
15155
15156
15157 case "$host_os" in
15158 linux* | gnu* | k*bsd*-gnu)
15159         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15160                 root_prefix="";
15161                 echo "On $host_os systems, root_prefix defaults to ''"
15162         fi
15163         ;;
15164 esac
15165 case "$host_os" in
15166 linux* | gnu* | k*bsd*-gnu)
15167         if test "$prefix" = NONE ; then
15168                 prefix="/usr";
15169                 echo "On $host_os systems, prefix defaults to /usr"
15170                 if test "$mandir" = '${prefix}/man' ; then
15171                         echo "...and mandir defaults to /usr/share/man"
15172                         mandir=/usr/share/man
15173                 fi
15174         fi
15175 ;;
15176 esac
15177 if test "$root_prefix" = NONE ; then
15178         if test "$prefix" = NONE ; then
15179                 root_prefix="$ac_default_prefix"
15180         else
15181                 root_prefix="$prefix"
15182         fi
15183         root_bindir=$bindir
15184         root_sbindir=$sbindir
15185         root_libdir=$libdir
15186         root_sysconfdir=$sysconfdir
15187 else
15188         root_bindir='${root_prefix}/bin'
15189         root_sbindir='${root_prefix}/sbin'
15190         root_libdir='${root_prefix}/lib'
15191         root_sysconfdir='${root_prefix}/etc'
15192 fi
15193 if test "$bindir" != '${exec_prefix}/bin'; then
15194     root_bindir=$bindir
15195     echo "Setting root_bindir to $root_bindir"
15196 fi
15197 if test "$sbindir" != '${exec_prefix}/sbin'; then
15198     root_sbindir=$sbindir
15199     echo "Setting root_sbindir to $root_sbindir"
15200 fi
15201 if test "$libdir" != '${exec_prefix}/lib'; then
15202     root_libdir=$libdir
15203     echo "Setting root_libdir to $root_libdir"
15204 fi
15205 if test "$sysconfdir" != '${prefix}/etc'; then
15206     root_sysconfdir=$sysconfdir
15207     echo "Setting root_sysconfdir to $root_sysconfdir"
15208 fi
15209
15210
15211
15212
15213
15214 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15215 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15216 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 #include <stdio.h>
15227 int
15228 main ()
15229 {
15230 fflush(stdout);
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (ac_try="$ac_link"
15237 case "(($ac_try" in
15238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239   *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242   (eval "$ac_link") 2>conftest.er1
15243   ac_status=$?
15244   grep -v '^ *+' conftest.er1 >conftest.err
15245   rm -f conftest.er1
15246   cat conftest.err >&5
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } && {
15249          test -z "$ac_c_werror_flag" ||
15250          test ! -s conftest.err
15251        } && test -s conftest$ac_exeext &&
15252        $as_test_x conftest$ac_exeext; then
15253   ac_cv_e2fsprogs_use_static=yes
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258         ac_cv_e2fsprogs_use_static=no
15259 fi
15260
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262       conftest$ac_exeext conftest.$ac_ext
15263 LDFLAGS=$SAVE_LDFLAGS
15264 fi
15265
15266 case "$host_os" in
15267 solaris2.*)
15268         ac_cv_e2fsprogs_use_static=no
15269 ;;
15270 esac
15271 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15272 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15273 LDFLAG_STATIC=
15274 if test $ac_cv_e2fsprogs_use_static = yes; then
15275         LDFLAG_STATIC=-static
15276 fi
15277
15278 case "$host_os" in
15279 darwin*)
15280         echo "Using Apple Darwin / GNU libintl workaround"
15281         cat >>confdefs.h <<\_ACEOF
15282 #define _INTL_REDIRECT_MACROS 1
15283 _ACEOF
15284
15285         ;;
15286 esac
15287 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15288 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15289
15290
15291 if test "$cross_compiling" = yes ; then
15292   DO_TEST_SUITE=
15293 else
15294   DO_TEST_SUITE=check
15295 fi
15296
15297 INTL_FLAGS=
15298 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15299         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15300 fi
15301
15302 if test $cross_compiling = no; then
15303    BUILD_CFLAGS="$CFLAGS"
15304    BUILD_LDFLAGS="$LDFLAGS"
15305 else
15306    BUILD_CFLAGS=
15307    BUILD_LDFLAGS=
15308 fi
15309
15310
15311 test -d lib || mkdir lib
15312 test -d include || mkdir include
15313 test -d include/linux || mkdir include/linux
15314 test -d include/asm || mkdir include/asm
15315 for i in MCONFIG Makefile e2fsprogs.spec \
15316         util/Makefile util/subst.conf util/gen-tarball \
15317         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15318         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15319         lib/uuid/Makefile lib/uuid/uuid_types.h \
15320         lib/blkid/Makefile lib/blkid/blkid_types.h \
15321         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15322         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15323         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15324         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15325         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15326         if test -d `dirname ${srcdir}/$i` ; then
15327                 outlist="$outlist $i"
15328         fi
15329 done
15330 ac_config_files="$ac_config_files $outlist"
15331
15332 cat >confcache <<\_ACEOF
15333 # This file is a shell script that caches the results of configure
15334 # tests run on this system so they can be shared between configure
15335 # scripts and configure runs, see configure's option --config-cache.
15336 # It is not useful on other systems.  If it contains results you don't
15337 # want to keep, you may remove or edit it.
15338 #
15339 # config.status only pays attention to the cache file if you give it
15340 # the --recheck option to rerun configure.
15341 #
15342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15344 # following values.
15345
15346 _ACEOF
15347
15348 # The following way of writing the cache mishandles newlines in values,
15349 # but we know of no workaround that is simple, portable, and efficient.
15350 # So, we kill variables containing newlines.
15351 # Ultrix sh set writes to stderr and can't be redirected directly,
15352 # and sets the high bit in the cache file unless we assign to the vars.
15353 (
15354   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15355     eval ac_val=\$$ac_var
15356     case $ac_val in #(
15357     *${as_nl}*)
15358       case $ac_var in #(
15359       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15361       esac
15362       case $ac_var in #(
15363       _ | IFS | as_nl) ;; #(
15364       *) $as_unset $ac_var ;;
15365       esac ;;
15366     esac
15367   done
15368
15369   (set) 2>&1 |
15370     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15371     *${as_nl}ac_space=\ *)
15372       # `set' does not quote correctly, so add quotes (double-quote
15373       # substitution turns \\\\ into \\, and sed turns \\ into \).
15374       sed -n \
15375         "s/'/'\\\\''/g;
15376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15377       ;; #(
15378     *)
15379       # `set' quotes correctly as required by POSIX, so do not add quotes.
15380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15381       ;;
15382     esac |
15383     sort
15384 ) |
15385   sed '
15386      /^ac_cv_env_/b end
15387      t clear
15388      :clear
15389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15390      t end
15391      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15392      :end' >>confcache
15393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15394   if test -w "$cache_file"; then
15395     test "x$cache_file" != "x/dev/null" &&
15396       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15397 echo "$as_me: updating cache $cache_file" >&6;}
15398     cat confcache >$cache_file
15399   else
15400     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15402   fi
15403 fi
15404 rm -f confcache
15405
15406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15407 # Let make expand exec_prefix.
15408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15409
15410 # Transform confdefs.h into DEFS.
15411 # Protect against shell expansion while executing Makefile rules.
15412 # Protect against Makefile macro expansion.
15413 #
15414 # If the first sed substitution is executed (which looks for macros that
15415 # take arguments), then branch to the quote section.  Otherwise,
15416 # look for a macro that doesn't take arguments.
15417 ac_script='
15418 t clear
15419 :clear
15420 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15421 t quote
15422 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15423 t quote
15424 b any
15425 :quote
15426 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15427 s/\[/\\&/g
15428 s/\]/\\&/g
15429 s/\$/$$/g
15430 H
15431 :any
15432 ${
15433         g
15434         s/^\n//
15435         s/\n/ /g
15436         p
15437 }
15438 '
15439 DEFS=`sed -n "$ac_script" confdefs.h`
15440
15441
15442 ac_libobjs=
15443 ac_ltlibobjs=
15444 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15445   # 1. Remove the extension, and $U if already installed.
15446   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15447   ac_i=`echo "$ac_i" | sed "$ac_script"`
15448   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15449   #    will be set to the directory where LIBOBJS objects are built.
15450   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15451   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15452 done
15453 LIBOBJS=$ac_libobjs
15454
15455 LTLIBOBJS=$ac_ltlibobjs
15456
15457
15458
15459 : ${CONFIG_STATUS=./config.status}
15460 ac_clean_files_save=$ac_clean_files
15461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15464 cat >$CONFIG_STATUS <<_ACEOF
15465 #! $SHELL
15466 # Generated by $as_me.
15467 # Run this file to recreate the current configuration.
15468 # Compiler output produced by configure, useful for debugging
15469 # configure, is in config.log if it exists.
15470
15471 debug=false
15472 ac_cs_recheck=false
15473 ac_cs_silent=false
15474 SHELL=\${CONFIG_SHELL-$SHELL}
15475 _ACEOF
15476
15477 cat >>$CONFIG_STATUS <<\_ACEOF
15478 ## --------------------- ##
15479 ## M4sh Initialization.  ##
15480 ## --------------------- ##
15481
15482 # Be more Bourne compatible
15483 DUALCASE=1; export DUALCASE # for MKS sh
15484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15485   emulate sh
15486   NULLCMD=:
15487   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15488   # is contrary to our usage.  Disable this feature.
15489   alias -g '${1+"$@"}'='"$@"'
15490   setopt NO_GLOB_SUBST
15491 else
15492   case `(set -o) 2>/dev/null` in
15493   *posix*) set -o posix ;;
15494 esac
15495
15496 fi
15497
15498
15499
15500
15501 # PATH needs CR
15502 # Avoid depending upon Character Ranges.
15503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15506 as_cr_digits='0123456789'
15507 as_cr_alnum=$as_cr_Letters$as_cr_digits
15508
15509 # The user is always right.
15510 if test "${PATH_SEPARATOR+set}" != set; then
15511   echo "#! /bin/sh" >conf$$.sh
15512   echo  "exit 0"   >>conf$$.sh
15513   chmod +x conf$$.sh
15514   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15515     PATH_SEPARATOR=';'
15516   else
15517     PATH_SEPARATOR=:
15518   fi
15519   rm -f conf$$.sh
15520 fi
15521
15522 # Support unset when possible.
15523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15524   as_unset=unset
15525 else
15526   as_unset=false
15527 fi
15528
15529
15530 # IFS
15531 # We need space, tab and new line, in precisely that order.  Quoting is
15532 # there to prevent editors from complaining about space-tab.
15533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15534 # splitting by setting IFS to empty value.)
15535 as_nl='
15536 '
15537 IFS=" ""        $as_nl"
15538
15539 # Find who we are.  Look in the path if we contain no directory separator.
15540 case $0 in
15541   *[\\/]* ) as_myself=$0 ;;
15542   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15543 for as_dir in $PATH
15544 do
15545   IFS=$as_save_IFS
15546   test -z "$as_dir" && as_dir=.
15547   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15548 done
15549 IFS=$as_save_IFS
15550
15551      ;;
15552 esac
15553 # We did not find ourselves, most probably we were run as `sh COMMAND'
15554 # in which case we are not to be found in the path.
15555 if test "x$as_myself" = x; then
15556   as_myself=$0
15557 fi
15558 if test ! -f "$as_myself"; then
15559   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15560   { (exit 1); exit 1; }
15561 fi
15562
15563 # Work around bugs in pre-3.0 UWIN ksh.
15564 for as_var in ENV MAIL MAILPATH
15565 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15566 done
15567 PS1='$ '
15568 PS2='> '
15569 PS4='+ '
15570
15571 # NLS nuisances.
15572 for as_var in \
15573   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15574   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15575   LC_TELEPHONE LC_TIME
15576 do
15577   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15578     eval $as_var=C; export $as_var
15579   else
15580     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15581   fi
15582 done
15583
15584 # Required to use basename.
15585 if expr a : '\(a\)' >/dev/null 2>&1 &&
15586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15587   as_expr=expr
15588 else
15589   as_expr=false
15590 fi
15591
15592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15593   as_basename=basename
15594 else
15595   as_basename=false
15596 fi
15597
15598
15599 # Name of the executable.
15600 as_me=`$as_basename -- "$0" ||
15601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15602          X"$0" : 'X\(//\)$' \| \
15603          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15604 echo X/"$0" |
15605     sed '/^.*\/\([^/][^/]*\)\/*$/{
15606             s//\1/
15607             q
15608           }
15609           /^X\/\(\/\/\)$/{
15610             s//\1/
15611             q
15612           }
15613           /^X\/\(\/\).*/{
15614             s//\1/
15615             q
15616           }
15617           s/.*/./; q'`
15618
15619 # CDPATH.
15620 $as_unset CDPATH
15621
15622
15623
15624   as_lineno_1=$LINENO
15625   as_lineno_2=$LINENO
15626   test "x$as_lineno_1" != "x$as_lineno_2" &&
15627   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15628
15629   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15630   # uniformly replaced by the line number.  The first 'sed' inserts a
15631   # line-number line after each line using $LINENO; the second 'sed'
15632   # does the real work.  The second script uses 'N' to pair each
15633   # line-number line with the line containing $LINENO, and appends
15634   # trailing '-' during substitution so that $LINENO is not a special
15635   # case at line end.
15636   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15637   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15638   # E. McMahon (1931-1989) for sed's syntax.  :-)
15639   sed -n '
15640     p
15641     /[$]LINENO/=
15642   ' <$as_myself |
15643     sed '
15644       s/[$]LINENO.*/&-/
15645       t lineno
15646       b
15647       :lineno
15648       N
15649       :loop
15650       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15651       t loop
15652       s/-\n.*//
15653     ' >$as_me.lineno &&
15654   chmod +x "$as_me.lineno" ||
15655     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15656    { (exit 1); exit 1; }; }
15657
15658   # Don't try to exec as it changes $[0], causing all sort of problems
15659   # (the dirname of $[0] is not the place where we might find the
15660   # original and so on.  Autoconf is especially sensitive to this).
15661   . "./$as_me.lineno"
15662   # Exit status is that of the last command.
15663   exit
15664 }
15665
15666
15667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15668   as_dirname=dirname
15669 else
15670   as_dirname=false
15671 fi
15672
15673 ECHO_C= ECHO_N= ECHO_T=
15674 case `echo -n x` in
15675 -n*)
15676   case `echo 'x\c'` in
15677   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15678   *)   ECHO_C='\c';;
15679   esac;;
15680 *)
15681   ECHO_N='-n';;
15682 esac
15683
15684 if expr a : '\(a\)' >/dev/null 2>&1 &&
15685    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15686   as_expr=expr
15687 else
15688   as_expr=false
15689 fi
15690
15691 rm -f conf$$ conf$$.exe conf$$.file
15692 if test -d conf$$.dir; then
15693   rm -f conf$$.dir/conf$$.file
15694 else
15695   rm -f conf$$.dir
15696   mkdir conf$$.dir
15697 fi
15698 echo >conf$$.file
15699 if ln -s conf$$.file conf$$ 2>/dev/null; then
15700   as_ln_s='ln -s'
15701   # ... but there are two gotchas:
15702   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15703   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15704   # In both cases, we have to default to `cp -p'.
15705   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15706     as_ln_s='cp -p'
15707 elif ln conf$$.file conf$$ 2>/dev/null; then
15708   as_ln_s=ln
15709 else
15710   as_ln_s='cp -p'
15711 fi
15712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15713 rmdir conf$$.dir 2>/dev/null
15714
15715 if mkdir -p . 2>/dev/null; then
15716   as_mkdir_p=:
15717 else
15718   test -d ./-p && rmdir ./-p
15719   as_mkdir_p=false
15720 fi
15721
15722 if test -x / >/dev/null 2>&1; then
15723   as_test_x='test -x'
15724 else
15725   if ls -dL / >/dev/null 2>&1; then
15726     as_ls_L_option=L
15727   else
15728     as_ls_L_option=
15729   fi
15730   as_test_x='
15731     eval sh -c '\''
15732       if test -d "$1"; then
15733         test -d "$1/.";
15734       else
15735         case $1 in
15736         -*)set "./$1";;
15737         esac;
15738         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15739         ???[sx]*):;;*)false;;esac;fi
15740     '\'' sh
15741   '
15742 fi
15743 as_executable_p=$as_test_x
15744
15745 # Sed expression to map a string onto a valid CPP name.
15746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15747
15748 # Sed expression to map a string onto a valid variable name.
15749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15750
15751
15752 exec 6>&1
15753
15754 # Save the log message, to keep $[0] and so on meaningful, and to
15755 # report actual input values of CONFIG_FILES etc. instead of their
15756 # values after options handling.
15757 ac_log="
15758 This file was extended by $as_me, which was
15759 generated by GNU Autoconf 2.61.  Invocation command line was
15760
15761   CONFIG_FILES    = $CONFIG_FILES
15762   CONFIG_HEADERS  = $CONFIG_HEADERS
15763   CONFIG_LINKS    = $CONFIG_LINKS
15764   CONFIG_COMMANDS = $CONFIG_COMMANDS
15765   $ $0 $@
15766
15767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15768 "
15769
15770 _ACEOF
15771
15772 cat >>$CONFIG_STATUS <<_ACEOF
15773 # Files that config.status was made for.
15774 config_files="$ac_config_files"
15775 config_commands="$ac_config_commands"
15776
15777 _ACEOF
15778
15779 cat >>$CONFIG_STATUS <<\_ACEOF
15780 ac_cs_usage="\
15781 \`$as_me' instantiates files from templates according to the
15782 current configuration.
15783
15784 Usage: $0 [OPTIONS] [FILE]...
15785
15786   -h, --help       print this help, then exit
15787   -V, --version    print version number and configuration settings, then exit
15788   -q, --quiet      do not print progress messages
15789   -d, --debug      don't remove temporary files
15790       --recheck    update $as_me by reconfiguring in the same conditions
15791   --file=FILE[:TEMPLATE]
15792                    instantiate the configuration file FILE
15793
15794 Configuration files:
15795 $config_files
15796
15797 Configuration commands:
15798 $config_commands
15799
15800 Report bugs to <bug-autoconf@gnu.org>."
15801
15802 _ACEOF
15803 cat >>$CONFIG_STATUS <<_ACEOF
15804 ac_cs_version="\\
15805 config.status
15806 configured by $0, generated by GNU Autoconf 2.61,
15807   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15808
15809 Copyright (C) 2006 Free Software Foundation, Inc.
15810 This config.status script is free software; the Free Software Foundation
15811 gives unlimited permission to copy, distribute and modify it."
15812
15813 ac_pwd='$ac_pwd'
15814 srcdir='$srcdir'
15815 INSTALL='$INSTALL'
15816 _ACEOF
15817
15818 cat >>$CONFIG_STATUS <<\_ACEOF
15819 # If no file are specified by the user, then we need to provide default
15820 # value.  By we need to know if files were specified by the user.
15821 ac_need_defaults=:
15822 while test $# != 0
15823 do
15824   case $1 in
15825   --*=*)
15826     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15827     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15828     ac_shift=:
15829     ;;
15830   *)
15831     ac_option=$1
15832     ac_optarg=$2
15833     ac_shift=shift
15834     ;;
15835   esac
15836
15837   case $ac_option in
15838   # Handling of the options.
15839   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15840     ac_cs_recheck=: ;;
15841   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15842     echo "$ac_cs_version"; exit ;;
15843   --debug | --debu | --deb | --de | --d | -d )
15844     debug=: ;;
15845   --file | --fil | --fi | --f )
15846     $ac_shift
15847     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15848     ac_need_defaults=false;;
15849   --he | --h |  --help | --hel | -h )
15850     echo "$ac_cs_usage"; exit ;;
15851   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15853     ac_cs_silent=: ;;
15854
15855   # This is an error.
15856   -*) { echo "$as_me: error: unrecognized option: $1
15857 Try \`$0 --help' for more information." >&2
15858    { (exit 1); exit 1; }; } ;;
15859
15860   *) ac_config_targets="$ac_config_targets $1"
15861      ac_need_defaults=false ;;
15862
15863   esac
15864   shift
15865 done
15866
15867 ac_configure_extra_args=
15868
15869 if $ac_cs_silent; then
15870   exec 6>/dev/null
15871   ac_configure_extra_args="$ac_configure_extra_args --silent"
15872 fi
15873
15874 _ACEOF
15875 cat >>$CONFIG_STATUS <<_ACEOF
15876 if \$ac_cs_recheck; then
15877   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15878   CONFIG_SHELL=$SHELL
15879   export CONFIG_SHELL
15880   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15881 fi
15882
15883 _ACEOF
15884 cat >>$CONFIG_STATUS <<\_ACEOF
15885 exec 5>>config.log
15886 {
15887   echo
15888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15889 ## Running $as_me. ##
15890 _ASBOX
15891   echo "$ac_log"
15892 } >&5
15893
15894 _ACEOF
15895 cat >>$CONFIG_STATUS <<_ACEOF
15896 #
15897 # INIT-COMMANDS
15898 #
15899 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15900     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15901     # from automake.
15902     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15903     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15904     LINGUAS="${LINGUAS-%UNSET%}"
15905
15906
15907 _ACEOF
15908
15909 cat >>$CONFIG_STATUS <<\_ACEOF
15910
15911 # Handling of arguments.
15912 for ac_config_target in $ac_config_targets
15913 do
15914   case $ac_config_target in
15915     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15916     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15917
15918   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15920    { (exit 1); exit 1; }; };;
15921   esac
15922 done
15923
15924
15925 # If the user did not use the arguments to specify the items to instantiate,
15926 # then the envvar interface is used.  Set only those that are not.
15927 # We use the long form for the default assignment because of an extremely
15928 # bizarre bug on SunOS 4.1.3.
15929 if $ac_need_defaults; then
15930   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15932 fi
15933
15934 # Have a temporary directory for convenience.  Make it in the build tree
15935 # simply because there is no reason against having it here, and in addition,
15936 # creating and moving files from /tmp can sometimes cause problems.
15937 # Hook for its removal unless debugging.
15938 # Note that there is a small window in which the directory will not be cleaned:
15939 # after its creation but before its name has been assigned to `$tmp'.
15940 $debug ||
15941 {
15942   tmp=
15943   trap 'exit_status=$?
15944   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15945 ' 0
15946   trap '{ (exit 1); exit 1; }' 1 2 13 15
15947 }
15948 # Create a (secure) tmp directory for tmp files.
15949
15950 {
15951   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15952   test -n "$tmp" && test -d "$tmp"
15953 }  ||
15954 {
15955   tmp=./conf$$-$RANDOM
15956   (umask 077 && mkdir "$tmp")
15957 } ||
15958 {
15959    echo "$me: cannot create a temporary directory in ." >&2
15960    { (exit 1); exit 1; }
15961 }
15962
15963 #
15964 # Set up the sed scripts for CONFIG_FILES section.
15965 #
15966
15967 # No need to generate the scripts if there are no CONFIG_FILES.
15968 # This happens for instance when ./config.status config.h
15969 if test -n "$CONFIG_FILES"; then
15970
15971 _ACEOF
15972
15973 # Create sed commands to just substitute file output variables.
15974
15975 # Remaining file output variables are in a fragment that also has non-file
15976 # output varibles.
15977
15978
15979
15980 ac_delim='%!_!# '
15981 for ac_last_try in false false false false false :; do
15982   cat >conf$$subs.sed <<_ACEOF
15983 SHELL!$SHELL$ac_delim
15984 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15985 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15986 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15987 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15988 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15989 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15990 exec_prefix!$exec_prefix$ac_delim
15991 prefix!$prefix$ac_delim
15992 program_transform_name!$program_transform_name$ac_delim
15993 bindir!$bindir$ac_delim
15994 sbindir!$sbindir$ac_delim
15995 libexecdir!$libexecdir$ac_delim
15996 datarootdir!$datarootdir$ac_delim
15997 datadir!$datadir$ac_delim
15998 sysconfdir!$sysconfdir$ac_delim
15999 sharedstatedir!$sharedstatedir$ac_delim
16000 localstatedir!$localstatedir$ac_delim
16001 includedir!$includedir$ac_delim
16002 oldincludedir!$oldincludedir$ac_delim
16003 docdir!$docdir$ac_delim
16004 infodir!$infodir$ac_delim
16005 htmldir!$htmldir$ac_delim
16006 dvidir!$dvidir$ac_delim
16007 pdfdir!$pdfdir$ac_delim
16008 psdir!$psdir$ac_delim
16009 libdir!$libdir$ac_delim
16010 localedir!$localedir$ac_delim
16011 mandir!$mandir$ac_delim
16012 DEFS!$DEFS$ac_delim
16013 ECHO_C!$ECHO_C$ac_delim
16014 ECHO_N!$ECHO_N$ac_delim
16015 ECHO_T!$ECHO_T$ac_delim
16016 LIBS!$LIBS$ac_delim
16017 build_alias!$build_alias$ac_delim
16018 host_alias!$host_alias$ac_delim
16019 target_alias!$target_alias$ac_delim
16020 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16021 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16022 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16023 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16024 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16025 build!$build$ac_delim
16026 build_cpu!$build_cpu$ac_delim
16027 build_vendor!$build_vendor$ac_delim
16028 build_os!$build_os$ac_delim
16029 host!$host$ac_delim
16030 host_cpu!$host_cpu$ac_delim
16031 host_vendor!$host_vendor$ac_delim
16032 host_os!$host_os$ac_delim
16033 CC!$CC$ac_delim
16034 CFLAGS!$CFLAGS$ac_delim
16035 LDFLAGS!$LDFLAGS$ac_delim
16036 CPPFLAGS!$CPPFLAGS$ac_delim
16037 ac_ct_CC!$ac_ct_CC$ac_delim
16038 EXEEXT!$EXEEXT$ac_delim
16039 OBJEXT!$OBJEXT$ac_delim
16040 CPP!$CPP$ac_delim
16041 LD!$LD$ac_delim
16042 GREP!$GREP$ac_delim
16043 EGREP!$EGREP$ac_delim
16044 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16045 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16046 HTREE_CMT!$HTREE_CMT$ac_delim
16047 ELF_CMT!$ELF_CMT$ac_delim
16048 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16049 PROFILE_CMT!$PROFILE_CMT$ac_delim
16050 CHECKER_CMT!$CHECKER_CMT$ac_delim
16051 LIB_EXT!$LIB_EXT$ac_delim
16052 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16053 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16054 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16055 IMAGER_CMT!$IMAGER_CMT$ac_delim
16056 RESIZER_CMT!$RESIZER_CMT$ac_delim
16057 FSCK_PROG!$FSCK_PROG$ac_delim
16058 FSCK_MAN!$FSCK_MAN$ac_delim
16059 _ACEOF
16060
16061   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16062     break
16063   elif $ac_last_try; then
16064     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16066    { (exit 1); exit 1; }; }
16067   else
16068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16069   fi
16070 done
16071
16072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16073 if test -n "$ac_eof"; then
16074   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16075   ac_eof=`expr $ac_eof + 1`
16076 fi
16077
16078 cat >>$CONFIG_STATUS <<_ACEOF
16079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16081 /^[      ]*@MCONFIG@[    ]*$/{
16082 r $MCONFIG
16083 d
16084 }
16085 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16086 r $MAKEFILE_ELF
16087 d
16088 }
16089 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16090 r $MAKEFILE_BSDLIB
16091 d
16092 }
16093 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16094 r $MAKEFILE_PROFILE
16095 d
16096 }
16097 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16098 r $MAKEFILE_CHECKER
16099 d
16100 }
16101 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16102 r $MAKEFILE_LIBRARY
16103 d
16104 }
16105 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16106 r $ASM_TYPES_HEADER
16107 d
16108 }
16109 _ACEOF
16110 sed '
16111 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16112 s/^/s,@/; s/!/@,|#_!!_#|/
16113 :n
16114 t n
16115 s/'"$ac_delim"'$/,g/; t
16116 s/$/\\/; p
16117 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16118 ' >>$CONFIG_STATUS <conf$$subs.sed
16119 rm -f conf$$subs.sed
16120 cat >>$CONFIG_STATUS <<_ACEOF
16121 CEOF$ac_eof
16122 _ACEOF
16123
16124
16125 ac_delim='%!_!# '
16126 for ac_last_try in false false false false false :; do
16127   cat >conf$$subs.sed <<_ACEOF
16128 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16129 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16130 PKG_CONFIG!$PKG_CONFIG$ac_delim
16131 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16132 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16133 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16134 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16135 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16136 UUIDD_CMT!$UUIDD_CMT$ac_delim
16137 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16138 PACKAGE!$PACKAGE$ac_delim
16139 VERSION!$VERSION$ac_delim
16140 SET_MAKE!$SET_MAKE$ac_delim
16141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16143 INSTALL_DATA!$INSTALL_DATA$ac_delim
16144 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16145 USE_NLS!$USE_NLS$ac_delim
16146 MSGFMT!$MSGFMT$ac_delim
16147 GMSGFMT!$GMSGFMT$ac_delim
16148 XGETTEXT!$XGETTEXT$ac_delim
16149 MSGMERGE!$MSGMERGE$ac_delim
16150 RANLIB!$RANLIB$ac_delim
16151 ALLOCA!$ALLOCA$ac_delim
16152 GLIBC21!$GLIBC21$ac_delim
16153 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16154 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16155 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16156 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16157 LIBICONV!$LIBICONV$ac_delim
16158 LTLIBICONV!$LTLIBICONV$ac_delim
16159 INTLBISON!$INTLBISON$ac_delim
16160 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16161 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16162 CATOBJEXT!$CATOBJEXT$ac_delim
16163 DATADIRNAME!$DATADIRNAME$ac_delim
16164 INSTOBJEXT!$INSTOBJEXT$ac_delim
16165 GENCAT!$GENCAT$ac_delim
16166 INTLOBJS!$INTLOBJS$ac_delim
16167 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16168 INTLLIBS!$INTLLIBS$ac_delim
16169 LIBINTL!$LIBINTL$ac_delim
16170 LTLIBINTL!$LTLIBINTL$ac_delim
16171 POSUB!$POSUB$ac_delim
16172 BINARY_TYPE!$BINARY_TYPE$ac_delim
16173 LN!$LN$ac_delim
16174 LN_S!$LN_S$ac_delim
16175 MV!$MV$ac_delim
16176 CP!$CP$ac_delim
16177 RM!$RM$ac_delim
16178 CHMOD!$CHMOD$ac_delim
16179 AWK!$AWK$ac_delim
16180 SED!$SED$ac_delim
16181 PERL!$PERL$ac_delim
16182 LDCONFIG!$LDCONFIG$ac_delim
16183 AR!$AR$ac_delim
16184 STRIP!$STRIP$ac_delim
16185 MAKEINFO!$MAKEINFO$ac_delim
16186 BUILD_CC!$BUILD_CC$ac_delim
16187 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16188 SIZEOF_INT!$SIZEOF_INT$ac_delim
16189 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16190 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16191 SOCKET_LIB!$SOCKET_LIB$ac_delim
16192 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16193 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16194 LINUX_CMT!$LINUX_CMT$ac_delim
16195 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16196 UNIX_CMT!$UNIX_CMT$ac_delim
16197 root_prefix!$root_prefix$ac_delim
16198 root_bindir!$root_bindir$ac_delim
16199 root_sbindir!$root_sbindir$ac_delim
16200 root_libdir!$root_libdir$ac_delim
16201 root_sysconfdir!$root_sysconfdir$ac_delim
16202 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16203 SS_DIR!$SS_DIR$ac_delim
16204 ET_DIR!$ET_DIR$ac_delim
16205 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16206 INTL_FLAGS!$INTL_FLAGS$ac_delim
16207 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16208 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16209 LIBOBJS!$LIBOBJS$ac_delim
16210 LTLIBOBJS!$LTLIBOBJS$ac_delim
16211 _ACEOF
16212
16213   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
16214     break
16215   elif $ac_last_try; then
16216     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16218    { (exit 1); exit 1; }; }
16219   else
16220     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16221   fi
16222 done
16223
16224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16225 if test -n "$ac_eof"; then
16226   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16227   ac_eof=`expr $ac_eof + 1`
16228 fi
16229
16230 cat >>$CONFIG_STATUS <<_ACEOF
16231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16233 _ACEOF
16234 sed '
16235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16236 s/^/s,@/; s/!/@,|#_!!_#|/
16237 :n
16238 t n
16239 s/'"$ac_delim"'$/,g/; t
16240 s/$/\\/; p
16241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16242 ' >>$CONFIG_STATUS <conf$$subs.sed
16243 rm -f conf$$subs.sed
16244 cat >>$CONFIG_STATUS <<_ACEOF
16245 :end
16246 s/|#_!!_#|//g
16247 CEOF$ac_eof
16248 _ACEOF
16249
16250
16251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16253 # trailing colons and then remove the whole line if VPATH becomes empty
16254 # (actually we leave an empty line to preserve line numbers).
16255 if test "x$srcdir" = x.; then
16256   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16257 s/:*\$(srcdir):*/:/
16258 s/:*\${srcdir}:*/:/
16259 s/:*@srcdir@:*/:/
16260 s/^\([^=]*=[     ]*\):*/\1/
16261 s/:*$//
16262 s/^[^=]*=[       ]*$//
16263 }'
16264 fi
16265
16266 cat >>$CONFIG_STATUS <<\_ACEOF
16267 fi # test -n "$CONFIG_FILES"
16268
16269
16270 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16271 do
16272   case $ac_tag in
16273   :[FHLC]) ac_mode=$ac_tag; continue;;
16274   esac
16275   case $ac_mode$ac_tag in
16276   :[FHL]*:*);;
16277   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16278 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16279    { (exit 1); exit 1; }; };;
16280   :[FH]-) ac_tag=-:-;;
16281   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16282   esac
16283   ac_save_IFS=$IFS
16284   IFS=:
16285   set x $ac_tag
16286   IFS=$ac_save_IFS
16287   shift
16288   ac_file=$1
16289   shift
16290
16291   case $ac_mode in
16292   :L) ac_source=$1;;
16293   :[FH])
16294     ac_file_inputs=
16295     for ac_f
16296     do
16297       case $ac_f in
16298       -) ac_f="$tmp/stdin";;
16299       *) # Look for the file first in the build tree, then in the source tree
16300          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16301          # because $ac_f cannot contain `:'.
16302          test -f "$ac_f" ||
16303            case $ac_f in
16304            [\\/$]*) false;;
16305            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16306            esac ||
16307            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16308 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16309    { (exit 1); exit 1; }; };;
16310       esac
16311       ac_file_inputs="$ac_file_inputs $ac_f"
16312     done
16313
16314     # Let's still pretend it is `configure' which instantiates (i.e., don't
16315     # use $as_me), people would be surprised to read:
16316     #    /* config.h.  Generated by config.status.  */
16317     configure_input="Generated from "`IFS=:
16318           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16319     if test x"$ac_file" != x-; then
16320       configure_input="$ac_file.  $configure_input"
16321       { echo "$as_me:$LINENO: creating $ac_file" >&5
16322 echo "$as_me: creating $ac_file" >&6;}
16323     fi
16324
16325     case $ac_tag in
16326     *:-:* | *:-) cat >"$tmp/stdin";;
16327     esac
16328     ;;
16329   esac
16330
16331   ac_dir=`$as_dirname -- "$ac_file" ||
16332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333          X"$ac_file" : 'X\(//\)[^/]' \| \
16334          X"$ac_file" : 'X\(//\)$' \| \
16335          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16336 echo X"$ac_file" |
16337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16338             s//\1/
16339             q
16340           }
16341           /^X\(\/\/\)[^/].*/{
16342             s//\1/
16343             q
16344           }
16345           /^X\(\/\/\)$/{
16346             s//\1/
16347             q
16348           }
16349           /^X\(\/\).*/{
16350             s//\1/
16351             q
16352           }
16353           s/.*/./; q'`
16354   { as_dir="$ac_dir"
16355   case $as_dir in #(
16356   -*) as_dir=./$as_dir;;
16357   esac
16358   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16359     as_dirs=
16360     while :; do
16361       case $as_dir in #(
16362       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16363       *) as_qdir=$as_dir;;
16364       esac
16365       as_dirs="'$as_qdir' $as_dirs"
16366       as_dir=`$as_dirname -- "$as_dir" ||
16367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368          X"$as_dir" : 'X\(//\)[^/]' \| \
16369          X"$as_dir" : 'X\(//\)$' \| \
16370          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16371 echo X"$as_dir" |
16372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16373             s//\1/
16374             q
16375           }
16376           /^X\(\/\/\)[^/].*/{
16377             s//\1/
16378             q
16379           }
16380           /^X\(\/\/\)$/{
16381             s//\1/
16382             q
16383           }
16384           /^X\(\/\).*/{
16385             s//\1/
16386             q
16387           }
16388           s/.*/./; q'`
16389       test -d "$as_dir" && break
16390     done
16391     test -z "$as_dirs" || eval "mkdir $as_dirs"
16392   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16394    { (exit 1); exit 1; }; }; }
16395   ac_builddir=.
16396
16397 case "$ac_dir" in
16398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16399 *)
16400   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16401   # A ".." for each directory in $ac_dir_suffix.
16402   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16403   case $ac_top_builddir_sub in
16404   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16405   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16406   esac ;;
16407 esac
16408 ac_abs_top_builddir=$ac_pwd
16409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16410 # for backward compatibility:
16411 ac_top_builddir=$ac_top_build_prefix
16412
16413 case $srcdir in
16414   .)  # We are building in place.
16415     ac_srcdir=.
16416     ac_top_srcdir=$ac_top_builddir_sub
16417     ac_abs_top_srcdir=$ac_pwd ;;
16418   [\\/]* | ?:[\\/]* )  # Absolute name.
16419     ac_srcdir=$srcdir$ac_dir_suffix;
16420     ac_top_srcdir=$srcdir
16421     ac_abs_top_srcdir=$srcdir ;;
16422   *) # Relative name.
16423     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16424     ac_top_srcdir=$ac_top_build_prefix$srcdir
16425     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16426 esac
16427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16428
16429
16430   case $ac_mode in
16431   :F)
16432   #
16433   # CONFIG_FILE
16434   #
16435
16436   case $INSTALL in
16437   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16438   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16439   esac
16440 _ACEOF
16441
16442 cat >>$CONFIG_STATUS <<\_ACEOF
16443 # If the template does not know about datarootdir, expand it.
16444 # FIXME: This hack should be removed a few years after 2.60.
16445 ac_datarootdir_hack=; ac_datarootdir_seen=
16446
16447 case `sed -n '/datarootdir/ {
16448   p
16449   q
16450 }
16451 /@datadir@/p
16452 /@docdir@/p
16453 /@infodir@/p
16454 /@localedir@/p
16455 /@mandir@/p
16456 ' $ac_file_inputs` in
16457 *datarootdir*) ac_datarootdir_seen=yes;;
16458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16459   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16460 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16461 _ACEOF
16462 cat >>$CONFIG_STATUS <<_ACEOF
16463   ac_datarootdir_hack='
16464   s&@datadir@&$datadir&g
16465   s&@docdir@&$docdir&g
16466   s&@infodir@&$infodir&g
16467   s&@localedir@&$localedir&g
16468   s&@mandir@&$mandir&g
16469     s&\\\${datarootdir}&$datarootdir&g' ;;
16470 esac
16471 _ACEOF
16472
16473 # Neutralize VPATH when `$srcdir' = `.'.
16474 # Shell code in configure.ac might set extrasub.
16475 # FIXME: do we really want to maintain this feature?
16476 cat >>$CONFIG_STATUS <<_ACEOF
16477   sed "$ac_vpsub
16478 $extrasub
16479 _ACEOF
16480 cat >>$CONFIG_STATUS <<\_ACEOF
16481 :t
16482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16483 s&@configure_input@&$configure_input&;t t
16484 s&@top_builddir@&$ac_top_builddir_sub&;t t
16485 s&@srcdir@&$ac_srcdir&;t t
16486 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16487 s&@top_srcdir@&$ac_top_srcdir&;t t
16488 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16489 s&@builddir@&$ac_builddir&;t t
16490 s&@abs_builddir@&$ac_abs_builddir&;t t
16491 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16492 s&@INSTALL@&$ac_INSTALL&;t t
16493 $ac_datarootdir_hack
16494 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16495
16496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16497   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16498   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16499   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16500 which seems to be undefined.  Please make sure it is defined." >&5
16501 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16502 which seems to be undefined.  Please make sure it is defined." >&2;}
16503
16504   rm -f "$tmp/stdin"
16505   case $ac_file in
16506   -) cat "$tmp/out"; rm -f "$tmp/out";;
16507   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16508   esac
16509  ;;
16510
16511
16512   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16513 echo "$as_me: executing $ac_file commands" >&6;}
16514  ;;
16515   esac
16516
16517
16518   case $ac_file$ac_mode in
16519     "default-1":C)
16520     for ac_file in $CONFIG_FILES; do
16521       # Support "outfile[:infile[:infile...]]"
16522       case "$ac_file" in
16523         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16524       esac
16525       # PO directories have a Makefile.in generated from Makefile.in.in.
16526       case "$ac_file" in */Makefile.in)
16527         # Adjust a relative srcdir.
16528         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16529         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16530         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16531         # In autoconf-2.13 it is called $ac_given_srcdir.
16532         # In autoconf-2.50 it is called $srcdir.
16533         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16534         case "$ac_given_srcdir" in
16535           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16536           /*) top_srcdir="$ac_given_srcdir" ;;
16537           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16538         esac
16539         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16540           rm -f "$ac_dir/POTFILES"
16541           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16542           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16543           POMAKEFILEDEPS="POTFILES.in"
16544           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16545           # on $ac_dir but don't depend on user-specified configuration
16546           # parameters.
16547           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16548             # The LINGUAS file contains the set of available languages.
16549             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16550               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16551             fi
16552             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16553             # Hide the ALL_LINGUAS assigment from automake.
16554             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16555             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16556           else
16557             # The set of available languages was given in configure.in.
16558             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16559           fi
16560           # Compute POFILES
16561           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16562           # Compute UPDATEPOFILES
16563           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16564           # Compute DUMMYPOFILES
16565           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16566           # Compute GMOFILES
16567           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16568           case "$ac_given_srcdir" in
16569             .) srcdirpre= ;;
16570             *) srcdirpre='$(srcdir)/' ;;
16571           esac
16572           POFILES=
16573           UPDATEPOFILES=
16574           DUMMYPOFILES=
16575           GMOFILES=
16576           for lang in $ALL_LINGUAS; do
16577             POFILES="$POFILES $srcdirpre$lang.po"
16578             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16579             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16580             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16581           done
16582           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16583           # environment variable.
16584           INST_LINGUAS=
16585           if test -n "$ALL_LINGUAS"; then
16586             for presentlang in $ALL_LINGUAS; do
16587               useit=no
16588               if test "%UNSET%" != "$LINGUAS"; then
16589                 desiredlanguages="$LINGUAS"
16590               else
16591                 desiredlanguages="$ALL_LINGUAS"
16592               fi
16593               for desiredlang in $desiredlanguages; do
16594                 # Use the presentlang catalog if desiredlang is
16595                 #   a. equal to presentlang, or
16596                 #   b. a variant of presentlang (because in this case,
16597                 #      presentlang can be used as a fallback for messages
16598                 #      which are not translated in the desiredlang catalog).
16599                 case "$desiredlang" in
16600                   "$presentlang"*) useit=yes;;
16601                 esac
16602               done
16603               if test $useit = yes; then
16604                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16605               fi
16606             done
16607           fi
16608           CATALOGS=
16609           if test -n "$INST_LINGUAS"; then
16610             for lang in $INST_LINGUAS; do
16611               CATALOGS="$CATALOGS $lang.gmo"
16612             done
16613           fi
16614           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16615           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"
16616           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16617             if test -f "$f"; then
16618               case "$f" in
16619                 *.orig | *.bak | *~) ;;
16620                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16621               esac
16622             fi
16623           done
16624         fi
16625         ;;
16626       esac
16627     done ;;
16628
16629   esac
16630 done # for ac_tag
16631
16632
16633 { (exit 0); exit 0; }
16634 _ACEOF
16635 chmod +x $CONFIG_STATUS
16636 ac_clean_files=$ac_clean_files_save
16637
16638
16639 # configure is writing to config.log, and then calls config.status.
16640 # config.status does its own redirection, appending to config.log.
16641 # Unfortunately, on DOS this fails, as config.log is still kept open
16642 # by configure, so config.status won't be able to write to it; its
16643 # output is simply discarded.  So we exec the FD to /dev/null,
16644 # effectively closing config.log, so it can be properly (re)opened and
16645 # appended to by config.status.  When coming back to configure, we
16646 # need to make the FD available again.
16647 if test "$no_create" != yes; then
16648   ac_cs_success=:
16649   ac_config_status_args=
16650   test "$silent" = yes &&
16651     ac_config_status_args="$ac_config_status_args --quiet"
16652   exec 5>/dev/null
16653   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16654   exec 5>>config.log
16655   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16656   # would make configure fail if this is the last instruction.
16657   $ac_cs_success || { (exit 1); exit 1; }
16658 fi
16659
16660 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16661