Whamcloud - gitweb
configure.in: use AC_MSG_{RESULT,WARN,ERROR} instead of echo
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 DEBUGFS_CMT
688 IMAGER_CMT
689 RESIZER_CMT
690 FSCK_PROG
691 FSCK_MAN
692 E2INITRD_PROG
693 E2INITRD_MAN
694 PKG_CONFIG
695 DEVMAPPER_REQ
696 DEVMAPPER_PC_LIBS
697 DEVMAPPER_LIBS
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
700 UUIDD_CMT
701 GETTEXT_PACKAGE
702 PACKAGE
703 VERSION
704 SET_MAKE
705 INSTALL_PROGRAM
706 INSTALL_SCRIPT
707 INSTALL_DATA
708 MKINSTALLDIRS
709 USE_NLS
710 MSGFMT
711 GMSGFMT
712 XGETTEXT
713 MSGMERGE
714 RANLIB
715 ALLOCA
716 GLIBC21
717 HAVE_POSIX_PRINTF
718 HAVE_ASPRINTF
719 HAVE_SNPRINTF
720 HAVE_WPRINTF
721 LIBICONV
722 LTLIBICONV
723 INTLBISON
724 BUILD_INCLUDED_LIBINTL
725 USE_INCLUDED_LIBINTL
726 CATOBJEXT
727 DATADIRNAME
728 INSTOBJEXT
729 GENCAT
730 INTLOBJS
731 INTL_LIBTOOL_SUFFIX_PREFIX
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 BINARY_TYPE
737 LN
738 LN_S
739 MV
740 CP
741 RM
742 CHMOD
743 AWK
744 SED
745 PERL
746 LDCONFIG
747 AR
748 STRIP
749 MAKEINFO
750 BUILD_CC
751 SIZEOF_SHORT
752 SIZEOF_INT
753 SIZEOF_LONG
754 SIZEOF_LONG_LONG
755 SOCKET_LIB
756 DLOPEN_LIB
757 UNI_DIFF_OPTS
758 LINUX_CMT
759 CYGWIN_CMT
760 UNIX_CMT
761 root_prefix
762 root_bindir
763 root_sbindir
764 root_libdir
765 root_sysconfdir
766 LDFLAG_STATIC
767 SS_DIR
768 ET_DIR
769 DO_TEST_SUITE
770 INTL_FLAGS
771 BUILD_CFLAGS
772 BUILD_LDFLAGS
773 LIBOBJS
774 LTLIBOBJS'
775 ac_subst_files='MCONFIG
776 MAKEFILE_ELF
777 MAKEFILE_BSDLIB
778 MAKEFILE_PROFILE
779 MAKEFILE_CHECKER
780 MAKEFILE_LIBRARY
781 ASM_TYPES_HEADER
782 PUBLIC_CONFIG_HEADER'
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *)    ac_optarg=yes ;;
855   esac
856
857   # Accept the important Cygnus configure options, so we can diagnose typos.
858
859   case $ac_dashdash$ac_option in
860   --)
861     ac_dashdash=yes ;;
862
863   -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867
868   -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872
873   -cache-file | --cache-file | --cache-fil | --cache-fi \
874   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879
880   --config-cache | -C)
881     cache_file=config.cache ;;
882
883   -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885   -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887
888   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889   | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894
895   -disable-* | --disable-*)
896     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897     # Reject names that are not valid shell variable names.
898     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900    { (exit 1); exit 1; }; }
901     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902     eval enable_$ac_feature=no ;;
903
904   -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908
909   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913
914   -enable-* | --enable-*)
915     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916     # Reject names that are not valid shell variable names.
917     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919    { (exit 1); exit 1; }; }
920     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921     eval enable_$ac_feature=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115       { echo "$as_me: error: invalid package name: $ac_package" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118     eval with_$ac_package=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127     eval with_$ac_package=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   case $ac_val in
1186     [\\/$]* | ?:[\\/]* )  continue;;
1187     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188   esac
1189   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190    { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used." >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   { echo "$as_me: error: Working directory cannot be determined" >&2
1221    { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223   { echo "$as_me: error: pwd does not report name of working directory" >&2
1224    { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229   ac_srcdir_defaulted=yes
1230   # Try the directory containing this script, then the parent directory.
1231   ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233          X"$0" : 'X\(//\)[^/]' \| \
1234          X"$0" : 'X\(//\)$' \| \
1235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)[^/].*/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\).*/{
1250             s//\1/
1251             q
1252           }
1253           s/.*/./; q'`
1254   srcdir=$ac_confdir
1255   if test ! -r "$srcdir/$ac_unique_file"; then
1256     srcdir=..
1257   fi
1258 else
1259   ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264    { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269    { (exit 1); exit 1; }; }
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR           user executables [EPREFIX/bin]
1330   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR       program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR           object code libraries [EPREFIX/lib]
1336   --includedir=DIR       C header files [PREFIX/include]
1337   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR          info documentation [DATAROOTDIR/info]
1341   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR           man documentation [DATAROOTDIR/man]
1343   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1344   --htmldir=DIR          html documentation [DOCDIR]
1345   --dvidir=DIR           dvi documentation [DOCDIR]
1346   --pdfdir=DIR           pdf documentation [DOCDIR]
1347   --psdir=DIR            ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 System types:
1353   --build=BUILD     configure for building on BUILD [guessed]
1354   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360   cat <<\_ACEOF
1361
1362 Optional Features:
1363   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1364   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1365   --enable-maintainer-mode enable makefile rules useful for maintainers
1366   --enable-compression    enable EXPERIMENTAL compression support
1367   --enable-htree          enable EXPERIMENTAL htree directory support
1368   --enable-elf-shlibs     select ELF shared libraries
1369   --enable-bsd-shlibs     select BSD shared libraries
1370   --enable-profile        build profiling libraries
1371   --enable-checker        build checker libraries
1372   --enable-jbd-debug      enable journal debugging
1373   --enable-blkid-debug    enable blkid debugging
1374   --enable-testio-debug   enable the use of the test I/O manager for debugging
1375   --disable-debugfs       disable support of debugfs program
1376   --disable-imager        disable support of e2image program
1377   --disable-resizer       disable support of e2resize program
1378   --enable-fsck           build fsck wrapper program
1379   --enable-e2initrd-helper build e2initrd-helper program
1380   --enable-blkid-devmapper  build with device-mapper support
1381   --disable-tls           disable use of thread local support
1382   --disable-uuidd         disable building the uuid daemon
1383   --disable-nls           do not use Native Language Support
1384   --disable-rpath         do not hardcode runtime library paths
1385
1386 Optional Packages:
1387   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389   --with-diet-libc        use diet libc
1390   --with-cc=COMPILER      select compiler to use
1391   --with-linker=LINKER    select linker to use
1392   --with-ccopts=CCOPTS    select compiler command line options
1393   --with-ldopts=LDOPTS    select linker command line options
1394   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1396   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1397   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1398   --with-included-gettext use the GNU gettext library included here
1399   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1400   --without-libintl-prefix     don't search for libintl in includedir and libdir
1401
1402 Some influential environment variables:
1403   CC          C compiler command
1404   CFLAGS      C compiler flags
1405   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406               nonstandard directory <lib dir>
1407   LIBS        libraries to pass to the linker, e.g. -l<library>
1408   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409               you have headers in a nonstandard directory <include dir>
1410   CPP         C preprocessor
1411   PKG_CONFIG  path to pkg-config utility
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" || continue
1424     ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430   # A ".." for each directory in $ac_dir_suffix.
1431   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432   case $ac_top_builddir_sub in
1433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435   esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443   .)  # We are building in place.
1444     ac_srcdir=.
1445     ac_top_srcdir=$ac_top_builddir_sub
1446     ac_abs_top_srcdir=$ac_pwd ;;
1447   [\\/]* | ?:[\\/]* )  # Absolute name.
1448     ac_srcdir=$srcdir$ac_dir_suffix;
1449     ac_top_srcdir=$srcdir
1450     ac_abs_top_srcdir=$srcdir ;;
1451   *) # Relative name.
1452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453     ac_top_srcdir=$ac_top_build_prefix$srcdir
1454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458     cd "$ac_dir" || { ac_status=$?; continue; }
1459     # Check for guested configure.
1460     if test -f "$ac_srcdir/configure.gnu"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463     elif test -f "$ac_srcdir/configure"; then
1464       echo &&
1465       $SHELL "$ac_srcdir/configure" --help=recursive
1466     else
1467       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468     fi || ac_status=$?
1469     cd "$ac_pwd" || { ac_status=$?; break; }
1470   done
1471 fi
1472
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475   cat <<\_ACEOF
1476 configure
1477 generated by GNU Autoconf 2.61
1478
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484   exit
1485 fi
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1489
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61.  Invocation command line was
1492
1493   $ $0 $@
1494
1495 _ACEOF
1496 exec 5>>config.log
1497 {
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1502
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1511
1512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1519
1520 _ASUNAME
1521
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1530
1531 } >&5
1532
1533 cat >&5 <<_ACEOF
1534
1535
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1539
1540 _ACEOF
1541
1542
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1553 do
1554   for ac_arg
1555   do
1556     case $ac_arg in
1557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559     | -silent | --silent | --silen | --sile | --sil)
1560       continue ;;
1561     *\'*)
1562       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563     esac
1564     case $ac_pass in
1565     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566     2)
1567       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568       if test $ac_must_keep_next = true; then
1569         ac_must_keep_next=false # Got value, back to normal.
1570       else
1571         case $ac_arg in
1572           *=* | --config-cache | -C | -disable-* | --disable-* \
1573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575           | -with-* | --with-* | -without-* | --without-* | --x)
1576             case "$ac_configure_args0 " in
1577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578             esac
1579             ;;
1580           -* ) ac_must_keep_next=true ;;
1581         esac
1582       fi
1583       ac_configure_args="$ac_configure_args '$ac_arg'"
1584       ;;
1585     esac
1586   done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log.  We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597   # Save into config.log some information that might help in debugging.
1598   {
1599     echo
1600
1601     cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606     echo
1607     # The following way of writing the cache mishandles newlines in values,
1608 (
1609   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610     eval ac_val=\$$ac_var
1611     case $ac_val in #(
1612     *${as_nl}*)
1613       case $ac_var in #(
1614       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616       esac
1617       case $ac_var in #(
1618       _ | IFS | as_nl) ;; #(
1619       *) $as_unset $ac_var ;;
1620       esac ;;
1621     esac
1622   done
1623   (set) 2>&1 |
1624     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625     *${as_nl}ac_space=\ *)
1626       sed -n \
1627         "s/'\''/'\''\\\\'\'''\''/g;
1628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629       ;; #(
1630     *)
1631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632       ;;
1633     esac |
1634     sort
1635 )
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643     echo
1644     for ac_var in $ac_subst_vars
1645     do
1646       eval ac_val=\$$ac_var
1647       case $ac_val in
1648       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649       esac
1650       echo "$ac_var='\''$ac_val'\''"
1651     done | sort
1652     echo
1653
1654     if test -n "$ac_subst_files"; then
1655       cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660       echo
1661       for ac_var in $ac_subst_files
1662       do
1663         eval ac_val=\$$ac_var
1664         case $ac_val in
1665         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666         esac
1667         echo "$ac_var='\''$ac_val'\''"
1668       done | sort
1669       echo
1670     fi
1671
1672     if test -s confdefs.h; then
1673       cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678       echo
1679       cat confdefs.h
1680       echo
1681     fi
1682     test "$ac_signal" != 0 &&
1683       echo "$as_me: caught signal $ac_signal"
1684     echo "$as_me: exit $exit_status"
1685   } >&5
1686   rm -f core *.core core.conftest.* &&
1687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688     exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728   set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732   set x "$ac_default_prefix/share/config.site" \
1733         "$ac_default_prefix/etc/config.site"
1734 fi
1735 shift
1736 for ac_site_file
1737 do
1738   if test -r "$ac_site_file"; then
1739     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741     sed 's/^/| /' "$ac_site_file" >&5
1742     . "$ac_site_file"
1743   fi
1744 done
1745
1746 if test -r "$cache_file"; then
1747   # Some versions of bash will fail to source /dev/null (special
1748   # files actually), so we avoid doing that.
1749   if test -f "$cache_file"; then
1750     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752     case $cache_file in
1753       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754       *)                      . "./$cache_file";;
1755     esac
1756   fi
1757 else
1758   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760   >$cache_file
1761 fi
1762
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768   eval ac_new_set=\$ac_env_${ac_var}_set
1769   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770   eval ac_new_val=\$ac_env_${ac_var}_value
1771   case $ac_old_set,$ac_new_set in
1772     set,)
1773       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775       ac_cache_corrupted=: ;;
1776     ,set)
1777       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779       ac_cache_corrupted=: ;;
1780     ,);;
1781     *)
1782       if test "x$ac_old_val" != "x$ac_new_val"; then
1783         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1786 echo "$as_me:   former value:  $ac_old_val" >&2;}
1787         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1788 echo "$as_me:   current value: $ac_new_val" >&2;}
1789         ac_cache_corrupted=:
1790       fi;;
1791   esac
1792   # Pass precious variables to config.status.
1793   if test "$ac_new_set" = set; then
1794     case $ac_new_val in
1795     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796     *) ac_arg=$ac_var=$ac_new_val ;;
1797     esac
1798     case " $ac_configure_args " in
1799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1800       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801     esac
1802   fi
1803 done
1804 if $ac_cache_corrupted; then
1805   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835
1836 ac_aux_dir=
1837 for ac_dir in config "$srcdir"/config; do
1838   if test -f "$ac_dir/install-sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install-sh -c"
1841     break
1842   elif test -f "$ac_dir/install.sh"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/install.sh -c"
1845     break
1846   elif test -f "$ac_dir/shtool"; then
1847     ac_aux_dir=$ac_dir
1848     ac_install_sh="$ac_aux_dir/shtool install -c"
1849     break
1850   fi
1851 done
1852 if test -z "$ac_aux_dir"; then
1853   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1865
1866
1867 MCONFIG=./MCONFIG
1868
1869 BINARY_TYPE=bin
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1871         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873         | tr \" " "`
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879         E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881         E2FSPROGS_YEAR=19$YEAR
1882 else
1883         E2FSPROGS_YEAR=20$YEAR
1884 fi
1885
1886 case $MONTH in
1887 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *)      { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1900 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1901 esac
1902
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908 case $E2FSPROGS_VERSION in
1909 *-WIP|pre-*)
1910         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1911         ;;
1912 *)
1913         E2FSPROGS_PKGVER="$base_ver"
1914         ;;
1915 esac
1916
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1919 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1920 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1921 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
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 WITH_DIET_LIBC=
2011
2012 # Check whether --with-diet-libc was given.
2013 if test "${with_diet_libc+set}" = set; then
2014   withval=$with_diet_libc; CC="diet cc -nostdinc"
2015 WITH_DIET_LIBC=yes
2016 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2017 echo "${ECHO_T}CC=$CC" >&6; }
2018 fi
2019
2020 # Check whether --with-cc was given.
2021 if test "${with_cc+set}" = set; then
2022   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2023 echo "${ECHO_T}CC=$withval" >&6; }
2024 CC=$withval
2025 else
2026   if test -z "$CC" ; then CC=cc; fi
2027 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2028 echo "${ECHO_T}CC defaults to $CC" >&6; }
2029 fi
2030 export CC
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$CC"; then
2046   ac_cv_prog_CC="$CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 CC=$ac_cv_prog_CC
2066 if test -n "$CC"; then
2067   { echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075 fi
2076 if test -z "$ac_cv_prog_CC"; then
2077   ac_ct_CC=$CC
2078   # Extract the first word of "gcc", so it can be a program name with args.
2079 set dummy gcc; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   if test -n "$ac_ct_CC"; then
2086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095     ac_cv_prog_ac_ct_CC="gcc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101 IFS=$as_save_IFS
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6; }
2109 else
2110   { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2112 fi
2113
2114   if test "x$ac_ct_CC" = x; then
2115     CC=""
2116   else
2117     case $cross_compiling:$ac_tool_warned in
2118 yes:)
2119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet.  If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&5
2122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet.  If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2125 ac_tool_warned=yes ;;
2126 esac
2127     CC=$ac_ct_CC
2128   fi
2129 else
2130   CC="$ac_cv_prog_CC"
2131 fi
2132
2133 if test -z "$CC"; then
2134           if test -n "$ac_tool_prefix"; then
2135     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_CC="${ac_tool_prefix}cc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2166 else
2167   { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2169 fi
2170
2171
2172   fi
2173 fi
2174 if test -z "$CC"; then
2175   # Extract the first word of "cc", so it can be a program name with args.
2176 set dummy cc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$CC"; then
2183   ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185   ac_prog_rejected=no
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194        ac_prog_rejected=yes
2195        continue
2196      fi
2197     ac_cv_prog_CC="cc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 if test $ac_prog_rejected = yes; then
2206   # We found a bogon in the path, so make sure we never use it.
2207   set dummy $ac_cv_prog_CC
2208   shift
2209   if test $# != 0; then
2210     # We chose a different compiler from the bogus one.
2211     # However, it has the same basename, so the bogon will be chosen
2212     # first if we set CC to just the basename; use the full file name.
2213     shift
2214     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215   fi
2216 fi
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221   { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224   { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229 fi
2230 if test -z "$CC"; then
2231   if test -n "$ac_tool_prefix"; then
2232   for ac_prog in cl.exe
2233   do
2234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   { echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6; }
2265 else
2266   { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2268 fi
2269
2270
2271     test -n "$CC" && break
2272   done
2273 fi
2274 if test -z "$CC"; then
2275   ac_ct_CC=$CC
2276   for ac_prog in cl.exe
2277 do
2278   # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$ac_ct_CC"; then
2286   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     ac_cv_prog_ac_ct_CC="$ac_prog"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304 fi
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308 echo "${ECHO_T}$ac_ct_CC" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$ac_ct_CC" && break
2316 done
2317
2318   if test "x$ac_ct_CC" = x; then
2319     CC=""
2320   else
2321     case $cross_compiling:$ac_tool_warned in
2322 yes:)
2323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet.  If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&5
2326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet.  If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329 ac_tool_warned=yes ;;
2330 esac
2331     CC=$ac_ct_CC
2332   fi
2333 fi
2334
2335 fi
2336
2337
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO: checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (ac_try="$ac_compiler --version >&5"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compiler --version >&5") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }
2357 { (ac_try="$ac_compiler -v >&5"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compiler -v >&5") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (ac_try="$ac_compiler -V >&5"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compiler -V >&5") 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 #
2402 # List of possible output files, starting from the most likely.
2403 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2404 # only as a last resort.  b.out is created by i960 compilers.
2405 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2406 #
2407 # The IRIX 6 linker writes into existing files which may not be
2408 # executable, retaining their permissions.  Remove them first so a
2409 # subsequent execution test works.
2410 ac_rmfiles=
2411 for ac_file in $ac_files
2412 do
2413   case $ac_file in
2414     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2415     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2416   esac
2417 done
2418 rm -f $ac_rmfiles
2419
2420 if { (ac_try="$ac_link_default"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_link_default") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; then
2430   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2432 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2433 # so that the user can short-circuit this test for compilers unknown to
2434 # Autoconf.
2435 for ac_file in $ac_files ''
2436 do
2437   test -f "$ac_file" || continue
2438   case $ac_file in
2439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2440         ;;
2441     [ab].out )
2442         # We found the default executable, but exeext='' is most
2443         # certainly right.
2444         break;;
2445     *.* )
2446         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2447         then :; else
2448            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2449         fi
2450         # We set ac_cv_exeext here because the later test for it is not
2451         # safe: cross compilers may not add the suffix if given an `-o'
2452         # argument, so we may need to know it at that point already.
2453         # Even if this section looks crufty: it has the advantage of
2454         # actually working.
2455         break;;
2456     * )
2457         break;;
2458   esac
2459 done
2460 test "$ac_cv_exeext" = no && ac_cv_exeext=
2461
2462 else
2463   ac_file=''
2464 fi
2465
2466 { echo "$as_me:$LINENO: result: $ac_file" >&5
2467 echo "${ECHO_T}$ac_file" >&6; }
2468 if test -z "$ac_file"; then
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&2;}
2476    { (exit 77); exit 77; }; }
2477 fi
2478
2479 ac_exeext=$ac_cv_exeext
2480
2481 # Check that the compiler produces executables we can run.  If not, either
2482 # the compiler is broken, or we cross compile.
2483 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488   if { ac_try='./$ac_file'
2489   { (case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494   (eval "$ac_try") 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498     cross_compiling=no
2499   else
2500     if test "$cross_compiling" = maybe; then
2501         cross_compiling=yes
2502     else
2503         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&2;}
2509    { (exit 1); exit 1; }; }
2510     fi
2511   fi
2512 fi
2513 { echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6; }
2515
2516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517 ac_clean_files=$ac_clean_files_save
2518 # Check that the compiler produces executables we can run.  If not, either
2519 # the compiler is broken, or we cross compile.
2520 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2522 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523 echo "${ECHO_T}$cross_compiling" >&6; }
2524
2525 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2527 if { (ac_try="$ac_link"
2528 case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533   (eval "$ac_link") 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; then
2537   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2540 # `rm'.
2541 for ac_file in conftest.exe conftest conftest.*; do
2542   test -f "$ac_file" || continue
2543   case $ac_file in
2544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2545     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546           break;;
2547     * ) break;;
2548   esac
2549 done
2550 else
2551   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555    { (exit 1); exit 1; }; }
2556 fi
2557
2558 rm -f conftest$ac_cv_exeext
2559 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2561
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2564 ac_exeext=$EXEEXT
2565 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2567 if test "${ac_cv_objext+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576
2577 int
2578 main ()
2579 {
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.o conftest.obj
2586 if { (ac_try="$ac_compile"
2587 case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_compile") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; then
2596   for ac_file in conftest.o conftest.obj conftest.*; do
2597   test -f "$ac_file" || continue;
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2600     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601        break;;
2602   esac
2603 done
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&2;}
2612    { (exit 1); exit 1; }; }
2613 fi
2614
2615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616 fi
2617 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618 echo "${ECHO_T}$ac_cv_objext" >&6; }
2619 OBJEXT=$ac_cv_objext
2620 ac_objext=$OBJEXT
2621 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2622 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636 #ifndef __GNUC__
2637        choke me
2638 #endif
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (ac_try="$ac_compile"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_compile") 2>conftest.er1
2652   ac_status=$?
2653   grep -v '^ *+' conftest.er1 >conftest.err
2654   rm -f conftest.er1
2655   cat conftest.err >&5
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); } && {
2658          test -z "$ac_c_werror_flag" ||
2659          test ! -s conftest.err
2660        } && test -s conftest.$ac_objext; then
2661   ac_compiler_gnu=yes
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666         ac_compiler_gnu=no
2667 fi
2668
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2671
2672 fi
2673 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   ac_save_c_werror_flag=$ac_c_werror_flag
2684    ac_c_werror_flag=yes
2685    ac_cv_prog_cc_g=no
2686    CFLAGS="-g"
2687    cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709   (eval "$ac_compile") 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } && {
2716          test -z "$ac_c_werror_flag" ||
2717          test ! -s conftest.err
2718        } && test -s conftest.$ac_objext; then
2719   ac_cv_prog_cc_g=yes
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724         CFLAGS=""
2725       cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731
2732 int
2733 main ()
2734 {
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_compile") 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } && {
2754          test -z "$ac_c_werror_flag" ||
2755          test ! -s conftest.err
2756        } && test -s conftest.$ac_objext; then
2757   :
2758 else
2759   echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2761
2762         ac_c_werror_flag=$ac_save_c_werror_flag
2763          CFLAGS="-g"
2764          cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_compile") 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } && {
2793          test -z "$ac_c_werror_flag" ||
2794          test ! -s conftest.err
2795        } && test -s conftest.$ac_objext; then
2796   ac_cv_prog_cc_g=yes
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801
2802 fi
2803
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811    ac_c_werror_flag=$ac_save_c_werror_flag
2812 fi
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2815 if test "$ac_test_CFLAGS" = set; then
2816   CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818   if test "$GCC" = yes; then
2819     CFLAGS="-g -O2"
2820   else
2821     CFLAGS="-g"
2822   fi
2823 else
2824   if test "$GCC" = yes; then
2825     CFLAGS="-O2"
2826   else
2827     CFLAGS=
2828   fi
2829 fi
2830 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2831 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_cc_c89+set}" = set; then
2833   echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835   ac_cv_prog_cc_c89=no
2836 ac_save_CC=$CC
2837 cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 #include <stdarg.h>
2844 #include <stdio.h>
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2851      char **p;
2852      int i;
2853 {
2854   return p[i];
2855 }
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2857 {
2858   char *s;
2859   va_list v;
2860   va_start (v,p);
2861   s = g (p, va_arg (v,int));
2862   va_end (v);
2863   return s;
2864 }
2865
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2867    function prototypes and stuff, but not '\xHH' hex character constants.
2868    These don't provoke an error unfortunately, instead are silently treated
2869    as 'x'.  The following induces an error, until -std is added to get
2870    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2871    array size at least.  It's necessary to write '\x00'==0 to get something
2872    that's true only with -std.  */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2874
2875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2876    inside strings and character constants.  */
2877 #define FOO(x) 'x'
2878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2879
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 int argc;
2885 char **argv;
2886 int
2887 main ()
2888 {
2889 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2895         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2896 do
2897   CC="$ac_save_CC $ac_arg"
2898   rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compile") 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } && {
2912          test -z "$ac_c_werror_flag" ||
2913          test ! -s conftest.err
2914        } && test -s conftest.$ac_objext; then
2915   ac_cv_prog_cc_c89=$ac_arg
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920
2921 fi
2922
2923 rm -f core conftest.err conftest.$ac_objext
2924   test "x$ac_cv_prog_cc_c89" != "xno" && break
2925 done
2926 rm -f conftest.$ac_ext
2927 CC=$ac_save_CC
2928
2929 fi
2930 # AC_CACHE_VAL
2931 case "x$ac_cv_prog_cc_c89" in
2932   x)
2933     { echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6; } ;;
2935   xno)
2936     { echo "$as_me:$LINENO: result: unsupported" >&5
2937 echo "${ECHO_T}unsupported" >&6; } ;;
2938   *)
2939     CC="$CC $ac_cv_prog_cc_c89"
2940     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2942 esac
2943
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2960   CPP=
2961 fi
2962 if test -z "$CPP"; then
2963   if test "${ac_cv_prog_CPP+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966       # Double quotes because CPP needs to be expanded
2967     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968     do
2969       ac_preproc_ok=false
2970 for ac_c_preproc_warn_flag in '' yes
2971 do
2972   # Use a header file that comes with gcc, so configuring glibc
2973   # with a fresh cross-compiler works.
2974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975   # <limits.h> exists even on freestanding compilers.
2976   # On the NeXT, cc -E runs the code through the compiler's parser,
2977   # not just through cpp. "Syntax error" is here to catch this case.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #ifdef __STDC__
2985 # include <limits.h>
2986 #else
2987 # include <assert.h>
2988 #endif
2989                      Syntax error
2990 _ACEOF
2991 if { (ac_try="$ac_cpp conftest.$ac_ext"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } >/dev/null && {
3004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3005          test ! -s conftest.err
3006        }; then
3007   :
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012   # Broken: fails on valid input.
3013 continue
3014 fi
3015
3016 rm -f conftest.err conftest.$ac_ext
3017
3018   # OK, works on sane cases.  Now check whether nonexistent headers
3019   # can be detected and how.
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026 #include <ac_nonexistent.h>
3027 _ACEOF
3028 if { (ac_try="$ac_cpp conftest.$ac_ext"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } >/dev/null && {
3041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042          test ! -s conftest.err
3043        }; then
3044   # Broken: success on invalid input.
3045 continue
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050   # Passes both tests.
3051 ac_preproc_ok=:
3052 break
3053 fi
3054
3055 rm -f conftest.err conftest.$ac_ext
3056
3057 done
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then
3061   break
3062 fi
3063
3064     done
3065     ac_cv_prog_CPP=$CPP
3066
3067 fi
3068   CPP=$ac_cv_prog_CPP
3069 else
3070   ac_cv_prog_CPP=$CPP
3071 fi
3072 { echo "$as_me:$LINENO: result: $CPP" >&5
3073 echo "${ECHO_T}$CPP" >&6; }
3074 ac_preproc_ok=false
3075 for ac_c_preproc_warn_flag in '' yes
3076 do
3077   # Use a header file that comes with gcc, so configuring glibc
3078   # with a fresh cross-compiler works.
3079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080   # <limits.h> exists even on freestanding compilers.
3081   # On the NeXT, cc -E runs the code through the compiler's parser,
3082   # not just through cpp. "Syntax error" is here to catch this case.
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089 #ifdef __STDC__
3090 # include <limits.h>
3091 #else
3092 # include <assert.h>
3093 #endif
3094                      Syntax error
3095 _ACEOF
3096 if { (ac_try="$ac_cpp conftest.$ac_ext"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null && {
3109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        }; then
3112   :
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117   # Broken: fails on valid input.
3118 continue
3119 fi
3120
3121 rm -f conftest.err conftest.$ac_ext
3122
3123   # OK, works on sane cases.  Now check whether nonexistent headers
3124   # can be detected and how.
3125   cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h.  */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h.  */
3131 #include <ac_nonexistent.h>
3132 _ACEOF
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } >/dev/null && {
3146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147          test ! -s conftest.err
3148        }; then
3149   # Broken: success on invalid input.
3150 continue
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   # Passes both tests.
3156 ac_preproc_ok=:
3157 break
3158 fi
3159
3160 rm -f conftest.err conftest.$ac_ext
3161
3162 done
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164 rm -f conftest.err conftest.$ac_ext
3165 if $ac_preproc_ok; then
3166   :
3167 else
3168   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&2;}
3172    { (exit 1); exit 1; }; }
3173 fi
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
3182 # Check whether --with-linker was given.
3183 if test "${with_linker+set}" = set; then
3184   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3185 echo "${ECHO_T}LD=$withval" >&6; }
3186 LD=$withval
3187 else
3188   if test -z "$LD" ; then LD=$CC; fi
3189 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3190 echo "${ECHO_T}LD defaults to $LD" >&6; }
3191 fi
3192 export LD
3193
3194
3195 # Check whether --with-ccopts was given.
3196 if test "${with_ccopts+set}" = set; then
3197   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3198 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3199 CFLAGS=$withval
3200 fi
3201
3202
3203 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   # Extract the first word of "grep ggrep" to use in msg output
3209 if test -z "$GREP"; then
3210 set dummy grep ggrep; ac_prog_name=$2
3211 if test "${ac_cv_path_GREP+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   ac_path_GREP_found=false
3215 # Loop through the user's path and test for each of PROGNAME-LIST
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_prog in grep ggrep; do
3222   for ac_exec_ext in '' $ac_executable_extensions; do
3223     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225     # Check for GNU ac_path_GREP and select it if it is found.
3226   # Check for GNU $ac_path_GREP
3227 case `"$ac_path_GREP" --version 2>&1` in
3228 *GNU*)
3229   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3230 *)
3231   ac_count=0
3232   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233   while :
3234   do
3235     cat "conftest.in" "conftest.in" >"conftest.tmp"
3236     mv "conftest.tmp" "conftest.in"
3237     cp "conftest.in" "conftest.nl"
3238     echo 'GREP' >> "conftest.nl"
3239     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241     ac_count=`expr $ac_count + 1`
3242     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243       # Best one so far, save it but keep looking for a better one
3244       ac_cv_path_GREP="$ac_path_GREP"
3245       ac_path_GREP_max=$ac_count
3246     fi
3247     # 10*(2^10) chars as input seems more than enough
3248     test $ac_count -gt 10 && break
3249   done
3250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251 esac
3252
3253
3254     $ac_path_GREP_found && break 3
3255   done
3256 done
3257
3258 done
3259 IFS=$as_save_IFS
3260
3261
3262 fi
3263
3264 GREP="$ac_cv_path_GREP"
3265 if test -z "$GREP"; then
3266   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 else
3272   ac_cv_path_GREP=$GREP
3273 fi
3274
3275
3276 fi
3277 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279  GREP="$ac_cv_path_GREP"
3280
3281
3282 { echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288    then ac_cv_path_EGREP="$GREP -E"
3289    else
3290      # Extract the first word of "egrep" to use in msg output
3291 if test -z "$EGREP"; then
3292 set dummy egrep; ac_prog_name=$2
3293 if test "${ac_cv_path_EGREP+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_prog in egrep; do
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307     # Check for GNU ac_path_EGREP and select it if it is found.
3308   # Check for GNU $ac_path_EGREP
3309 case `"$ac_path_EGREP" --version 2>&1` in
3310 *GNU*)
3311   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312 *)
3313   ac_count=0
3314   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315   while :
3316   do
3317     cat "conftest.in" "conftest.in" >"conftest.tmp"
3318     mv "conftest.tmp" "conftest.in"
3319     cp "conftest.in" "conftest.nl"
3320     echo 'EGREP' >> "conftest.nl"
3321     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323     ac_count=`expr $ac_count + 1`
3324     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325       # Best one so far, save it but keep looking for a better one
3326       ac_cv_path_EGREP="$ac_path_EGREP"
3327       ac_path_EGREP_max=$ac_count
3328     fi
3329     # 10*(2^10) chars as input seems more than enough
3330     test $ac_count -gt 10 && break
3331   done
3332   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3334
3335
3336     $ac_path_EGREP_found && break 3
3337   done
3338 done
3339
3340 done
3341 IFS=$as_save_IFS
3342
3343
3344 fi
3345
3346 EGREP="$ac_cv_path_EGREP"
3347 if test -z "$EGREP"; then
3348   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350    { (exit 1); exit 1; }; }
3351 fi
3352
3353 else
3354   ac_cv_path_EGREP=$EGREP
3355 fi
3356
3357
3358    fi
3359 fi
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362  EGREP="$ac_cv_path_EGREP"
3363
3364
3365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3367 if test "${ac_cv_header_stdc+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #include <stdlib.h>
3377 #include <stdarg.h>
3378 #include <string.h>
3379 #include <float.h>
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compile") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } && {
3403          test -z "$ac_c_werror_flag" ||
3404          test ! -s conftest.err
3405        } && test -s conftest.$ac_objext; then
3406   ac_cv_header_stdc=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411         ac_cv_header_stdc=no
3412 fi
3413
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415
3416 if test $ac_cv_header_stdc = yes; then
3417   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include <string.h>
3425
3426 _ACEOF
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428   $EGREP "memchr" >/dev/null 2>&1; then
3429   :
3430 else
3431   ac_cv_header_stdc=no
3432 fi
3433 rm -f conftest*
3434
3435 fi
3436
3437 if test $ac_cv_header_stdc = yes; then
3438   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #include <stdlib.h>
3446
3447 _ACEOF
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449   $EGREP "free" >/dev/null 2>&1; then
3450   :
3451 else
3452   ac_cv_header_stdc=no
3453 fi
3454 rm -f conftest*
3455
3456 fi
3457
3458 if test $ac_cv_header_stdc = yes; then
3459   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460   if test "$cross_compiling" = yes; then
3461   :
3462 else
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ctype.h>
3470 #include <stdlib.h>
3471 #if ((' ' & 0x0FF) == 0x020)
3472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3474 #else
3475 # define ISLOWER(c) \
3476                    (('a' <= (c) && (c) <= 'i') \
3477                      || ('j' <= (c) && (c) <= 'r') \
3478                      || ('s' <= (c) && (c) <= 'z'))
3479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480 #endif
3481
3482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483 int
3484 main ()
3485 {
3486   int i;
3487   for (i = 0; i < 256; i++)
3488     if (XOR (islower (i), ISLOWER (i))
3489         || toupper (i) != TOUPPER (i))
3490       return 2;
3491   return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest$ac_exeext
3495 if { (ac_try="$ac_link"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_link") 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3505   { (case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_try") 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   :
3515 else
3516   echo "$as_me: program exited with status $ac_status" >&5
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ( exit $ac_status )
3521 ac_cv_header_stdc=no
3522 fi
3523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524 fi
3525
3526
3527 fi
3528 fi
3529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3531 if test $ac_cv_header_stdc = yes; then
3532
3533 cat >>confdefs.h <<\_ACEOF
3534 #define STDC_HEADERS 1
3535 _ACEOF
3536
3537 fi
3538
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3550                   inttypes.h stdint.h unistd.h
3551 do
3552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 $ac_includes_default
3565
3566 #include <$ac_header>
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_compile") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } && {
3582          test -z "$ac_c_werror_flag" ||
3583          test ! -s conftest.err
3584        } && test -s conftest.$ac_objext; then
3585   eval "$as_ac_Header=yes"
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590         eval "$as_ac_Header=no"
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 ac_res=`eval echo '${'$as_ac_Header'}'`
3596                { echo "$as_me:$LINENO: result: $ac_res" >&5
3597 echo "${ECHO_T}$ac_res" >&6; }
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599   cat >>confdefs.h <<_ACEOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 _ACEOF
3602
3603 fi
3604
3605 done
3606
3607
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3610 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3611 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3615 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3616 else
3617   # Is the header compilable?
3618 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3619 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 $ac_includes_default
3627 #include <linux/fs.h>
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_compile") 2>conftest.er1
3637   ac_status=$?
3638   grep -v '^ *+' conftest.er1 >conftest.err
3639   rm -f conftest.er1
3640   cat conftest.err >&5
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); } && {
3643          test -z "$ac_c_werror_flag" ||
3644          test ! -s conftest.err
3645        } && test -s conftest.$ac_objext; then
3646   ac_header_compiler=yes
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         ac_header_compiler=no
3652 fi
3653
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656 echo "${ECHO_T}$ac_header_compiler" >&6; }
3657
3658 # Is the header present?
3659 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3660 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <linux/fs.h>
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null && {
3682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        }; then
3685   ac_header_preproc=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690   ac_header_preproc=no
3691 fi
3692
3693 rm -f conftest.err conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695 echo "${ECHO_T}$ac_header_preproc" >&6; }
3696
3697 # So?  What about this header?
3698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3699   yes:no: )
3700     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3701 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3703 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3704     ac_header_preproc=yes
3705     ;;
3706   no:yes:* )
3707     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3708 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3709     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3710 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3712 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3714 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3715     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3716 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3717     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3718 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3719
3720     ;;
3721 esac
3722 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3723 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3724 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   ac_cv_header_linux_fs_h=$ac_header_preproc
3728 fi
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3730 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3731
3732 fi
3733 if test $ac_cv_header_linux_fs_h = yes; then
3734   linux_headers=yes
3735 else
3736   linux_headers=no
3737 fi
3738
3739
3740 if test "$linux_headers" != yes; then
3741   LINUX_INCLUDE='-I$(top_builddir)/include'
3742 fi
3743
3744 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3745 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3746 if test "$GCC" = yes
3747 then
3748     case "$host_cpu" in
3749         alpha)          addcflags="-mieee" ;;
3750     esac
3751 fi
3752 if test "x$addcflags" != x
3753 then
3754     { echo "$as_me:$LINENO: result: $addcflags" >&5
3755 echo "${ECHO_T}$addcflags" >&6; }
3756     CFLAGS="$addcflags $CFLAGS"
3757 else
3758     { echo "$as_me:$LINENO: result: (none)" >&5
3759 echo "${ECHO_T}(none)" >&6; }
3760 fi
3761 LIB_EXT=.a
3762 STATIC_LIB_EXT=.a
3763 PROFILE_LIB_EXT=.a
3764
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then
3767   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3768 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3769 LDFLAGS=$withval
3770 else
3771   LDFLAGS=
3772 fi
3773
3774
3775 # Check whether --with-root-prefix was given.
3776 if test "${with_root_prefix+set}" = set; then
3777   withval=$with_root_prefix; root_prefix=$withval
3778 else
3779   root_prefix=NONE
3780 fi
3781 # Check whether --enable-maintainer-mode was given.
3782 if test "${enable_maintainer_mode+set}" = set; then
3783   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3784 then
3785         MAINTAINER_CMT=#
3786         { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3787 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3788 else
3789         MAINTAINER_CMT=
3790         { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3791 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3792 fi
3793
3794 else
3795   MAINTAINER_CMT=#
3796 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3797 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3798
3799 fi
3800
3801
3802 # Check whether --enable-compression was given.
3803 if test "${enable_compression+set}" = set; then
3804   enableval=$enable_compression; if test "$enableval" = "no"
3805 then
3806         { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3807 echo "${ECHO_T}Disabling compression support" >&6; }
3808 else
3809         cat >>confdefs.h <<\_ACEOF
3810 #define ENABLE_COMPRESSION 1
3811 _ACEOF
3812
3813         { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3814 echo "${ECHO_T}Enabling compression support" >&6; }
3815         { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3816 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3817 fi
3818
3819 else
3820   { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3821 echo "${ECHO_T}Disabling compression support by default" >&6; }
3822
3823 fi
3824
3825 # Check whether --enable-htree was given.
3826 if test "${enable_htree+set}" = set; then
3827   enableval=$enable_htree; if test "$enableval" = "no"
3828 then
3829         HTREE_CMT=#
3830         { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3831 echo "${ECHO_T}Disabling htree directory support" >&6; }
3832 else
3833         HTREE_CMT=
3834         cat >>confdefs.h <<\_ACEOF
3835 #define ENABLE_HTREE 1
3836 _ACEOF
3837
3838         { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3839 echo "${ECHO_T}Enabling htree directory support" >&6; }
3840 fi
3841
3842 else
3843   HTREE_CMT=
3844 cat >>confdefs.h <<\_ACEOF
3845 #define ENABLE_HTREE 1
3846 _ACEOF
3847
3848 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3849 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3850
3851 fi
3852
3853
3854 E2_PKG_CONFIG_STATIC=--static
3855 # Check whether --enable-elf-shlibs was given.
3856 if test "${enable_elf_shlibs+set}" = set; then
3857   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3858 then
3859         ELF_CMT=#
3860         MAKEFILE_ELF=/dev/null
3861         { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3862 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3863 else
3864         E2_PKG_CONFIG_STATIC=
3865         ELF_CMT=
3866         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3867         case "$host_os" in
3868         solaris2.*)
3869                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3870         ;;
3871         esac
3872         BINARY_TYPE=elfbin
3873         LIB_EXT=.so
3874         { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3875 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3876 fi
3877
3878 else
3879   MAKEFILE_ELF=/dev/null
3880 ELF_CMT=#
3881 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3882 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3883
3884 fi
3885
3886
3887
3888 # Check whether --enable-bsd-shlibs was given.
3889 if test "${enable_bsd_shlibs+set}" = set; then
3890   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3891 then
3892         BSDLIB_CMT=#
3893         MAKEFILE_BSDLIB=/dev/null
3894         { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3895 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3896 else
3897         E2_PKG_CONFIG_STATIC=
3898         BSDLIB_CMT=
3899         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3900         LIB_EXT=.so
3901         case "$host_os" in
3902         darwin*)
3903                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3904                 LIB_EXT=.dylib
3905         ;;
3906         esac
3907         { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3908 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3909 fi
3910
3911 else
3912   MAKEFILE_BSDLIB=/dev/null
3913 BSDLIB_CMT=#
3914 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3915 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3916
3917 fi
3918
3919
3920
3921 # Check whether --enable-profile was given.
3922 if test "${enable_profile+set}" = set; then
3923   enableval=$enable_profile; if test "$enableval" = "no"
3924 then
3925         PROFILE_CMT=#
3926         MAKEFILE_PROFILE=/dev/null
3927         { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3928 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3929 else
3930         PROFILE_CMT=
3931         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3932         PROFILED_LIB_EXT=_p.a
3933         { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3934 echo "${ECHO_T}Building profiling libraries" >&6; }
3935 fi
3936
3937 else
3938   PROFILE_CMT=#
3939 MAKEFILE_PROFILE=/dev/null
3940 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3941 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3942
3943 fi
3944
3945
3946
3947 # Check whether --enable-checker was given.
3948 if test "${enable_checker+set}" = set; then
3949   enableval=$enable_checker; if test "$enableval" = "no"
3950 then
3951         CHECKER_CMT=#
3952         MAKEFILE_CHECKER=/dev/null
3953         { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3954 echo "${ECHO_T}Disabling checker libraries" >&6; }
3955 else
3956         CHECKER_CMT=
3957         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3958         { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3959 echo "${ECHO_T}Building checker libraries" >&6; }
3960 fi
3961
3962 else
3963   CHECKER_CMT=#
3964 MAKEFILE_CHECKER=/dev/null
3965 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3966 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3967
3968 fi
3969
3970
3971
3972
3973
3974
3975 # Check whether --enable-jbd-debug was given.
3976 if test "${enable_jbd_debug+set}" = set; then
3977   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3978 then
3979         { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3980 echo "${ECHO_T}Disabling journal debugging" >&6; }
3981 else
3982         cat >>confdefs.h <<\_ACEOF
3983 #define CONFIG_JBD_DEBUG 1
3984 _ACEOF
3985
3986         { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3987 echo "${ECHO_T}Enabling journal debugging" >&6; }
3988 fi
3989
3990 else
3991   { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3992 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3993
3994 fi
3995
3996 # Check whether --enable-blkid-debug was given.
3997 if test "${enable_blkid_debug+set}" = set; then
3998   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3999 then
4000         { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4001 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4002 else
4003         cat >>confdefs.h <<\_ACEOF
4004 #define CONFIG_BLKID_DEBUG 1
4005 _ACEOF
4006
4007         { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4008 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4009 fi
4010
4011 else
4012   { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4013 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4014
4015 fi
4016
4017 # Check whether --enable-testio-debug was given.
4018 if test "${enable_testio_debug+set}" = set; then
4019   enableval=$enable_testio_debug; if test "$enableval" = "no"
4020 then
4021         { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4022 echo "${ECHO_T}Disabling testio debugging" >&6; }
4023 else
4024         cat >>confdefs.h <<\_ACEOF
4025 #define CONFIG_TESTIO_DEBUG 1
4026 _ACEOF
4027
4028         { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4029 echo "${ECHO_T}Enabling testio debugging" >&6; }
4030 fi
4031
4032 else
4033   { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4034 echo "${ECHO_T}Disabling testio debugging by default" >&6; }
4035
4036 fi
4037
4038 # Check whether --enable-debugfs was given.
4039 if test "${enable_debugfs+set}" = set; then
4040   enableval=$enable_debugfs; if test "$enableval" = "no"
4041 then
4042         { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4043 echo "${ECHO_T}Disabling debugfs support" >&6; }
4044         DEBUGFS_CMT="#"
4045 else
4046         DEBUGFS_CMT=
4047         { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4048 echo "${ECHO_T}Enabling debugfs support" >&6; }
4049 fi
4050
4051 else
4052   { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4053 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4054 DEBUGFS_CMT=
4055
4056 fi
4057
4058
4059 # Check whether --enable-imager was given.
4060 if test "${enable_imager+set}" = set; then
4061   enableval=$enable_imager; if test "$enableval" = "no"
4062 then
4063         { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4064 echo "${ECHO_T}Disabling e2image support" >&6; }
4065         IMAGER_CMT="#"
4066 else
4067         IMAGER_CMT=
4068         { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4069 echo "${ECHO_T}Enabling e2image support" >&6; }
4070 fi
4071
4072 else
4073   { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4074 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4075 IMAGER_CMT=
4076
4077 fi
4078
4079
4080 # Check whether --enable-resizer was given.
4081 if test "${enable_resizer+set}" = set; then
4082   enableval=$enable_resizer; if test "$enableval" = "no"
4083 then
4084         { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4085 echo "${ECHO_T}Disabling e2resize support" >&6; }
4086         RESIZER_CMT="#"
4087 else
4088         RESIZER_CMT=
4089         { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4090 echo "${ECHO_T}Enabling e2resize support" >&6; }
4091 fi
4092
4093 else
4094   { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4095 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4096 RESIZER_CMT=
4097
4098 fi
4099
4100
4101 # Check whether --enable-fsck was given.
4102 if test "${enable_fsck+set}" = set; then
4103   enableval=$enable_fsck; if test "$enableval" = "no"
4104 then
4105         FSCK_PROG='' FSCK_MAN=''
4106         { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4107 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4108 else
4109         FSCK_PROG=fsck FSCK_MAN=fsck.8
4110         { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4111 echo "${ECHO_T}Building fsck wrapper" >&6; }
4112 fi
4113
4114 else
4115   case "$host_os" in
4116   gnu*)
4117     FSCK_PROG='' FSCK_MAN=''
4118     { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4119 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4120     ;;
4121   *)
4122     FSCK_PROG=fsck FSCK_MAN=fsck.8
4123     { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4124 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4125 esac
4126
4127 fi
4128
4129
4130
4131 # Check whether --enable-e2initrd-helper was given.
4132 if test "${enable_e2initrd_helper+set}" = set; then
4133   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4134 then
4135         E2INITRD_PROG='' E2INITRD_MAN=''
4136         { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4137 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4138 else
4139         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4140         { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4141 echo "${ECHO_T}Building e2initrd helper" >&6; }
4142 fi
4143
4144 else
4145   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4146 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4147 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4148
4149 fi
4150
4151
4152
4153 STATIC_BLKID_DEVMAPPER_LIBS=''
4154 # Check whether --enable-blkid-devmapper was given.
4155 if test "${enable_blkid_devmapper+set}" = set; then
4156   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4157 then
4158         { echo "$as_me:$LINENO: result: Disabling device-mapper support" >&5
4159 echo "${ECHO_T}Disabling device-mapper support" >&6; }
4160         DEVMAPPER_REQ=''
4161         DEVMAPPER_LIBS=''
4162         STATIC_DEVMAPPER_LIBS=''
4163 else
4164         cat >>confdefs.h <<\_ACEOF
4165 #define HAVE_DEVMAPPER 1
4166 _ACEOF
4167
4168         { echo "$as_me:$LINENO: result: Enabling device-mapper support" >&5
4169 echo "${ECHO_T}Enabling device-mapper support" >&6; }
4170
4171
4172
4173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4174         if test -n "$ac_tool_prefix"; then
4175   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   case $PKG_CONFIG in
4183   [\\/]* | ?:[\\/]*)
4184   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4185   ;;
4186   *)
4187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192   for ac_exec_ext in '' $ac_executable_extensions; do
4193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202   ;;
4203 esac
4204 fi
4205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4206 if test -n "$PKG_CONFIG"; then
4207   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4208 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4209 else
4210   { echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6; }
4212 fi
4213
4214
4215 fi
4216 if test -z "$ac_cv_path_PKG_CONFIG"; then
4217   ac_pt_PKG_CONFIG=$PKG_CONFIG
4218   # Extract the first word of "pkg-config", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   case $ac_pt_PKG_CONFIG in
4226   [\\/]* | ?:[\\/]*)
4227   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4228   ;;
4229   *)
4230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235   for ac_exec_ext in '' $ac_executable_extensions; do
4236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245   ;;
4246 esac
4247 fi
4248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4249 if test -n "$ac_pt_PKG_CONFIG"; then
4250   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4251 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4252 else
4253   { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4255 fi
4256
4257   if test "x$ac_pt_PKG_CONFIG" = x; then
4258     PKG_CONFIG=""
4259   else
4260     case $cross_compiling:$ac_tool_warned in
4261 yes:)
4262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4263 whose name does not start with the host triplet.  If you think this
4264 configuration is useful to you, please write to autoconf@gnu.org." >&5
4265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4266 whose name does not start with the host triplet.  If you think this
4267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4268 ac_tool_warned=yes ;;
4269 esac
4270     PKG_CONFIG=$ac_pt_PKG_CONFIG
4271   fi
4272 else
4273   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4274 fi
4275
4276 fi
4277 if test -n "$PKG_CONFIG"; then
4278         _pkg_min_version=0.9.0
4279         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4280 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4281         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4282                 { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4284         else
4285                 { echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6; }
4287                 PKG_CONFIG=""
4288         fi
4289
4290 fi
4291
4292         if test -z "$PKG_CONFIG"; then
4293                 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4294 echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4295    { (exit 1); exit 1; }; }
4296         fi
4297
4298         { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4299 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4300 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   ac_check_lib_save_LIBS=$LIBS
4304 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311
4312 /* Override any GCC internal prototype to avoid an error.
4313    Use char because int might match the return type of a GCC
4314    builtin and then its argument prototype would still apply.  */
4315 #ifdef __cplusplus
4316 extern "C"
4317 #endif
4318 char dm_tree_create ();
4319 int
4320 main ()
4321 {
4322 return dm_tree_create ();
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_link") 2>conftest.er1
4335   ac_status=$?
4336   grep -v '^ *+' conftest.er1 >conftest.err
4337   rm -f conftest.er1
4338   cat conftest.err >&5
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } && {
4341          test -z "$ac_c_werror_flag" ||
4342          test ! -s conftest.err
4343        } && test -s conftest$ac_exeext &&
4344        $as_test_x conftest$ac_exeext; then
4345   ac_cv_lib_devmapper_dm_tree_create=yes
4346 else
4347   echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         ac_cv_lib_devmapper_dm_tree_create=no
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4354       conftest$ac_exeext conftest.$ac_ext
4355 LIBS=$ac_check_lib_save_LIBS
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4358 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4359 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4360   DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4361                  STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4362                  DEVMAPPER_REQ="devmapper";
4363                  DEVMAPPER_PC_LIBS="-ldevmapper"
4364 else
4365   { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4366 echo "$as_me: error: device-mapper library not found" >&2;}
4367    { (exit 1); exit 1; }; }
4368 fi
4369
4370         # work around stupid devmapper.pc bug in Debian
4371         case "$STATIC_DEVMAPPER_LIBS" in
4372         *pthread*)
4373             ;;
4374         *)
4375             { echo "$as_me:$LINENO: WARNING: Working around Debian bug 390243..." >&5
4376 echo "$as_me: WARNING: Working around Debian bug 390243..." >&2;}
4377             STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4378             ;;
4379         esac
4380         if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4381             DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4382             STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4383         fi
4384 fi
4385
4386 else
4387   { echo "$as_me:$LINENO: result: Disabling device-mapper support by default" >&5
4388 echo "${ECHO_T}Disabling device-mapper support by default" >&6; }
4389
4390 fi
4391
4392
4393
4394
4395
4396
4397 # Check whether --enable-tls was given.
4398 if test "${enable_tls+set}" = set; then
4399   enableval=$enable_tls; if test "$enableval" = "no"
4400 then
4401         try_tls=""
4402         { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4403 echo "${ECHO_T}Disabling thread local support" >&6; }
4404 else
4405         try_tls="yes"
4406         { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4407 echo "${ECHO_T}Enabling thread local support" >&6; }
4408 fi
4409
4410 else
4411   if test -n "$WITH_DIET_LIBC"
4412 then
4413         try_tls=""
4414         { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4415 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4416 else
4417         try_tls="yes"
4418         { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4419 echo "${ECHO_T}Try using thread local support by default" >&6; }
4420 fi
4421
4422 fi
4423
4424 if test "$try_tls" = "yes"
4425 then
4426
4427   { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4428 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4429   if test "${ac_cv_tls+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432
4433     ax_tls_keywords="__thread __declspec(thread) none"
4434     for ax_tls_keyword in $ax_tls_keywords; do
4435        case $ax_tls_keyword in
4436           none) ac_cv_tls=none ; break ;;
4437           *)
4438              cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 #include <stdlib.h>
4445                  static void
4446                  foo(void) {
4447                  static  $ax_tls_keyword  int bar;
4448                  exit(1);
4449                  }
4450 int
4451 main ()
4452 {
4453
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4460 case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && {
4472          test -z "$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        } && test -s conftest.$ac_objext; then
4475   ac_cv_tls=$ax_tls_keyword ; break
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         ac_cv_tls=none
4481
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485           esac
4486     done
4487
4488 fi
4489
4490
4491   if test "$ac_cv_tls" != "none"; then
4492
4493 cat >>confdefs.h <<_ACEOF
4494 #define TLS $ac_cv_tls
4495 _ACEOF
4496
4497   fi
4498   { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4499 echo "${ECHO_T}$ac_cv_tls" >&6; }
4500
4501 fi
4502 # Check whether --enable-uuidd was given.
4503 if test "${enable_uuidd+set}" = set; then
4504   enableval=$enable_uuidd; if test "$enableval" = "no"
4505 then
4506         { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4507 echo "${ECHO_T}Not building uuidd" >&6; }
4508         UUIDD_CMT="#"
4509 else
4510         cat >>confdefs.h <<\_ACEOF
4511 #define USE_UUIDD 1
4512 _ACEOF
4513
4514         UUIDD_CMT=""
4515         { echo "$as_me:$LINENO: result: Building uuidd" >&5
4516 echo "${ECHO_T}Building uuidd" >&6; }
4517 fi
4518
4519 else
4520   cat >>confdefs.h <<\_ACEOF
4521 #define USE_UUIDD 1
4522 _ACEOF
4523
4524 UUIDD_CMT=""
4525 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4526 echo "${ECHO_T}Building uuidd by default" >&6; }
4527
4528 fi
4529
4530
4531 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4532
4533 GETTEXT_PACKAGE=e2fsprogs
4534 PACKAGE=e2fsprogs
4535 VERSION="$E2FSPROGS_VERSION"
4536 VERSION=0.14.1
4537 cat >>confdefs.h <<_ACEOF
4538 #define PACKAGE "$PACKAGE"
4539 _ACEOF
4540
4541 cat >>confdefs.h <<_ACEOF
4542 #define VERSION "$VERSION"
4543 _ACEOF
4544
4545
4546
4547
4548
4549 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4550 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4551 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4552 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   cat >conftest.make <<\_ACEOF
4556 SHELL = /bin/sh
4557 all:
4558         @echo '@@@%%%=$(MAKE)=@@@%%%'
4559 _ACEOF
4560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4562   *@@@%%%=?*=@@@%%%*)
4563     eval ac_cv_prog_make_${ac_make}_set=yes;;
4564   *)
4565     eval ac_cv_prog_make_${ac_make}_set=no;;
4566 esac
4567 rm -f conftest.make
4568 fi
4569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4570   { echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6; }
4572   SET_MAKE=
4573 else
4574   { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576   SET_MAKE="MAKE=${MAKE-make}"
4577 fi
4578
4579 # Find a good install program.  We prefer a C program (faster),
4580 # so one script is as good as another.  But avoid the broken or
4581 # incompatible versions:
4582 # SysV /etc/install, /usr/sbin/install
4583 # SunOS /usr/etc/install
4584 # IRIX /sbin/install
4585 # AIX /bin/install
4586 # AmigaOS /C/install, which installs bootblocks on floppy discs
4587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4590 # OS/2's system install, which has a completely different semantic
4591 # ./install, which can be erroneously created by make from ./install.sh.
4592 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4594 if test -z "$INSTALL"; then
4595 if test "${ac_cv_path_install+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   # Account for people who put trailing slashes in PATH elements.
4604 case $as_dir/ in
4605   ./ | .// | /cC/* | \
4606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4607   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4608   /usr/ucb/* ) ;;
4609   *)
4610     # OSF1 and SCO ODT 3.0 have their own names for install.
4611     # Don't use installbsd from OSF since it installs stuff as root
4612     # by default.
4613     for ac_prog in ginstall scoinst install; do
4614       for ac_exec_ext in '' $ac_executable_extensions; do
4615         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4616           if test $ac_prog = install &&
4617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4618             # AIX install.  It has an incompatible calling convention.
4619             :
4620           elif test $ac_prog = install &&
4621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4622             # program-specific install script used by HP pwplus--don't use.
4623             :
4624           else
4625             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4626             break 3
4627           fi
4628         fi
4629       done
4630     done
4631     ;;
4632 esac
4633 done
4634 IFS=$as_save_IFS
4635
4636
4637 fi
4638   if test "${ac_cv_path_install+set}" = set; then
4639     INSTALL=$ac_cv_path_install
4640   else
4641     # As a last resort, use the slow shell script.  Don't cache a
4642     # value for INSTALL within a source directory, because that will
4643     # break other packages using the cache if that directory is
4644     # removed, or if the value is a relative name.
4645     INSTALL=$ac_install_sh
4646   fi
4647 fi
4648 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4649 echo "${ECHO_T}$INSTALL" >&6; }
4650
4651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4652 # It thinks the first close brace ends the variable substitution.
4653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4654
4655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4656
4657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4658
4659
4660         MKINSTALLDIRS=
4661   if test -n "$ac_aux_dir"; then
4662     case "$ac_aux_dir" in
4663       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4664       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4665     esac
4666   fi
4667   if test -z "$MKINSTALLDIRS"; then
4668     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4669   fi
4670
4671
4672
4673   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4674 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4675     # Check whether --enable-nls was given.
4676 if test "${enable_nls+set}" = set; then
4677   enableval=$enable_nls; USE_NLS=$enableval
4678 else
4679   USE_NLS=yes
4680 fi
4681
4682   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4683 echo "${ECHO_T}$USE_NLS" >&6; }
4684
4685
4686
4687
4688
4689
4690 # Prepare PATH_SEPARATOR.
4691 # The user is always right.
4692 if test "${PATH_SEPARATOR+set}" != set; then
4693   echo "#! /bin/sh" >conf$$.sh
4694   echo  "exit 0"   >>conf$$.sh
4695   chmod +x conf$$.sh
4696   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4697     PATH_SEPARATOR=';'
4698   else
4699     PATH_SEPARATOR=:
4700   fi
4701   rm -f conf$$.sh
4702 fi
4703
4704 # Find out how to test for executable files. Don't use a zero-byte file,
4705 # as systems may use methods other than mode bits to determine executability.
4706 cat >conf$$.file <<_ASEOF
4707 #! /bin/sh
4708 exit 0
4709 _ASEOF
4710 chmod +x conf$$.file
4711 if test -x conf$$.file >/dev/null 2>&1; then
4712   ac_executable_p="test -x"
4713 else
4714   ac_executable_p="test -f"
4715 fi
4716 rm -f conf$$.file
4717
4718 # Extract the first word of "msgfmt", so it can be a program name with args.
4719 set dummy msgfmt; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_path_MSGFMT+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   case "$MSGFMT" in
4726   [\\/]* | ?:[\\/]*)
4727     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4728     ;;
4729   *)
4730     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4731     for ac_dir in $PATH; do
4732       IFS="$ac_save_IFS"
4733       test -z "$ac_dir" && ac_dir=.
4734       for ac_exec_ext in '' $ac_executable_extensions; do
4735         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4736           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4737      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4738             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4739             break 2
4740           fi
4741         fi
4742       done
4743     done
4744     IFS="$ac_save_IFS"
4745   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4746     ;;
4747 esac
4748 fi
4749 MSGFMT="$ac_cv_path_MSGFMT"
4750 if test "$MSGFMT" != ":"; then
4751   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4752 echo "${ECHO_T}$MSGFMT" >&6; }
4753 else
4754   { echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6; }
4756 fi
4757
4758   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4759 set dummy gmsgfmt; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   case $GMSGFMT in
4766   [\\/]* | ?:[\\/]*)
4767   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4768   ;;
4769   *)
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4786   ;;
4787 esac
4788 fi
4789 GMSGFMT=$ac_cv_path_GMSGFMT
4790 if test -n "$GMSGFMT"; then
4791   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4792 echo "${ECHO_T}$GMSGFMT" >&6; }
4793 else
4794   { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 fi
4797
4798
4799
4800
4801 # Prepare PATH_SEPARATOR.
4802 # The user is always right.
4803 if test "${PATH_SEPARATOR+set}" != set; then
4804   echo "#! /bin/sh" >conf$$.sh
4805   echo  "exit 0"   >>conf$$.sh
4806   chmod +x conf$$.sh
4807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4808     PATH_SEPARATOR=';'
4809   else
4810     PATH_SEPARATOR=:
4811   fi
4812   rm -f conf$$.sh
4813 fi
4814
4815 # Find out how to test for executable files. Don't use a zero-byte file,
4816 # as systems may use methods other than mode bits to determine executability.
4817 cat >conf$$.file <<_ASEOF
4818 #! /bin/sh
4819 exit 0
4820 _ASEOF
4821 chmod +x conf$$.file
4822 if test -x conf$$.file >/dev/null 2>&1; then
4823   ac_executable_p="test -x"
4824 else
4825   ac_executable_p="test -f"
4826 fi
4827 rm -f conf$$.file
4828
4829 # Extract the first word of "xgettext", so it can be a program name with args.
4830 set dummy xgettext; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   case "$XGETTEXT" in
4837   [\\/]* | ?:[\\/]*)
4838     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4839     ;;
4840   *)
4841     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842     for ac_dir in $PATH; do
4843       IFS="$ac_save_IFS"
4844       test -z "$ac_dir" && ac_dir=.
4845       for ac_exec_ext in '' $ac_executable_extensions; do
4846         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4848      (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
4849             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4850             break 2
4851           fi
4852         fi
4853       done
4854     done
4855     IFS="$ac_save_IFS"
4856   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4857     ;;
4858 esac
4859 fi
4860 XGETTEXT="$ac_cv_path_XGETTEXT"
4861 if test "$XGETTEXT" != ":"; then
4862   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4863 echo "${ECHO_T}$XGETTEXT" >&6; }
4864 else
4865   { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4867 fi
4868
4869     rm -f messages.po
4870
4871
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875   echo "#! /bin/sh" >conf$$.sh
4876   echo  "exit 0"   >>conf$$.sh
4877   chmod +x conf$$.sh
4878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879     PATH_SEPARATOR=';'
4880   else
4881     PATH_SEPARATOR=:
4882   fi
4883   rm -f conf$$.sh
4884 fi
4885
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4889 #! /bin/sh
4890 exit 0
4891 _ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894   ac_executable_p="test -x"
4895 else
4896   ac_executable_p="test -f"
4897 fi
4898 rm -f conf$$.file
4899
4900 # Extract the first word of "msgmerge", so it can be a program name with args.
4901 set dummy msgmerge; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case "$MSGMERGE" in
4908   [\\/]* | ?:[\\/]*)
4909     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4910     ;;
4911   *)
4912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH; do
4914       IFS="$ac_save_IFS"
4915       test -z "$ac_dir" && ac_dir=.
4916       for ac_exec_ext in '' $ac_executable_extensions; do
4917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4919             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4920             break 2
4921           fi
4922         fi
4923       done
4924     done
4925     IFS="$ac_save_IFS"
4926   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4927     ;;
4928 esac
4929 fi
4930 MSGMERGE="$ac_cv_path_MSGMERGE"
4931 if test "$MSGMERGE" != ":"; then
4932   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4933 echo "${ECHO_T}$MSGMERGE" >&6; }
4934 else
4935   { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4938
4939
4940       if test "$GMSGFMT" != ":"; then
4941             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4942        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4943       : ;
4944     else
4945       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4946       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4947 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4948       GMSGFMT=":"
4949     fi
4950   fi
4951
4952       if test "$XGETTEXT" != ":"; then
4953             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4954        (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
4955       : ;
4956     else
4957       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4958 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4959       XGETTEXT=":"
4960     fi
4961         rm -f messages.po
4962   fi
4963
4964   ac_config_commands="$ac_config_commands default-1"
4965
4966
4967 if test -n "$ac_tool_prefix"; then
4968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$RANLIB"; then
4976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6; }
4999 else
5000   { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5002 fi
5003
5004
5005 fi
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007   ac_ct_RANLIB=$RANLIB
5008   # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   if test -n "$ac_ct_RANLIB"; then
5016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_prog_ac_ct_RANLIB="ranlib"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5039 else
5040   { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044   if test "x$ac_ct_RANLIB" = x; then
5045     RANLIB=":"
5046   else
5047     case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet.  If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet.  If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057     RANLIB=$ac_ct_RANLIB
5058   fi
5059 else
5060   RANLIB="$ac_cv_prog_RANLIB"
5061 fi
5062
5063
5064         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5065 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5066 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   ac_check_lib_save_LIBS=$LIBS
5070 LIBS="-lcposix  $LIBS"
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077
5078 /* Override any GCC internal prototype to avoid an error.
5079    Use char because int might match the return type of a GCC
5080    builtin and then its argument prototype would still apply.  */
5081 #ifdef __cplusplus
5082 extern "C"
5083 #endif
5084 char strerror ();
5085 int
5086 main ()
5087 {
5088 return strerror ();
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (ac_try="$ac_link"
5095 case "(($ac_try" in
5096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097   *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100   (eval "$ac_link") 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } && {
5107          test -z "$ac_c_werror_flag" ||
5108          test ! -s conftest.err
5109        } && test -s conftest$ac_exeext &&
5110        $as_test_x conftest$ac_exeext; then
5111   ac_cv_lib_cposix_strerror=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116         ac_cv_lib_cposix_strerror=no
5117 fi
5118
5119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5120       conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5122 fi
5123 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5124 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5125 if test $ac_cv_lib_cposix_strerror = yes; then
5126   LIBS="$LIBS -lcposix"
5127 fi
5128
5129
5130
5131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5133 if test "${ac_cv_c_const+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142
5143 int
5144 main ()
5145 {
5146 /* FIXME: Include the comments suggested by Paul. */
5147 #ifndef __cplusplus
5148   /* Ultrix mips cc rejects this.  */
5149   typedef int charset[2];
5150   const charset cs;
5151   /* SunOS 4.1.1 cc rejects this.  */
5152   char const *const *pcpcc;
5153   char **ppc;
5154   /* NEC SVR4.0.2 mips cc rejects this.  */
5155   struct point {int x, y;};
5156   static struct point const zero = {0,0};
5157   /* AIX XL C 1.02.0.0 rejects this.
5158      It does not let you subtract one const X* pointer from another in
5159      an arm of an if-expression whose if-part is not a constant
5160      expression */
5161   const char *g = "string";
5162   pcpcc = &g + (g ? g-g : 0);
5163   /* HPUX 7.0 cc rejects these. */
5164   ++pcpcc;
5165   ppc = (char**) pcpcc;
5166   pcpcc = (char const *const *) ppc;
5167   { /* SCO 3.2v4 cc rejects this.  */
5168     char *t;
5169     char const *s = 0 ? (char *) 0 : (char const *) 0;
5170
5171     *t++ = 0;
5172     if (s) return 0;
5173   }
5174   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5175     int x[] = {25, 17};
5176     const int *foo = &x[0];
5177     ++foo;
5178   }
5179   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5180     typedef const int *iptr;
5181     iptr p = 0;
5182     ++p;
5183   }
5184   { /* AIX XL C 1.02.0.0 rejects this saying
5185        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5186     struct s { int j; const int *ap[3]; };
5187     struct s *b; b->j = 5;
5188   }
5189   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5190     const int foo = 10;
5191     if (!foo) return 0;
5192   }
5193   return !cs[0] && !zero.x;
5194 #endif
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204   *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207   (eval "$ac_compile") 2>conftest.er1
5208   ac_status=$?
5209   grep -v '^ *+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } && {
5214          test -z "$ac_c_werror_flag" ||
5215          test ! -s conftest.err
5216        } && test -s conftest.$ac_objext; then
5217   ac_cv_c_const=yes
5218 else
5219   echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5221
5222         ac_cv_c_const=no
5223 fi
5224
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5228 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5229 if test $ac_cv_c_const = no; then
5230
5231 cat >>confdefs.h <<\_ACEOF
5232 #define const
5233 _ACEOF
5234
5235 fi
5236
5237
5238   { echo "$as_me:$LINENO: checking for signed" >&5
5239 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5240 if test "${bh_cv_c_signed+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249
5250 int
5251 main ()
5252 {
5253 signed char x;
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262   *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265   (eval "$ac_compile") 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } && {
5272          test -z "$ac_c_werror_flag" ||
5273          test ! -s conftest.err
5274        } && test -s conftest.$ac_objext; then
5275   bh_cv_c_signed=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280         bh_cv_c_signed=no
5281 fi
5282
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5286 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5287   if test $bh_cv_c_signed = no; then
5288
5289 cat >>confdefs.h <<\_ACEOF
5290 #define signed
5291 _ACEOF
5292
5293   fi
5294
5295 { echo "$as_me:$LINENO: checking for inline" >&5
5296 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5297 if test "${ac_cv_c_inline+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   ac_cv_c_inline=no
5301 for ac_kw in inline __inline__ __inline; do
5302   cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h.  */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h.  */
5308 #ifndef __cplusplus
5309 typedef int foo_t;
5310 static $ac_kw foo_t static_foo () {return 0; }
5311 $ac_kw foo_t foo () {return 0; }
5312 #endif
5313
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5317 case "(($ac_try" in
5318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319   *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322   (eval "$ac_compile") 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } && {
5329          test -z "$ac_c_werror_flag" ||
5330          test ! -s conftest.err
5331        } && test -s conftest.$ac_objext; then
5332   ac_cv_c_inline=$ac_kw
5333 else
5334   echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337
5338 fi
5339
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341   test "$ac_cv_c_inline" != no && break
5342 done
5343
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5346 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5347
5348
5349 case $ac_cv_c_inline in
5350   inline | yes) ;;
5351   *)
5352     case $ac_cv_c_inline in
5353       no) ac_val=;;
5354       *) ac_val=$ac_cv_c_inline;;
5355     esac
5356     cat >>confdefs.h <<_ACEOF
5357 #ifndef __cplusplus
5358 #define inline $ac_val
5359 #endif
5360 _ACEOF
5361     ;;
5362 esac
5363
5364 { echo "$as_me:$LINENO: checking for off_t" >&5
5365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5366 if test "${ac_cv_type_off_t+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 $ac_includes_default
5376 typedef off_t ac__type_new_;
5377 int
5378 main ()
5379 {
5380 if ((ac__type_new_ *) 0)
5381   return 0;
5382 if (sizeof (ac__type_new_))
5383   return 0;
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compile") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } && {
5402          test -z "$ac_c_werror_flag" ||
5403          test ! -s conftest.err
5404        } && test -s conftest.$ac_objext; then
5405   ac_cv_type_off_t=yes
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410         ac_cv_type_off_t=no
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5416 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5417 if test $ac_cv_type_off_t = yes; then
5418   :
5419 else
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define off_t long int
5423 _ACEOF
5424
5425 fi
5426
5427 { echo "$as_me:$LINENO: checking for size_t" >&5
5428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5429 if test "${ac_cv_type_size_t+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 typedef size_t ac__type_new_;
5440 int
5441 main ()
5442 {
5443 if ((ac__type_new_ *) 0)
5444   return 0;
5445 if (sizeof (ac__type_new_))
5446   return 0;
5447   ;
5448   return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455   *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458   (eval "$ac_compile") 2>conftest.er1
5459   ac_status=$?
5460   grep -v '^ *+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } && {
5465          test -z "$ac_c_werror_flag" ||
5466          test ! -s conftest.err
5467        } && test -s conftest.$ac_objext; then
5468   ac_cv_type_size_t=yes
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473         ac_cv_type_size_t=no
5474 fi
5475
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5479 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5480 if test $ac_cv_type_size_t = yes; then
5481   :
5482 else
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define size_t unsigned int
5486 _ACEOF
5487
5488 fi
5489
5490
5491   { echo "$as_me:$LINENO: checking for long long" >&5
5492 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5493 if test "${ac_cv_type_long_long+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 long long ll = 1LL; int i = 63;
5503 int
5504 main ()
5505 {
5506 long long llmax = (long long) -1;
5507      return ll << i | ll >> i | llmax / ll | llmax % ll;
5508   ;
5509   return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5514 case "(($ac_try" in
5515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516   *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519   (eval "$ac_link") 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } && {
5526          test -z "$ac_c_werror_flag" ||
5527          test ! -s conftest.err
5528        } && test -s conftest$ac_exeext &&
5529        $as_test_x conftest$ac_exeext; then
5530   ac_cv_type_long_long=yes
5531 else
5532   echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535         ac_cv_type_long_long=no
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5539       conftest$ac_exeext conftest.$ac_ext
5540 fi
5541 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5542 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5543   if test $ac_cv_type_long_long = yes; then
5544
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_LONG_LONG 1
5547 _ACEOF
5548
5549   fi
5550
5551
5552   { echo "$as_me:$LINENO: checking for long double" >&5
5553 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5554 if test "${gt_cv_c_long_double+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   if test "$GCC" = yes; then
5558        gt_cv_c_long_double=yes
5559      else
5560        cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566
5567          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5568          long double foo = 0.0;
5569          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5570          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5571
5572 int
5573 main ()
5574 {
5575
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } && {
5594          test -z "$ac_c_werror_flag" ||
5595          test ! -s conftest.err
5596        } && test -s conftest.$ac_objext; then
5597   gt_cv_c_long_double=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602         gt_cv_c_long_double=no
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606      fi
5607 fi
5608 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5609 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5610   if test $gt_cv_c_long_double = yes; then
5611
5612 cat >>confdefs.h <<\_ACEOF
5613 #define HAVE_LONG_DOUBLE 1
5614 _ACEOF
5615
5616   fi
5617
5618
5619   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5620 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5621 if test "${gt_cv_c_wchar_t+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630 #include <stddef.h>
5631        wchar_t foo = (wchar_t)'\0';
5632 int
5633 main ()
5634 {
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5642 case "(($ac_try" in
5643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644   *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647   (eval "$ac_compile") 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } && {
5654          test -z "$ac_c_werror_flag" ||
5655          test ! -s conftest.err
5656        } && test -s conftest.$ac_objext; then
5657   gt_cv_c_wchar_t=yes
5658 else
5659   echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5661
5662         gt_cv_c_wchar_t=no
5663 fi
5664
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 fi
5667 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5668 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5669   if test $gt_cv_c_wchar_t = yes; then
5670
5671 cat >>confdefs.h <<\_ACEOF
5672 #define HAVE_WCHAR_T 1
5673 _ACEOF
5674
5675   fi
5676
5677
5678   { echo "$as_me:$LINENO: checking for wint_t" >&5
5679 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5680 if test "${gt_cv_c_wint_t+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 #include <wchar.h>
5690        wint_t foo = (wchar_t)'\0';
5691 int
5692 main ()
5693 {
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706   (eval "$ac_compile") 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } && {
5713          test -z "$ac_c_werror_flag" ||
5714          test ! -s conftest.err
5715        } && test -s conftest.$ac_objext; then
5716   gt_cv_c_wint_t=yes
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721         gt_cv_c_wint_t=no
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5727 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5728   if test $gt_cv_c_wint_t = yes; then
5729
5730 cat >>confdefs.h <<\_ACEOF
5731 #define HAVE_WINT_T 1
5732 _ACEOF
5733
5734   fi
5735
5736
5737   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5738 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5739 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h.  */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h.  */
5748 #include <sys/types.h>
5749 #include <inttypes.h>
5750 int
5751 main ()
5752 {
5753 uintmax_t i = (uintmax_t) -1;
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } && {
5772          test -z "$ac_c_werror_flag" ||
5773          test ! -s conftest.err
5774        } && test -s conftest.$ac_objext; then
5775   jm_ac_cv_header_inttypes_h=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780         jm_ac_cv_header_inttypes_h=no
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5786 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5787   if test $jm_ac_cv_header_inttypes_h = yes; then
5788
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5791 _ACEOF
5792
5793   fi
5794
5795
5796   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5797 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5798 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807 #include <sys/types.h>
5808 #include <stdint.h>
5809 int
5810 main ()
5811 {
5812 uintmax_t i = (uintmax_t) -1;
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5819 case "(($ac_try" in
5820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821   *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824   (eval "$ac_compile") 2>conftest.er1
5825   ac_status=$?
5826   grep -v '^ *+' conftest.er1 >conftest.err
5827   rm -f conftest.er1
5828   cat conftest.err >&5
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); } && {
5831          test -z "$ac_c_werror_flag" ||
5832          test ! -s conftest.err
5833        } && test -s conftest.$ac_objext; then
5834   jm_ac_cv_header_stdint_h=yes
5835 else
5836   echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839         jm_ac_cv_header_stdint_h=no
5840 fi
5841
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5845 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5846   if test $jm_ac_cv_header_stdint_h = yes; then
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_STDINT_H_WITH_UINTMAX 1
5850 _ACEOF
5851
5852   fi
5853
5854
5855
5856
5857   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5858 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5859 if test "${gt_cv_c_intmax_t+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868
5869 #include <stddef.h>
5870 #include <stdlib.h>
5871 #if HAVE_STDINT_H_WITH_UINTMAX
5872 #include <stdint.h>
5873 #endif
5874 #if HAVE_INTTYPES_H_WITH_UINTMAX
5875 #include <inttypes.h>
5876 #endif
5877
5878 int
5879 main ()
5880 {
5881 intmax_t x = -1;
5882   ;
5883   return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5888 case "(($ac_try" in
5889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890   *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893   (eval "$ac_compile") 2>conftest.er1
5894   ac_status=$?
5895   grep -v '^ *+' conftest.er1 >conftest.err
5896   rm -f conftest.er1
5897   cat conftest.err >&5
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); } && {
5900          test -z "$ac_c_werror_flag" ||
5901          test ! -s conftest.err
5902        } && test -s conftest.$ac_objext; then
5903   gt_cv_c_intmax_t=yes
5904 else
5905   echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908         gt_cv_c_intmax_t=no
5909 fi
5910
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 fi
5913 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5914 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5915   if test $gt_cv_c_intmax_t = yes; then
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_INTMAX_T 1
5919 _ACEOF
5920
5921   fi
5922
5923
5924
5925   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5926 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5927 if test "${gt_cv_func_printf_posix+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930
5931       if test "$cross_compiling" = yes; then
5932
5933         cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939
5940 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5941   notposix
5942 #endif
5943
5944 _ACEOF
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946   $EGREP "notposix" >/dev/null 2>&1; then
5947   gt_cv_func_printf_posix="guessing no"
5948 else
5949   gt_cv_func_printf_posix="guessing yes"
5950 fi
5951 rm -f conftest*
5952
5953
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 #include <stdio.h>
5963 #include <string.h>
5964 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5965    dollar expansion (possibly an autoconf bug).  */
5966 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5967 static char buf[100];
5968 int main ()
5969 {
5970   sprintf (buf, format, 33, 55);
5971   return (strcmp (buf, "55 33") != 0);
5972 }
5973 _ACEOF
5974 rm -f conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_link") 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; }; then
5994   gt_cv_func_printf_posix=yes
5995 else
5996   echo "$as_me: program exited with status $ac_status" >&5
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ( exit $ac_status )
6001 gt_cv_func_printf_posix=no
6002 fi
6003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6004 fi
6005
6006
6007
6008 fi
6009 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6010 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6011   case $gt_cv_func_printf_posix in
6012     *yes)
6013
6014 cat >>confdefs.h <<\_ACEOF
6015 #define HAVE_POSIX_PRINTF 1
6016 _ACEOF
6017
6018       ;;
6019   esac
6020
6021 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6022 # for constant arguments.  Useless!
6023 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6024 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6025 if test "${ac_cv_working_alloca_h+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h.  */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h.  */
6034 #include <alloca.h>
6035 int
6036 main ()
6037 {
6038 char *p = (char *) alloca (2 * sizeof (int));
6039                           if (p) return 0;
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (ac_try="$ac_link"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_link") 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } && {
6058          test -z "$ac_c_werror_flag" ||
6059          test ! -s conftest.err
6060        } && test -s conftest$ac_exeext &&
6061        $as_test_x conftest$ac_exeext; then
6062   ac_cv_working_alloca_h=yes
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067         ac_cv_working_alloca_h=no
6068 fi
6069
6070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6071       conftest$ac_exeext conftest.$ac_ext
6072 fi
6073 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6074 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6075 if test $ac_cv_working_alloca_h = yes; then
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ALLOCA_H 1
6079 _ACEOF
6080
6081 fi
6082
6083 { echo "$as_me:$LINENO: checking for alloca" >&5
6084 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6085 if test "${ac_cv_func_alloca_works+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094 #ifdef __GNUC__
6095 # define alloca __builtin_alloca
6096 #else
6097 # ifdef _MSC_VER
6098 #  include <malloc.h>
6099 #  define alloca _alloca
6100 # else
6101 #  ifdef HAVE_ALLOCA_H
6102 #   include <alloca.h>
6103 #  else
6104 #   ifdef _AIX
6105  #pragma alloca
6106 #   else
6107 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6108 char *alloca ();
6109 #    endif
6110 #   endif
6111 #  endif
6112 # endif
6113 #endif
6114
6115 int
6116 main ()
6117 {
6118 char *p = (char *) alloca (1);
6119                                     if (p) return 0;
6120   ;
6121   return 0;
6122 }
6123 _ACEOF
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (ac_try="$ac_link"
6126 case "(($ac_try" in
6127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128   *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131   (eval "$ac_link") 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } && {
6138          test -z "$ac_c_werror_flag" ||
6139          test ! -s conftest.err
6140        } && test -s conftest$ac_exeext &&
6141        $as_test_x conftest$ac_exeext; then
6142   ac_cv_func_alloca_works=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147         ac_cv_func_alloca_works=no
6148 fi
6149
6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151       conftest$ac_exeext conftest.$ac_ext
6152 fi
6153 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6154 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6155
6156 if test $ac_cv_func_alloca_works = yes; then
6157
6158 cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_ALLOCA 1
6160 _ACEOF
6161
6162 else
6163   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6164 # that cause trouble.  Some versions do not even contain alloca or
6165 # contain a buggy version.  If you still want to use their alloca,
6166 # use ar to extract alloca.o from them instead of compiling alloca.c.
6167
6168 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6169
6170 cat >>confdefs.h <<\_ACEOF
6171 #define C_ALLOCA 1
6172 _ACEOF
6173
6174
6175 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6176 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6177 if test "${ac_cv_os_cray+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 #if defined CRAY && ! defined CRAY2
6187 webecray
6188 #else
6189 wenotbecray
6190 #endif
6191
6192 _ACEOF
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194   $EGREP "webecray" >/dev/null 2>&1; then
6195   ac_cv_os_cray=yes
6196 else
6197   ac_cv_os_cray=no
6198 fi
6199 rm -f conftest*
6200
6201 fi
6202 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6203 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6204 if test $ac_cv_os_cray = yes; then
6205   for ac_func in _getb67 GETB67 getb67; do
6206     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6220 #define $ac_func innocuous_$ac_func
6221
6222 /* System header to define __stub macros and hopefully few prototypes,
6223     which can conflict with char $ac_func (); below.
6224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225     <limits.h> exists even on freestanding compilers.  */
6226
6227 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6232
6233 #undef $ac_func
6234
6235 /* Override any GCC internal prototype to avoid an error.
6236    Use char because int might match the return type of a GCC
6237    builtin and then its argument prototype would still apply.  */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 char $ac_func ();
6242 /* The GNU C library defines this for functions which it implements
6243     to always fail with ENOSYS.  Some functions are actually named
6244     something starting with __ and the normal name is an alias.  */
6245 #if defined __stub_$ac_func || defined __stub___$ac_func
6246 choke me
6247 #endif
6248
6249 int
6250 main ()
6251 {
6252 return $ac_func ();
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_link") 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && {
6271          test -z "$ac_c_werror_flag" ||
6272          test ! -s conftest.err
6273        } && test -s conftest$ac_exeext &&
6274        $as_test_x conftest$ac_exeext; then
6275   eval "$as_ac_var=yes"
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280         eval "$as_ac_var=no"
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6284       conftest$ac_exeext conftest.$ac_ext
6285 fi
6286 ac_res=`eval echo '${'$as_ac_var'}'`
6287                { echo "$as_me:$LINENO: result: $ac_res" >&5
6288 echo "${ECHO_T}$ac_res" >&6; }
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6290
6291 cat >>confdefs.h <<_ACEOF
6292 #define CRAY_STACKSEG_END $ac_func
6293 _ACEOF
6294
6295     break
6296 fi
6297
6298   done
6299 fi
6300
6301 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6302 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6303 if test "${ac_cv_c_stack_direction+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   if test "$cross_compiling" = yes; then
6307   ac_cv_c_stack_direction=0
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 $ac_includes_default
6316 int
6317 find_stack_direction ()
6318 {
6319   static char *addr = 0;
6320   auto char dummy;
6321   if (addr == 0)
6322     {
6323       addr = &dummy;
6324       return find_stack_direction ();
6325     }
6326   else
6327     return (&dummy > addr) ? 1 : -1;
6328 }
6329
6330 int
6331 main ()
6332 {
6333   return find_stack_direction () < 0;
6334 }
6335 _ACEOF
6336 rm -f conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_link") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6347   { (case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352   (eval "$ac_try") 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_cv_c_stack_direction=1
6357 else
6358   echo "$as_me: program exited with status $ac_status" >&5
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ( exit $ac_status )
6363 ac_cv_c_stack_direction=-1
6364 fi
6365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6366 fi
6367
6368
6369 fi
6370 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6371 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6372
6373 cat >>confdefs.h <<_ACEOF
6374 #define STACK_DIRECTION $ac_cv_c_stack_direction
6375 _ACEOF
6376
6377
6378 fi
6379
6380
6381
6382 for ac_header in stdlib.h unistd.h
6383 do
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 fi
6391 ac_res=`eval echo '${'$as_ac_Header'}'`
6392                { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6394 else
6395   # Is the header compilable?
6396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6397 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
6405 #include <$ac_header>
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6409 case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414   (eval "$ac_compile") 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && {
6421          test -z "$ac_c_werror_flag" ||
6422          test ! -s conftest.err
6423        } && test -s conftest.$ac_objext; then
6424   ac_header_compiler=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429         ac_header_compiler=no
6430 fi
6431
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6434 echo "${ECHO_T}$ac_header_compiler" >&6; }
6435
6436 # Is the header present?
6437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 #include <$ac_header>
6446 _ACEOF
6447 if { (ac_try="$ac_cpp conftest.$ac_ext"
6448 case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } >/dev/null && {
6460          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461          test ! -s conftest.err
6462        }; then
6463   ac_header_preproc=yes
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468   ac_header_preproc=no
6469 fi
6470
6471 rm -f conftest.err conftest.$ac_ext
6472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6473 echo "${ECHO_T}$ac_header_preproc" >&6; }
6474
6475 # So?  What about this header?
6476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6477   yes:no: )
6478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6482     ac_header_preproc=yes
6483     ;;
6484   no:yes:* )
6485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6497
6498     ;;
6499 esac
6500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   eval "$as_ac_Header=\$ac_header_preproc"
6506 fi
6507 ac_res=`eval echo '${'$as_ac_Header'}'`
6508                { echo "$as_me:$LINENO: result: $ac_res" >&5
6509 echo "${ECHO_T}$ac_res" >&6; }
6510
6511 fi
6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513   cat >>confdefs.h <<_ACEOF
6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 _ACEOF
6516
6517 fi
6518
6519 done
6520
6521
6522 for ac_func in getpagesize
6523 do
6524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6538 #define $ac_func innocuous_$ac_func
6539
6540 /* System header to define __stub macros and hopefully few prototypes,
6541     which can conflict with char $ac_func (); below.
6542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543     <limits.h> exists even on freestanding compilers.  */
6544
6545 #ifdef __STDC__
6546 # include <limits.h>
6547 #else
6548 # include <assert.h>
6549 #endif
6550
6551 #undef $ac_func
6552
6553 /* Override any GCC internal prototype to avoid an error.
6554    Use char because int might match the return type of a GCC
6555    builtin and then its argument prototype would still apply.  */
6556 #ifdef __cplusplus
6557 extern "C"
6558 #endif
6559 char $ac_func ();
6560 /* The GNU C library defines this for functions which it implements
6561     to always fail with ENOSYS.  Some functions are actually named
6562     something starting with __ and the normal name is an alias.  */
6563 #if defined __stub_$ac_func || defined __stub___$ac_func
6564 choke me
6565 #endif
6566
6567 int
6568 main ()
6569 {
6570 return $ac_func ();
6571   ;
6572   return 0;
6573 }
6574 _ACEOF
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6577 case "(($ac_try" in
6578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579   *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582   (eval "$ac_link") 2>conftest.er1
6583   ac_status=$?
6584   grep -v '^ *+' conftest.er1 >conftest.err
6585   rm -f conftest.er1
6586   cat conftest.err >&5
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } && {
6589          test -z "$ac_c_werror_flag" ||
6590          test ! -s conftest.err
6591        } && test -s conftest$ac_exeext &&
6592        $as_test_x conftest$ac_exeext; then
6593   eval "$as_ac_var=yes"
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598         eval "$as_ac_var=no"
6599 fi
6600
6601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6602       conftest$ac_exeext conftest.$ac_ext
6603 fi
6604 ac_res=`eval echo '${'$as_ac_var'}'`
6605                { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607 if test `eval echo '${'$as_ac_var'}'` = yes; then
6608   cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613 done
6614
6615 { echo "$as_me:$LINENO: checking for working mmap" >&5
6616 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6617 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   if test "$cross_compiling" = yes; then
6621   ac_cv_func_mmap_fixed_mapped=no
6622 else
6623   cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 $ac_includes_default
6630 /* malloc might have been renamed as rpl_malloc. */
6631 #undef malloc
6632
6633 /* Thanks to Mike Haertel and Jim Avera for this test.
6634    Here is a matrix of mmap possibilities:
6635         mmap private not fixed
6636         mmap private fixed at somewhere currently unmapped
6637         mmap private fixed at somewhere already mapped
6638         mmap shared not fixed
6639         mmap shared fixed at somewhere currently unmapped
6640         mmap shared fixed at somewhere already mapped
6641    For private mappings, we should verify that changes cannot be read()
6642    back from the file, nor mmap's back from the file at a different
6643    address.  (There have been systems where private was not correctly
6644    implemented like the infamous i386 svr4.0, and systems where the
6645    VM page cache was not coherent with the file system buffer cache
6646    like early versions of FreeBSD and possibly contemporary NetBSD.)
6647    For shared mappings, we should conversely verify that changes get
6648    propagated back to all the places they're supposed to be.
6649
6650    Grep wants private fixed already mapped.
6651    The main things grep needs to know about mmap are:
6652    * does it exist and is it safe to write into the mmap'd area
6653    * how to use it (BSD variants)  */
6654
6655 #include <fcntl.h>
6656 #include <sys/mman.h>
6657
6658 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6659 char *malloc ();
6660 #endif
6661
6662 /* This mess was copied from the GNU getpagesize.h.  */
6663 #ifndef HAVE_GETPAGESIZE
6664 /* Assume that all systems that can run configure have sys/param.h.  */
6665 # ifndef HAVE_SYS_PARAM_H
6666 #  define HAVE_SYS_PARAM_H 1
6667 # endif
6668
6669 # ifdef _SC_PAGESIZE
6670 #  define getpagesize() sysconf(_SC_PAGESIZE)
6671 # else /* no _SC_PAGESIZE */
6672 #  ifdef HAVE_SYS_PARAM_H
6673 #   include <sys/param.h>
6674 #   ifdef EXEC_PAGESIZE
6675 #    define getpagesize() EXEC_PAGESIZE
6676 #   else /* no EXEC_PAGESIZE */
6677 #    ifdef NBPG
6678 #     define getpagesize() NBPG * CLSIZE
6679 #     ifndef CLSIZE
6680 #      define CLSIZE 1
6681 #     endif /* no CLSIZE */
6682 #    else /* no NBPG */
6683 #     ifdef NBPC
6684 #      define getpagesize() NBPC
6685 #     else /* no NBPC */
6686 #      ifdef PAGESIZE
6687 #       define getpagesize() PAGESIZE
6688 #      endif /* PAGESIZE */
6689 #     endif /* no NBPC */
6690 #    endif /* no NBPG */
6691 #   endif /* no EXEC_PAGESIZE */
6692 #  else /* no HAVE_SYS_PARAM_H */
6693 #   define getpagesize() 8192   /* punt totally */
6694 #  endif /* no HAVE_SYS_PARAM_H */
6695 # endif /* no _SC_PAGESIZE */
6696
6697 #endif /* no HAVE_GETPAGESIZE */
6698
6699 int
6700 main ()
6701 {
6702   char *data, *data2, *data3;
6703   int i, pagesize;
6704   int fd;
6705
6706   pagesize = getpagesize ();
6707
6708   /* First, make a file with some known garbage in it. */
6709   data = (char *) malloc (pagesize);
6710   if (!data)
6711     return 1;
6712   for (i = 0; i < pagesize; ++i)
6713     *(data + i) = rand ();
6714   umask (0);
6715   fd = creat ("conftest.mmap", 0600);
6716   if (fd < 0)
6717     return 1;
6718   if (write (fd, data, pagesize) != pagesize)
6719     return 1;
6720   close (fd);
6721
6722   /* Next, try to mmap the file at a fixed address which already has
6723      something else allocated at it.  If we can, also make sure that
6724      we see the same garbage.  */
6725   fd = open ("conftest.mmap", O_RDWR);
6726   if (fd < 0)
6727     return 1;
6728   data2 = (char *) malloc (2 * pagesize);
6729   if (!data2)
6730     return 1;
6731   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6732   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6733                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6734     return 1;
6735   for (i = 0; i < pagesize; ++i)
6736     if (*(data + i) != *(data2 + i))
6737       return 1;
6738
6739   /* Finally, make sure that changes to the mapped area do not
6740      percolate back to the file as seen by read().  (This is a bug on
6741      some variants of i386 svr4.0.)  */
6742   for (i = 0; i < pagesize; ++i)
6743     *(data2 + i) = *(data2 + i) + 1;
6744   data3 = (char *) malloc (pagesize);
6745   if (!data3)
6746     return 1;
6747   if (read (fd, data3, pagesize) != pagesize)
6748     return 1;
6749   for (i = 0; i < pagesize; ++i)
6750     if (*(data + i) != *(data3 + i))
6751       return 1;
6752   close (fd);
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest$ac_exeext
6757 if { (ac_try="$ac_link"
6758 case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_link") 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6767   { (case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772   (eval "$ac_try") 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_cv_func_mmap_fixed_mapped=yes
6777 else
6778   echo "$as_me: program exited with status $ac_status" >&5
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ( exit $ac_status )
6783 ac_cv_func_mmap_fixed_mapped=no
6784 fi
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6786 fi
6787
6788
6789 fi
6790 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6791 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_MMAP 1
6796 _ACEOF
6797
6798 fi
6799 rm -f conftest.mmap
6800
6801
6802     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6803 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6804 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h.  */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h.  */
6813
6814 #include <features.h>
6815 #ifdef __GNU_LIBRARY__
6816  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6817   Lucky GNU user
6818  #endif
6819 #endif
6820
6821 _ACEOF
6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6824   ac_cv_gnu_library_2_1=yes
6825 else
6826   ac_cv_gnu_library_2_1=no
6827 fi
6828 rm -f conftest*
6829
6830
6831
6832 fi
6833 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6834 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6835
6836     GLIBC21="$ac_cv_gnu_library_2_1"
6837
6838
6839
6840
6841   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6842 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6843 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846
6847       if test "$cross_compiling" = yes; then
6848
6849           # Guess based on the CPU.
6850           case "$host_cpu" in
6851             alpha* | i3456786 | m68k | s390*)
6852               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6853             *)
6854               gt_cv_int_divbyzero_sigfpe="guessing no";;
6855           esac
6856
6857 else
6858   cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864
6865 #include <stdlib.h>
6866 #include <signal.h>
6867
6868 static void
6869 #ifdef __cplusplus
6870 sigfpe_handler (int sig)
6871 #else
6872 sigfpe_handler (sig) int sig;
6873 #endif
6874 {
6875   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6876   exit (sig != SIGFPE);
6877 }
6878
6879 int x = 1;
6880 int y = 0;
6881 int z;
6882 int nan;
6883
6884 int main ()
6885 {
6886   signal (SIGFPE, sigfpe_handler);
6887 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6888 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6889   signal (SIGTRAP, sigfpe_handler);
6890 #endif
6891 /* Linux/SPARC yields signal SIGILL.  */
6892 #if defined (__sparc__) && defined (__linux__)
6893   signal (SIGILL, sigfpe_handler);
6894 #endif
6895
6896   z = x / y;
6897   nan = y / y;
6898   exit (1);
6899 }
6900
6901 _ACEOF
6902 rm -f conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6904 case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909   (eval "$ac_link") 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6913   { (case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_try") 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   gt_cv_int_divbyzero_sigfpe=yes
6923 else
6924   echo "$as_me: program exited with status $ac_status" >&5
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ( exit $ac_status )
6929 gt_cv_int_divbyzero_sigfpe=no
6930 fi
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6932 fi
6933
6934
6935
6936 fi
6937 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6938 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6939   case "$gt_cv_int_divbyzero_sigfpe" in
6940     *yes) value=1;;
6941     *) value=0;;
6942   esac
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define INTDIV0_RAISES_SIGFPE $value
6946 _ACEOF
6947
6948
6949
6950   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6951 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6952 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h.  */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h.  */
6961 unsigned long long ull = 1ULL; int i = 63;
6962 int
6963 main ()
6964 {
6965 unsigned long long ullmax = (unsigned long long) -1;
6966      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6967   ;
6968   return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6973 case "(($ac_try" in
6974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975   *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978   (eval "$ac_link") 2>conftest.er1
6979   ac_status=$?
6980   grep -v '^ *+' conftest.er1 >conftest.err
6981   rm -f conftest.er1
6982   cat conftest.err >&5
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } && {
6985          test -z "$ac_c_werror_flag" ||
6986          test ! -s conftest.err
6987        } && test -s conftest$ac_exeext &&
6988        $as_test_x conftest$ac_exeext; then
6989   ac_cv_type_unsigned_long_long=yes
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994         ac_cv_type_unsigned_long_long=no
6995 fi
6996
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998       conftest$ac_exeext conftest.$ac_ext
6999 fi
7000 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7001 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7002   if test $ac_cv_type_unsigned_long_long = yes; then
7003
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_UNSIGNED_LONG_LONG 1
7006 _ACEOF
7007
7008   fi
7009
7010
7011
7012
7013   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7014
7015     test $ac_cv_type_unsigned_long_long = yes \
7016       && ac_type='unsigned long long' \
7017       || ac_type='unsigned long'
7018
7019 cat >>confdefs.h <<_ACEOF
7020 #define uintmax_t $ac_type
7021 _ACEOF
7022
7023   else
7024
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_UINTMAX_T 1
7027 _ACEOF
7028
7029   fi
7030
7031
7032   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7033 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7034 if test "${gt_cv_header_inttypes_h+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037
7038     cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <sys/types.h>
7045 #include <inttypes.h>
7046 int
7047 main ()
7048 {
7049
7050   ;
7051   return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (ac_try="$ac_compile"
7056 case "(($ac_try" in
7057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058   *) ac_try_echo=$ac_try;;
7059 esac
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061   (eval "$ac_compile") 2>conftest.er1
7062   ac_status=$?
7063   grep -v '^ *+' conftest.er1 >conftest.err
7064   rm -f conftest.er1
7065   cat conftest.err >&5
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); } && {
7068          test -z "$ac_c_werror_flag" ||
7069          test ! -s conftest.err
7070        } && test -s conftest.$ac_objext; then
7071   gt_cv_header_inttypes_h=yes
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076         gt_cv_header_inttypes_h=no
7077 fi
7078
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080
7081 fi
7082 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7083 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7084   if test $gt_cv_header_inttypes_h = yes; then
7085
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_INTTYPES_H 1
7088 _ACEOF
7089
7090   fi
7091
7092
7093
7094   if test $gt_cv_header_inttypes_h = yes; then
7095     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7096 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7097 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100
7101         cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107 #include <inttypes.h>
7108 #ifdef PRId32
7109 char *p = PRId32;
7110 #endif
7111
7112 int
7113 main ()
7114 {
7115
7116   ;
7117   return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124   *) ac_try_echo=$ac_try;;
7125 esac
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127   (eval "$ac_compile") 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } && {
7134          test -z "$ac_c_werror_flag" ||
7135          test ! -s conftest.err
7136        } && test -s conftest.$ac_objext; then
7137   gt_cv_inttypes_pri_broken=no
7138 else
7139   echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142         gt_cv_inttypes_pri_broken=yes
7143 fi
7144
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146
7147 fi
7148 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7149 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7150   fi
7151   if test "$gt_cv_inttypes_pri_broken" = yes; then
7152
7153 cat >>confdefs.h <<_ACEOF
7154 #define PRI_MACROS_BROKEN 1
7155 _ACEOF
7156
7157   fi
7158
7159
7160
7161 for ac_header in stdint.h
7162 do
7163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 fi
7170 ac_res=`eval echo '${'$as_ac_Header'}'`
7171                { echo "$as_me:$LINENO: result: $ac_res" >&5
7172 echo "${ECHO_T}$ac_res" >&6; }
7173 else
7174   # Is the header compilable?
7175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7176 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
7184 #include <$ac_header>
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193   (eval "$ac_compile") 2>conftest.er1
7194   ac_status=$?
7195   grep -v '^ *+' conftest.er1 >conftest.err
7196   rm -f conftest.er1
7197   cat conftest.err >&5
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } && {
7200          test -z "$ac_c_werror_flag" ||
7201          test ! -s conftest.err
7202        } && test -s conftest.$ac_objext; then
7203   ac_header_compiler=yes
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208         ac_header_compiler=no
7209 fi
7210
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7213 echo "${ECHO_T}$ac_header_compiler" >&6; }
7214
7215 # Is the header present?
7216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224 #include <$ac_header>
7225 _ACEOF
7226 if { (ac_try="$ac_cpp conftest.$ac_ext"
7227 case "(($ac_try" in
7228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229   *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7233   ac_status=$?
7234   grep -v '^ *+' conftest.er1 >conftest.err
7235   rm -f conftest.er1
7236   cat conftest.err >&5
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); } >/dev/null && {
7239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7240          test ! -s conftest.err
7241        }; then
7242   ac_header_preproc=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247   ac_header_preproc=no
7248 fi
7249
7250 rm -f conftest.err conftest.$ac_ext
7251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7252 echo "${ECHO_T}$ac_header_preproc" >&6; }
7253
7254 # So?  What about this header?
7255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7256   yes:no: )
7257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7261     ac_header_preproc=yes
7262     ;;
7263   no:yes:* )
7264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7276
7277     ;;
7278 esac
7279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   eval "$as_ac_Header=\$ac_header_preproc"
7285 fi
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287                { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7289
7290 fi
7291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292   cat >>confdefs.h <<_ACEOF
7293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294 _ACEOF
7295
7296 fi
7297
7298 done
7299
7300     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7301 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7302   result=
7303   cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309
7310 #include <limits.h>
7311 #if HAVE_STDINT_H
7312 #include <stdint.h>
7313 #endif
7314 #ifdef SIZE_MAX
7315 Found it
7316 #endif
7317
7318 _ACEOF
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320   $EGREP "Found it" >/dev/null 2>&1; then
7321   result=yes
7322 fi
7323 rm -f conftest*
7324
7325   if test -z "$result"; then
7326                     if test "$cross_compiling" = yes; then
7327   # Depending upon the size, compute the lo and hi bounds.
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334 #include <stddef.h>
7335 int
7336 main ()
7337 {
7338 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7339 test_array [0] = 0
7340
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7347 case "(($ac_try" in
7348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349   *) ac_try_echo=$ac_try;;
7350 esac
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352   (eval "$ac_compile") 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } && {
7359          test -z "$ac_c_werror_flag" ||
7360          test ! -s conftest.err
7361        } && test -s conftest.$ac_objext; then
7362   ac_lo=0 ac_mid=0
7363   while :; do
7364     cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 #include <stddef.h>
7371 int
7372 main ()
7373 {
7374 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7375 test_array [0] = 0
7376
7377   ;
7378   return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_compile") 2>conftest.er1
7389   ac_status=$?
7390   grep -v '^ *+' conftest.er1 >conftest.err
7391   rm -f conftest.er1
7392   cat conftest.err >&5
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); } && {
7395          test -z "$ac_c_werror_flag" ||
7396          test ! -s conftest.err
7397        } && test -s conftest.$ac_objext; then
7398   ac_hi=$ac_mid; break
7399 else
7400   echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403         ac_lo=`expr $ac_mid + 1`
7404                         if test $ac_lo -le $ac_mid; then
7405                           ac_lo= ac_hi=
7406                           break
7407                         fi
7408                         ac_mid=`expr 2 '*' $ac_mid + 1`
7409 fi
7410
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412   done
7413 else
7414   echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417         cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 #include <stddef.h>
7424 int
7425 main ()
7426 {
7427 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7428 test_array [0] = 0
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441   (eval "$ac_compile") 2>conftest.er1
7442   ac_status=$?
7443   grep -v '^ *+' conftest.er1 >conftest.err
7444   rm -f conftest.er1
7445   cat conftest.err >&5
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); } && {
7448          test -z "$ac_c_werror_flag" ||
7449          test ! -s conftest.err
7450        } && test -s conftest.$ac_objext; then
7451   ac_hi=-1 ac_mid=-1
7452   while :; do
7453     cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 #include <stddef.h>
7460 int
7461 main ()
7462 {
7463 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7464 test_array [0] = 0
7465
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474   *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477   (eval "$ac_compile") 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } && {
7484          test -z "$ac_c_werror_flag" ||
7485          test ! -s conftest.err
7486        } && test -s conftest.$ac_objext; then
7487   ac_lo=$ac_mid; break
7488 else
7489   echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492         ac_hi=`expr '(' $ac_mid ')' - 1`
7493                         if test $ac_mid -le $ac_hi; then
7494                           ac_lo= ac_hi=
7495                           break
7496                         fi
7497                         ac_mid=`expr 2 '*' $ac_mid`
7498 fi
7499
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501   done
7502 else
7503   echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506         ac_lo= ac_hi=
7507 fi
7508
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 fi
7511
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 # Binary search between lo and hi bounds.
7514 while test "x$ac_lo" != "x$ac_hi"; do
7515   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7516   cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 #include <stddef.h>
7523 int
7524 main ()
7525 {
7526 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7527 test_array [0] = 0
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_compile") 2>conftest.er1
7541   ac_status=$?
7542   grep -v '^ *+' conftest.er1 >conftest.err
7543   rm -f conftest.er1
7544   cat conftest.err >&5
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); } && {
7547          test -z "$ac_c_werror_flag" ||
7548          test ! -s conftest.err
7549        } && test -s conftest.$ac_objext; then
7550   ac_hi=$ac_mid
7551 else
7552   echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7554
7555         ac_lo=`expr '(' $ac_mid ')' + 1`
7556 fi
7557
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 done
7560 case $ac_lo in
7561 ?*) res_hi=$ac_lo;;
7562 '') result=? ;;
7563 esac
7564 else
7565   cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571 #include <stddef.h>
7572 static long int longval () { return ~(size_t)0 / 10; }
7573 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7574 #include <stdio.h>
7575 #include <stdlib.h>
7576 int
7577 main ()
7578 {
7579
7580   FILE *f = fopen ("conftest.val", "w");
7581   if (! f)
7582     return 1;
7583   if ((~(size_t)0 / 10) < 0)
7584     {
7585       long int i = longval ();
7586       if (i != (~(size_t)0 / 10))
7587         return 1;
7588       fprintf (f, "%ld\n", i);
7589     }
7590   else
7591     {
7592       unsigned long int i = ulongval ();
7593       if (i != (~(size_t)0 / 10))
7594         return 1;
7595       fprintf (f, "%lu\n", i);
7596     }
7597   return ferror (f) || fclose (f) != 0;
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607   *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610   (eval "$ac_link") 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7614   { (case "(($ac_try" in
7615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616   *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619   (eval "$ac_try") 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); }; }; then
7623   res_hi=`cat conftest.val`
7624 else
7625   echo "$as_me: program exited with status $ac_status" >&5
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ( exit $ac_status )
7630 result=?
7631 fi
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 rm -f conftest.val
7635
7636     if test "$cross_compiling" = yes; then
7637   # Depending upon the size, compute the lo and hi bounds.
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 #include <stddef.h>
7645 int
7646 main ()
7647 {
7648 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7649 test_array [0] = 0
7650
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (ac_try="$ac_compile"
7657 case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_compile") 2>conftest.er1
7663   ac_status=$?
7664   grep -v '^ *+' conftest.er1 >conftest.err
7665   rm -f conftest.er1
7666   cat conftest.err >&5
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } && {
7669          test -z "$ac_c_werror_flag" ||
7670          test ! -s conftest.err
7671        } && test -s conftest.$ac_objext; then
7672   ac_lo=0 ac_mid=0
7673   while :; do
7674     cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680 #include <stddef.h>
7681 int
7682 main ()
7683 {
7684 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7685 test_array [0] = 0
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_compile") 2>conftest.er1
7699   ac_status=$?
7700   grep -v '^ *+' conftest.er1 >conftest.err
7701   rm -f conftest.er1
7702   cat conftest.err >&5
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); } && {
7705          test -z "$ac_c_werror_flag" ||
7706          test ! -s conftest.err
7707        } && test -s conftest.$ac_objext; then
7708   ac_hi=$ac_mid; break
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713         ac_lo=`expr $ac_mid + 1`
7714                         if test $ac_lo -le $ac_mid; then
7715                           ac_lo= ac_hi=
7716                           break
7717                         fi
7718                         ac_mid=`expr 2 '*' $ac_mid + 1`
7719 fi
7720
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722   done
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727         cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h.  */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h.  */
7733 #include <stddef.h>
7734 int
7735 main ()
7736 {
7737 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7738 test_array [0] = 0
7739
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (ac_try="$ac_compile"
7746 case "(($ac_try" in
7747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748   *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751   (eval "$ac_compile") 2>conftest.er1
7752   ac_status=$?
7753   grep -v '^ *+' conftest.er1 >conftest.err
7754   rm -f conftest.er1
7755   cat conftest.err >&5
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } && {
7758          test -z "$ac_c_werror_flag" ||
7759          test ! -s conftest.err
7760        } && test -s conftest.$ac_objext; then
7761   ac_hi=-1 ac_mid=-1
7762   while :; do
7763     cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 #include <stddef.h>
7770 int
7771 main ()
7772 {
7773 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7774 test_array [0] = 0
7775
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (ac_try="$ac_compile"
7782 case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_compile") 2>conftest.er1
7788   ac_status=$?
7789   grep -v '^ *+' conftest.er1 >conftest.err
7790   rm -f conftest.er1
7791   cat conftest.err >&5
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } && {
7794          test -z "$ac_c_werror_flag" ||
7795          test ! -s conftest.err
7796        } && test -s conftest.$ac_objext; then
7797   ac_lo=$ac_mid; break
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802         ac_hi=`expr '(' $ac_mid ')' - 1`
7803                         if test $ac_mid -le $ac_hi; then
7804                           ac_lo= ac_hi=
7805                           break
7806                         fi
7807                         ac_mid=`expr 2 '*' $ac_mid`
7808 fi
7809
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811   done
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816         ac_lo= ac_hi=
7817 fi
7818
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 # Binary search between lo and hi bounds.
7824 while test "x$ac_lo" != "x$ac_hi"; do
7825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832 #include <stddef.h>
7833 int
7834 main ()
7835 {
7836 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7837 test_array [0] = 0
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_compile") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } && {
7857          test -z "$ac_c_werror_flag" ||
7858          test ! -s conftest.err
7859        } && test -s conftest.$ac_objext; then
7860   ac_hi=$ac_mid
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865         ac_lo=`expr '(' $ac_mid ')' + 1`
7866 fi
7867
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 done
7870 case $ac_lo in
7871 ?*) res_lo=$ac_lo;;
7872 '') result=? ;;
7873 esac
7874 else
7875   cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h.  */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h.  */
7881 #include <stddef.h>
7882 static long int longval () { return ~(size_t)0 % 10; }
7883 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7884 #include <stdio.h>
7885 #include <stdlib.h>
7886 int
7887 main ()
7888 {
7889
7890   FILE *f = fopen ("conftest.val", "w");
7891   if (! f)
7892     return 1;
7893   if ((~(size_t)0 % 10) < 0)
7894     {
7895       long int i = longval ();
7896       if (i != (~(size_t)0 % 10))
7897         return 1;
7898       fprintf (f, "%ld\n", i);
7899     }
7900   else
7901     {
7902       unsigned long int i = ulongval ();
7903       if (i != (~(size_t)0 % 10))
7904         return 1;
7905       fprintf (f, "%lu\n", i);
7906     }
7907   return ferror (f) || fclose (f) != 0;
7908
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest$ac_exeext
7914 if { (ac_try="$ac_link"
7915 case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_link") 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7924   { (case "(($ac_try" in
7925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926   *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929   (eval "$ac_try") 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); }; }; then
7933   res_lo=`cat conftest.val`
7934 else
7935   echo "$as_me: program exited with status $ac_status" >&5
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 ( exit $ac_status )
7940 result=?
7941 fi
7942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 rm -f conftest.val
7945
7946     if test "$cross_compiling" = yes; then
7947   # Depending upon the size, compute the lo and hi bounds.
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 #include <stddef.h>
7955 int
7956 main ()
7957 {
7958 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7959 test_array [0] = 0
7960
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7967 case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_compile") 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } && {
7979          test -z "$ac_c_werror_flag" ||
7980          test ! -s conftest.err
7981        } && test -s conftest.$ac_objext; then
7982   ac_lo=0 ac_mid=0
7983   while :; do
7984     cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990 #include <stddef.h>
7991 int
7992 main ()
7993 {
7994 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7995 test_array [0] = 0
7996
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005   *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008   (eval "$ac_compile") 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } && {
8015          test -z "$ac_c_werror_flag" ||
8016          test ! -s conftest.err
8017        } && test -s conftest.$ac_objext; then
8018   ac_hi=$ac_mid; break
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023         ac_lo=`expr $ac_mid + 1`
8024                         if test $ac_lo -le $ac_mid; then
8025                           ac_lo= ac_hi=
8026                           break
8027                         fi
8028                         ac_mid=`expr 2 '*' $ac_mid + 1`
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032   done
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037         cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 #include <stddef.h>
8044 int
8045 main ()
8046 {
8047 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8048 test_array [0] = 0
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest.$ac_objext; then
8071   ac_hi=-1 ac_mid=-1
8072   while :; do
8073     cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079 #include <stddef.h>
8080 int
8081 main ()
8082 {
8083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8084 test_array [0] = 0
8085
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_compile") 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } && {
8104          test -z "$ac_c_werror_flag" ||
8105          test ! -s conftest.err
8106        } && test -s conftest.$ac_objext; then
8107   ac_lo=$ac_mid; break
8108 else
8109   echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8111
8112         ac_hi=`expr '(' $ac_mid ')' - 1`
8113                         if test $ac_mid -le $ac_hi; then
8114                           ac_lo= ac_hi=
8115                           break
8116                         fi
8117                         ac_mid=`expr 2 '*' $ac_mid`
8118 fi
8119
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121   done
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126         ac_lo= ac_hi=
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 fi
8131
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 # Binary search between lo and hi bounds.
8134 while test "x$ac_lo" != "x$ac_hi"; do
8135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 #include <stddef.h>
8143 int
8144 main ()
8145 {
8146 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8147 test_array [0] = 0
8148
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8155 case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_compile") 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && {
8167          test -z "$ac_c_werror_flag" ||
8168          test ! -s conftest.err
8169        } && test -s conftest.$ac_objext; then
8170   ac_hi=$ac_mid
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175         ac_lo=`expr '(' $ac_mid ')' + 1`
8176 fi
8177
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 case $ac_lo in
8181 ?*) fits_in_uint=$ac_lo;;
8182 '') result=? ;;
8183 esac
8184 else
8185   cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h.  */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h.  */
8191 #include <stddef.h>
8192 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8193 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8194 #include <stdio.h>
8195 #include <stdlib.h>
8196 int
8197 main ()
8198 {
8199
8200   FILE *f = fopen ("conftest.val", "w");
8201   if (! f)
8202     return 1;
8203   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8204     {
8205       long int i = longval ();
8206       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8207         return 1;
8208       fprintf (f, "%ld\n", i);
8209     }
8210   else
8211     {
8212       unsigned long int i = ulongval ();
8213       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8214         return 1;
8215       fprintf (f, "%lu\n", i);
8216     }
8217   return ferror (f) || fclose (f) != 0;
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8225 case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_link") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8234   { (case "(($ac_try" in
8235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236   *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239   (eval "$ac_try") 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   fits_in_uint=`cat conftest.val`
8244 else
8245   echo "$as_me: program exited with status $ac_status" >&5
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ( exit $ac_status )
8250 result=?
8251 fi
8252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 rm -f conftest.val
8255
8256     if test "$fits_in_uint" = 1; then
8257                   cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h.  */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h.  */
8263 #include <stddef.h>
8264         extern size_t foo;
8265         extern unsigned long foo;
8266
8267 int
8268 main ()
8269 {
8270
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } && {
8289          test -z "$ac_c_werror_flag" ||
8290          test ! -s conftest.err
8291        } && test -s conftest.$ac_objext; then
8292   fits_in_uint=0
8293 else
8294   echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297
8298 fi
8299
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301     fi
8302     if test -z "$result"; then
8303       if test "$fits_in_uint" = 1; then
8304         result="$res_hi$res_lo"U
8305       else
8306         result="$res_hi$res_lo"UL
8307       fi
8308     else
8309             result='~(size_t)0'
8310     fi
8311   fi
8312   { echo "$as_me:$LINENO: result: $result" >&5
8313 echo "${ECHO_T}$result" >&6; }
8314   if test "$result" != yes; then
8315
8316 cat >>confdefs.h <<_ACEOF
8317 #define SIZE_MAX $result
8318 _ACEOF
8319
8320   fi
8321
8322
8323
8324
8325 for ac_header in stdint.h
8326 do
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 fi
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335                { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 else
8338   # Is the header compilable?
8339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
8348 #include <$ac_header>
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357   (eval "$ac_compile") 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } && {
8364          test -z "$ac_c_werror_flag" ||
8365          test ! -s conftest.err
8366        } && test -s conftest.$ac_objext; then
8367   ac_header_compiler=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372         ac_header_compiler=no
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377 echo "${ECHO_T}$ac_header_compiler" >&6; }
8378
8379 # Is the header present?
8380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 #include <$ac_header>
8389 _ACEOF
8390 if { (ac_try="$ac_cpp conftest.$ac_ext"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } >/dev/null && {
8403          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        }; then
8406   ac_header_preproc=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411   ac_header_preproc=no
8412 fi
8413
8414 rm -f conftest.err conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6; }
8417
8418 # So?  What about this header?
8419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8420   yes:no: )
8421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8425     ac_header_preproc=yes
8426     ;;
8427   no:yes:* )
8428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8440
8441     ;;
8442 esac
8443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   eval "$as_ac_Header=\$ac_header_preproc"
8449 fi
8450 ac_res=`eval echo '${'$as_ac_Header'}'`
8451                { echo "$as_me:$LINENO: result: $ac_res" >&5
8452 echo "${ECHO_T}$ac_res" >&6; }
8453
8454 fi
8455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8456   cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8458 _ACEOF
8459
8460 fi
8461
8462 done
8463
8464
8465
8466       if test "X$prefix" = "XNONE"; then
8467     acl_final_prefix="$ac_default_prefix"
8468   else
8469     acl_final_prefix="$prefix"
8470   fi
8471   if test "X$exec_prefix" = "XNONE"; then
8472     acl_final_exec_prefix='${prefix}'
8473   else
8474     acl_final_exec_prefix="$exec_prefix"
8475   fi
8476   acl_save_prefix="$prefix"
8477   prefix="$acl_final_prefix"
8478   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8479   prefix="$acl_save_prefix"
8480
8481
8482 # Check whether --with-gnu-ld was given.
8483 if test "${with_gnu_ld+set}" = set; then
8484   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8485 else
8486   with_gnu_ld=no
8487 fi
8488
8489 # Prepare PATH_SEPARATOR.
8490 # The user is always right.
8491 if test "${PATH_SEPARATOR+set}" != set; then
8492   echo "#! /bin/sh" >conf$$.sh
8493   echo  "exit 0"   >>conf$$.sh
8494   chmod +x conf$$.sh
8495   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8496     PATH_SEPARATOR=';'
8497   else
8498     PATH_SEPARATOR=:
8499   fi
8500   rm -f conf$$.sh
8501 fi
8502 ac_prog=ld
8503 if test "$GCC" = yes; then
8504   # Check if gcc -print-prog-name=ld gives a path.
8505   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8506 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8507   case $host in
8508   *-*-mingw*)
8509     # gcc leaves a trailing carriage return which upsets mingw
8510     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8511   *)
8512     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8513   esac
8514   case $ac_prog in
8515     # Accept absolute paths.
8516     [\\/]* | [A-Za-z]:[\\/]*)
8517       re_direlt='/[^/][^/]*/\.\./'
8518       # Canonicalize the path of ld
8519       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8520       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8521         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8522       done
8523       test -z "$LD" && LD="$ac_prog"
8524       ;;
8525   "")
8526     # If it fails, then pretend we aren't using GCC.
8527     ac_prog=ld
8528     ;;
8529   *)
8530     # If it is relative, then search for the first ld in PATH.
8531     with_gnu_ld=unknown
8532     ;;
8533   esac
8534 elif test "$with_gnu_ld" = yes; then
8535   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8536 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8537 else
8538   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8539 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8540 fi
8541 if test "${acl_cv_path_LD+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   if test -z "$LD"; then
8545   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8546   for ac_dir in $PATH; do
8547     test -z "$ac_dir" && ac_dir=.
8548     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8549       acl_cv_path_LD="$ac_dir/$ac_prog"
8550       # Check to see if the program is GNU ld.  I'd rather use --version,
8551       # but apparently some GNU ld's only accept -v.
8552       # Break only if it was the GNU/non-GNU ld that we prefer.
8553       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8554       *GNU* | *'with BFD'*)
8555         test "$with_gnu_ld" != no && break ;;
8556       *)
8557         test "$with_gnu_ld" != yes && break ;;
8558       esac
8559     fi
8560   done
8561   IFS="$ac_save_ifs"
8562 else
8563   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8564 fi
8565 fi
8566
8567 LD="$acl_cv_path_LD"
8568 if test -n "$LD"; then
8569   { echo "$as_me:$LINENO: result: $LD" >&5
8570 echo "${ECHO_T}$LD" >&6; }
8571 else
8572   { echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6; }
8574 fi
8575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8577    { (exit 1); exit 1; }; }
8578 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8580 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8584 case `$LD -v 2>&1 </dev/null` in
8585 *GNU* | *'with BFD'*)
8586   acl_cv_prog_gnu_ld=yes ;;
8587 *)
8588   acl_cv_prog_gnu_ld=no ;;
8589 esac
8590 fi
8591 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8592 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8593 with_gnu_ld=$acl_cv_prog_gnu_ld
8594
8595
8596
8597                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8598 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8599 if test "${acl_cv_rpath+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602
8603     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8604     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8605     . ./conftest.sh
8606     rm -f ./conftest.sh
8607     acl_cv_rpath=done
8608
8609 fi
8610 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8611 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8612   wl="$acl_cv_wl"
8613   libext="$acl_cv_libext"
8614   shlibext="$acl_cv_shlibext"
8615   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8616   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8617   hardcode_direct="$acl_cv_hardcode_direct"
8618   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8619     # Check whether --enable-rpath was given.
8620 if test "${enable_rpath+set}" = set; then
8621   enableval=$enable_rpath; :
8622 else
8623   enable_rpath=yes
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633     use_additional=yes
8634
8635   acl_save_prefix="$prefix"
8636   prefix="$acl_final_prefix"
8637   acl_save_exec_prefix="$exec_prefix"
8638   exec_prefix="$acl_final_exec_prefix"
8639
8640     eval additional_includedir=\"$includedir\"
8641     eval additional_libdir=\"$libdir\"
8642
8643   exec_prefix="$acl_save_exec_prefix"
8644   prefix="$acl_save_prefix"
8645
8646
8647 # Check whether --with-libiconv-prefix was given.
8648 if test "${with_libiconv_prefix+set}" = set; then
8649   withval=$with_libiconv_prefix;
8650     if test "X$withval" = "Xno"; then
8651       use_additional=no
8652     else
8653       if test "X$withval" = "X"; then
8654
8655   acl_save_prefix="$prefix"
8656   prefix="$acl_final_prefix"
8657   acl_save_exec_prefix="$exec_prefix"
8658   exec_prefix="$acl_final_exec_prefix"
8659
8660           eval additional_includedir=\"$includedir\"
8661           eval additional_libdir=\"$libdir\"
8662
8663   exec_prefix="$acl_save_exec_prefix"
8664   prefix="$acl_save_prefix"
8665
8666       else
8667         additional_includedir="$withval/include"
8668         additional_libdir="$withval/lib"
8669       fi
8670     fi
8671
8672 fi
8673
8674       LIBICONV=
8675   LTLIBICONV=
8676   INCICONV=
8677   rpathdirs=
8678   ltrpathdirs=
8679   names_already_handled=
8680   names_next_round='iconv '
8681   while test -n "$names_next_round"; do
8682     names_this_round="$names_next_round"
8683     names_next_round=
8684     for name in $names_this_round; do
8685       already_handled=
8686       for n in $names_already_handled; do
8687         if test "$n" = "$name"; then
8688           already_handled=yes
8689           break
8690         fi
8691       done
8692       if test -z "$already_handled"; then
8693         names_already_handled="$names_already_handled $name"
8694                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8695         eval value=\"\$HAVE_LIB$uppername\"
8696         if test -n "$value"; then
8697           if test "$value" = yes; then
8698             eval value=\"\$LIB$uppername\"
8699             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8700             eval value=\"\$LTLIB$uppername\"
8701             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8702           else
8703                                     :
8704           fi
8705         else
8706                               found_dir=
8707           found_la=
8708           found_so=
8709           found_a=
8710           if test $use_additional = yes; then
8711             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8712               found_dir="$additional_libdir"
8713               found_so="$additional_libdir/lib$name.$shlibext"
8714               if test -f "$additional_libdir/lib$name.la"; then
8715                 found_la="$additional_libdir/lib$name.la"
8716               fi
8717             else
8718               if test -f "$additional_libdir/lib$name.$libext"; then
8719                 found_dir="$additional_libdir"
8720                 found_a="$additional_libdir/lib$name.$libext"
8721                 if test -f "$additional_libdir/lib$name.la"; then
8722                   found_la="$additional_libdir/lib$name.la"
8723                 fi
8724               fi
8725             fi
8726           fi
8727           if test "X$found_dir" = "X"; then
8728             for x in $LDFLAGS $LTLIBICONV; do
8729
8730   acl_save_prefix="$prefix"
8731   prefix="$acl_final_prefix"
8732   acl_save_exec_prefix="$exec_prefix"
8733   exec_prefix="$acl_final_exec_prefix"
8734   eval x=\"$x\"
8735   exec_prefix="$acl_save_exec_prefix"
8736   prefix="$acl_save_prefix"
8737
8738               case "$x" in
8739                 -L*)
8740                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8741                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8742                     found_dir="$dir"
8743                     found_so="$dir/lib$name.$shlibext"
8744                     if test -f "$dir/lib$name.la"; then
8745                       found_la="$dir/lib$name.la"
8746                     fi
8747                   else
8748                     if test -f "$dir/lib$name.$libext"; then
8749                       found_dir="$dir"
8750                       found_a="$dir/lib$name.$libext"
8751                       if test -f "$dir/lib$name.la"; then
8752                         found_la="$dir/lib$name.la"
8753                       fi
8754                     fi
8755                   fi
8756                   ;;
8757               esac
8758               if test "X$found_dir" != "X"; then
8759                 break
8760               fi
8761             done
8762           fi
8763           if test "X$found_dir" != "X"; then
8764                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8765             if test "X$found_so" != "X"; then
8766                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8767                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8768               else
8769                                                                                 haveit=
8770                 for x in $ltrpathdirs; do
8771                   if test "X$x" = "X$found_dir"; then
8772                     haveit=yes
8773                     break
8774                   fi
8775                 done
8776                 if test -z "$haveit"; then
8777                   ltrpathdirs="$ltrpathdirs $found_dir"
8778                 fi
8779                                 if test "$hardcode_direct" = yes; then
8780                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8781                 else
8782                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8783                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8784                                                             haveit=
8785                     for x in $rpathdirs; do
8786                       if test "X$x" = "X$found_dir"; then
8787                         haveit=yes
8788                         break
8789                       fi
8790                     done
8791                     if test -z "$haveit"; then
8792                       rpathdirs="$rpathdirs $found_dir"
8793                     fi
8794                   else
8795                                                                                 haveit=
8796                     for x in $LDFLAGS $LIBICONV; do
8797
8798   acl_save_prefix="$prefix"
8799   prefix="$acl_final_prefix"
8800   acl_save_exec_prefix="$exec_prefix"
8801   exec_prefix="$acl_final_exec_prefix"
8802   eval x=\"$x\"
8803   exec_prefix="$acl_save_exec_prefix"
8804   prefix="$acl_save_prefix"
8805
8806                       if test "X$x" = "X-L$found_dir"; then
8807                         haveit=yes
8808                         break
8809                       fi
8810                     done
8811                     if test -z "$haveit"; then
8812                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8813                     fi
8814                     if test "$hardcode_minus_L" != no; then
8815                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8816                     else
8817                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8818                     fi
8819                   fi
8820                 fi
8821               fi
8822             else
8823               if test "X$found_a" != "X"; then
8824                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8825               else
8826                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8827               fi
8828             fi
8829                         additional_includedir=
8830             case "$found_dir" in
8831               */lib | */lib/)
8832                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8833                 additional_includedir="$basedir/include"
8834                 ;;
8835             esac
8836             if test "X$additional_includedir" != "X"; then
8837                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8838                 haveit=
8839                 if test "X$additional_includedir" = "X/usr/local/include"; then
8840                   if test -n "$GCC"; then
8841                     case $host_os in
8842                       linux*) haveit=yes;;
8843                     esac
8844                   fi
8845                 fi
8846                 if test -z "$haveit"; then
8847                   for x in $CPPFLAGS $INCICONV; do
8848
8849   acl_save_prefix="$prefix"
8850   prefix="$acl_final_prefix"
8851   acl_save_exec_prefix="$exec_prefix"
8852   exec_prefix="$acl_final_exec_prefix"
8853   eval x=\"$x\"
8854   exec_prefix="$acl_save_exec_prefix"
8855   prefix="$acl_save_prefix"
8856
8857                     if test "X$x" = "X-I$additional_includedir"; then
8858                       haveit=yes
8859                       break
8860                     fi
8861                   done
8862                   if test -z "$haveit"; then
8863                     if test -d "$additional_includedir"; then
8864                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8865                     fi
8866                   fi
8867                 fi
8868               fi
8869             fi
8870                         if test -n "$found_la"; then
8871                                                         save_libdir="$libdir"
8872               case "$found_la" in
8873                 */* | *\\*) . "$found_la" ;;
8874                 *) . "./$found_la" ;;
8875               esac
8876               libdir="$save_libdir"
8877                             for dep in $dependency_libs; do
8878                 case "$dep" in
8879                   -L*)
8880                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8881                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8882                       haveit=
8883                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8884                         if test -n "$GCC"; then
8885                           case $host_os in
8886                             linux*) haveit=yes;;
8887                           esac
8888                         fi
8889                       fi
8890                       if test -z "$haveit"; then
8891                         haveit=
8892                         for x in $LDFLAGS $LIBICONV; do
8893
8894   acl_save_prefix="$prefix"
8895   prefix="$acl_final_prefix"
8896   acl_save_exec_prefix="$exec_prefix"
8897   exec_prefix="$acl_final_exec_prefix"
8898   eval x=\"$x\"
8899   exec_prefix="$acl_save_exec_prefix"
8900   prefix="$acl_save_prefix"
8901
8902                           if test "X$x" = "X-L$additional_libdir"; then
8903                             haveit=yes
8904                             break
8905                           fi
8906                         done
8907                         if test -z "$haveit"; then
8908                           if test -d "$additional_libdir"; then
8909                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8910                           fi
8911                         fi
8912                         haveit=
8913                         for x in $LDFLAGS $LTLIBICONV; do
8914
8915   acl_save_prefix="$prefix"
8916   prefix="$acl_final_prefix"
8917   acl_save_exec_prefix="$exec_prefix"
8918   exec_prefix="$acl_final_exec_prefix"
8919   eval x=\"$x\"
8920   exec_prefix="$acl_save_exec_prefix"
8921   prefix="$acl_save_prefix"
8922
8923                           if test "X$x" = "X-L$additional_libdir"; then
8924                             haveit=yes
8925                             break
8926                           fi
8927                         done
8928                         if test -z "$haveit"; then
8929                           if test -d "$additional_libdir"; then
8930                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8931                           fi
8932                         fi
8933                       fi
8934                     fi
8935                     ;;
8936                   -R*)
8937                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8938                     if test "$enable_rpath" != no; then
8939                                                                   haveit=
8940                       for x in $rpathdirs; do
8941                         if test "X$x" = "X$dir"; then
8942                           haveit=yes
8943                           break
8944                         fi
8945                       done
8946                       if test -z "$haveit"; then
8947                         rpathdirs="$rpathdirs $dir"
8948                       fi
8949                                                                   haveit=
8950                       for x in $ltrpathdirs; do
8951                         if test "X$x" = "X$dir"; then
8952                           haveit=yes
8953                           break
8954                         fi
8955                       done
8956                       if test -z "$haveit"; then
8957                         ltrpathdirs="$ltrpathdirs $dir"
8958                       fi
8959                     fi
8960                     ;;
8961                   -l*)
8962                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8963                     ;;
8964                   *.la)
8965                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8966                     ;;
8967                   *)
8968                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8969                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8970                     ;;
8971                 esac
8972               done
8973             fi
8974           else
8975                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8976             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8977           fi
8978         fi
8979       fi
8980     done
8981   done
8982   if test "X$rpathdirs" != "X"; then
8983     if test -n "$hardcode_libdir_separator"; then
8984                         alldirs=
8985       for found_dir in $rpathdirs; do
8986         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8987       done
8988             acl_save_libdir="$libdir"
8989       libdir="$alldirs"
8990       eval flag=\"$hardcode_libdir_flag_spec\"
8991       libdir="$acl_save_libdir"
8992       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8993     else
8994             for found_dir in $rpathdirs; do
8995         acl_save_libdir="$libdir"
8996         libdir="$found_dir"
8997         eval flag=\"$hardcode_libdir_flag_spec\"
8998         libdir="$acl_save_libdir"
8999         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9000       done
9001     fi
9002   fi
9003   if test "X$ltrpathdirs" != "X"; then
9004             for found_dir in $ltrpathdirs; do
9005       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9006     done
9007   fi
9008
9009
9010
9011
9012
9013
9014
9015
9016   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9017 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9018 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 $ac_includes_default
9028 typedef ptrdiff_t ac__type_new_;
9029 int
9030 main ()
9031 {
9032 if ((ac__type_new_ *) 0)
9033   return 0;
9034 if (sizeof (ac__type_new_))
9035   return 0;
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (ac_try="$ac_compile"
9042 case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_compile") 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } && {
9054          test -z "$ac_c_werror_flag" ||
9055          test ! -s conftest.err
9056        } && test -s conftest.$ac_objext; then
9057   ac_cv_type_ptrdiff_t=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062         ac_cv_type_ptrdiff_t=no
9063 fi
9064
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 fi
9067 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9068 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9069 if test $ac_cv_type_ptrdiff_t = yes; then
9070   :
9071 else
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define ptrdiff_t long
9075 _ACEOF
9076
9077
9078 fi
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9091 stdlib.h string.h unistd.h sys/param.h
9092 do
9093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 fi
9100 ac_res=`eval echo '${'$as_ac_Header'}'`
9101                { echo "$as_me:$LINENO: result: $ac_res" >&5
9102 echo "${ECHO_T}$ac_res" >&6; }
9103 else
9104   # Is the header compilable?
9105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9106 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9114 #include <$ac_header>
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9118 case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123   (eval "$ac_compile") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && {
9130          test -z "$ac_c_werror_flag" ||
9131          test ! -s conftest.err
9132        } && test -s conftest.$ac_objext; then
9133   ac_header_compiler=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138         ac_header_compiler=no
9139 fi
9140
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9143 echo "${ECHO_T}$ac_header_compiler" >&6; }
9144
9145 # Is the header present?
9146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h.  */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h.  */
9154 #include <$ac_header>
9155 _ACEOF
9156 if { (ac_try="$ac_cpp conftest.$ac_ext"
9157 case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } >/dev/null && {
9169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9170          test ! -s conftest.err
9171        }; then
9172   ac_header_preproc=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177   ac_header_preproc=no
9178 fi
9179
9180 rm -f conftest.err conftest.$ac_ext
9181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182 echo "${ECHO_T}$ac_header_preproc" >&6; }
9183
9184 # So?  What about this header?
9185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9186   yes:no: )
9187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191     ac_header_preproc=yes
9192     ;;
9193   no:yes:* )
9194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9206
9207     ;;
9208 esac
9209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   eval "$as_ac_Header=\$ac_header_preproc"
9215 fi
9216 ac_res=`eval echo '${'$as_ac_Header'}'`
9217                { echo "$as_me:$LINENO: result: $ac_res" >&5
9218 echo "${ECHO_T}$ac_res" >&6; }
9219
9220 fi
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222   cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224 _ACEOF
9225
9226 fi
9227
9228 done
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9254 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9255 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9256 __fsetlocking
9257 do
9258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9272 #define $ac_func innocuous_$ac_func
9273
9274 /* System header to define __stub macros and hopefully few prototypes,
9275     which can conflict with char $ac_func (); below.
9276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277     <limits.h> exists even on freestanding compilers.  */
9278
9279 #ifdef __STDC__
9280 # include <limits.h>
9281 #else
9282 # include <assert.h>
9283 #endif
9284
9285 #undef $ac_func
9286
9287 /* Override any GCC internal prototype to avoid an error.
9288    Use char because int might match the return type of a GCC
9289    builtin and then its argument prototype would still apply.  */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 char $ac_func ();
9294 /* The GNU C library defines this for functions which it implements
9295     to always fail with ENOSYS.  Some functions are actually named
9296     something starting with __ and the normal name is an alias.  */
9297 #if defined __stub_$ac_func || defined __stub___$ac_func
9298 choke me
9299 #endif
9300
9301 int
9302 main ()
9303 {
9304 return $ac_func ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316   (eval "$ac_link") 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } && {
9323          test -z "$ac_c_werror_flag" ||
9324          test ! -s conftest.err
9325        } && test -s conftest$ac_exeext &&
9326        $as_test_x conftest$ac_exeext; then
9327   eval "$as_ac_var=yes"
9328 else
9329   echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332         eval "$as_ac_var=no"
9333 fi
9334
9335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336       conftest$ac_exeext conftest.$ac_ext
9337 fi
9338 ac_res=`eval echo '${'$as_ac_var'}'`
9339                { echo "$as_me:$LINENO: result: $ac_res" >&5
9340 echo "${ECHO_T}$ac_res" >&6; }
9341 if test `eval echo '${'$as_ac_var'}'` = yes; then
9342   cat >>confdefs.h <<_ACEOF
9343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344 _ACEOF
9345
9346 fi
9347 done
9348
9349
9350
9351   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9352 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9353 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 #include <stdio.h>
9363 int
9364 main ()
9365 {
9366
9367 #ifndef _snprintf
9368   char *p = (char *) _snprintf;
9369 #endif
9370
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext
9376 if { (ac_try="$ac_compile"
9377 case "(($ac_try" in
9378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379   *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382   (eval "$ac_compile") 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } && {
9389          test -z "$ac_c_werror_flag" ||
9390          test ! -s conftest.err
9391        } && test -s conftest.$ac_objext; then
9392   ac_cv_have_decl__snprintf=yes
9393 else
9394   echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397         ac_cv_have_decl__snprintf=no
9398 fi
9399
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 fi
9402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9403 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9404   if test $ac_cv_have_decl__snprintf = yes; then
9405     gt_value=1
9406   else
9407     gt_value=0
9408   fi
9409
9410 cat >>confdefs.h <<_ACEOF
9411 #define HAVE_DECL__SNPRINTF $gt_value
9412 _ACEOF
9413
9414
9415
9416   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9417 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9418 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <stdio.h>
9428 int
9429 main ()
9430 {
9431
9432 #ifndef _snwprintf
9433   char *p = (char *) _snwprintf;
9434 #endif
9435
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_compile") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest.$ac_objext; then
9457   ac_cv_have_decl__snwprintf=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462         ac_cv_have_decl__snwprintf=no
9463 fi
9464
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9468 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9469   if test $ac_cv_have_decl__snwprintf = yes; then
9470     gt_value=1
9471   else
9472     gt_value=0
9473   fi
9474
9475 cat >>confdefs.h <<_ACEOF
9476 #define HAVE_DECL__SNWPRINTF $gt_value
9477 _ACEOF
9478
9479
9480
9481
9482   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9483 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9484 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 #include <stdio.h>
9494 int
9495 main ()
9496 {
9497
9498 #ifndef feof_unlocked
9499   char *p = (char *) feof_unlocked;
9500 #endif
9501
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (ac_try="$ac_compile"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513   (eval "$ac_compile") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } && {
9520          test -z "$ac_c_werror_flag" ||
9521          test ! -s conftest.err
9522        } && test -s conftest.$ac_objext; then
9523   ac_cv_have_decl_feof_unlocked=yes
9524 else
9525   echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9527
9528         ac_cv_have_decl_feof_unlocked=no
9529 fi
9530
9531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532 fi
9533 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9534 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9535   if test $ac_cv_have_decl_feof_unlocked = yes; then
9536     gt_value=1
9537   else
9538     gt_value=0
9539   fi
9540
9541 cat >>confdefs.h <<_ACEOF
9542 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9543 _ACEOF
9544
9545
9546
9547   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9548 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9549 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 #include <stdio.h>
9559 int
9560 main ()
9561 {
9562
9563 #ifndef fgets_unlocked
9564   char *p = (char *) fgets_unlocked;
9565 #endif
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9573 case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_compile") 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } && {
9585          test -z "$ac_c_werror_flag" ||
9586          test ! -s conftest.err
9587        } && test -s conftest.$ac_objext; then
9588   ac_cv_have_decl_fgets_unlocked=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593         ac_cv_have_decl_fgets_unlocked=no
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9599 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9600   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9601     gt_value=1
9602   else
9603     gt_value=0
9604   fi
9605
9606 cat >>confdefs.h <<_ACEOF
9607 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9608 _ACEOF
9609
9610
9611
9612   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9613 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9614 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h.  */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h.  */
9623 #include <stdio.h>
9624 int
9625 main ()
9626 {
9627
9628 #ifndef getc_unlocked
9629   char *p = (char *) getc_unlocked;
9630 #endif
9631
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9638 case "(($ac_try" in
9639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640   *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643   (eval "$ac_compile") 2>conftest.er1
9644   ac_status=$?
9645   grep -v '^ *+' conftest.er1 >conftest.err
9646   rm -f conftest.er1
9647   cat conftest.err >&5
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } && {
9650          test -z "$ac_c_werror_flag" ||
9651          test ! -s conftest.err
9652        } && test -s conftest.$ac_objext; then
9653   ac_cv_have_decl_getc_unlocked=yes
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658         ac_cv_have_decl_getc_unlocked=no
9659 fi
9660
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 fi
9663 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9664 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9665   if test $ac_cv_have_decl_getc_unlocked = yes; then
9666     gt_value=1
9667   else
9668     gt_value=0
9669   fi
9670
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9673 _ACEOF
9674
9675
9676
9677   case $gt_cv_func_printf_posix in
9678     *yes) HAVE_POSIX_PRINTF=1 ;;
9679     *) HAVE_POSIX_PRINTF=0 ;;
9680   esac
9681
9682   if test "$ac_cv_func_asprintf" = yes; then
9683     HAVE_ASPRINTF=1
9684   else
9685     HAVE_ASPRINTF=0
9686   fi
9687
9688   if test "$ac_cv_func_snprintf" = yes; then
9689     HAVE_SNPRINTF=1
9690   else
9691     HAVE_SNPRINTF=0
9692   fi
9693
9694   if test "$ac_cv_func_wprintf" = yes; then
9695     HAVE_WPRINTF=1
9696   else
9697     HAVE_WPRINTF=0
9698   fi
9699
9700
9701
9702
9703
9704
9705
9706           am_save_CPPFLAGS="$CPPFLAGS"
9707
9708   for element in $INCICONV; do
9709     haveit=
9710     for x in $CPPFLAGS; do
9711
9712   acl_save_prefix="$prefix"
9713   prefix="$acl_final_prefix"
9714   acl_save_exec_prefix="$exec_prefix"
9715   exec_prefix="$acl_final_exec_prefix"
9716   eval x=\"$x\"
9717   exec_prefix="$acl_save_exec_prefix"
9718   prefix="$acl_save_prefix"
9719
9720       if test "X$x" = "X$element"; then
9721         haveit=yes
9722         break
9723       fi
9724     done
9725     if test -z "$haveit"; then
9726       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9727     fi
9728   done
9729
9730
9731   { echo "$as_me:$LINENO: checking for iconv" >&5
9732 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9733 if test "${am_cv_func_iconv+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736
9737     am_cv_func_iconv="no, consider installing GNU libiconv"
9738     am_cv_lib_iconv=no
9739     cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745 #include <stdlib.h>
9746 #include <iconv.h>
9747 int
9748 main ()
9749 {
9750 iconv_t cd = iconv_open("","");
9751        iconv(cd,NULL,NULL,NULL,NULL);
9752        iconv_close(cd);
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_link") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && {
9771          test -z "$ac_c_werror_flag" ||
9772          test ! -s conftest.err
9773        } && test -s conftest$ac_exeext &&
9774        $as_test_x conftest$ac_exeext; then
9775   am_cv_func_iconv=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780
9781 fi
9782
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784       conftest$ac_exeext conftest.$ac_ext
9785     if test "$am_cv_func_iconv" != yes; then
9786       am_save_LIBS="$LIBS"
9787       LIBS="$LIBS $LIBICONV"
9788       cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 #include <stdlib.h>
9795 #include <iconv.h>
9796 int
9797 main ()
9798 {
9799 iconv_t cd = iconv_open("","");
9800          iconv(cd,NULL,NULL,NULL,NULL);
9801          iconv_close(cd);
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9808 case "(($ac_try" in
9809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810   *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813   (eval "$ac_link") 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } && {
9820          test -z "$ac_c_werror_flag" ||
9821          test ! -s conftest.err
9822        } && test -s conftest$ac_exeext &&
9823        $as_test_x conftest$ac_exeext; then
9824   am_cv_lib_iconv=yes
9825         am_cv_func_iconv=yes
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830
9831 fi
9832
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834       conftest$ac_exeext conftest.$ac_ext
9835       LIBS="$am_save_LIBS"
9836     fi
9837
9838 fi
9839 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9840 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9841   if test "$am_cv_func_iconv" = yes; then
9842
9843 cat >>confdefs.h <<\_ACEOF
9844 #define HAVE_ICONV 1
9845 _ACEOF
9846
9847   fi
9848   if test "$am_cv_lib_iconv" = yes; then
9849     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9850 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9851     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9852 echo "${ECHO_T}$LIBICONV" >&6; }
9853   else
9854             CPPFLAGS="$am_save_CPPFLAGS"
9855     LIBICONV=
9856     LTLIBICONV=
9857   fi
9858
9859
9860
9861   if test "$am_cv_func_iconv" = yes; then
9862     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9863 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9864     if test "${am_cv_proto_iconv+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867
9868       cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874
9875 #include <stdlib.h>
9876 #include <iconv.h>
9877 extern
9878 #ifdef __cplusplus
9879 "C"
9880 #endif
9881 #if defined(__STDC__) || defined(__cplusplus)
9882 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9883 #else
9884 size_t iconv();
9885 #endif
9886
9887 int
9888 main ()
9889 {
9890
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_compile") 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } && {
9909          test -z "$ac_c_werror_flag" ||
9910          test ! -s conftest.err
9911        } && test -s conftest.$ac_objext; then
9912   am_cv_proto_iconv_arg1=""
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917         am_cv_proto_iconv_arg1="const"
9918 fi
9919
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921       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);"
9922 fi
9923
9924     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9925     { echo "$as_me:$LINENO: result: ${ac_t:-
9926          }$am_cv_proto_iconv" >&5
9927 echo "${ECHO_T}${ac_t:-
9928          }$am_cv_proto_iconv" >&6; }
9929
9930 cat >>confdefs.h <<_ACEOF
9931 #define ICONV_CONST $am_cv_proto_iconv_arg1
9932 _ACEOF
9933
9934   fi
9935
9936
9937   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9938 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9939 if test "${am_cv_langinfo_codeset+set}" = set; then
9940   echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942   cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948 #include <langinfo.h>
9949 int
9950 main ()
9951 {
9952 char* cs = nl_langinfo(CODESET);
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9959 case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_link") 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } && {
9971          test -z "$ac_c_werror_flag" ||
9972          test ! -s conftest.err
9973        } && test -s conftest$ac_exeext &&
9974        $as_test_x conftest$ac_exeext; then
9975   am_cv_langinfo_codeset=yes
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980         am_cv_langinfo_codeset=no
9981 fi
9982
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984       conftest$ac_exeext conftest.$ac_ext
9985
9986 fi
9987 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9988 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9989   if test $am_cv_langinfo_codeset = yes; then
9990
9991 cat >>confdefs.h <<\_ACEOF
9992 #define HAVE_LANGINFO_CODESET 1
9993 _ACEOF
9994
9995   fi
9996
9997   if test $ac_cv_header_locale_h = yes; then
9998
9999   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10000 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10001 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10002   echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004   cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h.  */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h.  */
10010 #include <locale.h>
10011 int
10012 main ()
10013 {
10014 return LC_MESSAGES
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_link") 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } && {
10033          test -z "$ac_c_werror_flag" ||
10034          test ! -s conftest.err
10035        } && test -s conftest$ac_exeext &&
10036        $as_test_x conftest$ac_exeext; then
10037   am_cv_val_LC_MESSAGES=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042         am_cv_val_LC_MESSAGES=no
10043 fi
10044
10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10046       conftest$ac_exeext conftest.$ac_ext
10047 fi
10048 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10049 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10050   if test $am_cv_val_LC_MESSAGES = yes; then
10051
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_LC_MESSAGES 1
10054 _ACEOF
10055
10056   fi
10057
10058   fi
10059
10060                       for ac_prog in bison
10061 do
10062   # Extract the first word of "$ac_prog", so it can be a program name with args.
10063 set dummy $ac_prog; ac_word=$2
10064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10066 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   if test -n "$INTLBISON"; then
10070   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10071 else
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075   IFS=$as_save_IFS
10076   test -z "$as_dir" && as_dir=.
10077   for ac_exec_ext in '' $ac_executable_extensions; do
10078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079     ac_cv_prog_INTLBISON="$ac_prog"
10080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10081     break 2
10082   fi
10083 done
10084 done
10085 IFS=$as_save_IFS
10086
10087 fi
10088 fi
10089 INTLBISON=$ac_cv_prog_INTLBISON
10090 if test -n "$INTLBISON"; then
10091   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10092 echo "${ECHO_T}$INTLBISON" >&6; }
10093 else
10094   { echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6; }
10096 fi
10097
10098
10099   test -n "$INTLBISON" && break
10100 done
10101
10102   if test -z "$INTLBISON"; then
10103     ac_verc_fail=yes
10104   else
10105         { echo "$as_me:$LINENO: checking version of bison" >&5
10106 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10107     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10108     case $ac_prog_version in
10109       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10110       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10111          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10112       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10113     esac
10114     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10115 echo "${ECHO_T}$ac_prog_version" >&6; }
10116   fi
10117   if test $ac_verc_fail = yes; then
10118     INTLBISON=:
10119   fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10137 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10138     # Check whether --enable-nls was given.
10139 if test "${enable_nls+set}" = set; then
10140   enableval=$enable_nls; USE_NLS=$enableval
10141 else
10142   USE_NLS=yes
10143 fi
10144
10145   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10146 echo "${ECHO_T}$USE_NLS" >&6; }
10147
10148
10149
10150
10151     BUILD_INCLUDED_LIBINTL=no
10152     USE_INCLUDED_LIBINTL=no
10153
10154   LIBINTL=
10155   LTLIBINTL=
10156   POSUB=
10157
10158     if test "$USE_NLS" = "yes"; then
10159     gt_use_preinstalled_gnugettext=no
10160
10161       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10162 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10163
10164 # Check whether --with-included-gettext was given.
10165 if test "${with_included_gettext+set}" = set; then
10166   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10167 else
10168   nls_cv_force_use_gnu_gettext=no
10169 fi
10170
10171       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10172 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10173
10174       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10175       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10176
10177
10178
10179
10180
10181
10182         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10183 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10184 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193 #include <libintl.h>
10194 extern int _nl_msg_cat_cntr;
10195 extern int *_nl_domain_bindings;
10196 int
10197 main ()
10198 {
10199 bindtextdomain ("", "");
10200 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209   *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212   (eval "$ac_link") 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } && {
10219          test -z "$ac_c_werror_flag" ||
10220          test ! -s conftest.err
10221        } && test -s conftest$ac_exeext &&
10222        $as_test_x conftest$ac_exeext; then
10223   gt_cv_func_gnugettext1_libc=yes
10224 else
10225   echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228         gt_cv_func_gnugettext1_libc=no
10229 fi
10230
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232       conftest$ac_exeext conftest.$ac_ext
10233 fi
10234 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10235 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10236
10237         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10238
10239
10240
10241     use_additional=yes
10242
10243   acl_save_prefix="$prefix"
10244   prefix="$acl_final_prefix"
10245   acl_save_exec_prefix="$exec_prefix"
10246   exec_prefix="$acl_final_exec_prefix"
10247
10248     eval additional_includedir=\"$includedir\"
10249     eval additional_libdir=\"$libdir\"
10250
10251   exec_prefix="$acl_save_exec_prefix"
10252   prefix="$acl_save_prefix"
10253
10254
10255 # Check whether --with-libintl-prefix was given.
10256 if test "${with_libintl_prefix+set}" = set; then
10257   withval=$with_libintl_prefix;
10258     if test "X$withval" = "Xno"; then
10259       use_additional=no
10260     else
10261       if test "X$withval" = "X"; then
10262
10263   acl_save_prefix="$prefix"
10264   prefix="$acl_final_prefix"
10265   acl_save_exec_prefix="$exec_prefix"
10266   exec_prefix="$acl_final_exec_prefix"
10267
10268           eval additional_includedir=\"$includedir\"
10269           eval additional_libdir=\"$libdir\"
10270
10271   exec_prefix="$acl_save_exec_prefix"
10272   prefix="$acl_save_prefix"
10273
10274       else
10275         additional_includedir="$withval/include"
10276         additional_libdir="$withval/lib"
10277       fi
10278     fi
10279
10280 fi
10281
10282       LIBINTL=
10283   LTLIBINTL=
10284   INCINTL=
10285   rpathdirs=
10286   ltrpathdirs=
10287   names_already_handled=
10288   names_next_round='intl '
10289   while test -n "$names_next_round"; do
10290     names_this_round="$names_next_round"
10291     names_next_round=
10292     for name in $names_this_round; do
10293       already_handled=
10294       for n in $names_already_handled; do
10295         if test "$n" = "$name"; then
10296           already_handled=yes
10297           break
10298         fi
10299       done
10300       if test -z "$already_handled"; then
10301         names_already_handled="$names_already_handled $name"
10302                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10303         eval value=\"\$HAVE_LIB$uppername\"
10304         if test -n "$value"; then
10305           if test "$value" = yes; then
10306             eval value=\"\$LIB$uppername\"
10307             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10308             eval value=\"\$LTLIB$uppername\"
10309             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10310           else
10311                                     :
10312           fi
10313         else
10314                               found_dir=
10315           found_la=
10316           found_so=
10317           found_a=
10318           if test $use_additional = yes; then
10319             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10320               found_dir="$additional_libdir"
10321               found_so="$additional_libdir/lib$name.$shlibext"
10322               if test -f "$additional_libdir/lib$name.la"; then
10323                 found_la="$additional_libdir/lib$name.la"
10324               fi
10325             else
10326               if test -f "$additional_libdir/lib$name.$libext"; then
10327                 found_dir="$additional_libdir"
10328                 found_a="$additional_libdir/lib$name.$libext"
10329                 if test -f "$additional_libdir/lib$name.la"; then
10330                   found_la="$additional_libdir/lib$name.la"
10331                 fi
10332               fi
10333             fi
10334           fi
10335           if test "X$found_dir" = "X"; then
10336             for x in $LDFLAGS $LTLIBINTL; do
10337
10338   acl_save_prefix="$prefix"
10339   prefix="$acl_final_prefix"
10340   acl_save_exec_prefix="$exec_prefix"
10341   exec_prefix="$acl_final_exec_prefix"
10342   eval x=\"$x\"
10343   exec_prefix="$acl_save_exec_prefix"
10344   prefix="$acl_save_prefix"
10345
10346               case "$x" in
10347                 -L*)
10348                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10349                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10350                     found_dir="$dir"
10351                     found_so="$dir/lib$name.$shlibext"
10352                     if test -f "$dir/lib$name.la"; then
10353                       found_la="$dir/lib$name.la"
10354                     fi
10355                   else
10356                     if test -f "$dir/lib$name.$libext"; then
10357                       found_dir="$dir"
10358                       found_a="$dir/lib$name.$libext"
10359                       if test -f "$dir/lib$name.la"; then
10360                         found_la="$dir/lib$name.la"
10361                       fi
10362                     fi
10363                   fi
10364                   ;;
10365               esac
10366               if test "X$found_dir" != "X"; then
10367                 break
10368               fi
10369             done
10370           fi
10371           if test "X$found_dir" != "X"; then
10372                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10373             if test "X$found_so" != "X"; then
10374                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10375                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10376               else
10377                                                                                 haveit=
10378                 for x in $ltrpathdirs; do
10379                   if test "X$x" = "X$found_dir"; then
10380                     haveit=yes
10381                     break
10382                   fi
10383                 done
10384                 if test -z "$haveit"; then
10385                   ltrpathdirs="$ltrpathdirs $found_dir"
10386                 fi
10387                                 if test "$hardcode_direct" = yes; then
10388                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10389                 else
10390                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10391                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10392                                                             haveit=
10393                     for x in $rpathdirs; do
10394                       if test "X$x" = "X$found_dir"; then
10395                         haveit=yes
10396                         break
10397                       fi
10398                     done
10399                     if test -z "$haveit"; then
10400                       rpathdirs="$rpathdirs $found_dir"
10401                     fi
10402                   else
10403                                                                                 haveit=
10404                     for x in $LDFLAGS $LIBINTL; do
10405
10406   acl_save_prefix="$prefix"
10407   prefix="$acl_final_prefix"
10408   acl_save_exec_prefix="$exec_prefix"
10409   exec_prefix="$acl_final_exec_prefix"
10410   eval x=\"$x\"
10411   exec_prefix="$acl_save_exec_prefix"
10412   prefix="$acl_save_prefix"
10413
10414                       if test "X$x" = "X-L$found_dir"; then
10415                         haveit=yes
10416                         break
10417                       fi
10418                     done
10419                     if test -z "$haveit"; then
10420                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10421                     fi
10422                     if test "$hardcode_minus_L" != no; then
10423                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10424                     else
10425                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10426                     fi
10427                   fi
10428                 fi
10429               fi
10430             else
10431               if test "X$found_a" != "X"; then
10432                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10433               else
10434                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10435               fi
10436             fi
10437                         additional_includedir=
10438             case "$found_dir" in
10439               */lib | */lib/)
10440                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10441                 additional_includedir="$basedir/include"
10442                 ;;
10443             esac
10444             if test "X$additional_includedir" != "X"; then
10445                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10446                 haveit=
10447                 if test "X$additional_includedir" = "X/usr/local/include"; then
10448                   if test -n "$GCC"; then
10449                     case $host_os in
10450                       linux*) haveit=yes;;
10451                     esac
10452                   fi
10453                 fi
10454                 if test -z "$haveit"; then
10455                   for x in $CPPFLAGS $INCINTL; do
10456
10457   acl_save_prefix="$prefix"
10458   prefix="$acl_final_prefix"
10459   acl_save_exec_prefix="$exec_prefix"
10460   exec_prefix="$acl_final_exec_prefix"
10461   eval x=\"$x\"
10462   exec_prefix="$acl_save_exec_prefix"
10463   prefix="$acl_save_prefix"
10464
10465                     if test "X$x" = "X-I$additional_includedir"; then
10466                       haveit=yes
10467                       break
10468                     fi
10469                   done
10470                   if test -z "$haveit"; then
10471                     if test -d "$additional_includedir"; then
10472                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10473                     fi
10474                   fi
10475                 fi
10476               fi
10477             fi
10478                         if test -n "$found_la"; then
10479                                                         save_libdir="$libdir"
10480               case "$found_la" in
10481                 */* | *\\*) . "$found_la" ;;
10482                 *) . "./$found_la" ;;
10483               esac
10484               libdir="$save_libdir"
10485                             for dep in $dependency_libs; do
10486                 case "$dep" in
10487                   -L*)
10488                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10489                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10490                       haveit=
10491                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10492                         if test -n "$GCC"; then
10493                           case $host_os in
10494                             linux*) haveit=yes;;
10495                           esac
10496                         fi
10497                       fi
10498                       if test -z "$haveit"; then
10499                         haveit=
10500                         for x in $LDFLAGS $LIBINTL; do
10501
10502   acl_save_prefix="$prefix"
10503   prefix="$acl_final_prefix"
10504   acl_save_exec_prefix="$exec_prefix"
10505   exec_prefix="$acl_final_exec_prefix"
10506   eval x=\"$x\"
10507   exec_prefix="$acl_save_exec_prefix"
10508   prefix="$acl_save_prefix"
10509
10510                           if test "X$x" = "X-L$additional_libdir"; then
10511                             haveit=yes
10512                             break
10513                           fi
10514                         done
10515                         if test -z "$haveit"; then
10516                           if test -d "$additional_libdir"; then
10517                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10518                           fi
10519                         fi
10520                         haveit=
10521                         for x in $LDFLAGS $LTLIBINTL; do
10522
10523   acl_save_prefix="$prefix"
10524   prefix="$acl_final_prefix"
10525   acl_save_exec_prefix="$exec_prefix"
10526   exec_prefix="$acl_final_exec_prefix"
10527   eval x=\"$x\"
10528   exec_prefix="$acl_save_exec_prefix"
10529   prefix="$acl_save_prefix"
10530
10531                           if test "X$x" = "X-L$additional_libdir"; then
10532                             haveit=yes
10533                             break
10534                           fi
10535                         done
10536                         if test -z "$haveit"; then
10537                           if test -d "$additional_libdir"; then
10538                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10539                           fi
10540                         fi
10541                       fi
10542                     fi
10543                     ;;
10544                   -R*)
10545                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10546                     if test "$enable_rpath" != no; then
10547                                                                   haveit=
10548                       for x in $rpathdirs; do
10549                         if test "X$x" = "X$dir"; then
10550                           haveit=yes
10551                           break
10552                         fi
10553                       done
10554                       if test -z "$haveit"; then
10555                         rpathdirs="$rpathdirs $dir"
10556                       fi
10557                                                                   haveit=
10558                       for x in $ltrpathdirs; do
10559                         if test "X$x" = "X$dir"; then
10560                           haveit=yes
10561                           break
10562                         fi
10563                       done
10564                       if test -z "$haveit"; then
10565                         ltrpathdirs="$ltrpathdirs $dir"
10566                       fi
10567                     fi
10568                     ;;
10569                   -l*)
10570                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10571                     ;;
10572                   *.la)
10573                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10574                     ;;
10575                   *)
10576                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10577                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10578                     ;;
10579                 esac
10580               done
10581             fi
10582           else
10583                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10584             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10585           fi
10586         fi
10587       fi
10588     done
10589   done
10590   if test "X$rpathdirs" != "X"; then
10591     if test -n "$hardcode_libdir_separator"; then
10592                         alldirs=
10593       for found_dir in $rpathdirs; do
10594         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10595       done
10596             acl_save_libdir="$libdir"
10597       libdir="$alldirs"
10598       eval flag=\"$hardcode_libdir_flag_spec\"
10599       libdir="$acl_save_libdir"
10600       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10601     else
10602             for found_dir in $rpathdirs; do
10603         acl_save_libdir="$libdir"
10604         libdir="$found_dir"
10605         eval flag=\"$hardcode_libdir_flag_spec\"
10606         libdir="$acl_save_libdir"
10607         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10608       done
10609     fi
10610   fi
10611   if test "X$ltrpathdirs" != "X"; then
10612             for found_dir in $ltrpathdirs; do
10613       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10614     done
10615   fi
10616
10617           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10618 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10619 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   gt_save_CPPFLAGS="$CPPFLAGS"
10623             CPPFLAGS="$CPPFLAGS $INCINTL"
10624             gt_save_LIBS="$LIBS"
10625             LIBS="$LIBS $LIBINTL"
10626                         cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 #include <libintl.h>
10633 extern int _nl_msg_cat_cntr;
10634 extern
10635 #ifdef __cplusplus
10636 "C"
10637 #endif
10638 const char *_nl_expand_alias ();
10639 int
10640 main ()
10641 {
10642 bindtextdomain ("", "");
10643 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } && {
10662          test -z "$ac_c_werror_flag" ||
10663          test ! -s conftest.err
10664        } && test -s conftest$ac_exeext &&
10665        $as_test_x conftest$ac_exeext; then
10666   gt_cv_func_gnugettext1_libintl=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         gt_cv_func_gnugettext1_libintl=no
10672 fi
10673
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675       conftest$ac_exeext conftest.$ac_ext
10676                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10677               LIBS="$LIBS $LIBICONV"
10678               cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 #include <libintl.h>
10685 extern int _nl_msg_cat_cntr;
10686 extern
10687 #ifdef __cplusplus
10688 "C"
10689 #endif
10690 const char *_nl_expand_alias ();
10691 int
10692 main ()
10693 {
10694 bindtextdomain ("", "");
10695 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_link") 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } && {
10714          test -z "$ac_c_werror_flag" ||
10715          test ! -s conftest.err
10716        } && test -s conftest$ac_exeext &&
10717        $as_test_x conftest$ac_exeext; then
10718   LIBINTL="$LIBINTL $LIBICONV"
10719                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10720                 gt_cv_func_gnugettext1_libintl=yes
10721
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10730       conftest$ac_exeext conftest.$ac_ext
10731             fi
10732             CPPFLAGS="$gt_save_CPPFLAGS"
10733             LIBS="$gt_save_LIBS"
10734 fi
10735 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10736 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10737         fi
10738
10739                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10740            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10741                 && test "$PACKAGE" != gettext-runtime \
10742                 && test "$PACKAGE" != gettext-tools; }; then
10743           gt_use_preinstalled_gnugettext=yes
10744         else
10745                     LIBINTL=
10746           LTLIBINTL=
10747           INCINTL=
10748         fi
10749
10750
10751         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10752                               nls_cv_use_gnu_gettext=yes
10753         fi
10754       fi
10755
10756       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10757                 BUILD_INCLUDED_LIBINTL=yes
10758         USE_INCLUDED_LIBINTL=yes
10759         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10760         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10761         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10762       fi
10763
10764       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10765          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10766                 CATOBJEXT=.gmo
10767       fi
10768
10769
10770     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10771        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define ENABLE_NLS 1
10775 _ACEOF
10776
10777     else
10778       USE_NLS=no
10779     fi
10780   fi
10781
10782   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10783 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10784   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10785 echo "${ECHO_T}$USE_NLS" >&6; }
10786   if test "$USE_NLS" = "yes"; then
10787     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10788 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10789     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10790       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10791         gt_source="external libintl"
10792       else
10793         gt_source="libc"
10794       fi
10795     else
10796       gt_source="included intl directory"
10797     fi
10798     { echo "$as_me:$LINENO: result: $gt_source" >&5
10799 echo "${ECHO_T}$gt_source" >&6; }
10800   fi
10801
10802   if test "$USE_NLS" = "yes"; then
10803
10804     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10805       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10806         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10807 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10808         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10809 echo "${ECHO_T}$LIBINTL" >&6; }
10810
10811   for element in $INCINTL; do
10812     haveit=
10813     for x in $CPPFLAGS; do
10814
10815   acl_save_prefix="$prefix"
10816   prefix="$acl_final_prefix"
10817   acl_save_exec_prefix="$exec_prefix"
10818   exec_prefix="$acl_final_exec_prefix"
10819   eval x=\"$x\"
10820   exec_prefix="$acl_save_exec_prefix"
10821   prefix="$acl_save_prefix"
10822
10823       if test "X$x" = "X$element"; then
10824         haveit=yes
10825         break
10826       fi
10827     done
10828     if test -z "$haveit"; then
10829       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10830     fi
10831   done
10832
10833       fi
10834
10835
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_GETTEXT 1
10838 _ACEOF
10839
10840
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_DCGETTEXT 1
10843 _ACEOF
10844
10845     fi
10846
10847         POSUB=po
10848   fi
10849
10850
10851             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10852       BUILD_INCLUDED_LIBINTL=yes
10853     fi
10854
10855
10856
10857
10858
10859         nls_cv_header_intl=
10860     nls_cv_header_libgt=
10861
10862         DATADIRNAME=share
10863
10864
10865         INSTOBJEXT=.mo
10866
10867
10868         GENCAT=gencat
10869
10870
10871         if test "$USE_INCLUDED_LIBINTL" = yes; then
10872       INTLOBJS="\$(GETTOBJS)"
10873     fi
10874
10875
10876         INTL_LIBTOOL_SUFFIX_PREFIX=
10877
10878
10879
10880     INTLLIBS="$LIBINTL"
10881
10882
10883
10884
10885
10886
10887
10888 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10889 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10890 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10891 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.make <<\_ACEOF
10895 SHELL = /bin/sh
10896 all:
10897         @echo '@@@%%%=$(MAKE)=@@@%%%'
10898 _ACEOF
10899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10901   *@@@%%%=?*=@@@%%%*)
10902     eval ac_cv_prog_make_${ac_make}_set=yes;;
10903   *)
10904     eval ac_cv_prog_make_${ac_make}_set=no;;
10905 esac
10906 rm -f conftest.make
10907 fi
10908 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10909   { echo "$as_me:$LINENO: result: yes" >&5
10910 echo "${ECHO_T}yes" >&6; }
10911   SET_MAKE=
10912 else
10913   { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10915   SET_MAKE="MAKE=${MAKE-make}"
10916 fi
10917
10918 # Extract the first word of "ln", so it can be a program name with args.
10919 set dummy ln; ac_word=$2
10920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10922 if test "${ac_cv_path_LN+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925   case $LN in
10926   [\\/]* | ?:[\\/]*)
10927   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10928   ;;
10929   *)
10930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10932 do
10933   IFS=$as_save_IFS
10934   test -z "$as_dir" && as_dir=.
10935   for ac_exec_ext in '' $ac_executable_extensions; do
10936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10939     break 2
10940   fi
10941 done
10942 done
10943 IFS=$as_save_IFS
10944
10945   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10946   ;;
10947 esac
10948 fi
10949 LN=$ac_cv_path_LN
10950 if test -n "$LN"; then
10951   { echo "$as_me:$LINENO: result: $LN" >&5
10952 echo "${ECHO_T}$LN" >&6; }
10953 else
10954   { echo "$as_me:$LINENO: result: no" >&5
10955 echo "${ECHO_T}no" >&6; }
10956 fi
10957
10958
10959 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10960 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10961 LN_S=$as_ln_s
10962 if test "$LN_S" = "ln -s"; then
10963   { echo "$as_me:$LINENO: result: yes" >&5
10964 echo "${ECHO_T}yes" >&6; }
10965 else
10966   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10967 echo "${ECHO_T}no, using $LN_S" >&6; }
10968 fi
10969
10970 # Extract the first word of "mv", so it can be a program name with args.
10971 set dummy mv; 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_MV+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   case $MV in
10978   [\\/]* | ?:[\\/]*)
10979   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
10998   ;;
10999 esac
11000 fi
11001 MV=$ac_cv_path_MV
11002 if test -n "$MV"; then
11003   { echo "$as_me:$LINENO: result: $MV" >&5
11004 echo "${ECHO_T}$MV" >&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 "cp", so it can be a program name with args.
11012 set dummy cp; 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_CP+set}" = set; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   case $CP in
11019   [\\/]* | ?:[\\/]*)
11020   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
11039   ;;
11040 esac
11041 fi
11042 CP=$ac_cv_path_CP
11043 if test -n "$CP"; then
11044   { echo "$as_me:$LINENO: result: $CP" >&5
11045 echo "${ECHO_T}$CP" >&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 "rm", so it can be a program name with args.
11053 set dummy rm; 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_RM+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   case $RM in
11060   [\\/]* | ?:[\\/]*)
11061   ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
11080   ;;
11081 esac
11082 fi
11083 RM=$ac_cv_path_RM
11084 if test -n "$RM"; then
11085   { echo "$as_me:$LINENO: result: $RM" >&5
11086 echo "${ECHO_T}$RM" >&6; }
11087 else
11088   { echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6; }
11090 fi
11091
11092
11093 # Extract the first word of "chmod", so it can be a program name with args.
11094 set dummy chmod; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_CHMOD+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   case $CHMOD in
11101   [\\/]* | ?:[\\/]*)
11102   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11103   ;;
11104   *)
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_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11121   ;;
11122 esac
11123 fi
11124 CHMOD=$ac_cv_path_CHMOD
11125 if test -n "$CHMOD"; then
11126   { echo "$as_me:$LINENO: result: $CHMOD" >&5
11127 echo "${ECHO_T}$CHMOD" >&6; }
11128 else
11129   { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11131 fi
11132
11133
11134 for ac_prog in gawk mawk nawk awk
11135 do
11136   # Extract the first word of "$ac_prog", so it can be a program name with args.
11137 set dummy $ac_prog; ac_word=$2
11138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11140 if test "${ac_cv_prog_AWK+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   if test -n "$AWK"; then
11144   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11145 else
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149   IFS=$as_save_IFS
11150   test -z "$as_dir" && as_dir=.
11151   for ac_exec_ext in '' $ac_executable_extensions; do
11152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153     ac_cv_prog_AWK="$ac_prog"
11154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155     break 2
11156   fi
11157 done
11158 done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 AWK=$ac_cv_prog_AWK
11164 if test -n "$AWK"; then
11165   { echo "$as_me:$LINENO: result: $AWK" >&5
11166 echo "${ECHO_T}$AWK" >&6; }
11167 else
11168   { echo "$as_me:$LINENO: result: no" >&5
11169 echo "${ECHO_T}no" >&6; }
11170 fi
11171
11172
11173   test -n "$AWK" && break
11174 done
11175
11176 { echo "$as_me:$LINENO: checking for egrep" >&5
11177 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11178 if test "${ac_cv_path_EGREP+set}" = set; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11182    then ac_cv_path_EGREP="$GREP -E"
11183    else
11184      # Extract the first word of "egrep" to use in msg output
11185 if test -z "$EGREP"; then
11186 set dummy egrep; ac_prog_name=$2
11187 if test "${ac_cv_path_EGREP+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   ac_path_EGREP_found=false
11191 # Loop through the user's path and test for each of PROGNAME-LIST
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197   for ac_prog in egrep; do
11198   for ac_exec_ext in '' $ac_executable_extensions; do
11199     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11200     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11201     # Check for GNU ac_path_EGREP and select it if it is found.
11202   # Check for GNU $ac_path_EGREP
11203 case `"$ac_path_EGREP" --version 2>&1` in
11204 *GNU*)
11205   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11206 *)
11207   ac_count=0
11208   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11209   while :
11210   do
11211     cat "conftest.in" "conftest.in" >"conftest.tmp"
11212     mv "conftest.tmp" "conftest.in"
11213     cp "conftest.in" "conftest.nl"
11214     echo 'EGREP' >> "conftest.nl"
11215     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11217     ac_count=`expr $ac_count + 1`
11218     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11219       # Best one so far, save it but keep looking for a better one
11220       ac_cv_path_EGREP="$ac_path_EGREP"
11221       ac_path_EGREP_max=$ac_count
11222     fi
11223     # 10*(2^10) chars as input seems more than enough
11224     test $ac_count -gt 10 && break
11225   done
11226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11227 esac
11228
11229
11230     $ac_path_EGREP_found && break 3
11231   done
11232 done
11233
11234 done
11235 IFS=$as_save_IFS
11236
11237
11238 fi
11239
11240 EGREP="$ac_cv_path_EGREP"
11241 if test -z "$EGREP"; then
11242   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11243 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11244    { (exit 1); exit 1; }; }
11245 fi
11246
11247 else
11248   ac_cv_path_EGREP=$EGREP
11249 fi
11250
11251
11252    fi
11253 fi
11254 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11255 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11256  EGREP="$ac_cv_path_EGREP"
11257
11258
11259 # Extract the first word of "sed", so it can be a program name with args.
11260 set dummy sed; 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_SED+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   case $SED in
11267   [\\/]* | ?:[\\/]*)
11268   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
11287   ;;
11288 esac
11289 fi
11290 SED=$ac_cv_path_SED
11291 if test -n "$SED"; then
11292   { echo "$as_me:$LINENO: result: $SED" >&5
11293 echo "${ECHO_T}$SED" >&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 "perl", so it can be a program name with args.
11301 set dummy perl; 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_PERL+set}" = set; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   case $PERL in
11308   [\\/]* | ?:[\\/]*)
11309   ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="perl"
11328   ;;
11329 esac
11330 fi
11331 PERL=$ac_cv_path_PERL
11332 if test -n "$PERL"; then
11333   { echo "$as_me:$LINENO: result: $PERL" >&5
11334 echo "${ECHO_T}$PERL" >&6; }
11335 else
11336   { echo "$as_me:$LINENO: result: no" >&5
11337 echo "${ECHO_T}no" >&6; }
11338 fi
11339
11340
11341 # Extract the first word of "ldconfig", so it can be a program name with args.
11342 set dummy ldconfig; ac_word=$2
11343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   case $LDCONFIG in
11349   [\\/]* | ?:[\\/]*)
11350   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11351   ;;
11352   *)
11353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11355 do
11356   IFS=$as_save_IFS
11357   test -z "$as_dir" && as_dir=.
11358   for ac_exec_ext in '' $ac_executable_extensions; do
11359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11360     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11362     break 2
11363   fi
11364 done
11365 done
11366 IFS=$as_save_IFS
11367
11368   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11369   ;;
11370 esac
11371 fi
11372 LDCONFIG=$ac_cv_path_LDCONFIG
11373 if test -n "$LDCONFIG"; then
11374   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11375 echo "${ECHO_T}$LDCONFIG" >&6; }
11376 else
11377   { echo "$as_me:$LINENO: result: no" >&5
11378 echo "${ECHO_T}no" >&6; }
11379 fi
11380
11381
11382 if test -n "$ac_tool_prefix"; then
11383   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11384 set dummy ${ac_tool_prefix}ar; ac_word=$2
11385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11387 if test "${ac_cv_prog_AR+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   if test -n "$AR"; then
11391   ac_cv_prog_AR="$AR" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11395 do
11396   IFS=$as_save_IFS
11397   test -z "$as_dir" && as_dir=.
11398   for ac_exec_ext in '' $ac_executable_extensions; do
11399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400     ac_cv_prog_AR="${ac_tool_prefix}ar"
11401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402     break 2
11403   fi
11404 done
11405 done
11406 IFS=$as_save_IFS
11407
11408 fi
11409 fi
11410 AR=$ac_cv_prog_AR
11411 if test -n "$AR"; then
11412   { echo "$as_me:$LINENO: result: $AR" >&5
11413 echo "${ECHO_T}$AR" >&6; }
11414 else
11415   { echo "$as_me:$LINENO: result: no" >&5
11416 echo "${ECHO_T}no" >&6; }
11417 fi
11418
11419
11420 fi
11421 if test -z "$ac_cv_prog_AR"; then
11422   ac_ct_AR=$AR
11423   # Extract the first word of "ar", so it can be a program name with args.
11424 set dummy ar; ac_word=$2
11425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   if test -n "$ac_ct_AR"; then
11431   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   test -z "$as_dir" && as_dir=.
11438   for ac_exec_ext in '' $ac_executable_extensions; do
11439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440     ac_cv_prog_ac_ct_AR="ar"
11441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442     break 2
11443   fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11451 if test -n "$ac_ct_AR"; then
11452   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11453 echo "${ECHO_T}$ac_ct_AR" >&6; }
11454 else
11455   { echo "$as_me:$LINENO: result: no" >&5
11456 echo "${ECHO_T}no" >&6; }
11457 fi
11458
11459   if test "x$ac_ct_AR" = x; then
11460     AR="ar"
11461   else
11462     case $cross_compiling:$ac_tool_warned in
11463 yes:)
11464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11465 whose name does not start with the host triplet.  If you think this
11466 configuration is useful to you, please write to autoconf@gnu.org." >&5
11467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11468 whose name does not start with the host triplet.  If you think this
11469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11470 ac_tool_warned=yes ;;
11471 esac
11472     AR=$ac_ct_AR
11473   fi
11474 else
11475   AR="$ac_cv_prog_AR"
11476 fi
11477
11478 if test -n "$ac_tool_prefix"; then
11479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11483 if test "${ac_cv_prog_RANLIB+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   if test -n "$RANLIB"; then
11487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494   for ac_exec_ext in '' $ac_executable_extensions; do
11495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501 done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 RANLIB=$ac_cv_prog_RANLIB
11507 if test -n "$RANLIB"; then
11508   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11509 echo "${ECHO_T}$RANLIB" >&6; }
11510 else
11511   { echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6; }
11513 fi
11514
11515
11516 fi
11517 if test -z "$ac_cv_prog_RANLIB"; then
11518   ac_ct_RANLIB=$RANLIB
11519   # Extract the first word of "ranlib", so it can be a program name with args.
11520 set dummy ranlib; ac_word=$2
11521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11524   echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526   if test -n "$ac_ct_RANLIB"; then
11527   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532   IFS=$as_save_IFS
11533   test -z "$as_dir" && as_dir=.
11534   for ac_exec_ext in '' $ac_executable_extensions; do
11535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536     ac_cv_prog_ac_ct_RANLIB="ranlib"
11537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538     break 2
11539   fi
11540 done
11541 done
11542 IFS=$as_save_IFS
11543
11544 fi
11545 fi
11546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11547 if test -n "$ac_ct_RANLIB"; then
11548   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11550 else
11551   { echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6; }
11553 fi
11554
11555   if test "x$ac_ct_RANLIB" = x; then
11556     RANLIB=":"
11557   else
11558     case $cross_compiling:$ac_tool_warned in
11559 yes:)
11560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11561 whose name does not start with the host triplet.  If you think this
11562 configuration is useful to you, please write to autoconf@gnu.org." >&5
11563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11564 whose name does not start with the host triplet.  If you think this
11565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11566 ac_tool_warned=yes ;;
11567 esac
11568     RANLIB=$ac_ct_RANLIB
11569   fi
11570 else
11571   RANLIB="$ac_cv_prog_RANLIB"
11572 fi
11573
11574 if test -n "$ac_tool_prefix"; then
11575   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11576 set dummy ${ac_tool_prefix}strip; ac_word=$2
11577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11579 if test "${ac_cv_prog_STRIP+set}" = set; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582   if test -n "$STRIP"; then
11583   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11584 else
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11587 do
11588   IFS=$as_save_IFS
11589   test -z "$as_dir" && as_dir=.
11590   for ac_exec_ext in '' $ac_executable_extensions; do
11591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11594     break 2
11595   fi
11596 done
11597 done
11598 IFS=$as_save_IFS
11599
11600 fi
11601 fi
11602 STRIP=$ac_cv_prog_STRIP
11603 if test -n "$STRIP"; then
11604   { echo "$as_me:$LINENO: result: $STRIP" >&5
11605 echo "${ECHO_T}$STRIP" >&6; }
11606 else
11607   { echo "$as_me:$LINENO: result: no" >&5
11608 echo "${ECHO_T}no" >&6; }
11609 fi
11610
11611
11612 fi
11613 if test -z "$ac_cv_prog_STRIP"; then
11614   ac_ct_STRIP=$STRIP
11615   # Extract the first word of "strip", so it can be a program name with args.
11616 set dummy strip; ac_word=$2
11617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   if test -n "$ac_ct_STRIP"; then
11623   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11624 else
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630   for ac_exec_ext in '' $ac_executable_extensions; do
11631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632     ac_cv_prog_ac_ct_STRIP="strip"
11633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11634     break 2
11635   fi
11636 done
11637 done
11638 IFS=$as_save_IFS
11639
11640 fi
11641 fi
11642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11643 if test -n "$ac_ct_STRIP"; then
11644   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11646 else
11647   { echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6; }
11649 fi
11650
11651   if test "x$ac_ct_STRIP" = x; then
11652     STRIP=":"
11653   else
11654     case $cross_compiling:$ac_tool_warned in
11655 yes:)
11656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11657 whose name does not start with the host triplet.  If you think this
11658 configuration is useful to you, please write to autoconf@gnu.org." >&5
11659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11660 whose name does not start with the host triplet.  If you think this
11661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11662 ac_tool_warned=yes ;;
11663 esac
11664     STRIP=$ac_ct_STRIP
11665   fi
11666 else
11667   STRIP="$ac_cv_prog_STRIP"
11668 fi
11669
11670 # Extract the first word of "makeinfo", so it can be a program name with args.
11671 set dummy makeinfo; ac_word=$2
11672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11674 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   if test -n "$MAKEINFO"; then
11678   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11679 else
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11682 do
11683   IFS=$as_save_IFS
11684   test -z "$as_dir" && as_dir=.
11685   for ac_exec_ext in '' $ac_executable_extensions; do
11686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687     ac_cv_prog_MAKEINFO="makeinfo"
11688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11689     break 2
11690   fi
11691 done
11692 done
11693 IFS=$as_save_IFS
11694
11695 fi
11696 fi
11697 MAKEINFO=$ac_cv_prog_MAKEINFO
11698 if test -n "$MAKEINFO"; then
11699   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11700 echo "${ECHO_T}$MAKEINFO" >&6; }
11701 else
11702   { echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6; }
11704 fi
11705
11706
11707 if test "_$MAKEINFO" = "_"; then
11708     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11709 else
11710     case "$MAKEINFO" in
11711       */missing.*)
11712         { echo "$as_me:$LINENO: WARNING:
11713 *** Makeinfo is missing. Info documentation will not be built." >&5
11714 echo "$as_me: WARNING:
11715 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11716         ;;
11717       *)
11718         ;;
11719     esac
11720 fi
11721
11722 # Find a good install program.  We prefer a C program (faster),
11723 # so one script is as good as another.  But avoid the broken or
11724 # incompatible versions:
11725 # SysV /etc/install, /usr/sbin/install
11726 # SunOS /usr/etc/install
11727 # IRIX /sbin/install
11728 # AIX /bin/install
11729 # AmigaOS /C/install, which installs bootblocks on floppy discs
11730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11733 # OS/2's system install, which has a completely different semantic
11734 # ./install, which can be erroneously created by make from ./install.sh.
11735 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11736 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11737 if test -z "$INSTALL"; then
11738 if test "${ac_cv_path_install+set}" = set; then
11739   echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746   # Account for people who put trailing slashes in PATH elements.
11747 case $as_dir/ in
11748   ./ | .// | /cC/* | \
11749   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11750   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11751   /usr/ucb/* ) ;;
11752   *)
11753     # OSF1 and SCO ODT 3.0 have their own names for install.
11754     # Don't use installbsd from OSF since it installs stuff as root
11755     # by default.
11756     for ac_prog in ginstall scoinst install; do
11757       for ac_exec_ext in '' $ac_executable_extensions; do
11758         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11759           if test $ac_prog = install &&
11760             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11761             # AIX install.  It has an incompatible calling convention.
11762             :
11763           elif test $ac_prog = install &&
11764             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11765             # program-specific install script used by HP pwplus--don't use.
11766             :
11767           else
11768             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11769             break 3
11770           fi
11771         fi
11772       done
11773     done
11774     ;;
11775 esac
11776 done
11777 IFS=$as_save_IFS
11778
11779
11780 fi
11781   if test "${ac_cv_path_install+set}" = set; then
11782     INSTALL=$ac_cv_path_install
11783   else
11784     # As a last resort, use the slow shell script.  Don't cache a
11785     # value for INSTALL within a source directory, because that will
11786     # break other packages using the cache if that directory is
11787     # removed, or if the value is a relative name.
11788     INSTALL=$ac_install_sh
11789   fi
11790 fi
11791 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11792 echo "${ECHO_T}$INSTALL" >&6; }
11793
11794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11795 # It thinks the first close brace ends the variable substitution.
11796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11797
11798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11799
11800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11801
11802 # See if we need a separate native compiler.
11803 if test $cross_compiling = no; then
11804   BUILD_CC="$CC"
11805
11806 else
11807   for ac_prog in gcc cc
11808 do
11809   # Extract the first word of "$ac_prog", so it can be a program name with args.
11810 set dummy $ac_prog; ac_word=$2
11811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11813 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816   if test -n "$BUILD_CC"; then
11817   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822   IFS=$as_save_IFS
11823   test -z "$as_dir" && as_dir=.
11824   for ac_exec_ext in '' $ac_executable_extensions; do
11825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826     ac_cv_prog_BUILD_CC="$ac_prog"
11827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11828     break 2
11829   fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 fi
11835 fi
11836 BUILD_CC=$ac_cv_prog_BUILD_CC
11837 if test -n "$BUILD_CC"; then
11838   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11839 echo "${ECHO_T}$BUILD_CC" >&6; }
11840 else
11841   { echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6; }
11843 fi
11844
11845
11846   test -n "$BUILD_CC" && break
11847 done
11848
11849 fi
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886 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 termio.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
11887 do
11888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 fi
11895 ac_res=`eval echo '${'$as_ac_Header'}'`
11896                { echo "$as_me:$LINENO: result: $ac_res" >&5
11897 echo "${ECHO_T}$ac_res" >&6; }
11898 else
11899   # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 $ac_includes_default
11909 #include <$ac_header>
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_compile") 2>conftest.er1
11919   ac_status=$?
11920   grep -v '^ *+' conftest.er1 >conftest.err
11921   rm -f conftest.er1
11922   cat conftest.err >&5
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } && {
11925          test -z "$ac_c_werror_flag" ||
11926          test ! -s conftest.err
11927        } && test -s conftest.$ac_objext; then
11928   ac_header_compiler=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933         ac_header_compiler=no
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #include <$ac_header>
11950 _ACEOF
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } >/dev/null && {
11964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965          test ! -s conftest.err
11966        }; then
11967   ac_header_preproc=yes
11968 else
11969   echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972   ac_header_preproc=no
11973 fi
11974
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978
11979 # So?  What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981   yes:no: )
11982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986     ac_header_preproc=yes
11987     ;;
11988   no:yes:* )
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12001
12002     ;;
12003 esac
12004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   eval "$as_ac_Header=\$ac_header_preproc"
12010 fi
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012                { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014
12015 fi
12016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12017   cat >>confdefs.h <<_ACEOF
12018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019 _ACEOF
12020
12021 fi
12022
12023 done
12024
12025
12026
12027 for ac_header in sys/disk.h sys/mount.h
12028 do
12029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041
12042 #if HAVE_SYS_QUEUE_H
12043 #include <sys/queue.h>
12044 #endif
12045
12046
12047 #include <$ac_header>
12048 _ACEOF
12049 rm -f conftest.$ac_objext
12050 if { (ac_try="$ac_compile"
12051 case "(($ac_try" in
12052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053   *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056   (eval "$ac_compile") 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } && {
12063          test -z "$ac_c_werror_flag" ||
12064          test ! -s conftest.err
12065        } && test -s conftest.$ac_objext; then
12066   eval "$as_ac_Header=yes"
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071         eval "$as_ac_Header=no"
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 fi
12076 ac_res=`eval echo '${'$as_ac_Header'}'`
12077                { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12080   cat >>confdefs.h <<_ACEOF
12081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 fi
12085
12086 done
12087
12088
12089 for ac_header in net/if.h
12090 do
12091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 #if HAVE_SYS_TYPES_H
12105 #include <sys/types.h>
12106 #endif
12107 #if HAVE_SYS_SOCKET
12108 #include <sys/socket.h>
12109 #endif
12110
12111
12112 #include <$ac_header>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_compile") 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } && {
12128          test -z "$ac_c_werror_flag" ||
12129          test ! -s conftest.err
12130        } && test -s conftest.$ac_objext; then
12131   eval "$as_ac_Header=yes"
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136         eval "$as_ac_Header=no"
12137 fi
12138
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 ac_res=`eval echo '${'$as_ac_Header'}'`
12142                { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145   cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147 _ACEOF
12148
12149 fi
12150
12151 done
12152
12153
12154 for ac_func in vprintf
12155 do
12156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12160   echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162   cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12170 #define $ac_func innocuous_$ac_func
12171
12172 /* System header to define __stub macros and hopefully few prototypes,
12173     which can conflict with char $ac_func (); below.
12174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12175     <limits.h> exists even on freestanding compilers.  */
12176
12177 #ifdef __STDC__
12178 # include <limits.h>
12179 #else
12180 # include <assert.h>
12181 #endif
12182
12183 #undef $ac_func
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186    Use char because int might match the return type of a GCC
12187    builtin and then its argument prototype would still apply.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char $ac_func ();
12192 /* The GNU C library defines this for functions which it implements
12193     to always fail with ENOSYS.  Some functions are actually named
12194     something starting with __ and the normal name is an alias.  */
12195 #if defined __stub_$ac_func || defined __stub___$ac_func
12196 choke me
12197 #endif
12198
12199 int
12200 main ()
12201 {
12202 return $ac_func ();
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_link") 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } && {
12221          test -z "$ac_c_werror_flag" ||
12222          test ! -s conftest.err
12223        } && test -s conftest$ac_exeext &&
12224        $as_test_x conftest$ac_exeext; then
12225   eval "$as_ac_var=yes"
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230         eval "$as_ac_var=no"
12231 fi
12232
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234       conftest$ac_exeext conftest.$ac_ext
12235 fi
12236 ac_res=`eval echo '${'$as_ac_var'}'`
12237                { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12245 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12246 if test "${ac_cv_func__doprnt+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h.  */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h.  */
12255 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12257 #define _doprnt innocuous__doprnt
12258
12259 /* System header to define __stub macros and hopefully few prototypes,
12260     which can conflict with char _doprnt (); below.
12261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262     <limits.h> exists even on freestanding compilers.  */
12263
12264 #ifdef __STDC__
12265 # include <limits.h>
12266 #else
12267 # include <assert.h>
12268 #endif
12269
12270 #undef _doprnt
12271
12272 /* Override any GCC internal prototype to avoid an error.
12273    Use char because int might match the return type of a GCC
12274    builtin and then its argument prototype would still apply.  */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char _doprnt ();
12279 /* The GNU C library defines this for functions which it implements
12280     to always fail with ENOSYS.  Some functions are actually named
12281     something starting with __ and the normal name is an alias.  */
12282 #if defined __stub__doprnt || defined __stub____doprnt
12283 choke me
12284 #endif
12285
12286 int
12287 main ()
12288 {
12289 return _doprnt ();
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (ac_try="$ac_link"
12296 case "(($ac_try" in
12297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298   *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301   (eval "$ac_link") 2>conftest.er1
12302   ac_status=$?
12303   grep -v '^ *+' conftest.er1 >conftest.err
12304   rm -f conftest.er1
12305   cat conftest.err >&5
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } && {
12308          test -z "$ac_c_werror_flag" ||
12309          test ! -s conftest.err
12310        } && test -s conftest$ac_exeext &&
12311        $as_test_x conftest$ac_exeext; then
12312   ac_cv_func__doprnt=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317         ac_cv_func__doprnt=no
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12321       conftest$ac_exeext conftest.$ac_ext
12322 fi
12323 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12324 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12325 if test $ac_cv_func__doprnt = yes; then
12326
12327 cat >>confdefs.h <<\_ACEOF
12328 #define HAVE_DOPRNT 1
12329 _ACEOF
12330
12331 fi
12332
12333 fi
12334 done
12335
12336
12337 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12338 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12339 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348 #include <dirent.h>
12349
12350 int
12351 main ()
12352 {
12353 static struct dirent ac_aggr;
12354 if (ac_aggr.d_reclen)
12355 return 0;
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_compile") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && {
12374          test -z "$ac_c_werror_flag" ||
12375          test ! -s conftest.err
12376        } && test -s conftest.$ac_objext; then
12377   ac_cv_member_struct_dirent_d_reclen=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 #include <dirent.h>
12389
12390 int
12391 main ()
12392 {
12393 static struct dirent ac_aggr;
12394 if (sizeof ac_aggr.d_reclen)
12395 return 0;
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_compile") 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } && {
12414          test -z "$ac_c_werror_flag" ||
12415          test ! -s conftest.err
12416        } && test -s conftest.$ac_objext; then
12417   ac_cv_member_struct_dirent_d_reclen=yes
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422         ac_cv_member_struct_dirent_d_reclen=no
12423 fi
12424
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 fi
12430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12431 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12432 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12433   cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_RECLEN_DIRENT 1
12435 _ACEOF
12436
12437 fi
12438
12439 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12440 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12441 if test "${ac_cv_type_ssize_t+set}" = set; then
12442   echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444   cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <sys/types.h>
12451
12452 typedef ssize_t ac__type_new_;
12453 int
12454 main ()
12455 {
12456 if ((ac__type_new_ *) 0)
12457   return 0;
12458 if (sizeof (ac__type_new_))
12459   return 0;
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_compile") 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } && {
12478          test -z "$ac_c_werror_flag" ||
12479          test ! -s conftest.err
12480        } && test -s conftest.$ac_objext; then
12481   ac_cv_type_ssize_t=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486         ac_cv_type_ssize_t=no
12487 fi
12488
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12492 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12493 if test $ac_cv_type_ssize_t = yes; then
12494   cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_TYPE_SSIZE_T 1
12496 _ACEOF
12497
12498 fi
12499
12500 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12501 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12502 if test "${ac_cv_have_decl_llseek+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 #include <unistd.h>
12512
12513 int
12514 main ()
12515 {
12516 #ifndef llseek
12517   (void) llseek;
12518 #endif
12519
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext
12525 if { (ac_try="$ac_compile"
12526 case "(($ac_try" in
12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528   *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531   (eval "$ac_compile") 2>conftest.er1
12532   ac_status=$?
12533   grep -v '^ *+' conftest.er1 >conftest.err
12534   rm -f conftest.er1
12535   cat conftest.err >&5
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } && {
12538          test -z "$ac_c_werror_flag" ||
12539          test ! -s conftest.err
12540        } && test -s conftest.$ac_objext; then
12541   ac_cv_have_decl_llseek=yes
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546         ac_cv_have_decl_llseek=no
12547 fi
12548
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 fi
12551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12552 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12553 if test $ac_cv_have_decl_llseek = yes; then
12554   cat >>confdefs.h <<\_ACEOF
12555 #define HAVE_LLSEEK_PROTOTYPE 1
12556 _ACEOF
12557
12558 fi
12559
12560 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12561 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12562 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 #define _LARGEFILE_SOURCE
12572                  #define _LARGEFILE64_SOURCE
12573                  #include <unistd.h>
12574
12575 int
12576 main ()
12577 {
12578 #ifndef lseek64
12579   (void) lseek64;
12580 #endif
12581
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (ac_try="$ac_compile"
12588 case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593   (eval "$ac_compile") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && {
12600          test -z "$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        } && test -s conftest.$ac_objext; then
12603   ac_cv_have_decl_lseek64=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608         ac_cv_have_decl_lseek64=no
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12614 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12615 if test $ac_cv_have_decl_lseek64 = yes; then
12616   cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_LSEEK64_PROTOTYPE 1
12618 _ACEOF
12619
12620 fi
12621
12622 { echo "$as_me:$LINENO: checking for short" >&5
12623 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12624 if test "${ac_cv_type_short+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 $ac_includes_default
12634 typedef short ac__type_new_;
12635 int
12636 main ()
12637 {
12638 if ((ac__type_new_ *) 0)
12639   return 0;
12640 if (sizeof (ac__type_new_))
12641   return 0;
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650   *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653   (eval "$ac_compile") 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } && {
12660          test -z "$ac_c_werror_flag" ||
12661          test ! -s conftest.err
12662        } && test -s conftest.$ac_objext; then
12663   ac_cv_type_short=yes
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668         ac_cv_type_short=no
12669 fi
12670
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 fi
12673 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12674 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12675
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { echo "$as_me:$LINENO: checking size of short" >&5
12681 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12682 if test "${ac_cv_sizeof_short+set}" = set; then
12683   echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685   if test "$cross_compiling" = yes; then
12686   # Depending upon the size, compute the lo and hi bounds.
12687 cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 $ac_includes_default
12694    typedef short ac__type_sizeof_;
12695 int
12696 main ()
12697 {
12698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12699 test_array [0] = 0
12700
12701   ;
12702   return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709   *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712   (eval "$ac_compile") 2>conftest.er1
12713   ac_status=$?
12714   grep -v '^ *+' conftest.er1 >conftest.err
12715   rm -f conftest.er1
12716   cat conftest.err >&5
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } && {
12719          test -z "$ac_c_werror_flag" ||
12720          test ! -s conftest.err
12721        } && test -s conftest.$ac_objext; then
12722   ac_lo=0 ac_mid=0
12723   while :; do
12724     cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730 $ac_includes_default
12731    typedef short ac__type_sizeof_;
12732 int
12733 main ()
12734 {
12735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12736 test_array [0] = 0
12737
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_compile") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } && {
12756          test -z "$ac_c_werror_flag" ||
12757          test ! -s conftest.err
12758        } && test -s conftest.$ac_objext; then
12759   ac_hi=$ac_mid; break
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764         ac_lo=`expr $ac_mid + 1`
12765                         if test $ac_lo -le $ac_mid; then
12766                           ac_lo= ac_hi=
12767                           break
12768                         fi
12769                         ac_mid=`expr 2 '*' $ac_mid + 1`
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773   done
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778         cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784 $ac_includes_default
12785    typedef short ac__type_sizeof_;
12786 int
12787 main ()
12788 {
12789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12790 test_array [0] = 0
12791
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800   *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803   (eval "$ac_compile") 2>conftest.er1
12804   ac_status=$?
12805   grep -v '^ *+' conftest.er1 >conftest.err
12806   rm -f conftest.er1
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } && {
12810          test -z "$ac_c_werror_flag" ||
12811          test ! -s conftest.err
12812        } && test -s conftest.$ac_objext; then
12813   ac_hi=-1 ac_mid=-1
12814   while :; do
12815     cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h.  */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h.  */
12821 $ac_includes_default
12822    typedef short ac__type_sizeof_;
12823 int
12824 main ()
12825 {
12826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12827 test_array [0] = 0
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_compile") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } && {
12847          test -z "$ac_c_werror_flag" ||
12848          test ! -s conftest.err
12849        } && test -s conftest.$ac_objext; then
12850   ac_lo=$ac_mid; break
12851 else
12852   echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855         ac_hi=`expr '(' $ac_mid ')' - 1`
12856                         if test $ac_mid -le $ac_hi; then
12857                           ac_lo= ac_hi=
12858                           break
12859                         fi
12860                         ac_mid=`expr 2 '*' $ac_mid`
12861 fi
12862
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864   done
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869         ac_lo= ac_hi=
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 # Binary search between lo and hi bounds.
12877 while test "x$ac_lo" != "x$ac_hi"; do
12878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12879   cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885 $ac_includes_default
12886    typedef short ac__type_sizeof_;
12887 int
12888 main ()
12889 {
12890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12891 test_array [0] = 0
12892
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901   *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904   (eval "$ac_compile") 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } && {
12911          test -z "$ac_c_werror_flag" ||
12912          test ! -s conftest.err
12913        } && test -s conftest.$ac_objext; then
12914   ac_hi=$ac_mid
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919         ac_lo=`expr '(' $ac_mid ')' + 1`
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 done
12924 case $ac_lo in
12925 ?*) ac_cv_sizeof_short=$ac_lo;;
12926 '') if test "$ac_cv_type_short" = yes; then
12927      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12928 See \`config.log' for more details." >&5
12929 echo "$as_me: error: cannot compute sizeof (short)
12930 See \`config.log' for more details." >&2;}
12931    { (exit 77); exit 77; }; }
12932    else
12933      ac_cv_sizeof_short=0
12934    fi ;;
12935 esac
12936 else
12937   cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 $ac_includes_default
12944    typedef short ac__type_sizeof_;
12945 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12946 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12947 #include <stdio.h>
12948 #include <stdlib.h>
12949 int
12950 main ()
12951 {
12952
12953   FILE *f = fopen ("conftest.val", "w");
12954   if (! f)
12955     return 1;
12956   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12957     {
12958       long int i = longval ();
12959       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12960         return 1;
12961       fprintf (f, "%ld\n", i);
12962     }
12963   else
12964     {
12965       unsigned long int i = ulongval ();
12966       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12967         return 1;
12968       fprintf (f, "%lu\n", i);
12969     }
12970   return ferror (f) || fclose (f) != 0;
12971
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest$ac_exeext
12977 if { (ac_try="$ac_link"
12978 case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_link") 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_cv_sizeof_short=`cat conftest.val`
12997 else
12998   echo "$as_me: program exited with status $ac_status" >&5
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 ( exit $ac_status )
13003 if test "$ac_cv_type_short" = yes; then
13004      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13005 See \`config.log' for more details." >&5
13006 echo "$as_me: error: cannot compute sizeof (short)
13007 See \`config.log' for more details." >&2;}
13008    { (exit 77); exit 77; }; }
13009    else
13010      ac_cv_sizeof_short=0
13011    fi
13012 fi
13013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 rm -f conftest.val
13016 fi
13017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13018 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13019
13020
13021
13022 cat >>confdefs.h <<_ACEOF
13023 #define SIZEOF_SHORT $ac_cv_sizeof_short
13024 _ACEOF
13025
13026
13027 { echo "$as_me:$LINENO: checking for int" >&5
13028 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13029 if test "${ac_cv_type_int+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 $ac_includes_default
13039 typedef int ac__type_new_;
13040 int
13041 main ()
13042 {
13043 if ((ac__type_new_ *) 0)
13044   return 0;
13045 if (sizeof (ac__type_new_))
13046   return 0;
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_compile") 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } && {
13065          test -z "$ac_c_werror_flag" ||
13066          test ! -s conftest.err
13067        } && test -s conftest.$ac_objext; then
13068   ac_cv_type_int=yes
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073         ac_cv_type_int=no
13074 fi
13075
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 fi
13078 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13079 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13080
13081 # The cast to long int works around a bug in the HP C Compiler
13082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13084 # This bug is HP SR number 8606223364.
13085 { echo "$as_me:$LINENO: checking size of int" >&5
13086 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13087 if test "${ac_cv_sizeof_int+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   if test "$cross_compiling" = yes; then
13091   # Depending upon the size, compute the lo and hi bounds.
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 $ac_includes_default
13099    typedef int ac__type_sizeof_;
13100 int
13101 main ()
13102 {
13103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13104 test_array [0] = 0
13105
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (ac_try="$ac_compile"
13112 case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117   (eval "$ac_compile") 2>conftest.er1
13118   ac_status=$?
13119   grep -v '^ *+' conftest.er1 >conftest.err
13120   rm -f conftest.er1
13121   cat conftest.err >&5
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); } && {
13124          test -z "$ac_c_werror_flag" ||
13125          test ! -s conftest.err
13126        } && test -s conftest.$ac_objext; then
13127   ac_lo=0 ac_mid=0
13128   while :; do
13129     cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h.  */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h.  */
13135 $ac_includes_default
13136    typedef int ac__type_sizeof_;
13137 int
13138 main ()
13139 {
13140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13141 test_array [0] = 0
13142
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_compile") 2>conftest.er1
13155   ac_status=$?
13156   grep -v '^ *+' conftest.er1 >conftest.err
13157   rm -f conftest.er1
13158   cat conftest.err >&5
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); } && {
13161          test -z "$ac_c_werror_flag" ||
13162          test ! -s conftest.err
13163        } && test -s conftest.$ac_objext; then
13164   ac_hi=$ac_mid; break
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169         ac_lo=`expr $ac_mid + 1`
13170                         if test $ac_lo -le $ac_mid; then
13171                           ac_lo= ac_hi=
13172                           break
13173                         fi
13174                         ac_mid=`expr 2 '*' $ac_mid + 1`
13175 fi
13176
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178   done
13179 else
13180   echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183         cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 $ac_includes_default
13190    typedef int ac__type_sizeof_;
13191 int
13192 main ()
13193 {
13194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13195 test_array [0] = 0
13196
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext
13202 if { (ac_try="$ac_compile"
13203 case "(($ac_try" in
13204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205   *) ac_try_echo=$ac_try;;
13206 esac
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208   (eval "$ac_compile") 2>conftest.er1
13209   ac_status=$?
13210   grep -v '^ *+' conftest.er1 >conftest.err
13211   rm -f conftest.er1
13212   cat conftest.err >&5
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } && {
13215          test -z "$ac_c_werror_flag" ||
13216          test ! -s conftest.err
13217        } && test -s conftest.$ac_objext; then
13218   ac_hi=-1 ac_mid=-1
13219   while :; do
13220     cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 $ac_includes_default
13227    typedef int ac__type_sizeof_;
13228 int
13229 main ()
13230 {
13231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13232 test_array [0] = 0
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (ac_try="$ac_compile"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_compile") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } && {
13252          test -z "$ac_c_werror_flag" ||
13253          test ! -s conftest.err
13254        } && test -s conftest.$ac_objext; then
13255   ac_lo=$ac_mid; break
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         ac_hi=`expr '(' $ac_mid ')' - 1`
13261                         if test $ac_mid -le $ac_hi; then
13262                           ac_lo= ac_hi=
13263                           break
13264                         fi
13265                         ac_mid=`expr 2 '*' $ac_mid`
13266 fi
13267
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269   done
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274         ac_lo= ac_hi=
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 fi
13279
13280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 # Binary search between lo and hi bounds.
13282 while test "x$ac_lo" != "x$ac_hi"; do
13283   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284   cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 $ac_includes_default
13291    typedef int ac__type_sizeof_;
13292 int
13293 main ()
13294 {
13295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13296 test_array [0] = 0
13297
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (ac_try="$ac_compile"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_compile") 2>conftest.er1
13310   ac_status=$?
13311   grep -v '^ *+' conftest.er1 >conftest.err
13312   rm -f conftest.er1
13313   cat conftest.err >&5
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); } && {
13316          test -z "$ac_c_werror_flag" ||
13317          test ! -s conftest.err
13318        } && test -s conftest.$ac_objext; then
13319   ac_hi=$ac_mid
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324         ac_lo=`expr '(' $ac_mid ')' + 1`
13325 fi
13326
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328 done
13329 case $ac_lo in
13330 ?*) ac_cv_sizeof_int=$ac_lo;;
13331 '') if test "$ac_cv_type_int" = yes; then
13332      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13333 See \`config.log' for more details." >&5
13334 echo "$as_me: error: cannot compute sizeof (int)
13335 See \`config.log' for more details." >&2;}
13336    { (exit 77); exit 77; }; }
13337    else
13338      ac_cv_sizeof_int=0
13339    fi ;;
13340 esac
13341 else
13342   cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 $ac_includes_default
13349    typedef int ac__type_sizeof_;
13350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13352 #include <stdio.h>
13353 #include <stdlib.h>
13354 int
13355 main ()
13356 {
13357
13358   FILE *f = fopen ("conftest.val", "w");
13359   if (! f)
13360     return 1;
13361   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13362     {
13363       long int i = longval ();
13364       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13365         return 1;
13366       fprintf (f, "%ld\n", i);
13367     }
13368   else
13369     {
13370       unsigned long int i = ulongval ();
13371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13372         return 1;
13373       fprintf (f, "%lu\n", i);
13374     }
13375   return ferror (f) || fclose (f) != 0;
13376
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest$ac_exeext
13382 if { (ac_try="$ac_link"
13383 case "(($ac_try" in
13384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385   *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388   (eval "$ac_link") 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_cv_sizeof_int=`cat conftest.val`
13402 else
13403   echo "$as_me: program exited with status $ac_status" >&5
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 ( exit $ac_status )
13408 if test "$ac_cv_type_int" = yes; then
13409      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (int)
13412 See \`config.log' for more details." >&2;}
13413    { (exit 77); exit 77; }; }
13414    else
13415      ac_cv_sizeof_int=0
13416    fi
13417 fi
13418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13419 fi
13420 rm -f conftest.val
13421 fi
13422 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13423 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13424
13425
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define SIZEOF_INT $ac_cv_sizeof_int
13429 _ACEOF
13430
13431
13432 { echo "$as_me:$LINENO: checking for long" >&5
13433 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13434 if test "${ac_cv_type_long+set}" = set; then
13435   echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437   cat >conftest.$ac_ext <<_ACEOF
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 $ac_includes_default
13444 typedef long ac__type_new_;
13445 int
13446 main ()
13447 {
13448 if ((ac__type_new_ *) 0)
13449   return 0;
13450 if (sizeof (ac__type_new_))
13451   return 0;
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_compile") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_c_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest.$ac_objext; then
13473   ac_cv_type_long=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478         ac_cv_type_long=no
13479 fi
13480
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 fi
13483 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13484 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13485
13486 # The cast to long int works around a bug in the HP C Compiler
13487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13489 # This bug is HP SR number 8606223364.
13490 { echo "$as_me:$LINENO: checking size of long" >&5
13491 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13492 if test "${ac_cv_sizeof_long+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495   if test "$cross_compiling" = yes; then
13496   # Depending upon the size, compute the lo and hi bounds.
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 $ac_includes_default
13504    typedef long ac__type_sizeof_;
13505 int
13506 main ()
13507 {
13508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13509 test_array [0] = 0
13510
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_compile") 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } && {
13529          test -z "$ac_c_werror_flag" ||
13530          test ! -s conftest.err
13531        } && test -s conftest.$ac_objext; then
13532   ac_lo=0 ac_mid=0
13533   while :; do
13534     cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541    typedef long ac__type_sizeof_;
13542 int
13543 main ()
13544 {
13545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13546 test_array [0] = 0
13547
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_compile") 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } && {
13566          test -z "$ac_c_werror_flag" ||
13567          test ! -s conftest.err
13568        } && test -s conftest.$ac_objext; then
13569   ac_hi=$ac_mid; break
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574         ac_lo=`expr $ac_mid + 1`
13575                         if test $ac_lo -le $ac_mid; then
13576                           ac_lo= ac_hi=
13577                           break
13578                         fi
13579                         ac_mid=`expr 2 '*' $ac_mid + 1`
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583   done
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 $ac_includes_default
13595    typedef long ac__type_sizeof_;
13596 int
13597 main ()
13598 {
13599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13600 test_array [0] = 0
13601
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 rm -f conftest.$ac_objext
13607 if { (ac_try="$ac_compile"
13608 case "(($ac_try" in
13609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610   *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613   (eval "$ac_compile") 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } && {
13620          test -z "$ac_c_werror_flag" ||
13621          test ! -s conftest.err
13622        } && test -s conftest.$ac_objext; then
13623   ac_hi=-1 ac_mid=-1
13624   while :; do
13625     cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h.  */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h.  */
13631 $ac_includes_default
13632    typedef long ac__type_sizeof_;
13633 int
13634 main ()
13635 {
13636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13637 test_array [0] = 0
13638
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_compile") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } && {
13657          test -z "$ac_c_werror_flag" ||
13658          test ! -s conftest.err
13659        } && test -s conftest.$ac_objext; then
13660   ac_lo=$ac_mid; break
13661 else
13662   echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665         ac_hi=`expr '(' $ac_mid ')' - 1`
13666                         if test $ac_mid -le $ac_hi; then
13667                           ac_lo= ac_hi=
13668                           break
13669                         fi
13670                         ac_mid=`expr 2 '*' $ac_mid`
13671 fi
13672
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674   done
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679         ac_lo= ac_hi=
13680 fi
13681
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 # Binary search between lo and hi bounds.
13687 while test "x$ac_lo" != "x$ac_hi"; do
13688   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13689   cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695 $ac_includes_default
13696    typedef long ac__type_sizeof_;
13697 int
13698 main ()
13699 {
13700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13701 test_array [0] = 0
13702
13703   ;
13704   return 0;
13705 }
13706 _ACEOF
13707 rm -f conftest.$ac_objext
13708 if { (ac_try="$ac_compile"
13709 case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_compile") 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } && {
13721          test -z "$ac_c_werror_flag" ||
13722          test ! -s conftest.err
13723        } && test -s conftest.$ac_objext; then
13724   ac_hi=$ac_mid
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729         ac_lo=`expr '(' $ac_mid ')' + 1`
13730 fi
13731
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 done
13734 case $ac_lo in
13735 ?*) ac_cv_sizeof_long=$ac_lo;;
13736 '') if test "$ac_cv_type_long" = yes; then
13737      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13738 See \`config.log' for more details." >&5
13739 echo "$as_me: error: cannot compute sizeof (long)
13740 See \`config.log' for more details." >&2;}
13741    { (exit 77); exit 77; }; }
13742    else
13743      ac_cv_sizeof_long=0
13744    fi ;;
13745 esac
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 $ac_includes_default
13754    typedef long ac__type_sizeof_;
13755 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13756 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13757 #include <stdio.h>
13758 #include <stdlib.h>
13759 int
13760 main ()
13761 {
13762
13763   FILE *f = fopen ("conftest.val", "w");
13764   if (! f)
13765     return 1;
13766   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13767     {
13768       long int i = longval ();
13769       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13770         return 1;
13771       fprintf (f, "%ld\n", i);
13772     }
13773   else
13774     {
13775       unsigned long int i = ulongval ();
13776       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13777         return 1;
13778       fprintf (f, "%lu\n", i);
13779     }
13780   return ferror (f) || fclose (f) != 0;
13781
13782   ;
13783   return 0;
13784 }
13785 _ACEOF
13786 rm -f conftest$ac_exeext
13787 if { (ac_try="$ac_link"
13788 case "(($ac_try" in
13789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790   *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793   (eval "$ac_link") 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13797   { (case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_try") 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_cv_sizeof_long=`cat conftest.val`
13807 else
13808   echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 ( exit $ac_status )
13813 if test "$ac_cv_type_long" = yes; then
13814      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13815 See \`config.log' for more details." >&5
13816 echo "$as_me: error: cannot compute sizeof (long)
13817 See \`config.log' for more details." >&2;}
13818    { (exit 77); exit 77; }; }
13819    else
13820      ac_cv_sizeof_long=0
13821    fi
13822 fi
13823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13824 fi
13825 rm -f conftest.val
13826 fi
13827 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13829
13830
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define SIZEOF_LONG $ac_cv_sizeof_long
13834 _ACEOF
13835
13836
13837 { echo "$as_me:$LINENO: checking for long long" >&5
13838 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13839 if test "${ac_cv_type_long_long+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h.  */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h.  */
13848 $ac_includes_default
13849 typedef long long ac__type_new_;
13850 int
13851 main ()
13852 {
13853 if ((ac__type_new_ *) 0)
13854   return 0;
13855 if (sizeof (ac__type_new_))
13856   return 0;
13857   ;
13858   return 0;
13859 }
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (ac_try="$ac_compile"
13863 case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_compile") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } && {
13875          test -z "$ac_c_werror_flag" ||
13876          test ! -s conftest.err
13877        } && test -s conftest.$ac_objext; then
13878   ac_cv_type_long_long=yes
13879 else
13880   echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883         ac_cv_type_long_long=no
13884 fi
13885
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 fi
13888 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13889 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13890
13891 # The cast to long int works around a bug in the HP C Compiler
13892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13894 # This bug is HP SR number 8606223364.
13895 { echo "$as_me:$LINENO: checking size of long long" >&5
13896 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13897 if test "${ac_cv_sizeof_long_long+set}" = set; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   if test "$cross_compiling" = yes; then
13901   # Depending upon the size, compute the lo and hi bounds.
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908 $ac_includes_default
13909    typedef long long ac__type_sizeof_;
13910 int
13911 main ()
13912 {
13913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13914 test_array [0] = 0
13915
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927   (eval "$ac_compile") 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } && {
13934          test -z "$ac_c_werror_flag" ||
13935          test ! -s conftest.err
13936        } && test -s conftest.$ac_objext; then
13937   ac_lo=0 ac_mid=0
13938   while :; do
13939     cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945 $ac_includes_default
13946    typedef long long ac__type_sizeof_;
13947 int
13948 main ()
13949 {
13950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13951 test_array [0] = 0
13952
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_compile") 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } && {
13971          test -z "$ac_c_werror_flag" ||
13972          test ! -s conftest.err
13973        } && test -s conftest.$ac_objext; then
13974   ac_hi=$ac_mid; break
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979         ac_lo=`expr $ac_mid + 1`
13980                         if test $ac_lo -le $ac_mid; then
13981                           ac_lo= ac_hi=
13982                           break
13983                         fi
13984                         ac_mid=`expr 2 '*' $ac_mid + 1`
13985 fi
13986
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988   done
13989 else
13990   echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993         cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 $ac_includes_default
14000    typedef long long ac__type_sizeof_;
14001 int
14002 main ()
14003 {
14004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14005 test_array [0] = 0
14006
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (ac_try="$ac_compile"
14013 case "(($ac_try" in
14014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015   *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018   (eval "$ac_compile") 2>conftest.er1
14019   ac_status=$?
14020   grep -v '^ *+' conftest.er1 >conftest.err
14021   rm -f conftest.er1
14022   cat conftest.err >&5
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } && {
14025          test -z "$ac_c_werror_flag" ||
14026          test ! -s conftest.err
14027        } && test -s conftest.$ac_objext; then
14028   ac_hi=-1 ac_mid=-1
14029   while :; do
14030     cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 $ac_includes_default
14037    typedef long long ac__type_sizeof_;
14038 int
14039 main ()
14040 {
14041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14042 test_array [0] = 0
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (ac_try="$ac_compile"
14050 case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055   (eval "$ac_compile") 2>conftest.er1
14056   ac_status=$?
14057   grep -v '^ *+' conftest.er1 >conftest.err
14058   rm -f conftest.er1
14059   cat conftest.err >&5
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } && {
14062          test -z "$ac_c_werror_flag" ||
14063          test ! -s conftest.err
14064        } && test -s conftest.$ac_objext; then
14065   ac_lo=$ac_mid; break
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070         ac_hi=`expr '(' $ac_mid ')' - 1`
14071                         if test $ac_mid -le $ac_hi; then
14072                           ac_lo= ac_hi=
14073                           break
14074                         fi
14075                         ac_mid=`expr 2 '*' $ac_mid`
14076 fi
14077
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079   done
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         ac_lo= ac_hi=
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 # Binary search between lo and hi bounds.
14092 while test "x$ac_lo" != "x$ac_hi"; do
14093   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14094   cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h.  */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h.  */
14100 $ac_includes_default
14101    typedef long long ac__type_sizeof_;
14102 int
14103 main ()
14104 {
14105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14106 test_array [0] = 0
14107
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext
14113 if { (ac_try="$ac_compile"
14114 case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_compile") 2>conftest.er1
14120   ac_status=$?
14121   grep -v '^ *+' conftest.er1 >conftest.err
14122   rm -f conftest.er1
14123   cat conftest.err >&5
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } && {
14126          test -z "$ac_c_werror_flag" ||
14127          test ! -s conftest.err
14128        } && test -s conftest.$ac_objext; then
14129   ac_hi=$ac_mid
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134         ac_lo=`expr '(' $ac_mid ')' + 1`
14135 fi
14136
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 done
14139 case $ac_lo in
14140 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14141 '') if test "$ac_cv_type_long_long" = yes; then
14142      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14143 See \`config.log' for more details." >&5
14144 echo "$as_me: error: cannot compute sizeof (long long)
14145 See \`config.log' for more details." >&2;}
14146    { (exit 77); exit 77; }; }
14147    else
14148      ac_cv_sizeof_long_long=0
14149    fi ;;
14150 esac
14151 else
14152   cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158 $ac_includes_default
14159    typedef long long ac__type_sizeof_;
14160 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14161 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14162 #include <stdio.h>
14163 #include <stdlib.h>
14164 int
14165 main ()
14166 {
14167
14168   FILE *f = fopen ("conftest.val", "w");
14169   if (! f)
14170     return 1;
14171   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14172     {
14173       long int i = longval ();
14174       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14175         return 1;
14176       fprintf (f, "%ld\n", i);
14177     }
14178   else
14179     {
14180       unsigned long int i = ulongval ();
14181       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14182         return 1;
14183       fprintf (f, "%lu\n", i);
14184     }
14185   return ferror (f) || fclose (f) != 0;
14186
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_link") 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; }; then
14211   ac_cv_sizeof_long_long=`cat conftest.val`
14212 else
14213   echo "$as_me: program exited with status $ac_status" >&5
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ( exit $ac_status )
14218 if test "$ac_cv_type_long_long" = yes; then
14219      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14220 See \`config.log' for more details." >&5
14221 echo "$as_me: error: cannot compute sizeof (long long)
14222 See \`config.log' for more details." >&2;}
14223    { (exit 77); exit 77; }; }
14224    else
14225      ac_cv_sizeof_long_long=0
14226    fi
14227 fi
14228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 rm -f conftest.val
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14233 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14234
14235
14236
14237 cat >>confdefs.h <<_ACEOF
14238 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14239 _ACEOF
14240
14241
14242 SIZEOF_SHORT=$ac_cv_sizeof_short
14243 SIZEOF_INT=$ac_cv_sizeof_int
14244 SIZEOF_LONG=$ac_cv_sizeof_long
14245 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14246
14247
14248
14249
14250 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14251 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14252 if test "${ac_cv_c_bigendian+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   # See if sys/param.h defines the BYTE_ORDER macro.
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 #include <sys/types.h>
14263 #include <sys/param.h>
14264
14265 int
14266 main ()
14267 {
14268 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14269         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14270  bogus endian macros
14271 #endif
14272
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (ac_try="$ac_compile"
14279 case "(($ac_try" in
14280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281   *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284   (eval "$ac_compile") 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } && {
14291          test -z "$ac_c_werror_flag" ||
14292          test ! -s conftest.err
14293        } && test -s conftest.$ac_objext; then
14294   # It does; now see whether it defined to BIG_ENDIAN or not.
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <sys/types.h>
14302 #include <sys/param.h>
14303
14304 int
14305 main ()
14306 {
14307 #if BYTE_ORDER != BIG_ENDIAN
14308  not big endian
14309 #endif
14310
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_compile") 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } && {
14329          test -z "$ac_c_werror_flag" ||
14330          test ! -s conftest.err
14331        } && test -s conftest.$ac_objext; then
14332   ac_cv_c_bigendian=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337         ac_cv_c_bigendian=no
14338 fi
14339
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345         # It does not; compile a test program.
14346 if test "$cross_compiling" = yes; then
14347   # try to guess the endianness by grepping values into an object file
14348   ac_cv_c_bigendian=unknown
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14356 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14357 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14358 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14359 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14360 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14361 int
14362 main ()
14363 {
14364  _ascii (); _ebcdic ();
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext
14370 if { (ac_try="$ac_compile"
14371 case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_compile") 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } && {
14383          test -z "$ac_c_werror_flag" ||
14384          test ! -s conftest.err
14385        } && test -s conftest.$ac_objext; then
14386   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14387   ac_cv_c_bigendian=yes
14388 fi
14389 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14390   if test "$ac_cv_c_bigendian" = unknown; then
14391     ac_cv_c_bigendian=no
14392   else
14393     # finding both strings is unlikely to happen, but who knows?
14394     ac_cv_c_bigendian=unknown
14395   fi
14396 fi
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401
14402 fi
14403
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 $ac_includes_default
14413 int
14414 main ()
14415 {
14416
14417   /* Are we little or big endian?  From Harbison&Steele.  */
14418   union
14419   {
14420     long int l;
14421     char c[sizeof (long int)];
14422   } u;
14423   u.l = 1;
14424   return u.c[sizeof (long int) - 1] == 1;
14425
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest$ac_exeext
14431 if { (ac_try="$ac_link"
14432 case "(($ac_try" in
14433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434   *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437   (eval "$ac_link") 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14441   { (case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_try") 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; }; then
14450   ac_cv_c_bigendian=no
14451 else
14452   echo "$as_me: program exited with status $ac_status" >&5
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 ( exit $ac_status )
14457 ac_cv_c_bigendian=yes
14458 fi
14459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14460 fi
14461
14462
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 fi
14467 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14468 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14469 case $ac_cv_c_bigendian in
14470   yes)
14471
14472 cat >>confdefs.h <<\_ACEOF
14473 #define WORDS_BIGENDIAN 1
14474 _ACEOF
14475  ;;
14476   no)
14477      ;;
14478   *)
14479     { { echo "$as_me:$LINENO: error: unknown endianness
14480 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14481 echo "$as_me: error: unknown endianness
14482 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14483    { (exit 1); exit 1; }; } ;;
14484 esac
14485
14486 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14487 ASM_TYPES_HEADER=./asm_types.h
14488
14489 echo "/* These defines are needed for the public ext2fs.h header file */" \
14490      > public_config.h
14491 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14492   uniq tmp_config.$$ >> public_config.h
14493 else
14494   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14495 fi
14496 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14497   uniq tmp_config.$$ >> public_config.h
14498 else
14499   echo "#undef WORDS_BIGENDIAN" >> public_config.h
14500 fi
14501 rm -f tmp_config.$$
14502 PUBLIC_CONFIG_HEADER=./public_config.h
14503
14504
14505 for ac_header in inttypes.h
14506 do
14507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 fi
14514 ac_res=`eval echo '${'$as_ac_Header'}'`
14515                { echo "$as_me:$LINENO: result: $ac_res" >&5
14516 echo "${ECHO_T}$ac_res" >&6; }
14517 else
14518   # Is the header compilable?
14519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527 $ac_includes_default
14528 #include <$ac_header>
14529 _ACEOF
14530 rm -f conftest.$ac_objext
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_compile") 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } && {
14544          test -z "$ac_c_werror_flag" ||
14545          test ! -s conftest.err
14546        } && test -s conftest.$ac_objext; then
14547   ac_header_compiler=yes
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552         ac_header_compiler=no
14553 fi
14554
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14557 echo "${ECHO_T}$ac_header_compiler" >&6; }
14558
14559 # Is the header present?
14560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #include <$ac_header>
14569 _ACEOF
14570 if { (ac_try="$ac_cpp conftest.$ac_ext"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14577   ac_status=$?
14578   grep -v '^ *+' conftest.er1 >conftest.err
14579   rm -f conftest.er1
14580   cat conftest.err >&5
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } >/dev/null && {
14583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14584          test ! -s conftest.err
14585        }; then
14586   ac_header_preproc=yes
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591   ac_header_preproc=no
14592 fi
14593
14594 rm -f conftest.err conftest.$ac_ext
14595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596 echo "${ECHO_T}$ac_header_preproc" >&6; }
14597
14598 # So?  What about this header?
14599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600   yes:no: )
14601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14605     ac_header_preproc=yes
14606     ;;
14607   no:yes:* )
14608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14620
14621     ;;
14622 esac
14623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14626   echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628   eval "$as_ac_Header=\$ac_header_preproc"
14629 fi
14630 ac_res=`eval echo '${'$as_ac_Header'}'`
14631                { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14633
14634 fi
14635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14636   cat >>confdefs.h <<_ACEOF
14637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14638 _ACEOF
14639
14640 fi
14641
14642 done
14643
14644 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14645 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14646 if test "${ac_cv_type_intptr_t+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 $ac_includes_default
14656 typedef intptr_t ac__type_new_;
14657 int
14658 main ()
14659 {
14660 if ((ac__type_new_ *) 0)
14661   return 0;
14662 if (sizeof (ac__type_new_))
14663   return 0;
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_compile") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } && {
14682          test -z "$ac_c_werror_flag" ||
14683          test ! -s conftest.err
14684        } && test -s conftest.$ac_objext; then
14685   ac_cv_type_intptr_t=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690         ac_cv_type_intptr_t=no
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 fi
14695 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14696 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14697 if test $ac_cv_type_intptr_t = yes; then
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_INTPTR_T 1
14701 _ACEOF
14702
14703
14704 fi
14705
14706 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14707 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14708 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711   cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717 #include <sys/stat.h>
14718 int
14719 main ()
14720 {
14721 struct stat stat; stat.st_flags = 0;
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext
14727 if { (ac_try="$ac_compile"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_compile") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } && {
14740          test -z "$ac_c_werror_flag" ||
14741          test ! -s conftest.err
14742        } && test -s conftest.$ac_objext; then
14743   e2fsprogs_cv_struct_st_flags=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748         e2fsprogs_cv_struct_st_flags=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753
14754 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14755 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14756 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14757   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14758 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14759   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 #include <sys/stat.h>
14769 int
14770 main ()
14771 {
14772 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_compile") 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } && {
14791          test -z "$ac_c_werror_flag" ||
14792          test ! -s conftest.err
14793        } && test -s conftest.$ac_objext; then
14794   e2fsprogs_cv_struct_st_flags_immut=yes
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799         e2fsprogs_cv_struct_st_flags_immut=no
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 fi
14804
14805   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14806 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14807   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14808           cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_STAT_FLAGS 1
14810 _ACEOF
14811
14812   fi
14813 fi
14814 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14815 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14816 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819   cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 #include <sys/types.h>
14826          #include <sys/socket.h>
14827
14828 int
14829 main ()
14830 {
14831 static struct sockaddr ac_aggr;
14832 if (ac_aggr.sa_len)
14833 return 0;
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842   *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845   (eval "$ac_compile") 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } && {
14852          test -z "$ac_c_werror_flag" ||
14853          test ! -s conftest.err
14854        } && test -s conftest.$ac_objext; then
14855   ac_cv_member_struct_sockaddr_sa_len=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860         cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <sys/types.h>
14867          #include <sys/socket.h>
14868
14869 int
14870 main ()
14871 {
14872 static struct sockaddr ac_aggr;
14873 if (sizeof ac_aggr.sa_len)
14874 return 0;
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_compile") 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } && {
14893          test -z "$ac_c_werror_flag" ||
14894          test ! -s conftest.err
14895        } && test -s conftest.$ac_objext; then
14896   ac_cv_member_struct_sockaddr_sa_len=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901         ac_cv_member_struct_sockaddr_sa_len=no
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 fi
14906
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14910 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14911 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14912
14913 cat >>confdefs.h <<_ACEOF
14914 #define HAVE_SA_LEN 1
14915 _ACEOF
14916
14917 fi
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950 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 usleep nanosleep
14951 do
14952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14956   echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958   cat >conftest.$ac_ext <<_ACEOF
14959 /* confdefs.h.  */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h.  */
14964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14966 #define $ac_func innocuous_$ac_func
14967
14968 /* System header to define __stub macros and hopefully few prototypes,
14969     which can conflict with char $ac_func (); below.
14970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971     <limits.h> exists even on freestanding compilers.  */
14972
14973 #ifdef __STDC__
14974 # include <limits.h>
14975 #else
14976 # include <assert.h>
14977 #endif
14978
14979 #undef $ac_func
14980
14981 /* Override any GCC internal prototype to avoid an error.
14982    Use char because int might match the return type of a GCC
14983    builtin and then its argument prototype would still apply.  */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char $ac_func ();
14988 /* The GNU C library defines this for functions which it implements
14989     to always fail with ENOSYS.  Some functions are actually named
14990     something starting with __ and the normal name is an alias.  */
14991 #if defined __stub_$ac_func || defined __stub___$ac_func
14992 choke me
14993 #endif
14994
14995 int
14996 main ()
14997 {
14998 return $ac_func ();
14999   ;
15000   return 0;
15001 }
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_link") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } && {
15017          test -z "$ac_c_werror_flag" ||
15018          test ! -s conftest.err
15019        } && test -s conftest$ac_exeext &&
15020        $as_test_x conftest$ac_exeext; then
15021   eval "$as_ac_var=yes"
15022 else
15023   echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026         eval "$as_ac_var=no"
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030       conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 ac_res=`eval echo '${'$as_ac_var'}'`
15033                { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_var'}'` = yes; then
15036   cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041 done
15042
15043 SOCKET_LIB=''
15044 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15045 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15046 if test "${ac_cv_lib_socket_socket+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   ac_check_lib_save_LIBS=$LIBS
15050 LIBS="-lsocket  $LIBS"
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057
15058 /* Override any GCC internal prototype to avoid an error.
15059    Use char because int might match the return type of a GCC
15060    builtin and then its argument prototype would still apply.  */
15061 #ifdef __cplusplus
15062 extern "C"
15063 #endif
15064 char socket ();
15065 int
15066 main ()
15067 {
15068 return socket ();
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (ac_try="$ac_link"
15075 case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_link") 2>conftest.er1
15081   ac_status=$?
15082   grep -v '^ *+' conftest.er1 >conftest.err
15083   rm -f conftest.er1
15084   cat conftest.err >&5
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } && {
15087          test -z "$ac_c_werror_flag" ||
15088          test ! -s conftest.err
15089        } && test -s conftest$ac_exeext &&
15090        $as_test_x conftest$ac_exeext; then
15091   ac_cv_lib_socket_socket=yes
15092 else
15093   echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096         ac_cv_lib_socket_socket=no
15097 fi
15098
15099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15100       conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15102 fi
15103 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15104 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15105 if test $ac_cv_lib_socket_socket = yes; then
15106   SOCKET_LIB=-lsocket
15107 fi
15108
15109
15110 DLOPEN_LIB=''
15111 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15112 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   ac_check_lib_save_LIBS=$LIBS
15117 LIBS="-ldl  $LIBS"
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124
15125 /* Override any GCC internal prototype to avoid an error.
15126    Use char because int might match the return type of a GCC
15127    builtin and then its argument prototype would still apply.  */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 char dlopen ();
15132 int
15133 main ()
15134 {
15135 return dlopen ();
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144   *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147   (eval "$ac_link") 2>conftest.er1
15148   ac_status=$?
15149   grep -v '^ *+' conftest.er1 >conftest.err
15150   rm -f conftest.er1
15151   cat conftest.err >&5
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); } && {
15154          test -z "$ac_c_werror_flag" ||
15155          test ! -s conftest.err
15156        } && test -s conftest$ac_exeext &&
15157        $as_test_x conftest$ac_exeext; then
15158   ac_cv_lib_dl_dlopen=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         ac_cv_lib_dl_dlopen=no
15164 fi
15165
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167       conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15169 fi
15170 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15172 if test $ac_cv_lib_dl_dlopen = yes; then
15173   DLOPEN_LIB=-ldl
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_DLOPEN 1
15176 _ACEOF
15177
15178 fi
15179
15180
15181 { echo "$as_me:$LINENO: checking for optreset" >&5
15182 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15183 if test "${ac_cv_have_optreset+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <unistd.h>
15193
15194 _ACEOF
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196   $EGREP "optreset" >/dev/null 2>&1; then
15197   ac_cv_have_optreset=yes
15198 else
15199   ac_cv_have_optreset=no
15200 fi
15201 rm -f conftest*
15202
15203 fi
15204 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15205 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15206 if test $ac_cv_have_optreset = yes; then
15207   cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_OPTRESET 1
15209 _ACEOF
15210
15211 fi
15212 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15213 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15214 if diff -u $0 $0 > /dev/null 2>&1 ; then
15215    UNI_DIFF_OPTS=-u
15216 else
15217    UNI_DIFF_OPTS=-c
15218 fi
15219 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15220 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15221
15222 case "$host_os" in
15223 linux*)
15224         cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_EXT2_IOCTLS 1
15226 _ACEOF
15227
15228         ;;
15229 esac
15230 LINUX_CMT="#"
15231 CYGWIN_CMT="#"
15232 UNIX_CMT=
15233 case "$host_os" in
15234 linux*)
15235         LINUX_CMT=
15236         ;;
15237 cygwin)
15238         CYGWIN_CMT=
15239         UNIX_CMT="#"
15240         ;;
15241 esac
15242
15243
15244
15245 case "$host_os" in
15246 linux* | gnu* | k*bsd*-gnu)
15247         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15248                 root_prefix="";
15249                 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15250 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15251         fi
15252         ;;
15253 esac
15254 case "$host_os" in
15255 linux* | gnu* | k*bsd*-gnu)
15256         if test "$prefix" = NONE ; then
15257                 prefix="/usr";
15258                 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15259 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15260                 if test "$mandir" = '${prefix}/man' ; then
15261                         { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15262 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15263                         mandir=/usr/share/man
15264                 fi
15265         fi
15266 ;;
15267 esac
15268 if test "$root_prefix" = NONE ; then
15269         if test "$prefix" = NONE ; then
15270                 root_prefix="$ac_default_prefix"
15271         else
15272                 root_prefix="$prefix"
15273         fi
15274         root_bindir=$bindir
15275         root_sbindir=$sbindir
15276         root_libdir=$libdir
15277         root_sysconfdir=$sysconfdir
15278 else
15279         root_bindir='${root_prefix}/bin'
15280         root_sbindir='${root_prefix}/sbin'
15281         root_libdir='${root_prefix}/lib'
15282         root_sysconfdir='${root_prefix}/etc'
15283 fi
15284 if test "$bindir" != '${exec_prefix}/bin'; then
15285     root_bindir=$bindir
15286     { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15287 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15288 fi
15289 if test "$sbindir" != '${exec_prefix}/sbin'; then
15290     root_sbindir=$sbindir
15291     { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15292 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15293 fi
15294 if test "$libdir" != '${exec_prefix}/lib'; then
15295     root_libdir=$libdir
15296     { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15297 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15298 fi
15299 if test "$sysconfdir" != '${prefix}/etc'; then
15300     root_sysconfdir=$sysconfdir
15301     { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15302 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15303 fi
15304
15305
15306
15307
15308
15309 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15310 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15311 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15312   echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 #include <stdio.h>
15322 int
15323 main ()
15324 {
15325 fflush(stdout);
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (ac_try="$ac_link"
15332 case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_link") 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } && {
15344          test -z "$ac_c_werror_flag" ||
15345          test ! -s conftest.err
15346        } && test -s conftest$ac_exeext &&
15347        $as_test_x conftest$ac_exeext; then
15348   ac_cv_e2fsprogs_use_static=yes
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         ac_cv_e2fsprogs_use_static=no
15354 fi
15355
15356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15357       conftest$ac_exeext conftest.$ac_ext
15358 LDFLAGS=$SAVE_LDFLAGS
15359 fi
15360
15361 case "$host_os" in
15362 solaris2.*)
15363         ac_cv_e2fsprogs_use_static=no
15364 ;;
15365 esac
15366 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15367 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15368 LDFLAG_STATIC=
15369 if test $ac_cv_e2fsprogs_use_static = yes; then
15370         LDFLAG_STATIC=-static
15371 fi
15372
15373 case "$host_os" in
15374 darwin*)
15375         { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15376 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15377         cat >>confdefs.h <<\_ACEOF
15378 #define _INTL_REDIRECT_MACROS 1
15379 _ACEOF
15380
15381         ;;
15382 esac
15383 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15384 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15385
15386
15387 if test "$cross_compiling" = yes ; then
15388   DO_TEST_SUITE=
15389 else
15390   DO_TEST_SUITE=check
15391 fi
15392
15393 INTL_FLAGS=
15394 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15395         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15396 fi
15397
15398 if test $cross_compiling = no; then
15399    BUILD_CFLAGS="$CFLAGS"
15400    BUILD_LDFLAGS="$LDFLAGS"
15401 else
15402    BUILD_CFLAGS=
15403    BUILD_LDFLAGS=
15404 fi
15405
15406
15407 test -d lib || mkdir lib
15408 test -d include || mkdir include
15409 test -d include/linux || mkdir include/linux
15410 test -d include/asm || mkdir include/asm
15411 for i in MCONFIG Makefile e2fsprogs.spec \
15412         util/Makefile util/subst.conf util/gen-tarball \
15413         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15414         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15415         lib/uuid/Makefile lib/uuid/uuid_types.h \
15416         lib/blkid/Makefile lib/blkid/blkid_types.h \
15417         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15418         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15419         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15420         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15421         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15422         if test -d `dirname ${srcdir}/$i` ; then
15423                 outlist="$outlist $i"
15424         fi
15425 done
15426 ac_config_files="$ac_config_files $outlist"
15427
15428 cat >confcache <<\_ACEOF
15429 # This file is a shell script that caches the results of configure
15430 # tests run on this system so they can be shared between configure
15431 # scripts and configure runs, see configure's option --config-cache.
15432 # It is not useful on other systems.  If it contains results you don't
15433 # want to keep, you may remove or edit it.
15434 #
15435 # config.status only pays attention to the cache file if you give it
15436 # the --recheck option to rerun configure.
15437 #
15438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15440 # following values.
15441
15442 _ACEOF
15443
15444 # The following way of writing the cache mishandles newlines in values,
15445 # but we know of no workaround that is simple, portable, and efficient.
15446 # So, we kill variables containing newlines.
15447 # Ultrix sh set writes to stderr and can't be redirected directly,
15448 # and sets the high bit in the cache file unless we assign to the vars.
15449 (
15450   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15451     eval ac_val=\$$ac_var
15452     case $ac_val in #(
15453     *${as_nl}*)
15454       case $ac_var in #(
15455       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15457       esac
15458       case $ac_var in #(
15459       _ | IFS | as_nl) ;; #(
15460       *) $as_unset $ac_var ;;
15461       esac ;;
15462     esac
15463   done
15464
15465   (set) 2>&1 |
15466     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15467     *${as_nl}ac_space=\ *)
15468       # `set' does not quote correctly, so add quotes (double-quote
15469       # substitution turns \\\\ into \\, and sed turns \\ into \).
15470       sed -n \
15471         "s/'/'\\\\''/g;
15472           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15473       ;; #(
15474     *)
15475       # `set' quotes correctly as required by POSIX, so do not add quotes.
15476       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15477       ;;
15478     esac |
15479     sort
15480 ) |
15481   sed '
15482      /^ac_cv_env_/b end
15483      t clear
15484      :clear
15485      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15486      t end
15487      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15488      :end' >>confcache
15489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15490   if test -w "$cache_file"; then
15491     test "x$cache_file" != "x/dev/null" &&
15492       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15493 echo "$as_me: updating cache $cache_file" >&6;}
15494     cat confcache >$cache_file
15495   else
15496     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15497 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15498   fi
15499 fi
15500 rm -f confcache
15501
15502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15503 # Let make expand exec_prefix.
15504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15505
15506 # Transform confdefs.h into DEFS.
15507 # Protect against shell expansion while executing Makefile rules.
15508 # Protect against Makefile macro expansion.
15509 #
15510 # If the first sed substitution is executed (which looks for macros that
15511 # take arguments), then branch to the quote section.  Otherwise,
15512 # look for a macro that doesn't take arguments.
15513 ac_script='
15514 t clear
15515 :clear
15516 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15517 t quote
15518 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15519 t quote
15520 b any
15521 :quote
15522 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15523 s/\[/\\&/g
15524 s/\]/\\&/g
15525 s/\$/$$/g
15526 H
15527 :any
15528 ${
15529         g
15530         s/^\n//
15531         s/\n/ /g
15532         p
15533 }
15534 '
15535 DEFS=`sed -n "$ac_script" confdefs.h`
15536
15537
15538 ac_libobjs=
15539 ac_ltlibobjs=
15540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15541   # 1. Remove the extension, and $U if already installed.
15542   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15543   ac_i=`echo "$ac_i" | sed "$ac_script"`
15544   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15545   #    will be set to the directory where LIBOBJS objects are built.
15546   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15547   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15548 done
15549 LIBOBJS=$ac_libobjs
15550
15551 LTLIBOBJS=$ac_ltlibobjs
15552
15553
15554
15555 : ${CONFIG_STATUS=./config.status}
15556 ac_clean_files_save=$ac_clean_files
15557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15560 cat >$CONFIG_STATUS <<_ACEOF
15561 #! $SHELL
15562 # Generated by $as_me.
15563 # Run this file to recreate the current configuration.
15564 # Compiler output produced by configure, useful for debugging
15565 # configure, is in config.log if it exists.
15566
15567 debug=false
15568 ac_cs_recheck=false
15569 ac_cs_silent=false
15570 SHELL=\${CONFIG_SHELL-$SHELL}
15571 _ACEOF
15572
15573 cat >>$CONFIG_STATUS <<\_ACEOF
15574 ## --------------------- ##
15575 ## M4sh Initialization.  ##
15576 ## --------------------- ##
15577
15578 # Be more Bourne compatible
15579 DUALCASE=1; export DUALCASE # for MKS sh
15580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15581   emulate sh
15582   NULLCMD=:
15583   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15584   # is contrary to our usage.  Disable this feature.
15585   alias -g '${1+"$@"}'='"$@"'
15586   setopt NO_GLOB_SUBST
15587 else
15588   case `(set -o) 2>/dev/null` in
15589   *posix*) set -o posix ;;
15590 esac
15591
15592 fi
15593
15594
15595
15596
15597 # PATH needs CR
15598 # Avoid depending upon Character Ranges.
15599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602 as_cr_digits='0123456789'
15603 as_cr_alnum=$as_cr_Letters$as_cr_digits
15604
15605 # The user is always right.
15606 if test "${PATH_SEPARATOR+set}" != set; then
15607   echo "#! /bin/sh" >conf$$.sh
15608   echo  "exit 0"   >>conf$$.sh
15609   chmod +x conf$$.sh
15610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15611     PATH_SEPARATOR=';'
15612   else
15613     PATH_SEPARATOR=:
15614   fi
15615   rm -f conf$$.sh
15616 fi
15617
15618 # Support unset when possible.
15619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15620   as_unset=unset
15621 else
15622   as_unset=false
15623 fi
15624
15625
15626 # IFS
15627 # We need space, tab and new line, in precisely that order.  Quoting is
15628 # there to prevent editors from complaining about space-tab.
15629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15630 # splitting by setting IFS to empty value.)
15631 as_nl='
15632 '
15633 IFS=" ""        $as_nl"
15634
15635 # Find who we are.  Look in the path if we contain no directory separator.
15636 case $0 in
15637   *[\\/]* ) as_myself=$0 ;;
15638   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 for as_dir in $PATH
15640 do
15641   IFS=$as_save_IFS
15642   test -z "$as_dir" && as_dir=.
15643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15644 done
15645 IFS=$as_save_IFS
15646
15647      ;;
15648 esac
15649 # We did not find ourselves, most probably we were run as `sh COMMAND'
15650 # in which case we are not to be found in the path.
15651 if test "x$as_myself" = x; then
15652   as_myself=$0
15653 fi
15654 if test ! -f "$as_myself"; then
15655   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15656   { (exit 1); exit 1; }
15657 fi
15658
15659 # Work around bugs in pre-3.0 UWIN ksh.
15660 for as_var in ENV MAIL MAILPATH
15661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15662 done
15663 PS1='$ '
15664 PS2='> '
15665 PS4='+ '
15666
15667 # NLS nuisances.
15668 for as_var in \
15669   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15670   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15671   LC_TELEPHONE LC_TIME
15672 do
15673   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15674     eval $as_var=C; export $as_var
15675   else
15676     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15677   fi
15678 done
15679
15680 # Required to use basename.
15681 if expr a : '\(a\)' >/dev/null 2>&1 &&
15682    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15683   as_expr=expr
15684 else
15685   as_expr=false
15686 fi
15687
15688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15689   as_basename=basename
15690 else
15691   as_basename=false
15692 fi
15693
15694
15695 # Name of the executable.
15696 as_me=`$as_basename -- "$0" ||
15697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15698          X"$0" : 'X\(//\)$' \| \
15699          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15700 echo X/"$0" |
15701     sed '/^.*\/\([^/][^/]*\)\/*$/{
15702             s//\1/
15703             q
15704           }
15705           /^X\/\(\/\/\)$/{
15706             s//\1/
15707             q
15708           }
15709           /^X\/\(\/\).*/{
15710             s//\1/
15711             q
15712           }
15713           s/.*/./; q'`
15714
15715 # CDPATH.
15716 $as_unset CDPATH
15717
15718
15719
15720   as_lineno_1=$LINENO
15721   as_lineno_2=$LINENO
15722   test "x$as_lineno_1" != "x$as_lineno_2" &&
15723   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15724
15725   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15726   # uniformly replaced by the line number.  The first 'sed' inserts a
15727   # line-number line after each line using $LINENO; the second 'sed'
15728   # does the real work.  The second script uses 'N' to pair each
15729   # line-number line with the line containing $LINENO, and appends
15730   # trailing '-' during substitution so that $LINENO is not a special
15731   # case at line end.
15732   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15733   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15734   # E. McMahon (1931-1989) for sed's syntax.  :-)
15735   sed -n '
15736     p
15737     /[$]LINENO/=
15738   ' <$as_myself |
15739     sed '
15740       s/[$]LINENO.*/&-/
15741       t lineno
15742       b
15743       :lineno
15744       N
15745       :loop
15746       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15747       t loop
15748       s/-\n.*//
15749     ' >$as_me.lineno &&
15750   chmod +x "$as_me.lineno" ||
15751     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15752    { (exit 1); exit 1; }; }
15753
15754   # Don't try to exec as it changes $[0], causing all sort of problems
15755   # (the dirname of $[0] is not the place where we might find the
15756   # original and so on.  Autoconf is especially sensitive to this).
15757   . "./$as_me.lineno"
15758   # Exit status is that of the last command.
15759   exit
15760 }
15761
15762
15763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15764   as_dirname=dirname
15765 else
15766   as_dirname=false
15767 fi
15768
15769 ECHO_C= ECHO_N= ECHO_T=
15770 case `echo -n x` in
15771 -n*)
15772   case `echo 'x\c'` in
15773   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15774   *)   ECHO_C='\c';;
15775   esac;;
15776 *)
15777   ECHO_N='-n';;
15778 esac
15779
15780 if expr a : '\(a\)' >/dev/null 2>&1 &&
15781    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15782   as_expr=expr
15783 else
15784   as_expr=false
15785 fi
15786
15787 rm -f conf$$ conf$$.exe conf$$.file
15788 if test -d conf$$.dir; then
15789   rm -f conf$$.dir/conf$$.file
15790 else
15791   rm -f conf$$.dir
15792   mkdir conf$$.dir
15793 fi
15794 echo >conf$$.file
15795 if ln -s conf$$.file conf$$ 2>/dev/null; then
15796   as_ln_s='ln -s'
15797   # ... but there are two gotchas:
15798   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15799   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15800   # In both cases, we have to default to `cp -p'.
15801   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15802     as_ln_s='cp -p'
15803 elif ln conf$$.file conf$$ 2>/dev/null; then
15804   as_ln_s=ln
15805 else
15806   as_ln_s='cp -p'
15807 fi
15808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15809 rmdir conf$$.dir 2>/dev/null
15810
15811 if mkdir -p . 2>/dev/null; then
15812   as_mkdir_p=:
15813 else
15814   test -d ./-p && rmdir ./-p
15815   as_mkdir_p=false
15816 fi
15817
15818 if test -x / >/dev/null 2>&1; then
15819   as_test_x='test -x'
15820 else
15821   if ls -dL / >/dev/null 2>&1; then
15822     as_ls_L_option=L
15823   else
15824     as_ls_L_option=
15825   fi
15826   as_test_x='
15827     eval sh -c '\''
15828       if test -d "$1"; then
15829         test -d "$1/.";
15830       else
15831         case $1 in
15832         -*)set "./$1";;
15833         esac;
15834         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15835         ???[sx]*):;;*)false;;esac;fi
15836     '\'' sh
15837   '
15838 fi
15839 as_executable_p=$as_test_x
15840
15841 # Sed expression to map a string onto a valid CPP name.
15842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15843
15844 # Sed expression to map a string onto a valid variable name.
15845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15846
15847
15848 exec 6>&1
15849
15850 # Save the log message, to keep $[0] and so on meaningful, and to
15851 # report actual input values of CONFIG_FILES etc. instead of their
15852 # values after options handling.
15853 ac_log="
15854 This file was extended by $as_me, which was
15855 generated by GNU Autoconf 2.61.  Invocation command line was
15856
15857   CONFIG_FILES    = $CONFIG_FILES
15858   CONFIG_HEADERS  = $CONFIG_HEADERS
15859   CONFIG_LINKS    = $CONFIG_LINKS
15860   CONFIG_COMMANDS = $CONFIG_COMMANDS
15861   $ $0 $@
15862
15863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15864 "
15865
15866 _ACEOF
15867
15868 cat >>$CONFIG_STATUS <<_ACEOF
15869 # Files that config.status was made for.
15870 config_files="$ac_config_files"
15871 config_commands="$ac_config_commands"
15872
15873 _ACEOF
15874
15875 cat >>$CONFIG_STATUS <<\_ACEOF
15876 ac_cs_usage="\
15877 \`$as_me' instantiates files from templates according to the
15878 current configuration.
15879
15880 Usage: $0 [OPTIONS] [FILE]...
15881
15882   -h, --help       print this help, then exit
15883   -V, --version    print version number and configuration settings, then exit
15884   -q, --quiet      do not print progress messages
15885   -d, --debug      don't remove temporary files
15886       --recheck    update $as_me by reconfiguring in the same conditions
15887   --file=FILE[:TEMPLATE]
15888                    instantiate the configuration file FILE
15889
15890 Configuration files:
15891 $config_files
15892
15893 Configuration commands:
15894 $config_commands
15895
15896 Report bugs to <bug-autoconf@gnu.org>."
15897
15898 _ACEOF
15899 cat >>$CONFIG_STATUS <<_ACEOF
15900 ac_cs_version="\\
15901 config.status
15902 configured by $0, generated by GNU Autoconf 2.61,
15903   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15904
15905 Copyright (C) 2006 Free Software Foundation, Inc.
15906 This config.status script is free software; the Free Software Foundation
15907 gives unlimited permission to copy, distribute and modify it."
15908
15909 ac_pwd='$ac_pwd'
15910 srcdir='$srcdir'
15911 INSTALL='$INSTALL'
15912 _ACEOF
15913
15914 cat >>$CONFIG_STATUS <<\_ACEOF
15915 # If no file are specified by the user, then we need to provide default
15916 # value.  By we need to know if files were specified by the user.
15917 ac_need_defaults=:
15918 while test $# != 0
15919 do
15920   case $1 in
15921   --*=*)
15922     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15923     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15924     ac_shift=:
15925     ;;
15926   *)
15927     ac_option=$1
15928     ac_optarg=$2
15929     ac_shift=shift
15930     ;;
15931   esac
15932
15933   case $ac_option in
15934   # Handling of the options.
15935   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15936     ac_cs_recheck=: ;;
15937   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15938     echo "$ac_cs_version"; exit ;;
15939   --debug | --debu | --deb | --de | --d | -d )
15940     debug=: ;;
15941   --file | --fil | --fi | --f )
15942     $ac_shift
15943     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15944     ac_need_defaults=false;;
15945   --he | --h |  --help | --hel | -h )
15946     echo "$ac_cs_usage"; exit ;;
15947   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15948   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15949     ac_cs_silent=: ;;
15950
15951   # This is an error.
15952   -*) { echo "$as_me: error: unrecognized option: $1
15953 Try \`$0 --help' for more information." >&2
15954    { (exit 1); exit 1; }; } ;;
15955
15956   *) ac_config_targets="$ac_config_targets $1"
15957      ac_need_defaults=false ;;
15958
15959   esac
15960   shift
15961 done
15962
15963 ac_configure_extra_args=
15964
15965 if $ac_cs_silent; then
15966   exec 6>/dev/null
15967   ac_configure_extra_args="$ac_configure_extra_args --silent"
15968 fi
15969
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<_ACEOF
15972 if \$ac_cs_recheck; then
15973   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15974   CONFIG_SHELL=$SHELL
15975   export CONFIG_SHELL
15976   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15977 fi
15978
15979 _ACEOF
15980 cat >>$CONFIG_STATUS <<\_ACEOF
15981 exec 5>>config.log
15982 {
15983   echo
15984   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15985 ## Running $as_me. ##
15986 _ASBOX
15987   echo "$ac_log"
15988 } >&5
15989
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<_ACEOF
15992 #
15993 # INIT-COMMANDS
15994 #
15995 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15996     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15997     # from automake.
15998     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15999     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16000     LINGUAS="${LINGUAS-%UNSET%}"
16001
16002
16003 _ACEOF
16004
16005 cat >>$CONFIG_STATUS <<\_ACEOF
16006
16007 # Handling of arguments.
16008 for ac_config_target in $ac_config_targets
16009 do
16010   case $ac_config_target in
16011     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16012     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16013
16014   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16016    { (exit 1); exit 1; }; };;
16017   esac
16018 done
16019
16020
16021 # If the user did not use the arguments to specify the items to instantiate,
16022 # then the envvar interface is used.  Set only those that are not.
16023 # We use the long form for the default assignment because of an extremely
16024 # bizarre bug on SunOS 4.1.3.
16025 if $ac_need_defaults; then
16026   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16027   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16028 fi
16029
16030 # Have a temporary directory for convenience.  Make it in the build tree
16031 # simply because there is no reason against having it here, and in addition,
16032 # creating and moving files from /tmp can sometimes cause problems.
16033 # Hook for its removal unless debugging.
16034 # Note that there is a small window in which the directory will not be cleaned:
16035 # after its creation but before its name has been assigned to `$tmp'.
16036 $debug ||
16037 {
16038   tmp=
16039   trap 'exit_status=$?
16040   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16041 ' 0
16042   trap '{ (exit 1); exit 1; }' 1 2 13 15
16043 }
16044 # Create a (secure) tmp directory for tmp files.
16045
16046 {
16047   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16048   test -n "$tmp" && test -d "$tmp"
16049 }  ||
16050 {
16051   tmp=./conf$$-$RANDOM
16052   (umask 077 && mkdir "$tmp")
16053 } ||
16054 {
16055    echo "$me: cannot create a temporary directory in ." >&2
16056    { (exit 1); exit 1; }
16057 }
16058
16059 #
16060 # Set up the sed scripts for CONFIG_FILES section.
16061 #
16062
16063 # No need to generate the scripts if there are no CONFIG_FILES.
16064 # This happens for instance when ./config.status config.h
16065 if test -n "$CONFIG_FILES"; then
16066
16067 _ACEOF
16068
16069 # Create sed commands to just substitute file output variables.
16070
16071 # Remaining file output variables are in a fragment that also has non-file
16072 # output varibles.
16073
16074
16075
16076 ac_delim='%!_!# '
16077 for ac_last_try in false false false false false :; do
16078   cat >conf$$subs.sed <<_ACEOF
16079 SHELL!$SHELL$ac_delim
16080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16086 exec_prefix!$exec_prefix$ac_delim
16087 prefix!$prefix$ac_delim
16088 program_transform_name!$program_transform_name$ac_delim
16089 bindir!$bindir$ac_delim
16090 sbindir!$sbindir$ac_delim
16091 libexecdir!$libexecdir$ac_delim
16092 datarootdir!$datarootdir$ac_delim
16093 datadir!$datadir$ac_delim
16094 sysconfdir!$sysconfdir$ac_delim
16095 sharedstatedir!$sharedstatedir$ac_delim
16096 localstatedir!$localstatedir$ac_delim
16097 includedir!$includedir$ac_delim
16098 oldincludedir!$oldincludedir$ac_delim
16099 docdir!$docdir$ac_delim
16100 infodir!$infodir$ac_delim
16101 htmldir!$htmldir$ac_delim
16102 dvidir!$dvidir$ac_delim
16103 pdfdir!$pdfdir$ac_delim
16104 psdir!$psdir$ac_delim
16105 libdir!$libdir$ac_delim
16106 localedir!$localedir$ac_delim
16107 mandir!$mandir$ac_delim
16108 DEFS!$DEFS$ac_delim
16109 ECHO_C!$ECHO_C$ac_delim
16110 ECHO_N!$ECHO_N$ac_delim
16111 ECHO_T!$ECHO_T$ac_delim
16112 LIBS!$LIBS$ac_delim
16113 build_alias!$build_alias$ac_delim
16114 host_alias!$host_alias$ac_delim
16115 target_alias!$target_alias$ac_delim
16116 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16117 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16118 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16119 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16120 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16121 build!$build$ac_delim
16122 build_cpu!$build_cpu$ac_delim
16123 build_vendor!$build_vendor$ac_delim
16124 build_os!$build_os$ac_delim
16125 host!$host$ac_delim
16126 host_cpu!$host_cpu$ac_delim
16127 host_vendor!$host_vendor$ac_delim
16128 host_os!$host_os$ac_delim
16129 CC!$CC$ac_delim
16130 CFLAGS!$CFLAGS$ac_delim
16131 LDFLAGS!$LDFLAGS$ac_delim
16132 CPPFLAGS!$CPPFLAGS$ac_delim
16133 ac_ct_CC!$ac_ct_CC$ac_delim
16134 EXEEXT!$EXEEXT$ac_delim
16135 OBJEXT!$OBJEXT$ac_delim
16136 CPP!$CPP$ac_delim
16137 LD!$LD$ac_delim
16138 GREP!$GREP$ac_delim
16139 EGREP!$EGREP$ac_delim
16140 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16141 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16142 HTREE_CMT!$HTREE_CMT$ac_delim
16143 ELF_CMT!$ELF_CMT$ac_delim
16144 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16145 PROFILE_CMT!$PROFILE_CMT$ac_delim
16146 CHECKER_CMT!$CHECKER_CMT$ac_delim
16147 LIB_EXT!$LIB_EXT$ac_delim
16148 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16149 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16150 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16151 IMAGER_CMT!$IMAGER_CMT$ac_delim
16152 _ACEOF
16153
16154   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16155     break
16156   elif $ac_last_try; then
16157     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16159    { (exit 1); exit 1; }; }
16160   else
16161     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16162   fi
16163 done
16164
16165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16166 if test -n "$ac_eof"; then
16167   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16168   ac_eof=`expr $ac_eof + 1`
16169 fi
16170
16171 cat >>$CONFIG_STATUS <<_ACEOF
16172 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16174 /^[      ]*@MCONFIG@[    ]*$/{
16175 r $MCONFIG
16176 d
16177 }
16178 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
16179 r $MAKEFILE_ELF
16180 d
16181 }
16182 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
16183 r $MAKEFILE_BSDLIB
16184 d
16185 }
16186 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
16187 r $MAKEFILE_PROFILE
16188 d
16189 }
16190 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
16191 r $MAKEFILE_CHECKER
16192 d
16193 }
16194 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
16195 r $MAKEFILE_LIBRARY
16196 d
16197 }
16198 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
16199 r $ASM_TYPES_HEADER
16200 d
16201 }
16202 /^[      ]*@PUBLIC_CONFIG_HEADER@[       ]*$/{
16203 r $PUBLIC_CONFIG_HEADER
16204 d
16205 }
16206 _ACEOF
16207 sed '
16208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16209 s/^/s,@/; s/!/@,|#_!!_#|/
16210 :n
16211 t n
16212 s/'"$ac_delim"'$/,g/; t
16213 s/$/\\/; p
16214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16215 ' >>$CONFIG_STATUS <conf$$subs.sed
16216 rm -f conf$$subs.sed
16217 cat >>$CONFIG_STATUS <<_ACEOF
16218 CEOF$ac_eof
16219 _ACEOF
16220
16221
16222 ac_delim='%!_!# '
16223 for ac_last_try in false false false false false :; do
16224   cat >conf$$subs.sed <<_ACEOF
16225 RESIZER_CMT!$RESIZER_CMT$ac_delim
16226 FSCK_PROG!$FSCK_PROG$ac_delim
16227 FSCK_MAN!$FSCK_MAN$ac_delim
16228 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16229 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16230 PKG_CONFIG!$PKG_CONFIG$ac_delim
16231 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16232 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16233 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16234 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16235 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16236 UUIDD_CMT!$UUIDD_CMT$ac_delim
16237 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16238 PACKAGE!$PACKAGE$ac_delim
16239 VERSION!$VERSION$ac_delim
16240 SET_MAKE!$SET_MAKE$ac_delim
16241 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16242 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16243 INSTALL_DATA!$INSTALL_DATA$ac_delim
16244 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16245 USE_NLS!$USE_NLS$ac_delim
16246 MSGFMT!$MSGFMT$ac_delim
16247 GMSGFMT!$GMSGFMT$ac_delim
16248 XGETTEXT!$XGETTEXT$ac_delim
16249 MSGMERGE!$MSGMERGE$ac_delim
16250 RANLIB!$RANLIB$ac_delim
16251 ALLOCA!$ALLOCA$ac_delim
16252 GLIBC21!$GLIBC21$ac_delim
16253 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16254 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16255 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16256 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16257 LIBICONV!$LIBICONV$ac_delim
16258 LTLIBICONV!$LTLIBICONV$ac_delim
16259 INTLBISON!$INTLBISON$ac_delim
16260 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16261 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16262 CATOBJEXT!$CATOBJEXT$ac_delim
16263 DATADIRNAME!$DATADIRNAME$ac_delim
16264 INSTOBJEXT!$INSTOBJEXT$ac_delim
16265 GENCAT!$GENCAT$ac_delim
16266 INTLOBJS!$INTLOBJS$ac_delim
16267 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16268 INTLLIBS!$INTLLIBS$ac_delim
16269 LIBINTL!$LIBINTL$ac_delim
16270 LTLIBINTL!$LTLIBINTL$ac_delim
16271 POSUB!$POSUB$ac_delim
16272 BINARY_TYPE!$BINARY_TYPE$ac_delim
16273 LN!$LN$ac_delim
16274 LN_S!$LN_S$ac_delim
16275 MV!$MV$ac_delim
16276 CP!$CP$ac_delim
16277 RM!$RM$ac_delim
16278 CHMOD!$CHMOD$ac_delim
16279 AWK!$AWK$ac_delim
16280 SED!$SED$ac_delim
16281 PERL!$PERL$ac_delim
16282 LDCONFIG!$LDCONFIG$ac_delim
16283 AR!$AR$ac_delim
16284 STRIP!$STRIP$ac_delim
16285 MAKEINFO!$MAKEINFO$ac_delim
16286 BUILD_CC!$BUILD_CC$ac_delim
16287 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16288 SIZEOF_INT!$SIZEOF_INT$ac_delim
16289 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16290 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16291 SOCKET_LIB!$SOCKET_LIB$ac_delim
16292 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16293 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16294 LINUX_CMT!$LINUX_CMT$ac_delim
16295 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16296 UNIX_CMT!$UNIX_CMT$ac_delim
16297 root_prefix!$root_prefix$ac_delim
16298 root_bindir!$root_bindir$ac_delim
16299 root_sbindir!$root_sbindir$ac_delim
16300 root_libdir!$root_libdir$ac_delim
16301 root_sysconfdir!$root_sysconfdir$ac_delim
16302 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16303 SS_DIR!$SS_DIR$ac_delim
16304 ET_DIR!$ET_DIR$ac_delim
16305 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16306 INTL_FLAGS!$INTL_FLAGS$ac_delim
16307 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16308 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16309 LIBOBJS!$LIBOBJS$ac_delim
16310 LTLIBOBJS!$LTLIBOBJS$ac_delim
16311 _ACEOF
16312
16313   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16314     break
16315   elif $ac_last_try; then
16316     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16318    { (exit 1); exit 1; }; }
16319   else
16320     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16321   fi
16322 done
16323
16324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16325 if test -n "$ac_eof"; then
16326   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16327   ac_eof=`expr $ac_eof + 1`
16328 fi
16329
16330 cat >>$CONFIG_STATUS <<_ACEOF
16331 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16333 _ACEOF
16334 sed '
16335 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16336 s/^/s,@/; s/!/@,|#_!!_#|/
16337 :n
16338 t n
16339 s/'"$ac_delim"'$/,g/; t
16340 s/$/\\/; p
16341 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16342 ' >>$CONFIG_STATUS <conf$$subs.sed
16343 rm -f conf$$subs.sed
16344 cat >>$CONFIG_STATUS <<_ACEOF
16345 :end
16346 s/|#_!!_#|//g
16347 CEOF$ac_eof
16348 _ACEOF
16349
16350
16351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16357 s/:*\$(srcdir):*/:/
16358 s/:*\${srcdir}:*/:/
16359 s/:*@srcdir@:*/:/
16360 s/^\([^=]*=[     ]*\):*/\1/
16361 s/:*$//
16362 s/^[^=]*=[       ]*$//
16363 }'
16364 fi
16365
16366 cat >>$CONFIG_STATUS <<\_ACEOF
16367 fi # test -n "$CONFIG_FILES"
16368
16369
16370 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
16371 do
16372   case $ac_tag in
16373   :[FHLC]) ac_mode=$ac_tag; continue;;
16374   esac
16375   case $ac_mode$ac_tag in
16376   :[FHL]*:*);;
16377   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16378 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16379    { (exit 1); exit 1; }; };;
16380   :[FH]-) ac_tag=-:-;;
16381   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16382   esac
16383   ac_save_IFS=$IFS
16384   IFS=:
16385   set x $ac_tag
16386   IFS=$ac_save_IFS
16387   shift
16388   ac_file=$1
16389   shift
16390
16391   case $ac_mode in
16392   :L) ac_source=$1;;
16393   :[FH])
16394     ac_file_inputs=
16395     for ac_f
16396     do
16397       case $ac_f in
16398       -) ac_f="$tmp/stdin";;
16399       *) # Look for the file first in the build tree, then in the source tree
16400          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16401          # because $ac_f cannot contain `:'.
16402          test -f "$ac_f" ||
16403            case $ac_f in
16404            [\\/$]*) false;;
16405            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16406            esac ||
16407            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16408 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16409    { (exit 1); exit 1; }; };;
16410       esac
16411       ac_file_inputs="$ac_file_inputs $ac_f"
16412     done
16413
16414     # Let's still pretend it is `configure' which instantiates (i.e., don't
16415     # use $as_me), people would be surprised to read:
16416     #    /* config.h.  Generated by config.status.  */
16417     configure_input="Generated from "`IFS=:
16418           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16419     if test x"$ac_file" != x-; then
16420       configure_input="$ac_file.  $configure_input"
16421       { echo "$as_me:$LINENO: creating $ac_file" >&5
16422 echo "$as_me: creating $ac_file" >&6;}
16423     fi
16424
16425     case $ac_tag in
16426     *:-:* | *:-) cat >"$tmp/stdin";;
16427     esac
16428     ;;
16429   esac
16430
16431   ac_dir=`$as_dirname -- "$ac_file" ||
16432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16433          X"$ac_file" : 'X\(//\)[^/]' \| \
16434          X"$ac_file" : 'X\(//\)$' \| \
16435          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16436 echo X"$ac_file" |
16437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438             s//\1/
16439             q
16440           }
16441           /^X\(\/\/\)[^/].*/{
16442             s//\1/
16443             q
16444           }
16445           /^X\(\/\/\)$/{
16446             s//\1/
16447             q
16448           }
16449           /^X\(\/\).*/{
16450             s//\1/
16451             q
16452           }
16453           s/.*/./; q'`
16454   { as_dir="$ac_dir"
16455   case $as_dir in #(
16456   -*) as_dir=./$as_dir;;
16457   esac
16458   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16459     as_dirs=
16460     while :; do
16461       case $as_dir in #(
16462       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16463       *) as_qdir=$as_dir;;
16464       esac
16465       as_dirs="'$as_qdir' $as_dirs"
16466       as_dir=`$as_dirname -- "$as_dir" ||
16467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468          X"$as_dir" : 'X\(//\)[^/]' \| \
16469          X"$as_dir" : 'X\(//\)$' \| \
16470          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16471 echo X"$as_dir" |
16472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16473             s//\1/
16474             q
16475           }
16476           /^X\(\/\/\)[^/].*/{
16477             s//\1/
16478             q
16479           }
16480           /^X\(\/\/\)$/{
16481             s//\1/
16482             q
16483           }
16484           /^X\(\/\).*/{
16485             s//\1/
16486             q
16487           }
16488           s/.*/./; q'`
16489       test -d "$as_dir" && break
16490     done
16491     test -z "$as_dirs" || eval "mkdir $as_dirs"
16492   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16493 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16494    { (exit 1); exit 1; }; }; }
16495   ac_builddir=.
16496
16497 case "$ac_dir" in
16498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16499 *)
16500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16501   # A ".." for each directory in $ac_dir_suffix.
16502   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16503   case $ac_top_builddir_sub in
16504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16506   esac ;;
16507 esac
16508 ac_abs_top_builddir=$ac_pwd
16509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16510 # for backward compatibility:
16511 ac_top_builddir=$ac_top_build_prefix
16512
16513 case $srcdir in
16514   .)  # We are building in place.
16515     ac_srcdir=.
16516     ac_top_srcdir=$ac_top_builddir_sub
16517     ac_abs_top_srcdir=$ac_pwd ;;
16518   [\\/]* | ?:[\\/]* )  # Absolute name.
16519     ac_srcdir=$srcdir$ac_dir_suffix;
16520     ac_top_srcdir=$srcdir
16521     ac_abs_top_srcdir=$srcdir ;;
16522   *) # Relative name.
16523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16524     ac_top_srcdir=$ac_top_build_prefix$srcdir
16525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16526 esac
16527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16528
16529
16530   case $ac_mode in
16531   :F)
16532   #
16533   # CONFIG_FILE
16534   #
16535
16536   case $INSTALL in
16537   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16538   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16539   esac
16540 _ACEOF
16541
16542 cat >>$CONFIG_STATUS <<\_ACEOF
16543 # If the template does not know about datarootdir, expand it.
16544 # FIXME: This hack should be removed a few years after 2.60.
16545 ac_datarootdir_hack=; ac_datarootdir_seen=
16546
16547 case `sed -n '/datarootdir/ {
16548   p
16549   q
16550 }
16551 /@datadir@/p
16552 /@docdir@/p
16553 /@infodir@/p
16554 /@localedir@/p
16555 /@mandir@/p
16556 ' $ac_file_inputs` in
16557 *datarootdir*) ac_datarootdir_seen=yes;;
16558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16559   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16560 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16561 _ACEOF
16562 cat >>$CONFIG_STATUS <<_ACEOF
16563   ac_datarootdir_hack='
16564   s&@datadir@&$datadir&g
16565   s&@docdir@&$docdir&g
16566   s&@infodir@&$infodir&g
16567   s&@localedir@&$localedir&g
16568   s&@mandir@&$mandir&g
16569     s&\\\${datarootdir}&$datarootdir&g' ;;
16570 esac
16571 _ACEOF
16572
16573 # Neutralize VPATH when `$srcdir' = `.'.
16574 # Shell code in configure.ac might set extrasub.
16575 # FIXME: do we really want to maintain this feature?
16576 cat >>$CONFIG_STATUS <<_ACEOF
16577   sed "$ac_vpsub
16578 $extrasub
16579 _ACEOF
16580 cat >>$CONFIG_STATUS <<\_ACEOF
16581 :t
16582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16583 s&@configure_input@&$configure_input&;t t
16584 s&@top_builddir@&$ac_top_builddir_sub&;t t
16585 s&@srcdir@&$ac_srcdir&;t t
16586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587 s&@top_srcdir@&$ac_top_srcdir&;t t
16588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589 s&@builddir@&$ac_builddir&;t t
16590 s&@abs_builddir@&$ac_abs_builddir&;t t
16591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592 s&@INSTALL@&$ac_INSTALL&;t t
16593 $ac_datarootdir_hack
16594 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16595
16596 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16597   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16598   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16599   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16600 which seems to be undefined.  Please make sure it is defined." >&5
16601 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16602 which seems to be undefined.  Please make sure it is defined." >&2;}
16603
16604   rm -f "$tmp/stdin"
16605   case $ac_file in
16606   -) cat "$tmp/out"; rm -f "$tmp/out";;
16607   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16608   esac
16609  ;;
16610
16611
16612   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16613 echo "$as_me: executing $ac_file commands" >&6;}
16614  ;;
16615   esac
16616
16617
16618   case $ac_file$ac_mode in
16619     "default-1":C)
16620     for ac_file in $CONFIG_FILES; do
16621       # Support "outfile[:infile[:infile...]]"
16622       case "$ac_file" in
16623         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16624       esac
16625       # PO directories have a Makefile.in generated from Makefile.in.in.
16626       case "$ac_file" in */Makefile.in)
16627         # Adjust a relative srcdir.
16628         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16629         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16630         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16631         # In autoconf-2.13 it is called $ac_given_srcdir.
16632         # In autoconf-2.50 it is called $srcdir.
16633         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16634         case "$ac_given_srcdir" in
16635           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16636           /*) top_srcdir="$ac_given_srcdir" ;;
16637           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16638         esac
16639         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16640           rm -f "$ac_dir/POTFILES"
16641           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16642           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16643           POMAKEFILEDEPS="POTFILES.in"
16644           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16645           # on $ac_dir but don't depend on user-specified configuration
16646           # parameters.
16647           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16648             # The LINGUAS file contains the set of available languages.
16649             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16650               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16651             fi
16652             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16653             # Hide the ALL_LINGUAS assigment from automake.
16654             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16655             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16656           else
16657             # The set of available languages was given in configure.in.
16658             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16659           fi
16660           # Compute POFILES
16661           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16662           # Compute UPDATEPOFILES
16663           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16664           # Compute DUMMYPOFILES
16665           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16666           # Compute GMOFILES
16667           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16668           case "$ac_given_srcdir" in
16669             .) srcdirpre= ;;
16670             *) srcdirpre='$(srcdir)/' ;;
16671           esac
16672           POFILES=
16673           UPDATEPOFILES=
16674           DUMMYPOFILES=
16675           GMOFILES=
16676           for lang in $ALL_LINGUAS; do
16677             POFILES="$POFILES $srcdirpre$lang.po"
16678             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16679             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16680             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16681           done
16682           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16683           # environment variable.
16684           INST_LINGUAS=
16685           if test -n "$ALL_LINGUAS"; then
16686             for presentlang in $ALL_LINGUAS; do
16687               useit=no
16688               if test "%UNSET%" != "$LINGUAS"; then
16689                 desiredlanguages="$LINGUAS"
16690               else
16691                 desiredlanguages="$ALL_LINGUAS"
16692               fi
16693               for desiredlang in $desiredlanguages; do
16694                 # Use the presentlang catalog if desiredlang is
16695                 #   a. equal to presentlang, or
16696                 #   b. a variant of presentlang (because in this case,
16697                 #      presentlang can be used as a fallback for messages
16698                 #      which are not translated in the desiredlang catalog).
16699                 case "$desiredlang" in
16700                   "$presentlang"*) useit=yes;;
16701                 esac
16702               done
16703               if test $useit = yes; then
16704                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16705               fi
16706             done
16707           fi
16708           CATALOGS=
16709           if test -n "$INST_LINGUAS"; then
16710             for lang in $INST_LINGUAS; do
16711               CATALOGS="$CATALOGS $lang.gmo"
16712             done
16713           fi
16714           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16715           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"
16716           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16717             if test -f "$f"; then
16718               case "$f" in
16719                 *.orig | *.bak | *~) ;;
16720                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16721               esac
16722             fi
16723           done
16724         fi
16725         ;;
16726       esac
16727     done ;;
16728
16729   esac
16730 done # for ac_tag
16731
16732
16733 { (exit 0); exit 0; }
16734 _ACEOF
16735 chmod +x $CONFIG_STATUS
16736 ac_clean_files=$ac_clean_files_save
16737
16738
16739 # configure is writing to config.log, and then calls config.status.
16740 # config.status does its own redirection, appending to config.log.
16741 # Unfortunately, on DOS this fails, as config.log is still kept open
16742 # by configure, so config.status won't be able to write to it; its
16743 # output is simply discarded.  So we exec the FD to /dev/null,
16744 # effectively closing config.log, so it can be properly (re)opened and
16745 # appended to by config.status.  When coming back to configure, we
16746 # need to make the FD available again.
16747 if test "$no_create" != yes; then
16748   ac_cs_success=:
16749   ac_config_status_args=
16750   test "$silent" = yes &&
16751     ac_config_status_args="$ac_config_status_args --quiet"
16752   exec 5>/dev/null
16753   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16754   exec 5>>config.log
16755   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16756   # would make configure fail if this is the last instruction.
16757   $ac_cs_success || { (exit 1); exit 1; }
16758 fi
16759
16760 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16761