Whamcloud - gitweb
bdef3cc932b73e5bd24ee374e65c72becaf7bd17
[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 SWAPFS_CMT
688 DEBUGFS_CMT
689 IMAGER_CMT
690 RESIZER_CMT
691 FSCK_PROG
692 FSCK_MAN
693 E2INITRD_PROG
694 E2INITRD_MAN
695 PKG_CONFIG
696 DEVMAPPER_REQ
697 DEVMAPPER_PC_LIBS
698 DEVMAPPER_LIBS
699 STATIC_DEVMAPPER_LIBS
700 STATIC_BLKID_DEVMAPPER_LIBS
701 UUIDD_CMT
702 GETTEXT_PACKAGE
703 PACKAGE
704 VERSION
705 SET_MAKE
706 INSTALL_PROGRAM
707 INSTALL_SCRIPT
708 INSTALL_DATA
709 MKINSTALLDIRS
710 USE_NLS
711 MSGFMT
712 GMSGFMT
713 XGETTEXT
714 MSGMERGE
715 RANLIB
716 ALLOCA
717 GLIBC21
718 HAVE_POSIX_PRINTF
719 HAVE_ASPRINTF
720 HAVE_SNPRINTF
721 HAVE_WPRINTF
722 LIBICONV
723 LTLIBICONV
724 INTLBISON
725 BUILD_INCLUDED_LIBINTL
726 USE_INCLUDED_LIBINTL
727 CATOBJEXT
728 DATADIRNAME
729 INSTOBJEXT
730 GENCAT
731 INTLOBJS
732 INTL_LIBTOOL_SUFFIX_PREFIX
733 INTLLIBS
734 LIBINTL
735 LTLIBINTL
736 POSUB
737 BINARY_TYPE
738 LN
739 LN_S
740 MV
741 CP
742 RM
743 CHMOD
744 AWK
745 SED
746 PERL
747 LDCONFIG
748 AR
749 STRIP
750 MAKEINFO
751 BUILD_CC
752 SIZEOF_SHORT
753 SIZEOF_INT
754 SIZEOF_LONG
755 SIZEOF_LONG_LONG
756 SOCKET_LIB
757 DLOPEN_LIB
758 UNI_DIFF_OPTS
759 LINUX_CMT
760 CYGWIN_CMT
761 UNIX_CMT
762 root_prefix
763 root_bindir
764 root_sbindir
765 root_libdir
766 root_sysconfdir
767 LDFLAG_STATIC
768 SS_DIR
769 ET_DIR
770 DO_TEST_SUITE
771 INTL_FLAGS
772 BUILD_CFLAGS
773 BUILD_LDFLAGS
774 LIBOBJS
775 LTLIBOBJS'
776 ac_subst_files='MCONFIG
777 MAKEFILE_ELF
778 MAKEFILE_BSDLIB
779 MAKEFILE_PROFILE
780 MAKEFILE_CHECKER
781 MAKEFILE_LIBRARY
782 ASM_TYPES_HEADER
783 PUBLIC_CONFIG_HEADER'
784       ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP
793 PKG_CONFIG'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846   # If the previous option needs an argument, assign it.
847   if test -n "$ac_prev"; then
848     eval $ac_prev=\$ac_option
849     ac_prev=
850     continue
851   fi
852
853   case $ac_option in
854   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855   *)    ac_optarg=yes ;;
856   esac
857
858   # Accept the important Cygnus configure options, so we can diagnose typos.
859
860   case $ac_dashdash$ac_option in
861   --)
862     ac_dashdash=yes ;;
863
864   -bindir | --bindir | --bindi | --bind | --bin | --bi)
865     ac_prev=bindir ;;
866   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867     bindir=$ac_optarg ;;
868
869   -build | --build | --buil | --bui | --bu)
870     ac_prev=build_alias ;;
871   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872     build_alias=$ac_optarg ;;
873
874   -cache-file | --cache-file | --cache-fil | --cache-fi \
875   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876     ac_prev=cache_file ;;
877   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879     cache_file=$ac_optarg ;;
880
881   --config-cache | -C)
882     cache_file=config.cache ;;
883
884   -datadir | --datadir | --datadi | --datad)
885     ac_prev=datadir ;;
886   -datadir=* | --datadir=* | --datadi=* | --datad=*)
887     datadir=$ac_optarg ;;
888
889   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890   | --dataroo | --dataro | --datar)
891     ac_prev=datarootdir ;;
892   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894     datarootdir=$ac_optarg ;;
895
896   -disable-* | --disable-*)
897     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
900       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901    { (exit 1); exit 1; }; }
902     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
903     eval enable_$ac_feature=no ;;
904
905   -docdir | --docdir | --docdi | --doc | --do)
906     ac_prev=docdir ;;
907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908     docdir=$ac_optarg ;;
909
910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911     ac_prev=dvidir ;;
912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913     dvidir=$ac_optarg ;;
914
915   -enable-* | --enable-*)
916     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
919       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920    { (exit 1); exit 1; }; }
921     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
922     eval enable_$ac_feature=\$ac_optarg ;;
923
924   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926   | --exec | --exe | --ex)
927     ac_prev=exec_prefix ;;
928   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930   | --exec=* | --exe=* | --ex=*)
931     exec_prefix=$ac_optarg ;;
932
933   -gas | --gas | --ga | --g)
934     # Obsolete; use --with-gas.
935     with_gas=yes ;;
936
937   -help | --help | --hel | --he | -h)
938     ac_init_help=long ;;
939   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940     ac_init_help=recursive ;;
941   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942     ac_init_help=short ;;
943
944   -host | --host | --hos | --ho)
945     ac_prev=host_alias ;;
946   -host=* | --host=* | --hos=* | --ho=*)
947     host_alias=$ac_optarg ;;
948
949   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950     ac_prev=htmldir ;;
951   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952   | --ht=*)
953     htmldir=$ac_optarg ;;
954
955   -includedir | --includedir | --includedi | --included | --include \
956   | --includ | --inclu | --incl | --inc)
957     ac_prev=includedir ;;
958   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959   | --includ=* | --inclu=* | --incl=* | --inc=*)
960     includedir=$ac_optarg ;;
961
962   -infodir | --infodir | --infodi | --infod | --info | --inf)
963     ac_prev=infodir ;;
964   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965     infodir=$ac_optarg ;;
966
967   -libdir | --libdir | --libdi | --libd)
968     ac_prev=libdir ;;
969   -libdir=* | --libdir=* | --libdi=* | --libd=*)
970     libdir=$ac_optarg ;;
971
972   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973   | --libexe | --libex | --libe)
974     ac_prev=libexecdir ;;
975   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976   | --libexe=* | --libex=* | --libe=*)
977     libexecdir=$ac_optarg ;;
978
979   -localedir | --localedir | --localedi | --localed | --locale)
980     ac_prev=localedir ;;
981   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982     localedir=$ac_optarg ;;
983
984   -localstatedir | --localstatedir | --localstatedi | --localstated \
985   | --localstate | --localstat | --localsta | --localst | --locals)
986     ac_prev=localstatedir ;;
987   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989     localstatedir=$ac_optarg ;;
990
991   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992     ac_prev=mandir ;;
993   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994     mandir=$ac_optarg ;;
995
996   -nfp | --nfp | --nf)
997     # Obsolete; use --without-fp.
998     with_fp=no ;;
999
1000   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001   | --no-cr | --no-c | -n)
1002     no_create=yes ;;
1003
1004   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006     no_recursion=yes ;;
1007
1008   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010   | --oldin | --oldi | --old | --ol | --o)
1011     ac_prev=oldincludedir ;;
1012   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015     oldincludedir=$ac_optarg ;;
1016
1017   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018     ac_prev=prefix ;;
1019   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020     prefix=$ac_optarg ;;
1021
1022   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023   | --program-pre | --program-pr | --program-p)
1024     ac_prev=program_prefix ;;
1025   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027     program_prefix=$ac_optarg ;;
1028
1029   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030   | --program-suf | --program-su | --program-s)
1031     ac_prev=program_suffix ;;
1032   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034     program_suffix=$ac_optarg ;;
1035
1036   -program-transform-name | --program-transform-name \
1037   | --program-transform-nam | --program-transform-na \
1038   | --program-transform-n | --program-transform- \
1039   | --program-transform | --program-transfor \
1040   | --program-transfo | --program-transf \
1041   | --program-trans | --program-tran \
1042   | --progr-tra | --program-tr | --program-t)
1043     ac_prev=program_transform_name ;;
1044   -program-transform-name=* | --program-transform-name=* \
1045   | --program-transform-nam=* | --program-transform-na=* \
1046   | --program-transform-n=* | --program-transform-=* \
1047   | --program-transform=* | --program-transfor=* \
1048   | --program-transfo=* | --program-transf=* \
1049   | --program-trans=* | --program-tran=* \
1050   | --progr-tra=* | --program-tr=* | --program-t=*)
1051     program_transform_name=$ac_optarg ;;
1052
1053   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054     ac_prev=pdfdir ;;
1055   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056     pdfdir=$ac_optarg ;;
1057
1058   -psdir | --psdir | --psdi | --psd | --ps)
1059     ac_prev=psdir ;;
1060   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061     psdir=$ac_optarg ;;
1062
1063   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064   | -silent | --silent | --silen | --sile | --sil)
1065     silent=yes ;;
1066
1067   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068     ac_prev=sbindir ;;
1069   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070   | --sbi=* | --sb=*)
1071     sbindir=$ac_optarg ;;
1072
1073   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075   | --sharedst | --shareds | --shared | --share | --shar \
1076   | --sha | --sh)
1077     ac_prev=sharedstatedir ;;
1078   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081   | --sha=* | --sh=*)
1082     sharedstatedir=$ac_optarg ;;
1083
1084   -site | --site | --sit)
1085     ac_prev=site ;;
1086   -site=* | --site=* | --sit=*)
1087     site=$ac_optarg ;;
1088
1089   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090     ac_prev=srcdir ;;
1091   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092     srcdir=$ac_optarg ;;
1093
1094   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095   | --syscon | --sysco | --sysc | --sys | --sy)
1096     ac_prev=sysconfdir ;;
1097   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099     sysconfdir=$ac_optarg ;;
1100
1101   -target | --target | --targe | --targ | --tar | --ta | --t)
1102     ac_prev=target_alias ;;
1103   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104     target_alias=$ac_optarg ;;
1105
1106   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107     verbose=yes ;;
1108
1109   -version | --version | --versio | --versi | --vers | -V)
1110     ac_init_version=: ;;
1111
1112   -with-* | --with-*)
1113     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116       { echo "$as_me: error: invalid package name: $ac_package" >&2
1117    { (exit 1); exit 1; }; }
1118     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1119     eval with_$ac_package=\$ac_optarg ;;
1120
1121   -without-* | --without-*)
1122     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1128     eval with_$ac_package=no ;;
1129
1130   --x)
1131     # Obsolete; use --with-x.
1132     with_x=yes ;;
1133
1134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135   | --x-incl | --x-inc | --x-in | --x-i)
1136     ac_prev=x_includes ;;
1137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139     x_includes=$ac_optarg ;;
1140
1141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143     ac_prev=x_libraries ;;
1144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146     x_libraries=$ac_optarg ;;
1147
1148   -*) { echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150    { (exit 1); exit 1; }; }
1151     ;;
1152
1153   *=*)
1154     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158    { (exit 1); exit 1; }; }
1159     eval $ac_envvar=\$ac_optarg
1160     export $ac_envvar ;;
1161
1162   *)
1163     # FIXME: should be removed in autoconf 3.0.
1164     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168     ;;
1169
1170   esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175   { echo "$as_me: error: missing argument to $ac_option" >&2
1176    { (exit 1); exit 1; }; }
1177 fi
1178
1179 # Be sure to have absolute directory names.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   case $ac_val in
1187     [\\/$]* | ?:[\\/]* )  continue;;
1188     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189   esac
1190   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1191    { (exit 1); exit 1; }; }
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203   if test "x$build_alias" = x; then
1204     cross_compiling=maybe
1205     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206     If a cross compiler is detected then cross compile mode will be used." >&2
1207   elif test "x$build_alias" != "x$host_alias"; then
1208     cross_compiling=yes
1209   fi
1210 fi
1211
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215 test "$silent" = yes && exec 6>/dev/null
1216
1217
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221   { echo "$as_me: error: Working directory cannot be determined" >&2
1222    { (exit 1); exit 1; }; }
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224   { echo "$as_me: error: pwd does not report name of working directory" >&2
1225    { (exit 1); exit 1; }; }
1226
1227
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230   ac_srcdir_defaulted=yes
1231   # Try the directory containing this script, then the parent directory.
1232   ac_confdir=`$as_dirname -- "$0" ||
1233 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234          X"$0" : 'X\(//\)[^/]' \| \
1235          X"$0" : 'X\(//\)$' \| \
1236          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 echo X"$0" |
1238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)[^/].*/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\).*/{
1251             s//\1/
1252             q
1253           }
1254           s/.*/./; q'`
1255   srcdir=$ac_confdir
1256   if test ! -r "$srcdir/$ac_unique_file"; then
1257     srcdir=..
1258   fi
1259 else
1260   ac_srcdir_defaulted=no
1261 fi
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1265    { (exit 1); exit 1; }; }
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1270    { (exit 1); exit 1; }; }
1271         pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274   srcdir=.
1275 fi
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_env_${ac_var}_value=\$${ac_var}
1285   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1288
1289 #
1290 # Report the --help message.
1291 #
1292 if test "$ac_init_help" = "long"; then
1293   # Omit some internal or obsolete options to make the list less imposing.
1294   # This message is too long to be a string in the A/UX 3.1 sh.
1295   cat <<_ACEOF
1296 \`configure' configures this package to adapt to many kinds of systems.
1297
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303 Defaults for the options are specified in brackets.
1304
1305 Configuration:
1306   -h, --help              display this help and exit
1307       --help=short        display options specific to this package
1308       --help=recursive    display the short help of all the included packages
1309   -V, --version           display version information and exit
1310   -q, --quiet, --silent   do not print \`checking...' messages
1311       --cache-file=FILE   cache test results in FILE [disabled]
1312   -C, --config-cache      alias for \`--cache-file=config.cache'
1313   -n, --no-create         do not create output files
1314       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316 Installation directories:
1317   --prefix=PREFIX         install architecture-independent files in PREFIX
1318                           [$ac_default_prefix]
1319   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                           [PREFIX]
1321
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1326
1327 For better control, use the options below.
1328
1329 Fine tuning of the installation directories:
1330   --bindir=DIR           user executables [EPREFIX/bin]
1331   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1332   --libexecdir=DIR       program executables [EPREFIX/libexec]
1333   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1334   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1335   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1336   --libdir=DIR           object code libraries [EPREFIX/lib]
1337   --includedir=DIR       C header files [PREFIX/include]
1338   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1339   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1340   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1341   --infodir=DIR          info documentation [DATAROOTDIR/info]
1342   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1343   --mandir=DIR           man documentation [DATAROOTDIR/man]
1344   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1345   --htmldir=DIR          html documentation [DOCDIR]
1346   --dvidir=DIR           dvi documentation [DOCDIR]
1347   --pdfdir=DIR           pdf documentation [DOCDIR]
1348   --psdir=DIR            ps documentation [DOCDIR]
1349 _ACEOF
1350
1351   cat <<\_ACEOF
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360
1361   cat <<\_ACEOF
1362
1363 Optional Features:
1364   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366   --enable-maintainer-mode enable makefile rules useful for maintainers
1367   --enable-compression    enable EXPERIMENTAL compression support
1368   --enable-htree          enable EXPERIMENTAL htree directory support
1369   --enable-elf-shlibs     select ELF shared libraries
1370   --enable-bsd-shlibs     select BSD shared libraries
1371   --enable-profile        build profiling libraries
1372   --enable-checker        build checker libraries
1373   --enable-jbd-debug      enable journal debugging
1374   --enable-blkid-debug    enable blkid debugging
1375   --enable-testio-debug   enable the use of the test I/O manager for debugging
1376   --disable-swapfs        disable support of legacy byte-swapped filesystems
1377   --disable-debugfs       disable support of debugfs program
1378   --disable-imager        disable support of e2image program
1379   --disable-resizer       disable support of e2resize program
1380   --enable-fsck           build fsck wrapper program
1381   --enable-e2initrd-helper build e2initrd-helper program
1382   --enable-blkid-devmapper  build with device-mapper support
1383   --disable-tls           disable use of thread local support
1384   --disable-uuidd         disable building the uuid daemon
1385   --disable-nls           do not use Native Language Support
1386   --disable-rpath         do not hardcode runtime library paths
1387
1388 Optional Packages:
1389   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391   --with-diet-libc        use diet libc
1392   --with-cc=COMPILER      select compiler to use
1393   --with-linker=LINKER    select linker to use
1394   --with-ccopts=CCOPTS    select compiler command line options
1395   --with-ldopts=LDOPTS    select linker command line options
1396   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1397   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1398   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1399   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1400   --with-included-gettext use the GNU gettext library included here
1401   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1402   --without-libintl-prefix     don't search for libintl in includedir and libdir
1403
1404 Some influential environment variables:
1405   CC          C compiler command
1406   CFLAGS      C compiler flags
1407   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1408               nonstandard directory <lib dir>
1409   LIBS        libraries to pass to the linker, e.g. -l<library>
1410   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1411               you have headers in a nonstandard directory <include dir>
1412   CPP         C preprocessor
1413   PKG_CONFIG  path to pkg-config utility
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 _ACEOF
1419 ac_status=$?
1420 fi
1421
1422 if test "$ac_init_help" = "recursive"; then
1423   # If there are subdirs, report their specific --help.
1424   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425     test -d "$ac_dir" || continue
1426     ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1432   # A ".." for each directory in $ac_dir_suffix.
1433   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434   case $ac_top_builddir_sub in
1435   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437   esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445   .)  # We are building in place.
1446     ac_srcdir=.
1447     ac_top_srcdir=$ac_top_builddir_sub
1448     ac_abs_top_srcdir=$ac_pwd ;;
1449   [\\/]* | ?:[\\/]* )  # Absolute name.
1450     ac_srcdir=$srcdir$ac_dir_suffix;
1451     ac_top_srcdir=$srcdir
1452     ac_abs_top_srcdir=$srcdir ;;
1453   *) # Relative name.
1454     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455     ac_top_srcdir=$ac_top_build_prefix$srcdir
1456     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460     cd "$ac_dir" || { ac_status=$?; continue; }
1461     # Check for guested configure.
1462     if test -f "$ac_srcdir/configure.gnu"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465     elif test -f "$ac_srcdir/configure"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure" --help=recursive
1468     else
1469       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470     fi || ac_status=$?
1471     cd "$ac_pwd" || { ac_status=$?; break; }
1472   done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477   cat <<\_ACEOF
1478 configure
1479 generated by GNU Autoconf 2.61
1480
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486   exit
1487 fi
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1491
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.61.  Invocation command line was
1494
1495   $ $0 $@
1496
1497 _ACEOF
1498 exec 5>>config.log
1499 {
1500 cat <<_ASUNAME
1501 ## --------- ##
1502 ## Platform. ##
1503 ## --------- ##
1504
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1513
1514 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1515 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1518 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1519 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1520 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1521
1522 _ASUNAME
1523
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   echo "PATH: $as_dir"
1530 done
1531 IFS=$as_save_IFS
1532
1533 } >&5
1534
1535 cat >&5 <<_ACEOF
1536
1537
1538 ## ----------- ##
1539 ## Core tests. ##
1540 ## ----------- ##
1541
1542 _ACEOF
1543
1544
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_configure_args=
1551 ac_configure_args0=
1552 ac_configure_args1=
1553 ac_must_keep_next=false
1554 for ac_pass in 1 2
1555 do
1556   for ac_arg
1557   do
1558     case $ac_arg in
1559     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561     | -silent | --silent | --silen | --sile | --sil)
1562       continue ;;
1563     *\'*)
1564       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565     esac
1566     case $ac_pass in
1567     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568     2)
1569       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570       if test $ac_must_keep_next = true; then
1571         ac_must_keep_next=false # Got value, back to normal.
1572       else
1573         case $ac_arg in
1574           *=* | --config-cache | -C | -disable-* | --disable-* \
1575           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577           | -with-* | --with-* | -without-* | --without-* | --x)
1578             case "$ac_configure_args0 " in
1579               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580             esac
1581             ;;
1582           -* ) ac_must_keep_next=true ;;
1583         esac
1584       fi
1585       ac_configure_args="$ac_configure_args '$ac_arg'"
1586       ;;
1587     esac
1588   done
1589 done
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log.  We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599   # Save into config.log some information that might help in debugging.
1600   {
1601     echo
1602
1603     cat <<\_ASBOX
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1607 _ASBOX
1608     echo
1609     # The following way of writing the cache mishandles newlines in values,
1610 (
1611   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612     eval ac_val=\$$ac_var
1613     case $ac_val in #(
1614     *${as_nl}*)
1615       case $ac_var in #(
1616       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618       esac
1619       case $ac_var in #(
1620       _ | IFS | as_nl) ;; #(
1621       *) $as_unset $ac_var ;;
1622       esac ;;
1623     esac
1624   done
1625   (set) 2>&1 |
1626     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627     *${as_nl}ac_space=\ *)
1628       sed -n \
1629         "s/'\''/'\''\\\\'\'''\''/g;
1630           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631       ;; #(
1632     *)
1633       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1634       ;;
1635     esac |
1636     sort
1637 )
1638     echo
1639
1640     cat <<\_ASBOX
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1644 _ASBOX
1645     echo
1646     for ac_var in $ac_subst_vars
1647     do
1648       eval ac_val=\$$ac_var
1649       case $ac_val in
1650       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651       esac
1652       echo "$ac_var='\''$ac_val'\''"
1653     done | sort
1654     echo
1655
1656     if test -n "$ac_subst_files"; then
1657       cat <<\_ASBOX
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1661 _ASBOX
1662       echo
1663       for ac_var in $ac_subst_files
1664       do
1665         eval ac_val=\$$ac_var
1666         case $ac_val in
1667         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668         esac
1669         echo "$ac_var='\''$ac_val'\''"
1670       done | sort
1671       echo
1672     fi
1673
1674     if test -s confdefs.h; then
1675       cat <<\_ASBOX
1676 ## ----------- ##
1677 ## confdefs.h. ##
1678 ## ----------- ##
1679 _ASBOX
1680       echo
1681       cat confdefs.h
1682       echo
1683     fi
1684     test "$ac_signal" != 0 &&
1685       echo "$as_me: caught signal $ac_signal"
1686     echo "$as_me: exit $exit_status"
1687   } >&5
1688   rm -f core *.core core.conftest.* &&
1689     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690     exit $exit_status
1691 ' 0
1692 for ac_signal in 1 2 13 15; do
1693   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 done
1695 ac_signal=0
1696
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1699
1700 # Predefined preprocessor variables.
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 _ACEOF
1705
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 _ACEOF
1710
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 _ACEOF
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 _ACEOF
1725
1726
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730   set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733 else
1734   set x "$ac_default_prefix/share/config.site" \
1735         "$ac_default_prefix/etc/config.site"
1736 fi
1737 shift
1738 for ac_site_file
1739 do
1740   if test -r "$ac_site_file"; then
1741     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743     sed 's/^/| /' "$ac_site_file" >&5
1744     . "$ac_site_file"
1745   fi
1746 done
1747
1748 if test -r "$cache_file"; then
1749   # Some versions of bash will fail to source /dev/null (special
1750   # files actually), so we avoid doing that.
1751   if test -f "$cache_file"; then
1752     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1754     case $cache_file in
1755       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756       *)                      . "./$cache_file";;
1757     esac
1758   fi
1759 else
1760   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1762   >$cache_file
1763 fi
1764
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770   eval ac_new_set=\$ac_env_${ac_var}_set
1771   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772   eval ac_new_val=\$ac_env_${ac_var}_value
1773   case $ac_old_set,$ac_new_set in
1774     set,)
1775       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777       ac_cache_corrupted=: ;;
1778     ,set)
1779       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781       ac_cache_corrupted=: ;;
1782     ,);;
1783     *)
1784       if test "x$ac_old_val" != "x$ac_new_val"; then
1785         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1788 echo "$as_me:   former value:  $ac_old_val" >&2;}
1789         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1790 echo "$as_me:   current value: $ac_new_val" >&2;}
1791         ac_cache_corrupted=:
1792       fi;;
1793   esac
1794   # Pass precious variables to config.status.
1795   if test "$ac_new_set" = set; then
1796     case $ac_new_val in
1797     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1798     *) ac_arg=$ac_var=$ac_new_val ;;
1799     esac
1800     case " $ac_configure_args " in
1801       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1802       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803     esac
1804   fi
1805 done
1806 if $ac_cache_corrupted; then
1807   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811    { (exit 1); exit 1; }; }
1812 fi
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835
1836
1837
1838 ac_aux_dir=
1839 for ac_dir in config "$srcdir"/config; do
1840   if test -f "$ac_dir/install-sh"; then
1841     ac_aux_dir=$ac_dir
1842     ac_install_sh="$ac_aux_dir/install-sh -c"
1843     break
1844   elif test -f "$ac_dir/install.sh"; then
1845     ac_aux_dir=$ac_dir
1846     ac_install_sh="$ac_aux_dir/install.sh -c"
1847     break
1848   elif test -f "$ac_dir/shtool"; then
1849     ac_aux_dir=$ac_dir
1850     ac_install_sh="$ac_aux_dir/shtool install -c"
1851     break
1852   fi
1853 done
1854 if test -z "$ac_aux_dir"; then
1855   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1856 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1857    { (exit 1); exit 1; }; }
1858 fi
1859
1860 # These three variables are undocumented and unsupported,
1861 # and are intended to be withdrawn in a future Autoconf release.
1862 # They can cause serious problems if a builder's source tree is in a directory
1863 # whose full name contains unusual characters.
1864 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1865 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1866 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1867
1868
1869 MCONFIG=./MCONFIG
1870
1871 BINARY_TYPE=bin
1872 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1873         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1874 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1875         | tr \" " "`
1876 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1877 MONTH=`echo $DATE | awk -F- '{print $2}'`
1878 YEAR=`echo $DATE | awk -F- '{print $3}'`
1879
1880 if expr $YEAR ">" 1900 > /dev/null ; then
1881         E2FSPROGS_YEAR=$YEAR
1882 elif expr $YEAR ">" 90 >/dev/null ; then
1883         E2FSPROGS_YEAR=19$YEAR
1884 else
1885         E2FSPROGS_YEAR=20$YEAR
1886 fi
1887
1888 case $MONTH in
1889 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1890 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1891 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1892 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1893 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1894 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1895 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1896 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1897 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1898 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1899 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1900 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1901 *)      echo "Unknown month $MONTH??" ;;
1902 esac
1903
1904 base_ver=`echo $E2FSPROGS_VERSION | \
1905                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906
1907 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1908
1909 case $E2FSPROGS_VERSION in
1910 *-WIP|pre-*)
1911         pre_vers=`echo $base_ver 0.01 - p | dc`
1912         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1913         ;;
1914 *)
1915         E2FSPROGS_PKGVER="$base_ver"
1916         ;;
1917 esac
1918
1919 unset DATE MONTH YEAR base_ver pre_vers date_spec
1920 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1921 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1922
1923
1924
1925
1926
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931    { (exit 1); exit 1; }; }
1932
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936   echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938   ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944    { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948    { (exit 1); exit 1; }; }
1949
1950 fi
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1954 *-*-*) ;;
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957    { (exit 1); exit 1; }; };;
1958 esac
1959 build=$ac_cv_build
1960 ac_save_IFS=$IFS; IFS='-'
1961 set x $ac_cv_build
1962 shift
1963 build_cpu=$1
1964 build_vendor=$2
1965 shift; shift
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1968 build_os=$*
1969 IFS=$ac_save_IFS
1970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971
1972
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test "x$host_alias" = x; then
1979   ac_cv_host=$ac_cv_build
1980 else
1981   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987 fi
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1990 case $ac_cv_host in
1991 *-*-*) ;;
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994    { (exit 1); exit 1; }; };;
1995 esac
1996 host=$ac_cv_host
1997 ac_save_IFS=$IFS; IFS='-'
1998 set x $ac_cv_host
1999 shift
2000 host_cpu=$1
2001 host_vendor=$2
2002 shift; shift
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2005 host_os=$*
2006 IFS=$ac_save_IFS
2007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008
2009
2010
2011 # Check whether --with-diet-libc was given.
2012 if test "${with_diet_libc+set}" = set; then
2013   withval=$with_diet_libc; CC="diet cc -nostdinc"
2014 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2015 echo "${ECHO_T}CC=$CC" >&6; }
2016 fi
2017
2018 # Check whether --with-cc was given.
2019 if test "${with_cc+set}" = set; then
2020   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2021 echo "${ECHO_T}CC=$withval" >&6; }
2022 CC=$withval
2023 else
2024   if test -z "$CC" ; then CC=cc; fi
2025 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2026 echo "${ECHO_T}CC defaults to $CC" >&6; }
2027 fi
2028 export CC
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 if test -n "$ac_tool_prefix"; then
2036   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test -n "$CC"; then
2044   ac_cv_prog_CC="$CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2067 else
2068   { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072
2073 fi
2074 if test -z "$ac_cv_prog_CC"; then
2075   ac_ct_CC=$CC
2076   # Extract the first word of "gcc", so it can be a program name with args.
2077 set dummy gcc; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$ac_ct_CC"; then
2084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093     ac_cv_prog_ac_ct_CC="gcc"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099 IFS=$as_save_IFS
2100
2101 fi
2102 fi
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 else
2108   { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2110 fi
2111
2112   if test "x$ac_ct_CC" = x; then
2113     CC=""
2114   else
2115     case $cross_compiling:$ac_tool_warned in
2116 yes:)
2117 { echo "$as_me:$LINENO: 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." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet.  If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2124 esac
2125     CC=$ac_ct_CC
2126   fi
2127 else
2128   CC="$ac_cv_prog_CC"
2129 fi
2130
2131 if test -z "$CC"; then
2132           if test -n "$ac_tool_prefix"; then
2133     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150     ac_cv_prog_CC="${ac_tool_prefix}cc"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162   { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2164 else
2165   { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169
2170   fi
2171 fi
2172 if test -z "$CC"; then
2173   # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$CC"; then
2181   ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183   ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192        ac_prog_rejected=yes
2193        continue
2194      fi
2195     ac_cv_prog_CC="cc"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 if test $ac_prog_rejected = yes; then
2204   # We found a bogon in the path, so make sure we never use it.
2205   set dummy $ac_cv_prog_CC
2206   shift
2207   if test $# != 0; then
2208     # We chose a different compiler from the bogus one.
2209     # However, it has the same basename, so the bogon will be chosen
2210     # first if we set CC to just the basename; use the full file name.
2211     shift
2212     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213   fi
2214 fi
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226
2227 fi
2228 if test -z "$CC"; then
2229   if test -n "$ac_tool_prefix"; then
2230   for ac_prog in cl.exe
2231   do
2232     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269     test -n "$CC" && break
2270   done
2271 fi
2272 if test -z "$CC"; then
2273   ac_ct_CC=$CC
2274   for ac_prog in cl.exe
2275 do
2276   # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   if test -n "$ac_ct_CC"; then
2284   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293     ac_cv_prog_ac_ct_CC="$ac_prog"
2294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 else
2308   { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313   test -n "$ac_ct_CC" && break
2314 done
2315
2316   if test "x$ac_ct_CC" = x; then
2317     CC=""
2318   else
2319     case $cross_compiling:$ac_tool_warned in
2320 yes:)
2321 { echo "$as_me:$LINENO: 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." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet.  If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2328 esac
2329     CC=$ac_ct_CC
2330   fi
2331 fi
2332
2333 fi
2334
2335
2336 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&2;}
2340    { (exit 1); exit 1; }; }
2341
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO: checking for C compiler version" >&5
2344 ac_compiler=`set X $ac_compile; echo $2`
2345 { (ac_try="$ac_compiler --version >&5"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351   (eval "$ac_compiler --version >&5") 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }
2355 { (ac_try="$ac_compiler -v >&5"
2356 case "(($ac_try" in
2357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358   *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361   (eval "$ac_compiler -v >&5") 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }
2365 { (ac_try="$ac_compiler -V >&5"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371   (eval "$ac_compiler -V >&5") 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }
2375
2376 cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 ac_clean_files_save=$ac_clean_files
2392 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2395 # of exeext.
2396 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2397 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2399 #
2400 # List of possible output files, starting from the most likely.
2401 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402 # only as a last resort.  b.out is created by i960 compilers.
2403 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404 #
2405 # The IRIX 6 linker writes into existing files which may not be
2406 # executable, retaining their permissions.  Remove them first so a
2407 # subsequent execution test works.
2408 ac_rmfiles=
2409 for ac_file in $ac_files
2410 do
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414   esac
2415 done
2416 rm -f $ac_rmfiles
2417
2418 if { (ac_try="$ac_link_default"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_link_default") 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2431 # so that the user can short-circuit this test for compilers unknown to
2432 # Autoconf.
2433 for ac_file in $ac_files ''
2434 do
2435   test -f "$ac_file" || continue
2436   case $ac_file in
2437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2438         ;;
2439     [ab].out )
2440         # We found the default executable, but exeext='' is most
2441         # certainly right.
2442         break;;
2443     *.* )
2444         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445         then :; else
2446            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447         fi
2448         # We set ac_cv_exeext here because the later test for it is not
2449         # safe: cross compilers may not add the suffix if given an `-o'
2450         # argument, so we may need to know it at that point already.
2451         # Even if this section looks crufty: it has the advantage of
2452         # actually working.
2453         break;;
2454     * )
2455         break;;
2456   esac
2457 done
2458 test "$ac_cv_exeext" = no && ac_cv_exeext=
2459
2460 else
2461   ac_file=''
2462 fi
2463
2464 { echo "$as_me:$LINENO: result: $ac_file" >&5
2465 echo "${ECHO_T}$ac_file" >&6; }
2466 if test -z "$ac_file"; then
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474    { (exit 77); exit 77; }; }
2475 fi
2476
2477 ac_exeext=$ac_cv_exeext
2478
2479 # Check that the compiler produces executables we can run.  If not, either
2480 # the compiler is broken, or we cross compile.
2481 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484 # If not cross compiling, check that we can run a simple program.
2485 if test "$cross_compiling" != yes; then
2486   if { ac_try='./$ac_file'
2487   { (case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_try") 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496     cross_compiling=no
2497   else
2498     if test "$cross_compiling" = maybe; then
2499         cross_compiling=yes
2500     else
2501         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&2;}
2507    { (exit 1); exit 1; }; }
2508     fi
2509   fi
2510 fi
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check that the compiler produces executables we can run.  If not, either
2517 # the compiler is broken, or we cross compile.
2518 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2520 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6; }
2522
2523 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2525 if { (ac_try="$ac_link"
2526 case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_link") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; then
2535   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2538 # `rm'.
2539 for ac_file in conftest.exe conftest conftest.*; do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2543     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544           break;;
2545     * ) break;;
2546   esac
2547 done
2548 else
2549   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&2;}
2553    { (exit 1); exit 1; }; }
2554 fi
2555
2556 rm -f conftest$ac_cv_exeext
2557 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2559
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2562 ac_exeext=$EXEEXT
2563 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h.  */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h.  */
2574
2575 int
2576 main ()
2577 {
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2585 case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_compile") 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; then
2594   for ac_file in conftest.o conftest.obj conftest.*; do
2595   test -f "$ac_file" || continue;
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2598     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599        break;;
2600   esac
2601 done
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&2;}
2610    { (exit 1); exit 1; }; }
2611 fi
2612
2613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 fi
2615 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616 echo "${ECHO_T}$ac_cv_objext" >&6; }
2617 OBJEXT=$ac_cv_objext
2618 ac_objext=$OBJEXT
2619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h.  */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h.  */
2630
2631 int
2632 main ()
2633 {
2634 #ifndef __GNUC__
2635        choke me
2636 #endif
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_compile") 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } && {
2656          test -z "$ac_c_werror_flag" ||
2657          test ! -s conftest.err
2658        } && test -s conftest.$ac_objext; then
2659   ac_compiler_gnu=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664         ac_compiler_gnu=no
2665 fi
2666
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669
2670 fi
2671 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2673 GCC=`test $ac_compiler_gnu = yes && echo yes`
2674 ac_test_CFLAGS=${CFLAGS+set}
2675 ac_save_CFLAGS=$CFLAGS
2676 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   ac_save_c_werror_flag=$ac_c_werror_flag
2682    ac_c_werror_flag=yes
2683    ac_cv_prog_cc_g=no
2684    CFLAGS="-g"
2685    cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compile") 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } && {
2714          test -z "$ac_c_werror_flag" ||
2715          test ! -s conftest.err
2716        } && test -s conftest.$ac_objext; then
2717   ac_cv_prog_cc_g=yes
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722         CFLAGS=""
2723       cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_compile") 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } && {
2752          test -z "$ac_c_werror_flag" ||
2753          test ! -s conftest.err
2754        } && test -s conftest.$ac_objext; then
2755   :
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760         ac_c_werror_flag=$ac_save_c_werror_flag
2761          CFLAGS="-g"
2762          cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (ac_try="$ac_compile"
2779 case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784   (eval "$ac_compile") 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } && {
2791          test -z "$ac_c_werror_flag" ||
2792          test ! -s conftest.err
2793        } && test -s conftest.$ac_objext; then
2794   ac_cv_prog_cc_g=yes
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799
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 fi
2807
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809    ac_c_werror_flag=$ac_save_c_werror_flag
2810 fi
2811 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814   CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816   if test "$GCC" = yes; then
2817     CFLAGS="-g -O2"
2818   else
2819     CFLAGS="-g"
2820   fi
2821 else
2822   if test "$GCC" = yes; then
2823     CFLAGS="-O2"
2824   else
2825     CFLAGS=
2826   fi
2827 fi
2828 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   ac_cv_prog_cc_c89=no
2834 ac_save_CC=$CC
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841 #include <stdarg.h>
2842 #include <stdio.h>
2843 #include <sys/types.h>
2844 #include <sys/stat.h>
2845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2846 struct buf { int x; };
2847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848 static char *e (p, i)
2849      char **p;
2850      int i;
2851 {
2852   return p[i];
2853 }
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2855 {
2856   char *s;
2857   va_list v;
2858   va_start (v,p);
2859   s = g (p, va_arg (v,int));
2860   va_end (v);
2861   return s;
2862 }
2863
2864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2865    function prototypes and stuff, but not '\xHH' hex character constants.
2866    These don't provoke an error unfortunately, instead are silently treated
2867    as 'x'.  The following induces an error, until -std is added to get
2868    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2869    array size at least.  It's necessary to write '\x00'==0 to get something
2870    that's true only with -std.  */
2871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874    inside strings and character constants.  */
2875 #define FOO(x) 'x'
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882 int argc;
2883 char **argv;
2884 int
2885 main ()
2886 {
2887 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 do
2895   CC="$ac_save_CC $ac_arg"
2896   rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_compile") 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } && {
2910          test -z "$ac_c_werror_flag" ||
2911          test ! -s conftest.err
2912        } && test -s conftest.$ac_objext; then
2913   ac_cv_prog_cc_c89=$ac_arg
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918
2919 fi
2920
2921 rm -f core conftest.err conftest.$ac_objext
2922   test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 done
2924 rm -f conftest.$ac_ext
2925 CC=$ac_save_CC
2926
2927 fi
2928 # AC_CACHE_VAL
2929 case "x$ac_cv_prog_cc_c89" in
2930   x)
2931     { echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6; } ;;
2933   xno)
2934     { echo "$as_me:$LINENO: result: unsupported" >&5
2935 echo "${ECHO_T}unsupported" >&6; } ;;
2936   *)
2937     CC="$CC $ac_cv_prog_cc_c89"
2938     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2940 esac
2941
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2956 # On Suns, sometimes $CPP names a directory.
2957 if test -n "$CPP" && test -d "$CPP"; then
2958   CPP=
2959 fi
2960 if test -z "$CPP"; then
2961   if test "${ac_cv_prog_CPP+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964       # Double quotes because CPP needs to be expanded
2965     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966     do
2967       ac_preproc_ok=false
2968 for ac_c_preproc_warn_flag in '' yes
2969 do
2970   # Use a header file that comes with gcc, so configuring glibc
2971   # with a fresh cross-compiler works.
2972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973   # <limits.h> exists even on freestanding compilers.
2974   # On the NeXT, cc -E runs the code through the compiler's parser,
2975   # not just through cpp. "Syntax error" is here to catch this case.
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 #ifdef __STDC__
2983 # include <limits.h>
2984 #else
2985 # include <assert.h>
2986 #endif
2987                      Syntax error
2988 _ACEOF
2989 if { (ac_try="$ac_cpp conftest.$ac_ext"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } >/dev/null && {
3002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003          test ! -s conftest.err
3004        }; then
3005   :
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010   # Broken: fails on valid input.
3011 continue
3012 fi
3013
3014 rm -f conftest.err conftest.$ac_ext
3015
3016   # OK, works on sane cases.  Now check whether nonexistent headers
3017   # can be detected and how.
3018   cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024 #include <ac_nonexistent.h>
3025 _ACEOF
3026 if { (ac_try="$ac_cpp conftest.$ac_ext"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } >/dev/null && {
3039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040          test ! -s conftest.err
3041        }; then
3042   # Broken: success on invalid input.
3043 continue
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048   # Passes both tests.
3049 ac_preproc_ok=:
3050 break
3051 fi
3052
3053 rm -f conftest.err conftest.$ac_ext
3054
3055 done
3056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057 rm -f conftest.err conftest.$ac_ext
3058 if $ac_preproc_ok; then
3059   break
3060 fi
3061
3062     done
3063     ac_cv_prog_CPP=$CPP
3064
3065 fi
3066   CPP=$ac_cv_prog_CPP
3067 else
3068   ac_cv_prog_CPP=$CPP
3069 fi
3070 { echo "$as_me:$LINENO: result: $CPP" >&5
3071 echo "${ECHO_T}$CPP" >&6; }
3072 ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3074 do
3075   # Use a header file that comes with gcc, so configuring glibc
3076   # with a fresh cross-compiler works.
3077   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078   # <limits.h> exists even on freestanding compilers.
3079   # On the NeXT, cc -E runs the code through the compiler's parser,
3080   # not just through cpp. "Syntax error" is here to catch this case.
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092                      Syntax error
3093 _ACEOF
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } >/dev/null && {
3107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108          test ! -s conftest.err
3109        }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115   # Broken: fails on valid input.
3116 continue
3117 fi
3118
3119 rm -f conftest.err conftest.$ac_ext
3120
3121   # OK, works on sane cases.  Now check whether nonexistent headers
3122   # can be detected and how.
3123   cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 #include <ac_nonexistent.h>
3130 _ACEOF
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } >/dev/null && {
3144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145          test ! -s conftest.err
3146        }; then
3147   # Broken: success on invalid input.
3148 continue
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153   # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3156 fi
3157
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164   :
3165 else
3166   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170    { (exit 1); exit 1; }; }
3171 fi
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180 # Check whether --with-linker was given.
3181 if test "${with_linker+set}" = set; then
3182   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3183 echo "${ECHO_T}LD=$withval" >&6; }
3184 LD=$withval
3185 else
3186   if test -z "$LD" ; then LD=$CC; fi
3187 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3188 echo "${ECHO_T}LD defaults to $LD" >&6; }
3189 fi
3190 export LD
3191
3192
3193 # Check whether --with-ccopts was given.
3194 if test "${with_ccopts+set}" = set; then
3195   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3196 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3197 CFLAGS=$withval
3198 fi
3199
3200
3201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3203 if test "${ac_cv_path_GREP+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   # Extract the first word of "grep ggrep" to use in msg output
3207 if test -z "$GREP"; then
3208 set dummy grep ggrep; ac_prog_name=$2
3209 if test "${ac_cv_path_GREP+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   ac_path_GREP_found=false
3213 # Loop through the user's path and test for each of PROGNAME-LIST
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3216 do
3217   IFS=$as_save_IFS
3218   test -z "$as_dir" && as_dir=.
3219   for ac_prog in grep ggrep; do
3220   for ac_exec_ext in '' $ac_executable_extensions; do
3221     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3222     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3223     # Check for GNU ac_path_GREP and select it if it is found.
3224   # Check for GNU $ac_path_GREP
3225 case `"$ac_path_GREP" --version 2>&1` in
3226 *GNU*)
3227   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3228 *)
3229   ac_count=0
3230   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231   while :
3232   do
3233     cat "conftest.in" "conftest.in" >"conftest.tmp"
3234     mv "conftest.tmp" "conftest.in"
3235     cp "conftest.in" "conftest.nl"
3236     echo 'GREP' >> "conftest.nl"
3237     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3238     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3239     ac_count=`expr $ac_count + 1`
3240     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3241       # Best one so far, save it but keep looking for a better one
3242       ac_cv_path_GREP="$ac_path_GREP"
3243       ac_path_GREP_max=$ac_count
3244     fi
3245     # 10*(2^10) chars as input seems more than enough
3246     test $ac_count -gt 10 && break
3247   done
3248   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249 esac
3250
3251
3252     $ac_path_GREP_found && break 3
3253   done
3254 done
3255
3256 done
3257 IFS=$as_save_IFS
3258
3259
3260 fi
3261
3262 GREP="$ac_cv_path_GREP"
3263 if test -z "$GREP"; then
3264   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266    { (exit 1); exit 1; }; }
3267 fi
3268
3269 else
3270   ac_cv_path_GREP=$GREP
3271 fi
3272
3273
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3277  GREP="$ac_cv_path_GREP"
3278
3279
3280 { echo "$as_me:$LINENO: checking for egrep" >&5
3281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3282 if test "${ac_cv_path_EGREP+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3286    then ac_cv_path_EGREP="$GREP -E"
3287    else
3288      # Extract the first word of "egrep" to use in msg output
3289 if test -z "$EGREP"; then
3290 set dummy egrep; ac_prog_name=$2
3291 if test "${ac_cv_path_EGREP+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   ac_path_EGREP_found=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301   for ac_prog in egrep; do
3302   for ac_exec_ext in '' $ac_executable_extensions; do
3303     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3304     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3305     # Check for GNU ac_path_EGREP and select it if it is found.
3306   # Check for GNU $ac_path_EGREP
3307 case `"$ac_path_EGREP" --version 2>&1` in
3308 *GNU*)
3309   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3310 *)
3311   ac_count=0
3312   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313   while :
3314   do
3315     cat "conftest.in" "conftest.in" >"conftest.tmp"
3316     mv "conftest.tmp" "conftest.in"
3317     cp "conftest.in" "conftest.nl"
3318     echo 'EGREP' >> "conftest.nl"
3319     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321     ac_count=`expr $ac_count + 1`
3322     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3323       # Best one so far, save it but keep looking for a better one
3324       ac_cv_path_EGREP="$ac_path_EGREP"
3325       ac_path_EGREP_max=$ac_count
3326     fi
3327     # 10*(2^10) chars as input seems more than enough
3328     test $ac_count -gt 10 && break
3329   done
3330   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 esac
3332
3333
3334     $ac_path_EGREP_found && break 3
3335   done
3336 done
3337
3338 done
3339 IFS=$as_save_IFS
3340
3341
3342 fi
3343
3344 EGREP="$ac_cv_path_EGREP"
3345 if test -z "$EGREP"; then
3346   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350
3351 else
3352   ac_cv_path_EGREP=$EGREP
3353 fi
3354
3355
3356    fi
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3360  EGREP="$ac_cv_path_EGREP"
3361
3362
3363 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3365 if test "${ac_cv_header_stdc+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 #include <stdlib.h>
3375 #include <stdarg.h>
3376 #include <string.h>
3377 #include <float.h>
3378
3379 int
3380 main ()
3381 {
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compile") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } && {
3401          test -z "$ac_c_werror_flag" ||
3402          test ! -s conftest.err
3403        } && test -s conftest.$ac_objext; then
3404   ac_cv_header_stdc=yes
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409         ac_cv_header_stdc=no
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413
3414 if test $ac_cv_header_stdc = yes; then
3415   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3416   cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <string.h>
3423
3424 _ACEOF
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426   $EGREP "memchr" >/dev/null 2>&1; then
3427   :
3428 else
3429   ac_cv_header_stdc=no
3430 fi
3431 rm -f conftest*
3432
3433 fi
3434
3435 if test $ac_cv_header_stdc = yes; then
3436   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <stdlib.h>
3444
3445 _ACEOF
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447   $EGREP "free" >/dev/null 2>&1; then
3448   :
3449 else
3450   ac_cv_header_stdc=no
3451 fi
3452 rm -f conftest*
3453
3454 fi
3455
3456 if test $ac_cv_header_stdc = yes; then
3457   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3458   if test "$cross_compiling" = yes; then
3459   :
3460 else
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 #include <ctype.h>
3468 #include <stdlib.h>
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 #else
3473 # define ISLOWER(c) \
3474                    (('a' <= (c) && (c) <= 'i') \
3475                      || ('j' <= (c) && (c) <= 'r') \
3476                      || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #endif
3479
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481 int
3482 main ()
3483 {
3484   int i;
3485   for (i = 0; i < 256; i++)
3486     if (XOR (islower (i), ISLOWER (i))
3487         || toupper (i) != TOUPPER (i))
3488       return 2;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest$ac_exeext
3493 if { (ac_try="$ac_link"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499   (eval "$ac_link") 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3503   { (case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_try") 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; }; then
3512   :
3513 else
3514   echo "$as_me: program exited with status $ac_status" >&5
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 ( exit $ac_status )
3519 ac_cv_header_stdc=no
3520 fi
3521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3522 fi
3523
3524
3525 fi
3526 fi
3527 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3528 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3529 if test $ac_cv_header_stdc = yes; then
3530
3531 cat >>confdefs.h <<\_ACEOF
3532 #define STDC_HEADERS 1
3533 _ACEOF
3534
3535 fi
3536
3537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3548                   inttypes.h stdint.h unistd.h
3549 do
3550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 $ac_includes_default
3563
3564 #include <$ac_header>
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_compile") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_c_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest.$ac_objext; then
3583   eval "$as_ac_Header=yes"
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588         eval "$as_ac_Header=no"
3589 fi
3590
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 ac_res=`eval echo '${'$as_ac_Header'}'`
3594                { echo "$as_me:$LINENO: result: $ac_res" >&5
3595 echo "${ECHO_T}$ac_res" >&6; }
3596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597   cat >>confdefs.h <<_ACEOF
3598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599 _ACEOF
3600
3601 fi
3602
3603 done
3604
3605
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3608 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3609 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 fi
3612 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3613 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3614 else
3615   # Is the header compilable?
3616 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3617 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 $ac_includes_default
3625 #include <linux/fs.h>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634   (eval "$ac_compile") 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } && {
3641          test -z "$ac_c_werror_flag" ||
3642          test ! -s conftest.err
3643        } && test -s conftest.$ac_objext; then
3644   ac_header_compiler=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         ac_header_compiler=no
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6; }
3655
3656 # Is the header present?
3657 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3658 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 #include <linux/fs.h>
3666 _ACEOF
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } >/dev/null && {
3680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681          test ! -s conftest.err
3682        }; then
3683   ac_header_preproc=yes
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688   ac_header_preproc=no
3689 fi
3690
3691 rm -f conftest.err conftest.$ac_ext
3692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6; }
3694
3695 # So?  What about this header?
3696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697   yes:no: )
3698     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3701 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3702     ac_header_preproc=yes
3703     ;;
3704   no:yes:* )
3705     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3706 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3707     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3708 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3710 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3712 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3715     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3716 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3717
3718     ;;
3719 esac
3720 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3721 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   ac_cv_header_linux_fs_h=$ac_header_preproc
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3728 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3729
3730 fi
3731 if test $ac_cv_header_linux_fs_h = yes; then
3732   linux_headers=yes
3733 else
3734   linux_headers=no
3735 fi
3736
3737
3738 if test "$linux_headers" != yes; then
3739   LINUX_INCLUDE='-I$(top_builddir)/include'
3740 fi
3741
3742 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3743 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3744 if test "$GCC" = yes
3745 then
3746     case "$host_cpu" in
3747         alpha)          addcflags="-mieee" ;;
3748     esac
3749 fi
3750 if test "x$addcflags" != x
3751 then
3752     { echo "$as_me:$LINENO: result: $addcflags" >&5
3753 echo "${ECHO_T}$addcflags" >&6; }
3754     CFLAGS="$addcflags $CFLAGS"
3755 else
3756     { echo "$as_me:$LINENO: result: (none)" >&5
3757 echo "${ECHO_T}(none)" >&6; }
3758 fi
3759 LIB_EXT=.a
3760 STATIC_LIB_EXT=.a
3761 PROFILE_LIB_EXT=.a
3762
3763 # Check whether --with-ldopts was given.
3764 if test "${with_ldopts+set}" = set; then
3765   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3766 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3767 LDFLAGS=$withval
3768 else
3769   LDFLAGS=
3770 fi
3771
3772
3773 # Check whether --with-root-prefix was given.
3774 if test "${with_root_prefix+set}" = set; then
3775   withval=$with_root_prefix; root_prefix=$withval
3776 else
3777   root_prefix=NONE
3778 fi
3779 # Check whether --enable-maintainer-mode was given.
3780 if test "${enable_maintainer_mode+set}" = set; then
3781   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3782 then
3783         MAINTAINER_CMT=#
3784         echo "Disabling maintainer mode"
3785 else
3786         MAINTAINER_CMT=
3787         echo "Enabling maintainer mode"
3788 fi
3789
3790 else
3791   MAINTAINER_CMT=#
3792 echo "Disabling maintainer mode by default"
3793
3794 fi
3795
3796
3797 # Check whether --enable-compression was given.
3798 if test "${enable_compression+set}" = set; then
3799   enableval=$enable_compression; if test "$enableval" = "no"
3800 then
3801         echo "Disabling compression support"
3802 else
3803         cat >>confdefs.h <<\_ACEOF
3804 #define ENABLE_COMPRESSION 1
3805 _ACEOF
3806
3807         echo "Enabling compression support"
3808         echo "WARNING: Compression support is experimental"
3809 fi
3810
3811 else
3812   echo "Disabling compression support by default"
3813
3814 fi
3815
3816 # Check whether --enable-htree was given.
3817 if test "${enable_htree+set}" = set; then
3818   enableval=$enable_htree; if test "$enableval" = "no"
3819 then
3820         HTREE_CMT=#
3821         echo "Disabling htree directory support"
3822 else
3823         HTREE_CMT=
3824         cat >>confdefs.h <<\_ACEOF
3825 #define ENABLE_HTREE 1
3826 _ACEOF
3827
3828         echo "Enabling htree directory support"
3829 fi
3830
3831 else
3832   HTREE_CMT=
3833 cat >>confdefs.h <<\_ACEOF
3834 #define ENABLE_HTREE 1
3835 _ACEOF
3836
3837 echo "Enabling htree directory support by default"
3838
3839 fi
3840
3841
3842 E2_PKG_CONFIG_STATIC=--static
3843 # Check whether --enable-elf-shlibs was given.
3844 if test "${enable_elf_shlibs+set}" = set; then
3845   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3846 then
3847         ELF_CMT=#
3848         MAKEFILE_ELF=/dev/null
3849         echo "Disabling ELF shared libraries"
3850 else
3851         E2_PKG_CONFIG_STATIC=
3852         ELF_CMT=
3853         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3854         case "$host_os" in
3855         solaris2.*)
3856                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3857         ;;
3858         esac
3859         BINARY_TYPE=elfbin
3860         LIB_EXT=.so
3861         echo "Enabling ELF shared libraries"
3862 fi
3863
3864 else
3865   MAKEFILE_ELF=/dev/null
3866 ELF_CMT=#
3867 echo "Disabling ELF shared libraries by default"
3868
3869 fi
3870
3871
3872
3873 # Check whether --enable-bsd-shlibs was given.
3874 if test "${enable_bsd_shlibs+set}" = set; then
3875   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3876 then
3877         BSDLIB_CMT=#
3878         MAKEFILE_BSDLIB=/dev/null
3879         echo "Disabling BSD shared libraries"
3880 else
3881         E2_PKG_CONFIG_STATIC=
3882         BSDLIB_CMT=
3883         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3884         LIB_EXT=.so
3885         case "$host_os" in
3886         darwin*)
3887                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3888                 LIB_EXT=.dylib
3889         ;;
3890         esac
3891         echo "Enabling BSD shared libraries"
3892 fi
3893
3894 else
3895   MAKEFILE_BSDLIB=/dev/null
3896 BSDLIB_CMT=#
3897 echo "Disabling BSD shared libraries by default"
3898
3899 fi
3900
3901
3902
3903 # Check whether --enable-profile was given.
3904 if test "${enable_profile+set}" = set; then
3905   enableval=$enable_profile; if test "$enableval" = "no"
3906 then
3907         PROFILE_CMT=#
3908         MAKEFILE_PROFILE=/dev/null
3909         echo "Disabling profiling libraries"
3910 else
3911         PROFILE_CMT=
3912         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3913         PROFILED_LIB_EXT=_p.a
3914         echo "Building profiling libraries"
3915 fi
3916
3917 else
3918   PROFILE_CMT=#
3919 MAKEFILE_PROFILE=/dev/null
3920 echo "Disabling profiling libraries by default"
3921
3922 fi
3923
3924
3925
3926 # Check whether --enable-checker was given.
3927 if test "${enable_checker+set}" = set; then
3928   enableval=$enable_checker; if test "$enableval" = "no"
3929 then
3930         CHECKER_CMT=#
3931         MAKEFILE_CHECKER=/dev/null
3932         echo "Disabling checker libraries"
3933 else
3934         CHECKER_CMT=
3935         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3936         echo "Building checker libraries"
3937 fi
3938
3939 else
3940   CHECKER_CMT=#
3941 MAKEFILE_CHECKER=/dev/null
3942 echo "Disabling checker libraries by default"
3943
3944 fi
3945
3946
3947
3948
3949
3950
3951 # Check whether --enable-jbd-debug was given.
3952 if test "${enable_jbd_debug+set}" = set; then
3953   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3954 then
3955         echo "Disabling journal debugging"
3956 else
3957         cat >>confdefs.h <<\_ACEOF
3958 #define CONFIG_JBD_DEBUG 1
3959 _ACEOF
3960
3961         echo "Enabling journal debugging"
3962 fi
3963
3964 else
3965   echo "Disabling journal debugging by default"
3966
3967 fi
3968
3969 # Check whether --enable-blkid-debug was given.
3970 if test "${enable_blkid_debug+set}" = set; then
3971   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3972 then
3973         echo "Disabling blkid debugging"
3974 else
3975         cat >>confdefs.h <<\_ACEOF
3976 #define CONFIG_BLKID_DEBUG 1
3977 _ACEOF
3978
3979         echo "Enabling blkid debugging"
3980 fi
3981
3982 else
3983   echo "Disabling blkid debugging by default"
3984
3985 fi
3986
3987 # Check whether --enable-testio-debug was given.
3988 if test "${enable_testio_debug+set}" = set; then
3989   enableval=$enable_testio_debug; if test "$enableval" = "no"
3990 then
3991         echo "Disabling testio debugging"
3992 else
3993         cat >>confdefs.h <<\_ACEOF
3994 #define CONFIG_TESTIO_DEBUG 1
3995 _ACEOF
3996
3997         echo "Enabling testio debugging"
3998 fi
3999
4000 else
4001   echo "Disabling testio debugging by default"
4002
4003 fi
4004
4005 # Check whether --enable-swapfs was given.
4006 if test "${enable_swapfs+set}" = set; then
4007   enableval=$enable_swapfs; if test "$enableval" = "no"
4008 then
4009         SWAPFS_CMT=#
4010         echo "Disabling swapfs support"
4011 else
4012         SWAPFS_CMT=
4013         cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_SWAPFS 1
4015 _ACEOF
4016
4017         echo "Enabling swapfs support"
4018 fi
4019
4020 else
4021   SWAPFS_CMT=
4022 echo "Enabling swapfs support by default"
4023 cat >>confdefs.h <<\_ACEOF
4024 #define ENABLE_SWAPFS 1
4025 _ACEOF
4026
4027
4028 fi
4029
4030
4031 # Check whether --enable-debugfs was given.
4032 if test "${enable_debugfs+set}" = set; then
4033   enableval=$enable_debugfs; if test "$enableval" = "no"
4034 then
4035         echo "Disabling debugfs support"
4036         DEBUGFS_CMT="#"
4037 else
4038         DEBUGFS_CMT=
4039         echo "Enabling debugfs support"
4040 fi
4041
4042 else
4043   echo "Enabling debugfs support by default"
4044 DEBUGFS_CMT=
4045
4046 fi
4047
4048
4049 # Check whether --enable-imager was given.
4050 if test "${enable_imager+set}" = set; then
4051   enableval=$enable_imager; if test "$enableval" = "no"
4052 then
4053         echo "Disabling e2image support"
4054         IMAGER_CMT="#"
4055 else
4056         IMAGER_CMT=
4057         echo "Enabling e2image support"
4058 fi
4059
4060 else
4061   echo "Enabling e2image support by default"
4062 IMAGER_CMT=
4063
4064 fi
4065
4066
4067 # Check whether --enable-resizer was given.
4068 if test "${enable_resizer+set}" = set; then
4069   enableval=$enable_resizer; if test "$enableval" = "no"
4070 then
4071         echo "Disabling e2resize support"
4072         RESIZER_CMT="#"
4073 else
4074         RESIZER_CMT=
4075         echo "Enabling e2resize support"
4076 fi
4077
4078 else
4079   echo "Enabling e2resize support by default"
4080 RESIZER_CMT=
4081
4082 fi
4083
4084
4085 # Check whether --enable-fsck was given.
4086 if test "${enable_fsck+set}" = set; then
4087   enableval=$enable_fsck; if test "$enableval" = "no"
4088 then
4089         FSCK_PROG='' FSCK_MAN=''
4090         echo "Not building fsck wrapper"
4091 else
4092         FSCK_PROG=fsck FSCK_MAN=fsck.8
4093         echo "Building fsck wrapper"
4094 fi
4095
4096 else
4097   case "$host_os" in
4098   gnu*)
4099     FSCK_PROG='' FSCK_MAN=''
4100     echo "Not building fsck wrapper by default"
4101     ;;
4102   *)
4103     FSCK_PROG=fsck FSCK_MAN=fsck.8
4104     echo "Building fsck wrapper by default"
4105 esac
4106
4107 fi
4108
4109
4110
4111 # Check whether --enable-e2initrd-helper was given.
4112 if test "${enable_e2initrd_helper+set}" = set; then
4113   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4114 then
4115         E2INITRD_PROG='' E2INITRD_MAN=''
4116         echo "Not building e2initrd helper"
4117 else
4118         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4119         echo "Building e2initrd helper"
4120 fi
4121
4122 else
4123   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4124 echo "Building e2initrd helper by default"
4125
4126 fi
4127
4128
4129
4130 STATIC_BLKID_DEVMAPPER_LIBS=''
4131 # Check whether --enable-blkid-devmapper was given.
4132 if test "${enable_blkid_devmapper+set}" = set; then
4133   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4134 then
4135         echo "Disabling device-mapper support"
4136         DEVMAPPER_REQ=''
4137         DEVMAPPER_LIBS=''
4138         STATIC_DEVMAPPER_LIBS=''
4139 else
4140         cat >>confdefs.h <<\_ACEOF
4141 #define HAVE_DEVMAPPER 1
4142 _ACEOF
4143
4144         echo "Enabling device-mapper support"
4145
4146
4147
4148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4149         if test -n "$ac_tool_prefix"; then
4150   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   case $PKG_CONFIG in
4158   [\\/]* | ?:[\\/]*)
4159   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4160   ;;
4161   *)
4162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177   ;;
4178 esac
4179 fi
4180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4181 if test -n "$PKG_CONFIG"; then
4182   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4183 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4184 else
4185   { echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6; }
4187 fi
4188
4189
4190 fi
4191 if test -z "$ac_cv_path_PKG_CONFIG"; then
4192   ac_pt_PKG_CONFIG=$PKG_CONFIG
4193   # Extract the first word of "pkg-config", so it can be a program name with args.
4194 set dummy pkg-config; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   case $ac_pt_PKG_CONFIG in
4201   [\\/]* | ?:[\\/]*)
4202   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4203   ;;
4204   *)
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220   ;;
4221 esac
4222 fi
4223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4224 if test -n "$ac_pt_PKG_CONFIG"; then
4225   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4226 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4227 else
4228   { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4230 fi
4231
4232   if test "x$ac_pt_PKG_CONFIG" = x; then
4233     PKG_CONFIG=""
4234   else
4235     case $cross_compiling:$ac_tool_warned in
4236 yes:)
4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet.  If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241 whose name does not start with the host triplet.  If you think this
4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245     PKG_CONFIG=$ac_pt_PKG_CONFIG
4246   fi
4247 else
4248   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4249 fi
4250
4251 fi
4252 if test -n "$PKG_CONFIG"; then
4253         _pkg_min_version=0.9.0
4254         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4255 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4256         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4257                 { echo "$as_me:$LINENO: result: yes" >&5
4258 echo "${ECHO_T}yes" >&6; }
4259         else
4260                 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4262                 PKG_CONFIG=""
4263         fi
4264
4265 fi
4266
4267         if test -z "$PKG_CONFIG"; then
4268                 echo "pkg-config not installed; please install it."
4269                 exit 1;
4270         fi
4271
4272         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4273 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4274 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   ac_check_lib_save_LIBS=$LIBS
4278 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285
4286 /* Override any GCC internal prototype to avoid an error.
4287    Use char because int might match the return type of a GCC
4288    builtin and then its argument prototype would still apply.  */
4289 #ifdef __cplusplus
4290 extern "C"
4291 #endif
4292 char dm_tree_create ();
4293 int
4294 main ()
4295 {
4296 return dm_tree_create ();
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_link") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest$ac_exeext &&
4318        $as_test_x conftest$ac_exeext; then
4319   ac_cv_lib_devmapper_dm_tree_create=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324         ac_cv_lib_devmapper_dm_tree_create=no
4325 fi
4326
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328       conftest$ac_exeext conftest.$ac_ext
4329 LIBS=$ac_check_lib_save_LIBS
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4332 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4333 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4334   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4335                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4336                  DEVMAPPER_REQ="devmapper";
4337                  DEVMAPPER_PC_LIBS="-ldevmapper"
4338 else
4339   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4340 echo "$as_me: error: device-mapper library not found" >&2;}
4341    { (exit 1); exit 1; }; }
4342 fi
4343
4344         # work around stupid devmapper.pc bug in Debian
4345         case "$STATIC_DEVMAPPER_LIBS" in
4346         *pthread*)
4347             ;;
4348         *)
4349             echo "Working around Debian bug #390243..."
4350             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4351             ;;
4352         esac
4353         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4354             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4356         fi
4357 fi
4358
4359 else
4360   echo "Disabling device-mapper support by default"
4361
4362 fi
4363
4364
4365
4366
4367
4368
4369 # Check whether --enable-tls was given.
4370 if test "${enable_tls+set}" = set; then
4371   enableval=$enable_tls; if test "$enableval" = "no"
4372 then
4373         try_tls=""
4374         echo "Disabling thread local support"
4375 else
4376         try_tls="yes"
4377         echo "Enabling thread local support"
4378 fi
4379
4380 else
4381   try_tls="yes"
4382 echo "Try using thread local support by default"
4383
4384 fi
4385
4386 if test "$try_tls" = "yes"
4387 then
4388
4389   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4390 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4391   if test "${ac_cv_tls+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394
4395     ax_tls_keywords="__thread __declspec(thread) none"
4396     for ax_tls_keyword in $ax_tls_keywords; do
4397        case $ax_tls_keyword in
4398           none) ac_cv_tls=none ; break ;;
4399           *)
4400              cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h.  */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h.  */
4406 #include <stdlib.h>
4407                  static void
4408                  foo(void) {
4409                  static  $ax_tls_keyword  int bar;
4410                  exit(1);
4411                  }
4412 int
4413 main ()
4414 {
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (ac_try="$ac_compile"
4422 case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_compile") 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } && {
4434          test -z "$ac_c_werror_flag" ||
4435          test ! -s conftest.err
4436        } && test -s conftest.$ac_objext; then
4437   ac_cv_tls=$ax_tls_keyword ; break
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442         ac_cv_tls=none
4443
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447           esac
4448     done
4449
4450 fi
4451
4452
4453   if test "$ac_cv_tls" != "none"; then
4454
4455 cat >>confdefs.h <<_ACEOF
4456 #define TLS $ac_cv_tls
4457 _ACEOF
4458
4459   fi
4460   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4461 echo "${ECHO_T}$ac_cv_tls" >&6; }
4462
4463 fi
4464 # Check whether --enable-uuidd was given.
4465 if test "${enable_uuidd+set}" = set; then
4466   enableval=$enable_uuidd; if test "$enableval" = "no"
4467 then
4468         echo "Not building uuidd"
4469         UUIDD_CMT="#"
4470 else
4471         cat >>confdefs.h <<\_ACEOF
4472 #define USE_UUIDD 1
4473 _ACEOF
4474
4475         UUIDD_CMT=""
4476         echo "Building uuidd"
4477 fi
4478
4479 else
4480   cat >>confdefs.h <<\_ACEOF
4481 #define USE_UUIDD 1
4482 _ACEOF
4483
4484 UUIDD_CMT=""
4485 echo "Building uuidd by default"
4486
4487 fi
4488
4489
4490 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4491
4492 GETTEXT_PACKAGE=e2fsprogs
4493 PACKAGE=e2fsprogs
4494 VERSION="$E2FSPROGS_VERSION"
4495 VERSION=0.14.1
4496 cat >>confdefs.h <<_ACEOF
4497 #define PACKAGE "$PACKAGE"
4498 _ACEOF
4499
4500 cat >>confdefs.h <<_ACEOF
4501 #define VERSION "$VERSION"
4502 _ACEOF
4503
4504
4505
4506
4507
4508 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4510 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4511 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   cat >conftest.make <<\_ACEOF
4515 SHELL = /bin/sh
4516 all:
4517         @echo '@@@%%%=$(MAKE)=@@@%%%'
4518 _ACEOF
4519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4521   *@@@%%%=?*=@@@%%%*)
4522     eval ac_cv_prog_make_${ac_make}_set=yes;;
4523   *)
4524     eval ac_cv_prog_make_${ac_make}_set=no;;
4525 esac
4526 rm -f conftest.make
4527 fi
4528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4529   { echo "$as_me:$LINENO: result: yes" >&5
4530 echo "${ECHO_T}yes" >&6; }
4531   SET_MAKE=
4532 else
4533   { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4535   SET_MAKE="MAKE=${MAKE-make}"
4536 fi
4537
4538 # Find a good install program.  We prefer a C program (faster),
4539 # so one script is as good as another.  But avoid the broken or
4540 # incompatible versions:
4541 # SysV /etc/install, /usr/sbin/install
4542 # SunOS /usr/etc/install
4543 # IRIX /sbin/install
4544 # AIX /bin/install
4545 # AmigaOS /C/install, which installs bootblocks on floppy discs
4546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4549 # OS/2's system install, which has a completely different semantic
4550 # ./install, which can be erroneously created by make from ./install.sh.
4551 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4552 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4553 if test -z "$INSTALL"; then
4554 if test "${ac_cv_path_install+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   # Account for people who put trailing slashes in PATH elements.
4563 case $as_dir/ in
4564   ./ | .// | /cC/* | \
4565   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4566   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4567   /usr/ucb/* ) ;;
4568   *)
4569     # OSF1 and SCO ODT 3.0 have their own names for install.
4570     # Don't use installbsd from OSF since it installs stuff as root
4571     # by default.
4572     for ac_prog in ginstall scoinst install; do
4573       for ac_exec_ext in '' $ac_executable_extensions; do
4574         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4575           if test $ac_prog = install &&
4576             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4577             # AIX install.  It has an incompatible calling convention.
4578             :
4579           elif test $ac_prog = install &&
4580             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4581             # program-specific install script used by HP pwplus--don't use.
4582             :
4583           else
4584             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4585             break 3
4586           fi
4587         fi
4588       done
4589     done
4590     ;;
4591 esac
4592 done
4593 IFS=$as_save_IFS
4594
4595
4596 fi
4597   if test "${ac_cv_path_install+set}" = set; then
4598     INSTALL=$ac_cv_path_install
4599   else
4600     # As a last resort, use the slow shell script.  Don't cache a
4601     # value for INSTALL within a source directory, because that will
4602     # break other packages using the cache if that directory is
4603     # removed, or if the value is a relative name.
4604     INSTALL=$ac_install_sh
4605   fi
4606 fi
4607 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4608 echo "${ECHO_T}$INSTALL" >&6; }
4609
4610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4611 # It thinks the first close brace ends the variable substitution.
4612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4613
4614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4615
4616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4617
4618
4619         MKINSTALLDIRS=
4620   if test -n "$ac_aux_dir"; then
4621     case "$ac_aux_dir" in
4622       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4623       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4624     esac
4625   fi
4626   if test -z "$MKINSTALLDIRS"; then
4627     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4628   fi
4629
4630
4631
4632   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4633 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4634     # Check whether --enable-nls was given.
4635 if test "${enable_nls+set}" = set; then
4636   enableval=$enable_nls; USE_NLS=$enableval
4637 else
4638   USE_NLS=yes
4639 fi
4640
4641   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4642 echo "${ECHO_T}$USE_NLS" >&6; }
4643
4644
4645
4646
4647
4648
4649 # Prepare PATH_SEPARATOR.
4650 # The user is always right.
4651 if test "${PATH_SEPARATOR+set}" != set; then
4652   echo "#! /bin/sh" >conf$$.sh
4653   echo  "exit 0"   >>conf$$.sh
4654   chmod +x conf$$.sh
4655   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4656     PATH_SEPARATOR=';'
4657   else
4658     PATH_SEPARATOR=:
4659   fi
4660   rm -f conf$$.sh
4661 fi
4662
4663 # Find out how to test for executable files. Don't use a zero-byte file,
4664 # as systems may use methods other than mode bits to determine executability.
4665 cat >conf$$.file <<_ASEOF
4666 #! /bin/sh
4667 exit 0
4668 _ASEOF
4669 chmod +x conf$$.file
4670 if test -x conf$$.file >/dev/null 2>&1; then
4671   ac_executable_p="test -x"
4672 else
4673   ac_executable_p="test -f"
4674 fi
4675 rm -f conf$$.file
4676
4677 # Extract the first word of "msgfmt", so it can be a program name with args.
4678 set dummy msgfmt; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_path_MSGFMT+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   case "$MSGFMT" in
4685   [\\/]* | ?:[\\/]*)
4686     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4687     ;;
4688   *)
4689     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4690     for ac_dir in $PATH; do
4691       IFS="$ac_save_IFS"
4692       test -z "$ac_dir" && ac_dir=.
4693       for ac_exec_ext in '' $ac_executable_extensions; do
4694         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4695           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4696      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4697             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4698             break 2
4699           fi
4700         fi
4701       done
4702     done
4703     IFS="$ac_save_IFS"
4704   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4705     ;;
4706 esac
4707 fi
4708 MSGFMT="$ac_cv_path_MSGFMT"
4709 if test "$MSGFMT" != ":"; then
4710   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4711 echo "${ECHO_T}$MSGFMT" >&6; }
4712 else
4713   { echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6; }
4715 fi
4716
4717   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4718 set dummy gmsgfmt; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   case $GMSGFMT in
4725   [\\/]* | ?:[\\/]*)
4726   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4727   ;;
4728   *)
4729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734   for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4745   ;;
4746 esac
4747 fi
4748 GMSGFMT=$ac_cv_path_GMSGFMT
4749 if test -n "$GMSGFMT"; then
4750   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4751 echo "${ECHO_T}$GMSGFMT" >&6; }
4752 else
4753   { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4755 fi
4756
4757
4758
4759
4760 # Prepare PATH_SEPARATOR.
4761 # The user is always right.
4762 if test "${PATH_SEPARATOR+set}" != set; then
4763   echo "#! /bin/sh" >conf$$.sh
4764   echo  "exit 0"   >>conf$$.sh
4765   chmod +x conf$$.sh
4766   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4767     PATH_SEPARATOR=';'
4768   else
4769     PATH_SEPARATOR=:
4770   fi
4771   rm -f conf$$.sh
4772 fi
4773
4774 # Find out how to test for executable files. Don't use a zero-byte file,
4775 # as systems may use methods other than mode bits to determine executability.
4776 cat >conf$$.file <<_ASEOF
4777 #! /bin/sh
4778 exit 0
4779 _ASEOF
4780 chmod +x conf$$.file
4781 if test -x conf$$.file >/dev/null 2>&1; then
4782   ac_executable_p="test -x"
4783 else
4784   ac_executable_p="test -f"
4785 fi
4786 rm -f conf$$.file
4787
4788 # Extract the first word of "xgettext", so it can be a program name with args.
4789 set dummy xgettext; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   case "$XGETTEXT" in
4796   [\\/]* | ?:[\\/]*)
4797     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4798     ;;
4799   *)
4800     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4801     for ac_dir in $PATH; do
4802       IFS="$ac_save_IFS"
4803       test -z "$ac_dir" && ac_dir=.
4804       for ac_exec_ext in '' $ac_executable_extensions; do
4805         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4806           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4807      (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
4808             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4809             break 2
4810           fi
4811         fi
4812       done
4813     done
4814     IFS="$ac_save_IFS"
4815   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4816     ;;
4817 esac
4818 fi
4819 XGETTEXT="$ac_cv_path_XGETTEXT"
4820 if test "$XGETTEXT" != ":"; then
4821   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4822 echo "${ECHO_T}$XGETTEXT" >&6; }
4823 else
4824   { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4826 fi
4827
4828     rm -f messages.po
4829
4830
4831 # Prepare PATH_SEPARATOR.
4832 # The user is always right.
4833 if test "${PATH_SEPARATOR+set}" != set; then
4834   echo "#! /bin/sh" >conf$$.sh
4835   echo  "exit 0"   >>conf$$.sh
4836   chmod +x conf$$.sh
4837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4838     PATH_SEPARATOR=';'
4839   else
4840     PATH_SEPARATOR=:
4841   fi
4842   rm -f conf$$.sh
4843 fi
4844
4845 # Find out how to test for executable files. Don't use a zero-byte file,
4846 # as systems may use methods other than mode bits to determine executability.
4847 cat >conf$$.file <<_ASEOF
4848 #! /bin/sh
4849 exit 0
4850 _ASEOF
4851 chmod +x conf$$.file
4852 if test -x conf$$.file >/dev/null 2>&1; then
4853   ac_executable_p="test -x"
4854 else
4855   ac_executable_p="test -f"
4856 fi
4857 rm -f conf$$.file
4858
4859 # Extract the first word of "msgmerge", so it can be a program name with args.
4860 set dummy msgmerge; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   case "$MSGMERGE" in
4867   [\\/]* | ?:[\\/]*)
4868     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4869     ;;
4870   *)
4871     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4872     for ac_dir in $PATH; do
4873       IFS="$ac_save_IFS"
4874       test -z "$ac_dir" && ac_dir=.
4875       for ac_exec_ext in '' $ac_executable_extensions; do
4876         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4877           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4878             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4879             break 2
4880           fi
4881         fi
4882       done
4883     done
4884     IFS="$ac_save_IFS"
4885   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4886     ;;
4887 esac
4888 fi
4889 MSGMERGE="$ac_cv_path_MSGMERGE"
4890 if test "$MSGMERGE" != ":"; then
4891   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4892 echo "${ECHO_T}$MSGMERGE" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899       if test "$GMSGFMT" != ":"; then
4900             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4901        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4902       : ;
4903     else
4904       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4905       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4906 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4907       GMSGFMT=":"
4908     fi
4909   fi
4910
4911       if test "$XGETTEXT" != ":"; then
4912             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4913        (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
4914       : ;
4915     else
4916       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4917 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4918       XGETTEXT=":"
4919     fi
4920         rm -f messages.po
4921   fi
4922
4923   ac_config_commands="$ac_config_commands default-1"
4924
4925
4926 if test -n "$ac_tool_prefix"; then
4927   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_prog_RANLIB+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   if test -n "$RANLIB"; then
4935   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942   for ac_exec_ext in '' $ac_executable_extensions; do
4943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949 done
4950 IFS=$as_save_IFS
4951
4952 fi
4953 fi
4954 RANLIB=$ac_cv_prog_RANLIB
4955 if test -n "$RANLIB"; then
4956   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4957 echo "${ECHO_T}$RANLIB" >&6; }
4958 else
4959   { echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6; }
4961 fi
4962
4963
4964 fi
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966   ac_ct_RANLIB=$RANLIB
4967   # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -n "$ac_ct_RANLIB"; then
4975   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984     ac_cv_prog_ac_ct_RANLIB="ranlib"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4998 else
4999   { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5001 fi
5002
5003   if test "x$ac_ct_RANLIB" = x; then
5004     RANLIB=":"
5005   else
5006     case $cross_compiling:$ac_tool_warned in
5007 yes:)
5008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5009 whose name does not start with the host triplet.  If you think this
5010 configuration is useful to you, please write to autoconf@gnu.org." >&5
5011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5012 whose name does not start with the host triplet.  If you think this
5013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016     RANLIB=$ac_ct_RANLIB
5017   fi
5018 else
5019   RANLIB="$ac_cv_prog_RANLIB"
5020 fi
5021
5022
5023         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5024 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5025 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   ac_check_lib_save_LIBS=$LIBS
5029 LIBS="-lcposix  $LIBS"
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036
5037 /* Override any GCC internal prototype to avoid an error.
5038    Use char because int might match the return type of a GCC
5039    builtin and then its argument prototype would still apply.  */
5040 #ifdef __cplusplus
5041 extern "C"
5042 #endif
5043 char strerror ();
5044 int
5045 main ()
5046 {
5047 return strerror ();
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext conftest$ac_exeext
5053 if { (ac_try="$ac_link"
5054 case "(($ac_try" in
5055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056   *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059   (eval "$ac_link") 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } && {
5066          test -z "$ac_c_werror_flag" ||
5067          test ! -s conftest.err
5068        } && test -s conftest$ac_exeext &&
5069        $as_test_x conftest$ac_exeext; then
5070   ac_cv_lib_cposix_strerror=yes
5071 else
5072   echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075         ac_cv_lib_cposix_strerror=no
5076 fi
5077
5078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5079       conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5081 fi
5082 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5083 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5084 if test $ac_cv_lib_cposix_strerror = yes; then
5085   LIBS="$LIBS -lcposix"
5086 fi
5087
5088
5089
5090 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5092 if test "${ac_cv_c_const+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101
5102 int
5103 main ()
5104 {
5105 /* FIXME: Include the comments suggested by Paul. */
5106 #ifndef __cplusplus
5107   /* Ultrix mips cc rejects this.  */
5108   typedef int charset[2];
5109   const charset cs;
5110   /* SunOS 4.1.1 cc rejects this.  */
5111   char const *const *pcpcc;
5112   char **ppc;
5113   /* NEC SVR4.0.2 mips cc rejects this.  */
5114   struct point {int x, y;};
5115   static struct point const zero = {0,0};
5116   /* AIX XL C 1.02.0.0 rejects this.
5117      It does not let you subtract one const X* pointer from another in
5118      an arm of an if-expression whose if-part is not a constant
5119      expression */
5120   const char *g = "string";
5121   pcpcc = &g + (g ? g-g : 0);
5122   /* HPUX 7.0 cc rejects these. */
5123   ++pcpcc;
5124   ppc = (char**) pcpcc;
5125   pcpcc = (char const *const *) ppc;
5126   { /* SCO 3.2v4 cc rejects this.  */
5127     char *t;
5128     char const *s = 0 ? (char *) 0 : (char const *) 0;
5129
5130     *t++ = 0;
5131     if (s) return 0;
5132   }
5133   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5134     int x[] = {25, 17};
5135     const int *foo = &x[0];
5136     ++foo;
5137   }
5138   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5139     typedef const int *iptr;
5140     iptr p = 0;
5141     ++p;
5142   }
5143   { /* AIX XL C 1.02.0.0 rejects this saying
5144        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5145     struct s { int j; const int *ap[3]; };
5146     struct s *b; b->j = 5;
5147   }
5148   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5149     const int foo = 10;
5150     if (!foo) return 0;
5151   }
5152   return !cs[0] && !zero.x;
5153 #endif
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (ac_try="$ac_compile"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_compile") 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } && {
5173          test -z "$ac_c_werror_flag" ||
5174          test ! -s conftest.err
5175        } && test -s conftest.$ac_objext; then
5176   ac_cv_c_const=yes
5177 else
5178   echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181         ac_cv_c_const=no
5182 fi
5183
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5187 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5188 if test $ac_cv_c_const = no; then
5189
5190 cat >>confdefs.h <<\_ACEOF
5191 #define const
5192 _ACEOF
5193
5194 fi
5195
5196
5197   { echo "$as_me:$LINENO: checking for signed" >&5
5198 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5199 if test "${bh_cv_c_signed+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208
5209 int
5210 main ()
5211 {
5212 signed char x;
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (ac_try="$ac_compile"
5219 case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_compile") 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } && {
5231          test -z "$ac_c_werror_flag" ||
5232          test ! -s conftest.err
5233        } && test -s conftest.$ac_objext; then
5234   bh_cv_c_signed=yes
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239         bh_cv_c_signed=no
5240 fi
5241
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 fi
5244 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5245 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5246   if test $bh_cv_c_signed = no; then
5247
5248 cat >>confdefs.h <<\_ACEOF
5249 #define signed
5250 _ACEOF
5251
5252   fi
5253
5254 { echo "$as_me:$LINENO: checking for inline" >&5
5255 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5256 if test "${ac_cv_c_inline+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   ac_cv_c_inline=no
5260 for ac_kw in inline __inline__ __inline; do
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #ifndef __cplusplus
5268 typedef int foo_t;
5269 static $ac_kw foo_t static_foo () {return 0; }
5270 $ac_kw foo_t foo () {return 0; }
5271 #endif
5272
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compile") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } && {
5288          test -z "$ac_c_werror_flag" ||
5289          test ! -s conftest.err
5290        } && test -s conftest.$ac_objext; then
5291   ac_cv_c_inline=$ac_kw
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296
5297 fi
5298
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300   test "$ac_cv_c_inline" != no && break
5301 done
5302
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5305 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5306
5307
5308 case $ac_cv_c_inline in
5309   inline | yes) ;;
5310   *)
5311     case $ac_cv_c_inline in
5312       no) ac_val=;;
5313       *) ac_val=$ac_cv_c_inline;;
5314     esac
5315     cat >>confdefs.h <<_ACEOF
5316 #ifndef __cplusplus
5317 #define inline $ac_val
5318 #endif
5319 _ACEOF
5320     ;;
5321 esac
5322
5323 { echo "$as_me:$LINENO: checking for off_t" >&5
5324 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5325 if test "${ac_cv_type_off_t+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 $ac_includes_default
5335 typedef off_t ac__type_new_;
5336 int
5337 main ()
5338 {
5339 if ((ac__type_new_ *) 0)
5340   return 0;
5341 if (sizeof (ac__type_new_))
5342   return 0;
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (ac_try="$ac_compile"
5349 case "(($ac_try" in
5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351   *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354   (eval "$ac_compile") 2>conftest.er1
5355   ac_status=$?
5356   grep -v '^ *+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } && {
5361          test -z "$ac_c_werror_flag" ||
5362          test ! -s conftest.err
5363        } && test -s conftest.$ac_objext; then
5364   ac_cv_type_off_t=yes
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369         ac_cv_type_off_t=no
5370 fi
5371
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 fi
5374 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5375 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5376 if test $ac_cv_type_off_t = yes; then
5377   :
5378 else
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define off_t long int
5382 _ACEOF
5383
5384 fi
5385
5386 { echo "$as_me:$LINENO: checking for size_t" >&5
5387 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5388 if test "${ac_cv_type_size_t+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 $ac_includes_default
5398 typedef size_t ac__type_new_;
5399 int
5400 main ()
5401 {
5402 if ((ac__type_new_ *) 0)
5403   return 0;
5404 if (sizeof (ac__type_new_))
5405   return 0;
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5412 case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_compile") 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } && {
5424          test -z "$ac_c_werror_flag" ||
5425          test ! -s conftest.err
5426        } && test -s conftest.$ac_objext; then
5427   ac_cv_type_size_t=yes
5428 else
5429   echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432         ac_cv_type_size_t=no
5433 fi
5434
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 fi
5437 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5438 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5439 if test $ac_cv_type_size_t = yes; then
5440   :
5441 else
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define size_t unsigned int
5445 _ACEOF
5446
5447 fi
5448
5449
5450   { echo "$as_me:$LINENO: checking for long long" >&5
5451 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5452 if test "${ac_cv_type_long_long+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 long long ll = 1LL; int i = 63;
5462 int
5463 main ()
5464 {
5465 long long llmax = (long long) -1;
5466      return ll << i | ll >> i | llmax / ll | llmax % ll;
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (ac_try="$ac_link"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_link") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } && {
5485          test -z "$ac_c_werror_flag" ||
5486          test ! -s conftest.err
5487        } && test -s conftest$ac_exeext &&
5488        $as_test_x conftest$ac_exeext; then
5489   ac_cv_type_long_long=yes
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494         ac_cv_type_long_long=no
5495 fi
5496
5497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5498       conftest$ac_exeext conftest.$ac_ext
5499 fi
5500 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5501 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5502   if test $ac_cv_type_long_long = yes; then
5503
5504 cat >>confdefs.h <<\_ACEOF
5505 #define HAVE_LONG_LONG 1
5506 _ACEOF
5507
5508   fi
5509
5510
5511   { echo "$as_me:$LINENO: checking for long double" >&5
5512 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5513 if test "${gt_cv_c_long_double+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   if test "$GCC" = yes; then
5517        gt_cv_c_long_double=yes
5518      else
5519        cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525
5526          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5527          long double foo = 0.0;
5528          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5529          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5530
5531 int
5532 main ()
5533 {
5534
5535   ;
5536   return 0;
5537 }
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543   *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546   (eval "$ac_compile") 2>conftest.er1
5547   ac_status=$?
5548   grep -v '^ *+' conftest.er1 >conftest.err
5549   rm -f conftest.er1
5550   cat conftest.err >&5
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); } && {
5553          test -z "$ac_c_werror_flag" ||
5554          test ! -s conftest.err
5555        } && test -s conftest.$ac_objext; then
5556   gt_cv_c_long_double=yes
5557 else
5558   echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561         gt_cv_c_long_double=no
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565      fi
5566 fi
5567 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5568 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5569   if test $gt_cv_c_long_double = yes; then
5570
5571 cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_LONG_DOUBLE 1
5573 _ACEOF
5574
5575   fi
5576
5577
5578   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5579 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5580 if test "${gt_cv_c_wchar_t+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 #include <stddef.h>
5590        wchar_t foo = (wchar_t)'\0';
5591 int
5592 main ()
5593 {
5594
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_compile") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } && {
5613          test -z "$ac_c_werror_flag" ||
5614          test ! -s conftest.err
5615        } && test -s conftest.$ac_objext; then
5616   gt_cv_c_wchar_t=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621         gt_cv_c_wchar_t=no
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5627 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5628   if test $gt_cv_c_wchar_t = yes; then
5629
5630 cat >>confdefs.h <<\_ACEOF
5631 #define HAVE_WCHAR_T 1
5632 _ACEOF
5633
5634   fi
5635
5636
5637   { echo "$as_me:$LINENO: checking for wint_t" >&5
5638 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5639 if test "${gt_cv_c_wint_t+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 #include <wchar.h>
5649        wint_t foo = (wchar_t)'\0';
5650 int
5651 main ()
5652 {
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext
5659 if { (ac_try="$ac_compile"
5660 case "(($ac_try" in
5661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662   *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665   (eval "$ac_compile") 2>conftest.er1
5666   ac_status=$?
5667   grep -v '^ *+' conftest.er1 >conftest.err
5668   rm -f conftest.er1
5669   cat conftest.err >&5
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); } && {
5672          test -z "$ac_c_werror_flag" ||
5673          test ! -s conftest.err
5674        } && test -s conftest.$ac_objext; then
5675   gt_cv_c_wint_t=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680         gt_cv_c_wint_t=no
5681 fi
5682
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5686 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5687   if test $gt_cv_c_wint_t = yes; then
5688
5689 cat >>confdefs.h <<\_ACEOF
5690 #define HAVE_WINT_T 1
5691 _ACEOF
5692
5693   fi
5694
5695
5696   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5697 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5698 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h.  */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h.  */
5707 #include <sys/types.h>
5708 #include <inttypes.h>
5709 int
5710 main ()
5711 {
5712 uintmax_t i = (uintmax_t) -1;
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } && {
5731          test -z "$ac_c_werror_flag" ||
5732          test ! -s conftest.err
5733        } && test -s conftest.$ac_objext; then
5734   jm_ac_cv_header_inttypes_h=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739         jm_ac_cv_header_inttypes_h=no
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5745 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5746   if test $jm_ac_cv_header_inttypes_h = yes; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5750 _ACEOF
5751
5752   fi
5753
5754
5755   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5756 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5757 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 #include <sys/types.h>
5767 #include <stdint.h>
5768 int
5769 main ()
5770 {
5771 uintmax_t i = (uintmax_t) -1;
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783   (eval "$ac_compile") 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } && {
5790          test -z "$ac_c_werror_flag" ||
5791          test ! -s conftest.err
5792        } && test -s conftest.$ac_objext; then
5793   jm_ac_cv_header_stdint_h=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798         jm_ac_cv_header_stdint_h=no
5799 fi
5800
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 fi
5803 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5804 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5805   if test $jm_ac_cv_header_stdint_h = yes; then
5806
5807 cat >>confdefs.h <<_ACEOF
5808 #define HAVE_STDINT_H_WITH_UINTMAX 1
5809 _ACEOF
5810
5811   fi
5812
5813
5814
5815
5816   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5817 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5818 if test "${gt_cv_c_intmax_t+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827
5828 #include <stddef.h>
5829 #include <stdlib.h>
5830 #if HAVE_STDINT_H_WITH_UINTMAX
5831 #include <stdint.h>
5832 #endif
5833 #if HAVE_INTTYPES_H_WITH_UINTMAX
5834 #include <inttypes.h>
5835 #endif
5836
5837 int
5838 main ()
5839 {
5840 intmax_t x = -1;
5841   ;
5842   return 0;
5843 }
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849   *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852   (eval "$ac_compile") 2>conftest.er1
5853   ac_status=$?
5854   grep -v '^ *+' conftest.er1 >conftest.err
5855   rm -f conftest.er1
5856   cat conftest.err >&5
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } && {
5859          test -z "$ac_c_werror_flag" ||
5860          test ! -s conftest.err
5861        } && test -s conftest.$ac_objext; then
5862   gt_cv_c_intmax_t=yes
5863 else
5864   echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867         gt_cv_c_intmax_t=no
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 fi
5872 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5873 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5874   if test $gt_cv_c_intmax_t = yes; then
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_INTMAX_T 1
5878 _ACEOF
5879
5880   fi
5881
5882
5883
5884   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5885 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5886 if test "${gt_cv_func_printf_posix+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889
5890       if test "$cross_compiling" = yes; then
5891
5892         cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898
5899 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5900   notposix
5901 #endif
5902
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905   $EGREP "notposix" >/dev/null 2>&1; then
5906   gt_cv_func_printf_posix="guessing no"
5907 else
5908   gt_cv_func_printf_posix="guessing yes"
5909 fi
5910 rm -f conftest*
5911
5912
5913 else
5914   cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 #include <stdio.h>
5922 #include <string.h>
5923 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5924    dollar expansion (possibly an autoconf bug).  */
5925 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5926 static char buf[100];
5927 int main ()
5928 {
5929   sprintf (buf, format, 33, 55);
5930   return (strcmp (buf, "55 33") != 0);
5931 }
5932 _ACEOF
5933 rm -f conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_link") 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5944   { (case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_try") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; }; then
5953   gt_cv_func_printf_posix=yes
5954 else
5955   echo "$as_me: program exited with status $ac_status" >&5
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ( exit $ac_status )
5960 gt_cv_func_printf_posix=no
5961 fi
5962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5963 fi
5964
5965
5966
5967 fi
5968 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5969 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5970   case $gt_cv_func_printf_posix in
5971     *yes)
5972
5973 cat >>confdefs.h <<\_ACEOF
5974 #define HAVE_POSIX_PRINTF 1
5975 _ACEOF
5976
5977       ;;
5978   esac
5979
5980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5981 # for constant arguments.  Useless!
5982 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5983 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5984 if test "${ac_cv_working_alloca_h+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #include <alloca.h>
5994 int
5995 main ()
5996 {
5997 char *p = (char *) alloca (2 * sizeof (int));
5998                           if (p) return 0;
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6005 case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_link") 2>conftest.er1
6011   ac_status=$?
6012   grep -v '^ *+' conftest.er1 >conftest.err
6013   rm -f conftest.er1
6014   cat conftest.err >&5
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } && {
6017          test -z "$ac_c_werror_flag" ||
6018          test ! -s conftest.err
6019        } && test -s conftest$ac_exeext &&
6020        $as_test_x conftest$ac_exeext; then
6021   ac_cv_working_alloca_h=yes
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026         ac_cv_working_alloca_h=no
6027 fi
6028
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030       conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6033 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6034 if test $ac_cv_working_alloca_h = yes; then
6035
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_ALLOCA_H 1
6038 _ACEOF
6039
6040 fi
6041
6042 { echo "$as_me:$LINENO: checking for alloca" >&5
6043 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6044 if test "${ac_cv_func_alloca_works+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #ifdef __GNUC__
6054 # define alloca __builtin_alloca
6055 #else
6056 # ifdef _MSC_VER
6057 #  include <malloc.h>
6058 #  define alloca _alloca
6059 # else
6060 #  ifdef HAVE_ALLOCA_H
6061 #   include <alloca.h>
6062 #  else
6063 #   ifdef _AIX
6064  #pragma alloca
6065 #   else
6066 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6067 char *alloca ();
6068 #    endif
6069 #   endif
6070 #  endif
6071 # endif
6072 #endif
6073
6074 int
6075 main ()
6076 {
6077 char *p = (char *) alloca (1);
6078                                     if (p) return 0;
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (ac_try="$ac_link"
6085 case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_link") 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } && {
6097          test -z "$ac_c_werror_flag" ||
6098          test ! -s conftest.err
6099        } && test -s conftest$ac_exeext &&
6100        $as_test_x conftest$ac_exeext; then
6101   ac_cv_func_alloca_works=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106         ac_cv_func_alloca_works=no
6107 fi
6108
6109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6110       conftest$ac_exeext conftest.$ac_ext
6111 fi
6112 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6113 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6114
6115 if test $ac_cv_func_alloca_works = yes; then
6116
6117 cat >>confdefs.h <<\_ACEOF
6118 #define HAVE_ALLOCA 1
6119 _ACEOF
6120
6121 else
6122   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6123 # that cause trouble.  Some versions do not even contain alloca or
6124 # contain a buggy version.  If you still want to use their alloca,
6125 # use ar to extract alloca.o from them instead of compiling alloca.c.
6126
6127 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6128
6129 cat >>confdefs.h <<\_ACEOF
6130 #define C_ALLOCA 1
6131 _ACEOF
6132
6133
6134 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6135 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6136 if test "${ac_cv_os_cray+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #if defined CRAY && ! defined CRAY2
6146 webecray
6147 #else
6148 wenotbecray
6149 #endif
6150
6151 _ACEOF
6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153   $EGREP "webecray" >/dev/null 2>&1; then
6154   ac_cv_os_cray=yes
6155 else
6156   ac_cv_os_cray=no
6157 fi
6158 rm -f conftest*
6159
6160 fi
6161 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6162 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6163 if test $ac_cv_os_cray = yes; then
6164   for ac_func in _getb67 GETB67 getb67; do
6165     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6179 #define $ac_func innocuous_$ac_func
6180
6181 /* System header to define __stub macros and hopefully few prototypes,
6182     which can conflict with char $ac_func (); below.
6183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184     <limits.h> exists even on freestanding compilers.  */
6185
6186 #ifdef __STDC__
6187 # include <limits.h>
6188 #else
6189 # include <assert.h>
6190 #endif
6191
6192 #undef $ac_func
6193
6194 /* Override any GCC internal prototype to avoid an error.
6195    Use char because int might match the return type of a GCC
6196    builtin and then its argument prototype would still apply.  */
6197 #ifdef __cplusplus
6198 extern "C"
6199 #endif
6200 char $ac_func ();
6201 /* The GNU C library defines this for functions which it implements
6202     to always fail with ENOSYS.  Some functions are actually named
6203     something starting with __ and the normal name is an alias.  */
6204 #if defined __stub_$ac_func || defined __stub___$ac_func
6205 choke me
6206 #endif
6207
6208 int
6209 main ()
6210 {
6211 return $ac_func ();
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223   (eval "$ac_link") 2>conftest.er1
6224   ac_status=$?
6225   grep -v '^ *+' conftest.er1 >conftest.err
6226   rm -f conftest.er1
6227   cat conftest.err >&5
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } && {
6230          test -z "$ac_c_werror_flag" ||
6231          test ! -s conftest.err
6232        } && test -s conftest$ac_exeext &&
6233        $as_test_x conftest$ac_exeext; then
6234   eval "$as_ac_var=yes"
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239         eval "$as_ac_var=no"
6240 fi
6241
6242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6243       conftest$ac_exeext conftest.$ac_ext
6244 fi
6245 ac_res=`eval echo '${'$as_ac_var'}'`
6246                { echo "$as_me:$LINENO: result: $ac_res" >&5
6247 echo "${ECHO_T}$ac_res" >&6; }
6248 if test `eval echo '${'$as_ac_var'}'` = yes; then
6249
6250 cat >>confdefs.h <<_ACEOF
6251 #define CRAY_STACKSEG_END $ac_func
6252 _ACEOF
6253
6254     break
6255 fi
6256
6257   done
6258 fi
6259
6260 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6262 if test "${ac_cv_c_stack_direction+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   if test "$cross_compiling" = yes; then
6266   ac_cv_c_stack_direction=0
6267 else
6268   cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 $ac_includes_default
6275 int
6276 find_stack_direction ()
6277 {
6278   static char *addr = 0;
6279   auto char dummy;
6280   if (addr == 0)
6281     {
6282       addr = &dummy;
6283       return find_stack_direction ();
6284     }
6285   else
6286     return (&dummy > addr) ? 1 : -1;
6287 }
6288
6289 int
6290 main ()
6291 {
6292   return find_stack_direction () < 0;
6293 }
6294 _ACEOF
6295 rm -f conftest$ac_exeext
6296 if { (ac_try="$ac_link"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_link") 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6306   { (case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_try") 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_cv_c_stack_direction=1
6316 else
6317   echo "$as_me: program exited with status $ac_status" >&5
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ( exit $ac_status )
6322 ac_cv_c_stack_direction=-1
6323 fi
6324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6325 fi
6326
6327
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6330 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6331
6332 cat >>confdefs.h <<_ACEOF
6333 #define STACK_DIRECTION $ac_cv_c_stack_direction
6334 _ACEOF
6335
6336
6337 fi
6338
6339
6340
6341 for ac_header in stdlib.h unistd.h
6342 do
6343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 fi
6350 ac_res=`eval echo '${'$as_ac_Header'}'`
6351                { echo "$as_me:$LINENO: result: $ac_res" >&5
6352 echo "${ECHO_T}$ac_res" >&6; }
6353 else
6354   # Is the header compilable?
6355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h.  */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h.  */
6363 $ac_includes_default
6364 #include <$ac_header>
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_compile") 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } && {
6380          test -z "$ac_c_werror_flag" ||
6381          test ! -s conftest.err
6382        } && test -s conftest.$ac_objext; then
6383   ac_header_compiler=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388         ac_header_compiler=no
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6393 echo "${ECHO_T}$ac_header_compiler" >&6; }
6394
6395 # Is the header present?
6396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404 #include <$ac_header>
6405 _ACEOF
6406 if { (ac_try="$ac_cpp conftest.$ac_ext"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } >/dev/null && {
6419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6420          test ! -s conftest.err
6421        }; then
6422   ac_header_preproc=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427   ac_header_preproc=no
6428 fi
6429
6430 rm -f conftest.err conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6432 echo "${ECHO_T}$ac_header_preproc" >&6; }
6433
6434 # So?  What about this header?
6435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6436   yes:no: )
6437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6441     ac_header_preproc=yes
6442     ;;
6443   no:yes:* )
6444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6456
6457     ;;
6458 esac
6459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   eval "$as_ac_Header=\$ac_header_preproc"
6465 fi
6466 ac_res=`eval echo '${'$as_ac_Header'}'`
6467                { echo "$as_me:$LINENO: result: $ac_res" >&5
6468 echo "${ECHO_T}$ac_res" >&6; }
6469
6470 fi
6471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6472   cat >>confdefs.h <<_ACEOF
6473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 _ACEOF
6475
6476 fi
6477
6478 done
6479
6480
6481 for ac_func in getpagesize
6482 do
6483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6497 #define $ac_func innocuous_$ac_func
6498
6499 /* System header to define __stub macros and hopefully few prototypes,
6500     which can conflict with char $ac_func (); below.
6501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502     <limits.h> exists even on freestanding compilers.  */
6503
6504 #ifdef __STDC__
6505 # include <limits.h>
6506 #else
6507 # include <assert.h>
6508 #endif
6509
6510 #undef $ac_func
6511
6512 /* Override any GCC internal prototype to avoid an error.
6513    Use char because int might match the return type of a GCC
6514    builtin and then its argument prototype would still apply.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 char $ac_func ();
6519 /* The GNU C library defines this for functions which it implements
6520     to always fail with ENOSYS.  Some functions are actually named
6521     something starting with __ and the normal name is an alias.  */
6522 #if defined __stub_$ac_func || defined __stub___$ac_func
6523 choke me
6524 #endif
6525
6526 int
6527 main ()
6528 {
6529 return $ac_func ();
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (ac_try="$ac_link"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541   (eval "$ac_link") 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } && {
6548          test -z "$ac_c_werror_flag" ||
6549          test ! -s conftest.err
6550        } && test -s conftest$ac_exeext &&
6551        $as_test_x conftest$ac_exeext; then
6552   eval "$as_ac_var=yes"
6553 else
6554   echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557         eval "$as_ac_var=no"
6558 fi
6559
6560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6561       conftest$ac_exeext conftest.$ac_ext
6562 fi
6563 ac_res=`eval echo '${'$as_ac_var'}'`
6564                { echo "$as_me:$LINENO: result: $ac_res" >&5
6565 echo "${ECHO_T}$ac_res" >&6; }
6566 if test `eval echo '${'$as_ac_var'}'` = yes; then
6567   cat >>confdefs.h <<_ACEOF
6568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6569 _ACEOF
6570
6571 fi
6572 done
6573
6574 { echo "$as_me:$LINENO: checking for working mmap" >&5
6575 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6576 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test "$cross_compiling" = yes; then
6580   ac_cv_func_mmap_fixed_mapped=no
6581 else
6582   cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 /* malloc might have been renamed as rpl_malloc. */
6590 #undef malloc
6591
6592 /* Thanks to Mike Haertel and Jim Avera for this test.
6593    Here is a matrix of mmap possibilities:
6594         mmap private not fixed
6595         mmap private fixed at somewhere currently unmapped
6596         mmap private fixed at somewhere already mapped
6597         mmap shared not fixed
6598         mmap shared fixed at somewhere currently unmapped
6599         mmap shared fixed at somewhere already mapped
6600    For private mappings, we should verify that changes cannot be read()
6601    back from the file, nor mmap's back from the file at a different
6602    address.  (There have been systems where private was not correctly
6603    implemented like the infamous i386 svr4.0, and systems where the
6604    VM page cache was not coherent with the file system buffer cache
6605    like early versions of FreeBSD and possibly contemporary NetBSD.)
6606    For shared mappings, we should conversely verify that changes get
6607    propagated back to all the places they're supposed to be.
6608
6609    Grep wants private fixed already mapped.
6610    The main things grep needs to know about mmap are:
6611    * does it exist and is it safe to write into the mmap'd area
6612    * how to use it (BSD variants)  */
6613
6614 #include <fcntl.h>
6615 #include <sys/mman.h>
6616
6617 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6618 char *malloc ();
6619 #endif
6620
6621 /* This mess was copied from the GNU getpagesize.h.  */
6622 #ifndef HAVE_GETPAGESIZE
6623 /* Assume that all systems that can run configure have sys/param.h.  */
6624 # ifndef HAVE_SYS_PARAM_H
6625 #  define HAVE_SYS_PARAM_H 1
6626 # endif
6627
6628 # ifdef _SC_PAGESIZE
6629 #  define getpagesize() sysconf(_SC_PAGESIZE)
6630 # else /* no _SC_PAGESIZE */
6631 #  ifdef HAVE_SYS_PARAM_H
6632 #   include <sys/param.h>
6633 #   ifdef EXEC_PAGESIZE
6634 #    define getpagesize() EXEC_PAGESIZE
6635 #   else /* no EXEC_PAGESIZE */
6636 #    ifdef NBPG
6637 #     define getpagesize() NBPG * CLSIZE
6638 #     ifndef CLSIZE
6639 #      define CLSIZE 1
6640 #     endif /* no CLSIZE */
6641 #    else /* no NBPG */
6642 #     ifdef NBPC
6643 #      define getpagesize() NBPC
6644 #     else /* no NBPC */
6645 #      ifdef PAGESIZE
6646 #       define getpagesize() PAGESIZE
6647 #      endif /* PAGESIZE */
6648 #     endif /* no NBPC */
6649 #    endif /* no NBPG */
6650 #   endif /* no EXEC_PAGESIZE */
6651 #  else /* no HAVE_SYS_PARAM_H */
6652 #   define getpagesize() 8192   /* punt totally */
6653 #  endif /* no HAVE_SYS_PARAM_H */
6654 # endif /* no _SC_PAGESIZE */
6655
6656 #endif /* no HAVE_GETPAGESIZE */
6657
6658 int
6659 main ()
6660 {
6661   char *data, *data2, *data3;
6662   int i, pagesize;
6663   int fd;
6664
6665   pagesize = getpagesize ();
6666
6667   /* First, make a file with some known garbage in it. */
6668   data = (char *) malloc (pagesize);
6669   if (!data)
6670     return 1;
6671   for (i = 0; i < pagesize; ++i)
6672     *(data + i) = rand ();
6673   umask (0);
6674   fd = creat ("conftest.mmap", 0600);
6675   if (fd < 0)
6676     return 1;
6677   if (write (fd, data, pagesize) != pagesize)
6678     return 1;
6679   close (fd);
6680
6681   /* Next, try to mmap the file at a fixed address which already has
6682      something else allocated at it.  If we can, also make sure that
6683      we see the same garbage.  */
6684   fd = open ("conftest.mmap", O_RDWR);
6685   if (fd < 0)
6686     return 1;
6687   data2 = (char *) malloc (2 * pagesize);
6688   if (!data2)
6689     return 1;
6690   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6691   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6692                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6693     return 1;
6694   for (i = 0; i < pagesize; ++i)
6695     if (*(data + i) != *(data2 + i))
6696       return 1;
6697
6698   /* Finally, make sure that changes to the mapped area do not
6699      percolate back to the file as seen by read().  (This is a bug on
6700      some variants of i386 svr4.0.)  */
6701   for (i = 0; i < pagesize; ++i)
6702     *(data2 + i) = *(data2 + i) + 1;
6703   data3 = (char *) malloc (pagesize);
6704   if (!data3)
6705     return 1;
6706   if (read (fd, data3, pagesize) != pagesize)
6707     return 1;
6708   for (i = 0; i < pagesize; ++i)
6709     if (*(data + i) != *(data3 + i))
6710       return 1;
6711   close (fd);
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest$ac_exeext
6716 if { (ac_try="$ac_link"
6717 case "(($ac_try" in
6718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719   *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722   (eval "$ac_link") 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6726   { (case "(($ac_try" in
6727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728   *) ac_try_echo=$ac_try;;
6729 esac
6730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731   (eval "$ac_try") 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; }; then
6735   ac_cv_func_mmap_fixed_mapped=yes
6736 else
6737   echo "$as_me: program exited with status $ac_status" >&5
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 ( exit $ac_status )
6742 ac_cv_func_mmap_fixed_mapped=no
6743 fi
6744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6745 fi
6746
6747
6748 fi
6749 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6750 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6751 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6752
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_MMAP 1
6755 _ACEOF
6756
6757 fi
6758 rm -f conftest.mmap
6759
6760
6761     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6762 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6763 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h.  */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h.  */
6772
6773 #include <features.h>
6774 #ifdef __GNU_LIBRARY__
6775  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6776   Lucky GNU user
6777  #endif
6778 #endif
6779
6780 _ACEOF
6781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6782   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6783   ac_cv_gnu_library_2_1=yes
6784 else
6785   ac_cv_gnu_library_2_1=no
6786 fi
6787 rm -f conftest*
6788
6789
6790
6791 fi
6792 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6793 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6794
6795     GLIBC21="$ac_cv_gnu_library_2_1"
6796
6797
6798
6799
6800   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6801 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6802 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805
6806       if test "$cross_compiling" = yes; then
6807
6808           # Guess based on the CPU.
6809           case "$host_cpu" in
6810             alpha* | i3456786 | m68k | s390*)
6811               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6812             *)
6813               gt_cv_int_divbyzero_sigfpe="guessing no";;
6814           esac
6815
6816 else
6817   cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h.  */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h.  */
6823
6824 #include <stdlib.h>
6825 #include <signal.h>
6826
6827 static void
6828 #ifdef __cplusplus
6829 sigfpe_handler (int sig)
6830 #else
6831 sigfpe_handler (sig) int sig;
6832 #endif
6833 {
6834   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6835   exit (sig != SIGFPE);
6836 }
6837
6838 int x = 1;
6839 int y = 0;
6840 int z;
6841 int nan;
6842
6843 int main ()
6844 {
6845   signal (SIGFPE, sigfpe_handler);
6846 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6847 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6848   signal (SIGTRAP, sigfpe_handler);
6849 #endif
6850 /* Linux/SPARC yields signal SIGILL.  */
6851 #if defined (__sparc__) && defined (__linux__)
6852   signal (SIGILL, sigfpe_handler);
6853 #endif
6854
6855   z = x / y;
6856   nan = y / y;
6857   exit (1);
6858 }
6859
6860 _ACEOF
6861 rm -f conftest$ac_exeext
6862 if { (ac_try="$ac_link"
6863 case "(($ac_try" in
6864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865   *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868   (eval "$ac_link") 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872   { (case "(($ac_try" in
6873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874   *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877   (eval "$ac_try") 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; }; then
6881   gt_cv_int_divbyzero_sigfpe=yes
6882 else
6883   echo "$as_me: program exited with status $ac_status" >&5
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ( exit $ac_status )
6888 gt_cv_int_divbyzero_sigfpe=no
6889 fi
6890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6891 fi
6892
6893
6894
6895 fi
6896 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6897 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6898   case "$gt_cv_int_divbyzero_sigfpe" in
6899     *yes) value=1;;
6900     *) value=0;;
6901   esac
6902
6903 cat >>confdefs.h <<_ACEOF
6904 #define INTDIV0_RAISES_SIGFPE $value
6905 _ACEOF
6906
6907
6908
6909   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6910 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6911 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h.  */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h.  */
6920 unsigned long long ull = 1ULL; int i = 63;
6921 int
6922 main ()
6923 {
6924 unsigned long long ullmax = (unsigned long long) -1;
6925      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (ac_try="$ac_link"
6932 case "(($ac_try" in
6933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934   *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937   (eval "$ac_link") 2>conftest.er1
6938   ac_status=$?
6939   grep -v '^ *+' conftest.er1 >conftest.err
6940   rm -f conftest.er1
6941   cat conftest.err >&5
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); } && {
6944          test -z "$ac_c_werror_flag" ||
6945          test ! -s conftest.err
6946        } && test -s conftest$ac_exeext &&
6947        $as_test_x conftest$ac_exeext; then
6948   ac_cv_type_unsigned_long_long=yes
6949 else
6950   echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953         ac_cv_type_unsigned_long_long=no
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6957       conftest$ac_exeext conftest.$ac_ext
6958 fi
6959 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6960 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6961   if test $ac_cv_type_unsigned_long_long = yes; then
6962
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_UNSIGNED_LONG_LONG 1
6965 _ACEOF
6966
6967   fi
6968
6969
6970
6971
6972   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6973
6974     test $ac_cv_type_unsigned_long_long = yes \
6975       && ac_type='unsigned long long' \
6976       || ac_type='unsigned long'
6977
6978 cat >>confdefs.h <<_ACEOF
6979 #define uintmax_t $ac_type
6980 _ACEOF
6981
6982   else
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_UINTMAX_T 1
6986 _ACEOF
6987
6988   fi
6989
6990
6991   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6992 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6993 if test "${gt_cv_header_inttypes_h+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996
6997     cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <sys/types.h>
7004 #include <inttypes.h>
7005 int
7006 main ()
7007 {
7008
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (ac_try="$ac_compile"
7015 case "(($ac_try" in
7016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017   *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020   (eval "$ac_compile") 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } && {
7027          test -z "$ac_c_werror_flag" ||
7028          test ! -s conftest.err
7029        } && test -s conftest.$ac_objext; then
7030   gt_cv_header_inttypes_h=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035         gt_cv_header_inttypes_h=no
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040 fi
7041 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7042 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7043   if test $gt_cv_header_inttypes_h = yes; then
7044
7045 cat >>confdefs.h <<_ACEOF
7046 #define HAVE_INTTYPES_H 1
7047 _ACEOF
7048
7049   fi
7050
7051
7052
7053   if test $gt_cv_header_inttypes_h = yes; then
7054     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7055 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7056 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059
7060         cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h.  */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h.  */
7066 #include <inttypes.h>
7067 #ifdef PRId32
7068 char *p = PRId32;
7069 #endif
7070
7071 int
7072 main ()
7073 {
7074
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083   *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086   (eval "$ac_compile") 2>conftest.er1
7087   ac_status=$?
7088   grep -v '^ *+' conftest.er1 >conftest.err
7089   rm -f conftest.er1
7090   cat conftest.err >&5
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } && {
7093          test -z "$ac_c_werror_flag" ||
7094          test ! -s conftest.err
7095        } && test -s conftest.$ac_objext; then
7096   gt_cv_inttypes_pri_broken=no
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101         gt_cv_inttypes_pri_broken=yes
7102 fi
7103
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105
7106 fi
7107 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7108 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7109   fi
7110   if test "$gt_cv_inttypes_pri_broken" = yes; then
7111
7112 cat >>confdefs.h <<_ACEOF
7113 #define PRI_MACROS_BROKEN 1
7114 _ACEOF
7115
7116   fi
7117
7118
7119
7120 for ac_header in stdint.h
7121 do
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 fi
7129 ac_res=`eval echo '${'$as_ac_Header'}'`
7130                { echo "$as_me:$LINENO: result: $ac_res" >&5
7131 echo "${ECHO_T}$ac_res" >&6; }
7132 else
7133   # Is the header compilable?
7134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h.  */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h.  */
7142 $ac_includes_default
7143 #include <$ac_header>
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7147 case "(($ac_try" in
7148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149   *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152   (eval "$ac_compile") 2>conftest.er1
7153   ac_status=$?
7154   grep -v '^ *+' conftest.er1 >conftest.err
7155   rm -f conftest.er1
7156   cat conftest.err >&5
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } && {
7159          test -z "$ac_c_werror_flag" ||
7160          test ! -s conftest.err
7161        } && test -s conftest.$ac_objext; then
7162   ac_header_compiler=yes
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167         ac_header_compiler=no
7168 fi
7169
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 echo "${ECHO_T}$ac_header_compiler" >&6; }
7173
7174 # Is the header present?
7175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 #include <$ac_header>
7184 _ACEOF
7185 if { (ac_try="$ac_cpp conftest.$ac_ext"
7186 case "(($ac_try" in
7187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188   *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } >/dev/null && {
7198          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7199          test ! -s conftest.err
7200        }; then
7201   ac_header_preproc=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206   ac_header_preproc=no
7207 fi
7208
7209 rm -f conftest.err conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211 echo "${ECHO_T}$ac_header_preproc" >&6; }
7212
7213 # So?  What about this header?
7214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215   yes:no: )
7216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220     ac_header_preproc=yes
7221     ;;
7222   no:yes:* )
7223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7235
7236     ;;
7237 esac
7238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   eval "$as_ac_Header=\$ac_header_preproc"
7244 fi
7245 ac_res=`eval echo '${'$as_ac_Header'}'`
7246                { echo "$as_me:$LINENO: result: $ac_res" >&5
7247 echo "${ECHO_T}$ac_res" >&6; }
7248
7249 fi
7250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7251   cat >>confdefs.h <<_ACEOF
7252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7253 _ACEOF
7254
7255 fi
7256
7257 done
7258
7259     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7260 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7261   result=
7262   cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268
7269 #include <limits.h>
7270 #if HAVE_STDINT_H
7271 #include <stdint.h>
7272 #endif
7273 #ifdef SIZE_MAX
7274 Found it
7275 #endif
7276
7277 _ACEOF
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279   $EGREP "Found it" >/dev/null 2>&1; then
7280   result=yes
7281 fi
7282 rm -f conftest*
7283
7284   if test -z "$result"; then
7285                     if test "$cross_compiling" = yes; then
7286   # Depending upon the size, compute the lo and hi bounds.
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <stddef.h>
7294 int
7295 main ()
7296 {
7297 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7298 test_array [0] = 0
7299
7300   ;
7301   return 0;
7302 }
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_compile") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } && {
7318          test -z "$ac_c_werror_flag" ||
7319          test ! -s conftest.err
7320        } && test -s conftest.$ac_objext; then
7321   ac_lo=0 ac_mid=0
7322   while :; do
7323     cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 #include <stddef.h>
7330 int
7331 main ()
7332 {
7333 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7334 test_array [0] = 0
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_compile") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } && {
7354          test -z "$ac_c_werror_flag" ||
7355          test ! -s conftest.err
7356        } && test -s conftest.$ac_objext; then
7357   ac_hi=$ac_mid; break
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362         ac_lo=`expr $ac_mid + 1`
7363                         if test $ac_lo -le $ac_mid; then
7364                           ac_lo= ac_hi=
7365                           break
7366                         fi
7367                         ac_mid=`expr 2 '*' $ac_mid + 1`
7368 fi
7369
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371   done
7372 else
7373   echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7375
7376         cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382 #include <stddef.h>
7383 int
7384 main ()
7385 {
7386 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7387 test_array [0] = 0
7388
7389   ;
7390   return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7395 case "(($ac_try" in
7396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397   *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400   (eval "$ac_compile") 2>conftest.er1
7401   ac_status=$?
7402   grep -v '^ *+' conftest.er1 >conftest.err
7403   rm -f conftest.er1
7404   cat conftest.err >&5
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } && {
7407          test -z "$ac_c_werror_flag" ||
7408          test ! -s conftest.err
7409        } && test -s conftest.$ac_objext; then
7410   ac_hi=-1 ac_mid=-1
7411   while :; do
7412     cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418 #include <stddef.h>
7419 int
7420 main ()
7421 {
7422 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7423 test_array [0] = 0
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7431 case "(($ac_try" in
7432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433   *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436   (eval "$ac_compile") 2>conftest.er1
7437   ac_status=$?
7438   grep -v '^ *+' conftest.er1 >conftest.err
7439   rm -f conftest.er1
7440   cat conftest.err >&5
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } && {
7443          test -z "$ac_c_werror_flag" ||
7444          test ! -s conftest.err
7445        } && test -s conftest.$ac_objext; then
7446   ac_lo=$ac_mid; break
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451         ac_hi=`expr '(' $ac_mid ')' - 1`
7452                         if test $ac_mid -le $ac_hi; then
7453                           ac_lo= ac_hi=
7454                           break
7455                         fi
7456                         ac_mid=`expr 2 '*' $ac_mid`
7457 fi
7458
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460   done
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465         ac_lo= ac_hi=
7466 fi
7467
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 fi
7470
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 # Binary search between lo and hi bounds.
7473 while test "x$ac_lo" != "x$ac_hi"; do
7474   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7475   cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h.  */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h.  */
7481 #include <stddef.h>
7482 int
7483 main ()
7484 {
7485 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7486 test_array [0] = 0
7487
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499   (eval "$ac_compile") 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } && {
7506          test -z "$ac_c_werror_flag" ||
7507          test ! -s conftest.err
7508        } && test -s conftest.$ac_objext; then
7509   ac_hi=$ac_mid
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514         ac_lo=`expr '(' $ac_mid ')' + 1`
7515 fi
7516
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 done
7519 case $ac_lo in
7520 ?*) res_hi=$ac_lo;;
7521 '') result=? ;;
7522 esac
7523 else
7524   cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530 #include <stddef.h>
7531 static long int longval () { return ~(size_t)0 / 10; }
7532 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7533 #include <stdio.h>
7534 #include <stdlib.h>
7535 int
7536 main ()
7537 {
7538
7539   FILE *f = fopen ("conftest.val", "w");
7540   if (! f)
7541     return 1;
7542   if ((~(size_t)0 / 10) < 0)
7543     {
7544       long int i = longval ();
7545       if (i != (~(size_t)0 / 10))
7546         return 1;
7547       fprintf (f, "%ld\n", i);
7548     }
7549   else
7550     {
7551       unsigned long int i = ulongval ();
7552       if (i != (~(size_t)0 / 10))
7553         return 1;
7554       fprintf (f, "%lu\n", i);
7555     }
7556   return ferror (f) || fclose (f) != 0;
7557
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest$ac_exeext
7563 if { (ac_try="$ac_link"
7564 case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_link") 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7573   { (case "(($ac_try" in
7574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575   *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578   (eval "$ac_try") 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   res_hi=`cat conftest.val`
7583 else
7584   echo "$as_me: program exited with status $ac_status" >&5
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ( exit $ac_status )
7589 result=?
7590 fi
7591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 rm -f conftest.val
7594
7595     if test "$cross_compiling" = yes; then
7596   # Depending upon the size, compute the lo and hi bounds.
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603 #include <stddef.h>
7604 int
7605 main ()
7606 {
7607 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7608 test_array [0] = 0
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618   *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621   (eval "$ac_compile") 2>conftest.er1
7622   ac_status=$?
7623   grep -v '^ *+' conftest.er1 >conftest.err
7624   rm -f conftest.er1
7625   cat conftest.err >&5
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } && {
7628          test -z "$ac_c_werror_flag" ||
7629          test ! -s conftest.err
7630        } && test -s conftest.$ac_objext; then
7631   ac_lo=0 ac_mid=0
7632   while :; do
7633     cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 #include <stddef.h>
7640 int
7641 main ()
7642 {
7643 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7644 test_array [0] = 0
7645
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (ac_try="$ac_compile"
7652 case "(($ac_try" in
7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654   *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657   (eval "$ac_compile") 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } && {
7664          test -z "$ac_c_werror_flag" ||
7665          test ! -s conftest.err
7666        } && test -s conftest.$ac_objext; then
7667   ac_hi=$ac_mid; break
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672         ac_lo=`expr $ac_mid + 1`
7673                         if test $ac_lo -le $ac_mid; then
7674                           ac_lo= ac_hi=
7675                           break
7676                         fi
7677                         ac_mid=`expr 2 '*' $ac_mid + 1`
7678 fi
7679
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681   done
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686         cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h.  */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h.  */
7692 #include <stddef.h>
7693 int
7694 main ()
7695 {
7696 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7697 test_array [0] = 0
7698
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (ac_try="$ac_compile"
7705 case "(($ac_try" in
7706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707   *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710   (eval "$ac_compile") 2>conftest.er1
7711   ac_status=$?
7712   grep -v '^ *+' conftest.er1 >conftest.err
7713   rm -f conftest.er1
7714   cat conftest.err >&5
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); } && {
7717          test -z "$ac_c_werror_flag" ||
7718          test ! -s conftest.err
7719        } && test -s conftest.$ac_objext; then
7720   ac_hi=-1 ac_mid=-1
7721   while :; do
7722     cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h.  */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h.  */
7728 #include <stddef.h>
7729 int
7730 main ()
7731 {
7732 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7733 test_array [0] = 0
7734
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743   *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746   (eval "$ac_compile") 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } && {
7753          test -z "$ac_c_werror_flag" ||
7754          test ! -s conftest.err
7755        } && test -s conftest.$ac_objext; then
7756   ac_lo=$ac_mid; break
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761         ac_hi=`expr '(' $ac_mid ')' - 1`
7762                         if test $ac_mid -le $ac_hi; then
7763                           ac_lo= ac_hi=
7764                           break
7765                         fi
7766                         ac_mid=`expr 2 '*' $ac_mid`
7767 fi
7768
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770   done
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775         ac_lo= ac_hi=
7776 fi
7777
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 fi
7780
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 # Binary search between lo and hi bounds.
7783 while test "x$ac_lo" != "x$ac_hi"; do
7784   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 #include <stddef.h>
7792 int
7793 main ()
7794 {
7795 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7796 test_array [0] = 0
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_compile") 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } && {
7816          test -z "$ac_c_werror_flag" ||
7817          test ! -s conftest.err
7818        } && test -s conftest.$ac_objext; then
7819   ac_hi=$ac_mid
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824         ac_lo=`expr '(' $ac_mid ')' + 1`
7825 fi
7826
7827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 done
7829 case $ac_lo in
7830 ?*) res_lo=$ac_lo;;
7831 '') result=? ;;
7832 esac
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 #include <stddef.h>
7841 static long int longval () { return ~(size_t)0 % 10; }
7842 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7843 #include <stdio.h>
7844 #include <stdlib.h>
7845 int
7846 main ()
7847 {
7848
7849   FILE *f = fopen ("conftest.val", "w");
7850   if (! f)
7851     return 1;
7852   if ((~(size_t)0 % 10) < 0)
7853     {
7854       long int i = longval ();
7855       if (i != (~(size_t)0 % 10))
7856         return 1;
7857       fprintf (f, "%ld\n", i);
7858     }
7859   else
7860     {
7861       unsigned long int i = ulongval ();
7862       if (i != (~(size_t)0 % 10))
7863         return 1;
7864       fprintf (f, "%lu\n", i);
7865     }
7866   return ferror (f) || fclose (f) != 0;
7867
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7874 case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_link") 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   res_lo=`cat conftest.val`
7893 else
7894   echo "$as_me: program exited with status $ac_status" >&5
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ( exit $ac_status )
7899 result=?
7900 fi
7901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 rm -f conftest.val
7904
7905     if test "$cross_compiling" = yes; then
7906   # Depending upon the size, compute the lo and hi bounds.
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913 #include <stddef.h>
7914 int
7915 main ()
7916 {
7917 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7918 test_array [0] = 0
7919
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (ac_try="$ac_compile"
7926 case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_compile") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } && {
7938          test -z "$ac_c_werror_flag" ||
7939          test ! -s conftest.err
7940        } && test -s conftest.$ac_objext; then
7941   ac_lo=0 ac_mid=0
7942   while :; do
7943     cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h.  */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h.  */
7949 #include <stddef.h>
7950 int
7951 main ()
7952 {
7953 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7954 test_array [0] = 0
7955
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_compile") 2>conftest.er1
7968   ac_status=$?
7969   grep -v '^ *+' conftest.er1 >conftest.err
7970   rm -f conftest.er1
7971   cat conftest.err >&5
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } && {
7974          test -z "$ac_c_werror_flag" ||
7975          test ! -s conftest.err
7976        } && test -s conftest.$ac_objext; then
7977   ac_hi=$ac_mid; break
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982         ac_lo=`expr $ac_mid + 1`
7983                         if test $ac_lo -le $ac_mid; then
7984                           ac_lo= ac_hi=
7985                           break
7986                         fi
7987                         ac_mid=`expr 2 '*' $ac_mid + 1`
7988 fi
7989
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991   done
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h.  */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h.  */
8002 #include <stddef.h>
8003 int
8004 main ()
8005 {
8006 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8007 test_array [0] = 0
8008
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8015 case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020   (eval "$ac_compile") 2>conftest.er1
8021   ac_status=$?
8022   grep -v '^ *+' conftest.er1 >conftest.err
8023   rm -f conftest.er1
8024   cat conftest.err >&5
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } && {
8027          test -z "$ac_c_werror_flag" ||
8028          test ! -s conftest.err
8029        } && test -s conftest.$ac_objext; then
8030   ac_hi=-1 ac_mid=-1
8031   while :; do
8032     cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038 #include <stddef.h>
8039 int
8040 main ()
8041 {
8042 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8043 test_array [0] = 0
8044
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_compile") 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } && {
8063          test -z "$ac_c_werror_flag" ||
8064          test ! -s conftest.err
8065        } && test -s conftest.$ac_objext; then
8066   ac_lo=$ac_mid; break
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071         ac_hi=`expr '(' $ac_mid ')' - 1`
8072                         if test $ac_mid -le $ac_hi; then
8073                           ac_lo= ac_hi=
8074                           break
8075                         fi
8076                         ac_mid=`expr 2 '*' $ac_mid`
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080   done
8081 else
8082   echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085         ac_lo= ac_hi=
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 # Binary search between lo and hi bounds.
8093 while test "x$ac_lo" != "x$ac_hi"; do
8094   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8095   cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 #include <stddef.h>
8102 int
8103 main ()
8104 {
8105 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8106 test_array [0] = 0
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_compile") 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } && {
8126          test -z "$ac_c_werror_flag" ||
8127          test ! -s conftest.err
8128        } && test -s conftest.$ac_objext; then
8129   ac_hi=$ac_mid
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134         ac_lo=`expr '(' $ac_mid ')' + 1`
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 done
8139 case $ac_lo in
8140 ?*) fits_in_uint=$ac_lo;;
8141 '') result=? ;;
8142 esac
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 #include <stddef.h>
8151 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8152 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8153 #include <stdio.h>
8154 #include <stdlib.h>
8155 int
8156 main ()
8157 {
8158
8159   FILE *f = fopen ("conftest.val", "w");
8160   if (! f)
8161     return 1;
8162   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8163     {
8164       long int i = longval ();
8165       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8166         return 1;
8167       fprintf (f, "%ld\n", i);
8168     }
8169   else
8170     {
8171       unsigned long int i = ulongval ();
8172       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8173         return 1;
8174       fprintf (f, "%lu\n", i);
8175     }
8176   return ferror (f) || fclose (f) != 0;
8177
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8184 case "(($ac_try" in
8185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186   *) ac_try_echo=$ac_try;;
8187 esac
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189   (eval "$ac_link") 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8193   { (case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_try") 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   fits_in_uint=`cat conftest.val`
8203 else
8204   echo "$as_me: program exited with status $ac_status" >&5
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ( exit $ac_status )
8209 result=?
8210 fi
8211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 rm -f conftest.val
8214
8215     if test "$fits_in_uint" = 1; then
8216                   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 #include <stddef.h>
8223         extern size_t foo;
8224         extern unsigned long foo;
8225
8226 int
8227 main ()
8228 {
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238   *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241   (eval "$ac_compile") 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } && {
8248          test -z "$ac_c_werror_flag" ||
8249          test ! -s conftest.err
8250        } && test -s conftest.$ac_objext; then
8251   fits_in_uint=0
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256
8257 fi
8258
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260     fi
8261     if test -z "$result"; then
8262       if test "$fits_in_uint" = 1; then
8263         result="$res_hi$res_lo"U
8264       else
8265         result="$res_hi$res_lo"UL
8266       fi
8267     else
8268             result='~(size_t)0'
8269     fi
8270   fi
8271   { echo "$as_me:$LINENO: result: $result" >&5
8272 echo "${ECHO_T}$result" >&6; }
8273   if test "$result" != yes; then
8274
8275 cat >>confdefs.h <<_ACEOF
8276 #define SIZE_MAX $result
8277 _ACEOF
8278
8279   fi
8280
8281
8282
8283
8284 for ac_header in stdint.h
8285 do
8286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 fi
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294                { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8296 else
8297   # Is the header compilable?
8298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306 $ac_includes_default
8307 #include <$ac_header>
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_compile") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } && {
8323          test -z "$ac_c_werror_flag" ||
8324          test ! -s conftest.err
8325        } && test -s conftest.$ac_objext; then
8326   ac_header_compiler=yes
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331         ac_header_compiler=no
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8336 echo "${ECHO_T}$ac_header_compiler" >&6; }
8337
8338 # Is the header present?
8339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 #include <$ac_header>
8348 _ACEOF
8349 if { (ac_try="$ac_cpp conftest.$ac_ext"
8350 case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } >/dev/null && {
8362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8363          test ! -s conftest.err
8364        }; then
8365   ac_header_preproc=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370   ac_header_preproc=no
8371 fi
8372
8373 rm -f conftest.err conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6; }
8376
8377 # So?  What about this header?
8378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379   yes:no: )
8380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384     ac_header_preproc=yes
8385     ;;
8386   no:yes:* )
8387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8399
8400     ;;
8401 esac
8402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   eval "$as_ac_Header=\$ac_header_preproc"
8408 fi
8409 ac_res=`eval echo '${'$as_ac_Header'}'`
8410                { echo "$as_me:$LINENO: result: $ac_res" >&5
8411 echo "${ECHO_T}$ac_res" >&6; }
8412
8413 fi
8414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8415   cat >>confdefs.h <<_ACEOF
8416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417 _ACEOF
8418
8419 fi
8420
8421 done
8422
8423
8424
8425       if test "X$prefix" = "XNONE"; then
8426     acl_final_prefix="$ac_default_prefix"
8427   else
8428     acl_final_prefix="$prefix"
8429   fi
8430   if test "X$exec_prefix" = "XNONE"; then
8431     acl_final_exec_prefix='${prefix}'
8432   else
8433     acl_final_exec_prefix="$exec_prefix"
8434   fi
8435   acl_save_prefix="$prefix"
8436   prefix="$acl_final_prefix"
8437   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8438   prefix="$acl_save_prefix"
8439
8440
8441 # Check whether --with-gnu-ld was given.
8442 if test "${with_gnu_ld+set}" = set; then
8443   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8444 else
8445   with_gnu_ld=no
8446 fi
8447
8448 # Prepare PATH_SEPARATOR.
8449 # The user is always right.
8450 if test "${PATH_SEPARATOR+set}" != set; then
8451   echo "#! /bin/sh" >conf$$.sh
8452   echo  "exit 0"   >>conf$$.sh
8453   chmod +x conf$$.sh
8454   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8455     PATH_SEPARATOR=';'
8456   else
8457     PATH_SEPARATOR=:
8458   fi
8459   rm -f conf$$.sh
8460 fi
8461 ac_prog=ld
8462 if test "$GCC" = yes; then
8463   # Check if gcc -print-prog-name=ld gives a path.
8464   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8465 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8466   case $host in
8467   *-*-mingw*)
8468     # gcc leaves a trailing carriage return which upsets mingw
8469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8470   *)
8471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8472   esac
8473   case $ac_prog in
8474     # Accept absolute paths.
8475     [\\/]* | [A-Za-z]:[\\/]*)
8476       re_direlt='/[^/][^/]*/\.\./'
8477       # Canonicalize the path of ld
8478       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8480         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8481       done
8482       test -z "$LD" && LD="$ac_prog"
8483       ;;
8484   "")
8485     # If it fails, then pretend we aren't using GCC.
8486     ac_prog=ld
8487     ;;
8488   *)
8489     # If it is relative, then search for the first ld in PATH.
8490     with_gnu_ld=unknown
8491     ;;
8492   esac
8493 elif test "$with_gnu_ld" = yes; then
8494   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8496 else
8497   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8499 fi
8500 if test "${acl_cv_path_LD+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   if test -z "$LD"; then
8504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8505   for ac_dir in $PATH; do
8506     test -z "$ac_dir" && ac_dir=.
8507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8508       acl_cv_path_LD="$ac_dir/$ac_prog"
8509       # Check to see if the program is GNU ld.  I'd rather use --version,
8510       # but apparently some GNU ld's only accept -v.
8511       # Break only if it was the GNU/non-GNU ld that we prefer.
8512       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8513       *GNU* | *'with BFD'*)
8514         test "$with_gnu_ld" != no && break ;;
8515       *)
8516         test "$with_gnu_ld" != yes && break ;;
8517       esac
8518     fi
8519   done
8520   IFS="$ac_save_ifs"
8521 else
8522   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8523 fi
8524 fi
8525
8526 LD="$acl_cv_path_LD"
8527 if test -n "$LD"; then
8528   { echo "$as_me:$LINENO: result: $LD" >&5
8529 echo "${ECHO_T}$LD" >&6; }
8530 else
8531   { echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6; }
8533 fi
8534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8536    { (exit 1); exit 1; }; }
8537 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8539 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8543 case `$LD -v 2>&1 </dev/null` in
8544 *GNU* | *'with BFD'*)
8545   acl_cv_prog_gnu_ld=yes ;;
8546 *)
8547   acl_cv_prog_gnu_ld=no ;;
8548 esac
8549 fi
8550 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8551 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8552 with_gnu_ld=$acl_cv_prog_gnu_ld
8553
8554
8555
8556                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8557 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8558 if test "${acl_cv_rpath+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561
8562     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8563     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8564     . ./conftest.sh
8565     rm -f ./conftest.sh
8566     acl_cv_rpath=done
8567
8568 fi
8569 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8570 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8571   wl="$acl_cv_wl"
8572   libext="$acl_cv_libext"
8573   shlibext="$acl_cv_shlibext"
8574   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8575   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8576   hardcode_direct="$acl_cv_hardcode_direct"
8577   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8578     # Check whether --enable-rpath was given.
8579 if test "${enable_rpath+set}" = set; then
8580   enableval=$enable_rpath; :
8581 else
8582   enable_rpath=yes
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592     use_additional=yes
8593
8594   acl_save_prefix="$prefix"
8595   prefix="$acl_final_prefix"
8596   acl_save_exec_prefix="$exec_prefix"
8597   exec_prefix="$acl_final_exec_prefix"
8598
8599     eval additional_includedir=\"$includedir\"
8600     eval additional_libdir=\"$libdir\"
8601
8602   exec_prefix="$acl_save_exec_prefix"
8603   prefix="$acl_save_prefix"
8604
8605
8606 # Check whether --with-libiconv-prefix was given.
8607 if test "${with_libiconv_prefix+set}" = set; then
8608   withval=$with_libiconv_prefix;
8609     if test "X$withval" = "Xno"; then
8610       use_additional=no
8611     else
8612       if test "X$withval" = "X"; then
8613
8614   acl_save_prefix="$prefix"
8615   prefix="$acl_final_prefix"
8616   acl_save_exec_prefix="$exec_prefix"
8617   exec_prefix="$acl_final_exec_prefix"
8618
8619           eval additional_includedir=\"$includedir\"
8620           eval additional_libdir=\"$libdir\"
8621
8622   exec_prefix="$acl_save_exec_prefix"
8623   prefix="$acl_save_prefix"
8624
8625       else
8626         additional_includedir="$withval/include"
8627         additional_libdir="$withval/lib"
8628       fi
8629     fi
8630
8631 fi
8632
8633       LIBICONV=
8634   LTLIBICONV=
8635   INCICONV=
8636   rpathdirs=
8637   ltrpathdirs=
8638   names_already_handled=
8639   names_next_round='iconv '
8640   while test -n "$names_next_round"; do
8641     names_this_round="$names_next_round"
8642     names_next_round=
8643     for name in $names_this_round; do
8644       already_handled=
8645       for n in $names_already_handled; do
8646         if test "$n" = "$name"; then
8647           already_handled=yes
8648           break
8649         fi
8650       done
8651       if test -z "$already_handled"; then
8652         names_already_handled="$names_already_handled $name"
8653                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8654         eval value=\"\$HAVE_LIB$uppername\"
8655         if test -n "$value"; then
8656           if test "$value" = yes; then
8657             eval value=\"\$LIB$uppername\"
8658             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8659             eval value=\"\$LTLIB$uppername\"
8660             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8661           else
8662                                     :
8663           fi
8664         else
8665                               found_dir=
8666           found_la=
8667           found_so=
8668           found_a=
8669           if test $use_additional = yes; then
8670             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8671               found_dir="$additional_libdir"
8672               found_so="$additional_libdir/lib$name.$shlibext"
8673               if test -f "$additional_libdir/lib$name.la"; then
8674                 found_la="$additional_libdir/lib$name.la"
8675               fi
8676             else
8677               if test -f "$additional_libdir/lib$name.$libext"; then
8678                 found_dir="$additional_libdir"
8679                 found_a="$additional_libdir/lib$name.$libext"
8680                 if test -f "$additional_libdir/lib$name.la"; then
8681                   found_la="$additional_libdir/lib$name.la"
8682                 fi
8683               fi
8684             fi
8685           fi
8686           if test "X$found_dir" = "X"; then
8687             for x in $LDFLAGS $LTLIBICONV; do
8688
8689   acl_save_prefix="$prefix"
8690   prefix="$acl_final_prefix"
8691   acl_save_exec_prefix="$exec_prefix"
8692   exec_prefix="$acl_final_exec_prefix"
8693   eval x=\"$x\"
8694   exec_prefix="$acl_save_exec_prefix"
8695   prefix="$acl_save_prefix"
8696
8697               case "$x" in
8698                 -L*)
8699                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8700                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8701                     found_dir="$dir"
8702                     found_so="$dir/lib$name.$shlibext"
8703                     if test -f "$dir/lib$name.la"; then
8704                       found_la="$dir/lib$name.la"
8705                     fi
8706                   else
8707                     if test -f "$dir/lib$name.$libext"; then
8708                       found_dir="$dir"
8709                       found_a="$dir/lib$name.$libext"
8710                       if test -f "$dir/lib$name.la"; then
8711                         found_la="$dir/lib$name.la"
8712                       fi
8713                     fi
8714                   fi
8715                   ;;
8716               esac
8717               if test "X$found_dir" != "X"; then
8718                 break
8719               fi
8720             done
8721           fi
8722           if test "X$found_dir" != "X"; then
8723                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8724             if test "X$found_so" != "X"; then
8725                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8726                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8727               else
8728                                                                                 haveit=
8729                 for x in $ltrpathdirs; do
8730                   if test "X$x" = "X$found_dir"; then
8731                     haveit=yes
8732                     break
8733                   fi
8734                 done
8735                 if test -z "$haveit"; then
8736                   ltrpathdirs="$ltrpathdirs $found_dir"
8737                 fi
8738                                 if test "$hardcode_direct" = yes; then
8739                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8740                 else
8741                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8742                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8743                                                             haveit=
8744                     for x in $rpathdirs; do
8745                       if test "X$x" = "X$found_dir"; then
8746                         haveit=yes
8747                         break
8748                       fi
8749                     done
8750                     if test -z "$haveit"; then
8751                       rpathdirs="$rpathdirs $found_dir"
8752                     fi
8753                   else
8754                                                                                 haveit=
8755                     for x in $LDFLAGS $LIBICONV; do
8756
8757   acl_save_prefix="$prefix"
8758   prefix="$acl_final_prefix"
8759   acl_save_exec_prefix="$exec_prefix"
8760   exec_prefix="$acl_final_exec_prefix"
8761   eval x=\"$x\"
8762   exec_prefix="$acl_save_exec_prefix"
8763   prefix="$acl_save_prefix"
8764
8765                       if test "X$x" = "X-L$found_dir"; then
8766                         haveit=yes
8767                         break
8768                       fi
8769                     done
8770                     if test -z "$haveit"; then
8771                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8772                     fi
8773                     if test "$hardcode_minus_L" != no; then
8774                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8775                     else
8776                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8777                     fi
8778                   fi
8779                 fi
8780               fi
8781             else
8782               if test "X$found_a" != "X"; then
8783                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8784               else
8785                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8786               fi
8787             fi
8788                         additional_includedir=
8789             case "$found_dir" in
8790               */lib | */lib/)
8791                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8792                 additional_includedir="$basedir/include"
8793                 ;;
8794             esac
8795             if test "X$additional_includedir" != "X"; then
8796                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8797                 haveit=
8798                 if test "X$additional_includedir" = "X/usr/local/include"; then
8799                   if test -n "$GCC"; then
8800                     case $host_os in
8801                       linux*) haveit=yes;;
8802                     esac
8803                   fi
8804                 fi
8805                 if test -z "$haveit"; then
8806                   for x in $CPPFLAGS $INCICONV; do
8807
8808   acl_save_prefix="$prefix"
8809   prefix="$acl_final_prefix"
8810   acl_save_exec_prefix="$exec_prefix"
8811   exec_prefix="$acl_final_exec_prefix"
8812   eval x=\"$x\"
8813   exec_prefix="$acl_save_exec_prefix"
8814   prefix="$acl_save_prefix"
8815
8816                     if test "X$x" = "X-I$additional_includedir"; then
8817                       haveit=yes
8818                       break
8819                     fi
8820                   done
8821                   if test -z "$haveit"; then
8822                     if test -d "$additional_includedir"; then
8823                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8824                     fi
8825                   fi
8826                 fi
8827               fi
8828             fi
8829                         if test -n "$found_la"; then
8830                                                         save_libdir="$libdir"
8831               case "$found_la" in
8832                 */* | *\\*) . "$found_la" ;;
8833                 *) . "./$found_la" ;;
8834               esac
8835               libdir="$save_libdir"
8836                             for dep in $dependency_libs; do
8837                 case "$dep" in
8838                   -L*)
8839                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8840                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8841                       haveit=
8842                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8843                         if test -n "$GCC"; then
8844                           case $host_os in
8845                             linux*) haveit=yes;;
8846                           esac
8847                         fi
8848                       fi
8849                       if test -z "$haveit"; then
8850                         haveit=
8851                         for x in $LDFLAGS $LIBICONV; do
8852
8853   acl_save_prefix="$prefix"
8854   prefix="$acl_final_prefix"
8855   acl_save_exec_prefix="$exec_prefix"
8856   exec_prefix="$acl_final_exec_prefix"
8857   eval x=\"$x\"
8858   exec_prefix="$acl_save_exec_prefix"
8859   prefix="$acl_save_prefix"
8860
8861                           if test "X$x" = "X-L$additional_libdir"; then
8862                             haveit=yes
8863                             break
8864                           fi
8865                         done
8866                         if test -z "$haveit"; then
8867                           if test -d "$additional_libdir"; then
8868                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8869                           fi
8870                         fi
8871                         haveit=
8872                         for x in $LDFLAGS $LTLIBICONV; do
8873
8874   acl_save_prefix="$prefix"
8875   prefix="$acl_final_prefix"
8876   acl_save_exec_prefix="$exec_prefix"
8877   exec_prefix="$acl_final_exec_prefix"
8878   eval x=\"$x\"
8879   exec_prefix="$acl_save_exec_prefix"
8880   prefix="$acl_save_prefix"
8881
8882                           if test "X$x" = "X-L$additional_libdir"; then
8883                             haveit=yes
8884                             break
8885                           fi
8886                         done
8887                         if test -z "$haveit"; then
8888                           if test -d "$additional_libdir"; then
8889                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8890                           fi
8891                         fi
8892                       fi
8893                     fi
8894                     ;;
8895                   -R*)
8896                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8897                     if test "$enable_rpath" != no; then
8898                                                                   haveit=
8899                       for x in $rpathdirs; do
8900                         if test "X$x" = "X$dir"; then
8901                           haveit=yes
8902                           break
8903                         fi
8904                       done
8905                       if test -z "$haveit"; then
8906                         rpathdirs="$rpathdirs $dir"
8907                       fi
8908                                                                   haveit=
8909                       for x in $ltrpathdirs; do
8910                         if test "X$x" = "X$dir"; then
8911                           haveit=yes
8912                           break
8913                         fi
8914                       done
8915                       if test -z "$haveit"; then
8916                         ltrpathdirs="$ltrpathdirs $dir"
8917                       fi
8918                     fi
8919                     ;;
8920                   -l*)
8921                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8922                     ;;
8923                   *.la)
8924                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8925                     ;;
8926                   *)
8927                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8928                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8929                     ;;
8930                 esac
8931               done
8932             fi
8933           else
8934                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8935             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8936           fi
8937         fi
8938       fi
8939     done
8940   done
8941   if test "X$rpathdirs" != "X"; then
8942     if test -n "$hardcode_libdir_separator"; then
8943                         alldirs=
8944       for found_dir in $rpathdirs; do
8945         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8946       done
8947             acl_save_libdir="$libdir"
8948       libdir="$alldirs"
8949       eval flag=\"$hardcode_libdir_flag_spec\"
8950       libdir="$acl_save_libdir"
8951       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8952     else
8953             for found_dir in $rpathdirs; do
8954         acl_save_libdir="$libdir"
8955         libdir="$found_dir"
8956         eval flag=\"$hardcode_libdir_flag_spec\"
8957         libdir="$acl_save_libdir"
8958         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8959       done
8960     fi
8961   fi
8962   if test "X$ltrpathdirs" != "X"; then
8963             for found_dir in $ltrpathdirs; do
8964       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8965     done
8966   fi
8967
8968
8969
8970
8971
8972
8973
8974
8975   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8976 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8977 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 $ac_includes_default
8987 typedef ptrdiff_t ac__type_new_;
8988 int
8989 main ()
8990 {
8991 if ((ac__type_new_ *) 0)
8992   return 0;
8993 if (sizeof (ac__type_new_))
8994   return 0;
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9001 case "(($ac_try" in
9002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003   *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006   (eval "$ac_compile") 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } && {
9013          test -z "$ac_c_werror_flag" ||
9014          test ! -s conftest.err
9015        } && test -s conftest.$ac_objext; then
9016   ac_cv_type_ptrdiff_t=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021         ac_cv_type_ptrdiff_t=no
9022 fi
9023
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9027 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9028 if test $ac_cv_type_ptrdiff_t = yes; then
9029   :
9030 else
9031
9032 cat >>confdefs.h <<\_ACEOF
9033 #define ptrdiff_t long
9034 _ACEOF
9035
9036
9037 fi
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9050 stdlib.h string.h unistd.h sys/param.h
9051 do
9052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 fi
9059 ac_res=`eval echo '${'$as_ac_Header'}'`
9060                { echo "$as_me:$LINENO: result: $ac_res" >&5
9061 echo "${ECHO_T}$ac_res" >&6; }
9062 else
9063   # Is the header compilable?
9064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9066 cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h.  */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h.  */
9072 $ac_includes_default
9073 #include <$ac_header>
9074 _ACEOF
9075 rm -f conftest.$ac_objext
9076 if { (ac_try="$ac_compile"
9077 case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_compile") 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } && {
9089          test -z "$ac_c_werror_flag" ||
9090          test ! -s conftest.err
9091        } && test -s conftest.$ac_objext; then
9092   ac_header_compiler=yes
9093 else
9094   echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9096
9097         ac_header_compiler=no
9098 fi
9099
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9102 echo "${ECHO_T}$ac_header_compiler" >&6; }
9103
9104 # Is the header present?
9105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113 #include <$ac_header>
9114 _ACEOF
9115 if { (ac_try="$ac_cpp conftest.$ac_ext"
9116 case "(($ac_try" in
9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118   *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } >/dev/null && {
9128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9129          test ! -s conftest.err
9130        }; then
9131   ac_header_preproc=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136   ac_header_preproc=no
9137 fi
9138
9139 rm -f conftest.err conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141 echo "${ECHO_T}$ac_header_preproc" >&6; }
9142
9143 # So?  What about this header?
9144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9145   yes:no: )
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9150     ac_header_preproc=yes
9151     ;;
9152   no:yes:* )
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9165
9166     ;;
9167 esac
9168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   eval "$as_ac_Header=\$ac_header_preproc"
9174 fi
9175 ac_res=`eval echo '${'$as_ac_Header'}'`
9176                { echo "$as_me:$LINENO: result: $ac_res" >&5
9177 echo "${ECHO_T}$ac_res" >&6; }
9178
9179 fi
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181   cat >>confdefs.h <<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 _ACEOF
9184
9185 fi
9186
9187 done
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9213 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9214 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9215 __fsetlocking
9216 do
9217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9231 #define $ac_func innocuous_$ac_func
9232
9233 /* System header to define __stub macros and hopefully few prototypes,
9234     which can conflict with char $ac_func (); below.
9235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9236     <limits.h> exists even on freestanding compilers.  */
9237
9238 #ifdef __STDC__
9239 # include <limits.h>
9240 #else
9241 # include <assert.h>
9242 #endif
9243
9244 #undef $ac_func
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247    Use char because int might match the return type of a GCC
9248    builtin and then its argument prototype would still apply.  */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char $ac_func ();
9253 /* The GNU C library defines this for functions which it implements
9254     to always fail with ENOSYS.  Some functions are actually named
9255     something starting with __ and the normal name is an alias.  */
9256 #if defined __stub_$ac_func || defined __stub___$ac_func
9257 choke me
9258 #endif
9259
9260 int
9261 main ()
9262 {
9263 return $ac_func ();
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (ac_try="$ac_link"
9270 case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_link") 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } && {
9282          test -z "$ac_c_werror_flag" ||
9283          test ! -s conftest.err
9284        } && test -s conftest$ac_exeext &&
9285        $as_test_x conftest$ac_exeext; then
9286   eval "$as_ac_var=yes"
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291         eval "$as_ac_var=no"
9292 fi
9293
9294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9295       conftest$ac_exeext conftest.$ac_ext
9296 fi
9297 ac_res=`eval echo '${'$as_ac_var'}'`
9298                { echo "$as_me:$LINENO: result: $ac_res" >&5
9299 echo "${ECHO_T}$ac_res" >&6; }
9300 if test `eval echo '${'$as_ac_var'}'` = yes; then
9301   cat >>confdefs.h <<_ACEOF
9302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303 _ACEOF
9304
9305 fi
9306 done
9307
9308
9309
9310   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9311 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9312 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 #include <stdio.h>
9322 int
9323 main ()
9324 {
9325
9326 #ifndef _snprintf
9327   char *p = (char *) _snprintf;
9328 #endif
9329
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_cv_have_decl__snprintf=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356         ac_cv_have_decl__snprintf=no
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9362 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9363   if test $ac_cv_have_decl__snprintf = yes; then
9364     gt_value=1
9365   else
9366     gt_value=0
9367   fi
9368
9369 cat >>confdefs.h <<_ACEOF
9370 #define HAVE_DECL__SNPRINTF $gt_value
9371 _ACEOF
9372
9373
9374
9375   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9376 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9377 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <stdio.h>
9387 int
9388 main ()
9389 {
9390
9391 #ifndef _snwprintf
9392   char *p = (char *) _snwprintf;
9393 #endif
9394
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9401 case "(($ac_try" in
9402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403   *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406   (eval "$ac_compile") 2>conftest.er1
9407   ac_status=$?
9408   grep -v '^ *+' conftest.er1 >conftest.err
9409   rm -f conftest.er1
9410   cat conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } && {
9413          test -z "$ac_c_werror_flag" ||
9414          test ! -s conftest.err
9415        } && test -s conftest.$ac_objext; then
9416   ac_cv_have_decl__snwprintf=yes
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421         ac_cv_have_decl__snwprintf=no
9422 fi
9423
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9427 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9428   if test $ac_cv_have_decl__snwprintf = yes; then
9429     gt_value=1
9430   else
9431     gt_value=0
9432   fi
9433
9434 cat >>confdefs.h <<_ACEOF
9435 #define HAVE_DECL__SNWPRINTF $gt_value
9436 _ACEOF
9437
9438
9439
9440
9441   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9442 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9443 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h.  */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h.  */
9452 #include <stdio.h>
9453 int
9454 main ()
9455 {
9456
9457 #ifndef feof_unlocked
9458   char *p = (char *) feof_unlocked;
9459 #endif
9460
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9467 case "(($ac_try" in
9468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469   *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472   (eval "$ac_compile") 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } && {
9479          test -z "$ac_c_werror_flag" ||
9480          test ! -s conftest.err
9481        } && test -s conftest.$ac_objext; then
9482   ac_cv_have_decl_feof_unlocked=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487         ac_cv_have_decl_feof_unlocked=no
9488 fi
9489
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 fi
9492 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9493 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9494   if test $ac_cv_have_decl_feof_unlocked = yes; then
9495     gt_value=1
9496   else
9497     gt_value=0
9498   fi
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9502 _ACEOF
9503
9504
9505
9506   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9507 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9508 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517 #include <stdio.h>
9518 int
9519 main ()
9520 {
9521
9522 #ifndef fgets_unlocked
9523   char *p = (char *) fgets_unlocked;
9524 #endif
9525
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (ac_try="$ac_compile"
9532 case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_compile") 2>conftest.er1
9538   ac_status=$?
9539   grep -v '^ *+' conftest.er1 >conftest.err
9540   rm -f conftest.er1
9541   cat conftest.err >&5
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); } && {
9544          test -z "$ac_c_werror_flag" ||
9545          test ! -s conftest.err
9546        } && test -s conftest.$ac_objext; then
9547   ac_cv_have_decl_fgets_unlocked=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552         ac_cv_have_decl_fgets_unlocked=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 fi
9557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9558 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9559   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9560     gt_value=1
9561   else
9562     gt_value=0
9563   fi
9564
9565 cat >>confdefs.h <<_ACEOF
9566 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9567 _ACEOF
9568
9569
9570
9571   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9572 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9573 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 #include <stdio.h>
9583 int
9584 main ()
9585 {
9586
9587 #ifndef getc_unlocked
9588   char *p = (char *) getc_unlocked;
9589 #endif
9590
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9597 case "(($ac_try" in
9598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599   *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602   (eval "$ac_compile") 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } && {
9609          test -z "$ac_c_werror_flag" ||
9610          test ! -s conftest.err
9611        } && test -s conftest.$ac_objext; then
9612   ac_cv_have_decl_getc_unlocked=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617         ac_cv_have_decl_getc_unlocked=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 fi
9622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9623 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9624   if test $ac_cv_have_decl_getc_unlocked = yes; then
9625     gt_value=1
9626   else
9627     gt_value=0
9628   fi
9629
9630 cat >>confdefs.h <<_ACEOF
9631 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9632 _ACEOF
9633
9634
9635
9636   case $gt_cv_func_printf_posix in
9637     *yes) HAVE_POSIX_PRINTF=1 ;;
9638     *) HAVE_POSIX_PRINTF=0 ;;
9639   esac
9640
9641   if test "$ac_cv_func_asprintf" = yes; then
9642     HAVE_ASPRINTF=1
9643   else
9644     HAVE_ASPRINTF=0
9645   fi
9646
9647   if test "$ac_cv_func_snprintf" = yes; then
9648     HAVE_SNPRINTF=1
9649   else
9650     HAVE_SNPRINTF=0
9651   fi
9652
9653   if test "$ac_cv_func_wprintf" = yes; then
9654     HAVE_WPRINTF=1
9655   else
9656     HAVE_WPRINTF=0
9657   fi
9658
9659
9660
9661
9662
9663
9664
9665           am_save_CPPFLAGS="$CPPFLAGS"
9666
9667   for element in $INCICONV; do
9668     haveit=
9669     for x in $CPPFLAGS; do
9670
9671   acl_save_prefix="$prefix"
9672   prefix="$acl_final_prefix"
9673   acl_save_exec_prefix="$exec_prefix"
9674   exec_prefix="$acl_final_exec_prefix"
9675   eval x=\"$x\"
9676   exec_prefix="$acl_save_exec_prefix"
9677   prefix="$acl_save_prefix"
9678
9679       if test "X$x" = "X$element"; then
9680         haveit=yes
9681         break
9682       fi
9683     done
9684     if test -z "$haveit"; then
9685       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9686     fi
9687   done
9688
9689
9690   { echo "$as_me:$LINENO: checking for iconv" >&5
9691 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9692 if test "${am_cv_func_iconv+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695
9696     am_cv_func_iconv="no, consider installing GNU libiconv"
9697     am_cv_lib_iconv=no
9698     cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704 #include <stdlib.h>
9705 #include <iconv.h>
9706 int
9707 main ()
9708 {
9709 iconv_t cd = iconv_open("","");
9710        iconv(cd,NULL,NULL,NULL,NULL);
9711        iconv_close(cd);
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_link") 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } && {
9730          test -z "$ac_c_werror_flag" ||
9731          test ! -s conftest.err
9732        } && test -s conftest$ac_exeext &&
9733        $as_test_x conftest$ac_exeext; then
9734   am_cv_func_iconv=yes
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739
9740 fi
9741
9742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743       conftest$ac_exeext conftest.$ac_ext
9744     if test "$am_cv_func_iconv" != yes; then
9745       am_save_LIBS="$LIBS"
9746       LIBS="$LIBS $LIBICONV"
9747       cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 #include <stdlib.h>
9754 #include <iconv.h>
9755 int
9756 main ()
9757 {
9758 iconv_t cd = iconv_open("","");
9759          iconv(cd,NULL,NULL,NULL,NULL);
9760          iconv_close(cd);
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_link") 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } && {
9779          test -z "$ac_c_werror_flag" ||
9780          test ! -s conftest.err
9781        } && test -s conftest$ac_exeext &&
9782        $as_test_x conftest$ac_exeext; then
9783   am_cv_lib_iconv=yes
9784         am_cv_func_iconv=yes
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789
9790 fi
9791
9792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9793       conftest$ac_exeext conftest.$ac_ext
9794       LIBS="$am_save_LIBS"
9795     fi
9796
9797 fi
9798 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9799 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9800   if test "$am_cv_func_iconv" = yes; then
9801
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_ICONV 1
9804 _ACEOF
9805
9806   fi
9807   if test "$am_cv_lib_iconv" = yes; then
9808     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9809 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9810     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9811 echo "${ECHO_T}$LIBICONV" >&6; }
9812   else
9813             CPPFLAGS="$am_save_CPPFLAGS"
9814     LIBICONV=
9815     LTLIBICONV=
9816   fi
9817
9818
9819
9820   if test "$am_cv_func_iconv" = yes; then
9821     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9822 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9823     if test "${am_cv_proto_iconv+set}" = set; then
9824   echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9826
9827       cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833
9834 #include <stdlib.h>
9835 #include <iconv.h>
9836 extern
9837 #ifdef __cplusplus
9838 "C"
9839 #endif
9840 #if defined(__STDC__) || defined(__cplusplus)
9841 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9842 #else
9843 size_t iconv();
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9856 case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_compile") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } && {
9868          test -z "$ac_c_werror_flag" ||
9869          test ! -s conftest.err
9870        } && test -s conftest.$ac_objext; then
9871   am_cv_proto_iconv_arg1=""
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876         am_cv_proto_iconv_arg1="const"
9877 fi
9878
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880       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);"
9881 fi
9882
9883     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9884     { echo "$as_me:$LINENO: result: ${ac_t:-
9885          }$am_cv_proto_iconv" >&5
9886 echo "${ECHO_T}${ac_t:-
9887          }$am_cv_proto_iconv" >&6; }
9888
9889 cat >>confdefs.h <<_ACEOF
9890 #define ICONV_CONST $am_cv_proto_iconv_arg1
9891 _ACEOF
9892
9893   fi
9894
9895
9896   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9897 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9898 if test "${am_cv_langinfo_codeset+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h.  */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h.  */
9907 #include <langinfo.h>
9908 int
9909 main ()
9910 {
9911 char* cs = nl_langinfo(CODESET);
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_link") 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } && {
9930          test -z "$ac_c_werror_flag" ||
9931          test ! -s conftest.err
9932        } && test -s conftest$ac_exeext &&
9933        $as_test_x conftest$ac_exeext; then
9934   am_cv_langinfo_codeset=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939         am_cv_langinfo_codeset=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943       conftest$ac_exeext conftest.$ac_ext
9944
9945 fi
9946 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9947 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9948   if test $am_cv_langinfo_codeset = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LANGINFO_CODESET 1
9952 _ACEOF
9953
9954   fi
9955
9956   if test $ac_cv_header_locale_h = yes; then
9957
9958   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9959 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9960 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969 #include <locale.h>
9970 int
9971 main ()
9972 {
9973 return LC_MESSAGES
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_link") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } && {
9992          test -z "$ac_c_werror_flag" ||
9993          test ! -s conftest.err
9994        } && test -s conftest$ac_exeext &&
9995        $as_test_x conftest$ac_exeext; then
9996   am_cv_val_LC_MESSAGES=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001         am_cv_val_LC_MESSAGES=no
10002 fi
10003
10004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005       conftest$ac_exeext conftest.$ac_ext
10006 fi
10007 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10008 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10009   if test $am_cv_val_LC_MESSAGES = yes; then
10010
10011 cat >>confdefs.h <<\_ACEOF
10012 #define HAVE_LC_MESSAGES 1
10013 _ACEOF
10014
10015   fi
10016
10017   fi
10018
10019                       for ac_prog in bison
10020 do
10021   # Extract the first word of "$ac_prog", so it can be a program name with args.
10022 set dummy $ac_prog; ac_word=$2
10023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10025 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   if test -n "$INTLBISON"; then
10029   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034   IFS=$as_save_IFS
10035   test -z "$as_dir" && as_dir=.
10036   for ac_exec_ext in '' $ac_executable_extensions; do
10037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038     ac_cv_prog_INTLBISON="$ac_prog"
10039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040     break 2
10041   fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 fi
10047 fi
10048 INTLBISON=$ac_cv_prog_INTLBISON
10049 if test -n "$INTLBISON"; then
10050   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10051 echo "${ECHO_T}$INTLBISON" >&6; }
10052 else
10053   { echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6; }
10055 fi
10056
10057
10058   test -n "$INTLBISON" && break
10059 done
10060
10061   if test -z "$INTLBISON"; then
10062     ac_verc_fail=yes
10063   else
10064         { echo "$as_me:$LINENO: checking version of bison" >&5
10065 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10066     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10067     case $ac_prog_version in
10068       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10069       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10070          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10071       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10072     esac
10073     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10074 echo "${ECHO_T}$ac_prog_version" >&6; }
10075   fi
10076   if test $ac_verc_fail = yes; then
10077     INTLBISON=:
10078   fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10096 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10097     # Check whether --enable-nls was given.
10098 if test "${enable_nls+set}" = set; then
10099   enableval=$enable_nls; USE_NLS=$enableval
10100 else
10101   USE_NLS=yes
10102 fi
10103
10104   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10105 echo "${ECHO_T}$USE_NLS" >&6; }
10106
10107
10108
10109
10110     BUILD_INCLUDED_LIBINTL=no
10111     USE_INCLUDED_LIBINTL=no
10112
10113   LIBINTL=
10114   LTLIBINTL=
10115   POSUB=
10116
10117     if test "$USE_NLS" = "yes"; then
10118     gt_use_preinstalled_gnugettext=no
10119
10120       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10121 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10122
10123 # Check whether --with-included-gettext was given.
10124 if test "${with_included_gettext+set}" = set; then
10125   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10126 else
10127   nls_cv_force_use_gnu_gettext=no
10128 fi
10129
10130       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10131 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10132
10133       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10134       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10135
10136
10137
10138
10139
10140
10141         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10142 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10143 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 #include <libintl.h>
10153 extern int _nl_msg_cat_cntr;
10154 extern int *_nl_domain_bindings;
10155 int
10156 main ()
10157 {
10158 bindtextdomain ("", "");
10159 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168   *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171   (eval "$ac_link") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } && {
10178          test -z "$ac_c_werror_flag" ||
10179          test ! -s conftest.err
10180        } && test -s conftest$ac_exeext &&
10181        $as_test_x conftest$ac_exeext; then
10182   gt_cv_func_gnugettext1_libc=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187         gt_cv_func_gnugettext1_libc=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191       conftest$ac_exeext conftest.$ac_ext
10192 fi
10193 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10194 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10195
10196         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10197
10198
10199
10200     use_additional=yes
10201
10202   acl_save_prefix="$prefix"
10203   prefix="$acl_final_prefix"
10204   acl_save_exec_prefix="$exec_prefix"
10205   exec_prefix="$acl_final_exec_prefix"
10206
10207     eval additional_includedir=\"$includedir\"
10208     eval additional_libdir=\"$libdir\"
10209
10210   exec_prefix="$acl_save_exec_prefix"
10211   prefix="$acl_save_prefix"
10212
10213
10214 # Check whether --with-libintl-prefix was given.
10215 if test "${with_libintl_prefix+set}" = set; then
10216   withval=$with_libintl_prefix;
10217     if test "X$withval" = "Xno"; then
10218       use_additional=no
10219     else
10220       if test "X$withval" = "X"; then
10221
10222   acl_save_prefix="$prefix"
10223   prefix="$acl_final_prefix"
10224   acl_save_exec_prefix="$exec_prefix"
10225   exec_prefix="$acl_final_exec_prefix"
10226
10227           eval additional_includedir=\"$includedir\"
10228           eval additional_libdir=\"$libdir\"
10229
10230   exec_prefix="$acl_save_exec_prefix"
10231   prefix="$acl_save_prefix"
10232
10233       else
10234         additional_includedir="$withval/include"
10235         additional_libdir="$withval/lib"
10236       fi
10237     fi
10238
10239 fi
10240
10241       LIBINTL=
10242   LTLIBINTL=
10243   INCINTL=
10244   rpathdirs=
10245   ltrpathdirs=
10246   names_already_handled=
10247   names_next_round='intl '
10248   while test -n "$names_next_round"; do
10249     names_this_round="$names_next_round"
10250     names_next_round=
10251     for name in $names_this_round; do
10252       already_handled=
10253       for n in $names_already_handled; do
10254         if test "$n" = "$name"; then
10255           already_handled=yes
10256           break
10257         fi
10258       done
10259       if test -z "$already_handled"; then
10260         names_already_handled="$names_already_handled $name"
10261                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10262         eval value=\"\$HAVE_LIB$uppername\"
10263         if test -n "$value"; then
10264           if test "$value" = yes; then
10265             eval value=\"\$LIB$uppername\"
10266             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10267             eval value=\"\$LTLIB$uppername\"
10268             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10269           else
10270                                     :
10271           fi
10272         else
10273                               found_dir=
10274           found_la=
10275           found_so=
10276           found_a=
10277           if test $use_additional = yes; then
10278             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10279               found_dir="$additional_libdir"
10280               found_so="$additional_libdir/lib$name.$shlibext"
10281               if test -f "$additional_libdir/lib$name.la"; then
10282                 found_la="$additional_libdir/lib$name.la"
10283               fi
10284             else
10285               if test -f "$additional_libdir/lib$name.$libext"; then
10286                 found_dir="$additional_libdir"
10287                 found_a="$additional_libdir/lib$name.$libext"
10288                 if test -f "$additional_libdir/lib$name.la"; then
10289                   found_la="$additional_libdir/lib$name.la"
10290                 fi
10291               fi
10292             fi
10293           fi
10294           if test "X$found_dir" = "X"; then
10295             for x in $LDFLAGS $LTLIBINTL; do
10296
10297   acl_save_prefix="$prefix"
10298   prefix="$acl_final_prefix"
10299   acl_save_exec_prefix="$exec_prefix"
10300   exec_prefix="$acl_final_exec_prefix"
10301   eval x=\"$x\"
10302   exec_prefix="$acl_save_exec_prefix"
10303   prefix="$acl_save_prefix"
10304
10305               case "$x" in
10306                 -L*)
10307                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10308                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10309                     found_dir="$dir"
10310                     found_so="$dir/lib$name.$shlibext"
10311                     if test -f "$dir/lib$name.la"; then
10312                       found_la="$dir/lib$name.la"
10313                     fi
10314                   else
10315                     if test -f "$dir/lib$name.$libext"; then
10316                       found_dir="$dir"
10317                       found_a="$dir/lib$name.$libext"
10318                       if test -f "$dir/lib$name.la"; then
10319                         found_la="$dir/lib$name.la"
10320                       fi
10321                     fi
10322                   fi
10323                   ;;
10324               esac
10325               if test "X$found_dir" != "X"; then
10326                 break
10327               fi
10328             done
10329           fi
10330           if test "X$found_dir" != "X"; then
10331                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10332             if test "X$found_so" != "X"; then
10333                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10334                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10335               else
10336                                                                                 haveit=
10337                 for x in $ltrpathdirs; do
10338                   if test "X$x" = "X$found_dir"; then
10339                     haveit=yes
10340                     break
10341                   fi
10342                 done
10343                 if test -z "$haveit"; then
10344                   ltrpathdirs="$ltrpathdirs $found_dir"
10345                 fi
10346                                 if test "$hardcode_direct" = yes; then
10347                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10348                 else
10349                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10350                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10351                                                             haveit=
10352                     for x in $rpathdirs; do
10353                       if test "X$x" = "X$found_dir"; then
10354                         haveit=yes
10355                         break
10356                       fi
10357                     done
10358                     if test -z "$haveit"; then
10359                       rpathdirs="$rpathdirs $found_dir"
10360                     fi
10361                   else
10362                                                                                 haveit=
10363                     for x in $LDFLAGS $LIBINTL; do
10364
10365   acl_save_prefix="$prefix"
10366   prefix="$acl_final_prefix"
10367   acl_save_exec_prefix="$exec_prefix"
10368   exec_prefix="$acl_final_exec_prefix"
10369   eval x=\"$x\"
10370   exec_prefix="$acl_save_exec_prefix"
10371   prefix="$acl_save_prefix"
10372
10373                       if test "X$x" = "X-L$found_dir"; then
10374                         haveit=yes
10375                         break
10376                       fi
10377                     done
10378                     if test -z "$haveit"; then
10379                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10380                     fi
10381                     if test "$hardcode_minus_L" != no; then
10382                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10383                     else
10384                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10385                     fi
10386                   fi
10387                 fi
10388               fi
10389             else
10390               if test "X$found_a" != "X"; then
10391                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10392               else
10393                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10394               fi
10395             fi
10396                         additional_includedir=
10397             case "$found_dir" in
10398               */lib | */lib/)
10399                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10400                 additional_includedir="$basedir/include"
10401                 ;;
10402             esac
10403             if test "X$additional_includedir" != "X"; then
10404                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10405                 haveit=
10406                 if test "X$additional_includedir" = "X/usr/local/include"; then
10407                   if test -n "$GCC"; then
10408                     case $host_os in
10409                       linux*) haveit=yes;;
10410                     esac
10411                   fi
10412                 fi
10413                 if test -z "$haveit"; then
10414                   for x in $CPPFLAGS $INCINTL; do
10415
10416   acl_save_prefix="$prefix"
10417   prefix="$acl_final_prefix"
10418   acl_save_exec_prefix="$exec_prefix"
10419   exec_prefix="$acl_final_exec_prefix"
10420   eval x=\"$x\"
10421   exec_prefix="$acl_save_exec_prefix"
10422   prefix="$acl_save_prefix"
10423
10424                     if test "X$x" = "X-I$additional_includedir"; then
10425                       haveit=yes
10426                       break
10427                     fi
10428                   done
10429                   if test -z "$haveit"; then
10430                     if test -d "$additional_includedir"; then
10431                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10432                     fi
10433                   fi
10434                 fi
10435               fi
10436             fi
10437                         if test -n "$found_la"; then
10438                                                         save_libdir="$libdir"
10439               case "$found_la" in
10440                 */* | *\\*) . "$found_la" ;;
10441                 *) . "./$found_la" ;;
10442               esac
10443               libdir="$save_libdir"
10444                             for dep in $dependency_libs; do
10445                 case "$dep" in
10446                   -L*)
10447                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10448                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10449                       haveit=
10450                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10451                         if test -n "$GCC"; then
10452                           case $host_os in
10453                             linux*) haveit=yes;;
10454                           esac
10455                         fi
10456                       fi
10457                       if test -z "$haveit"; then
10458                         haveit=
10459                         for x in $LDFLAGS $LIBINTL; do
10460
10461   acl_save_prefix="$prefix"
10462   prefix="$acl_final_prefix"
10463   acl_save_exec_prefix="$exec_prefix"
10464   exec_prefix="$acl_final_exec_prefix"
10465   eval x=\"$x\"
10466   exec_prefix="$acl_save_exec_prefix"
10467   prefix="$acl_save_prefix"
10468
10469                           if test "X$x" = "X-L$additional_libdir"; then
10470                             haveit=yes
10471                             break
10472                           fi
10473                         done
10474                         if test -z "$haveit"; then
10475                           if test -d "$additional_libdir"; then
10476                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10477                           fi
10478                         fi
10479                         haveit=
10480                         for x in $LDFLAGS $LTLIBINTL; do
10481
10482   acl_save_prefix="$prefix"
10483   prefix="$acl_final_prefix"
10484   acl_save_exec_prefix="$exec_prefix"
10485   exec_prefix="$acl_final_exec_prefix"
10486   eval x=\"$x\"
10487   exec_prefix="$acl_save_exec_prefix"
10488   prefix="$acl_save_prefix"
10489
10490                           if test "X$x" = "X-L$additional_libdir"; then
10491                             haveit=yes
10492                             break
10493                           fi
10494                         done
10495                         if test -z "$haveit"; then
10496                           if test -d "$additional_libdir"; then
10497                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10498                           fi
10499                         fi
10500                       fi
10501                     fi
10502                     ;;
10503                   -R*)
10504                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10505                     if test "$enable_rpath" != no; then
10506                                                                   haveit=
10507                       for x in $rpathdirs; do
10508                         if test "X$x" = "X$dir"; then
10509                           haveit=yes
10510                           break
10511                         fi
10512                       done
10513                       if test -z "$haveit"; then
10514                         rpathdirs="$rpathdirs $dir"
10515                       fi
10516                                                                   haveit=
10517                       for x in $ltrpathdirs; do
10518                         if test "X$x" = "X$dir"; then
10519                           haveit=yes
10520                           break
10521                         fi
10522                       done
10523                       if test -z "$haveit"; then
10524                         ltrpathdirs="$ltrpathdirs $dir"
10525                       fi
10526                     fi
10527                     ;;
10528                   -l*)
10529                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10530                     ;;
10531                   *.la)
10532                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10533                     ;;
10534                   *)
10535                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10536                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10537                     ;;
10538                 esac
10539               done
10540             fi
10541           else
10542                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10543             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10544           fi
10545         fi
10546       fi
10547     done
10548   done
10549   if test "X$rpathdirs" != "X"; then
10550     if test -n "$hardcode_libdir_separator"; then
10551                         alldirs=
10552       for found_dir in $rpathdirs; do
10553         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10554       done
10555             acl_save_libdir="$libdir"
10556       libdir="$alldirs"
10557       eval flag=\"$hardcode_libdir_flag_spec\"
10558       libdir="$acl_save_libdir"
10559       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10560     else
10561             for found_dir in $rpathdirs; do
10562         acl_save_libdir="$libdir"
10563         libdir="$found_dir"
10564         eval flag=\"$hardcode_libdir_flag_spec\"
10565         libdir="$acl_save_libdir"
10566         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10567       done
10568     fi
10569   fi
10570   if test "X$ltrpathdirs" != "X"; then
10571             for found_dir in $ltrpathdirs; do
10572       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10573     done
10574   fi
10575
10576           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10577 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10578 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   gt_save_CPPFLAGS="$CPPFLAGS"
10582             CPPFLAGS="$CPPFLAGS $INCINTL"
10583             gt_save_LIBS="$LIBS"
10584             LIBS="$LIBS $LIBINTL"
10585                         cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 #include <libintl.h>
10592 extern int _nl_msg_cat_cntr;
10593 extern
10594 #ifdef __cplusplus
10595 "C"
10596 #endif
10597 const char *_nl_expand_alias ();
10598 int
10599 main ()
10600 {
10601 bindtextdomain ("", "");
10602 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_link") 2>conftest.er1
10615   ac_status=$?
10616   grep -v '^ *+' conftest.er1 >conftest.err
10617   rm -f conftest.er1
10618   cat conftest.err >&5
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } && {
10621          test -z "$ac_c_werror_flag" ||
10622          test ! -s conftest.err
10623        } && test -s conftest$ac_exeext &&
10624        $as_test_x conftest$ac_exeext; then
10625   gt_cv_func_gnugettext1_libintl=yes
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630         gt_cv_func_gnugettext1_libintl=no
10631 fi
10632
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634       conftest$ac_exeext conftest.$ac_ext
10635                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10636               LIBS="$LIBS $LIBICONV"
10637               cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 #include <libintl.h>
10644 extern int _nl_msg_cat_cntr;
10645 extern
10646 #ifdef __cplusplus
10647 "C"
10648 #endif
10649 const char *_nl_expand_alias ();
10650 int
10651 main ()
10652 {
10653 bindtextdomain ("", "");
10654 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_link") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } && {
10673          test -z "$ac_c_werror_flag" ||
10674          test ! -s conftest.err
10675        } && test -s conftest$ac_exeext &&
10676        $as_test_x conftest$ac_exeext; then
10677   LIBINTL="$LIBINTL $LIBICONV"
10678                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10679                 gt_cv_func_gnugettext1_libintl=yes
10680
10681 else
10682   echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10684
10685
10686 fi
10687
10688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689       conftest$ac_exeext conftest.$ac_ext
10690             fi
10691             CPPFLAGS="$gt_save_CPPFLAGS"
10692             LIBS="$gt_save_LIBS"
10693 fi
10694 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10695 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10696         fi
10697
10698                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10699            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10700                 && test "$PACKAGE" != gettext-runtime \
10701                 && test "$PACKAGE" != gettext-tools; }; then
10702           gt_use_preinstalled_gnugettext=yes
10703         else
10704                     LIBINTL=
10705           LTLIBINTL=
10706           INCINTL=
10707         fi
10708
10709
10710         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10711                               nls_cv_use_gnu_gettext=yes
10712         fi
10713       fi
10714
10715       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10716                 BUILD_INCLUDED_LIBINTL=yes
10717         USE_INCLUDED_LIBINTL=yes
10718         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10719         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10720         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10721       fi
10722
10723       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10724          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10725                 CATOBJEXT=.gmo
10726       fi
10727
10728
10729     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10730        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define ENABLE_NLS 1
10734 _ACEOF
10735
10736     else
10737       USE_NLS=no
10738     fi
10739   fi
10740
10741   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10742 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10743   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10744 echo "${ECHO_T}$USE_NLS" >&6; }
10745   if test "$USE_NLS" = "yes"; then
10746     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10747 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10748     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10749       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10750         gt_source="external libintl"
10751       else
10752         gt_source="libc"
10753       fi
10754     else
10755       gt_source="included intl directory"
10756     fi
10757     { echo "$as_me:$LINENO: result: $gt_source" >&5
10758 echo "${ECHO_T}$gt_source" >&6; }
10759   fi
10760
10761   if test "$USE_NLS" = "yes"; then
10762
10763     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10764       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10765         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10766 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10767         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10768 echo "${ECHO_T}$LIBINTL" >&6; }
10769
10770   for element in $INCINTL; do
10771     haveit=
10772     for x in $CPPFLAGS; do
10773
10774   acl_save_prefix="$prefix"
10775   prefix="$acl_final_prefix"
10776   acl_save_exec_prefix="$exec_prefix"
10777   exec_prefix="$acl_final_exec_prefix"
10778   eval x=\"$x\"
10779   exec_prefix="$acl_save_exec_prefix"
10780   prefix="$acl_save_prefix"
10781
10782       if test "X$x" = "X$element"; then
10783         haveit=yes
10784         break
10785       fi
10786     done
10787     if test -z "$haveit"; then
10788       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10789     fi
10790   done
10791
10792       fi
10793
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define HAVE_GETTEXT 1
10797 _ACEOF
10798
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_DCGETTEXT 1
10802 _ACEOF
10803
10804     fi
10805
10806         POSUB=po
10807   fi
10808
10809
10810             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10811       BUILD_INCLUDED_LIBINTL=yes
10812     fi
10813
10814
10815
10816
10817
10818         nls_cv_header_intl=
10819     nls_cv_header_libgt=
10820
10821         DATADIRNAME=share
10822
10823
10824         INSTOBJEXT=.mo
10825
10826
10827         GENCAT=gencat
10828
10829
10830         if test "$USE_INCLUDED_LIBINTL" = yes; then
10831       INTLOBJS="\$(GETTOBJS)"
10832     fi
10833
10834
10835         INTL_LIBTOOL_SUFFIX_PREFIX=
10836
10837
10838
10839     INTLLIBS="$LIBINTL"
10840
10841
10842
10843
10844
10845
10846
10847 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10848 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10849 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   cat >conftest.make <<\_ACEOF
10854 SHELL = /bin/sh
10855 all:
10856         @echo '@@@%%%=$(MAKE)=@@@%%%'
10857 _ACEOF
10858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10860   *@@@%%%=?*=@@@%%%*)
10861     eval ac_cv_prog_make_${ac_make}_set=yes;;
10862   *)
10863     eval ac_cv_prog_make_${ac_make}_set=no;;
10864 esac
10865 rm -f conftest.make
10866 fi
10867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10868   { echo "$as_me:$LINENO: result: yes" >&5
10869 echo "${ECHO_T}yes" >&6; }
10870   SET_MAKE=
10871 else
10872   { echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6; }
10874   SET_MAKE="MAKE=${MAKE-make}"
10875 fi
10876
10877 # Extract the first word of "ln", so it can be a program name with args.
10878 set dummy ln; ac_word=$2
10879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10881 if test "${ac_cv_path_LN+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   case $LN in
10885   [\\/]* | ?:[\\/]*)
10886   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10887   ;;
10888   *)
10889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892   IFS=$as_save_IFS
10893   test -z "$as_dir" && as_dir=.
10894   for ac_exec_ext in '' $ac_executable_extensions; do
10895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898     break 2
10899   fi
10900 done
10901 done
10902 IFS=$as_save_IFS
10903
10904   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10905   ;;
10906 esac
10907 fi
10908 LN=$ac_cv_path_LN
10909 if test -n "$LN"; then
10910   { echo "$as_me:$LINENO: result: $LN" >&5
10911 echo "${ECHO_T}$LN" >&6; }
10912 else
10913   { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10915 fi
10916
10917
10918 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10919 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10920 LN_S=$as_ln_s
10921 if test "$LN_S" = "ln -s"; then
10922   { echo "$as_me:$LINENO: result: yes" >&5
10923 echo "${ECHO_T}yes" >&6; }
10924 else
10925   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10926 echo "${ECHO_T}no, using $LN_S" >&6; }
10927 fi
10928
10929 # Extract the first word of "mv", so it can be a program name with args.
10930 set dummy mv; ac_word=$2
10931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10933 if test "${ac_cv_path_MV+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   case $MV in
10937   [\\/]* | ?:[\\/]*)
10938   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10939   ;;
10940   *)
10941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10943 do
10944   IFS=$as_save_IFS
10945   test -z "$as_dir" && as_dir=.
10946   for ac_exec_ext in '' $ac_executable_extensions; do
10947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10950     break 2
10951   fi
10952 done
10953 done
10954 IFS=$as_save_IFS
10955
10956   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10957   ;;
10958 esac
10959 fi
10960 MV=$ac_cv_path_MV
10961 if test -n "$MV"; then
10962   { echo "$as_me:$LINENO: result: $MV" >&5
10963 echo "${ECHO_T}$MV" >&6; }
10964 else
10965   { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10967 fi
10968
10969
10970 # Extract the first word of "cp", so it can be a program name with args.
10971 set dummy cp; ac_word=$2
10972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10974 if test "${ac_cv_path_CP+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   case $CP in
10978   [\\/]* | ?:[\\/]*)
10979   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10980   ;;
10981   *)
10982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987   for ac_exec_ext in '' $ac_executable_extensions; do
10988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991     break 2
10992   fi
10993 done
10994 done
10995 IFS=$as_save_IFS
10996
10997   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10998   ;;
10999 esac
11000 fi
11001 CP=$ac_cv_path_CP
11002 if test -n "$CP"; then
11003   { echo "$as_me:$LINENO: result: $CP" >&5
11004 echo "${ECHO_T}$CP" >&6; }
11005 else
11006   { echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6; }
11008 fi
11009
11010
11011 # Extract the first word of "rm", so it can be a program name with args.
11012 set dummy rm; ac_word=$2
11013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11015 if test "${ac_cv_path_RM+set}" = set; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   case $RM in
11019   [\\/]* | ?:[\\/]*)
11020   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11021   ;;
11022   *)
11023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028   for ac_exec_ext in '' $ac_executable_extensions; do
11029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035 done
11036 IFS=$as_save_IFS
11037
11038   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11039   ;;
11040 esac
11041 fi
11042 RM=$ac_cv_path_RM
11043 if test -n "$RM"; then
11044   { echo "$as_me:$LINENO: result: $RM" >&5
11045 echo "${ECHO_T}$RM" >&6; }
11046 else
11047   { echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6; }
11049 fi
11050
11051
11052 # Extract the first word of "chmod", so it can be a program name with args.
11053 set dummy chmod; ac_word=$2
11054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11056 if test "${ac_cv_path_CHMOD+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   case $CHMOD in
11060   [\\/]* | ?:[\\/]*)
11061   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11062   ;;
11063   *)
11064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067   IFS=$as_save_IFS
11068   test -z "$as_dir" && as_dir=.
11069   for ac_exec_ext in '' $ac_executable_extensions; do
11070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073     break 2
11074   fi
11075 done
11076 done
11077 IFS=$as_save_IFS
11078
11079   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11080   ;;
11081 esac
11082 fi
11083 CHMOD=$ac_cv_path_CHMOD
11084 if test -n "$CHMOD"; then
11085   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11086 echo "${ECHO_T}$CHMOD" >&6; }
11087 else
11088   { echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6; }
11090 fi
11091
11092
11093 for ac_prog in gawk mawk nawk awk
11094 do
11095   # Extract the first word of "$ac_prog", so it can be a program name with args.
11096 set dummy $ac_prog; ac_word=$2
11097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11099 if test "${ac_cv_prog_AWK+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   if test -n "$AWK"; then
11103   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11104 else
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108   IFS=$as_save_IFS
11109   test -z "$as_dir" && as_dir=.
11110   for ac_exec_ext in '' $ac_executable_extensions; do
11111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112     ac_cv_prog_AWK="$ac_prog"
11113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114     break 2
11115   fi
11116 done
11117 done
11118 IFS=$as_save_IFS
11119
11120 fi
11121 fi
11122 AWK=$ac_cv_prog_AWK
11123 if test -n "$AWK"; then
11124   { echo "$as_me:$LINENO: result: $AWK" >&5
11125 echo "${ECHO_T}$AWK" >&6; }
11126 else
11127   { echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6; }
11129 fi
11130
11131
11132   test -n "$AWK" && break
11133 done
11134
11135 { echo "$as_me:$LINENO: checking for egrep" >&5
11136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11137 if test "${ac_cv_path_EGREP+set}" = set; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11141    then ac_cv_path_EGREP="$GREP -E"
11142    else
11143      # Extract the first word of "egrep" to use in msg output
11144 if test -z "$EGREP"; then
11145 set dummy egrep; ac_prog_name=$2
11146 if test "${ac_cv_path_EGREP+set}" = set; then
11147   echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149   ac_path_EGREP_found=false
11150 # Loop through the user's path and test for each of PROGNAME-LIST
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156   for ac_prog in egrep; do
11157   for ac_exec_ext in '' $ac_executable_extensions; do
11158     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11159     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11160     # Check for GNU ac_path_EGREP and select it if it is found.
11161   # Check for GNU $ac_path_EGREP
11162 case `"$ac_path_EGREP" --version 2>&1` in
11163 *GNU*)
11164   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11165 *)
11166   ac_count=0
11167   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11168   while :
11169   do
11170     cat "conftest.in" "conftest.in" >"conftest.tmp"
11171     mv "conftest.tmp" "conftest.in"
11172     cp "conftest.in" "conftest.nl"
11173     echo 'EGREP' >> "conftest.nl"
11174     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11176     ac_count=`expr $ac_count + 1`
11177     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11178       # Best one so far, save it but keep looking for a better one
11179       ac_cv_path_EGREP="$ac_path_EGREP"
11180       ac_path_EGREP_max=$ac_count
11181     fi
11182     # 10*(2^10) chars as input seems more than enough
11183     test $ac_count -gt 10 && break
11184   done
11185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11186 esac
11187
11188
11189     $ac_path_EGREP_found && break 3
11190   done
11191 done
11192
11193 done
11194 IFS=$as_save_IFS
11195
11196
11197 fi
11198
11199 EGREP="$ac_cv_path_EGREP"
11200 if test -z "$EGREP"; then
11201   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11202 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11203    { (exit 1); exit 1; }; }
11204 fi
11205
11206 else
11207   ac_cv_path_EGREP=$EGREP
11208 fi
11209
11210
11211    fi
11212 fi
11213 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11214 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11215  EGREP="$ac_cv_path_EGREP"
11216
11217
11218 # Extract the first word of "sed", so it can be a program name with args.
11219 set dummy sed; ac_word=$2
11220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11222 if test "${ac_cv_path_SED+set}" = set; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   case $SED in
11226   [\\/]* | ?:[\\/]*)
11227   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11228   ;;
11229   *)
11230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11232 do
11233   IFS=$as_save_IFS
11234   test -z "$as_dir" && as_dir=.
11235   for ac_exec_ext in '' $ac_executable_extensions; do
11236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239     break 2
11240   fi
11241 done
11242 done
11243 IFS=$as_save_IFS
11244
11245   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11246   ;;
11247 esac
11248 fi
11249 SED=$ac_cv_path_SED
11250 if test -n "$SED"; then
11251   { echo "$as_me:$LINENO: result: $SED" >&5
11252 echo "${ECHO_T}$SED" >&6; }
11253 else
11254   { echo "$as_me:$LINENO: result: no" >&5
11255 echo "${ECHO_T}no" >&6; }
11256 fi
11257
11258
11259 # Extract the first word of "perl", so it can be a program name with args.
11260 set dummy perl; ac_word=$2
11261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11263 if test "${ac_cv_path_PERL+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   case $PERL in
11267   [\\/]* | ?:[\\/]*)
11268   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11269   ;;
11270   *)
11271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276   for ac_exec_ext in '' $ac_executable_extensions; do
11277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283 done
11284 IFS=$as_save_IFS
11285
11286   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11287   ;;
11288 esac
11289 fi
11290 PERL=$ac_cv_path_PERL
11291 if test -n "$PERL"; then
11292   { echo "$as_me:$LINENO: result: $PERL" >&5
11293 echo "${ECHO_T}$PERL" >&6; }
11294 else
11295   { echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6; }
11297 fi
11298
11299
11300 # Extract the first word of "ldconfig", so it can be a program name with args.
11301 set dummy ldconfig; ac_word=$2
11302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11304 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   case $LDCONFIG in
11308   [\\/]* | ?:[\\/]*)
11309   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11310   ;;
11311   *)
11312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315   IFS=$as_save_IFS
11316   test -z "$as_dir" && as_dir=.
11317   for ac_exec_ext in '' $ac_executable_extensions; do
11318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321     break 2
11322   fi
11323 done
11324 done
11325 IFS=$as_save_IFS
11326
11327   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11328   ;;
11329 esac
11330 fi
11331 LDCONFIG=$ac_cv_path_LDCONFIG
11332 if test -n "$LDCONFIG"; then
11333   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11334 echo "${ECHO_T}$LDCONFIG" >&6; }
11335 else
11336   { echo "$as_me:$LINENO: result: no" >&5
11337 echo "${ECHO_T}no" >&6; }
11338 fi
11339
11340
11341 if test -n "$ac_tool_prefix"; then
11342   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11343 set dummy ${ac_tool_prefix}ar; ac_word=$2
11344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11346 if test "${ac_cv_prog_AR+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   if test -n "$AR"; then
11350   ac_cv_prog_AR="$AR" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355   IFS=$as_save_IFS
11356   test -z "$as_dir" && as_dir=.
11357   for ac_exec_ext in '' $ac_executable_extensions; do
11358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359     ac_cv_prog_AR="${ac_tool_prefix}ar"
11360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361     break 2
11362   fi
11363 done
11364 done
11365 IFS=$as_save_IFS
11366
11367 fi
11368 fi
11369 AR=$ac_cv_prog_AR
11370 if test -n "$AR"; then
11371   { echo "$as_me:$LINENO: result: $AR" >&5
11372 echo "${ECHO_T}$AR" >&6; }
11373 else
11374   { echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6; }
11376 fi
11377
11378
11379 fi
11380 if test -z "$ac_cv_prog_AR"; then
11381   ac_ct_AR=$AR
11382   # Extract the first word of "ar", so it can be a program name with args.
11383 set dummy ar; ac_word=$2
11384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   if test -n "$ac_ct_AR"; then
11390   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11391 else
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395   IFS=$as_save_IFS
11396   test -z "$as_dir" && as_dir=.
11397   for ac_exec_ext in '' $ac_executable_extensions; do
11398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399     ac_cv_prog_ac_ct_AR="ar"
11400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401     break 2
11402   fi
11403 done
11404 done
11405 IFS=$as_save_IFS
11406
11407 fi
11408 fi
11409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11410 if test -n "$ac_ct_AR"; then
11411   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11412 echo "${ECHO_T}$ac_ct_AR" >&6; }
11413 else
11414   { echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6; }
11416 fi
11417
11418   if test "x$ac_ct_AR" = x; then
11419     AR="ar"
11420   else
11421     case $cross_compiling:$ac_tool_warned in
11422 yes:)
11423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11424 whose name does not start with the host triplet.  If you think this
11425 configuration is useful to you, please write to autoconf@gnu.org." >&5
11426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11427 whose name does not start with the host triplet.  If you think this
11428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11429 ac_tool_warned=yes ;;
11430 esac
11431     AR=$ac_ct_AR
11432   fi
11433 else
11434   AR="$ac_cv_prog_AR"
11435 fi
11436
11437 if test -n "$ac_tool_prefix"; then
11438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11442 if test "${ac_cv_prog_RANLIB+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   if test -n "$RANLIB"; then
11446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453   for ac_exec_ext in '' $ac_executable_extensions; do
11454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460 done
11461 IFS=$as_save_IFS
11462
11463 fi
11464 fi
11465 RANLIB=$ac_cv_prog_RANLIB
11466 if test -n "$RANLIB"; then
11467   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11468 echo "${ECHO_T}$RANLIB" >&6; }
11469 else
11470   { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11472 fi
11473
11474
11475 fi
11476 if test -z "$ac_cv_prog_RANLIB"; then
11477   ac_ct_RANLIB=$RANLIB
11478   # Extract the first word of "ranlib", so it can be a program name with args.
11479 set dummy ranlib; ac_word=$2
11480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11482 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   if test -n "$ac_ct_RANLIB"; then
11486   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491   IFS=$as_save_IFS
11492   test -z "$as_dir" && as_dir=.
11493   for ac_exec_ext in '' $ac_executable_extensions; do
11494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495     ac_cv_prog_ac_ct_RANLIB="ranlib"
11496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11497     break 2
11498   fi
11499 done
11500 done
11501 IFS=$as_save_IFS
11502
11503 fi
11504 fi
11505 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11506 if test -n "$ac_ct_RANLIB"; then
11507   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11508 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11509 else
11510   { echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6; }
11512 fi
11513
11514   if test "x$ac_ct_RANLIB" = x; then
11515     RANLIB=":"
11516   else
11517     case $cross_compiling:$ac_tool_warned in
11518 yes:)
11519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11520 whose name does not start with the host triplet.  If you think this
11521 configuration is useful to you, please write to autoconf@gnu.org." >&5
11522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11523 whose name does not start with the host triplet.  If you think this
11524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11525 ac_tool_warned=yes ;;
11526 esac
11527     RANLIB=$ac_ct_RANLIB
11528   fi
11529 else
11530   RANLIB="$ac_cv_prog_RANLIB"
11531 fi
11532
11533 if test -n "$ac_tool_prefix"; then
11534   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}strip; ac_word=$2
11536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11538 if test "${ac_cv_prog_STRIP+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   if test -n "$STRIP"; then
11542   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11546 do
11547   IFS=$as_save_IFS
11548   test -z "$as_dir" && as_dir=.
11549   for ac_exec_ext in '' $ac_executable_extensions; do
11550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11551     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553     break 2
11554   fi
11555 done
11556 done
11557 IFS=$as_save_IFS
11558
11559 fi
11560 fi
11561 STRIP=$ac_cv_prog_STRIP
11562 if test -n "$STRIP"; then
11563   { echo "$as_me:$LINENO: result: $STRIP" >&5
11564 echo "${ECHO_T}$STRIP" >&6; }
11565 else
11566   { echo "$as_me:$LINENO: result: no" >&5
11567 echo "${ECHO_T}no" >&6; }
11568 fi
11569
11570
11571 fi
11572 if test -z "$ac_cv_prog_STRIP"; then
11573   ac_ct_STRIP=$STRIP
11574   # Extract the first word of "strip", so it can be a program name with args.
11575 set dummy strip; ac_word=$2
11576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11578 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   if test -n "$ac_ct_STRIP"; then
11582   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587   IFS=$as_save_IFS
11588   test -z "$as_dir" && as_dir=.
11589   for ac_exec_ext in '' $ac_executable_extensions; do
11590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591     ac_cv_prog_ac_ct_STRIP="strip"
11592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593     break 2
11594   fi
11595 done
11596 done
11597 IFS=$as_save_IFS
11598
11599 fi
11600 fi
11601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11602 if test -n "$ac_ct_STRIP"; then
11603   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11604 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11605 else
11606   { echo "$as_me:$LINENO: result: no" >&5
11607 echo "${ECHO_T}no" >&6; }
11608 fi
11609
11610   if test "x$ac_ct_STRIP" = x; then
11611     STRIP=":"
11612   else
11613     case $cross_compiling:$ac_tool_warned in
11614 yes:)
11615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11616 whose name does not start with the host triplet.  If you think this
11617 configuration is useful to you, please write to autoconf@gnu.org." >&5
11618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11619 whose name does not start with the host triplet.  If you think this
11620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11621 ac_tool_warned=yes ;;
11622 esac
11623     STRIP=$ac_ct_STRIP
11624   fi
11625 else
11626   STRIP="$ac_cv_prog_STRIP"
11627 fi
11628
11629 # Extract the first word of "makeinfo", so it can be a program name with args.
11630 set dummy makeinfo; ac_word=$2
11631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11633 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   if test -n "$MAKEINFO"; then
11637   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642   IFS=$as_save_IFS
11643   test -z "$as_dir" && as_dir=.
11644   for ac_exec_ext in '' $ac_executable_extensions; do
11645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11646     ac_cv_prog_MAKEINFO="makeinfo"
11647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648     break 2
11649   fi
11650 done
11651 done
11652 IFS=$as_save_IFS
11653
11654 fi
11655 fi
11656 MAKEINFO=$ac_cv_prog_MAKEINFO
11657 if test -n "$MAKEINFO"; then
11658   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11659 echo "${ECHO_T}$MAKEINFO" >&6; }
11660 else
11661   { echo "$as_me:$LINENO: result: no" >&5
11662 echo "${ECHO_T}no" >&6; }
11663 fi
11664
11665
11666 if test "_$MAKEINFO" = "_"; then
11667     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11668 else
11669     case "$MAKEINFO" in
11670       */missing.*)
11671         { echo "$as_me:$LINENO: WARNING:
11672 *** Makeinfo is missing. Info documentation will not be built." >&5
11673 echo "$as_me: WARNING:
11674 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11675         ;;
11676       *)
11677         ;;
11678     esac
11679 fi
11680
11681 # Find a good install program.  We prefer a C program (faster),
11682 # so one script is as good as another.  But avoid the broken or
11683 # incompatible versions:
11684 # SysV /etc/install, /usr/sbin/install
11685 # SunOS /usr/etc/install
11686 # IRIX /sbin/install
11687 # AIX /bin/install
11688 # AmigaOS /C/install, which installs bootblocks on floppy discs
11689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11692 # OS/2's system install, which has a completely different semantic
11693 # ./install, which can be erroneously created by make from ./install.sh.
11694 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11696 if test -z "$INSTALL"; then
11697 if test "${ac_cv_path_install+set}" = set; then
11698   echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703   IFS=$as_save_IFS
11704   test -z "$as_dir" && as_dir=.
11705   # Account for people who put trailing slashes in PATH elements.
11706 case $as_dir/ in
11707   ./ | .// | /cC/* | \
11708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11709   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11710   /usr/ucb/* ) ;;
11711   *)
11712     # OSF1 and SCO ODT 3.0 have their own names for install.
11713     # Don't use installbsd from OSF since it installs stuff as root
11714     # by default.
11715     for ac_prog in ginstall scoinst install; do
11716       for ac_exec_ext in '' $ac_executable_extensions; do
11717         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11718           if test $ac_prog = install &&
11719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11720             # AIX install.  It has an incompatible calling convention.
11721             :
11722           elif test $ac_prog = install &&
11723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724             # program-specific install script used by HP pwplus--don't use.
11725             :
11726           else
11727             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11728             break 3
11729           fi
11730         fi
11731       done
11732     done
11733     ;;
11734 esac
11735 done
11736 IFS=$as_save_IFS
11737
11738
11739 fi
11740   if test "${ac_cv_path_install+set}" = set; then
11741     INSTALL=$ac_cv_path_install
11742   else
11743     # As a last resort, use the slow shell script.  Don't cache a
11744     # value for INSTALL within a source directory, because that will
11745     # break other packages using the cache if that directory is
11746     # removed, or if the value is a relative name.
11747     INSTALL=$ac_install_sh
11748   fi
11749 fi
11750 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11751 echo "${ECHO_T}$INSTALL" >&6; }
11752
11753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754 # It thinks the first close brace ends the variable substitution.
11755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756
11757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11758
11759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760
11761 # See if we need a separate native compiler.
11762 if test $cross_compiling = no; then
11763   BUILD_CC="$CC"
11764
11765 else
11766   for ac_prog in gcc cc
11767 do
11768   # Extract the first word of "$ac_prog", so it can be a program name with args.
11769 set dummy $ac_prog; ac_word=$2
11770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11772 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   if test -n "$BUILD_CC"; then
11776   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11777 else
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11780 do
11781   IFS=$as_save_IFS
11782   test -z "$as_dir" && as_dir=.
11783   for ac_exec_ext in '' $ac_executable_extensions; do
11784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785     ac_cv_prog_BUILD_CC="$ac_prog"
11786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11787     break 2
11788   fi
11789 done
11790 done
11791 IFS=$as_save_IFS
11792
11793 fi
11794 fi
11795 BUILD_CC=$ac_cv_prog_BUILD_CC
11796 if test -n "$BUILD_CC"; then
11797   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11798 echo "${ECHO_T}$BUILD_CC" >&6; }
11799 else
11800   { echo "$as_me:$LINENO: result: no" >&5
11801 echo "${ECHO_T}no" >&6; }
11802 fi
11803
11804
11805   test -n "$BUILD_CC" && break
11806 done
11807
11808 fi
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844 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
11845 do
11846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 fi
11853 ac_res=`eval echo '${'$as_ac_Header'}'`
11854                { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 else
11857   # Is the header compilable?
11858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866 $ac_includes_default
11867 #include <$ac_header>
11868 _ACEOF
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_compile") 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } && {
11883          test -z "$ac_c_werror_flag" ||
11884          test ! -s conftest.err
11885        } && test -s conftest.$ac_objext; then
11886   ac_header_compiler=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_header_compiler=no
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897
11898 # Is the header present?
11899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 #include <$ac_header>
11908 _ACEOF
11909 if { (ac_try="$ac_cpp conftest.$ac_ext"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } >/dev/null && {
11922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11923          test ! -s conftest.err
11924        }; then
11925   ac_header_preproc=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930   ac_header_preproc=no
11931 fi
11932
11933 rm -f conftest.err conftest.$ac_ext
11934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11935 echo "${ECHO_T}$ac_header_preproc" >&6; }
11936
11937 # So?  What about this header?
11938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11939   yes:no: )
11940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11944     ac_header_preproc=yes
11945     ;;
11946   no:yes:* )
11947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11959
11960     ;;
11961 esac
11962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967   eval "$as_ac_Header=\$ac_header_preproc"
11968 fi
11969 ac_res=`eval echo '${'$as_ac_Header'}'`
11970                { echo "$as_me:$LINENO: result: $ac_res" >&5
11971 echo "${ECHO_T}$ac_res" >&6; }
11972
11973 fi
11974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11975   cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11978
11979 fi
11980
11981 done
11982
11983
11984
11985 for ac_header in sys/disk.h sys/mount.h
11986 do
11987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999
12000 #if HAVE_SYS_QUEUE_H
12001 #include <sys/queue.h>
12002 #endif
12003
12004
12005 #include <$ac_header>
12006 _ACEOF
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014   (eval "$ac_compile") 2>conftest.er1
12015   ac_status=$?
12016   grep -v '^ *+' conftest.er1 >conftest.err
12017   rm -f conftest.er1
12018   cat conftest.err >&5
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } && {
12021          test -z "$ac_c_werror_flag" ||
12022          test ! -s conftest.err
12023        } && test -s conftest.$ac_objext; then
12024   eval "$as_ac_Header=yes"
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029         eval "$as_ac_Header=no"
12030 fi
12031
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 fi
12034 ac_res=`eval echo '${'$as_ac_Header'}'`
12035                { echo "$as_me:$LINENO: result: $ac_res" >&5
12036 echo "${ECHO_T}$ac_res" >&6; }
12037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12038   cat >>confdefs.h <<_ACEOF
12039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12040 _ACEOF
12041
12042 fi
12043
12044 done
12045
12046
12047 for ac_header in net/if.h
12048 do
12049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061
12062 #if HAVE_SYS_TYPES_H
12063 #include <sys/types.h>
12064 #endif
12065 #if HAVE_SYS_SOCKET
12066 #include <sys/socket.h>
12067 #endif
12068
12069
12070 #include <$ac_header>
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_compile") 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } && {
12086          test -z "$ac_c_werror_flag" ||
12087          test ! -s conftest.err
12088        } && test -s conftest.$ac_objext; then
12089   eval "$as_ac_Header=yes"
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094         eval "$as_ac_Header=no"
12095 fi
12096
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 ac_res=`eval echo '${'$as_ac_Header'}'`
12100                { echo "$as_me:$LINENO: result: $ac_res" >&5
12101 echo "${ECHO_T}$ac_res" >&6; }
12102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12103   cat >>confdefs.h <<_ACEOF
12104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12105 _ACEOF
12106
12107 fi
12108
12109 done
12110
12111
12112 for ac_func in vprintf
12113 do
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12128 #define $ac_func innocuous_$ac_func
12129
12130 /* System header to define __stub macros and hopefully few prototypes,
12131     which can conflict with char $ac_func (); below.
12132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133     <limits.h> exists even on freestanding compilers.  */
12134
12135 #ifdef __STDC__
12136 # include <limits.h>
12137 #else
12138 # include <assert.h>
12139 #endif
12140
12141 #undef $ac_func
12142
12143 /* Override any GCC internal prototype to avoid an error.
12144    Use char because int might match the return type of a GCC
12145    builtin and then its argument prototype would still apply.  */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char $ac_func ();
12150 /* The GNU C library defines this for functions which it implements
12151     to always fail with ENOSYS.  Some functions are actually named
12152     something starting with __ and the normal name is an alias.  */
12153 #if defined __stub_$ac_func || defined __stub___$ac_func
12154 choke me
12155 #endif
12156
12157 int
12158 main ()
12159 {
12160 return $ac_func ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_link") 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } && {
12179          test -z "$ac_c_werror_flag" ||
12180          test ! -s conftest.err
12181        } && test -s conftest$ac_exeext &&
12182        $as_test_x conftest$ac_exeext; then
12183   eval "$as_ac_var=yes"
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         eval "$as_ac_var=no"
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192       conftest$ac_exeext conftest.$ac_ext
12193 fi
12194 ac_res=`eval echo '${'$as_ac_var'}'`
12195                { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_var'}'` = yes; then
12198   cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 _ACEOF
12201
12202 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12203 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12204 if test "${ac_cv_func__doprnt+set}" = set; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207   cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12215 #define _doprnt innocuous__doprnt
12216
12217 /* System header to define __stub macros and hopefully few prototypes,
12218     which can conflict with char _doprnt (); below.
12219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220     <limits.h> exists even on freestanding compilers.  */
12221
12222 #ifdef __STDC__
12223 # include <limits.h>
12224 #else
12225 # include <assert.h>
12226 #endif
12227
12228 #undef _doprnt
12229
12230 /* Override any GCC internal prototype to avoid an error.
12231    Use char because int might match the return type of a GCC
12232    builtin and then its argument prototype would still apply.  */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 char _doprnt ();
12237 /* The GNU C library defines this for functions which it implements
12238     to always fail with ENOSYS.  Some functions are actually named
12239     something starting with __ and the normal name is an alias.  */
12240 #if defined __stub__doprnt || defined __stub____doprnt
12241 choke me
12242 #endif
12243
12244 int
12245 main ()
12246 {
12247 return _doprnt ();
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_link") 2>conftest.er1
12260   ac_status=$?
12261   grep -v '^ *+' conftest.er1 >conftest.err
12262   rm -f conftest.er1
12263   cat conftest.err >&5
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } && {
12266          test -z "$ac_c_werror_flag" ||
12267          test ! -s conftest.err
12268        } && test -s conftest$ac_exeext &&
12269        $as_test_x conftest$ac_exeext; then
12270   ac_cv_func__doprnt=yes
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275         ac_cv_func__doprnt=no
12276 fi
12277
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279       conftest$ac_exeext conftest.$ac_ext
12280 fi
12281 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12282 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12283 if test $ac_cv_func__doprnt = yes; then
12284
12285 cat >>confdefs.h <<\_ACEOF
12286 #define HAVE_DOPRNT 1
12287 _ACEOF
12288
12289 fi
12290
12291 fi
12292 done
12293
12294
12295 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12296 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12297 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 #include <dirent.h>
12307
12308 int
12309 main ()
12310 {
12311 static struct dirent ac_aggr;
12312 if (ac_aggr.d_reclen)
12313 return 0;
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_compile") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && {
12332          test -z "$ac_c_werror_flag" ||
12333          test ! -s conftest.err
12334        } && test -s conftest.$ac_objext; then
12335   ac_cv_member_struct_dirent_d_reclen=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340         cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <dirent.h>
12347
12348 int
12349 main ()
12350 {
12351 static struct dirent ac_aggr;
12352 if (sizeof ac_aggr.d_reclen)
12353 return 0;
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_compile") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } && {
12372          test -z "$ac_c_werror_flag" ||
12373          test ! -s conftest.err
12374        } && test -s conftest.$ac_objext; then
12375   ac_cv_member_struct_dirent_d_reclen=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380         ac_cv_member_struct_dirent_d_reclen=no
12381 fi
12382
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12389 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12390 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12391   cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_RECLEN_DIRENT 1
12393 _ACEOF
12394
12395 fi
12396
12397 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12398 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12399 if test "${ac_cv_type_ssize_t+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 #include <sys/types.h>
12409
12410 typedef ssize_t ac__type_new_;
12411 int
12412 main ()
12413 {
12414 if ((ac__type_new_ *) 0)
12415   return 0;
12416 if (sizeof (ac__type_new_))
12417   return 0;
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_compile") 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } && {
12436          test -z "$ac_c_werror_flag" ||
12437          test ! -s conftest.err
12438        } && test -s conftest.$ac_objext; then
12439   ac_cv_type_ssize_t=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_type_ssize_t=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 fi
12449 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12450 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12451 if test $ac_cv_type_ssize_t = yes; then
12452   cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_TYPE_SSIZE_T 1
12454 _ACEOF
12455
12456 fi
12457
12458 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12459 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12460 if test "${ac_cv_have_decl_llseek+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h.  */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h.  */
12469 #include <unistd.h>
12470
12471 int
12472 main ()
12473 {
12474 #ifndef llseek
12475   (void) llseek;
12476 #endif
12477
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (ac_try="$ac_compile"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_compile") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } && {
12496          test -z "$ac_c_werror_flag" ||
12497          test ! -s conftest.err
12498        } && test -s conftest.$ac_objext; then
12499   ac_cv_have_decl_llseek=yes
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504         ac_cv_have_decl_llseek=no
12505 fi
12506
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 fi
12509 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12510 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12511 if test $ac_cv_have_decl_llseek = yes; then
12512   cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_LLSEEK_PROTOTYPE 1
12514 _ACEOF
12515
12516 fi
12517
12518 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12519 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12520 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h.  */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h.  */
12529 #define _LARGEFILE_SOURCE
12530                  #define _LARGEFILE64_SOURCE
12531                  #include <unistd.h>
12532
12533 int
12534 main ()
12535 {
12536 #ifndef lseek64
12537   (void) lseek64;
12538 #endif
12539
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_compile") 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } && {
12558          test -z "$ac_c_werror_flag" ||
12559          test ! -s conftest.err
12560        } && test -s conftest.$ac_objext; then
12561   ac_cv_have_decl_lseek64=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         ac_cv_have_decl_lseek64=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12572 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12573 if test $ac_cv_have_decl_lseek64 = yes; then
12574   cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_LSEEK64_PROTOTYPE 1
12576 _ACEOF
12577
12578 fi
12579
12580 { echo "$as_me:$LINENO: checking for short" >&5
12581 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12582 if test "${ac_cv_type_short+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 $ac_includes_default
12592 typedef short ac__type_new_;
12593 int
12594 main ()
12595 {
12596 if ((ac__type_new_ *) 0)
12597   return 0;
12598 if (sizeof (ac__type_new_))
12599   return 0;
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (ac_try="$ac_compile"
12606 case "(($ac_try" in
12607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608   *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611   (eval "$ac_compile") 2>conftest.er1
12612   ac_status=$?
12613   grep -v '^ *+' conftest.er1 >conftest.err
12614   rm -f conftest.er1
12615   cat conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } && {
12618          test -z "$ac_c_werror_flag" ||
12619          test ! -s conftest.err
12620        } && test -s conftest.$ac_objext; then
12621   ac_cv_type_short=yes
12622 else
12623   echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626         ac_cv_type_short=no
12627 fi
12628
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12632 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12633
12634 # The cast to long int works around a bug in the HP C Compiler
12635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12637 # This bug is HP SR number 8606223364.
12638 { echo "$as_me:$LINENO: checking size of short" >&5
12639 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12640 if test "${ac_cv_sizeof_short+set}" = set; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   if test "$cross_compiling" = yes; then
12644   # Depending upon the size, compute the lo and hi bounds.
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651 $ac_includes_default
12652    typedef short ac__type_sizeof_;
12653 int
12654 main ()
12655 {
12656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12657 test_array [0] = 0
12658
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext
12664 if { (ac_try="$ac_compile"
12665 case "(($ac_try" in
12666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667   *) ac_try_echo=$ac_try;;
12668 esac
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670   (eval "$ac_compile") 2>conftest.er1
12671   ac_status=$?
12672   grep -v '^ *+' conftest.er1 >conftest.err
12673   rm -f conftest.er1
12674   cat conftest.err >&5
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } && {
12677          test -z "$ac_c_werror_flag" ||
12678          test ! -s conftest.err
12679        } && test -s conftest.$ac_objext; then
12680   ac_lo=0 ac_mid=0
12681   while :; do
12682     cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 $ac_includes_default
12689    typedef short ac__type_sizeof_;
12690 int
12691 main ()
12692 {
12693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12694 test_array [0] = 0
12695
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_compile") 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } && {
12714          test -z "$ac_c_werror_flag" ||
12715          test ! -s conftest.err
12716        } && test -s conftest.$ac_objext; then
12717   ac_hi=$ac_mid; break
12718 else
12719   echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722         ac_lo=`expr $ac_mid + 1`
12723                         if test $ac_lo -le $ac_mid; then
12724                           ac_lo= ac_hi=
12725                           break
12726                         fi
12727                         ac_mid=`expr 2 '*' $ac_mid + 1`
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731   done
12732 else
12733   echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736         cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 $ac_includes_default
12743    typedef short ac__type_sizeof_;
12744 int
12745 main ()
12746 {
12747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12748 test_array [0] = 0
12749
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_compile") 2>conftest.er1
12762   ac_status=$?
12763   grep -v '^ *+' conftest.er1 >conftest.err
12764   rm -f conftest.er1
12765   cat conftest.err >&5
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } && {
12768          test -z "$ac_c_werror_flag" ||
12769          test ! -s conftest.err
12770        } && test -s conftest.$ac_objext; then
12771   ac_hi=-1 ac_mid=-1
12772   while :; do
12773     cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h.  */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h.  */
12779 $ac_includes_default
12780    typedef short ac__type_sizeof_;
12781 int
12782 main ()
12783 {
12784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12785 test_array [0] = 0
12786
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_compile") 2>conftest.er1
12799   ac_status=$?
12800   grep -v '^ *+' conftest.er1 >conftest.err
12801   rm -f conftest.er1
12802   cat conftest.err >&5
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } && {
12805          test -z "$ac_c_werror_flag" ||
12806          test ! -s conftest.err
12807        } && test -s conftest.$ac_objext; then
12808   ac_lo=$ac_mid; break
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813         ac_hi=`expr '(' $ac_mid ')' - 1`
12814                         if test $ac_mid -le $ac_hi; then
12815                           ac_lo= ac_hi=
12816                           break
12817                         fi
12818                         ac_mid=`expr 2 '*' $ac_mid`
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822   done
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827         ac_lo= ac_hi=
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 # Binary search between lo and hi bounds.
12835 while test "x$ac_lo" != "x$ac_hi"; do
12836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12837   cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 $ac_includes_default
12844    typedef short ac__type_sizeof_;
12845 int
12846 main ()
12847 {
12848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12849 test_array [0] = 0
12850
12851   ;
12852   return 0;
12853 }
12854 _ACEOF
12855 rm -f conftest.$ac_objext
12856 if { (ac_try="$ac_compile"
12857 case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_compile") 2>conftest.er1
12863   ac_status=$?
12864   grep -v '^ *+' conftest.er1 >conftest.err
12865   rm -f conftest.er1
12866   cat conftest.err >&5
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); } && {
12869          test -z "$ac_c_werror_flag" ||
12870          test ! -s conftest.err
12871        } && test -s conftest.$ac_objext; then
12872   ac_hi=$ac_mid
12873 else
12874   echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877         ac_lo=`expr '(' $ac_mid ')' + 1`
12878 fi
12879
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881 done
12882 case $ac_lo in
12883 ?*) ac_cv_sizeof_short=$ac_lo;;
12884 '') if test "$ac_cv_type_short" = yes; then
12885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12886 See \`config.log' for more details." >&5
12887 echo "$as_me: error: cannot compute sizeof (short)
12888 See \`config.log' for more details." >&2;}
12889    { (exit 77); exit 77; }; }
12890    else
12891      ac_cv_sizeof_short=0
12892    fi ;;
12893 esac
12894 else
12895   cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h.  */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h.  */
12901 $ac_includes_default
12902    typedef short ac__type_sizeof_;
12903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12905 #include <stdio.h>
12906 #include <stdlib.h>
12907 int
12908 main ()
12909 {
12910
12911   FILE *f = fopen ("conftest.val", "w");
12912   if (! f)
12913     return 1;
12914   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12915     {
12916       long int i = longval ();
12917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12918         return 1;
12919       fprintf (f, "%ld\n", i);
12920     }
12921   else
12922     {
12923       unsigned long int i = ulongval ();
12924       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12925         return 1;
12926       fprintf (f, "%lu\n", i);
12927     }
12928   return ferror (f) || fclose (f) != 0;
12929
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941   (eval "$ac_link") 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12945   { (case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_try") 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   ac_cv_sizeof_short=`cat conftest.val`
12955 else
12956   echo "$as_me: program exited with status $ac_status" >&5
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960 ( exit $ac_status )
12961 if test "$ac_cv_type_short" = yes; then
12962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12963 See \`config.log' for more details." >&5
12964 echo "$as_me: error: cannot compute sizeof (short)
12965 See \`config.log' for more details." >&2;}
12966    { (exit 77); exit 77; }; }
12967    else
12968      ac_cv_sizeof_short=0
12969    fi
12970 fi
12971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12972 fi
12973 rm -f conftest.val
12974 fi
12975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12977
12978
12979
12980 cat >>confdefs.h <<_ACEOF
12981 #define SIZEOF_SHORT $ac_cv_sizeof_short
12982 _ACEOF
12983
12984
12985 { echo "$as_me:$LINENO: checking for int" >&5
12986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12987 if test "${ac_cv_type_int+set}" = set; then
12988   echo $ECHO_N "(cached) $ECHO_C" >&6
12989 else
12990   cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996 $ac_includes_default
12997 typedef int ac__type_new_;
12998 int
12999 main ()
13000 {
13001 if ((ac__type_new_ *) 0)
13002   return 0;
13003 if (sizeof (ac__type_new_))
13004   return 0;
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest.$ac_objext
13010 if { (ac_try="$ac_compile"
13011 case "(($ac_try" in
13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013   *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016   (eval "$ac_compile") 2>conftest.er1
13017   ac_status=$?
13018   grep -v '^ *+' conftest.er1 >conftest.err
13019   rm -f conftest.er1
13020   cat conftest.err >&5
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } && {
13023          test -z "$ac_c_werror_flag" ||
13024          test ! -s conftest.err
13025        } && test -s conftest.$ac_objext; then
13026   ac_cv_type_int=yes
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031         ac_cv_type_int=no
13032 fi
13033
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 fi
13036 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13037 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13038
13039 # The cast to long int works around a bug in the HP C Compiler
13040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13042 # This bug is HP SR number 8606223364.
13043 { echo "$as_me:$LINENO: checking size of int" >&5
13044 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13045 if test "${ac_cv_sizeof_int+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   if test "$cross_compiling" = yes; then
13049   # Depending upon the size, compute the lo and hi bounds.
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056 $ac_includes_default
13057    typedef int ac__type_sizeof_;
13058 int
13059 main ()
13060 {
13061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13062 test_array [0] = 0
13063
13064   ;
13065   return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext
13069 if { (ac_try="$ac_compile"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_compile") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } && {
13082          test -z "$ac_c_werror_flag" ||
13083          test ! -s conftest.err
13084        } && test -s conftest.$ac_objext; then
13085   ac_lo=0 ac_mid=0
13086   while :; do
13087     cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093 $ac_includes_default
13094    typedef int ac__type_sizeof_;
13095 int
13096 main ()
13097 {
13098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13099 test_array [0] = 0
13100
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_compile") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } && {
13119          test -z "$ac_c_werror_flag" ||
13120          test ! -s conftest.err
13121        } && test -s conftest.$ac_objext; then
13122   ac_hi=$ac_mid; break
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127         ac_lo=`expr $ac_mid + 1`
13128                         if test $ac_lo -le $ac_mid; then
13129                           ac_lo= ac_hi=
13130                           break
13131                         fi
13132                         ac_mid=`expr 2 '*' $ac_mid + 1`
13133 fi
13134
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136   done
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141         cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 $ac_includes_default
13148    typedef int ac__type_sizeof_;
13149 int
13150 main ()
13151 {
13152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13153 test_array [0] = 0
13154
13155   ;
13156   return 0;
13157 }
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163   *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166   (eval "$ac_compile") 2>conftest.er1
13167   ac_status=$?
13168   grep -v '^ *+' conftest.er1 >conftest.err
13169   rm -f conftest.er1
13170   cat conftest.err >&5
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } && {
13173          test -z "$ac_c_werror_flag" ||
13174          test ! -s conftest.err
13175        } && test -s conftest.$ac_objext; then
13176   ac_hi=-1 ac_mid=-1
13177   while :; do
13178     cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 $ac_includes_default
13185    typedef int ac__type_sizeof_;
13186 int
13187 main ()
13188 {
13189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13190 test_array [0] = 0
13191
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (ac_try="$ac_compile"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_compile") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } && {
13210          test -z "$ac_c_werror_flag" ||
13211          test ! -s conftest.err
13212        } && test -s conftest.$ac_objext; then
13213   ac_lo=$ac_mid; break
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218         ac_hi=`expr '(' $ac_mid ')' - 1`
13219                         if test $ac_mid -le $ac_hi; then
13220                           ac_lo= ac_hi=
13221                           break
13222                         fi
13223                         ac_mid=`expr 2 '*' $ac_mid`
13224 fi
13225
13226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13227   done
13228 else
13229   echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232         ac_lo= ac_hi=
13233 fi
13234
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239 # Binary search between lo and hi bounds.
13240 while test "x$ac_lo" != "x$ac_hi"; do
13241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13242   cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 $ac_includes_default
13249    typedef int ac__type_sizeof_;
13250 int
13251 main ()
13252 {
13253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13254 test_array [0] = 0
13255
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (ac_try="$ac_compile"
13262 case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_compile") 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } && {
13274          test -z "$ac_c_werror_flag" ||
13275          test ! -s conftest.err
13276        } && test -s conftest.$ac_objext; then
13277   ac_hi=$ac_mid
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282         ac_lo=`expr '(' $ac_mid ')' + 1`
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 done
13287 case $ac_lo in
13288 ?*) ac_cv_sizeof_int=$ac_lo;;
13289 '') if test "$ac_cv_type_int" = yes; then
13290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13291 See \`config.log' for more details." >&5
13292 echo "$as_me: error: cannot compute sizeof (int)
13293 See \`config.log' for more details." >&2;}
13294    { (exit 77); exit 77; }; }
13295    else
13296      ac_cv_sizeof_int=0
13297    fi ;;
13298 esac
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306 $ac_includes_default
13307    typedef int ac__type_sizeof_;
13308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13310 #include <stdio.h>
13311 #include <stdlib.h>
13312 int
13313 main ()
13314 {
13315
13316   FILE *f = fopen ("conftest.val", "w");
13317   if (! f)
13318     return 1;
13319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13320     {
13321       long int i = longval ();
13322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13323         return 1;
13324       fprintf (f, "%ld\n", i);
13325     }
13326   else
13327     {
13328       unsigned long int i = ulongval ();
13329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13330         return 1;
13331       fprintf (f, "%lu\n", i);
13332     }
13333   return ferror (f) || fclose (f) != 0;
13334
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest$ac_exeext
13340 if { (ac_try="$ac_link"
13341 case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_link") 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; }; then
13359   ac_cv_sizeof_int=`cat conftest.val`
13360 else
13361   echo "$as_me: program exited with status $ac_status" >&5
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ( exit $ac_status )
13366 if test "$ac_cv_type_int" = yes; then
13367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13368 See \`config.log' for more details." >&5
13369 echo "$as_me: error: cannot compute sizeof (int)
13370 See \`config.log' for more details." >&2;}
13371    { (exit 77); exit 77; }; }
13372    else
13373      ac_cv_sizeof_int=0
13374    fi
13375 fi
13376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13377 fi
13378 rm -f conftest.val
13379 fi
13380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13382
13383
13384
13385 cat >>confdefs.h <<_ACEOF
13386 #define SIZEOF_INT $ac_cv_sizeof_int
13387 _ACEOF
13388
13389
13390 { echo "$as_me:$LINENO: checking for long" >&5
13391 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13392 if test "${ac_cv_type_long+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 $ac_includes_default
13402 typedef long ac__type_new_;
13403 int
13404 main ()
13405 {
13406 if ((ac__type_new_ *) 0)
13407   return 0;
13408 if (sizeof (ac__type_new_))
13409   return 0;
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (ac_try="$ac_compile"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_compile") 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } && {
13428          test -z "$ac_c_werror_flag" ||
13429          test ! -s conftest.err
13430        } && test -s conftest.$ac_objext; then
13431   ac_cv_type_long=yes
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436         ac_cv_type_long=no
13437 fi
13438
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440 fi
13441 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13442 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13443
13444 # The cast to long int works around a bug in the HP C Compiler
13445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447 # This bug is HP SR number 8606223364.
13448 { echo "$as_me:$LINENO: checking size of long" >&5
13449 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13450 if test "${ac_cv_sizeof_long+set}" = set; then
13451   echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453   if test "$cross_compiling" = yes; then
13454   # Depending upon the size, compute the lo and hi bounds.
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 $ac_includes_default
13462    typedef long ac__type_sizeof_;
13463 int
13464 main ()
13465 {
13466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13467 test_array [0] = 0
13468
13469   ;
13470   return 0;
13471 }
13472 _ACEOF
13473 rm -f conftest.$ac_objext
13474 if { (ac_try="$ac_compile"
13475 case "(($ac_try" in
13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477   *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480   (eval "$ac_compile") 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } && {
13487          test -z "$ac_c_werror_flag" ||
13488          test ! -s conftest.err
13489        } && test -s conftest.$ac_objext; then
13490   ac_lo=0 ac_mid=0
13491   while :; do
13492     cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 $ac_includes_default
13499    typedef long ac__type_sizeof_;
13500 int
13501 main ()
13502 {
13503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13504 test_array [0] = 0
13505
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514   *) ac_try_echo=$ac_try;;
13515 esac
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517   (eval "$ac_compile") 2>conftest.er1
13518   ac_status=$?
13519   grep -v '^ *+' conftest.er1 >conftest.err
13520   rm -f conftest.er1
13521   cat conftest.err >&5
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); } && {
13524          test -z "$ac_c_werror_flag" ||
13525          test ! -s conftest.err
13526        } && test -s conftest.$ac_objext; then
13527   ac_hi=$ac_mid; break
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532         ac_lo=`expr $ac_mid + 1`
13533                         if test $ac_lo -le $ac_mid; then
13534                           ac_lo= ac_hi=
13535                           break
13536                         fi
13537                         ac_mid=`expr 2 '*' $ac_mid + 1`
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541   done
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546         cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552 $ac_includes_default
13553    typedef long ac__type_sizeof_;
13554 int
13555 main ()
13556 {
13557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13558 test_array [0] = 0
13559
13560   ;
13561   return 0;
13562 }
13563 _ACEOF
13564 rm -f conftest.$ac_objext
13565 if { (ac_try="$ac_compile"
13566 case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571   (eval "$ac_compile") 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } && {
13578          test -z "$ac_c_werror_flag" ||
13579          test ! -s conftest.err
13580        } && test -s conftest.$ac_objext; then
13581   ac_hi=-1 ac_mid=-1
13582   while :; do
13583     cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589 $ac_includes_default
13590    typedef long ac__type_sizeof_;
13591 int
13592 main ()
13593 {
13594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13595 test_array [0] = 0
13596
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (ac_try="$ac_compile"
13603 case "(($ac_try" in
13604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605   *) ac_try_echo=$ac_try;;
13606 esac
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608   (eval "$ac_compile") 2>conftest.er1
13609   ac_status=$?
13610   grep -v '^ *+' conftest.er1 >conftest.err
13611   rm -f conftest.er1
13612   cat conftest.err >&5
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); } && {
13615          test -z "$ac_c_werror_flag" ||
13616          test ! -s conftest.err
13617        } && test -s conftest.$ac_objext; then
13618   ac_lo=$ac_mid; break
13619 else
13620   echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13622
13623         ac_hi=`expr '(' $ac_mid ')' - 1`
13624                         if test $ac_mid -le $ac_hi; then
13625                           ac_lo= ac_hi=
13626                           break
13627                         fi
13628                         ac_mid=`expr 2 '*' $ac_mid`
13629 fi
13630
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632   done
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637         ac_lo= ac_hi=
13638 fi
13639
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 fi
13642
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 # Binary search between lo and hi bounds.
13645 while test "x$ac_lo" != "x$ac_hi"; do
13646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13647   cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 $ac_includes_default
13654    typedef long ac__type_sizeof_;
13655 int
13656 main ()
13657 {
13658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13659 test_array [0] = 0
13660
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (ac_try="$ac_compile"
13667 case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_compile") 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } && {
13679          test -z "$ac_c_werror_flag" ||
13680          test ! -s conftest.err
13681        } && test -s conftest.$ac_objext; then
13682   ac_hi=$ac_mid
13683 else
13684   echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687         ac_lo=`expr '(' $ac_mid ')' + 1`
13688 fi
13689
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 done
13692 case $ac_lo in
13693 ?*) ac_cv_sizeof_long=$ac_lo;;
13694 '') if test "$ac_cv_type_long" = yes; then
13695      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13696 See \`config.log' for more details." >&5
13697 echo "$as_me: error: cannot compute sizeof (long)
13698 See \`config.log' for more details." >&2;}
13699    { (exit 77); exit 77; }; }
13700    else
13701      ac_cv_sizeof_long=0
13702    fi ;;
13703 esac
13704 else
13705   cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 $ac_includes_default
13712    typedef long ac__type_sizeof_;
13713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13715 #include <stdio.h>
13716 #include <stdlib.h>
13717 int
13718 main ()
13719 {
13720
13721   FILE *f = fopen ("conftest.val", "w");
13722   if (! f)
13723     return 1;
13724   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13725     {
13726       long int i = longval ();
13727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13728         return 1;
13729       fprintf (f, "%ld\n", i);
13730     }
13731   else
13732     {
13733       unsigned long int i = ulongval ();
13734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13735         return 1;
13736       fprintf (f, "%lu\n", i);
13737     }
13738   return ferror (f) || fclose (f) != 0;
13739
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest$ac_exeext
13745 if { (ac_try="$ac_link"
13746 case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_link") 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_try") 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_cv_sizeof_long=`cat conftest.val`
13765 else
13766   echo "$as_me: program exited with status $ac_status" >&5
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770 ( exit $ac_status )
13771 if test "$ac_cv_type_long" = yes; then
13772      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13773 See \`config.log' for more details." >&5
13774 echo "$as_me: error: cannot compute sizeof (long)
13775 See \`config.log' for more details." >&2;}
13776    { (exit 77); exit 77; }; }
13777    else
13778      ac_cv_sizeof_long=0
13779    fi
13780 fi
13781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13782 fi
13783 rm -f conftest.val
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13786 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13787
13788
13789
13790 cat >>confdefs.h <<_ACEOF
13791 #define SIZEOF_LONG $ac_cv_sizeof_long
13792 _ACEOF
13793
13794
13795 { echo "$as_me:$LINENO: checking for long long" >&5
13796 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13797 if test "${ac_cv_type_long_long+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 typedef long long ac__type_new_;
13808 int
13809 main ()
13810 {
13811 if ((ac__type_new_ *) 0)
13812   return 0;
13813 if (sizeof (ac__type_new_))
13814   return 0;
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext
13820 if { (ac_try="$ac_compile"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_compile") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } && {
13833          test -z "$ac_c_werror_flag" ||
13834          test ! -s conftest.err
13835        } && test -s conftest.$ac_objext; then
13836   ac_cv_type_long_long=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841         ac_cv_type_long_long=no
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13847 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13848
13849 # The cast to long int works around a bug in the HP C Compiler
13850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13852 # This bug is HP SR number 8606223364.
13853 { echo "$as_me:$LINENO: checking size of long long" >&5
13854 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13855 if test "${ac_cv_sizeof_long_long+set}" = set; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   if test "$cross_compiling" = yes; then
13859   # Depending upon the size, compute the lo and hi bounds.
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 $ac_includes_default
13867    typedef long long ac__type_sizeof_;
13868 int
13869 main ()
13870 {
13871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13872 test_array [0] = 0
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_compile") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } && {
13892          test -z "$ac_c_werror_flag" ||
13893          test ! -s conftest.err
13894        } && test -s conftest.$ac_objext; then
13895   ac_lo=0 ac_mid=0
13896   while :; do
13897     cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903 $ac_includes_default
13904    typedef long long ac__type_sizeof_;
13905 int
13906 main ()
13907 {
13908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13909 test_array [0] = 0
13910
13911   ;
13912   return 0;
13913 }
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919   *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922   (eval "$ac_compile") 2>conftest.er1
13923   ac_status=$?
13924   grep -v '^ *+' conftest.er1 >conftest.err
13925   rm -f conftest.er1
13926   cat conftest.err >&5
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } && {
13929          test -z "$ac_c_werror_flag" ||
13930          test ! -s conftest.err
13931        } && test -s conftest.$ac_objext; then
13932   ac_hi=$ac_mid; break
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937         ac_lo=`expr $ac_mid + 1`
13938                         if test $ac_lo -le $ac_mid; then
13939                           ac_lo= ac_hi=
13940                           break
13941                         fi
13942                         ac_mid=`expr 2 '*' $ac_mid + 1`
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946   done
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951         cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 $ac_includes_default
13958    typedef long long ac__type_sizeof_;
13959 int
13960 main ()
13961 {
13962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13963 test_array [0] = 0
13964
13965   ;
13966   return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (ac_try="$ac_compile"
13971 case "(($ac_try" in
13972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973   *) ac_try_echo=$ac_try;;
13974 esac
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976   (eval "$ac_compile") 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } && {
13983          test -z "$ac_c_werror_flag" ||
13984          test ! -s conftest.err
13985        } && test -s conftest.$ac_objext; then
13986   ac_hi=-1 ac_mid=-1
13987   while :; do
13988     cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 $ac_includes_default
13995    typedef long long ac__type_sizeof_;
13996 int
13997 main ()
13998 {
13999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14000 test_array [0] = 0
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_compile") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } && {
14020          test -z "$ac_c_werror_flag" ||
14021          test ! -s conftest.err
14022        } && test -s conftest.$ac_objext; then
14023   ac_lo=$ac_mid; break
14024 else
14025   echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028         ac_hi=`expr '(' $ac_mid ')' - 1`
14029                         if test $ac_mid -le $ac_hi; then
14030                           ac_lo= ac_hi=
14031                           break
14032                         fi
14033                         ac_mid=`expr 2 '*' $ac_mid`
14034 fi
14035
14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037   done
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042         ac_lo= ac_hi=
14043 fi
14044
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 # Binary search between lo and hi bounds.
14050 while test "x$ac_lo" != "x$ac_hi"; do
14051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14052   cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 $ac_includes_default
14059    typedef long long ac__type_sizeof_;
14060 int
14061 main ()
14062 {
14063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14064 test_array [0] = 0
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (ac_try="$ac_compile"
14072 case "(($ac_try" in
14073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074   *) ac_try_echo=$ac_try;;
14075 esac
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077   (eval "$ac_compile") 2>conftest.er1
14078   ac_status=$?
14079   grep -v '^ *+' conftest.er1 >conftest.err
14080   rm -f conftest.er1
14081   cat conftest.err >&5
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } && {
14084          test -z "$ac_c_werror_flag" ||
14085          test ! -s conftest.err
14086        } && test -s conftest.$ac_objext; then
14087   ac_hi=$ac_mid
14088 else
14089   echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092         ac_lo=`expr '(' $ac_mid ')' + 1`
14093 fi
14094
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 done
14097 case $ac_lo in
14098 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14099 '') if test "$ac_cv_type_long_long" = yes; then
14100      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14101 See \`config.log' for more details." >&5
14102 echo "$as_me: error: cannot compute sizeof (long long)
14103 See \`config.log' for more details." >&2;}
14104    { (exit 77); exit 77; }; }
14105    else
14106      ac_cv_sizeof_long_long=0
14107    fi ;;
14108 esac
14109 else
14110   cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116 $ac_includes_default
14117    typedef long long ac__type_sizeof_;
14118 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14119 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14120 #include <stdio.h>
14121 #include <stdlib.h>
14122 int
14123 main ()
14124 {
14125
14126   FILE *f = fopen ("conftest.val", "w");
14127   if (! f)
14128     return 1;
14129   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14130     {
14131       long int i = longval ();
14132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14133         return 1;
14134       fprintf (f, "%ld\n", i);
14135     }
14136   else
14137     {
14138       unsigned long int i = ulongval ();
14139       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14140         return 1;
14141       fprintf (f, "%lu\n", i);
14142     }
14143   return ferror (f) || fclose (f) != 0;
14144
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest$ac_exeext
14150 if { (ac_try="$ac_link"
14151 case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156   (eval "$ac_link") 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14160   { (case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165   (eval "$ac_try") 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   ac_cv_sizeof_long_long=`cat conftest.val`
14170 else
14171   echo "$as_me: program exited with status $ac_status" >&5
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ( exit $ac_status )
14176 if test "$ac_cv_type_long_long" = yes; then
14177      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14178 See \`config.log' for more details." >&5
14179 echo "$as_me: error: cannot compute sizeof (long long)
14180 See \`config.log' for more details." >&2;}
14181    { (exit 77); exit 77; }; }
14182    else
14183      ac_cv_sizeof_long_long=0
14184    fi
14185 fi
14186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14187 fi
14188 rm -f conftest.val
14189 fi
14190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14191 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14192
14193
14194
14195 cat >>confdefs.h <<_ACEOF
14196 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14197 _ACEOF
14198
14199
14200 SIZEOF_SHORT=$ac_cv_sizeof_short
14201 SIZEOF_INT=$ac_cv_sizeof_int
14202 SIZEOF_LONG=$ac_cv_sizeof_long
14203 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14204
14205
14206
14207
14208 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14209 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14210 if test "${ac_cv_c_bigendian+set}" = set; then
14211   echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213   # See if sys/param.h defines the BYTE_ORDER macro.
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220 #include <sys/types.h>
14221 #include <sys/param.h>
14222
14223 int
14224 main ()
14225 {
14226 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14227         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14228  bogus endian macros
14229 #endif
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_compile") 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } && {
14249          test -z "$ac_c_werror_flag" ||
14250          test ! -s conftest.err
14251        } && test -s conftest.$ac_objext; then
14252   # It does; now see whether it defined to BIG_ENDIAN or not.
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259 #include <sys/types.h>
14260 #include <sys/param.h>
14261
14262 int
14263 main ()
14264 {
14265 #if BYTE_ORDER != BIG_ENDIAN
14266  not big endian
14267 #endif
14268
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277   *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280   (eval "$ac_compile") 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } && {
14287          test -z "$ac_c_werror_flag" ||
14288          test ! -s conftest.err
14289        } && test -s conftest.$ac_objext; then
14290   ac_cv_c_bigendian=yes
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295         ac_cv_c_bigendian=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303         # It does not; compile a test program.
14304 if test "$cross_compiling" = yes; then
14305   # try to guess the endianness by grepping values into an object file
14306   ac_cv_c_bigendian=unknown
14307   cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14314 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14315 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14316 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14317 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14318 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14319 int
14320 main ()
14321 {
14322  _ascii (); _ebcdic ();
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (ac_try="$ac_compile"
14329 case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_compile") 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } && {
14341          test -z "$ac_c_werror_flag" ||
14342          test ! -s conftest.err
14343        } && test -s conftest.$ac_objext; then
14344   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14345   ac_cv_c_bigendian=yes
14346 fi
14347 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14348   if test "$ac_cv_c_bigendian" = unknown; then
14349     ac_cv_c_bigendian=no
14350   else
14351     # finding both strings is unlikely to happen, but who knows?
14352     ac_cv_c_bigendian=unknown
14353   fi
14354 fi
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359
14360 fi
14361
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 else
14364   cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370 $ac_includes_default
14371 int
14372 main ()
14373 {
14374
14375   /* Are we little or big endian?  From Harbison&Steele.  */
14376   union
14377   {
14378     long int l;
14379     char c[sizeof (long int)];
14380   } u;
14381   u.l = 1;
14382   return u.c[sizeof (long int) - 1] == 1;
14383
14384   ;
14385   return 0;
14386 }
14387 _ACEOF
14388 rm -f conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_link") 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_try") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_cv_c_bigendian=no
14409 else
14410   echo "$as_me: program exited with status $ac_status" >&5
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 ( exit $ac_status )
14415 ac_cv_c_bigendian=yes
14416 fi
14417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14418 fi
14419
14420
14421 fi
14422
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 fi
14425 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14426 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14427 case $ac_cv_c_bigendian in
14428   yes)
14429
14430 cat >>confdefs.h <<\_ACEOF
14431 #define WORDS_BIGENDIAN 1
14432 _ACEOF
14433  ;;
14434   no)
14435      ;;
14436   *)
14437     { { echo "$as_me:$LINENO: error: unknown endianness
14438 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14439 echo "$as_me: error: unknown endianness
14440 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14441    { (exit 1); exit 1; }; } ;;
14442 esac
14443
14444 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14445 ASM_TYPES_HEADER=./asm_types.h
14446
14447 echo "/* These defines are needed for the public ext2fs.h header file */" \
14448      > public_config.h
14449 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14450   uniq tmp_config.$$ >> public_config.h
14451 else
14452   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14453 fi
14454 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14455   uniq tmp_config.$$ >> public_config.h
14456 else
14457   echo "#undef WORDS_BIGENDIAN" >> public_config.h
14458 fi
14459 rm -f tmp_config.$$
14460 PUBLIC_CONFIG_HEADER=./public_config.h
14461
14462
14463 for ac_header in inttypes.h
14464 do
14465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 fi
14472 ac_res=`eval echo '${'$as_ac_Header'}'`
14473                { echo "$as_me:$LINENO: result: $ac_res" >&5
14474 echo "${ECHO_T}$ac_res" >&6; }
14475 else
14476   # Is the header compilable?
14477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 $ac_includes_default
14486 #include <$ac_header>
14487 _ACEOF
14488 rm -f conftest.$ac_objext
14489 if { (ac_try="$ac_compile"
14490 case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_compile") 2>conftest.er1
14496   ac_status=$?
14497   grep -v '^ *+' conftest.er1 >conftest.err
14498   rm -f conftest.er1
14499   cat conftest.err >&5
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } && {
14502          test -z "$ac_c_werror_flag" ||
14503          test ! -s conftest.err
14504        } && test -s conftest.$ac_objext; then
14505   ac_header_compiler=yes
14506 else
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510         ac_header_compiler=no
14511 fi
14512
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14515 echo "${ECHO_T}$ac_header_compiler" >&6; }
14516
14517 # Is the header present?
14518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526 #include <$ac_header>
14527 _ACEOF
14528 if { (ac_try="$ac_cpp conftest.$ac_ext"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } >/dev/null && {
14541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14542          test ! -s conftest.err
14543        }; then
14544   ac_header_preproc=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549   ac_header_preproc=no
14550 fi
14551
14552 rm -f conftest.err conftest.$ac_ext
14553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14554 echo "${ECHO_T}$ac_header_preproc" >&6; }
14555
14556 # So?  What about this header?
14557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14558   yes:no: )
14559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14563     ac_header_preproc=yes
14564     ;;
14565   no:yes:* )
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14578
14579     ;;
14580 esac
14581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14584   echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586   eval "$as_ac_Header=\$ac_header_preproc"
14587 fi
14588 ac_res=`eval echo '${'$as_ac_Header'}'`
14589                { echo "$as_me:$LINENO: result: $ac_res" >&5
14590 echo "${ECHO_T}$ac_res" >&6; }
14591
14592 fi
14593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14594   cat >>confdefs.h <<_ACEOF
14595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14596 _ACEOF
14597
14598 fi
14599
14600 done
14601
14602 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14603 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14604 if test "${ac_cv_type_intptr_t+set}" = set; then
14605   echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607   cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 $ac_includes_default
14614 typedef intptr_t ac__type_new_;
14615 int
14616 main ()
14617 {
14618 if ((ac__type_new_ *) 0)
14619   return 0;
14620 if (sizeof (ac__type_new_))
14621   return 0;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_compile") 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } && {
14640          test -z "$ac_c_werror_flag" ||
14641          test ! -s conftest.err
14642        } && test -s conftest.$ac_objext; then
14643   ac_cv_type_intptr_t=yes
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648         ac_cv_type_intptr_t=no
14649 fi
14650
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14654 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14655 if test $ac_cv_type_intptr_t = yes; then
14656
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_INTPTR_T 1
14659 _ACEOF
14660
14661
14662 fi
14663
14664 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14665 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14666 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14667   echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669   cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675 #include <sys/stat.h>
14676 int
14677 main ()
14678 {
14679 struct stat stat; stat.st_flags = 0;
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (ac_try="$ac_compile"
14686 case "(($ac_try" in
14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688   *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691   (eval "$ac_compile") 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } && {
14698          test -z "$ac_c_werror_flag" ||
14699          test ! -s conftest.err
14700        } && test -s conftest.$ac_objext; then
14701   e2fsprogs_cv_struct_st_flags=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706         e2fsprogs_cv_struct_st_flags=no
14707 fi
14708
14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710 fi
14711
14712 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14713 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14714 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14715   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14716 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14717   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726 #include <sys/stat.h>
14727 int
14728 main ()
14729 {
14730 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (ac_try="$ac_compile"
14737 case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_compile") 2>conftest.er1
14743   ac_status=$?
14744   grep -v '^ *+' conftest.er1 >conftest.err
14745   rm -f conftest.er1
14746   cat conftest.err >&5
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } && {
14749          test -z "$ac_c_werror_flag" ||
14750          test ! -s conftest.err
14751        } && test -s conftest.$ac_objext; then
14752   e2fsprogs_cv_struct_st_flags_immut=yes
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757         e2fsprogs_cv_struct_st_flags_immut=no
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 fi
14762
14763   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14764 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14765   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14766           cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_STAT_FLAGS 1
14768 _ACEOF
14769
14770   fi
14771 fi
14772 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14773 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14774 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 #include <sys/types.h>
14784          #include <sys/socket.h>
14785
14786 int
14787 main ()
14788 {
14789 static struct sockaddr ac_aggr;
14790 if (ac_aggr.sa_len)
14791 return 0;
14792   ;
14793   return 0;
14794 }
14795 _ACEOF
14796 rm -f conftest.$ac_objext
14797 if { (ac_try="$ac_compile"
14798 case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_compile") 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } && {
14810          test -z "$ac_c_werror_flag" ||
14811          test ! -s conftest.err
14812        } && test -s conftest.$ac_objext; then
14813   ac_cv_member_struct_sockaddr_sa_len=yes
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818         cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 #include <sys/types.h>
14825          #include <sys/socket.h>
14826
14827 int
14828 main ()
14829 {
14830 static struct sockaddr ac_aggr;
14831 if (sizeof ac_aggr.sa_len)
14832 return 0;
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_compile") 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } && {
14851          test -z "$ac_c_werror_flag" ||
14852          test ! -s conftest.err
14853        } && test -s conftest.$ac_objext; then
14854   ac_cv_member_struct_sockaddr_sa_len=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         ac_cv_member_struct_sockaddr_sa_len=no
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 fi
14867 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14868 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14869 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14870
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_SA_LEN 1
14873 _ACEOF
14874
14875 fi
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906 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
14907 do
14908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h.  */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h.  */
14920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14922 #define $ac_func innocuous_$ac_func
14923
14924 /* System header to define __stub macros and hopefully few prototypes,
14925     which can conflict with char $ac_func (); below.
14926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927     <limits.h> exists even on freestanding compilers.  */
14928
14929 #ifdef __STDC__
14930 # include <limits.h>
14931 #else
14932 # include <assert.h>
14933 #endif
14934
14935 #undef $ac_func
14936
14937 /* Override any GCC internal prototype to avoid an error.
14938    Use char because int might match the return type of a GCC
14939    builtin and then its argument prototype would still apply.  */
14940 #ifdef __cplusplus
14941 extern "C"
14942 #endif
14943 char $ac_func ();
14944 /* The GNU C library defines this for functions which it implements
14945     to always fail with ENOSYS.  Some functions are actually named
14946     something starting with __ and the normal name is an alias.  */
14947 #if defined __stub_$ac_func || defined __stub___$ac_func
14948 choke me
14949 #endif
14950
14951 int
14952 main ()
14953 {
14954 return $ac_func ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (ac_try="$ac_link"
14961 case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_link") 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } && {
14973          test -z "$ac_c_werror_flag" ||
14974          test ! -s conftest.err
14975        } && test -s conftest$ac_exeext &&
14976        $as_test_x conftest$ac_exeext; then
14977   eval "$as_ac_var=yes"
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982         eval "$as_ac_var=no"
14983 fi
14984
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986       conftest$ac_exeext conftest.$ac_ext
14987 fi
14988 ac_res=`eval echo '${'$as_ac_var'}'`
14989                { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991 if test `eval echo '${'$as_ac_var'}'` = yes; then
14992   cat >>confdefs.h <<_ACEOF
14993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14994 _ACEOF
14995
14996 fi
14997 done
14998
14999 SOCKET_LIB=''
15000 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15001 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15002 if test "${ac_cv_lib_socket_socket+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lsocket  $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013
15014 /* Override any GCC internal prototype to avoid an error.
15015    Use char because int might match the return type of a GCC
15016    builtin and then its argument prototype would still apply.  */
15017 #ifdef __cplusplus
15018 extern "C"
15019 #endif
15020 char socket ();
15021 int
15022 main ()
15023 {
15024 return socket ();
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (ac_try="$ac_link"
15031 case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_link") 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } && {
15043          test -z "$ac_c_werror_flag" ||
15044          test ! -s conftest.err
15045        } && test -s conftest$ac_exeext &&
15046        $as_test_x conftest$ac_exeext; then
15047   ac_cv_lib_socket_socket=yes
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_cv_lib_socket_socket=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15056       conftest$ac_exeext conftest.$ac_ext
15057 LIBS=$ac_check_lib_save_LIBS
15058 fi
15059 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15060 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15061 if test $ac_cv_lib_socket_socket = yes; then
15062   SOCKET_LIB=-lsocket
15063 fi
15064
15065
15066 DLOPEN_LIB=''
15067 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-ldl  $LIBS"
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080
15081 /* Override any GCC internal prototype to avoid an error.
15082    Use char because int might match the return type of a GCC
15083    builtin and then its argument prototype would still apply.  */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 char dlopen ();
15088 int
15089 main ()
15090 {
15091 return dlopen ();
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (ac_try="$ac_link"
15098 case "(($ac_try" in
15099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100   *) ac_try_echo=$ac_try;;
15101 esac
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103   (eval "$ac_link") 2>conftest.er1
15104   ac_status=$?
15105   grep -v '^ *+' conftest.er1 >conftest.err
15106   rm -f conftest.er1
15107   cat conftest.err >&5
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); } && {
15110          test -z "$ac_c_werror_flag" ||
15111          test ! -s conftest.err
15112        } && test -s conftest$ac_exeext &&
15113        $as_test_x conftest$ac_exeext; then
15114   ac_cv_lib_dl_dlopen=yes
15115 else
15116   echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119         ac_cv_lib_dl_dlopen=no
15120 fi
15121
15122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15123       conftest$ac_exeext conftest.$ac_ext
15124 LIBS=$ac_check_lib_save_LIBS
15125 fi
15126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15128 if test $ac_cv_lib_dl_dlopen = yes; then
15129   DLOPEN_LIB=-ldl
15130 cat >>confdefs.h <<\_ACEOF
15131 #define HAVE_DLOPEN 1
15132 _ACEOF
15133
15134 fi
15135
15136
15137 { echo "$as_me:$LINENO: checking for optreset" >&5
15138 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15139 if test "${ac_cv_have_optreset+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142   cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148 #include <unistd.h>
15149
15150 _ACEOF
15151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15152   $EGREP "optreset" >/dev/null 2>&1; then
15153   ac_cv_have_optreset=yes
15154 else
15155   ac_cv_have_optreset=no
15156 fi
15157 rm -f conftest*
15158
15159 fi
15160 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15161 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15162 if test $ac_cv_have_optreset = yes; then
15163   cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_OPTRESET 1
15165 _ACEOF
15166
15167 fi
15168 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15169 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15170 if diff -u $0 $0 > /dev/null 2>&1 ; then
15171    UNI_DIFF_OPTS=-u
15172 else
15173    UNI_DIFF_OPTS=-c
15174 fi
15175 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15176 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15177
15178 case "$host_os" in
15179 linux*)
15180         cat >>confdefs.h <<\_ACEOF
15181 #define HAVE_EXT2_IOCTLS 1
15182 _ACEOF
15183
15184         ;;
15185 esac
15186 LINUX_CMT="#"
15187 CYGWIN_CMT="#"
15188 UNIX_CMT=
15189 case "$host_os" in
15190 linux*)
15191         LINUX_CMT=
15192         ;;
15193 cygwin)
15194         CYGWIN_CMT=
15195         UNIX_CMT="#"
15196         ;;
15197 esac
15198
15199
15200
15201 case "$host_os" in
15202 linux* | gnu* | k*bsd*-gnu)
15203         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15204                 root_prefix="";
15205                 echo "On $host_os systems, root_prefix defaults to ''"
15206         fi
15207         ;;
15208 esac
15209 case "$host_os" in
15210 linux* | gnu* | k*bsd*-gnu)
15211         if test "$prefix" = NONE ; then
15212                 prefix="/usr";
15213                 echo "On $host_os systems, prefix defaults to /usr"
15214                 if test "$mandir" = '${prefix}/man' ; then
15215                         echo "...and mandir defaults to /usr/share/man"
15216                         mandir=/usr/share/man
15217                 fi
15218         fi
15219 ;;
15220 esac
15221 if test "$root_prefix" = NONE ; then
15222         if test "$prefix" = NONE ; then
15223                 root_prefix="$ac_default_prefix"
15224         else
15225                 root_prefix="$prefix"
15226         fi
15227         root_bindir=$bindir
15228         root_sbindir=$sbindir
15229         root_libdir=$libdir
15230         root_sysconfdir=$sysconfdir
15231 else
15232         root_bindir='${root_prefix}/bin'
15233         root_sbindir='${root_prefix}/sbin'
15234         root_libdir='${root_prefix}/lib'
15235         root_sysconfdir='${root_prefix}/etc'
15236 fi
15237 if test "$bindir" != '${exec_prefix}/bin'; then
15238     root_bindir=$bindir
15239     echo "Setting root_bindir to $root_bindir"
15240 fi
15241 if test "$sbindir" != '${exec_prefix}/sbin'; then
15242     root_sbindir=$sbindir
15243     echo "Setting root_sbindir to $root_sbindir"
15244 fi
15245 if test "$libdir" != '${exec_prefix}/lib'; then
15246     root_libdir=$libdir
15247     echo "Setting root_libdir to $root_libdir"
15248 fi
15249 if test "$sysconfdir" != '${prefix}/etc'; then
15250     root_sysconfdir=$sysconfdir
15251     echo "Setting root_sysconfdir to $root_sysconfdir"
15252 fi
15253
15254
15255
15256
15257
15258 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15259 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15260 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15261   echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 #include <stdio.h>
15271 int
15272 main ()
15273 {
15274 fflush(stdout);
15275   ;
15276   return 0;
15277 }
15278 _ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_link") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } && {
15293          test -z "$ac_c_werror_flag" ||
15294          test ! -s conftest.err
15295        } && test -s conftest$ac_exeext &&
15296        $as_test_x conftest$ac_exeext; then
15297   ac_cv_e2fsprogs_use_static=yes
15298 else
15299   echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302         ac_cv_e2fsprogs_use_static=no
15303 fi
15304
15305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15306       conftest$ac_exeext conftest.$ac_ext
15307 LDFLAGS=$SAVE_LDFLAGS
15308 fi
15309
15310 case "$host_os" in
15311 solaris2.*)
15312         ac_cv_e2fsprogs_use_static=no
15313 ;;
15314 esac
15315 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15316 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15317 LDFLAG_STATIC=
15318 if test $ac_cv_e2fsprogs_use_static = yes; then
15319         LDFLAG_STATIC=-static
15320 fi
15321
15322 case "$host_os" in
15323 darwin*)
15324         echo "Using Apple Darwin / GNU libintl workaround"
15325         cat >>confdefs.h <<\_ACEOF
15326 #define _INTL_REDIRECT_MACROS 1
15327 _ACEOF
15328
15329         ;;
15330 esac
15331 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15332 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15333
15334
15335 if test "$cross_compiling" = yes ; then
15336   DO_TEST_SUITE=
15337 else
15338   DO_TEST_SUITE=check
15339 fi
15340
15341 INTL_FLAGS=
15342 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15343         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15344 fi
15345
15346 if test $cross_compiling = no; then
15347    BUILD_CFLAGS="$CFLAGS"
15348    BUILD_LDFLAGS="$LDFLAGS"
15349 else
15350    BUILD_CFLAGS=
15351    BUILD_LDFLAGS=
15352 fi
15353
15354
15355 test -d lib || mkdir lib
15356 test -d include || mkdir include
15357 test -d include/linux || mkdir include/linux
15358 test -d include/asm || mkdir include/asm
15359 for i in MCONFIG Makefile e2fsprogs.spec \
15360         util/Makefile util/subst.conf util/gen-tarball \
15361         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15362         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15363         lib/uuid/Makefile lib/uuid/uuid_types.h \
15364         lib/blkid/Makefile lib/blkid/blkid_types.h \
15365         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15366         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15367         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15368         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15369         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15370         if test -d `dirname ${srcdir}/$i` ; then
15371                 outlist="$outlist $i"
15372         fi
15373 done
15374 ac_config_files="$ac_config_files $outlist"
15375
15376 cat >confcache <<\_ACEOF
15377 # This file is a shell script that caches the results of configure
15378 # tests run on this system so they can be shared between configure
15379 # scripts and configure runs, see configure's option --config-cache.
15380 # It is not useful on other systems.  If it contains results you don't
15381 # want to keep, you may remove or edit it.
15382 #
15383 # config.status only pays attention to the cache file if you give it
15384 # the --recheck option to rerun configure.
15385 #
15386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15388 # following values.
15389
15390 _ACEOF
15391
15392 # The following way of writing the cache mishandles newlines in values,
15393 # but we know of no workaround that is simple, portable, and efficient.
15394 # So, we kill variables containing newlines.
15395 # Ultrix sh set writes to stderr and can't be redirected directly,
15396 # and sets the high bit in the cache file unless we assign to the vars.
15397 (
15398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15399     eval ac_val=\$$ac_var
15400     case $ac_val in #(
15401     *${as_nl}*)
15402       case $ac_var in #(
15403       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15405       esac
15406       case $ac_var in #(
15407       _ | IFS | as_nl) ;; #(
15408       *) $as_unset $ac_var ;;
15409       esac ;;
15410     esac
15411   done
15412
15413   (set) 2>&1 |
15414     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15415     *${as_nl}ac_space=\ *)
15416       # `set' does not quote correctly, so add quotes (double-quote
15417       # substitution turns \\\\ into \\, and sed turns \\ into \).
15418       sed -n \
15419         "s/'/'\\\\''/g;
15420           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15421       ;; #(
15422     *)
15423       # `set' quotes correctly as required by POSIX, so do not add quotes.
15424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15425       ;;
15426     esac |
15427     sort
15428 ) |
15429   sed '
15430      /^ac_cv_env_/b end
15431      t clear
15432      :clear
15433      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15434      t end
15435      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15436      :end' >>confcache
15437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15438   if test -w "$cache_file"; then
15439     test "x$cache_file" != "x/dev/null" &&
15440       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15441 echo "$as_me: updating cache $cache_file" >&6;}
15442     cat confcache >$cache_file
15443   else
15444     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15446   fi
15447 fi
15448 rm -f confcache
15449
15450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15451 # Let make expand exec_prefix.
15452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15453
15454 # Transform confdefs.h into DEFS.
15455 # Protect against shell expansion while executing Makefile rules.
15456 # Protect against Makefile macro expansion.
15457 #
15458 # If the first sed substitution is executed (which looks for macros that
15459 # take arguments), then branch to the quote section.  Otherwise,
15460 # look for a macro that doesn't take arguments.
15461 ac_script='
15462 t clear
15463 :clear
15464 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15465 t quote
15466 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15467 t quote
15468 b any
15469 :quote
15470 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15471 s/\[/\\&/g
15472 s/\]/\\&/g
15473 s/\$/$$/g
15474 H
15475 :any
15476 ${
15477         g
15478         s/^\n//
15479         s/\n/ /g
15480         p
15481 }
15482 '
15483 DEFS=`sed -n "$ac_script" confdefs.h`
15484
15485
15486 ac_libobjs=
15487 ac_ltlibobjs=
15488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15489   # 1. Remove the extension, and $U if already installed.
15490   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15491   ac_i=`echo "$ac_i" | sed "$ac_script"`
15492   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15493   #    will be set to the directory where LIBOBJS objects are built.
15494   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15495   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15496 done
15497 LIBOBJS=$ac_libobjs
15498
15499 LTLIBOBJS=$ac_ltlibobjs
15500
15501
15502
15503 : ${CONFIG_STATUS=./config.status}
15504 ac_clean_files_save=$ac_clean_files
15505 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15506 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15507 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15508 cat >$CONFIG_STATUS <<_ACEOF
15509 #! $SHELL
15510 # Generated by $as_me.
15511 # Run this file to recreate the current configuration.
15512 # Compiler output produced by configure, useful for debugging
15513 # configure, is in config.log if it exists.
15514
15515 debug=false
15516 ac_cs_recheck=false
15517 ac_cs_silent=false
15518 SHELL=\${CONFIG_SHELL-$SHELL}
15519 _ACEOF
15520
15521 cat >>$CONFIG_STATUS <<\_ACEOF
15522 ## --------------------- ##
15523 ## M4sh Initialization.  ##
15524 ## --------------------- ##
15525
15526 # Be more Bourne compatible
15527 DUALCASE=1; export DUALCASE # for MKS sh
15528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15529   emulate sh
15530   NULLCMD=:
15531   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15532   # is contrary to our usage.  Disable this feature.
15533   alias -g '${1+"$@"}'='"$@"'
15534   setopt NO_GLOB_SUBST
15535 else
15536   case `(set -o) 2>/dev/null` in
15537   *posix*) set -o posix ;;
15538 esac
15539
15540 fi
15541
15542
15543
15544
15545 # PATH needs CR
15546 # Avoid depending upon Character Ranges.
15547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15550 as_cr_digits='0123456789'
15551 as_cr_alnum=$as_cr_Letters$as_cr_digits
15552
15553 # The user is always right.
15554 if test "${PATH_SEPARATOR+set}" != set; then
15555   echo "#! /bin/sh" >conf$$.sh
15556   echo  "exit 0"   >>conf$$.sh
15557   chmod +x conf$$.sh
15558   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15559     PATH_SEPARATOR=';'
15560   else
15561     PATH_SEPARATOR=:
15562   fi
15563   rm -f conf$$.sh
15564 fi
15565
15566 # Support unset when possible.
15567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15568   as_unset=unset
15569 else
15570   as_unset=false
15571 fi
15572
15573
15574 # IFS
15575 # We need space, tab and new line, in precisely that order.  Quoting is
15576 # there to prevent editors from complaining about space-tab.
15577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15578 # splitting by setting IFS to empty value.)
15579 as_nl='
15580 '
15581 IFS=" ""        $as_nl"
15582
15583 # Find who we are.  Look in the path if we contain no directory separator.
15584 case $0 in
15585   *[\\/]* ) as_myself=$0 ;;
15586   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15588 do
15589   IFS=$as_save_IFS
15590   test -z "$as_dir" && as_dir=.
15591   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15592 done
15593 IFS=$as_save_IFS
15594
15595      ;;
15596 esac
15597 # We did not find ourselves, most probably we were run as `sh COMMAND'
15598 # in which case we are not to be found in the path.
15599 if test "x$as_myself" = x; then
15600   as_myself=$0
15601 fi
15602 if test ! -f "$as_myself"; then
15603   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15604   { (exit 1); exit 1; }
15605 fi
15606
15607 # Work around bugs in pre-3.0 UWIN ksh.
15608 for as_var in ENV MAIL MAILPATH
15609 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15610 done
15611 PS1='$ '
15612 PS2='> '
15613 PS4='+ '
15614
15615 # NLS nuisances.
15616 for as_var in \
15617   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15618   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15619   LC_TELEPHONE LC_TIME
15620 do
15621   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15622     eval $as_var=C; export $as_var
15623   else
15624     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15625   fi
15626 done
15627
15628 # Required to use basename.
15629 if expr a : '\(a\)' >/dev/null 2>&1 &&
15630    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15631   as_expr=expr
15632 else
15633   as_expr=false
15634 fi
15635
15636 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15637   as_basename=basename
15638 else
15639   as_basename=false
15640 fi
15641
15642
15643 # Name of the executable.
15644 as_me=`$as_basename -- "$0" ||
15645 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15646          X"$0" : 'X\(//\)$' \| \
15647          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15648 echo X/"$0" |
15649     sed '/^.*\/\([^/][^/]*\)\/*$/{
15650             s//\1/
15651             q
15652           }
15653           /^X\/\(\/\/\)$/{
15654             s//\1/
15655             q
15656           }
15657           /^X\/\(\/\).*/{
15658             s//\1/
15659             q
15660           }
15661           s/.*/./; q'`
15662
15663 # CDPATH.
15664 $as_unset CDPATH
15665
15666
15667
15668   as_lineno_1=$LINENO
15669   as_lineno_2=$LINENO
15670   test "x$as_lineno_1" != "x$as_lineno_2" &&
15671   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15672
15673   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15674   # uniformly replaced by the line number.  The first 'sed' inserts a
15675   # line-number line after each line using $LINENO; the second 'sed'
15676   # does the real work.  The second script uses 'N' to pair each
15677   # line-number line with the line containing $LINENO, and appends
15678   # trailing '-' during substitution so that $LINENO is not a special
15679   # case at line end.
15680   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15681   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15682   # E. McMahon (1931-1989) for sed's syntax.  :-)
15683   sed -n '
15684     p
15685     /[$]LINENO/=
15686   ' <$as_myself |
15687     sed '
15688       s/[$]LINENO.*/&-/
15689       t lineno
15690       b
15691       :lineno
15692       N
15693       :loop
15694       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15695       t loop
15696       s/-\n.*//
15697     ' >$as_me.lineno &&
15698   chmod +x "$as_me.lineno" ||
15699     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15700    { (exit 1); exit 1; }; }
15701
15702   # Don't try to exec as it changes $[0], causing all sort of problems
15703   # (the dirname of $[0] is not the place where we might find the
15704   # original and so on.  Autoconf is especially sensitive to this).
15705   . "./$as_me.lineno"
15706   # Exit status is that of the last command.
15707   exit
15708 }
15709
15710
15711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15712   as_dirname=dirname
15713 else
15714   as_dirname=false
15715 fi
15716
15717 ECHO_C= ECHO_N= ECHO_T=
15718 case `echo -n x` in
15719 -n*)
15720   case `echo 'x\c'` in
15721   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15722   *)   ECHO_C='\c';;
15723   esac;;
15724 *)
15725   ECHO_N='-n';;
15726 esac
15727
15728 if expr a : '\(a\)' >/dev/null 2>&1 &&
15729    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15730   as_expr=expr
15731 else
15732   as_expr=false
15733 fi
15734
15735 rm -f conf$$ conf$$.exe conf$$.file
15736 if test -d conf$$.dir; then
15737   rm -f conf$$.dir/conf$$.file
15738 else
15739   rm -f conf$$.dir
15740   mkdir conf$$.dir
15741 fi
15742 echo >conf$$.file
15743 if ln -s conf$$.file conf$$ 2>/dev/null; then
15744   as_ln_s='ln -s'
15745   # ... but there are two gotchas:
15746   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15747   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15748   # In both cases, we have to default to `cp -p'.
15749   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15750     as_ln_s='cp -p'
15751 elif ln conf$$.file conf$$ 2>/dev/null; then
15752   as_ln_s=ln
15753 else
15754   as_ln_s='cp -p'
15755 fi
15756 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15757 rmdir conf$$.dir 2>/dev/null
15758
15759 if mkdir -p . 2>/dev/null; then
15760   as_mkdir_p=:
15761 else
15762   test -d ./-p && rmdir ./-p
15763   as_mkdir_p=false
15764 fi
15765
15766 if test -x / >/dev/null 2>&1; then
15767   as_test_x='test -x'
15768 else
15769   if ls -dL / >/dev/null 2>&1; then
15770     as_ls_L_option=L
15771   else
15772     as_ls_L_option=
15773   fi
15774   as_test_x='
15775     eval sh -c '\''
15776       if test -d "$1"; then
15777         test -d "$1/.";
15778       else
15779         case $1 in
15780         -*)set "./$1";;
15781         esac;
15782         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15783         ???[sx]*):;;*)false;;esac;fi
15784     '\'' sh
15785   '
15786 fi
15787 as_executable_p=$as_test_x
15788
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15791
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15794
15795
15796 exec 6>&1
15797
15798 # Save the log message, to keep $[0] and so on meaningful, and to
15799 # report actual input values of CONFIG_FILES etc. instead of their
15800 # values after options handling.
15801 ac_log="
15802 This file was extended by $as_me, which was
15803 generated by GNU Autoconf 2.61.  Invocation command line was
15804
15805   CONFIG_FILES    = $CONFIG_FILES
15806   CONFIG_HEADERS  = $CONFIG_HEADERS
15807   CONFIG_LINKS    = $CONFIG_LINKS
15808   CONFIG_COMMANDS = $CONFIG_COMMANDS
15809   $ $0 $@
15810
15811 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15812 "
15813
15814 _ACEOF
15815
15816 cat >>$CONFIG_STATUS <<_ACEOF
15817 # Files that config.status was made for.
15818 config_files="$ac_config_files"
15819 config_commands="$ac_config_commands"
15820
15821 _ACEOF
15822
15823 cat >>$CONFIG_STATUS <<\_ACEOF
15824 ac_cs_usage="\
15825 \`$as_me' instantiates files from templates according to the
15826 current configuration.
15827
15828 Usage: $0 [OPTIONS] [FILE]...
15829
15830   -h, --help       print this help, then exit
15831   -V, --version    print version number and configuration settings, then exit
15832   -q, --quiet      do not print progress messages
15833   -d, --debug      don't remove temporary files
15834       --recheck    update $as_me by reconfiguring in the same conditions
15835   --file=FILE[:TEMPLATE]
15836                    instantiate the configuration file FILE
15837
15838 Configuration files:
15839 $config_files
15840
15841 Configuration commands:
15842 $config_commands
15843
15844 Report bugs to <bug-autoconf@gnu.org>."
15845
15846 _ACEOF
15847 cat >>$CONFIG_STATUS <<_ACEOF
15848 ac_cs_version="\\
15849 config.status
15850 configured by $0, generated by GNU Autoconf 2.61,
15851   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15852
15853 Copyright (C) 2006 Free Software Foundation, Inc.
15854 This config.status script is free software; the Free Software Foundation
15855 gives unlimited permission to copy, distribute and modify it."
15856
15857 ac_pwd='$ac_pwd'
15858 srcdir='$srcdir'
15859 INSTALL='$INSTALL'
15860 _ACEOF
15861
15862 cat >>$CONFIG_STATUS <<\_ACEOF
15863 # If no file are specified by the user, then we need to provide default
15864 # value.  By we need to know if files were specified by the user.
15865 ac_need_defaults=:
15866 while test $# != 0
15867 do
15868   case $1 in
15869   --*=*)
15870     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15871     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15872     ac_shift=:
15873     ;;
15874   *)
15875     ac_option=$1
15876     ac_optarg=$2
15877     ac_shift=shift
15878     ;;
15879   esac
15880
15881   case $ac_option in
15882   # Handling of the options.
15883   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15884     ac_cs_recheck=: ;;
15885   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15886     echo "$ac_cs_version"; exit ;;
15887   --debug | --debu | --deb | --de | --d | -d )
15888     debug=: ;;
15889   --file | --fil | --fi | --f )
15890     $ac_shift
15891     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15892     ac_need_defaults=false;;
15893   --he | --h |  --help | --hel | -h )
15894     echo "$ac_cs_usage"; exit ;;
15895   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15896   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15897     ac_cs_silent=: ;;
15898
15899   # This is an error.
15900   -*) { echo "$as_me: error: unrecognized option: $1
15901 Try \`$0 --help' for more information." >&2
15902    { (exit 1); exit 1; }; } ;;
15903
15904   *) ac_config_targets="$ac_config_targets $1"
15905      ac_need_defaults=false ;;
15906
15907   esac
15908   shift
15909 done
15910
15911 ac_configure_extra_args=
15912
15913 if $ac_cs_silent; then
15914   exec 6>/dev/null
15915   ac_configure_extra_args="$ac_configure_extra_args --silent"
15916 fi
15917
15918 _ACEOF
15919 cat >>$CONFIG_STATUS <<_ACEOF
15920 if \$ac_cs_recheck; then
15921   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15922   CONFIG_SHELL=$SHELL
15923   export CONFIG_SHELL
15924   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15925 fi
15926
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<\_ACEOF
15929 exec 5>>config.log
15930 {
15931   echo
15932   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15933 ## Running $as_me. ##
15934 _ASBOX
15935   echo "$ac_log"
15936 } >&5
15937
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<_ACEOF
15940 #
15941 # INIT-COMMANDS
15942 #
15943 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15944     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15945     # from automake.
15946     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15947     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15948     LINGUAS="${LINGUAS-%UNSET%}"
15949
15950
15951 _ACEOF
15952
15953 cat >>$CONFIG_STATUS <<\_ACEOF
15954
15955 # Handling of arguments.
15956 for ac_config_target in $ac_config_targets
15957 do
15958   case $ac_config_target in
15959     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15960     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15961
15962   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15964    { (exit 1); exit 1; }; };;
15965   esac
15966 done
15967
15968
15969 # If the user did not use the arguments to specify the items to instantiate,
15970 # then the envvar interface is used.  Set only those that are not.
15971 # We use the long form for the default assignment because of an extremely
15972 # bizarre bug on SunOS 4.1.3.
15973 if $ac_need_defaults; then
15974   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15975   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15976 fi
15977
15978 # Have a temporary directory for convenience.  Make it in the build tree
15979 # simply because there is no reason against having it here, and in addition,
15980 # creating and moving files from /tmp can sometimes cause problems.
15981 # Hook for its removal unless debugging.
15982 # Note that there is a small window in which the directory will not be cleaned:
15983 # after its creation but before its name has been assigned to `$tmp'.
15984 $debug ||
15985 {
15986   tmp=
15987   trap 'exit_status=$?
15988   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15989 ' 0
15990   trap '{ (exit 1); exit 1; }' 1 2 13 15
15991 }
15992 # Create a (secure) tmp directory for tmp files.
15993
15994 {
15995   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15996   test -n "$tmp" && test -d "$tmp"
15997 }  ||
15998 {
15999   tmp=./conf$$-$RANDOM
16000   (umask 077 && mkdir "$tmp")
16001 } ||
16002 {
16003    echo "$me: cannot create a temporary directory in ." >&2
16004    { (exit 1); exit 1; }
16005 }
16006
16007 #
16008 # Set up the sed scripts for CONFIG_FILES section.
16009 #
16010
16011 # No need to generate the scripts if there are no CONFIG_FILES.
16012 # This happens for instance when ./config.status config.h
16013 if test -n "$CONFIG_FILES"; then
16014
16015 _ACEOF
16016
16017 # Create sed commands to just substitute file output variables.
16018
16019 # Remaining file output variables are in a fragment that also has non-file
16020 # output varibles.
16021
16022
16023
16024 ac_delim='%!_!# '
16025 for ac_last_try in false false false false false :; do
16026   cat >conf$$subs.sed <<_ACEOF
16027 SHELL!$SHELL$ac_delim
16028 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16029 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16030 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16031 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16032 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16033 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16034 exec_prefix!$exec_prefix$ac_delim
16035 prefix!$prefix$ac_delim
16036 program_transform_name!$program_transform_name$ac_delim
16037 bindir!$bindir$ac_delim
16038 sbindir!$sbindir$ac_delim
16039 libexecdir!$libexecdir$ac_delim
16040 datarootdir!$datarootdir$ac_delim
16041 datadir!$datadir$ac_delim
16042 sysconfdir!$sysconfdir$ac_delim
16043 sharedstatedir!$sharedstatedir$ac_delim
16044 localstatedir!$localstatedir$ac_delim
16045 includedir!$includedir$ac_delim
16046 oldincludedir!$oldincludedir$ac_delim
16047 docdir!$docdir$ac_delim
16048 infodir!$infodir$ac_delim
16049 htmldir!$htmldir$ac_delim
16050 dvidir!$dvidir$ac_delim
16051 pdfdir!$pdfdir$ac_delim
16052 psdir!$psdir$ac_delim
16053 libdir!$libdir$ac_delim
16054 localedir!$localedir$ac_delim
16055 mandir!$mandir$ac_delim
16056 DEFS!$DEFS$ac_delim
16057 ECHO_C!$ECHO_C$ac_delim
16058 ECHO_N!$ECHO_N$ac_delim
16059 ECHO_T!$ECHO_T$ac_delim
16060 LIBS!$LIBS$ac_delim
16061 build_alias!$build_alias$ac_delim
16062 host_alias!$host_alias$ac_delim
16063 target_alias!$target_alias$ac_delim
16064 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16065 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16066 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16067 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16068 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16069 build!$build$ac_delim
16070 build_cpu!$build_cpu$ac_delim
16071 build_vendor!$build_vendor$ac_delim
16072 build_os!$build_os$ac_delim
16073 host!$host$ac_delim
16074 host_cpu!$host_cpu$ac_delim
16075 host_vendor!$host_vendor$ac_delim
16076 host_os!$host_os$ac_delim
16077 CC!$CC$ac_delim
16078 CFLAGS!$CFLAGS$ac_delim
16079 LDFLAGS!$LDFLAGS$ac_delim
16080 CPPFLAGS!$CPPFLAGS$ac_delim
16081 ac_ct_CC!$ac_ct_CC$ac_delim
16082 EXEEXT!$EXEEXT$ac_delim
16083 OBJEXT!$OBJEXT$ac_delim
16084 CPP!$CPP$ac_delim
16085 LD!$LD$ac_delim
16086 GREP!$GREP$ac_delim
16087 EGREP!$EGREP$ac_delim
16088 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16089 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16090 HTREE_CMT!$HTREE_CMT$ac_delim
16091 ELF_CMT!$ELF_CMT$ac_delim
16092 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16093 PROFILE_CMT!$PROFILE_CMT$ac_delim
16094 CHECKER_CMT!$CHECKER_CMT$ac_delim
16095 LIB_EXT!$LIB_EXT$ac_delim
16096 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16097 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16098 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16099 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16100 _ACEOF
16101
16102   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16103     break
16104   elif $ac_last_try; then
16105     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16106 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16107    { (exit 1); exit 1; }; }
16108   else
16109     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16110   fi
16111 done
16112
16113 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16114 if test -n "$ac_eof"; then
16115   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16116   ac_eof=`expr $ac_eof + 1`
16117 fi
16118
16119 cat >>$CONFIG_STATUS <<_ACEOF
16120 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16122 /^[      ]*@MCONFIG@[    ]*$/{
16123 r $MCONFIG
16124 d
16125 }
16126 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16127 r $MAKEFILE_ELF
16128 d
16129 }
16130 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16131 r $MAKEFILE_BSDLIB
16132 d
16133 }
16134 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16135 r $MAKEFILE_PROFILE
16136 d
16137 }
16138 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16139 r $MAKEFILE_CHECKER
16140 d
16141 }
16142 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16143 r $MAKEFILE_LIBRARY
16144 d
16145 }
16146 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16147 r $ASM_TYPES_HEADER
16148 d
16149 }
16150 /^[      ]*@PUBLIC_CONFIG_HEADER@[       ]*$/{
16151 r $PUBLIC_CONFIG_HEADER
16152 d
16153 }
16154 _ACEOF
16155 sed '
16156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16157 s/^/s,@/; s/!/@,|#_!!_#|/
16158 :n
16159 t n
16160 s/'"$ac_delim"'$/,g/; t
16161 s/$/\\/; p
16162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16163 ' >>$CONFIG_STATUS <conf$$subs.sed
16164 rm -f conf$$subs.sed
16165 cat >>$CONFIG_STATUS <<_ACEOF
16166 CEOF$ac_eof
16167 _ACEOF
16168
16169
16170 ac_delim='%!_!# '
16171 for ac_last_try in false false false false false :; do
16172   cat >conf$$subs.sed <<_ACEOF
16173 IMAGER_CMT!$IMAGER_CMT$ac_delim
16174 RESIZER_CMT!$RESIZER_CMT$ac_delim
16175 FSCK_PROG!$FSCK_PROG$ac_delim
16176 FSCK_MAN!$FSCK_MAN$ac_delim
16177 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16178 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16179 PKG_CONFIG!$PKG_CONFIG$ac_delim
16180 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16181 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16182 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16183 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16184 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16185 UUIDD_CMT!$UUIDD_CMT$ac_delim
16186 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16187 PACKAGE!$PACKAGE$ac_delim
16188 VERSION!$VERSION$ac_delim
16189 SET_MAKE!$SET_MAKE$ac_delim
16190 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16191 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16192 INSTALL_DATA!$INSTALL_DATA$ac_delim
16193 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16194 USE_NLS!$USE_NLS$ac_delim
16195 MSGFMT!$MSGFMT$ac_delim
16196 GMSGFMT!$GMSGFMT$ac_delim
16197 XGETTEXT!$XGETTEXT$ac_delim
16198 MSGMERGE!$MSGMERGE$ac_delim
16199 RANLIB!$RANLIB$ac_delim
16200 ALLOCA!$ALLOCA$ac_delim
16201 GLIBC21!$GLIBC21$ac_delim
16202 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16203 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16204 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16205 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16206 LIBICONV!$LIBICONV$ac_delim
16207 LTLIBICONV!$LTLIBICONV$ac_delim
16208 INTLBISON!$INTLBISON$ac_delim
16209 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16210 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16211 CATOBJEXT!$CATOBJEXT$ac_delim
16212 DATADIRNAME!$DATADIRNAME$ac_delim
16213 INSTOBJEXT!$INSTOBJEXT$ac_delim
16214 GENCAT!$GENCAT$ac_delim
16215 INTLOBJS!$INTLOBJS$ac_delim
16216 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16217 INTLLIBS!$INTLLIBS$ac_delim
16218 LIBINTL!$LIBINTL$ac_delim
16219 LTLIBINTL!$LTLIBINTL$ac_delim
16220 POSUB!$POSUB$ac_delim
16221 BINARY_TYPE!$BINARY_TYPE$ac_delim
16222 LN!$LN$ac_delim
16223 LN_S!$LN_S$ac_delim
16224 MV!$MV$ac_delim
16225 CP!$CP$ac_delim
16226 RM!$RM$ac_delim
16227 CHMOD!$CHMOD$ac_delim
16228 AWK!$AWK$ac_delim
16229 SED!$SED$ac_delim
16230 PERL!$PERL$ac_delim
16231 LDCONFIG!$LDCONFIG$ac_delim
16232 AR!$AR$ac_delim
16233 STRIP!$STRIP$ac_delim
16234 MAKEINFO!$MAKEINFO$ac_delim
16235 BUILD_CC!$BUILD_CC$ac_delim
16236 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16237 SIZEOF_INT!$SIZEOF_INT$ac_delim
16238 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16239 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16240 SOCKET_LIB!$SOCKET_LIB$ac_delim
16241 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16242 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16243 LINUX_CMT!$LINUX_CMT$ac_delim
16244 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16245 UNIX_CMT!$UNIX_CMT$ac_delim
16246 root_prefix!$root_prefix$ac_delim
16247 root_bindir!$root_bindir$ac_delim
16248 root_sbindir!$root_sbindir$ac_delim
16249 root_libdir!$root_libdir$ac_delim
16250 root_sysconfdir!$root_sysconfdir$ac_delim
16251 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16252 SS_DIR!$SS_DIR$ac_delim
16253 ET_DIR!$ET_DIR$ac_delim
16254 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16255 INTL_FLAGS!$INTL_FLAGS$ac_delim
16256 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16257 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16258 LIBOBJS!$LIBOBJS$ac_delim
16259 LTLIBOBJS!$LTLIBOBJS$ac_delim
16260 _ACEOF
16261
16262   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
16263     break
16264   elif $ac_last_try; then
16265     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16266 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16267    { (exit 1); exit 1; }; }
16268   else
16269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16270   fi
16271 done
16272
16273 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16274 if test -n "$ac_eof"; then
16275   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16276   ac_eof=`expr $ac_eof + 1`
16277 fi
16278
16279 cat >>$CONFIG_STATUS <<_ACEOF
16280 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16282 _ACEOF
16283 sed '
16284 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16285 s/^/s,@/; s/!/@,|#_!!_#|/
16286 :n
16287 t n
16288 s/'"$ac_delim"'$/,g/; t
16289 s/$/\\/; p
16290 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16291 ' >>$CONFIG_STATUS <conf$$subs.sed
16292 rm -f conf$$subs.sed
16293 cat >>$CONFIG_STATUS <<_ACEOF
16294 :end
16295 s/|#_!!_#|//g
16296 CEOF$ac_eof
16297 _ACEOF
16298
16299
16300 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16301 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16302 # trailing colons and then remove the whole line if VPATH becomes empty
16303 # (actually we leave an empty line to preserve line numbers).
16304 if test "x$srcdir" = x.; then
16305   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16306 s/:*\$(srcdir):*/:/
16307 s/:*\${srcdir}:*/:/
16308 s/:*@srcdir@:*/:/
16309 s/^\([^=]*=[     ]*\):*/\1/
16310 s/:*$//
16311 s/^[^=]*=[       ]*$//
16312 }'
16313 fi
16314
16315 cat >>$CONFIG_STATUS <<\_ACEOF
16316 fi # test -n "$CONFIG_FILES"
16317
16318
16319 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16320 do
16321   case $ac_tag in
16322   :[FHLC]) ac_mode=$ac_tag; continue;;
16323   esac
16324   case $ac_mode$ac_tag in
16325   :[FHL]*:*);;
16326   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16327 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16328    { (exit 1); exit 1; }; };;
16329   :[FH]-) ac_tag=-:-;;
16330   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16331   esac
16332   ac_save_IFS=$IFS
16333   IFS=:
16334   set x $ac_tag
16335   IFS=$ac_save_IFS
16336   shift
16337   ac_file=$1
16338   shift
16339
16340   case $ac_mode in
16341   :L) ac_source=$1;;
16342   :[FH])
16343     ac_file_inputs=
16344     for ac_f
16345     do
16346       case $ac_f in
16347       -) ac_f="$tmp/stdin";;
16348       *) # Look for the file first in the build tree, then in the source tree
16349          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16350          # because $ac_f cannot contain `:'.
16351          test -f "$ac_f" ||
16352            case $ac_f in
16353            [\\/$]*) false;;
16354            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16355            esac ||
16356            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16357 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16358    { (exit 1); exit 1; }; };;
16359       esac
16360       ac_file_inputs="$ac_file_inputs $ac_f"
16361     done
16362
16363     # Let's still pretend it is `configure' which instantiates (i.e., don't
16364     # use $as_me), people would be surprised to read:
16365     #    /* config.h.  Generated by config.status.  */
16366     configure_input="Generated from "`IFS=:
16367           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16368     if test x"$ac_file" != x-; then
16369       configure_input="$ac_file.  $configure_input"
16370       { echo "$as_me:$LINENO: creating $ac_file" >&5
16371 echo "$as_me: creating $ac_file" >&6;}
16372     fi
16373
16374     case $ac_tag in
16375     *:-:* | *:-) cat >"$tmp/stdin";;
16376     esac
16377     ;;
16378   esac
16379
16380   ac_dir=`$as_dirname -- "$ac_file" ||
16381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16382          X"$ac_file" : 'X\(//\)[^/]' \| \
16383          X"$ac_file" : 'X\(//\)$' \| \
16384          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16385 echo X"$ac_file" |
16386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16387             s//\1/
16388             q
16389           }
16390           /^X\(\/\/\)[^/].*/{
16391             s//\1/
16392             q
16393           }
16394           /^X\(\/\/\)$/{
16395             s//\1/
16396             q
16397           }
16398           /^X\(\/\).*/{
16399             s//\1/
16400             q
16401           }
16402           s/.*/./; q'`
16403   { as_dir="$ac_dir"
16404   case $as_dir in #(
16405   -*) as_dir=./$as_dir;;
16406   esac
16407   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16408     as_dirs=
16409     while :; do
16410       case $as_dir in #(
16411       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16412       *) as_qdir=$as_dir;;
16413       esac
16414       as_dirs="'$as_qdir' $as_dirs"
16415       as_dir=`$as_dirname -- "$as_dir" ||
16416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16417          X"$as_dir" : 'X\(//\)[^/]' \| \
16418          X"$as_dir" : 'X\(//\)$' \| \
16419          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16420 echo X"$as_dir" |
16421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422             s//\1/
16423             q
16424           }
16425           /^X\(\/\/\)[^/].*/{
16426             s//\1/
16427             q
16428           }
16429           /^X\(\/\/\)$/{
16430             s//\1/
16431             q
16432           }
16433           /^X\(\/\).*/{
16434             s//\1/
16435             q
16436           }
16437           s/.*/./; q'`
16438       test -d "$as_dir" && break
16439     done
16440     test -z "$as_dirs" || eval "mkdir $as_dirs"
16441   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16442 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16443    { (exit 1); exit 1; }; }; }
16444   ac_builddir=.
16445
16446 case "$ac_dir" in
16447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16448 *)
16449   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16450   # A ".." for each directory in $ac_dir_suffix.
16451   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16452   case $ac_top_builddir_sub in
16453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16455   esac ;;
16456 esac
16457 ac_abs_top_builddir=$ac_pwd
16458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16459 # for backward compatibility:
16460 ac_top_builddir=$ac_top_build_prefix
16461
16462 case $srcdir in
16463   .)  # We are building in place.
16464     ac_srcdir=.
16465     ac_top_srcdir=$ac_top_builddir_sub
16466     ac_abs_top_srcdir=$ac_pwd ;;
16467   [\\/]* | ?:[\\/]* )  # Absolute name.
16468     ac_srcdir=$srcdir$ac_dir_suffix;
16469     ac_top_srcdir=$srcdir
16470     ac_abs_top_srcdir=$srcdir ;;
16471   *) # Relative name.
16472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16473     ac_top_srcdir=$ac_top_build_prefix$srcdir
16474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16475 esac
16476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16477
16478
16479   case $ac_mode in
16480   :F)
16481   #
16482   # CONFIG_FILE
16483   #
16484
16485   case $INSTALL in
16486   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16487   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16488   esac
16489 _ACEOF
16490
16491 cat >>$CONFIG_STATUS <<\_ACEOF
16492 # If the template does not know about datarootdir, expand it.
16493 # FIXME: This hack should be removed a few years after 2.60.
16494 ac_datarootdir_hack=; ac_datarootdir_seen=
16495
16496 case `sed -n '/datarootdir/ {
16497   p
16498   q
16499 }
16500 /@datadir@/p
16501 /@docdir@/p
16502 /@infodir@/p
16503 /@localedir@/p
16504 /@mandir@/p
16505 ' $ac_file_inputs` in
16506 *datarootdir*) ac_datarootdir_seen=yes;;
16507 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16508   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16509 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16510 _ACEOF
16511 cat >>$CONFIG_STATUS <<_ACEOF
16512   ac_datarootdir_hack='
16513   s&@datadir@&$datadir&g
16514   s&@docdir@&$docdir&g
16515   s&@infodir@&$infodir&g
16516   s&@localedir@&$localedir&g
16517   s&@mandir@&$mandir&g
16518     s&\\\${datarootdir}&$datarootdir&g' ;;
16519 esac
16520 _ACEOF
16521
16522 # Neutralize VPATH when `$srcdir' = `.'.
16523 # Shell code in configure.ac might set extrasub.
16524 # FIXME: do we really want to maintain this feature?
16525 cat >>$CONFIG_STATUS <<_ACEOF
16526   sed "$ac_vpsub
16527 $extrasub
16528 _ACEOF
16529 cat >>$CONFIG_STATUS <<\_ACEOF
16530 :t
16531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16532 s&@configure_input@&$configure_input&;t t
16533 s&@top_builddir@&$ac_top_builddir_sub&;t t
16534 s&@srcdir@&$ac_srcdir&;t t
16535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16536 s&@top_srcdir@&$ac_top_srcdir&;t t
16537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16538 s&@builddir@&$ac_builddir&;t t
16539 s&@abs_builddir@&$ac_abs_builddir&;t t
16540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16541 s&@INSTALL@&$ac_INSTALL&;t t
16542 $ac_datarootdir_hack
16543 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16544
16545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16546   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16547   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16548   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16549 which seems to be undefined.  Please make sure it is defined." >&5
16550 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16551 which seems to be undefined.  Please make sure it is defined." >&2;}
16552
16553   rm -f "$tmp/stdin"
16554   case $ac_file in
16555   -) cat "$tmp/out"; rm -f "$tmp/out";;
16556   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16557   esac
16558  ;;
16559
16560
16561   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16562 echo "$as_me: executing $ac_file commands" >&6;}
16563  ;;
16564   esac
16565
16566
16567   case $ac_file$ac_mode in
16568     "default-1":C)
16569     for ac_file in $CONFIG_FILES; do
16570       # Support "outfile[:infile[:infile...]]"
16571       case "$ac_file" in
16572         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16573       esac
16574       # PO directories have a Makefile.in generated from Makefile.in.in.
16575       case "$ac_file" in */Makefile.in)
16576         # Adjust a relative srcdir.
16577         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16578         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16579         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16580         # In autoconf-2.13 it is called $ac_given_srcdir.
16581         # In autoconf-2.50 it is called $srcdir.
16582         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16583         case "$ac_given_srcdir" in
16584           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16585           /*) top_srcdir="$ac_given_srcdir" ;;
16586           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16587         esac
16588         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16589           rm -f "$ac_dir/POTFILES"
16590           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16591           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16592           POMAKEFILEDEPS="POTFILES.in"
16593           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16594           # on $ac_dir but don't depend on user-specified configuration
16595           # parameters.
16596           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16597             # The LINGUAS file contains the set of available languages.
16598             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16599               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16600             fi
16601             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16602             # Hide the ALL_LINGUAS assigment from automake.
16603             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16604             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16605           else
16606             # The set of available languages was given in configure.in.
16607             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16608           fi
16609           # Compute POFILES
16610           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16611           # Compute UPDATEPOFILES
16612           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16613           # Compute DUMMYPOFILES
16614           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16615           # Compute GMOFILES
16616           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16617           case "$ac_given_srcdir" in
16618             .) srcdirpre= ;;
16619             *) srcdirpre='$(srcdir)/' ;;
16620           esac
16621           POFILES=
16622           UPDATEPOFILES=
16623           DUMMYPOFILES=
16624           GMOFILES=
16625           for lang in $ALL_LINGUAS; do
16626             POFILES="$POFILES $srcdirpre$lang.po"
16627             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16628             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16629             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16630           done
16631           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16632           # environment variable.
16633           INST_LINGUAS=
16634           if test -n "$ALL_LINGUAS"; then
16635             for presentlang in $ALL_LINGUAS; do
16636               useit=no
16637               if test "%UNSET%" != "$LINGUAS"; then
16638                 desiredlanguages="$LINGUAS"
16639               else
16640                 desiredlanguages="$ALL_LINGUAS"
16641               fi
16642               for desiredlang in $desiredlanguages; do
16643                 # Use the presentlang catalog if desiredlang is
16644                 #   a. equal to presentlang, or
16645                 #   b. a variant of presentlang (because in this case,
16646                 #      presentlang can be used as a fallback for messages
16647                 #      which are not translated in the desiredlang catalog).
16648                 case "$desiredlang" in
16649                   "$presentlang"*) useit=yes;;
16650                 esac
16651               done
16652               if test $useit = yes; then
16653                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16654               fi
16655             done
16656           fi
16657           CATALOGS=
16658           if test -n "$INST_LINGUAS"; then
16659             for lang in $INST_LINGUAS; do
16660               CATALOGS="$CATALOGS $lang.gmo"
16661             done
16662           fi
16663           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16664           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"
16665           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16666             if test -f "$f"; then
16667               case "$f" in
16668                 *.orig | *.bak | *~) ;;
16669                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16670               esac
16671             fi
16672           done
16673         fi
16674         ;;
16675       esac
16676     done ;;
16677
16678   esac
16679 done # for ac_tag
16680
16681
16682 { (exit 0); exit 0; }
16683 _ACEOF
16684 chmod +x $CONFIG_STATUS
16685 ac_clean_files=$ac_clean_files_save
16686
16687
16688 # configure is writing to config.log, and then calls config.status.
16689 # config.status does its own redirection, appending to config.log.
16690 # Unfortunately, on DOS this fails, as config.log is still kept open
16691 # by configure, so config.status won't be able to write to it; its
16692 # output is simply discarded.  So we exec the FD to /dev/null,
16693 # effectively closing config.log, so it can be properly (re)opened and
16694 # appended to by config.status.  When coming back to configure, we
16695 # need to make the FD available again.
16696 if test "$no_create" != yes; then
16697   ac_cs_success=:
16698   ac_config_status_args=
16699   test "$silent" = yes &&
16700     ac_config_status_args="$ac_config_status_args --quiet"
16701   exec 5>/dev/null
16702   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16703   exec 5>>config.log
16704   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16705   # would make configure fail if this is the last instruction.
16706   $ac_cs_success || { (exit 1); exit 1; }
16707 fi
16708
16709 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16710