Whamcloud - gitweb
Merge branch 'tt/badblocks-cleanup' into next
[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 E2FSCK_TYPE
691 FSCK_PROG
692 FSCK_MAN
693 E2INITRD_PROG
694 E2INITRD_MAN
695 DEVMAPPER_REQ
696 DEVMAPPER_PC_LIBS
697 DEVMAPPER_LIBS
698 STATIC_DEVMAPPER_LIBS
699 GETTEXT_PACKAGE
700 PACKAGE
701 VERSION
702 SET_MAKE
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
706 MKINSTALLDIRS
707 USE_NLS
708 MSGFMT
709 GMSGFMT
710 XGETTEXT
711 MSGMERGE
712 RANLIB
713 ALLOCA
714 GLIBC21
715 HAVE_POSIX_PRINTF
716 HAVE_ASPRINTF
717 HAVE_SNPRINTF
718 HAVE_WPRINTF
719 LIBICONV
720 LTLIBICONV
721 INTLBISON
722 BUILD_INCLUDED_LIBINTL
723 USE_INCLUDED_LIBINTL
724 CATOBJEXT
725 DATADIRNAME
726 INSTOBJEXT
727 GENCAT
728 INTLOBJS
729 INTL_LIBTOOL_SUFFIX_PREFIX
730 INTLLIBS
731 LIBINTL
732 LTLIBINTL
733 POSUB
734 BINARY_TYPE
735 LN
736 LN_S
737 MV
738 CP
739 RM
740 CHMOD
741 AWK
742 SED
743 PERL
744 LDCONFIG
745 AR
746 STRIP
747 BUILD_CC
748 SIZEOF_SHORT
749 SIZEOF_INT
750 SIZEOF_LONG
751 SIZEOF_LONG_LONG
752 SOCKET_LIB
753 DLOPEN_LIB
754 UNI_DIFF_OPTS
755 LINUX_CMT
756 CYGWIN_CMT
757 UNIX_CMT
758 root_prefix
759 root_bindir
760 root_sbindir
761 root_libdir
762 root_sysconfdir
763 LDFLAG_STATIC
764 SS_DIR
765 ET_DIR
766 DO_TEST_SUITE
767 INTL_FLAGS
768 BUILD_CFLAGS
769 BUILD_LDFLAGS
770 LIBOBJS
771 LTLIBOBJS'
772 ac_subst_files='MCONFIG
773 MAKEFILE_ELF
774 MAKEFILE_BSDLIB
775 MAKEFILE_PROFILE
776 MAKEFILE_CHECKER
777 MAKEFILE_LIBRARY
778 ASM_TYPES_HEADER'
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *)    ac_optarg=yes ;;
850   esac
851
852   # Accept the important Cygnus configure options, so we can diagnose typos.
853
854   case $ac_dashdash$ac_option in
855   --)
856     ac_dashdash=yes ;;
857
858   -bindir | --bindir | --bindi | --bind | --bin | --bi)
859     ac_prev=bindir ;;
860   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861     bindir=$ac_optarg ;;
862
863   -build | --build | --buil | --bui | --bu)
864     ac_prev=build_alias ;;
865   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866     build_alias=$ac_optarg ;;
867
868   -cache-file | --cache-file | --cache-fil | --cache-fi \
869   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870     ac_prev=cache_file ;;
871   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873     cache_file=$ac_optarg ;;
874
875   --config-cache | -C)
876     cache_file=config.cache ;;
877
878   -datadir | --datadir | --datadi | --datad)
879     ac_prev=datadir ;;
880   -datadir=* | --datadir=* | --datadi=* | --datad=*)
881     datadir=$ac_optarg ;;
882
883   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884   | --dataroo | --dataro | --datar)
885     ac_prev=datarootdir ;;
886   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888     datarootdir=$ac_optarg ;;
889
890   -disable-* | --disable-*)
891     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895    { (exit 1); exit 1; }; }
896     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897     eval enable_$ac_feature=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914    { (exit 1); exit 1; }; }
915     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916     eval enable_$ac_feature=\$ac_optarg ;;
917
918   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920   | --exec | --exe | --ex)
921     ac_prev=exec_prefix ;;
922   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924   | --exec=* | --exe=* | --ex=*)
925     exec_prefix=$ac_optarg ;;
926
927   -gas | --gas | --ga | --g)
928     # Obsolete; use --with-gas.
929     with_gas=yes ;;
930
931   -help | --help | --hel | --he | -h)
932     ac_init_help=long ;;
933   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934     ac_init_help=recursive ;;
935   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936     ac_init_help=short ;;
937
938   -host | --host | --hos | --ho)
939     ac_prev=host_alias ;;
940   -host=* | --host=* | --hos=* | --ho=*)
941     host_alias=$ac_optarg ;;
942
943   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944     ac_prev=htmldir ;;
945   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946   | --ht=*)
947     htmldir=$ac_optarg ;;
948
949   -includedir | --includedir | --includedi | --included | --include \
950   | --includ | --inclu | --incl | --inc)
951     ac_prev=includedir ;;
952   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953   | --includ=* | --inclu=* | --incl=* | --inc=*)
954     includedir=$ac_optarg ;;
955
956   -infodir | --infodir | --infodi | --infod | --info | --inf)
957     ac_prev=infodir ;;
958   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959     infodir=$ac_optarg ;;
960
961   -libdir | --libdir | --libdi | --libd)
962     ac_prev=libdir ;;
963   -libdir=* | --libdir=* | --libdi=* | --libd=*)
964     libdir=$ac_optarg ;;
965
966   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967   | --libexe | --libex | --libe)
968     ac_prev=libexecdir ;;
969   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970   | --libexe=* | --libex=* | --libe=*)
971     libexecdir=$ac_optarg ;;
972
973   -localedir | --localedir | --localedi | --localed | --locale)
974     ac_prev=localedir ;;
975   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976     localedir=$ac_optarg ;;
977
978   -localstatedir | --localstatedir | --localstatedi | --localstated \
979   | --localstate | --localstat | --localsta | --localst | --locals)
980     ac_prev=localstatedir ;;
981   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983     localstatedir=$ac_optarg ;;
984
985   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986     ac_prev=mandir ;;
987   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988     mandir=$ac_optarg ;;
989
990   -nfp | --nfp | --nf)
991     # Obsolete; use --without-fp.
992     with_fp=no ;;
993
994   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995   | --no-cr | --no-c | -n)
996     no_create=yes ;;
997
998   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     no_recursion=yes ;;
1001
1002   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004   | --oldin | --oldi | --old | --ol | --o)
1005     ac_prev=oldincludedir ;;
1006   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009     oldincludedir=$ac_optarg ;;
1010
1011   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012     ac_prev=prefix ;;
1013   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014     prefix=$ac_optarg ;;
1015
1016   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017   | --program-pre | --program-pr | --program-p)
1018     ac_prev=program_prefix ;;
1019   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021     program_prefix=$ac_optarg ;;
1022
1023   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024   | --program-suf | --program-su | --program-s)
1025     ac_prev=program_suffix ;;
1026   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028     program_suffix=$ac_optarg ;;
1029
1030   -program-transform-name | --program-transform-name \
1031   | --program-transform-nam | --program-transform-na \
1032   | --program-transform-n | --program-transform- \
1033   | --program-transform | --program-transfor \
1034   | --program-transfo | --program-transf \
1035   | --program-trans | --program-tran \
1036   | --progr-tra | --program-tr | --program-t)
1037     ac_prev=program_transform_name ;;
1038   -program-transform-name=* | --program-transform-name=* \
1039   | --program-transform-nam=* | --program-transform-na=* \
1040   | --program-transform-n=* | --program-transform-=* \
1041   | --program-transform=* | --program-transfor=* \
1042   | --program-transfo=* | --program-transf=* \
1043   | --program-trans=* | --program-tran=* \
1044   | --progr-tra=* | --program-tr=* | --program-t=*)
1045     program_transform_name=$ac_optarg ;;
1046
1047   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048     ac_prev=pdfdir ;;
1049   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050     pdfdir=$ac_optarg ;;
1051
1052   -psdir | --psdir | --psdi | --psd | --ps)
1053     ac_prev=psdir ;;
1054   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055     psdir=$ac_optarg ;;
1056
1057   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058   | -silent | --silent | --silen | --sile | --sil)
1059     silent=yes ;;
1060
1061   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062     ac_prev=sbindir ;;
1063   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064   | --sbi=* | --sb=*)
1065     sbindir=$ac_optarg ;;
1066
1067   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069   | --sharedst | --shareds | --shared | --share | --shar \
1070   | --sha | --sh)
1071     ac_prev=sharedstatedir ;;
1072   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075   | --sha=* | --sh=*)
1076     sharedstatedir=$ac_optarg ;;
1077
1078   -site | --site | --sit)
1079     ac_prev=site ;;
1080   -site=* | --site=* | --sit=*)
1081     site=$ac_optarg ;;
1082
1083   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084     ac_prev=srcdir ;;
1085   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086     srcdir=$ac_optarg ;;
1087
1088   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089   | --syscon | --sysco | --sysc | --sys | --sy)
1090     ac_prev=sysconfdir ;;
1091   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093     sysconfdir=$ac_optarg ;;
1094
1095   -target | --target | --targe | --targ | --tar | --ta | --t)
1096     ac_prev=target_alias ;;
1097   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098     target_alias=$ac_optarg ;;
1099
1100   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101     verbose=yes ;;
1102
1103   -version | --version | --versio | --versi | --vers | -V)
1104     ac_init_version=: ;;
1105
1106   -with-* | --with-*)
1107     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110       { echo "$as_me: error: invalid package name: $ac_package" >&2
1111    { (exit 1); exit 1; }; }
1112     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113     eval with_$ac_package=\$ac_optarg ;;
1114
1115   -without-* | --without-*)
1116     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119       { echo "$as_me: error: invalid package name: $ac_package" >&2
1120    { (exit 1); exit 1; }; }
1121     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122     eval with_$ac_package=no ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129   | --x-incl | --x-inc | --x-in | --x-i)
1130     ac_prev=x_includes ;;
1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133     x_includes=$ac_optarg ;;
1134
1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137     ac_prev=x_libraries ;;
1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140     x_libraries=$ac_optarg ;;
1141
1142   -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144    { (exit 1); exit 1; }; }
1145     ;;
1146
1147   *=*)
1148     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152    { (exit 1); exit 1; }; }
1153     eval $ac_envvar=\$ac_optarg
1154     export $ac_envvar ;;
1155
1156   *)
1157     # FIXME: should be removed in autoconf 3.0.
1158     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162     ;;
1163
1164   esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169   { echo "$as_me: error: missing argument to $ac_option" >&2
1170    { (exit 1); exit 1; }; }
1171 fi
1172
1173 # Be sure to have absolute directory names.
1174 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175                 datadir sysconfdir sharedstatedir localstatedir includedir \
1176                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177                 libdir localedir mandir
1178 do
1179   eval ac_val=\$$ac_var
1180   case $ac_val in
1181     [\\/$]* | ?:[\\/]* )  continue;;
1182     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183   esac
1184   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185    { (exit 1); exit 1; }; }
1186 done
1187
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1194
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197   if test "x$build_alias" = x; then
1198     cross_compiling=maybe
1199     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200     If a cross compiler is detected then cross compile mode will be used." >&2
1201   elif test "x$build_alias" != "x$host_alias"; then
1202     cross_compiling=yes
1203   fi
1204 fi
1205
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208
1209 test "$silent" = yes && exec 6>/dev/null
1210
1211
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215   { echo "$as_me: error: Working directory cannot be determined" >&2
1216    { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218   { echo "$as_me: error: pwd does not report name of working directory" >&2
1219    { (exit 1); exit 1; }; }
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224   ac_srcdir_defaulted=yes
1225   # Try the directory containing this script, then the parent directory.
1226   ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228          X"$0" : 'X\(//\)[^/]' \| \
1229          X"$0" : 'X\(//\)$' \| \
1230          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1231 echo X"$0" |
1232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)[^/].*/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\).*/{
1245             s//\1/
1246             q
1247           }
1248           s/.*/./; q'`
1249   srcdir=$ac_confdir
1250   if test ! -r "$srcdir/$ac_unique_file"; then
1251     srcdir=..
1252   fi
1253 else
1254   ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259    { (exit 1); exit 1; }; }
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264    { (exit 1); exit 1; }; }
1265         pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268   srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278   eval ac_env_${ac_var}_value=\$${ac_var}
1279   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287   # Omit some internal or obsolete options to make the list less imposing.
1288   # This message is too long to be a string in the A/UX 3.1 sh.
1289   cat <<_ACEOF
1290 \`configure' configures this package to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE.  See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300   -h, --help              display this help and exit
1301       --help=short        display options specific to this package
1302       --help=recursive    display the short help of all the included packages
1303   -V, --version           display version information and exit
1304   -q, --quiet, --silent   do not print \`checking...' messages
1305       --cache-file=FILE   cache test results in FILE [disabled]
1306   -C, --config-cache      alias for \`--cache-file=config.cache'
1307   -n, --no-create         do not create output files
1308       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311   --prefix=PREFIX         install architecture-independent files in PREFIX
1312                           [$ac_default_prefix]
1313   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1314                           [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324   --bindir=DIR           user executables [EPREFIX/bin]
1325   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1326   --libexecdir=DIR       program executables [EPREFIX/libexec]
1327   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1328   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1329   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1330   --libdir=DIR           object code libraries [EPREFIX/lib]
1331   --includedir=DIR       C header files [PREFIX/include]
1332   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1333   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1334   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1335   --infodir=DIR          info documentation [DATAROOTDIR/info]
1336   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1337   --mandir=DIR           man documentation [DATAROOTDIR/man]
1338   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1339   --htmldir=DIR          html documentation [DOCDIR]
1340   --dvidir=DIR           dvi documentation [DOCDIR]
1341   --pdfdir=DIR           pdf documentation [DOCDIR]
1342   --psdir=DIR            ps documentation [DOCDIR]
1343 _ACEOF
1344
1345   cat <<\_ACEOF
1346
1347 System types:
1348   --build=BUILD     configure for building on BUILD [guessed]
1349   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354
1355   cat <<\_ACEOF
1356
1357 Optional Features:
1358   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1359   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1360   --enable-maintainer-mode enable makefile rules useful for maintainers
1361   --enable-compression    enable EXPERIMENTAL compression support
1362   --enable-htree          enable EXPERIMENTAL htree directory support
1363   --enable-elf-shlibs     select ELF shared libraries
1364   --enable-bsd-shlibs     select BSD shared libraries
1365   --enable-profile        build profiling libraries
1366   --enable-checker        build checker libraries
1367   --enable-jbd-debug      enable journal debugging
1368   --enable-blkid-debug    enable blkid debugging
1369   --enable-testio-debug   enable the use of the test I/O manager for debugging
1370   --disable-debugfs       disable support of debugfs program
1371   --disable-imager        disable support of e2image program
1372   --disable-resizer       disable support of e2resize program
1373   --enable-dynamic-e2fsck build e2fsck dynamically
1374   --enable-fsck           build fsck wrapper program
1375   --enable-e2initrd-helper build e2initrd-helper program
1376   --enable-blkid-devmapper  build with device-mapper support
1377   --disable-nls           do not use Native Language Support
1378   --disable-rpath         do not hardcode runtime library paths
1379
1380 Optional Packages:
1381   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383   --with-diet-libc      Use diet libc
1384   --with-cc=COMPILER      select compiler to use
1385   --with-linker=LINKER    select linker to use
1386   --with-ccopts=CCOPTS    select compiler command line options
1387   --with-ldopts=LDOPTS    select linker command line options
1388   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1389   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1390   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1391   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1392   --with-included-gettext use the GNU gettext library included here
1393   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1394   --without-libintl-prefix     don't search for libintl in includedir and libdir
1395
1396 Some influential environment variables:
1397   CC          C compiler command
1398   CFLAGS      C compiler flags
1399   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400               nonstandard directory <lib dir>
1401   LIBS        libraries to pass to the linker, e.g. -l<library>
1402   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403               you have headers in a nonstandard directory <include dir>
1404   CPP         C preprocessor
1405
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1408
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414   # If there are subdirs, report their specific --help.
1415   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416     test -d "$ac_dir" || continue
1417     ac_builddir=.
1418
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *)
1422   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1423   # A ".." for each directory in $ac_dir_suffix.
1424   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1425   case $ac_top_builddir_sub in
1426   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428   esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1434
1435 case $srcdir in
1436   .)  # We are building in place.
1437     ac_srcdir=.
1438     ac_top_srcdir=$ac_top_builddir_sub
1439     ac_abs_top_srcdir=$ac_pwd ;;
1440   [\\/]* | ?:[\\/]* )  # Absolute name.
1441     ac_srcdir=$srcdir$ac_dir_suffix;
1442     ac_top_srcdir=$srcdir
1443     ac_abs_top_srcdir=$srcdir ;;
1444   *) # Relative name.
1445     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446     ac_top_srcdir=$ac_top_build_prefix$srcdir
1447     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450
1451     cd "$ac_dir" || { ac_status=$?; continue; }
1452     # Check for guested configure.
1453     if test -f "$ac_srcdir/configure.gnu"; then
1454       echo &&
1455       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456     elif test -f "$ac_srcdir/configure"; then
1457       echo &&
1458       $SHELL "$ac_srcdir/configure" --help=recursive
1459     else
1460       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461     fi || ac_status=$?
1462     cd "$ac_pwd" || { ac_status=$?; break; }
1463   done
1464 fi
1465
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468   cat <<\_ACEOF
1469 configure
1470 generated by GNU Autoconf 2.61
1471
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477   exit
1478 fi
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1482
1483 It was created by $as_me, which was
1484 generated by GNU Autoconf 2.61.  Invocation command line was
1485
1486   $ $0 $@
1487
1488 _ACEOF
1489 exec 5>>config.log
1490 {
1491 cat <<_ASUNAME
1492 ## --------- ##
1493 ## Platform. ##
1494 ## --------- ##
1495
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1504
1505 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1506 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1509 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1510 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1511 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1512
1513 _ASUNAME
1514
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1517 do
1518   IFS=$as_save_IFS
1519   test -z "$as_dir" && as_dir=.
1520   echo "PATH: $as_dir"
1521 done
1522 IFS=$as_save_IFS
1523
1524 } >&5
1525
1526 cat >&5 <<_ACEOF
1527
1528
1529 ## ----------- ##
1530 ## Core tests. ##
1531 ## ----------- ##
1532
1533 _ACEOF
1534
1535
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1541 ac_configure_args=
1542 ac_configure_args0=
1543 ac_configure_args1=
1544 ac_must_keep_next=false
1545 for ac_pass in 1 2
1546 do
1547   for ac_arg
1548   do
1549     case $ac_arg in
1550     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552     | -silent | --silent | --silen | --sile | --sil)
1553       continue ;;
1554     *\'*)
1555       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556     esac
1557     case $ac_pass in
1558     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559     2)
1560       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561       if test $ac_must_keep_next = true; then
1562         ac_must_keep_next=false # Got value, back to normal.
1563       else
1564         case $ac_arg in
1565           *=* | --config-cache | -C | -disable-* | --disable-* \
1566           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568           | -with-* | --with-* | -without-* | --without-* | --x)
1569             case "$ac_configure_args0 " in
1570               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571             esac
1572             ;;
1573           -* ) ac_must_keep_next=true ;;
1574         esac
1575       fi
1576       ac_configure_args="$ac_configure_args '$ac_arg'"
1577       ;;
1578     esac
1579   done
1580 done
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log.  We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590   # Save into config.log some information that might help in debugging.
1591   {
1592     echo
1593
1594     cat <<\_ASBOX
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1598 _ASBOX
1599     echo
1600     # The following way of writing the cache mishandles newlines in values,
1601 (
1602   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603     eval ac_val=\$$ac_var
1604     case $ac_val in #(
1605     *${as_nl}*)
1606       case $ac_var in #(
1607       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1608 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1609       esac
1610       case $ac_var in #(
1611       _ | IFS | as_nl) ;; #(
1612       *) $as_unset $ac_var ;;
1613       esac ;;
1614     esac
1615   done
1616   (set) 2>&1 |
1617     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1618     *${as_nl}ac_space=\ *)
1619       sed -n \
1620         "s/'\''/'\''\\\\'\'''\''/g;
1621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622       ;; #(
1623     *)
1624       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1625       ;;
1626     esac |
1627     sort
1628 )
1629     echo
1630
1631     cat <<\_ASBOX
1632 ## ----------------- ##
1633 ## Output variables. ##
1634 ## ----------------- ##
1635 _ASBOX
1636     echo
1637     for ac_var in $ac_subst_vars
1638     do
1639       eval ac_val=\$$ac_var
1640       case $ac_val in
1641       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642       esac
1643       echo "$ac_var='\''$ac_val'\''"
1644     done | sort
1645     echo
1646
1647     if test -n "$ac_subst_files"; then
1648       cat <<\_ASBOX
1649 ## ------------------- ##
1650 ## File substitutions. ##
1651 ## ------------------- ##
1652 _ASBOX
1653       echo
1654       for ac_var in $ac_subst_files
1655       do
1656         eval ac_val=\$$ac_var
1657         case $ac_val in
1658         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659         esac
1660         echo "$ac_var='\''$ac_val'\''"
1661       done | sort
1662       echo
1663     fi
1664
1665     if test -s confdefs.h; then
1666       cat <<\_ASBOX
1667 ## ----------- ##
1668 ## confdefs.h. ##
1669 ## ----------- ##
1670 _ASBOX
1671       echo
1672       cat confdefs.h
1673       echo
1674     fi
1675     test "$ac_signal" != 0 &&
1676       echo "$as_me: caught signal $ac_signal"
1677     echo "$as_me: exit $exit_status"
1678   } >&5
1679   rm -f core *.core core.conftest.* &&
1680     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1681     exit $exit_status
1682 ' 0
1683 for ac_signal in 1 2 13 15; do
1684   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1685 done
1686 ac_signal=0
1687
1688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1689 rm -f -r conftest* confdefs.h
1690
1691 # Predefined preprocessor variables.
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_NAME "$PACKAGE_NAME"
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1700 _ACEOF
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_STRING "$PACKAGE_STRING"
1710 _ACEOF
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1715 _ACEOF
1716
1717
1718 # Let the site file select an alternate cache file if it wants to.
1719 # Prefer explicitly selected file to automatically selected ones.
1720 if test -n "$CONFIG_SITE"; then
1721   set x "$CONFIG_SITE"
1722 elif test "x$prefix" != xNONE; then
1723   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1724 else
1725   set x "$ac_default_prefix/share/config.site" \
1726         "$ac_default_prefix/etc/config.site"
1727 fi
1728 shift
1729 for ac_site_file
1730 do
1731   if test -r "$ac_site_file"; then
1732     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1733 echo "$as_me: loading site script $ac_site_file" >&6;}
1734     sed 's/^/| /' "$ac_site_file" >&5
1735     . "$ac_site_file"
1736   fi
1737 done
1738
1739 if test -r "$cache_file"; then
1740   # Some versions of bash will fail to source /dev/null (special
1741   # files actually), so we avoid doing that.
1742   if test -f "$cache_file"; then
1743     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1744 echo "$as_me: loading cache $cache_file" >&6;}
1745     case $cache_file in
1746       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1747       *)                      . "./$cache_file";;
1748     esac
1749   fi
1750 else
1751   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1752 echo "$as_me: creating cache $cache_file" >&6;}
1753   >$cache_file
1754 fi
1755
1756 # Check that the precious variables saved in the cache have kept the same
1757 # value.
1758 ac_cache_corrupted=false
1759 for ac_var in $ac_precious_vars; do
1760   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1761   eval ac_new_set=\$ac_env_${ac_var}_set
1762   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1763   eval ac_new_val=\$ac_env_${ac_var}_value
1764   case $ac_old_set,$ac_new_set in
1765     set,)
1766       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1768       ac_cache_corrupted=: ;;
1769     ,set)
1770       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1771 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1772       ac_cache_corrupted=: ;;
1773     ,);;
1774     *)
1775       if test "x$ac_old_val" != "x$ac_new_val"; then
1776         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1777 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1778         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1779 echo "$as_me:   former value:  $ac_old_val" >&2;}
1780         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1781 echo "$as_me:   current value: $ac_new_val" >&2;}
1782         ac_cache_corrupted=:
1783       fi;;
1784   esac
1785   # Pass precious variables to config.status.
1786   if test "$ac_new_set" = set; then
1787     case $ac_new_val in
1788     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1789     *) ac_arg=$ac_var=$ac_new_val ;;
1790     esac
1791     case " $ac_configure_args " in
1792       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1793       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1794     esac
1795   fi
1796 done
1797 if $ac_cache_corrupted; then
1798   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1799 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1800   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1801 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1802    { (exit 1); exit 1; }; }
1803 fi
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826
1827
1828
1829 ac_aux_dir=
1830 for ac_dir in config "$srcdir"/config; do
1831   if test -f "$ac_dir/install-sh"; then
1832     ac_aux_dir=$ac_dir
1833     ac_install_sh="$ac_aux_dir/install-sh -c"
1834     break
1835   elif test -f "$ac_dir/install.sh"; then
1836     ac_aux_dir=$ac_dir
1837     ac_install_sh="$ac_aux_dir/install.sh -c"
1838     break
1839   elif test -f "$ac_dir/shtool"; then
1840     ac_aux_dir=$ac_dir
1841     ac_install_sh="$ac_aux_dir/shtool install -c"
1842     break
1843   fi
1844 done
1845 if test -z "$ac_aux_dir"; then
1846   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1847 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851 # These three variables are undocumented and unsupported,
1852 # and are intended to be withdrawn in a future Autoconf release.
1853 # They can cause serious problems if a builder's source tree is in a directory
1854 # whose full name contains unusual characters.
1855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1857 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1858
1859
1860 MCONFIG=./MCONFIG
1861
1862 BINARY_TYPE=bin
1863 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
1864         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1865 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1866         | tr \" " "`
1867 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1868 MONTH=`echo $DATE | awk -F- '{print $2}'`
1869 YEAR=`echo $DATE | awk -F- '{print $3}'`
1870
1871 if expr $YEAR ">" 1900 > /dev/null ; then
1872         E2FSPROGS_YEAR=$YEAR
1873 elif expr $YEAR ">" 90 >/dev/null ; then
1874         E2FSPROGS_YEAR=19$YEAR
1875 else
1876         E2FSPROGS_YEAR=20$YEAR
1877 fi
1878
1879 case $MONTH in
1880 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1881 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1882 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1883 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1884 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1885 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1886 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1887 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1888 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1889 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1890 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1891 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1892 *)      echo "Unknown month $MONTH??" ;;
1893 esac
1894
1895 base_ver=`echo $E2FSPROGS_VERSION | \
1896                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1897 pre_vers=`echo $base_ver 0.01 - p | dc`
1898
1899 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1900
1901 case $E2FSPROGS_VERSION in
1902 *-WIP|pre-*)
1903         E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1904         ;;
1905 *)
1906         E2FSPROGS_PKGVER="$base_ver"
1907         ;;
1908 esac
1909
1910 unset DATE MONTH YEAR base_ver pre_vers date_spec
1911 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1912 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1913
1914
1915
1916
1917
1918 # Make sure we can run config.sub.
1919 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1922    { (exit 1); exit 1; }; }
1923
1924 { echo "$as_me:$LINENO: checking build system type" >&5
1925 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_build+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   ac_build_alias=$build_alias
1930 test "x$ac_build_alias" = x &&
1931   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932 test "x$ac_build_alias" = x &&
1933   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935    { (exit 1); exit 1; }; }
1936 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1939    { (exit 1); exit 1; }; }
1940
1941 fi
1942 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943 echo "${ECHO_T}$ac_cv_build" >&6; }
1944 case $ac_cv_build in
1945 *-*-*) ;;
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947 echo "$as_me: error: invalid value of canonical build" >&2;}
1948    { (exit 1); exit 1; }; };;
1949 esac
1950 build=$ac_cv_build
1951 ac_save_IFS=$IFS; IFS='-'
1952 set x $ac_cv_build
1953 shift
1954 build_cpu=$1
1955 build_vendor=$2
1956 shift; shift
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1959 build_os=$*
1960 IFS=$ac_save_IFS
1961 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1962
1963
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test "x$host_alias" = x; then
1970   ac_cv_host=$ac_cv_build
1971 else
1972   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978 fi
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1981 case $ac_cv_host in
1982 *-*-*) ;;
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985    { (exit 1); exit 1; }; };;
1986 esac
1987 host=$ac_cv_host
1988 ac_save_IFS=$IFS; IFS='-'
1989 set x $ac_cv_host
1990 shift
1991 host_cpu=$1
1992 host_vendor=$2
1993 shift; shift
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1996 host_os=$*
1997 IFS=$ac_save_IFS
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999
2000
2001
2002 # Check whether --with-diet-libc was given.
2003 if test "${with_diet_libc+set}" = set; then
2004   withval=$with_diet_libc; CC="diet cc -nostdinc"
2005 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2006 echo "${ECHO_T}CC=$CC" >&6; }
2007 fi
2008
2009 # Check whether --with-cc was given.
2010 if test "${with_cc+set}" = set; then
2011   withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2012 echo "${ECHO_T}CC=$withval" >&6; }
2013 CC=$withval
2014 else
2015   if test -z "$CC" ; then CC=cc; fi
2016 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2017 echo "${ECHO_T}CC defaults to $CC" >&6; }
2018 fi
2019 export CC
2020
2021 ac_ext=c
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026 if test -n "$ac_tool_prefix"; then
2027   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$CC"; then
2035   ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050 IFS=$as_save_IFS
2051
2052 fi
2053 fi
2054 CC=$ac_cv_prog_CC
2055 if test -n "$CC"; then
2056   { echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6; }
2058 else
2059   { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2061 fi
2062
2063
2064 fi
2065 if test -z "$ac_cv_prog_CC"; then
2066   ac_ct_CC=$CC
2067   # Extract the first word of "gcc", so it can be a program name with args.
2068 set dummy gcc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_CC"; then
2075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_ac_ct_CC="gcc"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103   if test "x$ac_ct_CC" = x; then
2104     CC=""
2105   else
2106     case $cross_compiling:$ac_tool_warned in
2107 yes:)
2108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109 whose name does not start with the host triplet.  If you think this
2110 configuration is useful to you, please write to autoconf@gnu.org." >&5
2111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet.  If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114 ac_tool_warned=yes ;;
2115 esac
2116     CC=$ac_ct_CC
2117   fi
2118 else
2119   CC="$ac_cv_prog_CC"
2120 fi
2121
2122 if test -z "$CC"; then
2123           if test -n "$ac_tool_prefix"; then
2124     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2125 set dummy ${ac_tool_prefix}cc; ac_word=$2
2126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   if test -n "$CC"; then
2132   ac_cv_prog_CC="$CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   for ac_exec_ext in '' $ac_executable_extensions; do
2140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141     ac_cv_prog_CC="${ac_tool_prefix}cc"
2142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143     break 2
2144   fi
2145 done
2146 done
2147 IFS=$as_save_IFS
2148
2149 fi
2150 fi
2151 CC=$ac_cv_prog_CC
2152 if test -n "$CC"; then
2153   { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2155 else
2156   { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2158 fi
2159
2160
2161   fi
2162 fi
2163 if test -z "$CC"; then
2164   # Extract the first word of "cc", so it can be a program name with args.
2165 set dummy cc; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test -n "$CC"; then
2172   ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174   ac_prog_rejected=no
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2183        ac_prog_rejected=yes
2184        continue
2185      fi
2186     ac_cv_prog_CC="cc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192 IFS=$as_save_IFS
2193
2194 if test $ac_prog_rejected = yes; then
2195   # We found a bogon in the path, so make sure we never use it.
2196   set dummy $ac_cv_prog_CC
2197   shift
2198   if test $# != 0; then
2199     # We chose a different compiler from the bogus one.
2200     # However, it has the same basename, so the bogon will be chosen
2201     # first if we set CC to just the basename; use the full file name.
2202     shift
2203     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2204   fi
2205 fi
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   { echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6; }
2212 else
2213   { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 fi
2216
2217
2218 fi
2219 if test -z "$CC"; then
2220   if test -n "$ac_tool_prefix"; then
2221   for ac_prog in cl.exe
2222   do
2223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   if test -n "$CC"; then
2231   ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236   IFS=$as_save_IFS
2237   test -z "$as_dir" && as_dir=.
2238   for ac_exec_ext in '' $ac_executable_extensions; do
2239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242     break 2
2243   fi
2244 done
2245 done
2246 IFS=$as_save_IFS
2247
2248 fi
2249 fi
2250 CC=$ac_cv_prog_CC
2251 if test -n "$CC"; then
2252   { echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6; }
2254 else
2255   { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2257 fi
2258
2259
2260     test -n "$CC" && break
2261   done
2262 fi
2263 if test -z "$CC"; then
2264   ac_ct_CC=$CC
2265   for ac_prog in cl.exe
2266 do
2267   # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$ac_ct_CC"; then
2275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284     ac_cv_prog_ac_ct_CC="$ac_prog"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6; }
2298 else
2299   { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2301 fi
2302
2303
2304   test -n "$ac_ct_CC" && break
2305 done
2306
2307   if test "x$ac_ct_CC" = x; then
2308     CC=""
2309   else
2310     case $cross_compiling:$ac_tool_warned in
2311 yes:)
2312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2313 whose name does not start with the host triplet.  If you think this
2314 configuration is useful to you, please write to autoconf@gnu.org." >&5
2315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2316 whose name does not start with the host triplet.  If you think this
2317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2318 ac_tool_warned=yes ;;
2319 esac
2320     CC=$ac_ct_CC
2321   fi
2322 fi
2323
2324 fi
2325
2326
2327 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332
2333 # Provide some information about the compiler.
2334 echo "$as_me:$LINENO: checking for C compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (ac_try="$ac_compiler --version >&5"
2337 case "(($ac_try" in
2338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339   *) ac_try_echo=$ac_try;;
2340 esac
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342   (eval "$ac_compiler --version >&5") 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }
2346 { (ac_try="$ac_compiler -v >&5"
2347 case "(($ac_try" in
2348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349   *) ac_try_echo=$ac_try;;
2350 esac
2351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2352   (eval "$ac_compiler -v >&5") 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }
2356 { (ac_try="$ac_compiler -V >&5"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362   (eval "$ac_compiler -V >&5") 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 int
2375 main ()
2376 {
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 ac_clean_files_save=$ac_clean_files
2383 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2384 # Try to create an executable without -o first, disregard a.out.
2385 # It will help us diagnose broken compilers, and finding out an intuition
2386 # of exeext.
2387 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2388 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2389 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2390 #
2391 # List of possible output files, starting from the most likely.
2392 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2393 # only as a last resort.  b.out is created by i960 compilers.
2394 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2395 #
2396 # The IRIX 6 linker writes into existing files which may not be
2397 # executable, retaining their permissions.  Remove them first so a
2398 # subsequent execution test works.
2399 ac_rmfiles=
2400 for ac_file in $ac_files
2401 do
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2405   esac
2406 done
2407 rm -f $ac_rmfiles
2408
2409 if { (ac_try="$ac_link_default"
2410 case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415   (eval "$ac_link_default") 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; then
2419   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2421 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2422 # so that the user can short-circuit this test for compilers unknown to
2423 # Autoconf.
2424 for ac_file in $ac_files ''
2425 do
2426   test -f "$ac_file" || continue
2427   case $ac_file in
2428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2429         ;;
2430     [ab].out )
2431         # We found the default executable, but exeext='' is most
2432         # certainly right.
2433         break;;
2434     *.* )
2435         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2436         then :; else
2437            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438         fi
2439         # We set ac_cv_exeext here because the later test for it is not
2440         # safe: cross compilers may not add the suffix if given an `-o'
2441         # argument, so we may need to know it at that point already.
2442         # Even if this section looks crufty: it has the advantage of
2443         # actually working.
2444         break;;
2445     * )
2446         break;;
2447   esac
2448 done
2449 test "$ac_cv_exeext" = no && ac_cv_exeext=
2450
2451 else
2452   ac_file=''
2453 fi
2454
2455 { echo "$as_me:$LINENO: result: $ac_file" >&5
2456 echo "${ECHO_T}$ac_file" >&6; }
2457 if test -z "$ac_file"; then
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&2;}
2465    { (exit 77); exit 77; }; }
2466 fi
2467
2468 ac_exeext=$ac_cv_exeext
2469
2470 # Check that the compiler produces executables we can run.  If not, either
2471 # the compiler is broken, or we cross compile.
2472 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2475 # If not cross compiling, check that we can run a simple program.
2476 if test "$cross_compiling" != yes; then
2477   if { ac_try='./$ac_file'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487     cross_compiling=no
2488   else
2489     if test "$cross_compiling" = maybe; then
2490         cross_compiling=yes
2491     else
2492         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2493 If you meant to cross compile, use \`--host'.
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: cannot run C compiled programs.
2496 If you meant to cross compile, use \`--host'.
2497 See \`config.log' for more details." >&2;}
2498    { (exit 1); exit 1; }; }
2499     fi
2500   fi
2501 fi
2502 { echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6; }
2504
2505 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2506 ac_clean_files=$ac_clean_files_save
2507 # Check that the compiler produces executables we can run.  If not, either
2508 # the compiler is broken, or we cross compile.
2509 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2510 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2511 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2512 echo "${ECHO_T}$cross_compiling" >&6; }
2513
2514 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2515 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2516 if { (ac_try="$ac_link"
2517 case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_link") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; then
2526   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2528 # work properly (i.e., refer to `conftest.exe'), while it won't with
2529 # `rm'.
2530 for ac_file in conftest.exe conftest conftest.*; do
2531   test -f "$ac_file" || continue
2532   case $ac_file in
2533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2534     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535           break;;
2536     * ) break;;
2537   esac
2538 done
2539 else
2540   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&2;}
2544    { (exit 1); exit 1; }; }
2545 fi
2546
2547 rm -f conftest$ac_cv_exeext
2548 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2549 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2550
2551 rm -f conftest.$ac_ext
2552 EXEEXT=$ac_cv_exeext
2553 ac_exeext=$EXEEXT
2554 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2555 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2556 if test "${ac_cv_objext+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.o conftest.obj
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; then
2585   for ac_file in conftest.o conftest.obj conftest.*; do
2586   test -f "$ac_file" || continue;
2587   case $ac_file in
2588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2589     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2590        break;;
2591   esac
2592 done
2593 else
2594   echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602 fi
2603
2604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2605 fi
2606 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2607 echo "${ECHO_T}$ac_cv_objext" >&6; }
2608 OBJEXT=$ac_cv_objext
2609 ac_objext=$OBJEXT
2610 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2611 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2612 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621
2622 int
2623 main ()
2624 {
2625 #ifndef __GNUC__
2626        choke me
2627 #endif
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_compile") 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } && {
2647          test -z "$ac_c_werror_flag" ||
2648          test ! -s conftest.err
2649        } && test -s conftest.$ac_objext; then
2650   ac_compiler_gnu=yes
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655         ac_compiler_gnu=no
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661 fi
2662 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_cc_g+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   ac_save_c_werror_flag=$ac_c_werror_flag
2673    ac_c_werror_flag=yes
2674    ac_cv_prog_cc_g=no
2675    CFLAGS="-g"
2676    cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compile") 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } && {
2705          test -z "$ac_c_werror_flag" ||
2706          test ! -s conftest.err
2707        } && test -s conftest.$ac_objext; then
2708   ac_cv_prog_cc_g=yes
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713         CFLAGS=""
2714       cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h.  */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h.  */
2720
2721 int
2722 main ()
2723 {
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } && {
2743          test -z "$ac_c_werror_flag" ||
2744          test ! -s conftest.err
2745        } && test -s conftest.$ac_objext; then
2746   :
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751         ac_c_werror_flag=$ac_save_c_werror_flag
2752          CFLAGS="-g"
2753          cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759
2760 int
2761 main ()
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775   (eval "$ac_compile") 2>conftest.er1
2776   ac_status=$?
2777   grep -v '^ *+' conftest.er1 >conftest.err
2778   rm -f conftest.er1
2779   cat conftest.err >&5
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); } && {
2782          test -z "$ac_c_werror_flag" ||
2783          test ! -s conftest.err
2784        } && test -s conftest.$ac_objext; then
2785   ac_cv_prog_cc_g=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790
2791 fi
2792
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 fi
2795
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800    ac_c_werror_flag=$ac_save_c_werror_flag
2801 fi
2802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2804 if test "$ac_test_CFLAGS" = set; then
2805   CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807   if test "$GCC" = yes; then
2808     CFLAGS="-g -O2"
2809   else
2810     CFLAGS="-g"
2811   fi
2812 else
2813   if test "$GCC" = yes; then
2814     CFLAGS="-O2"
2815   else
2816     CFLAGS=
2817   fi
2818 fi
2819 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2820 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_cc_c89+set}" = set; then
2822   echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824   ac_cv_prog_cc_c89=no
2825 ac_save_CC=$CC
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #include <stdarg.h>
2833 #include <stdio.h>
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2840      char **p;
2841      int i;
2842 {
2843   return p[i];
2844 }
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2846 {
2847   char *s;
2848   va_list v;
2849   va_start (v,p);
2850   s = g (p, va_arg (v,int));
2851   va_end (v);
2852   return s;
2853 }
2854
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2856    function prototypes and stuff, but not '\xHH' hex character constants.
2857    These don't provoke an error unfortunately, instead are silently treated
2858    as 'x'.  The following induces an error, until -std is added to get
2859    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2860    array size at least.  It's necessary to write '\x00'==0 to get something
2861    that's true only with -std.  */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
2864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2865    inside strings and character constants.  */
2866 #define FOO(x) 'x'
2867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2868
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 int argc;
2874 char **argv;
2875 int
2876 main ()
2877 {
2878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2884         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2885 do
2886   CC="$ac_save_CC $ac_arg"
2887   rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_compile") 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
2898   cat conftest.err >&5
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } && {
2901          test -z "$ac_c_werror_flag" ||
2902          test ! -s conftest.err
2903        } && test -s conftest.$ac_objext; then
2904   ac_cv_prog_cc_c89=$ac_arg
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext
2913   test "x$ac_cv_prog_cc_c89" != "xno" && break
2914 done
2915 rm -f conftest.$ac_ext
2916 CC=$ac_save_CC
2917
2918 fi
2919 # AC_CACHE_VAL
2920 case "x$ac_cv_prog_cc_c89" in
2921   x)
2922     { echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6; } ;;
2924   xno)
2925     { echo "$as_me:$LINENO: result: unsupported" >&5
2926 echo "${ECHO_T}unsupported" >&6; } ;;
2927   *)
2928     CC="$CC $ac_cv_prog_cc_c89"
2929     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2930 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2931 esac
2932
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2946 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2947 # On Suns, sometimes $CPP names a directory.
2948 if test -n "$CPP" && test -d "$CPP"; then
2949   CPP=
2950 fi
2951 if test -z "$CPP"; then
2952   if test "${ac_cv_prog_CPP+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955       # Double quotes because CPP needs to be expanded
2956     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2957     do
2958       ac_preproc_ok=false
2959 for ac_c_preproc_warn_flag in '' yes
2960 do
2961   # Use a header file that comes with gcc, so configuring glibc
2962   # with a fresh cross-compiler works.
2963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964   # <limits.h> exists even on freestanding compilers.
2965   # On the NeXT, cc -E runs the code through the compiler's parser,
2966   # not just through cpp. "Syntax error" is here to catch this case.
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973 #ifdef __STDC__
2974 # include <limits.h>
2975 #else
2976 # include <assert.h>
2977 #endif
2978                      Syntax error
2979 _ACEOF
2980 if { (ac_try="$ac_cpp conftest.$ac_ext"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null && {
2993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994          test ! -s conftest.err
2995        }; then
2996   :
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001   # Broken: fails on valid input.
3002 continue
3003 fi
3004
3005 rm -f conftest.err conftest.$ac_ext
3006
3007   # OK, works on sane cases.  Now check whether nonexistent headers
3008   # can be detected and how.
3009   cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <ac_nonexistent.h>
3016 _ACEOF
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null && {
3030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        }; then
3033   # Broken: success on invalid input.
3034 continue
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039   # Passes both tests.
3040 ac_preproc_ok=:
3041 break
3042 fi
3043
3044 rm -f conftest.err conftest.$ac_ext
3045
3046 done
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3050   break
3051 fi
3052
3053     done
3054     ac_cv_prog_CPP=$CPP
3055
3056 fi
3057   CPP=$ac_cv_prog_CPP
3058 else
3059   ac_cv_prog_CPP=$CPP
3060 fi
3061 { echo "$as_me:$LINENO: result: $CPP" >&5
3062 echo "${ECHO_T}$CPP" >&6; }
3063 ac_preproc_ok=false
3064 for ac_c_preproc_warn_flag in '' yes
3065 do
3066   # Use a header file that comes with gcc, so configuring glibc
3067   # with a fresh cross-compiler works.
3068   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069   # <limits.h> exists even on freestanding compilers.
3070   # On the NeXT, cc -E runs the code through the compiler's parser,
3071   # not just through cpp. "Syntax error" is here to catch this case.
3072   cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078 #ifdef __STDC__
3079 # include <limits.h>
3080 #else
3081 # include <assert.h>
3082 #endif
3083                      Syntax error
3084 _ACEOF
3085 if { (ac_try="$ac_cpp conftest.$ac_ext"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } >/dev/null && {
3098          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3099          test ! -s conftest.err
3100        }; then
3101   :
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106   # Broken: fails on valid input.
3107 continue
3108 fi
3109
3110 rm -f conftest.err conftest.$ac_ext
3111
3112   # OK, works on sane cases.  Now check whether nonexistent headers
3113   # can be detected and how.
3114   cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120 #include <ac_nonexistent.h>
3121 _ACEOF
3122 if { (ac_try="$ac_cpp conftest.$ac_ext"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } >/dev/null && {
3135          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136          test ! -s conftest.err
3137        }; then
3138   # Broken: success on invalid input.
3139 continue
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144   # Passes both tests.
3145 ac_preproc_ok=:
3146 break
3147 fi
3148
3149 rm -f conftest.err conftest.$ac_ext
3150
3151 done
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3155   :
3156 else
3157   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&2;}
3161    { (exit 1); exit 1; }; }
3162 fi
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
3171 # Check whether --with-linker was given.
3172 if test "${with_linker+set}" = set; then
3173   withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3174 echo "${ECHO_T}LD=$withval" >&6; }
3175 LD=$withval
3176 else
3177   if test -z "$LD" ; then LD=$CC; fi
3178 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3179 echo "${ECHO_T}LD defaults to $LD" >&6; }
3180 fi
3181 export LD
3182
3183
3184 # Check whether --with-ccopts was given.
3185 if test "${with_ccopts+set}" = set; then
3186   withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3187 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3188 CFLAGS=$withval
3189 fi
3190
3191
3192 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3193 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3194 if test "${ac_cv_path_GREP+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   # Extract the first word of "grep ggrep" to use in msg output
3198 if test -z "$GREP"; then
3199 set dummy grep ggrep; ac_prog_name=$2
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   ac_path_GREP_found=false
3204 # Loop through the user's path and test for each of PROGNAME-LIST
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210   for ac_prog in grep ggrep; do
3211   for ac_exec_ext in '' $ac_executable_extensions; do
3212     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3213     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3214     # Check for GNU ac_path_GREP and select it if it is found.
3215   # Check for GNU $ac_path_GREP
3216 case `"$ac_path_GREP" --version 2>&1` in
3217 *GNU*)
3218   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3219 *)
3220   ac_count=0
3221   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3222   while :
3223   do
3224     cat "conftest.in" "conftest.in" >"conftest.tmp"
3225     mv "conftest.tmp" "conftest.in"
3226     cp "conftest.in" "conftest.nl"
3227     echo 'GREP' >> "conftest.nl"
3228     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3230     ac_count=`expr $ac_count + 1`
3231     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3232       # Best one so far, save it but keep looking for a better one
3233       ac_cv_path_GREP="$ac_path_GREP"
3234       ac_path_GREP_max=$ac_count
3235     fi
3236     # 10*(2^10) chars as input seems more than enough
3237     test $ac_count -gt 10 && break
3238   done
3239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3240 esac
3241
3242
3243     $ac_path_GREP_found && break 3
3244   done
3245 done
3246
3247 done
3248 IFS=$as_save_IFS
3249
3250
3251 fi
3252
3253 GREP="$ac_cv_path_GREP"
3254 if test -z "$GREP"; then
3255   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3256 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 else
3261   ac_cv_path_GREP=$GREP
3262 fi
3263
3264
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3267 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3268  GREP="$ac_cv_path_GREP"
3269
3270
3271 { echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_EGREP+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3277    then ac_cv_path_EGREP="$GREP -E"
3278    else
3279      # Extract the first word of "egrep" to use in msg output
3280 if test -z "$EGREP"; then
3281 set dummy egrep; ac_prog_name=$2
3282 if test "${ac_cv_path_EGREP+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   ac_path_EGREP_found=false
3286 # Loop through the user's path and test for each of PROGNAME-LIST
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   for ac_prog in egrep; do
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3295     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3296     # Check for GNU ac_path_EGREP and select it if it is found.
3297   # Check for GNU $ac_path_EGREP
3298 case `"$ac_path_EGREP" --version 2>&1` in
3299 *GNU*)
3300   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3301 *)
3302   ac_count=0
3303   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3304   while :
3305   do
3306     cat "conftest.in" "conftest.in" >"conftest.tmp"
3307     mv "conftest.tmp" "conftest.in"
3308     cp "conftest.in" "conftest.nl"
3309     echo 'EGREP' >> "conftest.nl"
3310     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3312     ac_count=`expr $ac_count + 1`
3313     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3314       # Best one so far, save it but keep looking for a better one
3315       ac_cv_path_EGREP="$ac_path_EGREP"
3316       ac_path_EGREP_max=$ac_count
3317     fi
3318     # 10*(2^10) chars as input seems more than enough
3319     test $ac_count -gt 10 && break
3320   done
3321   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3322 esac
3323
3324
3325     $ac_path_EGREP_found && break 3
3326   done
3327 done
3328
3329 done
3330 IFS=$as_save_IFS
3331
3332
3333 fi
3334
3335 EGREP="$ac_cv_path_EGREP"
3336 if test -z "$EGREP"; then
3337   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339    { (exit 1); exit 1; }; }
3340 fi
3341
3342 else
3343   ac_cv_path_EGREP=$EGREP
3344 fi
3345
3346
3347    fi
3348 fi
3349 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3350 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3351  EGREP="$ac_cv_path_EGREP"
3352
3353
3354 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3356 if test "${ac_cv_header_stdc+set}" = set; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <stdlib.h>
3366 #include <stdarg.h>
3367 #include <string.h>
3368 #include <float.h>
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (ac_try="$ac_compile"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_compile") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } && {
3392          test -z "$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        } && test -s conftest.$ac_objext; then
3395   ac_cv_header_stdc=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400         ac_cv_header_stdc=no
3401 fi
3402
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404
3405 if test $ac_cv_header_stdc = yes; then
3406   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <string.h>
3414
3415 _ACEOF
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417   $EGREP "memchr" >/dev/null 2>&1; then
3418   :
3419 else
3420   ac_cv_header_stdc=no
3421 fi
3422 rm -f conftest*
3423
3424 fi
3425
3426 if test $ac_cv_header_stdc = yes; then
3427   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include <stdlib.h>
3435
3436 _ACEOF
3437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3438   $EGREP "free" >/dev/null 2>&1; then
3439   :
3440 else
3441   ac_cv_header_stdc=no
3442 fi
3443 rm -f conftest*
3444
3445 fi
3446
3447 if test $ac_cv_header_stdc = yes; then
3448   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3449   if test "$cross_compiling" = yes; then
3450   :
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 #include <ctype.h>
3459 #include <stdlib.h>
3460 #if ((' ' & 0x0FF) == 0x020)
3461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3463 #else
3464 # define ISLOWER(c) \
3465                    (('a' <= (c) && (c) <= 'i') \
3466                      || ('j' <= (c) && (c) <= 'r') \
3467                      || ('s' <= (c) && (c) <= 'z'))
3468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469 #endif
3470
3471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3472 int
3473 main ()
3474 {
3475   int i;
3476   for (i = 0; i < 256; i++)
3477     if (XOR (islower (i), ISLOWER (i))
3478         || toupper (i) != TOUPPER (i))
3479       return 2;
3480   return 0;
3481 }
3482 _ACEOF
3483 rm -f conftest$ac_exeext
3484 if { (ac_try="$ac_link"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490   (eval "$ac_link") 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3494   { (case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499   (eval "$ac_try") 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; }; then
3503   :
3504 else
3505   echo "$as_me: program exited with status $ac_status" >&5
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 ( exit $ac_status )
3510 ac_cv_header_stdc=no
3511 fi
3512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 fi
3514
3515
3516 fi
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3519 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3520 if test $ac_cv_header_stdc = yes; then
3521
3522 cat >>confdefs.h <<\_ACEOF
3523 #define STDC_HEADERS 1
3524 _ACEOF
3525
3526 fi
3527
3528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3539                   inttypes.h stdint.h unistd.h
3540 do
3541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h.  */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h.  */
3553 $ac_includes_default
3554
3555 #include <$ac_header>
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compile") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } && {
3571          test -z "$ac_c_werror_flag" ||
3572          test ! -s conftest.err
3573        } && test -s conftest.$ac_objext; then
3574   eval "$as_ac_Header=yes"
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579         eval "$as_ac_Header=no"
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584 ac_res=`eval echo '${'$as_ac_Header'}'`
3585                { echo "$as_me:$LINENO: result: $ac_res" >&5
3586 echo "${ECHO_T}$ac_res" >&6; }
3587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3588   cat >>confdefs.h <<_ACEOF
3589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590 _ACEOF
3591
3592 fi
3593
3594 done
3595
3596
3597 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3598   { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3599 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3600 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 fi
3603 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3604 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3605 else
3606   # Is the header compilable?
3607 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3608 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h.  */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h.  */
3615 $ac_includes_default
3616 #include <linux/fs.h>
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625   (eval "$ac_compile") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } && {
3632          test -z "$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        } && test -s conftest.$ac_objext; then
3635   ac_header_compiler=yes
3636 else
3637   echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         ac_header_compiler=no
3641 fi
3642
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3645 echo "${ECHO_T}$ac_header_compiler" >&6; }
3646
3647 # Is the header present?
3648 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3649 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <linux/fs.h>
3657 _ACEOF
3658 if { (ac_try="$ac_cpp conftest.$ac_ext"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } >/dev/null && {
3671          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        }; then
3674   ac_header_preproc=yes
3675 else
3676   echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679   ac_header_preproc=no
3680 fi
3681
3682 rm -f conftest.err conftest.$ac_ext
3683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3684 echo "${ECHO_T}$ac_header_preproc" >&6; }
3685
3686 # So?  What about this header?
3687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3688   yes:no: )
3689     { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3690 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3691     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3692 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3693     ac_header_preproc=yes
3694     ;;
3695   no:yes:* )
3696     { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3697 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3698     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&5
3699 echo "$as_me: WARNING: linux/fs.h:     check for missing prerequisite headers?" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3701 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3703 echo "$as_me: WARNING: linux/fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3705 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3707 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3708
3709     ;;
3710 esac
3711 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3712 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3713 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   ac_cv_header_linux_fs_h=$ac_header_preproc
3717 fi
3718 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3719 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3720
3721 fi
3722 if test $ac_cv_header_linux_fs_h = yes; then
3723   linux_headers=yes
3724 else
3725   linux_headers=no
3726 fi
3727
3728
3729 if test "$linux_headers" != yes; then
3730   LINUX_INCLUDE='-I$(top_builddir)/include'
3731 fi
3732
3733 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3734 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3735 if test "$GCC" = yes
3736 then
3737     case "$host_cpu" in
3738         alpha)          addcflags="-mieee" ;;
3739     esac
3740 fi
3741 if test "x$addcflags" != x
3742 then
3743     { echo "$as_me:$LINENO: result: $addcflags" >&5
3744 echo "${ECHO_T}$addcflags" >&6; }
3745     CFLAGS="$addcflags $CFLAGS"
3746 else
3747     { echo "$as_me:$LINENO: result: (none)" >&5
3748 echo "${ECHO_T}(none)" >&6; }
3749 fi
3750 LIB_EXT=.a
3751 STATIC_LIB_EXT=.a
3752 PROFILE_LIB_EXT=.a
3753
3754 # Check whether --with-ldopts was given.
3755 if test "${with_ldopts+set}" = set; then
3756   withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3757 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3758 LDFLAGS=$withval
3759 else
3760   LDFLAGS=
3761 fi
3762
3763
3764 # Check whether --with-root-prefix was given.
3765 if test "${with_root_prefix+set}" = set; then
3766   withval=$with_root_prefix; root_prefix=$withval
3767 else
3768   root_prefix=NONE
3769 fi
3770 # Check whether --enable-maintainer-mode was given.
3771 if test "${enable_maintainer_mode+set}" = set; then
3772   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3773 then
3774         MAINTAINER_CMT=#
3775         echo "Disabling maintainer mode"
3776 else
3777         MAINTAINER_CMT=
3778         echo "Enabling maintainer mode"
3779 fi
3780
3781 else
3782   MAINTAINER_CMT=#
3783 echo "Disabling maintainer mode by default"
3784
3785 fi
3786
3787
3788 # Check whether --enable-compression was given.
3789 if test "${enable_compression+set}" = set; then
3790   enableval=$enable_compression; if test "$enableval" = "no"
3791 then
3792         echo "Disabling compression support"
3793 else
3794         cat >>confdefs.h <<\_ACEOF
3795 #define ENABLE_COMPRESSION 1
3796 _ACEOF
3797
3798         echo "Enabling compression support"
3799         echo "WARNING: Compression support is experimental"
3800 fi
3801
3802 else
3803   echo "Disabling compression support by default"
3804
3805 fi
3806
3807 # Check whether --enable-htree was given.
3808 if test "${enable_htree+set}" = set; then
3809   enableval=$enable_htree; if test "$enableval" = "no"
3810 then
3811         HTREE_CMT=#
3812         echo "Disabling htree directory support"
3813 else
3814         HTREE_CMT=
3815         cat >>confdefs.h <<\_ACEOF
3816 #define ENABLE_HTREE 1
3817 _ACEOF
3818
3819         echo "Enabling htree directory support"
3820 fi
3821
3822 else
3823   HTREE_CMT=
3824 cat >>confdefs.h <<\_ACEOF
3825 #define ENABLE_HTREE 1
3826 _ACEOF
3827
3828 echo "Enabling htree directory support by default"
3829
3830 fi
3831
3832
3833 # Check whether --enable-elf-shlibs was given.
3834 if test "${enable_elf_shlibs+set}" = set; then
3835   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3836 then
3837         ELF_CMT=#
3838         MAKEFILE_ELF=/dev/null
3839         echo "Disabling ELF shared libraries"
3840 else
3841         ELF_CMT=
3842         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3843         case "$host_os" in
3844         solaris2.*)
3845                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3846         ;;
3847         esac
3848         BINARY_TYPE=elfbin
3849         LIB_EXT=.so
3850         echo "Enabling ELF shared libraries"
3851 fi
3852
3853 else
3854   MAKEFILE_ELF=/dev/null
3855 ELF_CMT=#
3856 echo "Disabling ELF shared libraries by default"
3857
3858 fi
3859
3860
3861
3862 # Check whether --enable-bsd-shlibs was given.
3863 if test "${enable_bsd_shlibs+set}" = set; then
3864   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3865 then
3866         BSDLIB_CMT=#
3867         MAKEFILE_BSDLIB=/dev/null
3868         echo "Disabling BSD shared libraries"
3869 else
3870         BSDLIB_CMT=
3871         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3872         LIB_EXT=.so
3873         case "$host_os" in
3874         darwin*)
3875                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3876                 LIB_EXT=.dylib
3877         ;;
3878         esac
3879         echo "Enabling BSD shared libraries"
3880 fi
3881
3882 else
3883   MAKEFILE_BSDLIB=/dev/null
3884 BSDLIB_CMT=#
3885 echo "Disabling BSD shared libraries by default"
3886
3887 fi
3888
3889
3890
3891 # Check whether --enable-profile was given.
3892 if test "${enable_profile+set}" = set; then
3893   enableval=$enable_profile; if test "$enableval" = "no"
3894 then
3895         PROFILE_CMT=#
3896         MAKEFILE_PROFILE=/dev/null
3897         echo "Disabling profiling libraries"
3898 else
3899         PROFILE_CMT=
3900         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3901         PROFILED_LIB_EXT=_p.a
3902         echo "Building profiling libraries"
3903 fi
3904
3905 else
3906   PROFILE_CMT=#
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries by default"
3909
3910 fi
3911
3912
3913
3914 # Check whether --enable-checker was given.
3915 if test "${enable_checker+set}" = set; then
3916   enableval=$enable_checker; if test "$enableval" = "no"
3917 then
3918         CHECKER_CMT=#
3919         MAKEFILE_CHECKER=/dev/null
3920         echo "Disabling checker libraries"
3921 else
3922         CHECKER_CMT=
3923         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3924         echo "Building checker libraries"
3925 fi
3926
3927 else
3928   CHECKER_CMT=#
3929 MAKEFILE_CHECKER=/dev/null
3930 echo "Disabling checker libraries by default"
3931
3932 fi
3933
3934
3935
3936
3937
3938
3939 # Check whether --enable-jbd-debug was given.
3940 if test "${enable_jbd_debug+set}" = set; then
3941   enableval=$enable_jbd_debug; if test "$enableval" = "no"
3942 then
3943         echo "Disabling journal debugging"
3944 else
3945         cat >>confdefs.h <<\_ACEOF
3946 #define CONFIG_JBD_DEBUG 1
3947 _ACEOF
3948
3949         echo "Enabling journal debugging"
3950 fi
3951
3952 else
3953   echo "Disabling journal debugging by default"
3954
3955 fi
3956
3957 # Check whether --enable-blkid-debug was given.
3958 if test "${enable_blkid_debug+set}" = set; then
3959   enableval=$enable_blkid_debug; if test "$enableval" = "no"
3960 then
3961         echo "Disabling blkid debugging"
3962 else
3963         cat >>confdefs.h <<\_ACEOF
3964 #define CONFIG_BLKID_DEBUG 1
3965 _ACEOF
3966
3967         echo "Enabling blkid debugging"
3968 fi
3969
3970 else
3971   echo "Disabling blkid debugging by default"
3972
3973 fi
3974
3975 # Check whether --enable-testio-debug was given.
3976 if test "${enable_testio_debug+set}" = set; then
3977   enableval=$enable_testio_debug; if test "$enableval" = "no"
3978 then
3979         echo "Disabling testio debugging"
3980 else
3981         cat >>confdefs.h <<\_ACEOF
3982 #define CONFIG_TESTIO_DEBUG 1
3983 _ACEOF
3984
3985         echo "Enabling testio debugging"
3986 fi
3987
3988 else
3989   echo "Disabling testio debugging by default"
3990
3991 fi
3992
3993 # Check whether --enable-debugfs was given.
3994 if test "${enable_debugfs+set}" = set; then
3995   enableval=$enable_debugfs; if test "$enableval" = "no"
3996 then
3997         echo "Disabling debugfs support"
3998         DEBUGFS_CMT="#"
3999 else
4000         DEBUGFS_CMT=
4001         echo "Enabling debugfs support"
4002 fi
4003
4004 else
4005   echo "Enabling debugfs support by default"
4006 DEBUGFS_CMT=
4007
4008 fi
4009
4010
4011 # Check whether --enable-imager was given.
4012 if test "${enable_imager+set}" = set; then
4013   enableval=$enable_imager; if test "$enableval" = "no"
4014 then
4015         echo "Disabling e2image support"
4016         IMAGER_CMT="#"
4017 else
4018         IMAGER_CMT=
4019         echo "Enabling e2image support"
4020 fi
4021
4022 else
4023   echo "Enabling e2image support by default"
4024 IMAGER_CMT=
4025
4026 fi
4027
4028
4029 # Check whether --enable-resizer was given.
4030 if test "${enable_resizer+set}" = set; then
4031   enableval=$enable_resizer; if test "$enableval" = "no"
4032 then
4033         echo "Disabling e2resize support"
4034         RESIZER_CMT="#"
4035 else
4036         RESIZER_CMT=
4037         echo "Enabling e2resize support"
4038 fi
4039
4040 else
4041   echo "Enabling e2resize support by default"
4042 RESIZER_CMT=
4043
4044 fi
4045
4046
4047 # Check whether --enable-dynamic-e2fsck was given.
4048 if test "${enable_dynamic_e2fsck+set}" = set; then
4049   enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4050 then
4051         E2FSCK_TYPE=static
4052         echo "Building e2fsck statically"
4053 else
4054         E2FSCK_TYPE=shared
4055         echo "Building e2fsck dynamically"
4056 fi
4057
4058 else
4059   E2FSCK_TYPE=static
4060 echo "Building e2fsck statically by default"
4061
4062 fi
4063
4064
4065 # Check whether --enable-fsck was given.
4066 if test "${enable_fsck+set}" = set; then
4067   enableval=$enable_fsck; if test "$enableval" = "no"
4068 then
4069         FSCK_PROG='' FSCK_MAN=''
4070         echo "Not building fsck wrapper"
4071 else
4072         FSCK_PROG=fsck FSCK_MAN=fsck.8
4073         echo "Building fsck wrapper"
4074 fi
4075
4076 else
4077   case "$host_os" in
4078   gnu*)
4079     FSCK_PROG='' FSCK_MAN=''
4080     echo "Not building fsck wrapper by default"
4081     ;;
4082   *)
4083     FSCK_PROG=fsck FSCK_MAN=fsck.8
4084     echo "Building fsck wrapper by default"
4085 esac
4086
4087 fi
4088
4089
4090
4091 # Check whether --enable-e2initrd-helper was given.
4092 if test "${enable_e2initrd_helper+set}" = set; then
4093   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4094 then
4095         E2INITRD_PROG='' E2INITRD_MAN=''
4096         echo "Not building e2initrd helper"
4097 else
4098         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4099         echo "Building e2initrd helper"
4100 fi
4101
4102 else
4103   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4104 echo "Building e2initrd helper by default"
4105
4106 fi
4107
4108
4109
4110 # Check whether --enable-blkid-devmapper was given.
4111 if test "${enable_blkid_devmapper+set}" = set; then
4112   enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4113 then
4114         echo "Disabling device-mapper support"
4115         DEVMAPPER_REQ=''
4116         DEVMAPPER_LIBS=''
4117         STATIC_DEVMAPPER_LIBS=''
4118 else
4119         cat >>confdefs.h <<\_ACEOF
4120 #define HAVE_DEVMAPPER 1
4121 _ACEOF
4122
4123         echo "Enabling device-mapper support"
4124
4125         DEVMAPPER_REQ='libselinux libsepol'
4126         DEVMAPPER_PC_LIBS='-ldevmapper'
4127         DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4128         STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4129
4130 fi
4131
4132 else
4133   echo "Disabling device-mapper support by default"
4134
4135 fi
4136
4137
4138
4139
4140
4141 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4142
4143 GETTEXT_PACKAGE=e2fsprogs
4144 PACKAGE=e2fsprogs
4145 VERSION="$E2FSPROGS_VERSION"
4146 VERSION=0.14.1
4147 cat >>confdefs.h <<_ACEOF
4148 #define PACKAGE "$PACKAGE"
4149 _ACEOF
4150
4151 cat >>confdefs.h <<_ACEOF
4152 #define VERSION "$VERSION"
4153 _ACEOF
4154
4155
4156
4157
4158
4159 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4160 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4161 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4162 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   cat >conftest.make <<\_ACEOF
4166 SHELL = /bin/sh
4167 all:
4168         @echo '@@@%%%=$(MAKE)=@@@%%%'
4169 _ACEOF
4170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4172   *@@@%%%=?*=@@@%%%*)
4173     eval ac_cv_prog_make_${ac_make}_set=yes;;
4174   *)
4175     eval ac_cv_prog_make_${ac_make}_set=no;;
4176 esac
4177 rm -f conftest.make
4178 fi
4179 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4180   { echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6; }
4182   SET_MAKE=
4183 else
4184   { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4186   SET_MAKE="MAKE=${MAKE-make}"
4187 fi
4188
4189 # Find a good install program.  We prefer a C program (faster),
4190 # so one script is as good as another.  But avoid the broken or
4191 # incompatible versions:
4192 # SysV /etc/install, /usr/sbin/install
4193 # SunOS /usr/etc/install
4194 # IRIX /sbin/install
4195 # AIX /bin/install
4196 # AmigaOS /C/install, which installs bootblocks on floppy discs
4197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4200 # OS/2's system install, which has a completely different semantic
4201 # ./install, which can be erroneously created by make from ./install.sh.
4202 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4204 if test -z "$INSTALL"; then
4205 if test "${ac_cv_path_install+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213   # Account for people who put trailing slashes in PATH elements.
4214 case $as_dir/ in
4215   ./ | .// | /cC/* | \
4216   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4218   /usr/ucb/* ) ;;
4219   *)
4220     # OSF1 and SCO ODT 3.0 have their own names for install.
4221     # Don't use installbsd from OSF since it installs stuff as root
4222     # by default.
4223     for ac_prog in ginstall scoinst install; do
4224       for ac_exec_ext in '' $ac_executable_extensions; do
4225         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4226           if test $ac_prog = install &&
4227             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228             # AIX install.  It has an incompatible calling convention.
4229             :
4230           elif test $ac_prog = install &&
4231             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232             # program-specific install script used by HP pwplus--don't use.
4233             :
4234           else
4235             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4236             break 3
4237           fi
4238         fi
4239       done
4240     done
4241     ;;
4242 esac
4243 done
4244 IFS=$as_save_IFS
4245
4246
4247 fi
4248   if test "${ac_cv_path_install+set}" = set; then
4249     INSTALL=$ac_cv_path_install
4250   else
4251     # As a last resort, use the slow shell script.  Don't cache a
4252     # value for INSTALL within a source directory, because that will
4253     # break other packages using the cache if that directory is
4254     # removed, or if the value is a relative name.
4255     INSTALL=$ac_install_sh
4256   fi
4257 fi
4258 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4259 echo "${ECHO_T}$INSTALL" >&6; }
4260
4261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4262 # It thinks the first close brace ends the variable substitution.
4263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4264
4265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4266
4267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4268
4269
4270         MKINSTALLDIRS=
4271   if test -n "$ac_aux_dir"; then
4272     case "$ac_aux_dir" in
4273       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4274       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4275     esac
4276   fi
4277   if test -z "$MKINSTALLDIRS"; then
4278     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4279   fi
4280
4281
4282
4283   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4284 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4285     # Check whether --enable-nls was given.
4286 if test "${enable_nls+set}" = set; then
4287   enableval=$enable_nls; USE_NLS=$enableval
4288 else
4289   USE_NLS=yes
4290 fi
4291
4292   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4293 echo "${ECHO_T}$USE_NLS" >&6; }
4294
4295
4296
4297
4298
4299
4300 # Prepare PATH_SEPARATOR.
4301 # The user is always right.
4302 if test "${PATH_SEPARATOR+set}" != set; then
4303   echo "#! /bin/sh" >conf$$.sh
4304   echo  "exit 0"   >>conf$$.sh
4305   chmod +x conf$$.sh
4306   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4307     PATH_SEPARATOR=';'
4308   else
4309     PATH_SEPARATOR=:
4310   fi
4311   rm -f conf$$.sh
4312 fi
4313
4314 # Find out how to test for executable files. Don't use a zero-byte file,
4315 # as systems may use methods other than mode bits to determine executability.
4316 cat >conf$$.file <<_ASEOF
4317 #! /bin/sh
4318 exit 0
4319 _ASEOF
4320 chmod +x conf$$.file
4321 if test -x conf$$.file >/dev/null 2>&1; then
4322   ac_executable_p="test -x"
4323 else
4324   ac_executable_p="test -f"
4325 fi
4326 rm -f conf$$.file
4327
4328 # Extract the first word of "msgfmt", so it can be a program name with args.
4329 set dummy msgfmt; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_MSGFMT+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   case "$MSGFMT" in
4336   [\\/]* | ?:[\\/]*)
4337     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4338     ;;
4339   *)
4340     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4341     for ac_dir in $PATH; do
4342       IFS="$ac_save_IFS"
4343       test -z "$ac_dir" && ac_dir=.
4344       for ac_exec_ext in '' $ac_executable_extensions; do
4345         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4346           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4347      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4348             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4349             break 2
4350           fi
4351         fi
4352       done
4353     done
4354     IFS="$ac_save_IFS"
4355   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4356     ;;
4357 esac
4358 fi
4359 MSGFMT="$ac_cv_path_MSGFMT"
4360 if test "$MSGFMT" != ":"; then
4361   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4362 echo "${ECHO_T}$MSGFMT" >&6; }
4363 else
4364   { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4366 fi
4367
4368   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4369 set dummy gmsgfmt; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   case $GMSGFMT in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4396   ;;
4397 esac
4398 fi
4399 GMSGFMT=$ac_cv_path_GMSGFMT
4400 if test -n "$GMSGFMT"; then
4401   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4402 echo "${ECHO_T}$GMSGFMT" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409
4410
4411 # Prepare PATH_SEPARATOR.
4412 # The user is always right.
4413 if test "${PATH_SEPARATOR+set}" != set; then
4414   echo "#! /bin/sh" >conf$$.sh
4415   echo  "exit 0"   >>conf$$.sh
4416   chmod +x conf$$.sh
4417   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4418     PATH_SEPARATOR=';'
4419   else
4420     PATH_SEPARATOR=:
4421   fi
4422   rm -f conf$$.sh
4423 fi
4424
4425 # Find out how to test for executable files. Don't use a zero-byte file,
4426 # as systems may use methods other than mode bits to determine executability.
4427 cat >conf$$.file <<_ASEOF
4428 #! /bin/sh
4429 exit 0
4430 _ASEOF
4431 chmod +x conf$$.file
4432 if test -x conf$$.file >/dev/null 2>&1; then
4433   ac_executable_p="test -x"
4434 else
4435   ac_executable_p="test -f"
4436 fi
4437 rm -f conf$$.file
4438
4439 # Extract the first word of "xgettext", so it can be a program name with args.
4440 set dummy xgettext; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   case "$XGETTEXT" in
4447   [\\/]* | ?:[\\/]*)
4448     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4449     ;;
4450   *)
4451     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4452     for ac_dir in $PATH; do
4453       IFS="$ac_save_IFS"
4454       test -z "$ac_dir" && ac_dir=.
4455       for ac_exec_ext in '' $ac_executable_extensions; do
4456         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4457           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4458      (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
4459             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4460             break 2
4461           fi
4462         fi
4463       done
4464     done
4465     IFS="$ac_save_IFS"
4466   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4467     ;;
4468 esac
4469 fi
4470 XGETTEXT="$ac_cv_path_XGETTEXT"
4471 if test "$XGETTEXT" != ":"; then
4472   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4473 echo "${ECHO_T}$XGETTEXT" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479     rm -f messages.po
4480
4481
4482 # Prepare PATH_SEPARATOR.
4483 # The user is always right.
4484 if test "${PATH_SEPARATOR+set}" != set; then
4485   echo "#! /bin/sh" >conf$$.sh
4486   echo  "exit 0"   >>conf$$.sh
4487   chmod +x conf$$.sh
4488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4489     PATH_SEPARATOR=';'
4490   else
4491     PATH_SEPARATOR=:
4492   fi
4493   rm -f conf$$.sh
4494 fi
4495
4496 # Find out how to test for executable files. Don't use a zero-byte file,
4497 # as systems may use methods other than mode bits to determine executability.
4498 cat >conf$$.file <<_ASEOF
4499 #! /bin/sh
4500 exit 0
4501 _ASEOF
4502 chmod +x conf$$.file
4503 if test -x conf$$.file >/dev/null 2>&1; then
4504   ac_executable_p="test -x"
4505 else
4506   ac_executable_p="test -f"
4507 fi
4508 rm -f conf$$.file
4509
4510 # Extract the first word of "msgmerge", so it can be a program name with args.
4511 set dummy msgmerge; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case "$MSGMERGE" in
4518   [\\/]* | ?:[\\/]*)
4519     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4520     ;;
4521   *)
4522     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4523     for ac_dir in $PATH; do
4524       IFS="$ac_save_IFS"
4525       test -z "$ac_dir" && ac_dir=.
4526       for ac_exec_ext in '' $ac_executable_extensions; do
4527         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4528           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4529             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4530             break 2
4531           fi
4532         fi
4533       done
4534     done
4535     IFS="$ac_save_IFS"
4536   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4537     ;;
4538 esac
4539 fi
4540 MSGMERGE="$ac_cv_path_MSGMERGE"
4541 if test "$MSGMERGE" != ":"; then
4542   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4543 echo "${ECHO_T}$MSGMERGE" >&6; }
4544 else
4545   { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548
4549
4550       if test "$GMSGFMT" != ":"; then
4551             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4552        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4553       : ;
4554     else
4555       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4556       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4557 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4558       GMSGFMT=":"
4559     fi
4560   fi
4561
4562       if test "$XGETTEXT" != ":"; then
4563             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4564        (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
4565       : ;
4566     else
4567       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4568 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4569       XGETTEXT=":"
4570     fi
4571         rm -f messages.po
4572   fi
4573
4574   ac_config_commands="$ac_config_commands default-1"
4575
4576
4577 if test -n "$ac_tool_prefix"; then
4578   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4582 if test "${ac_cv_prog_RANLIB+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   if test -n "$RANLIB"; then
4586   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 RANLIB=$ac_cv_prog_RANLIB
4606 if test -n "$RANLIB"; then
4607   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4608 echo "${ECHO_T}$RANLIB" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 fi
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617   ac_ct_RANLIB=$RANLIB
4618   # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$ac_ct_RANLIB"; then
4626   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_ac_ct_RANLIB="ranlib"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654   if test "x$ac_ct_RANLIB" = x; then
4655     RANLIB=":"
4656   else
4657     case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet.  If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&5
4662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663 whose name does not start with the host triplet.  If you think this
4664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667     RANLIB=$ac_ct_RANLIB
4668   fi
4669 else
4670   RANLIB="$ac_cv_prog_RANLIB"
4671 fi
4672
4673
4674         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4675 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4676 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   ac_check_lib_save_LIBS=$LIBS
4680 LIBS="-lcposix  $LIBS"
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687
4688 /* Override any GCC internal prototype to avoid an error.
4689    Use char because int might match the return type of a GCC
4690    builtin and then its argument prototype would still apply.  */
4691 #ifdef __cplusplus
4692 extern "C"
4693 #endif
4694 char strerror ();
4695 int
4696 main ()
4697 {
4698 return strerror ();
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext conftest$ac_exeext
4704 if { (ac_try="$ac_link"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710   (eval "$ac_link") 2>conftest.er1
4711   ac_status=$?
4712   grep -v '^ *+' conftest.er1 >conftest.err
4713   rm -f conftest.er1
4714   cat conftest.err >&5
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } && {
4717          test -z "$ac_c_werror_flag" ||
4718          test ! -s conftest.err
4719        } && test -s conftest$ac_exeext &&
4720        $as_test_x conftest$ac_exeext; then
4721   ac_cv_lib_cposix_strerror=yes
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726         ac_cv_lib_cposix_strerror=no
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4730       conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4732 fi
4733 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4734 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4735 if test $ac_cv_lib_cposix_strerror = yes; then
4736   LIBS="$LIBS -lcposix"
4737 fi
4738
4739
4740
4741 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4743 if test "${ac_cv_c_const+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756 /* FIXME: Include the comments suggested by Paul. */
4757 #ifndef __cplusplus
4758   /* Ultrix mips cc rejects this.  */
4759   typedef int charset[2];
4760   const charset cs;
4761   /* SunOS 4.1.1 cc rejects this.  */
4762   char const *const *pcpcc;
4763   char **ppc;
4764   /* NEC SVR4.0.2 mips cc rejects this.  */
4765   struct point {int x, y;};
4766   static struct point const zero = {0,0};
4767   /* AIX XL C 1.02.0.0 rejects this.
4768      It does not let you subtract one const X* pointer from another in
4769      an arm of an if-expression whose if-part is not a constant
4770      expression */
4771   const char *g = "string";
4772   pcpcc = &g + (g ? g-g : 0);
4773   /* HPUX 7.0 cc rejects these. */
4774   ++pcpcc;
4775   ppc = (char**) pcpcc;
4776   pcpcc = (char const *const *) ppc;
4777   { /* SCO 3.2v4 cc rejects this.  */
4778     char *t;
4779     char const *s = 0 ? (char *) 0 : (char const *) 0;
4780
4781     *t++ = 0;
4782     if (s) return 0;
4783   }
4784   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4785     int x[] = {25, 17};
4786     const int *foo = &x[0];
4787     ++foo;
4788   }
4789   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4790     typedef const int *iptr;
4791     iptr p = 0;
4792     ++p;
4793   }
4794   { /* AIX XL C 1.02.0.0 rejects this saying
4795        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4796     struct s { int j; const int *ap[3]; };
4797     struct s *b; b->j = 5;
4798   }
4799   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4800     const int foo = 10;
4801     if (!foo) return 0;
4802   }
4803   return !cs[0] && !zero.x;
4804 #endif
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (ac_try="$ac_compile"
4812 case "(($ac_try" in
4813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814   *) ac_try_echo=$ac_try;;
4815 esac
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817   (eval "$ac_compile") 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } && {
4824          test -z "$ac_c_werror_flag" ||
4825          test ! -s conftest.err
4826        } && test -s conftest.$ac_objext; then
4827   ac_cv_c_const=yes
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832         ac_cv_c_const=no
4833 fi
4834
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 fi
4837 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4838 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4839 if test $ac_cv_c_const = no; then
4840
4841 cat >>confdefs.h <<\_ACEOF
4842 #define const
4843 _ACEOF
4844
4845 fi
4846
4847
4848   { echo "$as_me:$LINENO: checking for signed" >&5
4849 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4850 if test "${bh_cv_c_signed+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859
4860 int
4861 main ()
4862 {
4863 signed char x;
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4870 case "(($ac_try" in
4871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872   *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875   (eval "$ac_compile") 2>conftest.er1
4876   ac_status=$?
4877   grep -v '^ *+' conftest.er1 >conftest.err
4878   rm -f conftest.er1
4879   cat conftest.err >&5
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } && {
4882          test -z "$ac_c_werror_flag" ||
4883          test ! -s conftest.err
4884        } && test -s conftest.$ac_objext; then
4885   bh_cv_c_signed=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890         bh_cv_c_signed=no
4891 fi
4892
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4896 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4897   if test $bh_cv_c_signed = no; then
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define signed
4901 _ACEOF
4902
4903   fi
4904
4905 { echo "$as_me:$LINENO: checking for inline" >&5
4906 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4907 if test "${ac_cv_c_inline+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   ac_cv_c_inline=no
4911 for ac_kw in inline __inline__ __inline; do
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 #ifndef __cplusplus
4919 typedef int foo_t;
4920 static $ac_kw foo_t static_foo () {return 0; }
4921 $ac_kw foo_t foo () {return 0; }
4922 #endif
4923
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_compile") 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } && {
4939          test -z "$ac_c_werror_flag" ||
4940          test ! -s conftest.err
4941        } && test -s conftest.$ac_objext; then
4942   ac_cv_c_inline=$ac_kw
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951   test "$ac_cv_c_inline" != no && break
4952 done
4953
4954 fi
4955 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4956 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4957
4958
4959 case $ac_cv_c_inline in
4960   inline | yes) ;;
4961   *)
4962     case $ac_cv_c_inline in
4963       no) ac_val=;;
4964       *) ac_val=$ac_cv_c_inline;;
4965     esac
4966     cat >>confdefs.h <<_ACEOF
4967 #ifndef __cplusplus
4968 #define inline $ac_val
4969 #endif
4970 _ACEOF
4971     ;;
4972 esac
4973
4974 { echo "$as_me:$LINENO: checking for off_t" >&5
4975 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4976 if test "${ac_cv_type_off_t+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 $ac_includes_default
4986 typedef off_t ac__type_new_;
4987 int
4988 main ()
4989 {
4990 if ((ac__type_new_ *) 0)
4991   return 0;
4992 if (sizeof (ac__type_new_))
4993   return 0;
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5000 case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005   (eval "$ac_compile") 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } && {
5012          test -z "$ac_c_werror_flag" ||
5013          test ! -s conftest.err
5014        } && test -s conftest.$ac_objext; then
5015   ac_cv_type_off_t=yes
5016 else
5017   echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020         ac_cv_type_off_t=no
5021 fi
5022
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 fi
5025 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5026 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5027 if test $ac_cv_type_off_t = yes; then
5028   :
5029 else
5030
5031 cat >>confdefs.h <<_ACEOF
5032 #define off_t long int
5033 _ACEOF
5034
5035 fi
5036
5037 { echo "$as_me:$LINENO: checking for size_t" >&5
5038 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5039 if test "${ac_cv_type_size_t+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 $ac_includes_default
5049 typedef size_t ac__type_new_;
5050 int
5051 main ()
5052 {
5053 if ((ac__type_new_ *) 0)
5054   return 0;
5055 if (sizeof (ac__type_new_))
5056   return 0;
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_compile") 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } && {
5075          test -z "$ac_c_werror_flag" ||
5076          test ! -s conftest.err
5077        } && test -s conftest.$ac_objext; then
5078   ac_cv_type_size_t=yes
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083         ac_cv_type_size_t=no
5084 fi
5085
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5089 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5090 if test $ac_cv_type_size_t = yes; then
5091   :
5092 else
5093
5094 cat >>confdefs.h <<_ACEOF
5095 #define size_t unsigned int
5096 _ACEOF
5097
5098 fi
5099
5100
5101   { echo "$as_me:$LINENO: checking for long long" >&5
5102 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5103 if test "${ac_cv_type_long_long+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 long long ll = 1LL; int i = 63;
5113 int
5114 main ()
5115 {
5116 long long llmax = (long long) -1;
5117      return ll << i | ll >> i | llmax / ll | llmax % ll;
5118   ;
5119   return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_link") 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } && {
5136          test -z "$ac_c_werror_flag" ||
5137          test ! -s conftest.err
5138        } && test -s conftest$ac_exeext &&
5139        $as_test_x conftest$ac_exeext; then
5140   ac_cv_type_long_long=yes
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145         ac_cv_type_long_long=no
5146 fi
5147
5148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5149       conftest$ac_exeext conftest.$ac_ext
5150 fi
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5153   if test $ac_cv_type_long_long = yes; then
5154
5155 cat >>confdefs.h <<\_ACEOF
5156 #define HAVE_LONG_LONG 1
5157 _ACEOF
5158
5159   fi
5160
5161
5162   { echo "$as_me:$LINENO: checking for long double" >&5
5163 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5164 if test "${gt_cv_c_long_double+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   if test "$GCC" = yes; then
5168        gt_cv_c_long_double=yes
5169      else
5170        cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5178          long double foo = 0.0;
5179          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5180          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5181
5182 int
5183 main ()
5184 {
5185
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (ac_try="$ac_compile"
5192 case "(($ac_try" in
5193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194   *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197   (eval "$ac_compile") 2>conftest.er1
5198   ac_status=$?
5199   grep -v '^ *+' conftest.er1 >conftest.err
5200   rm -f conftest.er1
5201   cat conftest.err >&5
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } && {
5204          test -z "$ac_c_werror_flag" ||
5205          test ! -s conftest.err
5206        } && test -s conftest.$ac_objext; then
5207   gt_cv_c_long_double=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212         gt_cv_c_long_double=no
5213 fi
5214
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216      fi
5217 fi
5218 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5219 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5220   if test $gt_cv_c_long_double = yes; then
5221
5222 cat >>confdefs.h <<\_ACEOF
5223 #define HAVE_LONG_DOUBLE 1
5224 _ACEOF
5225
5226   fi
5227
5228
5229   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5230 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5231 if test "${gt_cv_c_wchar_t+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 #include <stddef.h>
5241        wchar_t foo = (wchar_t)'\0';
5242 int
5243 main ()
5244 {
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compile") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } && {
5264          test -z "$ac_c_werror_flag" ||
5265          test ! -s conftest.err
5266        } && test -s conftest.$ac_objext; then
5267   gt_cv_c_wchar_t=yes
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272         gt_cv_c_wchar_t=no
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5278 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5279   if test $gt_cv_c_wchar_t = yes; then
5280
5281 cat >>confdefs.h <<\_ACEOF
5282 #define HAVE_WCHAR_T 1
5283 _ACEOF
5284
5285   fi
5286
5287
5288   { echo "$as_me:$LINENO: checking for wint_t" >&5
5289 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5290 if test "${gt_cv_c_wint_t+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 #include <wchar.h>
5300        wint_t foo = (wchar_t)'\0';
5301 int
5302 main ()
5303 {
5304
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313   *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316   (eval "$ac_compile") 2>conftest.er1
5317   ac_status=$?
5318   grep -v '^ *+' conftest.er1 >conftest.err
5319   rm -f conftest.er1
5320   cat conftest.err >&5
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); } && {
5323          test -z "$ac_c_werror_flag" ||
5324          test ! -s conftest.err
5325        } && test -s conftest.$ac_objext; then
5326   gt_cv_c_wint_t=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331         gt_cv_c_wint_t=no
5332 fi
5333
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5337 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5338   if test $gt_cv_c_wint_t = yes; then
5339
5340 cat >>confdefs.h <<\_ACEOF
5341 #define HAVE_WINT_T 1
5342 _ACEOF
5343
5344   fi
5345
5346
5347   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5348 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5349 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358 #include <sys/types.h>
5359 #include <inttypes.h>
5360 int
5361 main ()
5362 {
5363 uintmax_t i = (uintmax_t) -1;
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (ac_try="$ac_compile"
5370 case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375   (eval "$ac_compile") 2>conftest.er1
5376   ac_status=$?
5377   grep -v '^ *+' conftest.er1 >conftest.err
5378   rm -f conftest.er1
5379   cat conftest.err >&5
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); } && {
5382          test -z "$ac_c_werror_flag" ||
5383          test ! -s conftest.err
5384        } && test -s conftest.$ac_objext; then
5385   jm_ac_cv_header_inttypes_h=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390         jm_ac_cv_header_inttypes_h=no
5391 fi
5392
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 fi
5395 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5396 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5397   if test $jm_ac_cv_header_inttypes_h = yes; then
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5401 _ACEOF
5402
5403   fi
5404
5405
5406   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5407 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5408 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 #include <sys/types.h>
5418 #include <stdint.h>
5419 int
5420 main ()
5421 {
5422 uintmax_t i = (uintmax_t) -1;
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5429 case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_compile") 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } && {
5441          test -z "$ac_c_werror_flag" ||
5442          test ! -s conftest.err
5443        } && test -s conftest.$ac_objext; then
5444   jm_ac_cv_header_stdint_h=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449         jm_ac_cv_header_stdint_h=no
5450 fi
5451
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 fi
5454 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5455 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5456   if test $jm_ac_cv_header_stdint_h = yes; then
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define HAVE_STDINT_H_WITH_UINTMAX 1
5460 _ACEOF
5461
5462   fi
5463
5464
5465
5466
5467   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5468 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5469 if test "${gt_cv_c_intmax_t+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478
5479 #include <stddef.h>
5480 #include <stdlib.h>
5481 #if HAVE_STDINT_H_WITH_UINTMAX
5482 #include <stdint.h>
5483 #endif
5484 #if HAVE_INTTYPES_H_WITH_UINTMAX
5485 #include <inttypes.h>
5486 #endif
5487
5488 int
5489 main ()
5490 {
5491 intmax_t x = -1;
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compile") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && {
5510          test -z "$ac_c_werror_flag" ||
5511          test ! -s conftest.err
5512        } && test -s conftest.$ac_objext; then
5513   gt_cv_c_intmax_t=yes
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518         gt_cv_c_intmax_t=no
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5524 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5525   if test $gt_cv_c_intmax_t = yes; then
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define HAVE_INTMAX_T 1
5529 _ACEOF
5530
5531   fi
5532
5533
5534
5535   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5536 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5537 if test "${gt_cv_func_printf_posix+set}" = set; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540
5541       if test "$cross_compiling" = yes; then
5542
5543         cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549
5550 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5551   notposix
5552 #endif
5553
5554 _ACEOF
5555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5556   $EGREP "notposix" >/dev/null 2>&1; then
5557   gt_cv_func_printf_posix="guessing no"
5558 else
5559   gt_cv_func_printf_posix="guessing yes"
5560 fi
5561 rm -f conftest*
5562
5563
5564 else
5565   cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571
5572 #include <stdio.h>
5573 #include <string.h>
5574 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5575    dollar expansion (possibly an autoconf bug).  */
5576 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5577 static char buf[100];
5578 int main ()
5579 {
5580   sprintf (buf, format, 33, 55);
5581   return (strcmp (buf, "55 33") != 0);
5582 }
5583 _ACEOF
5584 rm -f conftest$ac_exeext
5585 if { (ac_try="$ac_link"
5586 case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591   (eval "$ac_link") 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595   { (case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_try") 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; }; then
5604   gt_cv_func_printf_posix=yes
5605 else
5606   echo "$as_me: program exited with status $ac_status" >&5
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 ( exit $ac_status )
5611 gt_cv_func_printf_posix=no
5612 fi
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5614 fi
5615
5616
5617
5618 fi
5619 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5620 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5621   case $gt_cv_func_printf_posix in
5622     *yes)
5623
5624 cat >>confdefs.h <<\_ACEOF
5625 #define HAVE_POSIX_PRINTF 1
5626 _ACEOF
5627
5628       ;;
5629   esac
5630
5631 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5632 # for constant arguments.  Useless!
5633 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5634 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5635 if test "${ac_cv_working_alloca_h+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644 #include <alloca.h>
5645 int
5646 main ()
5647 {
5648 char *p = (char *) alloca (2 * sizeof (int));
5649                           if (p) return 0;
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (ac_try="$ac_link"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_link") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && {
5668          test -z "$ac_c_werror_flag" ||
5669          test ! -s conftest.err
5670        } && test -s conftest$ac_exeext &&
5671        $as_test_x conftest$ac_exeext; then
5672   ac_cv_working_alloca_h=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677         ac_cv_working_alloca_h=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5681       conftest$ac_exeext conftest.$ac_ext
5682 fi
5683 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5684 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5685 if test $ac_cv_working_alloca_h = yes; then
5686
5687 cat >>confdefs.h <<\_ACEOF
5688 #define HAVE_ALLOCA_H 1
5689 _ACEOF
5690
5691 fi
5692
5693 { echo "$as_me:$LINENO: checking for alloca" >&5
5694 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5695 if test "${ac_cv_func_alloca_works+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 #ifdef __GNUC__
5705 # define alloca __builtin_alloca
5706 #else
5707 # ifdef _MSC_VER
5708 #  include <malloc.h>
5709 #  define alloca _alloca
5710 # else
5711 #  ifdef HAVE_ALLOCA_H
5712 #   include <alloca.h>
5713 #  else
5714 #   ifdef _AIX
5715  #pragma alloca
5716 #   else
5717 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5718 char *alloca ();
5719 #    endif
5720 #   endif
5721 #  endif
5722 # endif
5723 #endif
5724
5725 int
5726 main ()
5727 {
5728 char *p = (char *) alloca (1);
5729                                     if (p) return 0;
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (ac_try="$ac_link"
5736 case "(($ac_try" in
5737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738   *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741   (eval "$ac_link") 2>conftest.er1
5742   ac_status=$?
5743   grep -v '^ *+' conftest.er1 >conftest.err
5744   rm -f conftest.er1
5745   cat conftest.err >&5
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } && {
5748          test -z "$ac_c_werror_flag" ||
5749          test ! -s conftest.err
5750        } && test -s conftest$ac_exeext &&
5751        $as_test_x conftest$ac_exeext; then
5752   ac_cv_func_alloca_works=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757         ac_cv_func_alloca_works=no
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5761       conftest$ac_exeext conftest.$ac_ext
5762 fi
5763 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5764 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5765
5766 if test $ac_cv_func_alloca_works = yes; then
5767
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_ALLOCA 1
5770 _ACEOF
5771
5772 else
5773   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5774 # that cause trouble.  Some versions do not even contain alloca or
5775 # contain a buggy version.  If you still want to use their alloca,
5776 # use ar to extract alloca.o from them instead of compiling alloca.c.
5777
5778 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5779
5780 cat >>confdefs.h <<\_ACEOF
5781 #define C_ALLOCA 1
5782 _ACEOF
5783
5784
5785 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5786 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5787 if test "${ac_cv_os_cray+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 #if defined CRAY && ! defined CRAY2
5797 webecray
5798 #else
5799 wenotbecray
5800 #endif
5801
5802 _ACEOF
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804   $EGREP "webecray" >/dev/null 2>&1; then
5805   ac_cv_os_cray=yes
5806 else
5807   ac_cv_os_cray=no
5808 fi
5809 rm -f conftest*
5810
5811 fi
5812 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5813 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5814 if test $ac_cv_os_cray = yes; then
5815   for ac_func in _getb67 GETB67 getb67; do
5816     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5830 #define $ac_func innocuous_$ac_func
5831
5832 /* System header to define __stub macros and hopefully few prototypes,
5833     which can conflict with char $ac_func (); below.
5834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5835     <limits.h> exists even on freestanding compilers.  */
5836
5837 #ifdef __STDC__
5838 # include <limits.h>
5839 #else
5840 # include <assert.h>
5841 #endif
5842
5843 #undef $ac_func
5844
5845 /* Override any GCC internal prototype to avoid an error.
5846    Use char because int might match the return type of a GCC
5847    builtin and then its argument prototype would still apply.  */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 char $ac_func ();
5852 /* The GNU C library defines this for functions which it implements
5853     to always fail with ENOSYS.  Some functions are actually named
5854     something starting with __ and the normal name is an alias.  */
5855 #if defined __stub_$ac_func || defined __stub___$ac_func
5856 choke me
5857 #endif
5858
5859 int
5860 main ()
5861 {
5862 return $ac_func ();
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5869 case "(($ac_try" in
5870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871   *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874   (eval "$ac_link") 2>conftest.er1
5875   ac_status=$?
5876   grep -v '^ *+' conftest.er1 >conftest.err
5877   rm -f conftest.er1
5878   cat conftest.err >&5
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } && {
5881          test -z "$ac_c_werror_flag" ||
5882          test ! -s conftest.err
5883        } && test -s conftest$ac_exeext &&
5884        $as_test_x conftest$ac_exeext; then
5885   eval "$as_ac_var=yes"
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890         eval "$as_ac_var=no"
5891 fi
5892
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894       conftest$ac_exeext conftest.$ac_ext
5895 fi
5896 ac_res=`eval echo '${'$as_ac_var'}'`
5897                { echo "$as_me:$LINENO: result: $ac_res" >&5
5898 echo "${ECHO_T}$ac_res" >&6; }
5899 if test `eval echo '${'$as_ac_var'}'` = yes; then
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define CRAY_STACKSEG_END $ac_func
5903 _ACEOF
5904
5905     break
5906 fi
5907
5908   done
5909 fi
5910
5911 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5912 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5913 if test "${ac_cv_c_stack_direction+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   if test "$cross_compiling" = yes; then
5917   ac_cv_c_stack_direction=0
5918 else
5919   cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h.  */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h.  */
5925 $ac_includes_default
5926 int
5927 find_stack_direction ()
5928 {
5929   static char *addr = 0;
5930   auto char dummy;
5931   if (addr == 0)
5932     {
5933       addr = &dummy;
5934       return find_stack_direction ();
5935     }
5936   else
5937     return (&dummy > addr) ? 1 : -1;
5938 }
5939
5940 int
5941 main ()
5942 {
5943   return find_stack_direction () < 0;
5944 }
5945 _ACEOF
5946 rm -f conftest$ac_exeext
5947 if { (ac_try="$ac_link"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_link") 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957   { (case "(($ac_try" in
5958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959   *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962   (eval "$ac_try") 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; }; then
5966   ac_cv_c_stack_direction=1
5967 else
5968   echo "$as_me: program exited with status $ac_status" >&5
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 ( exit $ac_status )
5973 ac_cv_c_stack_direction=-1
5974 fi
5975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 fi
5977
5978
5979 fi
5980 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5981 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5982
5983 cat >>confdefs.h <<_ACEOF
5984 #define STACK_DIRECTION $ac_cv_c_stack_direction
5985 _ACEOF
5986
5987
5988 fi
5989
5990
5991
5992 for ac_header in stdlib.h unistd.h
5993 do
5994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 fi
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002                { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6004 else
6005   # Is the header compilable?
6006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 $ac_includes_default
6015 #include <$ac_header>
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6019 case "(($ac_try" in
6020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021   *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024   (eval "$ac_compile") 2>conftest.er1
6025   ac_status=$?
6026   grep -v '^ *+' conftest.er1 >conftest.err
6027   rm -f conftest.er1
6028   cat conftest.err >&5
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); } && {
6031          test -z "$ac_c_werror_flag" ||
6032          test ! -s conftest.err
6033        } && test -s conftest.$ac_objext; then
6034   ac_header_compiler=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039         ac_header_compiler=no
6040 fi
6041
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044 echo "${ECHO_T}$ac_header_compiler" >&6; }
6045
6046 # Is the header present?
6047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 #include <$ac_header>
6056 _ACEOF
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6058 case "(($ac_try" in
6059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060   *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6064   ac_status=$?
6065   grep -v '^ *+' conftest.er1 >conftest.err
6066   rm -f conftest.er1
6067   cat conftest.err >&5
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); } >/dev/null && {
6070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6071          test ! -s conftest.err
6072        }; then
6073   ac_header_preproc=yes
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078   ac_header_preproc=no
6079 fi
6080
6081 rm -f conftest.err conftest.$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6; }
6084
6085 # So?  What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6087   yes:no: )
6088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6092     ac_header_preproc=yes
6093     ;;
6094   no:yes:* )
6095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6107
6108     ;;
6109 esac
6110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   eval "$as_ac_Header=\$ac_header_preproc"
6116 fi
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118                { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6120
6121 fi
6122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123   cat >>confdefs.h <<_ACEOF
6124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 _ACEOF
6126
6127 fi
6128
6129 done
6130
6131
6132 for ac_func in getpagesize
6133 do
6134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6148 #define $ac_func innocuous_$ac_func
6149
6150 /* System header to define __stub macros and hopefully few prototypes,
6151     which can conflict with char $ac_func (); below.
6152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153     <limits.h> exists even on freestanding compilers.  */
6154
6155 #ifdef __STDC__
6156 # include <limits.h>
6157 #else
6158 # include <assert.h>
6159 #endif
6160
6161 #undef $ac_func
6162
6163 /* Override any GCC internal prototype to avoid an error.
6164    Use char because int might match the return type of a GCC
6165    builtin and then its argument prototype would still apply.  */
6166 #ifdef __cplusplus
6167 extern "C"
6168 #endif
6169 char $ac_func ();
6170 /* The GNU C library defines this for functions which it implements
6171     to always fail with ENOSYS.  Some functions are actually named
6172     something starting with __ and the normal name is an alias.  */
6173 #if defined __stub_$ac_func || defined __stub___$ac_func
6174 choke me
6175 #endif
6176
6177 int
6178 main ()
6179 {
6180 return $ac_func ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (ac_try="$ac_link"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_link") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } && {
6199          test -z "$ac_c_werror_flag" ||
6200          test ! -s conftest.err
6201        } && test -s conftest$ac_exeext &&
6202        $as_test_x conftest$ac_exeext; then
6203   eval "$as_ac_var=yes"
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208         eval "$as_ac_var=no"
6209 fi
6210
6211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6212       conftest$ac_exeext conftest.$ac_ext
6213 fi
6214 ac_res=`eval echo '${'$as_ac_var'}'`
6215                { echo "$as_me:$LINENO: result: $ac_res" >&5
6216 echo "${ECHO_T}$ac_res" >&6; }
6217 if test `eval echo '${'$as_ac_var'}'` = yes; then
6218   cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6220 _ACEOF
6221
6222 fi
6223 done
6224
6225 { echo "$as_me:$LINENO: checking for working mmap" >&5
6226 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6227 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   if test "$cross_compiling" = yes; then
6231   ac_cv_func_mmap_fixed_mapped=no
6232 else
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 $ac_includes_default
6240 /* malloc might have been renamed as rpl_malloc. */
6241 #undef malloc
6242
6243 /* Thanks to Mike Haertel and Jim Avera for this test.
6244    Here is a matrix of mmap possibilities:
6245         mmap private not fixed
6246         mmap private fixed at somewhere currently unmapped
6247         mmap private fixed at somewhere already mapped
6248         mmap shared not fixed
6249         mmap shared fixed at somewhere currently unmapped
6250         mmap shared fixed at somewhere already mapped
6251    For private mappings, we should verify that changes cannot be read()
6252    back from the file, nor mmap's back from the file at a different
6253    address.  (There have been systems where private was not correctly
6254    implemented like the infamous i386 svr4.0, and systems where the
6255    VM page cache was not coherent with the file system buffer cache
6256    like early versions of FreeBSD and possibly contemporary NetBSD.)
6257    For shared mappings, we should conversely verify that changes get
6258    propagated back to all the places they're supposed to be.
6259
6260    Grep wants private fixed already mapped.
6261    The main things grep needs to know about mmap are:
6262    * does it exist and is it safe to write into the mmap'd area
6263    * how to use it (BSD variants)  */
6264
6265 #include <fcntl.h>
6266 #include <sys/mman.h>
6267
6268 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6269 char *malloc ();
6270 #endif
6271
6272 /* This mess was copied from the GNU getpagesize.h.  */
6273 #ifndef HAVE_GETPAGESIZE
6274 /* Assume that all systems that can run configure have sys/param.h.  */
6275 # ifndef HAVE_SYS_PARAM_H
6276 #  define HAVE_SYS_PARAM_H 1
6277 # endif
6278
6279 # ifdef _SC_PAGESIZE
6280 #  define getpagesize() sysconf(_SC_PAGESIZE)
6281 # else /* no _SC_PAGESIZE */
6282 #  ifdef HAVE_SYS_PARAM_H
6283 #   include <sys/param.h>
6284 #   ifdef EXEC_PAGESIZE
6285 #    define getpagesize() EXEC_PAGESIZE
6286 #   else /* no EXEC_PAGESIZE */
6287 #    ifdef NBPG
6288 #     define getpagesize() NBPG * CLSIZE
6289 #     ifndef CLSIZE
6290 #      define CLSIZE 1
6291 #     endif /* no CLSIZE */
6292 #    else /* no NBPG */
6293 #     ifdef NBPC
6294 #      define getpagesize() NBPC
6295 #     else /* no NBPC */
6296 #      ifdef PAGESIZE
6297 #       define getpagesize() PAGESIZE
6298 #      endif /* PAGESIZE */
6299 #     endif /* no NBPC */
6300 #    endif /* no NBPG */
6301 #   endif /* no EXEC_PAGESIZE */
6302 #  else /* no HAVE_SYS_PARAM_H */
6303 #   define getpagesize() 8192   /* punt totally */
6304 #  endif /* no HAVE_SYS_PARAM_H */
6305 # endif /* no _SC_PAGESIZE */
6306
6307 #endif /* no HAVE_GETPAGESIZE */
6308
6309 int
6310 main ()
6311 {
6312   char *data, *data2, *data3;
6313   int i, pagesize;
6314   int fd;
6315
6316   pagesize = getpagesize ();
6317
6318   /* First, make a file with some known garbage in it. */
6319   data = (char *) malloc (pagesize);
6320   if (!data)
6321     return 1;
6322   for (i = 0; i < pagesize; ++i)
6323     *(data + i) = rand ();
6324   umask (0);
6325   fd = creat ("conftest.mmap", 0600);
6326   if (fd < 0)
6327     return 1;
6328   if (write (fd, data, pagesize) != pagesize)
6329     return 1;
6330   close (fd);
6331
6332   /* Next, try to mmap the file at a fixed address which already has
6333      something else allocated at it.  If we can, also make sure that
6334      we see the same garbage.  */
6335   fd = open ("conftest.mmap", O_RDWR);
6336   if (fd < 0)
6337     return 1;
6338   data2 = (char *) malloc (2 * pagesize);
6339   if (!data2)
6340     return 1;
6341   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6342   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6344     return 1;
6345   for (i = 0; i < pagesize; ++i)
6346     if (*(data + i) != *(data2 + i))
6347       return 1;
6348
6349   /* Finally, make sure that changes to the mapped area do not
6350      percolate back to the file as seen by read().  (This is a bug on
6351      some variants of i386 svr4.0.)  */
6352   for (i = 0; i < pagesize; ++i)
6353     *(data2 + i) = *(data2 + i) + 1;
6354   data3 = (char *) malloc (pagesize);
6355   if (!data3)
6356     return 1;
6357   if (read (fd, data3, pagesize) != pagesize)
6358     return 1;
6359   for (i = 0; i < pagesize; ++i)
6360     if (*(data + i) != *(data3 + i))
6361       return 1;
6362   close (fd);
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_link") 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6377   { (case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382   (eval "$ac_try") 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_func_mmap_fixed_mapped=yes
6387 else
6388   echo "$as_me: program exited with status $ac_status" >&5
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ( exit $ac_status )
6393 ac_cv_func_mmap_fixed_mapped=no
6394 fi
6395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6396 fi
6397
6398
6399 fi
6400 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6401 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6402 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6403
6404 cat >>confdefs.h <<\_ACEOF
6405 #define HAVE_MMAP 1
6406 _ACEOF
6407
6408 fi
6409 rm -f conftest.mmap
6410
6411
6412     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6413 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6414 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423
6424 #include <features.h>
6425 #ifdef __GNU_LIBRARY__
6426  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6427   Lucky GNU user
6428  #endif
6429 #endif
6430
6431 _ACEOF
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6434   ac_cv_gnu_library_2_1=yes
6435 else
6436   ac_cv_gnu_library_2_1=no
6437 fi
6438 rm -f conftest*
6439
6440
6441
6442 fi
6443 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6444 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6445
6446     GLIBC21="$ac_cv_gnu_library_2_1"
6447
6448
6449
6450
6451   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6452 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6453 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456
6457       if test "$cross_compiling" = yes; then
6458
6459           # Guess based on the CPU.
6460           case "$host_cpu" in
6461             alpha* | i3456786 | m68k | s390*)
6462               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6463             *)
6464               gt_cv_int_divbyzero_sigfpe="guessing no";;
6465           esac
6466
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474
6475 #include <stdlib.h>
6476 #include <signal.h>
6477
6478 static void
6479 #ifdef __cplusplus
6480 sigfpe_handler (int sig)
6481 #else
6482 sigfpe_handler (sig) int sig;
6483 #endif
6484 {
6485   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6486   exit (sig != SIGFPE);
6487 }
6488
6489 int x = 1;
6490 int y = 0;
6491 int z;
6492 int nan;
6493
6494 int main ()
6495 {
6496   signal (SIGFPE, sigfpe_handler);
6497 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6498 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6499   signal (SIGTRAP, sigfpe_handler);
6500 #endif
6501 /* Linux/SPARC yields signal SIGILL.  */
6502 #if defined (__sparc__) && defined (__linux__)
6503   signal (SIGILL, sigfpe_handler);
6504 #endif
6505
6506   z = x / y;
6507   nan = y / y;
6508   exit (1);
6509 }
6510
6511 _ACEOF
6512 rm -f conftest$ac_exeext
6513 if { (ac_try="$ac_link"
6514 case "(($ac_try" in
6515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516   *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519   (eval "$ac_link") 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6523   { (case "(($ac_try" in
6524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525   *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528   (eval "$ac_try") 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; }; then
6532   gt_cv_int_divbyzero_sigfpe=yes
6533 else
6534   echo "$as_me: program exited with status $ac_status" >&5
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ( exit $ac_status )
6539 gt_cv_int_divbyzero_sigfpe=no
6540 fi
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6542 fi
6543
6544
6545
6546 fi
6547 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6548 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6549   case "$gt_cv_int_divbyzero_sigfpe" in
6550     *yes) value=1;;
6551     *) value=0;;
6552   esac
6553
6554 cat >>confdefs.h <<_ACEOF
6555 #define INTDIV0_RAISES_SIGFPE $value
6556 _ACEOF
6557
6558
6559
6560   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6561 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6562 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571 unsigned long long ull = 1ULL; int i = 63;
6572 int
6573 main ()
6574 {
6575 unsigned long long ullmax = (unsigned long long) -1;
6576      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (ac_try="$ac_link"
6583 case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588   (eval "$ac_link") 2>conftest.er1
6589   ac_status=$?
6590   grep -v '^ *+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } && {
6595          test -z "$ac_c_werror_flag" ||
6596          test ! -s conftest.err
6597        } && test -s conftest$ac_exeext &&
6598        $as_test_x conftest$ac_exeext; then
6599   ac_cv_type_unsigned_long_long=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604         ac_cv_type_unsigned_long_long=no
6605 fi
6606
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608       conftest$ac_exeext conftest.$ac_ext
6609 fi
6610 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6611 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6612   if test $ac_cv_type_unsigned_long_long = yes; then
6613
6614 cat >>confdefs.h <<\_ACEOF
6615 #define HAVE_UNSIGNED_LONG_LONG 1
6616 _ACEOF
6617
6618   fi
6619
6620
6621
6622
6623   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6624
6625     test $ac_cv_type_unsigned_long_long = yes \
6626       && ac_type='unsigned long long' \
6627       || ac_type='unsigned long'
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define uintmax_t $ac_type
6631 _ACEOF
6632
6633   else
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_UINTMAX_T 1
6637 _ACEOF
6638
6639   fi
6640
6641
6642   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6643 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6644 if test "${gt_cv_header_inttypes_h+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647
6648     cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654 #include <sys/types.h>
6655 #include <inttypes.h>
6656 int
6657 main ()
6658 {
6659
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6666 case "(($ac_try" in
6667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668   *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671   (eval "$ac_compile") 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } && {
6678          test -z "$ac_c_werror_flag" ||
6679          test ! -s conftest.err
6680        } && test -s conftest.$ac_objext; then
6681   gt_cv_header_inttypes_h=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686         gt_cv_header_inttypes_h=no
6687 fi
6688
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690
6691 fi
6692 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6693 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6694   if test $gt_cv_header_inttypes_h = yes; then
6695
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_INTTYPES_H 1
6698 _ACEOF
6699
6700   fi
6701
6702
6703
6704   if test $gt_cv_header_inttypes_h = yes; then
6705     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6706 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6707 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710
6711         cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717 #include <inttypes.h>
6718 #ifdef PRId32
6719 char *p = PRId32;
6720 #endif
6721
6722 int
6723 main ()
6724 {
6725
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737   (eval "$ac_compile") 2>conftest.er1
6738   ac_status=$?
6739   grep -v '^ *+' conftest.er1 >conftest.err
6740   rm -f conftest.er1
6741   cat conftest.err >&5
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); } && {
6744          test -z "$ac_c_werror_flag" ||
6745          test ! -s conftest.err
6746        } && test -s conftest.$ac_objext; then
6747   gt_cv_inttypes_pri_broken=no
6748 else
6749   echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752         gt_cv_inttypes_pri_broken=yes
6753 fi
6754
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 fi
6758 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6759 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6760   fi
6761   if test "$gt_cv_inttypes_pri_broken" = yes; then
6762
6763 cat >>confdefs.h <<_ACEOF
6764 #define PRI_MACROS_BROKEN 1
6765 _ACEOF
6766
6767   fi
6768
6769
6770
6771 for ac_header in stdint.h
6772 do
6773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 fi
6780 ac_res=`eval echo '${'$as_ac_Header'}'`
6781                { echo "$as_me:$LINENO: result: $ac_res" >&5
6782 echo "${ECHO_T}$ac_res" >&6; }
6783 else
6784   # Is the header compilable?
6785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 $ac_includes_default
6794 #include <$ac_header>
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6798 case "(($ac_try" in
6799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800   *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803   (eval "$ac_compile") 2>conftest.er1
6804   ac_status=$?
6805   grep -v '^ *+' conftest.er1 >conftest.err
6806   rm -f conftest.er1
6807   cat conftest.err >&5
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); } && {
6810          test -z "$ac_c_werror_flag" ||
6811          test ! -s conftest.err
6812        } && test -s conftest.$ac_objext; then
6813   ac_header_compiler=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818         ac_header_compiler=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6823 echo "${ECHO_T}$ac_header_compiler" >&6; }
6824
6825 # Is the header present?
6826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h.  */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h.  */
6834 #include <$ac_header>
6835 _ACEOF
6836 if { (ac_try="$ac_cpp conftest.$ac_ext"
6837 case "(($ac_try" in
6838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839   *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } >/dev/null && {
6849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850          test ! -s conftest.err
6851        }; then
6852   ac_header_preproc=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857   ac_header_preproc=no
6858 fi
6859
6860 rm -f conftest.err conftest.$ac_ext
6861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6862 echo "${ECHO_T}$ac_header_preproc" >&6; }
6863
6864 # So?  What about this header?
6865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6866   yes:no: )
6867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6871     ac_header_preproc=yes
6872     ;;
6873   no:yes:* )
6874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6886
6887     ;;
6888 esac
6889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   eval "$as_ac_Header=\$ac_header_preproc"
6895 fi
6896 ac_res=`eval echo '${'$as_ac_Header'}'`
6897                { echo "$as_me:$LINENO: result: $ac_res" >&5
6898 echo "${ECHO_T}$ac_res" >&6; }
6899
6900 fi
6901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6902   cat >>confdefs.h <<_ACEOF
6903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6904 _ACEOF
6905
6906 fi
6907
6908 done
6909
6910     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6911 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6912   result=
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919
6920 #include <limits.h>
6921 #if HAVE_STDINT_H
6922 #include <stdint.h>
6923 #endif
6924 #ifdef SIZE_MAX
6925 Found it
6926 #endif
6927
6928 _ACEOF
6929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930   $EGREP "Found it" >/dev/null 2>&1; then
6931   result=yes
6932 fi
6933 rm -f conftest*
6934
6935   if test -z "$result"; then
6936                     if test "$cross_compiling" = yes; then
6937   # Depending upon the size, compute the lo and hi bounds.
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 #include <stddef.h>
6945 int
6946 main ()
6947 {
6948 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6949 test_array [0] = 0
6950
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_compile") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } && {
6969          test -z "$ac_c_werror_flag" ||
6970          test ! -s conftest.err
6971        } && test -s conftest.$ac_objext; then
6972   ac_lo=0 ac_mid=0
6973   while :; do
6974     cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #include <stddef.h>
6981 int
6982 main ()
6983 {
6984 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6985 test_array [0] = 0
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6993 case "(($ac_try" in
6994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995   *) ac_try_echo=$ac_try;;
6996 esac
6997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998   (eval "$ac_compile") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } && {
7005          test -z "$ac_c_werror_flag" ||
7006          test ! -s conftest.err
7007        } && test -s conftest.$ac_objext; then
7008   ac_hi=$ac_mid; break
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013         ac_lo=`expr $ac_mid + 1`
7014                         if test $ac_lo -le $ac_mid; then
7015                           ac_lo= ac_hi=
7016                           break
7017                         fi
7018                         ac_mid=`expr 2 '*' $ac_mid + 1`
7019 fi
7020
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022   done
7023 else
7024   echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027         cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h.  */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h.  */
7033 #include <stddef.h>
7034 int
7035 main ()
7036 {
7037 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7038 test_array [0] = 0
7039
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext
7045 if { (ac_try="$ac_compile"
7046 case "(($ac_try" in
7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048   *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051   (eval "$ac_compile") 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } && {
7058          test -z "$ac_c_werror_flag" ||
7059          test ! -s conftest.err
7060        } && test -s conftest.$ac_objext; then
7061   ac_hi=-1 ac_mid=-1
7062   while :; do
7063     cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 #include <stddef.h>
7070 int
7071 main ()
7072 {
7073 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7074 test_array [0] = 0
7075
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097   ac_lo=$ac_mid; break
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102         ac_hi=`expr '(' $ac_mid ')' - 1`
7103                         if test $ac_mid -le $ac_hi; then
7104                           ac_lo= ac_hi=
7105                           break
7106                         fi
7107                         ac_mid=`expr 2 '*' $ac_mid`
7108 fi
7109
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111   done
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116         ac_lo= ac_hi=
7117 fi
7118
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 fi
7121
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 # Binary search between lo and hi bounds.
7124 while test "x$ac_lo" != "x$ac_hi"; do
7125   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7126   cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h.  */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h.  */
7132 #include <stddef.h>
7133 int
7134 main ()
7135 {
7136 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7137 test_array [0] = 0
7138
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147   *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150   (eval "$ac_compile") 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } && {
7157          test -z "$ac_c_werror_flag" ||
7158          test ! -s conftest.err
7159        } && test -s conftest.$ac_objext; then
7160   ac_hi=$ac_mid
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165         ac_lo=`expr '(' $ac_mid ')' + 1`
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 done
7170 case $ac_lo in
7171 ?*) res_hi=$ac_lo;;
7172 '') result=? ;;
7173 esac
7174 else
7175   cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181 #include <stddef.h>
7182 static long int longval () { return ~(size_t)0 / 10; }
7183 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7184 #include <stdio.h>
7185 #include <stdlib.h>
7186 int
7187 main ()
7188 {
7189
7190   FILE *f = fopen ("conftest.val", "w");
7191   if (! f)
7192     return 1;
7193   if ((~(size_t)0 / 10) < 0)
7194     {
7195       long int i = longval ();
7196       if (i != (~(size_t)0 / 10))
7197         return 1;
7198       fprintf (f, "%ld\n", i);
7199     }
7200   else
7201     {
7202       unsigned long int i = ulongval ();
7203       if (i != (~(size_t)0 / 10))
7204         return 1;
7205       fprintf (f, "%lu\n", i);
7206     }
7207   return ferror (f) || fclose (f) != 0;
7208
7209   ;
7210   return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7215 case "(($ac_try" in
7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217   *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220   (eval "$ac_link") 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224   { (case "(($ac_try" in
7225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226   *) ac_try_echo=$ac_try;;
7227 esac
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229   (eval "$ac_try") 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; }; then
7233   res_hi=`cat conftest.val`
7234 else
7235   echo "$as_me: program exited with status $ac_status" >&5
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ( exit $ac_status )
7240 result=?
7241 fi
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 rm -f conftest.val
7245
7246     if test "$cross_compiling" = yes; then
7247   # Depending upon the size, compute the lo and hi bounds.
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254 #include <stddef.h>
7255 int
7256 main ()
7257 {
7258 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7259 test_array [0] = 0
7260
7261   ;
7262   return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269   *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272   (eval "$ac_compile") 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } && {
7279          test -z "$ac_c_werror_flag" ||
7280          test ! -s conftest.err
7281        } && test -s conftest.$ac_objext; then
7282   ac_lo=0 ac_mid=0
7283   while :; do
7284     cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290 #include <stddef.h>
7291 int
7292 main ()
7293 {
7294 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7295 test_array [0] = 0
7296
7297   ;
7298   return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7303 case "(($ac_try" in
7304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305   *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308   (eval "$ac_compile") 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } && {
7315          test -z "$ac_c_werror_flag" ||
7316          test ! -s conftest.err
7317        } && test -s conftest.$ac_objext; then
7318   ac_hi=$ac_mid; break
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323         ac_lo=`expr $ac_mid + 1`
7324                         if test $ac_lo -le $ac_mid; then
7325                           ac_lo= ac_hi=
7326                           break
7327                         fi
7328                         ac_mid=`expr 2 '*' $ac_mid + 1`
7329 fi
7330
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332   done
7333 else
7334   echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337         cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 #include <stddef.h>
7344 int
7345 main ()
7346 {
7347 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7348 test_array [0] = 0
7349
7350   ;
7351   return 0;
7352 }
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7356 case "(($ac_try" in
7357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358   *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361   (eval "$ac_compile") 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } && {
7368          test -z "$ac_c_werror_flag" ||
7369          test ! -s conftest.err
7370        } && test -s conftest.$ac_objext; then
7371   ac_hi=-1 ac_mid=-1
7372   while :; do
7373     cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379 #include <stddef.h>
7380 int
7381 main ()
7382 {
7383 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7384 test_array [0] = 0
7385
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394   *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397   (eval "$ac_compile") 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } && {
7404          test -z "$ac_c_werror_flag" ||
7405          test ! -s conftest.err
7406        } && test -s conftest.$ac_objext; then
7407   ac_lo=$ac_mid; break
7408 else
7409   echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412         ac_hi=`expr '(' $ac_mid ')' - 1`
7413                         if test $ac_mid -le $ac_hi; then
7414                           ac_lo= ac_hi=
7415                           break
7416                         fi
7417                         ac_mid=`expr 2 '*' $ac_mid`
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421   done
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426         ac_lo= ac_hi=
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 # Binary search between lo and hi bounds.
7434 while test "x$ac_lo" != "x$ac_hi"; do
7435   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7436   cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h.  */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h.  */
7442 #include <stddef.h>
7443 int
7444 main ()
7445 {
7446 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7447 test_array [0] = 0
7448
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460   (eval "$ac_compile") 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } && {
7467          test -z "$ac_c_werror_flag" ||
7468          test ! -s conftest.err
7469        } && test -s conftest.$ac_objext; then
7470   ac_hi=$ac_mid
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475         ac_lo=`expr '(' $ac_mid ')' + 1`
7476 fi
7477
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 done
7480 case $ac_lo in
7481 ?*) res_lo=$ac_lo;;
7482 '') result=? ;;
7483 esac
7484 else
7485   cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491 #include <stddef.h>
7492 static long int longval () { return ~(size_t)0 % 10; }
7493 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7494 #include <stdio.h>
7495 #include <stdlib.h>
7496 int
7497 main ()
7498 {
7499
7500   FILE *f = fopen ("conftest.val", "w");
7501   if (! f)
7502     return 1;
7503   if ((~(size_t)0 % 10) < 0)
7504     {
7505       long int i = longval ();
7506       if (i != (~(size_t)0 % 10))
7507         return 1;
7508       fprintf (f, "%ld\n", i);
7509     }
7510   else
7511     {
7512       unsigned long int i = ulongval ();
7513       if (i != (~(size_t)0 % 10))
7514         return 1;
7515       fprintf (f, "%lu\n", i);
7516     }
7517   return ferror (f) || fclose (f) != 0;
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest$ac_exeext
7524 if { (ac_try="$ac_link"
7525 case "(($ac_try" in
7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527   *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530   (eval "$ac_link") 2>&5
7531   ac_status=$?
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7534   { (case "(($ac_try" in
7535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536   *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539   (eval "$ac_try") 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; }; then
7543   res_lo=`cat conftest.val`
7544 else
7545   echo "$as_me: program exited with status $ac_status" >&5
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7548
7549 ( exit $ac_status )
7550 result=?
7551 fi
7552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 rm -f conftest.val
7555
7556     if test "$cross_compiling" = yes; then
7557   # Depending upon the size, compute the lo and hi bounds.
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 #include <stddef.h>
7565 int
7566 main ()
7567 {
7568 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7569 test_array [0] = 0
7570
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7577 case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_compile") 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } && {
7589          test -z "$ac_c_werror_flag" ||
7590          test ! -s conftest.err
7591        } && test -s conftest.$ac_objext; then
7592   ac_lo=0 ac_mid=0
7593   while :; do
7594     cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 #include <stddef.h>
7601 int
7602 main ()
7603 {
7604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7605 test_array [0] = 0
7606
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7613 case "(($ac_try" in
7614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615   *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618   (eval "$ac_compile") 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } && {
7625          test -z "$ac_c_werror_flag" ||
7626          test ! -s conftest.err
7627        } && test -s conftest.$ac_objext; then
7628   ac_hi=$ac_mid; break
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633         ac_lo=`expr $ac_mid + 1`
7634                         if test $ac_lo -le $ac_mid; then
7635                           ac_lo= ac_hi=
7636                           break
7637                         fi
7638                         ac_mid=`expr 2 '*' $ac_mid + 1`
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642   done
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647         cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <stddef.h>
7654 int
7655 main ()
7656 {
7657 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7658 test_array [0] = 0
7659
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_compile") 2>conftest.er1
7672   ac_status=$?
7673   grep -v '^ *+' conftest.er1 >conftest.err
7674   rm -f conftest.er1
7675   cat conftest.err >&5
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } && {
7678          test -z "$ac_c_werror_flag" ||
7679          test ! -s conftest.err
7680        } && test -s conftest.$ac_objext; then
7681   ac_hi=-1 ac_mid=-1
7682   while :; do
7683     cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 #include <stddef.h>
7690 int
7691 main ()
7692 {
7693 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7694 test_array [0] = 0
7695
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704   *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707   (eval "$ac_compile") 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } && {
7714          test -z "$ac_c_werror_flag" ||
7715          test ! -s conftest.err
7716        } && test -s conftest.$ac_objext; then
7717   ac_lo=$ac_mid; break
7718 else
7719   echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722         ac_hi=`expr '(' $ac_mid ')' - 1`
7723                         if test $ac_mid -le $ac_hi; then
7724                           ac_lo= ac_hi=
7725                           break
7726                         fi
7727                         ac_mid=`expr 2 '*' $ac_mid`
7728 fi
7729
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731   done
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736         ac_lo= ac_hi=
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 # Binary search between lo and hi bounds.
7744 while test "x$ac_lo" != "x$ac_hi"; do
7745   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7746   cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h.  */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h.  */
7752 #include <stddef.h>
7753 int
7754 main ()
7755 {
7756 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7757 test_array [0] = 0
7758
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770   (eval "$ac_compile") 2>conftest.er1
7771   ac_status=$?
7772   grep -v '^ *+' conftest.er1 >conftest.err
7773   rm -f conftest.er1
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && {
7777          test -z "$ac_c_werror_flag" ||
7778          test ! -s conftest.err
7779        } && test -s conftest.$ac_objext; then
7780   ac_hi=$ac_mid
7781 else
7782   echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785         ac_lo=`expr '(' $ac_mid ')' + 1`
7786 fi
7787
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 done
7790 case $ac_lo in
7791 ?*) fits_in_uint=$ac_lo;;
7792 '') result=? ;;
7793 esac
7794 else
7795   cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801 #include <stddef.h>
7802 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7803 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7804 #include <stdio.h>
7805 #include <stdlib.h>
7806 int
7807 main ()
7808 {
7809
7810   FILE *f = fopen ("conftest.val", "w");
7811   if (! f)
7812     return 1;
7813   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7814     {
7815       long int i = longval ();
7816       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7817         return 1;
7818       fprintf (f, "%ld\n", i);
7819     }
7820   else
7821     {
7822       unsigned long int i = ulongval ();
7823       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7824         return 1;
7825       fprintf (f, "%lu\n", i);
7826     }
7827   return ferror (f) || fclose (f) != 0;
7828
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest$ac_exeext
7834 if { (ac_try="$ac_link"
7835 case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_link") 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7844   { (case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_try") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   fits_in_uint=`cat conftest.val`
7854 else
7855   echo "$as_me: program exited with status $ac_status" >&5
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ( exit $ac_status )
7860 result=?
7861 fi
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 rm -f conftest.val
7865
7866     if test "$fits_in_uint" = 1; then
7867                   cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873 #include <stddef.h>
7874         extern size_t foo;
7875         extern unsigned long foo;
7876
7877 int
7878 main ()
7879 {
7880
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (ac_try="$ac_compile"
7887 case "(($ac_try" in
7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889   *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892   (eval "$ac_compile") 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } && {
7899          test -z "$ac_c_werror_flag" ||
7900          test ! -s conftest.err
7901        } && test -s conftest.$ac_objext; then
7902   fits_in_uint=0
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907
7908 fi
7909
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911     fi
7912     if test -z "$result"; then
7913       if test "$fits_in_uint" = 1; then
7914         result="$res_hi$res_lo"U
7915       else
7916         result="$res_hi$res_lo"UL
7917       fi
7918     else
7919             result='~(size_t)0'
7920     fi
7921   fi
7922   { echo "$as_me:$LINENO: result: $result" >&5
7923 echo "${ECHO_T}$result" >&6; }
7924   if test "$result" != yes; then
7925
7926 cat >>confdefs.h <<_ACEOF
7927 #define SIZE_MAX $result
7928 _ACEOF
7929
7930   fi
7931
7932
7933
7934
7935 for ac_header in stdint.h
7936 do
7937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 fi
7944 ac_res=`eval echo '${'$as_ac_Header'}'`
7945                { echo "$as_me:$LINENO: result: $ac_res" >&5
7946 echo "${ECHO_T}$ac_res" >&6; }
7947 else
7948   # Is the header compilable?
7949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957 $ac_includes_default
7958 #include <$ac_header>
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_compile") 2>conftest.er1
7968   ac_status=$?
7969   grep -v '^ *+' conftest.er1 >conftest.err
7970   rm -f conftest.er1
7971   cat conftest.err >&5
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } && {
7974          test -z "$ac_c_werror_flag" ||
7975          test ! -s conftest.err
7976        } && test -s conftest.$ac_objext; then
7977   ac_header_compiler=yes
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982         ac_header_compiler=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987 echo "${ECHO_T}$ac_header_compiler" >&6; }
7988
7989 # Is the header present?
7990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 #include <$ac_header>
7999 _ACEOF
8000 if { (ac_try="$ac_cpp conftest.$ac_ext"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } >/dev/null && {
8013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8014          test ! -s conftest.err
8015        }; then
8016   ac_header_preproc=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021   ac_header_preproc=no
8022 fi
8023
8024 rm -f conftest.err conftest.$ac_ext
8025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8026 echo "${ECHO_T}$ac_header_preproc" >&6; }
8027
8028 # So?  What about this header?
8029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8030   yes:no: )
8031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8035     ac_header_preproc=yes
8036     ;;
8037   no:yes:* )
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8050
8051     ;;
8052 esac
8053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   eval "$as_ac_Header=\$ac_header_preproc"
8059 fi
8060 ac_res=`eval echo '${'$as_ac_Header'}'`
8061                { echo "$as_me:$LINENO: result: $ac_res" >&5
8062 echo "${ECHO_T}$ac_res" >&6; }
8063
8064 fi
8065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066   cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 _ACEOF
8069
8070 fi
8071
8072 done
8073
8074
8075
8076       if test "X$prefix" = "XNONE"; then
8077     acl_final_prefix="$ac_default_prefix"
8078   else
8079     acl_final_prefix="$prefix"
8080   fi
8081   if test "X$exec_prefix" = "XNONE"; then
8082     acl_final_exec_prefix='${prefix}'
8083   else
8084     acl_final_exec_prefix="$exec_prefix"
8085   fi
8086   acl_save_prefix="$prefix"
8087   prefix="$acl_final_prefix"
8088   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8089   prefix="$acl_save_prefix"
8090
8091
8092 # Check whether --with-gnu-ld was given.
8093 if test "${with_gnu_ld+set}" = set; then
8094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8095 else
8096   with_gnu_ld=no
8097 fi
8098
8099 # Prepare PATH_SEPARATOR.
8100 # The user is always right.
8101 if test "${PATH_SEPARATOR+set}" != set; then
8102   echo "#! /bin/sh" >conf$$.sh
8103   echo  "exit 0"   >>conf$$.sh
8104   chmod +x conf$$.sh
8105   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8106     PATH_SEPARATOR=';'
8107   else
8108     PATH_SEPARATOR=:
8109   fi
8110   rm -f conf$$.sh
8111 fi
8112 ac_prog=ld
8113 if test "$GCC" = yes; then
8114   # Check if gcc -print-prog-name=ld gives a path.
8115   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8117   case $host in
8118   *-*-mingw*)
8119     # gcc leaves a trailing carriage return which upsets mingw
8120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8121   *)
8122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8123   esac
8124   case $ac_prog in
8125     # Accept absolute paths.
8126     [\\/]* | [A-Za-z]:[\\/]*)
8127       re_direlt='/[^/][^/]*/\.\./'
8128       # Canonicalize the path of ld
8129       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8130       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8131         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8132       done
8133       test -z "$LD" && LD="$ac_prog"
8134       ;;
8135   "")
8136     # If it fails, then pretend we aren't using GCC.
8137     ac_prog=ld
8138     ;;
8139   *)
8140     # If it is relative, then search for the first ld in PATH.
8141     with_gnu_ld=unknown
8142     ;;
8143   esac
8144 elif test "$with_gnu_ld" = yes; then
8145   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8147 else
8148   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8150 fi
8151 if test "${acl_cv_path_LD+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   if test -z "$LD"; then
8155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8156   for ac_dir in $PATH; do
8157     test -z "$ac_dir" && ac_dir=.
8158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8159       acl_cv_path_LD="$ac_dir/$ac_prog"
8160       # Check to see if the program is GNU ld.  I'd rather use --version,
8161       # but apparently some GNU ld's only accept -v.
8162       # Break only if it was the GNU/non-GNU ld that we prefer.
8163       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8164       *GNU* | *'with BFD'*)
8165         test "$with_gnu_ld" != no && break ;;
8166       *)
8167         test "$with_gnu_ld" != yes && break ;;
8168       esac
8169     fi
8170   done
8171   IFS="$ac_save_ifs"
8172 else
8173   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8174 fi
8175 fi
8176
8177 LD="$acl_cv_path_LD"
8178 if test -n "$LD"; then
8179   { echo "$as_me:$LINENO: result: $LD" >&5
8180 echo "${ECHO_T}$LD" >&6; }
8181 else
8182   { echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6; }
8184 fi
8185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8187    { (exit 1); exit 1; }; }
8188 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8190 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8194 case `$LD -v 2>&1 </dev/null` in
8195 *GNU* | *'with BFD'*)
8196   acl_cv_prog_gnu_ld=yes ;;
8197 *)
8198   acl_cv_prog_gnu_ld=no ;;
8199 esac
8200 fi
8201 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8202 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8203 with_gnu_ld=$acl_cv_prog_gnu_ld
8204
8205
8206
8207                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8208 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8209 if test "${acl_cv_rpath+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212
8213     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8214     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8215     . ./conftest.sh
8216     rm -f ./conftest.sh
8217     acl_cv_rpath=done
8218
8219 fi
8220 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8221 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8222   wl="$acl_cv_wl"
8223   libext="$acl_cv_libext"
8224   shlibext="$acl_cv_shlibext"
8225   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8226   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8227   hardcode_direct="$acl_cv_hardcode_direct"
8228   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8229     # Check whether --enable-rpath was given.
8230 if test "${enable_rpath+set}" = set; then
8231   enableval=$enable_rpath; :
8232 else
8233   enable_rpath=yes
8234 fi
8235
8236
8237
8238
8239
8240
8241
8242
8243     use_additional=yes
8244
8245   acl_save_prefix="$prefix"
8246   prefix="$acl_final_prefix"
8247   acl_save_exec_prefix="$exec_prefix"
8248   exec_prefix="$acl_final_exec_prefix"
8249
8250     eval additional_includedir=\"$includedir\"
8251     eval additional_libdir=\"$libdir\"
8252
8253   exec_prefix="$acl_save_exec_prefix"
8254   prefix="$acl_save_prefix"
8255
8256
8257 # Check whether --with-libiconv-prefix was given.
8258 if test "${with_libiconv_prefix+set}" = set; then
8259   withval=$with_libiconv_prefix;
8260     if test "X$withval" = "Xno"; then
8261       use_additional=no
8262     else
8263       if test "X$withval" = "X"; then
8264
8265   acl_save_prefix="$prefix"
8266   prefix="$acl_final_prefix"
8267   acl_save_exec_prefix="$exec_prefix"
8268   exec_prefix="$acl_final_exec_prefix"
8269
8270           eval additional_includedir=\"$includedir\"
8271           eval additional_libdir=\"$libdir\"
8272
8273   exec_prefix="$acl_save_exec_prefix"
8274   prefix="$acl_save_prefix"
8275
8276       else
8277         additional_includedir="$withval/include"
8278         additional_libdir="$withval/lib"
8279       fi
8280     fi
8281
8282 fi
8283
8284       LIBICONV=
8285   LTLIBICONV=
8286   INCICONV=
8287   rpathdirs=
8288   ltrpathdirs=
8289   names_already_handled=
8290   names_next_round='iconv '
8291   while test -n "$names_next_round"; do
8292     names_this_round="$names_next_round"
8293     names_next_round=
8294     for name in $names_this_round; do
8295       already_handled=
8296       for n in $names_already_handled; do
8297         if test "$n" = "$name"; then
8298           already_handled=yes
8299           break
8300         fi
8301       done
8302       if test -z "$already_handled"; then
8303         names_already_handled="$names_already_handled $name"
8304                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8305         eval value=\"\$HAVE_LIB$uppername\"
8306         if test -n "$value"; then
8307           if test "$value" = yes; then
8308             eval value=\"\$LIB$uppername\"
8309             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8310             eval value=\"\$LTLIB$uppername\"
8311             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8312           else
8313                                     :
8314           fi
8315         else
8316                               found_dir=
8317           found_la=
8318           found_so=
8319           found_a=
8320           if test $use_additional = yes; then
8321             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8322               found_dir="$additional_libdir"
8323               found_so="$additional_libdir/lib$name.$shlibext"
8324               if test -f "$additional_libdir/lib$name.la"; then
8325                 found_la="$additional_libdir/lib$name.la"
8326               fi
8327             else
8328               if test -f "$additional_libdir/lib$name.$libext"; then
8329                 found_dir="$additional_libdir"
8330                 found_a="$additional_libdir/lib$name.$libext"
8331                 if test -f "$additional_libdir/lib$name.la"; then
8332                   found_la="$additional_libdir/lib$name.la"
8333                 fi
8334               fi
8335             fi
8336           fi
8337           if test "X$found_dir" = "X"; then
8338             for x in $LDFLAGS $LTLIBICONV; do
8339
8340   acl_save_prefix="$prefix"
8341   prefix="$acl_final_prefix"
8342   acl_save_exec_prefix="$exec_prefix"
8343   exec_prefix="$acl_final_exec_prefix"
8344   eval x=\"$x\"
8345   exec_prefix="$acl_save_exec_prefix"
8346   prefix="$acl_save_prefix"
8347
8348               case "$x" in
8349                 -L*)
8350                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8351                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8352                     found_dir="$dir"
8353                     found_so="$dir/lib$name.$shlibext"
8354                     if test -f "$dir/lib$name.la"; then
8355                       found_la="$dir/lib$name.la"
8356                     fi
8357                   else
8358                     if test -f "$dir/lib$name.$libext"; then
8359                       found_dir="$dir"
8360                       found_a="$dir/lib$name.$libext"
8361                       if test -f "$dir/lib$name.la"; then
8362                         found_la="$dir/lib$name.la"
8363                       fi
8364                     fi
8365                   fi
8366                   ;;
8367               esac
8368               if test "X$found_dir" != "X"; then
8369                 break
8370               fi
8371             done
8372           fi
8373           if test "X$found_dir" != "X"; then
8374                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8375             if test "X$found_so" != "X"; then
8376                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8377                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8378               else
8379                                                                                 haveit=
8380                 for x in $ltrpathdirs; do
8381                   if test "X$x" = "X$found_dir"; then
8382                     haveit=yes
8383                     break
8384                   fi
8385                 done
8386                 if test -z "$haveit"; then
8387                   ltrpathdirs="$ltrpathdirs $found_dir"
8388                 fi
8389                                 if test "$hardcode_direct" = yes; then
8390                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8391                 else
8392                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8393                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8394                                                             haveit=
8395                     for x in $rpathdirs; do
8396                       if test "X$x" = "X$found_dir"; then
8397                         haveit=yes
8398                         break
8399                       fi
8400                     done
8401                     if test -z "$haveit"; then
8402                       rpathdirs="$rpathdirs $found_dir"
8403                     fi
8404                   else
8405                                                                                 haveit=
8406                     for x in $LDFLAGS $LIBICONV; do
8407
8408   acl_save_prefix="$prefix"
8409   prefix="$acl_final_prefix"
8410   acl_save_exec_prefix="$exec_prefix"
8411   exec_prefix="$acl_final_exec_prefix"
8412   eval x=\"$x\"
8413   exec_prefix="$acl_save_exec_prefix"
8414   prefix="$acl_save_prefix"
8415
8416                       if test "X$x" = "X-L$found_dir"; then
8417                         haveit=yes
8418                         break
8419                       fi
8420                     done
8421                     if test -z "$haveit"; then
8422                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8423                     fi
8424                     if test "$hardcode_minus_L" != no; then
8425                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8426                     else
8427                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8428                     fi
8429                   fi
8430                 fi
8431               fi
8432             else
8433               if test "X$found_a" != "X"; then
8434                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8435               else
8436                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8437               fi
8438             fi
8439                         additional_includedir=
8440             case "$found_dir" in
8441               */lib | */lib/)
8442                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8443                 additional_includedir="$basedir/include"
8444                 ;;
8445             esac
8446             if test "X$additional_includedir" != "X"; then
8447                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8448                 haveit=
8449                 if test "X$additional_includedir" = "X/usr/local/include"; then
8450                   if test -n "$GCC"; then
8451                     case $host_os in
8452                       linux*) haveit=yes;;
8453                     esac
8454                   fi
8455                 fi
8456                 if test -z "$haveit"; then
8457                   for x in $CPPFLAGS $INCICONV; do
8458
8459   acl_save_prefix="$prefix"
8460   prefix="$acl_final_prefix"
8461   acl_save_exec_prefix="$exec_prefix"
8462   exec_prefix="$acl_final_exec_prefix"
8463   eval x=\"$x\"
8464   exec_prefix="$acl_save_exec_prefix"
8465   prefix="$acl_save_prefix"
8466
8467                     if test "X$x" = "X-I$additional_includedir"; then
8468                       haveit=yes
8469                       break
8470                     fi
8471                   done
8472                   if test -z "$haveit"; then
8473                     if test -d "$additional_includedir"; then
8474                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8475                     fi
8476                   fi
8477                 fi
8478               fi
8479             fi
8480                         if test -n "$found_la"; then
8481                                                         save_libdir="$libdir"
8482               case "$found_la" in
8483                 */* | *\\*) . "$found_la" ;;
8484                 *) . "./$found_la" ;;
8485               esac
8486               libdir="$save_libdir"
8487                             for dep in $dependency_libs; do
8488                 case "$dep" in
8489                   -L*)
8490                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8491                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8492                       haveit=
8493                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8494                         if test -n "$GCC"; then
8495                           case $host_os in
8496                             linux*) haveit=yes;;
8497                           esac
8498                         fi
8499                       fi
8500                       if test -z "$haveit"; then
8501                         haveit=
8502                         for x in $LDFLAGS $LIBICONV; do
8503
8504   acl_save_prefix="$prefix"
8505   prefix="$acl_final_prefix"
8506   acl_save_exec_prefix="$exec_prefix"
8507   exec_prefix="$acl_final_exec_prefix"
8508   eval x=\"$x\"
8509   exec_prefix="$acl_save_exec_prefix"
8510   prefix="$acl_save_prefix"
8511
8512                           if test "X$x" = "X-L$additional_libdir"; then
8513                             haveit=yes
8514                             break
8515                           fi
8516                         done
8517                         if test -z "$haveit"; then
8518                           if test -d "$additional_libdir"; then
8519                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8520                           fi
8521                         fi
8522                         haveit=
8523                         for x in $LDFLAGS $LTLIBICONV; do
8524
8525   acl_save_prefix="$prefix"
8526   prefix="$acl_final_prefix"
8527   acl_save_exec_prefix="$exec_prefix"
8528   exec_prefix="$acl_final_exec_prefix"
8529   eval x=\"$x\"
8530   exec_prefix="$acl_save_exec_prefix"
8531   prefix="$acl_save_prefix"
8532
8533                           if test "X$x" = "X-L$additional_libdir"; then
8534                             haveit=yes
8535                             break
8536                           fi
8537                         done
8538                         if test -z "$haveit"; then
8539                           if test -d "$additional_libdir"; then
8540                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8541                           fi
8542                         fi
8543                       fi
8544                     fi
8545                     ;;
8546                   -R*)
8547                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8548                     if test "$enable_rpath" != no; then
8549                                                                   haveit=
8550                       for x in $rpathdirs; do
8551                         if test "X$x" = "X$dir"; then
8552                           haveit=yes
8553                           break
8554                         fi
8555                       done
8556                       if test -z "$haveit"; then
8557                         rpathdirs="$rpathdirs $dir"
8558                       fi
8559                                                                   haveit=
8560                       for x in $ltrpathdirs; do
8561                         if test "X$x" = "X$dir"; then
8562                           haveit=yes
8563                           break
8564                         fi
8565                       done
8566                       if test -z "$haveit"; then
8567                         ltrpathdirs="$ltrpathdirs $dir"
8568                       fi
8569                     fi
8570                     ;;
8571                   -l*)
8572                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8573                     ;;
8574                   *.la)
8575                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8576                     ;;
8577                   *)
8578                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8579                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8580                     ;;
8581                 esac
8582               done
8583             fi
8584           else
8585                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8586             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8587           fi
8588         fi
8589       fi
8590     done
8591   done
8592   if test "X$rpathdirs" != "X"; then
8593     if test -n "$hardcode_libdir_separator"; then
8594                         alldirs=
8595       for found_dir in $rpathdirs; do
8596         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8597       done
8598             acl_save_libdir="$libdir"
8599       libdir="$alldirs"
8600       eval flag=\"$hardcode_libdir_flag_spec\"
8601       libdir="$acl_save_libdir"
8602       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8603     else
8604             for found_dir in $rpathdirs; do
8605         acl_save_libdir="$libdir"
8606         libdir="$found_dir"
8607         eval flag=\"$hardcode_libdir_flag_spec\"
8608         libdir="$acl_save_libdir"
8609         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8610       done
8611     fi
8612   fi
8613   if test "X$ltrpathdirs" != "X"; then
8614             for found_dir in $ltrpathdirs; do
8615       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8616     done
8617   fi
8618
8619
8620
8621
8622
8623
8624
8625
8626   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631   cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637 $ac_includes_default
8638 typedef ptrdiff_t ac__type_new_;
8639 int
8640 main ()
8641 {
8642 if ((ac__type_new_ *) 0)
8643   return 0;
8644 if (sizeof (ac__type_new_))
8645   return 0;
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_compile") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && {
8664          test -z "$ac_c_werror_flag" ||
8665          test ! -s conftest.err
8666        } && test -s conftest.$ac_objext; then
8667   ac_cv_type_ptrdiff_t=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672         ac_cv_type_ptrdiff_t=no
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8678 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8679 if test $ac_cv_type_ptrdiff_t = yes; then
8680   :
8681 else
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define ptrdiff_t long
8685 _ACEOF
8686
8687
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8701 stdlib.h string.h unistd.h sys/param.h
8702 do
8703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 fi
8710 ac_res=`eval echo '${'$as_ac_Header'}'`
8711                { echo "$as_me:$LINENO: result: $ac_res" >&5
8712 echo "${ECHO_T}$ac_res" >&6; }
8713 else
8714   # Is the header compilable?
8715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 $ac_includes_default
8724 #include <$ac_header>
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8728 case "(($ac_try" in
8729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730   *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733   (eval "$ac_compile") 2>conftest.er1
8734   ac_status=$?
8735   grep -v '^ *+' conftest.er1 >conftest.err
8736   rm -f conftest.er1
8737   cat conftest.err >&5
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } && {
8740          test -z "$ac_c_werror_flag" ||
8741          test ! -s conftest.err
8742        } && test -s conftest.$ac_objext; then
8743   ac_header_compiler=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748         ac_header_compiler=no
8749 fi
8750
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8753 echo "${ECHO_T}$ac_header_compiler" >&6; }
8754
8755 # Is the header present?
8756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 #include <$ac_header>
8765 _ACEOF
8766 if { (ac_try="$ac_cpp conftest.$ac_ext"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } >/dev/null && {
8779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8780          test ! -s conftest.err
8781        }; then
8782   ac_header_preproc=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787   ac_header_preproc=no
8788 fi
8789
8790 rm -f conftest.err conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6; }
8793
8794 # So?  What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8796   yes:no: )
8797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801     ac_header_preproc=yes
8802     ;;
8803   no:yes:* )
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8816
8817     ;;
8818 esac
8819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   eval "$as_ac_Header=\$ac_header_preproc"
8825 fi
8826 ac_res=`eval echo '${'$as_ac_Header'}'`
8827                { echo "$as_me:$LINENO: result: $ac_res" >&5
8828 echo "${ECHO_T}$ac_res" >&6; }
8829
8830 fi
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832   cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8834 _ACEOF
8835
8836 fi
8837
8838 done
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8864 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8865 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8866 __fsetlocking
8867 do
8868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8872   echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8882 #define $ac_func innocuous_$ac_func
8883
8884 /* System header to define __stub macros and hopefully few prototypes,
8885     which can conflict with char $ac_func (); below.
8886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8887     <limits.h> exists even on freestanding compilers.  */
8888
8889 #ifdef __STDC__
8890 # include <limits.h>
8891 #else
8892 # include <assert.h>
8893 #endif
8894
8895 #undef $ac_func
8896
8897 /* Override any GCC internal prototype to avoid an error.
8898    Use char because int might match the return type of a GCC
8899    builtin and then its argument prototype would still apply.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char $ac_func ();
8904 /* The GNU C library defines this for functions which it implements
8905     to always fail with ENOSYS.  Some functions are actually named
8906     something starting with __ and the normal name is an alias.  */
8907 #if defined __stub_$ac_func || defined __stub___$ac_func
8908 choke me
8909 #endif
8910
8911 int
8912 main ()
8913 {
8914 return $ac_func ();
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926   (eval "$ac_link") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } && {
8933          test -z "$ac_c_werror_flag" ||
8934          test ! -s conftest.err
8935        } && test -s conftest$ac_exeext &&
8936        $as_test_x conftest$ac_exeext; then
8937   eval "$as_ac_var=yes"
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942         eval "$as_ac_var=no"
8943 fi
8944
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946       conftest$ac_exeext conftest.$ac_ext
8947 fi
8948 ac_res=`eval echo '${'$as_ac_var'}'`
8949                { echo "$as_me:$LINENO: result: $ac_res" >&5
8950 echo "${ECHO_T}$ac_res" >&6; }
8951 if test `eval echo '${'$as_ac_var'}'` = yes; then
8952   cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8954 _ACEOF
8955
8956 fi
8957 done
8958
8959
8960
8961   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8962 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
8963 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972 #include <stdio.h>
8973 int
8974 main ()
8975 {
8976
8977 #ifndef _snprintf
8978   char *p = (char *) _snprintf;
8979 #endif
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (ac_try="$ac_compile"
8987 case "(($ac_try" in
8988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989   *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992   (eval "$ac_compile") 2>conftest.er1
8993   ac_status=$?
8994   grep -v '^ *+' conftest.er1 >conftest.err
8995   rm -f conftest.er1
8996   cat conftest.err >&5
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } && {
8999          test -z "$ac_c_werror_flag" ||
9000          test ! -s conftest.err
9001        } && test -s conftest.$ac_objext; then
9002   ac_cv_have_decl__snprintf=yes
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007         ac_cv_have_decl__snprintf=no
9008 fi
9009
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 fi
9012 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9013 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9014   if test $ac_cv_have_decl__snprintf = yes; then
9015     gt_value=1
9016   else
9017     gt_value=0
9018   fi
9019
9020 cat >>confdefs.h <<_ACEOF
9021 #define HAVE_DECL__SNPRINTF $gt_value
9022 _ACEOF
9023
9024
9025
9026   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9027 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9028 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031   cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037 #include <stdio.h>
9038 int
9039 main ()
9040 {
9041
9042 #ifndef _snwprintf
9043   char *p = (char *) _snwprintf;
9044 #endif
9045
9046   ;
9047   return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9052 case "(($ac_try" in
9053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054   *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057   (eval "$ac_compile") 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } && {
9064          test -z "$ac_c_werror_flag" ||
9065          test ! -s conftest.err
9066        } && test -s conftest.$ac_objext; then
9067   ac_cv_have_decl__snwprintf=yes
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072         ac_cv_have_decl__snwprintf=no
9073 fi
9074
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 fi
9077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9078 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9079   if test $ac_cv_have_decl__snwprintf = yes; then
9080     gt_value=1
9081   else
9082     gt_value=0
9083   fi
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DECL__SNWPRINTF $gt_value
9087 _ACEOF
9088
9089
9090
9091
9092   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9093 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9094 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103 #include <stdio.h>
9104 int
9105 main ()
9106 {
9107
9108 #ifndef feof_unlocked
9109   char *p = (char *) feof_unlocked;
9110 #endif
9111
9112   ;
9113   return 0;
9114 }
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_cv_have_decl_feof_unlocked=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138         ac_cv_have_decl_feof_unlocked=no
9139 fi
9140
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 fi
9143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9144 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9145   if test $ac_cv_have_decl_feof_unlocked = yes; then
9146     gt_value=1
9147   else
9148     gt_value=0
9149   fi
9150
9151 cat >>confdefs.h <<_ACEOF
9152 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9153 _ACEOF
9154
9155
9156
9157   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9158 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9159 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168 #include <stdio.h>
9169 int
9170 main ()
9171 {
9172
9173 #ifndef fgets_unlocked
9174   char *p = (char *) fgets_unlocked;
9175 #endif
9176
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (ac_try="$ac_compile"
9183 case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_compile") 2>conftest.er1
9189   ac_status=$?
9190   grep -v '^ *+' conftest.er1 >conftest.err
9191   rm -f conftest.er1
9192   cat conftest.err >&5
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } && {
9195          test -z "$ac_c_werror_flag" ||
9196          test ! -s conftest.err
9197        } && test -s conftest.$ac_objext; then
9198   ac_cv_have_decl_fgets_unlocked=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         ac_cv_have_decl_fgets_unlocked=no
9204 fi
9205
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 fi
9208 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9210   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9211     gt_value=1
9212   else
9213     gt_value=0
9214   fi
9215
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9218 _ACEOF
9219
9220
9221
9222   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9223 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9224 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233 #include <stdio.h>
9234 int
9235 main ()
9236 {
9237
9238 #ifndef getc_unlocked
9239   char *p = (char *) getc_unlocked;
9240 #endif
9241
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9248 case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_compile") 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } && {
9260          test -z "$ac_c_werror_flag" ||
9261          test ! -s conftest.err
9262        } && test -s conftest.$ac_objext; then
9263   ac_cv_have_decl_getc_unlocked=yes
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268         ac_cv_have_decl_getc_unlocked=no
9269 fi
9270
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 fi
9273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9274 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9275   if test $ac_cv_have_decl_getc_unlocked = yes; then
9276     gt_value=1
9277   else
9278     gt_value=0
9279   fi
9280
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9283 _ACEOF
9284
9285
9286
9287   case $gt_cv_func_printf_posix in
9288     *yes) HAVE_POSIX_PRINTF=1 ;;
9289     *) HAVE_POSIX_PRINTF=0 ;;
9290   esac
9291
9292   if test "$ac_cv_func_asprintf" = yes; then
9293     HAVE_ASPRINTF=1
9294   else
9295     HAVE_ASPRINTF=0
9296   fi
9297
9298   if test "$ac_cv_func_snprintf" = yes; then
9299     HAVE_SNPRINTF=1
9300   else
9301     HAVE_SNPRINTF=0
9302   fi
9303
9304   if test "$ac_cv_func_wprintf" = yes; then
9305     HAVE_WPRINTF=1
9306   else
9307     HAVE_WPRINTF=0
9308   fi
9309
9310
9311
9312
9313
9314
9315
9316           am_save_CPPFLAGS="$CPPFLAGS"
9317
9318   for element in $INCICONV; do
9319     haveit=
9320     for x in $CPPFLAGS; do
9321
9322   acl_save_prefix="$prefix"
9323   prefix="$acl_final_prefix"
9324   acl_save_exec_prefix="$exec_prefix"
9325   exec_prefix="$acl_final_exec_prefix"
9326   eval x=\"$x\"
9327   exec_prefix="$acl_save_exec_prefix"
9328   prefix="$acl_save_prefix"
9329
9330       if test "X$x" = "X$element"; then
9331         haveit=yes
9332         break
9333       fi
9334     done
9335     if test -z "$haveit"; then
9336       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9337     fi
9338   done
9339
9340
9341   { echo "$as_me:$LINENO: checking for iconv" >&5
9342 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9343 if test "${am_cv_func_iconv+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346
9347     am_cv_func_iconv="no, consider installing GNU libiconv"
9348     am_cv_lib_iconv=no
9349     cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355 #include <stdlib.h>
9356 #include <iconv.h>
9357 int
9358 main ()
9359 {
9360 iconv_t cd = iconv_open("","");
9361        iconv(cd,NULL,NULL,NULL,NULL);
9362        iconv_close(cd);
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (ac_try="$ac_link"
9369 case "(($ac_try" in
9370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371   *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374   (eval "$ac_link") 2>conftest.er1
9375   ac_status=$?
9376   grep -v '^ *+' conftest.er1 >conftest.err
9377   rm -f conftest.er1
9378   cat conftest.err >&5
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } && {
9381          test -z "$ac_c_werror_flag" ||
9382          test ! -s conftest.err
9383        } && test -s conftest$ac_exeext &&
9384        $as_test_x conftest$ac_exeext; then
9385   am_cv_func_iconv=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390
9391 fi
9392
9393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9394       conftest$ac_exeext conftest.$ac_ext
9395     if test "$am_cv_func_iconv" != yes; then
9396       am_save_LIBS="$LIBS"
9397       LIBS="$LIBS $LIBICONV"
9398       cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404 #include <stdlib.h>
9405 #include <iconv.h>
9406 int
9407 main ()
9408 {
9409 iconv_t cd = iconv_open("","");
9410          iconv(cd,NULL,NULL,NULL,NULL);
9411          iconv_close(cd);
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (ac_try="$ac_link"
9418 case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_link") 2>conftest.er1
9424   ac_status=$?
9425   grep -v '^ *+' conftest.er1 >conftest.err
9426   rm -f conftest.er1
9427   cat conftest.err >&5
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } && {
9430          test -z "$ac_c_werror_flag" ||
9431          test ! -s conftest.err
9432        } && test -s conftest$ac_exeext &&
9433        $as_test_x conftest$ac_exeext; then
9434   am_cv_lib_iconv=yes
9435         am_cv_func_iconv=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444       conftest$ac_exeext conftest.$ac_ext
9445       LIBS="$am_save_LIBS"
9446     fi
9447
9448 fi
9449 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9450 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9451   if test "$am_cv_func_iconv" = yes; then
9452
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_ICONV 1
9455 _ACEOF
9456
9457   fi
9458   if test "$am_cv_lib_iconv" = yes; then
9459     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9460 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9461     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9462 echo "${ECHO_T}$LIBICONV" >&6; }
9463   else
9464             CPPFLAGS="$am_save_CPPFLAGS"
9465     LIBICONV=
9466     LTLIBICONV=
9467   fi
9468
9469
9470
9471   if test "$am_cv_func_iconv" = yes; then
9472     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9473 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9474     if test "${am_cv_proto_iconv+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477
9478       cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h.  */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h.  */
9484
9485 #include <stdlib.h>
9486 #include <iconv.h>
9487 extern
9488 #ifdef __cplusplus
9489 "C"
9490 #endif
9491 #if defined(__STDC__) || defined(__cplusplus)
9492 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9493 #else
9494 size_t iconv();
9495 #endif
9496
9497 int
9498 main ()
9499 {
9500
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (ac_try="$ac_compile"
9507 case "(($ac_try" in
9508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509   *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512   (eval "$ac_compile") 2>conftest.er1
9513   ac_status=$?
9514   grep -v '^ *+' conftest.er1 >conftest.err
9515   rm -f conftest.er1
9516   cat conftest.err >&5
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } && {
9519          test -z "$ac_c_werror_flag" ||
9520          test ! -s conftest.err
9521        } && test -s conftest.$ac_objext; then
9522   am_cv_proto_iconv_arg1=""
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527         am_cv_proto_iconv_arg1="const"
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531       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);"
9532 fi
9533
9534     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9535     { echo "$as_me:$LINENO: result: ${ac_t:-
9536          }$am_cv_proto_iconv" >&5
9537 echo "${ECHO_T}${ac_t:-
9538          }$am_cv_proto_iconv" >&6; }
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define ICONV_CONST $am_cv_proto_iconv_arg1
9542 _ACEOF
9543
9544   fi
9545
9546
9547   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9548 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9549 if test "${am_cv_langinfo_codeset+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 <langinfo.h>
9559 int
9560 main ()
9561 {
9562 char* cs = nl_langinfo(CODESET);
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9569 case "(($ac_try" in
9570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571   *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574   (eval "$ac_link") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } && {
9581          test -z "$ac_c_werror_flag" ||
9582          test ! -s conftest.err
9583        } && test -s conftest$ac_exeext &&
9584        $as_test_x conftest$ac_exeext; then
9585   am_cv_langinfo_codeset=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590         am_cv_langinfo_codeset=no
9591 fi
9592
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594       conftest$ac_exeext conftest.$ac_ext
9595
9596 fi
9597 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9598 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9599   if test $am_cv_langinfo_codeset = yes; then
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_LANGINFO_CODESET 1
9603 _ACEOF
9604
9605   fi
9606
9607   if test $ac_cv_header_locale_h = yes; then
9608
9609   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9610 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9611 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h.  */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h.  */
9620 #include <locale.h>
9621 int
9622 main ()
9623 {
9624 return LC_MESSAGES
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633   *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636   (eval "$ac_link") 2>conftest.er1
9637   ac_status=$?
9638   grep -v '^ *+' conftest.er1 >conftest.err
9639   rm -f conftest.er1
9640   cat conftest.err >&5
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); } && {
9643          test -z "$ac_c_werror_flag" ||
9644          test ! -s conftest.err
9645        } && test -s conftest$ac_exeext &&
9646        $as_test_x conftest$ac_exeext; then
9647   am_cv_val_LC_MESSAGES=yes
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652         am_cv_val_LC_MESSAGES=no
9653 fi
9654
9655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656       conftest$ac_exeext conftest.$ac_ext
9657 fi
9658 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9659 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9660   if test $am_cv_val_LC_MESSAGES = yes; then
9661
9662 cat >>confdefs.h <<\_ACEOF
9663 #define HAVE_LC_MESSAGES 1
9664 _ACEOF
9665
9666   fi
9667
9668   fi
9669
9670                       for ac_prog in bison
9671 do
9672   # Extract the first word of "$ac_prog", so it can be a program name with args.
9673 set dummy $ac_prog; ac_word=$2
9674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9676 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   if test -n "$INTLBISON"; then
9680   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9681 else
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683 for as_dir in $PATH
9684 do
9685   IFS=$as_save_IFS
9686   test -z "$as_dir" && as_dir=.
9687   for ac_exec_ext in '' $ac_executable_extensions; do
9688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9689     ac_cv_prog_INTLBISON="$ac_prog"
9690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9691     break 2
9692   fi
9693 done
9694 done
9695 IFS=$as_save_IFS
9696
9697 fi
9698 fi
9699 INTLBISON=$ac_cv_prog_INTLBISON
9700 if test -n "$INTLBISON"; then
9701   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9702 echo "${ECHO_T}$INTLBISON" >&6; }
9703 else
9704   { echo "$as_me:$LINENO: result: no" >&5
9705 echo "${ECHO_T}no" >&6; }
9706 fi
9707
9708
9709   test -n "$INTLBISON" && break
9710 done
9711
9712   if test -z "$INTLBISON"; then
9713     ac_verc_fail=yes
9714   else
9715         { echo "$as_me:$LINENO: checking version of bison" >&5
9716 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9717     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9718     case $ac_prog_version in
9719       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9720       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9721          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9722       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9723     esac
9724     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9725 echo "${ECHO_T}$ac_prog_version" >&6; }
9726   fi
9727   if test $ac_verc_fail = yes; then
9728     INTLBISON=:
9729   fi
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9747 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9748     # Check whether --enable-nls was given.
9749 if test "${enable_nls+set}" = set; then
9750   enableval=$enable_nls; USE_NLS=$enableval
9751 else
9752   USE_NLS=yes
9753 fi
9754
9755   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9756 echo "${ECHO_T}$USE_NLS" >&6; }
9757
9758
9759
9760
9761     BUILD_INCLUDED_LIBINTL=no
9762     USE_INCLUDED_LIBINTL=no
9763
9764   LIBINTL=
9765   LTLIBINTL=
9766   POSUB=
9767
9768     if test "$USE_NLS" = "yes"; then
9769     gt_use_preinstalled_gnugettext=no
9770
9771       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9772 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9773
9774 # Check whether --with-included-gettext was given.
9775 if test "${with_included_gettext+set}" = set; then
9776   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9777 else
9778   nls_cv_force_use_gnu_gettext=no
9779 fi
9780
9781       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9782 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9783
9784       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9785       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9786
9787
9788
9789
9790
9791
9792         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9793 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9794 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797   cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #include <libintl.h>
9804 extern int _nl_msg_cat_cntr;
9805 extern int *_nl_domain_bindings;
9806 int
9807 main ()
9808 {
9809 bindtextdomain ("", "");
9810 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_link") 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } && {
9829          test -z "$ac_c_werror_flag" ||
9830          test ! -s conftest.err
9831        } && test -s conftest$ac_exeext &&
9832        $as_test_x conftest$ac_exeext; then
9833   gt_cv_func_gnugettext1_libc=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838         gt_cv_func_gnugettext1_libc=no
9839 fi
9840
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842       conftest$ac_exeext conftest.$ac_ext
9843 fi
9844 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9845 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9846
9847         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9848
9849
9850
9851     use_additional=yes
9852
9853   acl_save_prefix="$prefix"
9854   prefix="$acl_final_prefix"
9855   acl_save_exec_prefix="$exec_prefix"
9856   exec_prefix="$acl_final_exec_prefix"
9857
9858     eval additional_includedir=\"$includedir\"
9859     eval additional_libdir=\"$libdir\"
9860
9861   exec_prefix="$acl_save_exec_prefix"
9862   prefix="$acl_save_prefix"
9863
9864
9865 # Check whether --with-libintl-prefix was given.
9866 if test "${with_libintl_prefix+set}" = set; then
9867   withval=$with_libintl_prefix;
9868     if test "X$withval" = "Xno"; then
9869       use_additional=no
9870     else
9871       if test "X$withval" = "X"; then
9872
9873   acl_save_prefix="$prefix"
9874   prefix="$acl_final_prefix"
9875   acl_save_exec_prefix="$exec_prefix"
9876   exec_prefix="$acl_final_exec_prefix"
9877
9878           eval additional_includedir=\"$includedir\"
9879           eval additional_libdir=\"$libdir\"
9880
9881   exec_prefix="$acl_save_exec_prefix"
9882   prefix="$acl_save_prefix"
9883
9884       else
9885         additional_includedir="$withval/include"
9886         additional_libdir="$withval/lib"
9887       fi
9888     fi
9889
9890 fi
9891
9892       LIBINTL=
9893   LTLIBINTL=
9894   INCINTL=
9895   rpathdirs=
9896   ltrpathdirs=
9897   names_already_handled=
9898   names_next_round='intl '
9899   while test -n "$names_next_round"; do
9900     names_this_round="$names_next_round"
9901     names_next_round=
9902     for name in $names_this_round; do
9903       already_handled=
9904       for n in $names_already_handled; do
9905         if test "$n" = "$name"; then
9906           already_handled=yes
9907           break
9908         fi
9909       done
9910       if test -z "$already_handled"; then
9911         names_already_handled="$names_already_handled $name"
9912                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9913         eval value=\"\$HAVE_LIB$uppername\"
9914         if test -n "$value"; then
9915           if test "$value" = yes; then
9916             eval value=\"\$LIB$uppername\"
9917             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9918             eval value=\"\$LTLIB$uppername\"
9919             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9920           else
9921                                     :
9922           fi
9923         else
9924                               found_dir=
9925           found_la=
9926           found_so=
9927           found_a=
9928           if test $use_additional = yes; then
9929             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9930               found_dir="$additional_libdir"
9931               found_so="$additional_libdir/lib$name.$shlibext"
9932               if test -f "$additional_libdir/lib$name.la"; then
9933                 found_la="$additional_libdir/lib$name.la"
9934               fi
9935             else
9936               if test -f "$additional_libdir/lib$name.$libext"; then
9937                 found_dir="$additional_libdir"
9938                 found_a="$additional_libdir/lib$name.$libext"
9939                 if test -f "$additional_libdir/lib$name.la"; then
9940                   found_la="$additional_libdir/lib$name.la"
9941                 fi
9942               fi
9943             fi
9944           fi
9945           if test "X$found_dir" = "X"; then
9946             for x in $LDFLAGS $LTLIBINTL; do
9947
9948   acl_save_prefix="$prefix"
9949   prefix="$acl_final_prefix"
9950   acl_save_exec_prefix="$exec_prefix"
9951   exec_prefix="$acl_final_exec_prefix"
9952   eval x=\"$x\"
9953   exec_prefix="$acl_save_exec_prefix"
9954   prefix="$acl_save_prefix"
9955
9956               case "$x" in
9957                 -L*)
9958                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9959                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9960                     found_dir="$dir"
9961                     found_so="$dir/lib$name.$shlibext"
9962                     if test -f "$dir/lib$name.la"; then
9963                       found_la="$dir/lib$name.la"
9964                     fi
9965                   else
9966                     if test -f "$dir/lib$name.$libext"; then
9967                       found_dir="$dir"
9968                       found_a="$dir/lib$name.$libext"
9969                       if test -f "$dir/lib$name.la"; then
9970                         found_la="$dir/lib$name.la"
9971                       fi
9972                     fi
9973                   fi
9974                   ;;
9975               esac
9976               if test "X$found_dir" != "X"; then
9977                 break
9978               fi
9979             done
9980           fi
9981           if test "X$found_dir" != "X"; then
9982                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9983             if test "X$found_so" != "X"; then
9984                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9985                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9986               else
9987                                                                                 haveit=
9988                 for x in $ltrpathdirs; do
9989                   if test "X$x" = "X$found_dir"; then
9990                     haveit=yes
9991                     break
9992                   fi
9993                 done
9994                 if test -z "$haveit"; then
9995                   ltrpathdirs="$ltrpathdirs $found_dir"
9996                 fi
9997                                 if test "$hardcode_direct" = yes; then
9998                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9999                 else
10000                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10001                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10002                                                             haveit=
10003                     for x in $rpathdirs; do
10004                       if test "X$x" = "X$found_dir"; then
10005                         haveit=yes
10006                         break
10007                       fi
10008                     done
10009                     if test -z "$haveit"; then
10010                       rpathdirs="$rpathdirs $found_dir"
10011                     fi
10012                   else
10013                                                                                 haveit=
10014                     for x in $LDFLAGS $LIBINTL; do
10015
10016   acl_save_prefix="$prefix"
10017   prefix="$acl_final_prefix"
10018   acl_save_exec_prefix="$exec_prefix"
10019   exec_prefix="$acl_final_exec_prefix"
10020   eval x=\"$x\"
10021   exec_prefix="$acl_save_exec_prefix"
10022   prefix="$acl_save_prefix"
10023
10024                       if test "X$x" = "X-L$found_dir"; then
10025                         haveit=yes
10026                         break
10027                       fi
10028                     done
10029                     if test -z "$haveit"; then
10030                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10031                     fi
10032                     if test "$hardcode_minus_L" != no; then
10033                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10034                     else
10035                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10036                     fi
10037                   fi
10038                 fi
10039               fi
10040             else
10041               if test "X$found_a" != "X"; then
10042                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10043               else
10044                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10045               fi
10046             fi
10047                         additional_includedir=
10048             case "$found_dir" in
10049               */lib | */lib/)
10050                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10051                 additional_includedir="$basedir/include"
10052                 ;;
10053             esac
10054             if test "X$additional_includedir" != "X"; then
10055                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10056                 haveit=
10057                 if test "X$additional_includedir" = "X/usr/local/include"; then
10058                   if test -n "$GCC"; then
10059                     case $host_os in
10060                       linux*) haveit=yes;;
10061                     esac
10062                   fi
10063                 fi
10064                 if test -z "$haveit"; then
10065                   for x in $CPPFLAGS $INCINTL; do
10066
10067   acl_save_prefix="$prefix"
10068   prefix="$acl_final_prefix"
10069   acl_save_exec_prefix="$exec_prefix"
10070   exec_prefix="$acl_final_exec_prefix"
10071   eval x=\"$x\"
10072   exec_prefix="$acl_save_exec_prefix"
10073   prefix="$acl_save_prefix"
10074
10075                     if test "X$x" = "X-I$additional_includedir"; then
10076                       haveit=yes
10077                       break
10078                     fi
10079                   done
10080                   if test -z "$haveit"; then
10081                     if test -d "$additional_includedir"; then
10082                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10083                     fi
10084                   fi
10085                 fi
10086               fi
10087             fi
10088                         if test -n "$found_la"; then
10089                                                         save_libdir="$libdir"
10090               case "$found_la" in
10091                 */* | *\\*) . "$found_la" ;;
10092                 *) . "./$found_la" ;;
10093               esac
10094               libdir="$save_libdir"
10095                             for dep in $dependency_libs; do
10096                 case "$dep" in
10097                   -L*)
10098                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10099                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10100                       haveit=
10101                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10102                         if test -n "$GCC"; then
10103                           case $host_os in
10104                             linux*) haveit=yes;;
10105                           esac
10106                         fi
10107                       fi
10108                       if test -z "$haveit"; then
10109                         haveit=
10110                         for x in $LDFLAGS $LIBINTL; do
10111
10112   acl_save_prefix="$prefix"
10113   prefix="$acl_final_prefix"
10114   acl_save_exec_prefix="$exec_prefix"
10115   exec_prefix="$acl_final_exec_prefix"
10116   eval x=\"$x\"
10117   exec_prefix="$acl_save_exec_prefix"
10118   prefix="$acl_save_prefix"
10119
10120                           if test "X$x" = "X-L$additional_libdir"; then
10121                             haveit=yes
10122                             break
10123                           fi
10124                         done
10125                         if test -z "$haveit"; then
10126                           if test -d "$additional_libdir"; then
10127                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10128                           fi
10129                         fi
10130                         haveit=
10131                         for x in $LDFLAGS $LTLIBINTL; do
10132
10133   acl_save_prefix="$prefix"
10134   prefix="$acl_final_prefix"
10135   acl_save_exec_prefix="$exec_prefix"
10136   exec_prefix="$acl_final_exec_prefix"
10137   eval x=\"$x\"
10138   exec_prefix="$acl_save_exec_prefix"
10139   prefix="$acl_save_prefix"
10140
10141                           if test "X$x" = "X-L$additional_libdir"; then
10142                             haveit=yes
10143                             break
10144                           fi
10145                         done
10146                         if test -z "$haveit"; then
10147                           if test -d "$additional_libdir"; then
10148                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10149                           fi
10150                         fi
10151                       fi
10152                     fi
10153                     ;;
10154                   -R*)
10155                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10156                     if test "$enable_rpath" != no; then
10157                                                                   haveit=
10158                       for x in $rpathdirs; do
10159                         if test "X$x" = "X$dir"; then
10160                           haveit=yes
10161                           break
10162                         fi
10163                       done
10164                       if test -z "$haveit"; then
10165                         rpathdirs="$rpathdirs $dir"
10166                       fi
10167                                                                   haveit=
10168                       for x in $ltrpathdirs; do
10169                         if test "X$x" = "X$dir"; then
10170                           haveit=yes
10171                           break
10172                         fi
10173                       done
10174                       if test -z "$haveit"; then
10175                         ltrpathdirs="$ltrpathdirs $dir"
10176                       fi
10177                     fi
10178                     ;;
10179                   -l*)
10180                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10181                     ;;
10182                   *.la)
10183                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10184                     ;;
10185                   *)
10186                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10187                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10188                     ;;
10189                 esac
10190               done
10191             fi
10192           else
10193                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10194             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10195           fi
10196         fi
10197       fi
10198     done
10199   done
10200   if test "X$rpathdirs" != "X"; then
10201     if test -n "$hardcode_libdir_separator"; then
10202                         alldirs=
10203       for found_dir in $rpathdirs; do
10204         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10205       done
10206             acl_save_libdir="$libdir"
10207       libdir="$alldirs"
10208       eval flag=\"$hardcode_libdir_flag_spec\"
10209       libdir="$acl_save_libdir"
10210       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10211     else
10212             for found_dir in $rpathdirs; do
10213         acl_save_libdir="$libdir"
10214         libdir="$found_dir"
10215         eval flag=\"$hardcode_libdir_flag_spec\"
10216         libdir="$acl_save_libdir"
10217         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10218       done
10219     fi
10220   fi
10221   if test "X$ltrpathdirs" != "X"; then
10222             for found_dir in $ltrpathdirs; do
10223       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10224     done
10225   fi
10226
10227           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10228 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10229 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   gt_save_CPPFLAGS="$CPPFLAGS"
10233             CPPFLAGS="$CPPFLAGS $INCINTL"
10234             gt_save_LIBS="$LIBS"
10235             LIBS="$LIBS $LIBINTL"
10236                         cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #include <libintl.h>
10243 extern int _nl_msg_cat_cntr;
10244 extern
10245 #ifdef __cplusplus
10246 "C"
10247 #endif
10248 const char *_nl_expand_alias ();
10249 int
10250 main ()
10251 {
10252 bindtextdomain ("", "");
10253 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } && {
10272          test -z "$ac_c_werror_flag" ||
10273          test ! -s conftest.err
10274        } && test -s conftest$ac_exeext &&
10275        $as_test_x conftest$ac_exeext; then
10276   gt_cv_func_gnugettext1_libintl=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281         gt_cv_func_gnugettext1_libintl=no
10282 fi
10283
10284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10285       conftest$ac_exeext conftest.$ac_ext
10286                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10287               LIBS="$LIBS $LIBICONV"
10288               cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294 #include <libintl.h>
10295 extern int _nl_msg_cat_cntr;
10296 extern
10297 #ifdef __cplusplus
10298 "C"
10299 #endif
10300 const char *_nl_expand_alias ();
10301 int
10302 main ()
10303 {
10304 bindtextdomain ("", "");
10305 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_link") 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && {
10324          test -z "$ac_c_werror_flag" ||
10325          test ! -s conftest.err
10326        } && test -s conftest$ac_exeext &&
10327        $as_test_x conftest$ac_exeext; then
10328   LIBINTL="$LIBINTL $LIBICONV"
10329                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10330                 gt_cv_func_gnugettext1_libintl=yes
10331
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336
10337 fi
10338
10339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340       conftest$ac_exeext conftest.$ac_ext
10341             fi
10342             CPPFLAGS="$gt_save_CPPFLAGS"
10343             LIBS="$gt_save_LIBS"
10344 fi
10345 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10346 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10347         fi
10348
10349                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10350            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10351                 && test "$PACKAGE" != gettext-runtime \
10352                 && test "$PACKAGE" != gettext-tools; }; then
10353           gt_use_preinstalled_gnugettext=yes
10354         else
10355                     LIBINTL=
10356           LTLIBINTL=
10357           INCINTL=
10358         fi
10359
10360
10361         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10362                               nls_cv_use_gnu_gettext=yes
10363         fi
10364       fi
10365
10366       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10367                 BUILD_INCLUDED_LIBINTL=yes
10368         USE_INCLUDED_LIBINTL=yes
10369         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10370         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10371         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10372       fi
10373
10374       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10375          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10376                 CATOBJEXT=.gmo
10377       fi
10378
10379
10380     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10381        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define ENABLE_NLS 1
10385 _ACEOF
10386
10387     else
10388       USE_NLS=no
10389     fi
10390   fi
10391
10392   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10393 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10394   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10395 echo "${ECHO_T}$USE_NLS" >&6; }
10396   if test "$USE_NLS" = "yes"; then
10397     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10398 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10399     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10400       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10401         gt_source="external libintl"
10402       else
10403         gt_source="libc"
10404       fi
10405     else
10406       gt_source="included intl directory"
10407     fi
10408     { echo "$as_me:$LINENO: result: $gt_source" >&5
10409 echo "${ECHO_T}$gt_source" >&6; }
10410   fi
10411
10412   if test "$USE_NLS" = "yes"; then
10413
10414     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10415       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10416         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10417 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10418         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10419 echo "${ECHO_T}$LIBINTL" >&6; }
10420
10421   for element in $INCINTL; do
10422     haveit=
10423     for x in $CPPFLAGS; do
10424
10425   acl_save_prefix="$prefix"
10426   prefix="$acl_final_prefix"
10427   acl_save_exec_prefix="$exec_prefix"
10428   exec_prefix="$acl_final_exec_prefix"
10429   eval x=\"$x\"
10430   exec_prefix="$acl_save_exec_prefix"
10431   prefix="$acl_save_prefix"
10432
10433       if test "X$x" = "X$element"; then
10434         haveit=yes
10435         break
10436       fi
10437     done
10438     if test -z "$haveit"; then
10439       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10440     fi
10441   done
10442
10443       fi
10444
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_GETTEXT 1
10448 _ACEOF
10449
10450
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_DCGETTEXT 1
10453 _ACEOF
10454
10455     fi
10456
10457         POSUB=po
10458   fi
10459
10460
10461             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10462       BUILD_INCLUDED_LIBINTL=yes
10463     fi
10464
10465
10466
10467
10468
10469         nls_cv_header_intl=
10470     nls_cv_header_libgt=
10471
10472         DATADIRNAME=share
10473
10474
10475         INSTOBJEXT=.mo
10476
10477
10478         GENCAT=gencat
10479
10480
10481         if test "$USE_INCLUDED_LIBINTL" = yes; then
10482       INTLOBJS="\$(GETTOBJS)"
10483     fi
10484
10485
10486         INTL_LIBTOOL_SUFFIX_PREFIX=
10487
10488
10489
10490     INTLLIBS="$LIBINTL"
10491
10492
10493
10494
10495
10496
10497
10498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   cat >conftest.make <<\_ACEOF
10505 SHELL = /bin/sh
10506 all:
10507         @echo '@@@%%%=$(MAKE)=@@@%%%'
10508 _ACEOF
10509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10511   *@@@%%%=?*=@@@%%%*)
10512     eval ac_cv_prog_make_${ac_make}_set=yes;;
10513   *)
10514     eval ac_cv_prog_make_${ac_make}_set=no;;
10515 esac
10516 rm -f conftest.make
10517 fi
10518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10519   { echo "$as_me:$LINENO: result: yes" >&5
10520 echo "${ECHO_T}yes" >&6; }
10521   SET_MAKE=
10522 else
10523   { echo "$as_me:$LINENO: result: no" >&5
10524 echo "${ECHO_T}no" >&6; }
10525   SET_MAKE="MAKE=${MAKE-make}"
10526 fi
10527
10528 # Extract the first word of "ln", so it can be a program name with args.
10529 set dummy ln; ac_word=$2
10530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10532 if test "${ac_cv_path_LN+set}" = set; then
10533   echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535   case $LN in
10536   [\\/]* | ?:[\\/]*)
10537   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10538   ;;
10539   *)
10540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543   IFS=$as_save_IFS
10544   test -z "$as_dir" && as_dir=.
10545   for ac_exec_ext in '' $ac_executable_extensions; do
10546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549     break 2
10550   fi
10551 done
10552 done
10553 IFS=$as_save_IFS
10554
10555   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10556   ;;
10557 esac
10558 fi
10559 LN=$ac_cv_path_LN
10560 if test -n "$LN"; then
10561   { echo "$as_me:$LINENO: result: $LN" >&5
10562 echo "${ECHO_T}$LN" >&6; }
10563 else
10564   { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10566 fi
10567
10568
10569 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10570 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10571 LN_S=$as_ln_s
10572 if test "$LN_S" = "ln -s"; then
10573   { echo "$as_me:$LINENO: result: yes" >&5
10574 echo "${ECHO_T}yes" >&6; }
10575 else
10576   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10577 echo "${ECHO_T}no, using $LN_S" >&6; }
10578 fi
10579
10580 # Extract the first word of "mv", so it can be a program name with args.
10581 set dummy mv; ac_word=$2
10582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10584 if test "${ac_cv_path_MV+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587   case $MV in
10588   [\\/]* | ?:[\\/]*)
10589   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10590   ;;
10591   *)
10592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595   IFS=$as_save_IFS
10596   test -z "$as_dir" && as_dir=.
10597   for ac_exec_ext in '' $ac_executable_extensions; do
10598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10599     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10601     break 2
10602   fi
10603 done
10604 done
10605 IFS=$as_save_IFS
10606
10607   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10608   ;;
10609 esac
10610 fi
10611 MV=$ac_cv_path_MV
10612 if test -n "$MV"; then
10613   { echo "$as_me:$LINENO: result: $MV" >&5
10614 echo "${ECHO_T}$MV" >&6; }
10615 else
10616   { echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6; }
10618 fi
10619
10620
10621 # Extract the first word of "cp", so it can be a program name with args.
10622 set dummy cp; ac_word=$2
10623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10625 if test "${ac_cv_path_CP+set}" = set; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628   case $CP in
10629   [\\/]* | ?:[\\/]*)
10630   ac_cv_path_CP="$CP" # Let the user override the test with a path.
10631   ;;
10632   *)
10633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636   IFS=$as_save_IFS
10637   test -z "$as_dir" && as_dir=.
10638   for ac_exec_ext in '' $ac_executable_extensions; do
10639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642     break 2
10643   fi
10644 done
10645 done
10646 IFS=$as_save_IFS
10647
10648   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10649   ;;
10650 esac
10651 fi
10652 CP=$ac_cv_path_CP
10653 if test -n "$CP"; then
10654   { echo "$as_me:$LINENO: result: $CP" >&5
10655 echo "${ECHO_T}$CP" >&6; }
10656 else
10657   { echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6; }
10659 fi
10660
10661
10662 # Extract the first word of "rm", so it can be a program name with args.
10663 set dummy rm; ac_word=$2
10664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10666 if test "${ac_cv_path_RM+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   case $RM in
10670   [\\/]* | ?:[\\/]*)
10671   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10672   ;;
10673   *)
10674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677   IFS=$as_save_IFS
10678   test -z "$as_dir" && as_dir=.
10679   for ac_exec_ext in '' $ac_executable_extensions; do
10680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683     break 2
10684   fi
10685 done
10686 done
10687 IFS=$as_save_IFS
10688
10689   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10690   ;;
10691 esac
10692 fi
10693 RM=$ac_cv_path_RM
10694 if test -n "$RM"; then
10695   { echo "$as_me:$LINENO: result: $RM" >&5
10696 echo "${ECHO_T}$RM" >&6; }
10697 else
10698   { echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6; }
10700 fi
10701
10702
10703 # Extract the first word of "chmod", so it can be a program name with args.
10704 set dummy chmod; ac_word=$2
10705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10707 if test "${ac_cv_path_CHMOD+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   case $CHMOD in
10711   [\\/]* | ?:[\\/]*)
10712   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10713   ;;
10714   *)
10715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10717 do
10718   IFS=$as_save_IFS
10719   test -z "$as_dir" && as_dir=.
10720   for ac_exec_ext in '' $ac_executable_extensions; do
10721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10724     break 2
10725   fi
10726 done
10727 done
10728 IFS=$as_save_IFS
10729
10730   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10731   ;;
10732 esac
10733 fi
10734 CHMOD=$ac_cv_path_CHMOD
10735 if test -n "$CHMOD"; then
10736   { echo "$as_me:$LINENO: result: $CHMOD" >&5
10737 echo "${ECHO_T}$CHMOD" >&6; }
10738 else
10739   { echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6; }
10741 fi
10742
10743
10744 for ac_prog in gawk mawk nawk awk
10745 do
10746   # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10750 if test "${ac_cv_prog_AWK+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   if test -n "$AWK"; then
10754   ac_cv_prog_AWK="$AWK" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761   for ac_exec_ext in '' $ac_executable_extensions; do
10762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763     ac_cv_prog_AWK="$ac_prog"
10764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765     break 2
10766   fi
10767 done
10768 done
10769 IFS=$as_save_IFS
10770
10771 fi
10772 fi
10773 AWK=$ac_cv_prog_AWK
10774 if test -n "$AWK"; then
10775   { echo "$as_me:$LINENO: result: $AWK" >&5
10776 echo "${ECHO_T}$AWK" >&6; }
10777 else
10778   { echo "$as_me:$LINENO: result: no" >&5
10779 echo "${ECHO_T}no" >&6; }
10780 fi
10781
10782
10783   test -n "$AWK" && break
10784 done
10785
10786 { echo "$as_me:$LINENO: checking for egrep" >&5
10787 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10788 if test "${ac_cv_path_EGREP+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10792    then ac_cv_path_EGREP="$GREP -E"
10793    else
10794      # Extract the first word of "egrep" to use in msg output
10795 if test -z "$EGREP"; then
10796 set dummy egrep; ac_prog_name=$2
10797 if test "${ac_cv_path_EGREP+set}" = set; then
10798   echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800   ac_path_EGREP_found=false
10801 # Loop through the user's path and test for each of PROGNAME-LIST
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10804 do
10805   IFS=$as_save_IFS
10806   test -z "$as_dir" && as_dir=.
10807   for ac_prog in egrep; do
10808   for ac_exec_ext in '' $ac_executable_extensions; do
10809     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10810     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10811     # Check for GNU ac_path_EGREP and select it if it is found.
10812   # Check for GNU $ac_path_EGREP
10813 case `"$ac_path_EGREP" --version 2>&1` in
10814 *GNU*)
10815   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10816 *)
10817   ac_count=0
10818   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10819   while :
10820   do
10821     cat "conftest.in" "conftest.in" >"conftest.tmp"
10822     mv "conftest.tmp" "conftest.in"
10823     cp "conftest.in" "conftest.nl"
10824     echo 'EGREP' >> "conftest.nl"
10825     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10827     ac_count=`expr $ac_count + 1`
10828     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10829       # Best one so far, save it but keep looking for a better one
10830       ac_cv_path_EGREP="$ac_path_EGREP"
10831       ac_path_EGREP_max=$ac_count
10832     fi
10833     # 10*(2^10) chars as input seems more than enough
10834     test $ac_count -gt 10 && break
10835   done
10836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10837 esac
10838
10839
10840     $ac_path_EGREP_found && break 3
10841   done
10842 done
10843
10844 done
10845 IFS=$as_save_IFS
10846
10847
10848 fi
10849
10850 EGREP="$ac_cv_path_EGREP"
10851 if test -z "$EGREP"; then
10852   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10853 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10854    { (exit 1); exit 1; }; }
10855 fi
10856
10857 else
10858   ac_cv_path_EGREP=$EGREP
10859 fi
10860
10861
10862    fi
10863 fi
10864 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10865 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10866  EGREP="$ac_cv_path_EGREP"
10867
10868
10869 # Extract the first word of "sed", so it can be a program name with args.
10870 set dummy sed; ac_word=$2
10871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10873 if test "${ac_cv_path_SED+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   case $SED in
10877   [\\/]* | ?:[\\/]*)
10878   ac_cv_path_SED="$SED" # Let the user override the test with a path.
10879   ;;
10880   *)
10881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886   for ac_exec_ext in '' $ac_executable_extensions; do
10887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893 done
10894 IFS=$as_save_IFS
10895
10896   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10897   ;;
10898 esac
10899 fi
10900 SED=$ac_cv_path_SED
10901 if test -n "$SED"; then
10902   { echo "$as_me:$LINENO: result: $SED" >&5
10903 echo "${ECHO_T}$SED" >&6; }
10904 else
10905   { echo "$as_me:$LINENO: result: no" >&5
10906 echo "${ECHO_T}no" >&6; }
10907 fi
10908
10909
10910 # Extract the first word of "perl", so it can be a program name with args.
10911 set dummy perl; ac_word=$2
10912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10914 if test "${ac_cv_path_PERL+set}" = set; then
10915   echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917   case $PERL in
10918   [\\/]* | ?:[\\/]*)
10919   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10920   ;;
10921   *)
10922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925   IFS=$as_save_IFS
10926   test -z "$as_dir" && as_dir=.
10927   for ac_exec_ext in '' $ac_executable_extensions; do
10928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934 done
10935 IFS=$as_save_IFS
10936
10937   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10938   ;;
10939 esac
10940 fi
10941 PERL=$ac_cv_path_PERL
10942 if test -n "$PERL"; then
10943   { echo "$as_me:$LINENO: result: $PERL" >&5
10944 echo "${ECHO_T}$PERL" >&6; }
10945 else
10946   { echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6; }
10948 fi
10949
10950
10951 # Extract the first word of "ldconfig", so it can be a program name with args.
10952 set dummy ldconfig; ac_word=$2
10953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10955 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   case $LDCONFIG in
10959   [\\/]* | ?:[\\/]*)
10960   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10961   ;;
10962   *)
10963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10965 do
10966   IFS=$as_save_IFS
10967   test -z "$as_dir" && as_dir=.
10968   for ac_exec_ext in '' $ac_executable_extensions; do
10969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972     break 2
10973   fi
10974 done
10975 done
10976 IFS=$as_save_IFS
10977
10978   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10979   ;;
10980 esac
10981 fi
10982 LDCONFIG=$ac_cv_path_LDCONFIG
10983 if test -n "$LDCONFIG"; then
10984   { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10985 echo "${ECHO_T}$LDCONFIG" >&6; }
10986 else
10987   { echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6; }
10989 fi
10990
10991
10992 if test -n "$ac_tool_prefix"; then
10993   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10994 set dummy ${ac_tool_prefix}ar; ac_word=$2
10995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10997 if test "${ac_cv_prog_AR+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   if test -n "$AR"; then
11001   ac_cv_prog_AR="$AR" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006   IFS=$as_save_IFS
11007   test -z "$as_dir" && as_dir=.
11008   for ac_exec_ext in '' $ac_executable_extensions; do
11009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010     ac_cv_prog_AR="${ac_tool_prefix}ar"
11011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012     break 2
11013   fi
11014 done
11015 done
11016 IFS=$as_save_IFS
11017
11018 fi
11019 fi
11020 AR=$ac_cv_prog_AR
11021 if test -n "$AR"; then
11022   { echo "$as_me:$LINENO: result: $AR" >&5
11023 echo "${ECHO_T}$AR" >&6; }
11024 else
11025   { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11027 fi
11028
11029
11030 fi
11031 if test -z "$ac_cv_prog_AR"; then
11032   ac_ct_AR=$AR
11033   # Extract the first word of "ar", so it can be a program name with args.
11034 set dummy ar; ac_word=$2
11035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   if test -n "$ac_ct_AR"; then
11041   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046   IFS=$as_save_IFS
11047   test -z "$as_dir" && as_dir=.
11048   for ac_exec_ext in '' $ac_executable_extensions; do
11049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050     ac_cv_prog_ac_ct_AR="ar"
11051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11052     break 2
11053   fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11061 if test -n "$ac_ct_AR"; then
11062   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11063 echo "${ECHO_T}$ac_ct_AR" >&6; }
11064 else
11065   { echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6; }
11067 fi
11068
11069   if test "x$ac_ct_AR" = x; then
11070     AR="ar"
11071   else
11072     case $cross_compiling:$ac_tool_warned in
11073 yes:)
11074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11075 whose name does not start with the host triplet.  If you think this
11076 configuration is useful to you, please write to autoconf@gnu.org." >&5
11077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11078 whose name does not start with the host triplet.  If you think this
11079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11080 ac_tool_warned=yes ;;
11081 esac
11082     AR=$ac_ct_AR
11083   fi
11084 else
11085   AR="$ac_cv_prog_AR"
11086 fi
11087
11088 if test -n "$ac_tool_prefix"; then
11089   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11093 if test "${ac_cv_prog_RANLIB+set}" = set; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   if test -n "$RANLIB"; then
11097   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102   IFS=$as_save_IFS
11103   test -z "$as_dir" && as_dir=.
11104   for ac_exec_ext in '' $ac_executable_extensions; do
11105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11108     break 2
11109   fi
11110 done
11111 done
11112 IFS=$as_save_IFS
11113
11114 fi
11115 fi
11116 RANLIB=$ac_cv_prog_RANLIB
11117 if test -n "$RANLIB"; then
11118   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11119 echo "${ECHO_T}$RANLIB" >&6; }
11120 else
11121   { echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6; }
11123 fi
11124
11125
11126 fi
11127 if test -z "$ac_cv_prog_RANLIB"; then
11128   ac_ct_RANLIB=$RANLIB
11129   # Extract the first word of "ranlib", so it can be a program name with args.
11130 set dummy ranlib; ac_word=$2
11131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   if test -n "$ac_ct_RANLIB"; then
11137   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11138 else
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144   for ac_exec_ext in '' $ac_executable_extensions; do
11145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146     ac_cv_prog_ac_ct_RANLIB="ranlib"
11147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151 done
11152 IFS=$as_save_IFS
11153
11154 fi
11155 fi
11156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11157 if test -n "$ac_ct_RANLIB"; then
11158   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11160 else
11161   { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11163 fi
11164
11165   if test "x$ac_ct_RANLIB" = x; then
11166     RANLIB=":"
11167   else
11168     case $cross_compiling:$ac_tool_warned in
11169 yes:)
11170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11171 whose name does not start with the host triplet.  If you think this
11172 configuration is useful to you, please write to autoconf@gnu.org." >&5
11173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11174 whose name does not start with the host triplet.  If you think this
11175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11176 ac_tool_warned=yes ;;
11177 esac
11178     RANLIB=$ac_ct_RANLIB
11179   fi
11180 else
11181   RANLIB="$ac_cv_prog_RANLIB"
11182 fi
11183
11184 if test -n "$ac_tool_prefix"; then
11185   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11186 set dummy ${ac_tool_prefix}strip; ac_word=$2
11187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11189 if test "${ac_cv_prog_STRIP+set}" = set; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   if test -n "$STRIP"; then
11193   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11194 else
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11197 do
11198   IFS=$as_save_IFS
11199   test -z "$as_dir" && as_dir=.
11200   for ac_exec_ext in '' $ac_executable_extensions; do
11201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204     break 2
11205   fi
11206 done
11207 done
11208 IFS=$as_save_IFS
11209
11210 fi
11211 fi
11212 STRIP=$ac_cv_prog_STRIP
11213 if test -n "$STRIP"; then
11214   { echo "$as_me:$LINENO: result: $STRIP" >&5
11215 echo "${ECHO_T}$STRIP" >&6; }
11216 else
11217   { echo "$as_me:$LINENO: result: no" >&5
11218 echo "${ECHO_T}no" >&6; }
11219 fi
11220
11221
11222 fi
11223 if test -z "$ac_cv_prog_STRIP"; then
11224   ac_ct_STRIP=$STRIP
11225   # Extract the first word of "strip", so it can be a program name with args.
11226 set dummy strip; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   if test -n "$ac_ct_STRIP"; then
11233   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11237 do
11238   IFS=$as_save_IFS
11239   test -z "$as_dir" && as_dir=.
11240   for ac_exec_ext in '' $ac_executable_extensions; do
11241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242     ac_cv_prog_ac_ct_STRIP="strip"
11243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244     break 2
11245   fi
11246 done
11247 done
11248 IFS=$as_save_IFS
11249
11250 fi
11251 fi
11252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11253 if test -n "$ac_ct_STRIP"; then
11254   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11255 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11256 else
11257   { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11259 fi
11260
11261   if test "x$ac_ct_STRIP" = x; then
11262     STRIP=":"
11263   else
11264     case $cross_compiling:$ac_tool_warned in
11265 yes:)
11266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11267 whose name does not start with the host triplet.  If you think this
11268 configuration is useful to you, please write to autoconf@gnu.org." >&5
11269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11270 whose name does not start with the host triplet.  If you think this
11271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11272 ac_tool_warned=yes ;;
11273 esac
11274     STRIP=$ac_ct_STRIP
11275   fi
11276 else
11277   STRIP="$ac_cv_prog_STRIP"
11278 fi
11279
11280 # Find a good install program.  We prefer a C program (faster),
11281 # so one script is as good as another.  But avoid the broken or
11282 # incompatible versions:
11283 # SysV /etc/install, /usr/sbin/install
11284 # SunOS /usr/etc/install
11285 # IRIX /sbin/install
11286 # AIX /bin/install
11287 # AmigaOS /C/install, which installs bootblocks on floppy discs
11288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11291 # OS/2's system install, which has a completely different semantic
11292 # ./install, which can be erroneously created by make from ./install.sh.
11293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11295 if test -z "$INSTALL"; then
11296 if test "${ac_cv_path_install+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304   # Account for people who put trailing slashes in PATH elements.
11305 case $as_dir/ in
11306   ./ | .// | /cC/* | \
11307   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11308   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11309   /usr/ucb/* ) ;;
11310   *)
11311     # OSF1 and SCO ODT 3.0 have their own names for install.
11312     # Don't use installbsd from OSF since it installs stuff as root
11313     # by default.
11314     for ac_prog in ginstall scoinst install; do
11315       for ac_exec_ext in '' $ac_executable_extensions; do
11316         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11317           if test $ac_prog = install &&
11318             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11319             # AIX install.  It has an incompatible calling convention.
11320             :
11321           elif test $ac_prog = install &&
11322             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11323             # program-specific install script used by HP pwplus--don't use.
11324             :
11325           else
11326             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11327             break 3
11328           fi
11329         fi
11330       done
11331     done
11332     ;;
11333 esac
11334 done
11335 IFS=$as_save_IFS
11336
11337
11338 fi
11339   if test "${ac_cv_path_install+set}" = set; then
11340     INSTALL=$ac_cv_path_install
11341   else
11342     # As a last resort, use the slow shell script.  Don't cache a
11343     # value for INSTALL within a source directory, because that will
11344     # break other packages using the cache if that directory is
11345     # removed, or if the value is a relative name.
11346     INSTALL=$ac_install_sh
11347   fi
11348 fi
11349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11350 echo "${ECHO_T}$INSTALL" >&6; }
11351
11352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11353 # It thinks the first close brace ends the variable substitution.
11354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11355
11356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11357
11358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11359
11360 # See if we need a separate native compiler.
11361 if test $cross_compiling = no; then
11362   BUILD_CC="$CC"
11363
11364 else
11365   for ac_prog in gcc cc
11366 do
11367   # Extract the first word of "$ac_prog", so it can be a program name with args.
11368 set dummy $ac_prog; ac_word=$2
11369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11371 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   if test -n "$BUILD_CC"; then
11375   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11376 else
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380   IFS=$as_save_IFS
11381   test -z "$as_dir" && as_dir=.
11382   for ac_exec_ext in '' $ac_executable_extensions; do
11383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384     ac_cv_prog_BUILD_CC="$ac_prog"
11385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11386     break 2
11387   fi
11388 done
11389 done
11390 IFS=$as_save_IFS
11391
11392 fi
11393 fi
11394 BUILD_CC=$ac_cv_prog_BUILD_CC
11395 if test -n "$BUILD_CC"; then
11396   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11397 echo "${ECHO_T}$BUILD_CC" >&6; }
11398 else
11399   { echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6; }
11401 fi
11402
11403
11404   test -n "$BUILD_CC" && break
11405 done
11406
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h
11441 do
11442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 fi
11449 ac_res=`eval echo '${'$as_ac_Header'}'`
11450                { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452 else
11453   # Is the header compilable?
11454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462 $ac_includes_default
11463 #include <$ac_header>
11464 _ACEOF
11465 rm -f conftest.$ac_objext
11466 if { (ac_try="$ac_compile"
11467 case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_compile") 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } && {
11479          test -z "$ac_c_werror_flag" ||
11480          test ! -s conftest.err
11481        } && test -s conftest.$ac_objext; then
11482   ac_header_compiler=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487         ac_header_compiler=no
11488 fi
11489
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6; }
11493
11494 # Is the header present?
11495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (ac_try="$ac_cpp conftest.$ac_ext"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11512   ac_status=$?
11513   grep -v '^ *+' conftest.er1 >conftest.err
11514   rm -f conftest.er1
11515   cat conftest.err >&5
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } >/dev/null && {
11518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11519          test ! -s conftest.err
11520        }; then
11521   ac_header_preproc=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526   ac_header_preproc=no
11527 fi
11528
11529 rm -f conftest.err conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11531 echo "${ECHO_T}$ac_header_preproc" >&6; }
11532
11533 # So?  What about this header?
11534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11535   yes:no: )
11536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11540     ac_header_preproc=yes
11541     ;;
11542   no:yes:* )
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11555
11556     ;;
11557 esac
11558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   eval "$as_ac_Header=\$ac_header_preproc"
11564 fi
11565 ac_res=`eval echo '${'$as_ac_Header'}'`
11566                { echo "$as_me:$LINENO: result: $ac_res" >&5
11567 echo "${ECHO_T}$ac_res" >&6; }
11568
11569 fi
11570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11571   cat >>confdefs.h <<_ACEOF
11572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573 _ACEOF
11574
11575 fi
11576
11577 done
11578
11579
11580
11581 for ac_header in sys/disk.h sys/mount.h
11582 do
11583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595
11596 #if HAVE_SYS_QUEUE_H
11597 #include <sys/queue.h>
11598 #endif
11599
11600
11601 #include <$ac_header>
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607   *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610   (eval "$ac_compile") 2>conftest.er1
11611   ac_status=$?
11612   grep -v '^ *+' conftest.er1 >conftest.err
11613   rm -f conftest.er1
11614   cat conftest.err >&5
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } && {
11617          test -z "$ac_c_werror_flag" ||
11618          test ! -s conftest.err
11619        } && test -s conftest.$ac_objext; then
11620   eval "$as_ac_Header=yes"
11621 else
11622   echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625         eval "$as_ac_Header=no"
11626 fi
11627
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 fi
11630 ac_res=`eval echo '${'$as_ac_Header'}'`
11631                { echo "$as_me:$LINENO: result: $ac_res" >&5
11632 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634   cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 _ACEOF
11637
11638 fi
11639
11640 done
11641
11642
11643 for ac_header in net/if.h
11644 do
11645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657
11658 #if HAVE_SYS_TYPES_H
11659 #include <sys/types.h>
11660 #endif
11661 #if HAVE_SYS_SOCKET
11662 #include <sys/socket.h>
11663 #endif
11664
11665
11666 #include <$ac_header>
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_compile") 2>conftest.er1
11676   ac_status=$?
11677   grep -v '^ *+' conftest.er1 >conftest.err
11678   rm -f conftest.er1
11679   cat conftest.err >&5
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } && {
11682          test -z "$ac_c_werror_flag" ||
11683          test ! -s conftest.err
11684        } && test -s conftest.$ac_objext; then
11685   eval "$as_ac_Header=yes"
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690         eval "$as_ac_Header=no"
11691 fi
11692
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 ac_res=`eval echo '${'$as_ac_Header'}'`
11696                { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11699   cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11701 _ACEOF
11702
11703 fi
11704
11705 done
11706
11707
11708 for ac_func in vprintf
11709 do
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11724 #define $ac_func innocuous_$ac_func
11725
11726 /* System header to define __stub macros and hopefully few prototypes,
11727     which can conflict with char $ac_func (); below.
11728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729     <limits.h> exists even on freestanding compilers.  */
11730
11731 #ifdef __STDC__
11732 # include <limits.h>
11733 #else
11734 # include <assert.h>
11735 #endif
11736
11737 #undef $ac_func
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740    Use char because int might match the return type of a GCC
11741    builtin and then its argument prototype would still apply.  */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char $ac_func ();
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 choke me
11751 #endif
11752
11753 int
11754 main ()
11755 {
11756 return $ac_func ();
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_link") 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } && {
11775          test -z "$ac_c_werror_flag" ||
11776          test ! -s conftest.err
11777        } && test -s conftest$ac_exeext &&
11778        $as_test_x conftest$ac_exeext; then
11779   eval "$as_ac_var=yes"
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784         eval "$as_ac_var=no"
11785 fi
11786
11787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788       conftest$ac_exeext conftest.$ac_ext
11789 fi
11790 ac_res=`eval echo '${'$as_ac_var'}'`
11791                { echo "$as_me:$LINENO: result: $ac_res" >&5
11792 echo "${ECHO_T}$ac_res" >&6; }
11793 if test `eval echo '${'$as_ac_var'}'` = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796 _ACEOF
11797
11798 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11799 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11800 if test "${ac_cv_func__doprnt+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h.  */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h.  */
11809 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11811 #define _doprnt innocuous__doprnt
11812
11813 /* System header to define __stub macros and hopefully few prototypes,
11814     which can conflict with char _doprnt (); below.
11815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816     <limits.h> exists even on freestanding compilers.  */
11817
11818 #ifdef __STDC__
11819 # include <limits.h>
11820 #else
11821 # include <assert.h>
11822 #endif
11823
11824 #undef _doprnt
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827    Use char because int might match the return type of a GCC
11828    builtin and then its argument prototype would still apply.  */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char _doprnt ();
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined __stub__doprnt || defined __stub____doprnt
11837 choke me
11838 #endif
11839
11840 int
11841 main ()
11842 {
11843 return _doprnt ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_link") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } && {
11862          test -z "$ac_c_werror_flag" ||
11863          test ! -s conftest.err
11864        } && test -s conftest$ac_exeext &&
11865        $as_test_x conftest$ac_exeext; then
11866   ac_cv_func__doprnt=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871         ac_cv_func__doprnt=no
11872 fi
11873
11874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875       conftest$ac_exeext conftest.$ac_ext
11876 fi
11877 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11878 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11879 if test $ac_cv_func__doprnt = yes; then
11880
11881 cat >>confdefs.h <<\_ACEOF
11882 #define HAVE_DOPRNT 1
11883 _ACEOF
11884
11885 fi
11886
11887 fi
11888 done
11889
11890
11891 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11892 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
11893 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 #include <dirent.h>
11903
11904 int
11905 main ()
11906 {
11907 static struct dirent ac_aggr;
11908 if (ac_aggr.d_reclen)
11909 return 0;
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_compile") 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } && {
11928          test -z "$ac_c_werror_flag" ||
11929          test ! -s conftest.err
11930        } && test -s conftest.$ac_objext; then
11931   ac_cv_member_struct_dirent_d_reclen=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936         cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 #include <dirent.h>
11943
11944 int
11945 main ()
11946 {
11947 static struct dirent ac_aggr;
11948 if (sizeof ac_aggr.d_reclen)
11949 return 0;
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_compile") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } && {
11968          test -z "$ac_c_werror_flag" ||
11969          test ! -s conftest.err
11970        } && test -s conftest.$ac_objext; then
11971   ac_cv_member_struct_dirent_d_reclen=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976         ac_cv_member_struct_dirent_d_reclen=no
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
11986 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11987   cat >>confdefs.h <<\_ACEOF
11988 #define HAVE_RECLEN_DIRENT 1
11989 _ACEOF
11990
11991 fi
11992
11993 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11994 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11995 if test "${ac_cv_type_ssize_t+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 #include <sys/types.h>
12005
12006 typedef ssize_t ac__type_new_;
12007 int
12008 main ()
12009 {
12010 if ((ac__type_new_ *) 0)
12011   return 0;
12012 if (sizeof (ac__type_new_))
12013   return 0;
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext
12019 if { (ac_try="$ac_compile"
12020 case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_compile") 2>conftest.er1
12026   ac_status=$?
12027   grep -v '^ *+' conftest.er1 >conftest.err
12028   rm -f conftest.er1
12029   cat conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } && {
12032          test -z "$ac_c_werror_flag" ||
12033          test ! -s conftest.err
12034        } && test -s conftest.$ac_objext; then
12035   ac_cv_type_ssize_t=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040         ac_cv_type_ssize_t=no
12041 fi
12042
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 fi
12045 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12046 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12047 if test $ac_cv_type_ssize_t = yes; then
12048   cat >>confdefs.h <<\_ACEOF
12049 #define HAVE_TYPE_SSIZE_T 1
12050 _ACEOF
12051
12052 fi
12053
12054 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12055 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12056 if test "${ac_cv_have_decl_llseek+set}" = set; then
12057   echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059   cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h.  */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h.  */
12065 #include <unistd.h>
12066
12067 int
12068 main ()
12069 {
12070 #ifndef llseek
12071   (void) llseek;
12072 #endif
12073
12074   ;
12075   return 0;
12076 }
12077 _ACEOF
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_compile") 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } && {
12092          test -z "$ac_c_werror_flag" ||
12093          test ! -s conftest.err
12094        } && test -s conftest.$ac_objext; then
12095   ac_cv_have_decl_llseek=yes
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100         ac_cv_have_decl_llseek=no
12101 fi
12102
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 fi
12105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12106 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12107 if test $ac_cv_have_decl_llseek = yes; then
12108   cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_LLSEEK_PROTOTYPE 1
12110 _ACEOF
12111
12112 fi
12113
12114 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12115 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12116 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 #define _LARGEFILE_SOURCE
12126                  #define _LARGEFILE64_SOURCE
12127                  #include <unistd.h>
12128
12129 int
12130 main ()
12131 {
12132 #ifndef lseek64
12133   (void) lseek64;
12134 #endif
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext
12141 if { (ac_try="$ac_compile"
12142 case "(($ac_try" in
12143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144   *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147   (eval "$ac_compile") 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } && {
12154          test -z "$ac_c_werror_flag" ||
12155          test ! -s conftest.err
12156        } && test -s conftest.$ac_objext; then
12157   ac_cv_have_decl_lseek64=yes
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162         ac_cv_have_decl_lseek64=no
12163 fi
12164
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 fi
12167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12168 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12169 if test $ac_cv_have_decl_lseek64 = yes; then
12170   cat >>confdefs.h <<\_ACEOF
12171 #define HAVE_LSEEK64_PROTOTYPE 1
12172 _ACEOF
12173
12174 fi
12175
12176 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12177   # if cross-compiling, with no cached values, just assume something common.
12178   ac_cv_sizeof_short=2
12179   ac_cv_sizeof_int=4
12180   ac_cv_sizeof_long=4
12181   ac_cv_sizeof_long_long=8
12182   { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12183 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12184 fi
12185 { echo "$as_me:$LINENO: checking for short" >&5
12186 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12187 if test "${ac_cv_type_short+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 $ac_includes_default
12197 typedef short ac__type_new_;
12198 int
12199 main ()
12200 {
12201 if ((ac__type_new_ *) 0)
12202   return 0;
12203 if (sizeof (ac__type_new_))
12204   return 0;
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_compile") 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && {
12223          test -z "$ac_c_werror_flag" ||
12224          test ! -s conftest.err
12225        } && test -s conftest.$ac_objext; then
12226   ac_cv_type_short=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_cv_type_short=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 fi
12236 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12237 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12238
12239 # The cast to long int works around a bug in the HP C Compiler
12240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12242 # This bug is HP SR number 8606223364.
12243 { echo "$as_me:$LINENO: checking size of short" >&5
12244 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12245 if test "${ac_cv_sizeof_short+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   if test "$cross_compiling" = yes; then
12249   # Depending upon the size, compute the lo and hi bounds.
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256 $ac_includes_default
12257    typedef short ac__type_sizeof_;
12258 int
12259 main ()
12260 {
12261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12262 test_array [0] = 0
12263
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272   *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275   (eval "$ac_compile") 2>conftest.er1
12276   ac_status=$?
12277   grep -v '^ *+' conftest.er1 >conftest.err
12278   rm -f conftest.er1
12279   cat conftest.err >&5
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } && {
12282          test -z "$ac_c_werror_flag" ||
12283          test ! -s conftest.err
12284        } && test -s conftest.$ac_objext; then
12285   ac_lo=0 ac_mid=0
12286   while :; do
12287     cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 $ac_includes_default
12294    typedef short ac__type_sizeof_;
12295 int
12296 main ()
12297 {
12298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12299 test_array [0] = 0
12300
12301   ;
12302   return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309   *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312   (eval "$ac_compile") 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } && {
12319          test -z "$ac_c_werror_flag" ||
12320          test ! -s conftest.err
12321        } && test -s conftest.$ac_objext; then
12322   ac_hi=$ac_mid; break
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327         ac_lo=`expr $ac_mid + 1`
12328                         if test $ac_lo -le $ac_mid; then
12329                           ac_lo= ac_hi=
12330                           break
12331                         fi
12332                         ac_mid=`expr 2 '*' $ac_mid + 1`
12333 fi
12334
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336   done
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341         cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348    typedef short ac__type_sizeof_;
12349 int
12350 main ()
12351 {
12352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12353 test_array [0] = 0
12354
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_compile") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } && {
12373          test -z "$ac_c_werror_flag" ||
12374          test ! -s conftest.err
12375        } && test -s conftest.$ac_objext; then
12376   ac_hi=-1 ac_mid=-1
12377   while :; do
12378     cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h.  */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h.  */
12384 $ac_includes_default
12385    typedef short ac__type_sizeof_;
12386 int
12387 main ()
12388 {
12389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12390 test_array [0] = 0
12391
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_compile") 2>conftest.er1
12404   ac_status=$?
12405   grep -v '^ *+' conftest.er1 >conftest.err
12406   rm -f conftest.er1
12407   cat conftest.err >&5
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); } && {
12410          test -z "$ac_c_werror_flag" ||
12411          test ! -s conftest.err
12412        } && test -s conftest.$ac_objext; then
12413   ac_lo=$ac_mid; break
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418         ac_hi=`expr '(' $ac_mid ')' - 1`
12419                         if test $ac_mid -le $ac_hi; then
12420                           ac_lo= ac_hi=
12421                           break
12422                         fi
12423                         ac_mid=`expr 2 '*' $ac_mid`
12424 fi
12425
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427   done
12428 else
12429   echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432         ac_lo= ac_hi=
12433 fi
12434
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 fi
12437
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 # Binary search between lo and hi bounds.
12440 while test "x$ac_lo" != "x$ac_hi"; do
12441   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12442   cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448 $ac_includes_default
12449    typedef short ac__type_sizeof_;
12450 int
12451 main ()
12452 {
12453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12454 test_array [0] = 0
12455
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_compile") 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } && {
12474          test -z "$ac_c_werror_flag" ||
12475          test ! -s conftest.err
12476        } && test -s conftest.$ac_objext; then
12477   ac_hi=$ac_mid
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482         ac_lo=`expr '(' $ac_mid ')' + 1`
12483 fi
12484
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 done
12487 case $ac_lo in
12488 ?*) ac_cv_sizeof_short=$ac_lo;;
12489 '') if test "$ac_cv_type_short" = yes; then
12490      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12491 See \`config.log' for more details." >&5
12492 echo "$as_me: error: cannot compute sizeof (short)
12493 See \`config.log' for more details." >&2;}
12494    { (exit 77); exit 77; }; }
12495    else
12496      ac_cv_sizeof_short=0
12497    fi ;;
12498 esac
12499 else
12500   cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506 $ac_includes_default
12507    typedef short ac__type_sizeof_;
12508 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12509 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12510 #include <stdio.h>
12511 #include <stdlib.h>
12512 int
12513 main ()
12514 {
12515
12516   FILE *f = fopen ("conftest.val", "w");
12517   if (! f)
12518     return 1;
12519   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12520     {
12521       long int i = longval ();
12522       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12523         return 1;
12524       fprintf (f, "%ld\n", i);
12525     }
12526   else
12527     {
12528       unsigned long int i = ulongval ();
12529       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12530         return 1;
12531       fprintf (f, "%lu\n", i);
12532     }
12533   return ferror (f) || fclose (f) != 0;
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_link") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550   { (case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_try") 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_cv_sizeof_short=`cat conftest.val`
12560 else
12561   echo "$as_me: program exited with status $ac_status" >&5
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ( exit $ac_status )
12566 if test "$ac_cv_type_short" = yes; then
12567      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12568 See \`config.log' for more details." >&5
12569 echo "$as_me: error: cannot compute sizeof (short)
12570 See \`config.log' for more details." >&2;}
12571    { (exit 77); exit 77; }; }
12572    else
12573      ac_cv_sizeof_short=0
12574    fi
12575 fi
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 rm -f conftest.val
12579 fi
12580 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12581 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12582
12583
12584
12585 cat >>confdefs.h <<_ACEOF
12586 #define SIZEOF_SHORT $ac_cv_sizeof_short
12587 _ACEOF
12588
12589
12590 { echo "$as_me:$LINENO: checking for int" >&5
12591 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12592 if test "${ac_cv_type_int+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601 $ac_includes_default
12602 typedef int ac__type_new_;
12603 int
12604 main ()
12605 {
12606 if ((ac__type_new_ *) 0)
12607   return 0;
12608 if (sizeof (ac__type_new_))
12609   return 0;
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (ac_try="$ac_compile"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_compile") 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } && {
12628          test -z "$ac_c_werror_flag" ||
12629          test ! -s conftest.err
12630        } && test -s conftest.$ac_objext; then
12631   ac_cv_type_int=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636         ac_cv_type_int=no
12637 fi
12638
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 fi
12641 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12642 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12643
12644 # The cast to long int works around a bug in the HP C Compiler
12645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647 # This bug is HP SR number 8606223364.
12648 { echo "$as_me:$LINENO: checking size of int" >&5
12649 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12650 if test "${ac_cv_sizeof_int+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   if test "$cross_compiling" = yes; then
12654   # Depending upon the size, compute the lo and hi bounds.
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661 $ac_includes_default
12662    typedef int ac__type_sizeof_;
12663 int
12664 main ()
12665 {
12666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12667 test_array [0] = 0
12668
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_compile") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } && {
12687          test -z "$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        } && test -s conftest.$ac_objext; then
12690   ac_lo=0 ac_mid=0
12691   while :; do
12692     cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 $ac_includes_default
12699    typedef int ac__type_sizeof_;
12700 int
12701 main ()
12702 {
12703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12704 test_array [0] = 0
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_compile") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && {
12724          test -z "$ac_c_werror_flag" ||
12725          test ! -s conftest.err
12726        } && test -s conftest.$ac_objext; then
12727   ac_hi=$ac_mid; break
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732         ac_lo=`expr $ac_mid + 1`
12733                         if test $ac_lo -le $ac_mid; then
12734                           ac_lo= ac_hi=
12735                           break
12736                         fi
12737                         ac_mid=`expr 2 '*' $ac_mid + 1`
12738 fi
12739
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741   done
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746         cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752 $ac_includes_default
12753    typedef int ac__type_sizeof_;
12754 int
12755 main ()
12756 {
12757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12758 test_array [0] = 0
12759
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 rm -f conftest.$ac_objext
12765 if { (ac_try="$ac_compile"
12766 case "(($ac_try" in
12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768   *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771   (eval "$ac_compile") 2>conftest.er1
12772   ac_status=$?
12773   grep -v '^ *+' conftest.er1 >conftest.err
12774   rm -f conftest.er1
12775   cat conftest.err >&5
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); } && {
12778          test -z "$ac_c_werror_flag" ||
12779          test ! -s conftest.err
12780        } && test -s conftest.$ac_objext; then
12781   ac_hi=-1 ac_mid=-1
12782   while :; do
12783     cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789 $ac_includes_default
12790    typedef int ac__type_sizeof_;
12791 int
12792 main ()
12793 {
12794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12795 test_array [0] = 0
12796
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_compile") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } && {
12815          test -z "$ac_c_werror_flag" ||
12816          test ! -s conftest.err
12817        } && test -s conftest.$ac_objext; then
12818   ac_lo=$ac_mid; break
12819 else
12820   echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823         ac_hi=`expr '(' $ac_mid ')' - 1`
12824                         if test $ac_mid -le $ac_hi; then
12825                           ac_lo= ac_hi=
12826                           break
12827                         fi
12828                         ac_mid=`expr 2 '*' $ac_mid`
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832   done
12833 else
12834   echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837         ac_lo= ac_hi=
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 fi
12842
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 # Binary search between lo and hi bounds.
12845 while test "x$ac_lo" != "x$ac_hi"; do
12846   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12847   cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853 $ac_includes_default
12854    typedef int ac__type_sizeof_;
12855 int
12856 main ()
12857 {
12858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12859 test_array [0] = 0
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_compile") 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } && {
12879          test -z "$ac_c_werror_flag" ||
12880          test ! -s conftest.err
12881        } && test -s conftest.$ac_objext; then
12882   ac_hi=$ac_mid
12883 else
12884   echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887         ac_lo=`expr '(' $ac_mid ')' + 1`
12888 fi
12889
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 done
12892 case $ac_lo in
12893 ?*) ac_cv_sizeof_int=$ac_lo;;
12894 '') if test "$ac_cv_type_int" = yes; then
12895      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12896 See \`config.log' for more details." >&5
12897 echo "$as_me: error: cannot compute sizeof (int)
12898 See \`config.log' for more details." >&2;}
12899    { (exit 77); exit 77; }; }
12900    else
12901      ac_cv_sizeof_int=0
12902    fi ;;
12903 esac
12904 else
12905   cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911 $ac_includes_default
12912    typedef int ac__type_sizeof_;
12913 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12914 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12915 #include <stdio.h>
12916 #include <stdlib.h>
12917 int
12918 main ()
12919 {
12920
12921   FILE *f = fopen ("conftest.val", "w");
12922   if (! f)
12923     return 1;
12924   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12925     {
12926       long int i = longval ();
12927       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12928         return 1;
12929       fprintf (f, "%ld\n", i);
12930     }
12931   else
12932     {
12933       unsigned long int i = ulongval ();
12934       if (i != ((long int) (sizeof (ac__type_sizeof_))))
12935         return 1;
12936       fprintf (f, "%lu\n", i);
12937     }
12938   return ferror (f) || fclose (f) != 0;
12939
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 rm -f conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951   (eval "$ac_link") 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12955   { (case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_try") 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964   ac_cv_sizeof_int=`cat conftest.val`
12965 else
12966   echo "$as_me: program exited with status $ac_status" >&5
12967 echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12969
12970 ( exit $ac_status )
12971 if test "$ac_cv_type_int" = yes; then
12972      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12973 See \`config.log' for more details." >&5
12974 echo "$as_me: error: cannot compute sizeof (int)
12975 See \`config.log' for more details." >&2;}
12976    { (exit 77); exit 77; }; }
12977    else
12978      ac_cv_sizeof_int=0
12979    fi
12980 fi
12981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12982 fi
12983 rm -f conftest.val
12984 fi
12985 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12986 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
12987
12988
12989
12990 cat >>confdefs.h <<_ACEOF
12991 #define SIZEOF_INT $ac_cv_sizeof_int
12992 _ACEOF
12993
12994
12995 { echo "$as_me:$LINENO: checking for long" >&5
12996 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
12997 if test "${ac_cv_type_long+set}" = set; then
12998   echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000   cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 $ac_includes_default
13007 typedef long ac__type_new_;
13008 int
13009 main ()
13010 {
13011 if ((ac__type_new_ *) 0)
13012   return 0;
13013 if (sizeof (ac__type_new_))
13014   return 0;
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext
13020 if { (ac_try="$ac_compile"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_compile") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } && {
13033          test -z "$ac_c_werror_flag" ||
13034          test ! -s conftest.err
13035        } && test -s conftest.$ac_objext; then
13036   ac_cv_type_long=yes
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041         ac_cv_type_long=no
13042 fi
13043
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 fi
13046 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13047 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13048
13049 # The cast to long int works around a bug in the HP C Compiler
13050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13052 # This bug is HP SR number 8606223364.
13053 { echo "$as_me:$LINENO: checking size of long" >&5
13054 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13055 if test "${ac_cv_sizeof_long+set}" = set; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   if test "$cross_compiling" = yes; then
13059   # Depending upon the size, compute the lo and hi bounds.
13060 cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h.  */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h.  */
13066 $ac_includes_default
13067    typedef long ac__type_sizeof_;
13068 int
13069 main ()
13070 {
13071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13072 test_array [0] = 0
13073
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 rm -f conftest.$ac_objext
13079 if { (ac_try="$ac_compile"
13080 case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_compile") 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } && {
13092          test -z "$ac_c_werror_flag" ||
13093          test ! -s conftest.err
13094        } && test -s conftest.$ac_objext; then
13095   ac_lo=0 ac_mid=0
13096   while :; do
13097     cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103 $ac_includes_default
13104    typedef long ac__type_sizeof_;
13105 int
13106 main ()
13107 {
13108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13109 test_array [0] = 0
13110
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 rm -f conftest.$ac_objext
13116 if { (ac_try="$ac_compile"
13117 case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_compile") 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } && {
13129          test -z "$ac_c_werror_flag" ||
13130          test ! -s conftest.err
13131        } && test -s conftest.$ac_objext; then
13132   ac_hi=$ac_mid; break
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137         ac_lo=`expr $ac_mid + 1`
13138                         if test $ac_lo -le $ac_mid; then
13139                           ac_lo= ac_hi=
13140                           break
13141                         fi
13142                         ac_mid=`expr 2 '*' $ac_mid + 1`
13143 fi
13144
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146   done
13147 else
13148   echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151         cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 $ac_includes_default
13158    typedef long ac__type_sizeof_;
13159 int
13160 main ()
13161 {
13162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13163 test_array [0] = 0
13164
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176   (eval "$ac_compile") 2>conftest.er1
13177   ac_status=$?
13178   grep -v '^ *+' conftest.er1 >conftest.err
13179   rm -f conftest.er1
13180   cat conftest.err >&5
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } && {
13183          test -z "$ac_c_werror_flag" ||
13184          test ! -s conftest.err
13185        } && test -s conftest.$ac_objext; then
13186   ac_hi=-1 ac_mid=-1
13187   while :; do
13188     cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 $ac_includes_default
13195    typedef long ac__type_sizeof_;
13196 int
13197 main ()
13198 {
13199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13200 test_array [0] = 0
13201
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_compile") 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } && {
13220          test -z "$ac_c_werror_flag" ||
13221          test ! -s conftest.err
13222        } && test -s conftest.$ac_objext; then
13223   ac_lo=$ac_mid; break
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228         ac_hi=`expr '(' $ac_mid ')' - 1`
13229                         if test $ac_mid -le $ac_hi; then
13230                           ac_lo= ac_hi=
13231                           break
13232                         fi
13233                         ac_mid=`expr 2 '*' $ac_mid`
13234 fi
13235
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237   done
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242         ac_lo= ac_hi=
13243 fi
13244
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 # Binary search between lo and hi bounds.
13250 while test "x$ac_lo" != "x$ac_hi"; do
13251   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13252   cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h.  */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h.  */
13258 $ac_includes_default
13259    typedef long ac__type_sizeof_;
13260 int
13261 main ()
13262 {
13263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13264 test_array [0] = 0
13265
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_compile") 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } && {
13284          test -z "$ac_c_werror_flag" ||
13285          test ! -s conftest.err
13286        } && test -s conftest.$ac_objext; then
13287   ac_hi=$ac_mid
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292         ac_lo=`expr '(' $ac_mid ')' + 1`
13293 fi
13294
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 done
13297 case $ac_lo in
13298 ?*) ac_cv_sizeof_long=$ac_lo;;
13299 '') if test "$ac_cv_type_long" = yes; then
13300      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13301 See \`config.log' for more details." >&5
13302 echo "$as_me: error: cannot compute sizeof (long)
13303 See \`config.log' for more details." >&2;}
13304    { (exit 77); exit 77; }; }
13305    else
13306      ac_cv_sizeof_long=0
13307    fi ;;
13308 esac
13309 else
13310   cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 $ac_includes_default
13317    typedef long ac__type_sizeof_;
13318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13320 #include <stdio.h>
13321 #include <stdlib.h>
13322 int
13323 main ()
13324 {
13325
13326   FILE *f = fopen ("conftest.val", "w");
13327   if (! f)
13328     return 1;
13329   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13330     {
13331       long int i = longval ();
13332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13333         return 1;
13334       fprintf (f, "%ld\n", i);
13335     }
13336   else
13337     {
13338       unsigned long int i = ulongval ();
13339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13340         return 1;
13341       fprintf (f, "%lu\n", i);
13342     }
13343   return ferror (f) || fclose (f) != 0;
13344
13345   ;
13346   return 0;
13347 }
13348 _ACEOF
13349 rm -f conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353   *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356   (eval "$ac_link") 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13360   { (case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_try") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   ac_cv_sizeof_long=`cat conftest.val`
13370 else
13371   echo "$as_me: program exited with status $ac_status" >&5
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 ( exit $ac_status )
13376 if test "$ac_cv_type_long" = yes; then
13377      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13378 See \`config.log' for more details." >&5
13379 echo "$as_me: error: cannot compute sizeof (long)
13380 See \`config.log' for more details." >&2;}
13381    { (exit 77); exit 77; }; }
13382    else
13383      ac_cv_sizeof_long=0
13384    fi
13385 fi
13386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 rm -f conftest.val
13389 fi
13390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13391 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13392
13393
13394
13395 cat >>confdefs.h <<_ACEOF
13396 #define SIZEOF_LONG $ac_cv_sizeof_long
13397 _ACEOF
13398
13399
13400 { echo "$as_me:$LINENO: checking for long long" >&5
13401 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13402 if test "${ac_cv_type_long_long+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 typedef long long ac__type_new_;
13413 int
13414 main ()
13415 {
13416 if ((ac__type_new_ *) 0)
13417   return 0;
13418 if (sizeof (ac__type_new_))
13419   return 0;
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_compile") 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && {
13438          test -z "$ac_c_werror_flag" ||
13439          test ! -s conftest.err
13440        } && test -s conftest.$ac_objext; then
13441   ac_cv_type_long_long=yes
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446         ac_cv_type_long_long=no
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13452 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13453
13454 # The cast to long int works around a bug in the HP C Compiler
13455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13457 # This bug is HP SR number 8606223364.
13458 { echo "$as_me:$LINENO: checking size of long long" >&5
13459 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13460 if test "${ac_cv_sizeof_long_long+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   if test "$cross_compiling" = yes; then
13464   # Depending upon the size, compute the lo and hi bounds.
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471 $ac_includes_default
13472    typedef long long ac__type_sizeof_;
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487   *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490   (eval "$ac_compile") 2>conftest.er1
13491   ac_status=$?
13492   grep -v '^ *+' conftest.er1 >conftest.err
13493   rm -f conftest.er1
13494   cat conftest.err >&5
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } && {
13497          test -z "$ac_c_werror_flag" ||
13498          test ! -s conftest.err
13499        } && test -s conftest.$ac_objext; then
13500   ac_lo=0 ac_mid=0
13501   while :; do
13502     cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508 $ac_includes_default
13509    typedef long long ac__type_sizeof_;
13510 int
13511 main ()
13512 {
13513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13514 test_array [0] = 0
13515
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_compile") 2>conftest.er1
13528   ac_status=$?
13529   grep -v '^ *+' conftest.er1 >conftest.err
13530   rm -f conftest.er1
13531   cat conftest.err >&5
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } && {
13534          test -z "$ac_c_werror_flag" ||
13535          test ! -s conftest.err
13536        } && test -s conftest.$ac_objext; then
13537   ac_hi=$ac_mid; break
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542         ac_lo=`expr $ac_mid + 1`
13543                         if test $ac_lo -le $ac_mid; then
13544                           ac_lo= ac_hi=
13545                           break
13546                         fi
13547                         ac_mid=`expr 2 '*' $ac_mid + 1`
13548 fi
13549
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551   done
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556         cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 $ac_includes_default
13563    typedef long long ac__type_sizeof_;
13564 int
13565 main ()
13566 {
13567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13568 test_array [0] = 0
13569
13570   ;
13571   return 0;
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (ac_try="$ac_compile"
13576 case "(($ac_try" in
13577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578   *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581   (eval "$ac_compile") 2>conftest.er1
13582   ac_status=$?
13583   grep -v '^ *+' conftest.er1 >conftest.err
13584   rm -f conftest.er1
13585   cat conftest.err >&5
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); } && {
13588          test -z "$ac_c_werror_flag" ||
13589          test ! -s conftest.err
13590        } && test -s conftest.$ac_objext; then
13591   ac_hi=-1 ac_mid=-1
13592   while :; do
13593     cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 $ac_includes_default
13600    typedef long long ac__type_sizeof_;
13601 int
13602 main ()
13603 {
13604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13605 test_array [0] = 0
13606
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (ac_try="$ac_compile"
13613 case "(($ac_try" in
13614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615   *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618   (eval "$ac_compile") 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } && {
13625          test -z "$ac_c_werror_flag" ||
13626          test ! -s conftest.err
13627        } && test -s conftest.$ac_objext; then
13628   ac_lo=$ac_mid; break
13629 else
13630   echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633         ac_hi=`expr '(' $ac_mid ')' - 1`
13634                         if test $ac_mid -le $ac_hi; then
13635                           ac_lo= ac_hi=
13636                           break
13637                         fi
13638                         ac_mid=`expr 2 '*' $ac_mid`
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642   done
13643 else
13644   echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13646
13647         ac_lo= ac_hi=
13648 fi
13649
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 # Binary search between lo and hi bounds.
13655 while test "x$ac_lo" != "x$ac_hi"; do
13656   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13657   cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664    typedef long long ac__type_sizeof_;
13665 int
13666 main ()
13667 {
13668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13669 test_array [0] = 0
13670
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682   (eval "$ac_compile") 2>conftest.er1
13683   ac_status=$?
13684   grep -v '^ *+' conftest.er1 >conftest.err
13685   rm -f conftest.er1
13686   cat conftest.err >&5
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); } && {
13689          test -z "$ac_c_werror_flag" ||
13690          test ! -s conftest.err
13691        } && test -s conftest.$ac_objext; then
13692   ac_hi=$ac_mid
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697         ac_lo=`expr '(' $ac_mid ')' + 1`
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 done
13702 case $ac_lo in
13703 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13704 '') if test "$ac_cv_type_long_long" = yes; then
13705      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot compute sizeof (long long)
13708 See \`config.log' for more details." >&2;}
13709    { (exit 77); exit 77; }; }
13710    else
13711      ac_cv_sizeof_long_long=0
13712    fi ;;
13713 esac
13714 else
13715   cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 $ac_includes_default
13722    typedef long long ac__type_sizeof_;
13723 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13724 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13725 #include <stdio.h>
13726 #include <stdlib.h>
13727 int
13728 main ()
13729 {
13730
13731   FILE *f = fopen ("conftest.val", "w");
13732   if (! f)
13733     return 1;
13734   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13735     {
13736       long int i = longval ();
13737       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13738         return 1;
13739       fprintf (f, "%ld\n", i);
13740     }
13741   else
13742     {
13743       unsigned long int i = ulongval ();
13744       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13745         return 1;
13746       fprintf (f, "%lu\n", i);
13747     }
13748   return ferror (f) || fclose (f) != 0;
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest$ac_exeext
13755 if { (ac_try="$ac_link"
13756 case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_link") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13765   { (case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_try") 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_sizeof_long_long=`cat conftest.val`
13775 else
13776   echo "$as_me: program exited with status $ac_status" >&5
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ( exit $ac_status )
13781 if test "$ac_cv_type_long_long" = yes; then
13782      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13783 See \`config.log' for more details." >&5
13784 echo "$as_me: error: cannot compute sizeof (long long)
13785 See \`config.log' for more details." >&2;}
13786    { (exit 77); exit 77; }; }
13787    else
13788      ac_cv_sizeof_long_long=0
13789    fi
13790 fi
13791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13792 fi
13793 rm -f conftest.val
13794 fi
13795 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13796 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13797
13798
13799
13800 cat >>confdefs.h <<_ACEOF
13801 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13802 _ACEOF
13803
13804
13805 SIZEOF_SHORT=$ac_cv_sizeof_short
13806 SIZEOF_INT=$ac_cv_sizeof_int
13807 SIZEOF_LONG=$ac_cv_sizeof_long
13808 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13809
13810
13811
13812
13813 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13814 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13815 if test "${ac_cv_c_bigendian+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   # See if sys/param.h defines the BYTE_ORDER macro.
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 #include <sys/types.h>
13826 #include <sys/param.h>
13827
13828 int
13829 main ()
13830 {
13831 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13832         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13833  bogus endian macros
13834 #endif
13835
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_compile") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } && {
13854          test -z "$ac_c_werror_flag" ||
13855          test ! -s conftest.err
13856        } && test -s conftest.$ac_objext; then
13857   # It does; now see whether it defined to BIG_ENDIAN or not.
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864 #include <sys/types.h>
13865 #include <sys/param.h>
13866
13867 int
13868 main ()
13869 {
13870 #if BYTE_ORDER != BIG_ENDIAN
13871  not big endian
13872 #endif
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_compile") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } && {
13892          test -z "$ac_c_werror_flag" ||
13893          test ! -s conftest.err
13894        } && test -s conftest.$ac_objext; then
13895   ac_cv_c_bigendian=yes
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900         ac_cv_c_bigendian=no
13901 fi
13902
13903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908         # It does not; compile a test program.
13909 if test "$cross_compiling" = yes; then
13910   # try to guess the endianness by grepping values into an object file
13911   ac_cv_c_bigendian=unknown
13912   cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13919 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13920 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13921 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13922 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13923 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13924 int
13925 main ()
13926 {
13927  _ascii (); _ebcdic ();
13928   ;
13929   return 0;
13930 }
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_compile") 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } && {
13946          test -z "$ac_c_werror_flag" ||
13947          test ! -s conftest.err
13948        } && test -s conftest.$ac_objext; then
13949   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13950   ac_cv_c_bigendian=yes
13951 fi
13952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13953   if test "$ac_cv_c_bigendian" = unknown; then
13954     ac_cv_c_bigendian=no
13955   else
13956     # finding both strings is unlikely to happen, but who knows?
13957     ac_cv_c_bigendian=unknown
13958   fi
13959 fi
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964
13965 fi
13966
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 else
13969   cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975 $ac_includes_default
13976 int
13977 main ()
13978 {
13979
13980   /* Are we little or big endian?  From Harbison&Steele.  */
13981   union
13982   {
13983     long int l;
13984     char c[sizeof (long int)];
13985   } u;
13986   u.l = 1;
13987   return u.c[sizeof (long int) - 1] == 1;
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest$ac_exeext
13994 if { (ac_try="$ac_link"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_link") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14004   { (case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_try") 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_c_bigendian=no
14014 else
14015   echo "$as_me: program exited with status $ac_status" >&5
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ( exit $ac_status )
14020 ac_cv_c_bigendian=yes
14021 fi
14022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14023 fi
14024
14025
14026 fi
14027
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 fi
14030 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14031 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14032 case $ac_cv_c_bigendian in
14033   yes)
14034
14035 cat >>confdefs.h <<\_ACEOF
14036 #define WORDS_BIGENDIAN 1
14037 _ACEOF
14038  ;;
14039   no)
14040      ;;
14041   *)
14042     { { echo "$as_me:$LINENO: error: unknown endianness
14043 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14044 echo "$as_me: error: unknown endianness
14045 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14046    { (exit 1); exit 1; }; } ;;
14047 esac
14048
14049 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14050 ASM_TYPES_HEADER=./asm_types.h
14051
14052
14053 for ac_header in inttypes.h
14054 do
14055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14057   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 fi
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063                { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14065 else
14066   # Is the header compilable?
14067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075 $ac_includes_default
14076 #include <$ac_header>
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_compile") 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } && {
14092          test -z "$ac_c_werror_flag" ||
14093          test ! -s conftest.err
14094        } && test -s conftest.$ac_objext; then
14095   ac_header_compiler=yes
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100         ac_header_compiler=no
14101 fi
14102
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105 echo "${ECHO_T}$ac_header_compiler" >&6; }
14106
14107 # Is the header present?
14108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14110 cat >conftest.$ac_ext <<_ACEOF
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116 #include <$ac_header>
14117 _ACEOF
14118 if { (ac_try="$ac_cpp conftest.$ac_ext"
14119 case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14125   ac_status=$?
14126   grep -v '^ *+' conftest.er1 >conftest.err
14127   rm -f conftest.er1
14128   cat conftest.err >&5
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } >/dev/null && {
14131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14132          test ! -s conftest.err
14133        }; then
14134   ac_header_preproc=yes
14135 else
14136   echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139   ac_header_preproc=no
14140 fi
14141
14142 rm -f conftest.err conftest.$ac_ext
14143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14144 echo "${ECHO_T}$ac_header_preproc" >&6; }
14145
14146 # So?  What about this header?
14147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14148   yes:no: )
14149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14153     ac_header_preproc=yes
14154     ;;
14155   no:yes:* )
14156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14168
14169     ;;
14170 esac
14171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   eval "$as_ac_Header=\$ac_header_preproc"
14177 fi
14178 ac_res=`eval echo '${'$as_ac_Header'}'`
14179                { echo "$as_me:$LINENO: result: $ac_res" >&5
14180 echo "${ECHO_T}$ac_res" >&6; }
14181
14182 fi
14183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14184   cat >>confdefs.h <<_ACEOF
14185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14186 _ACEOF
14187
14188 fi
14189
14190 done
14191
14192 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14193 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14194 if test "${ac_cv_type_intptr_t+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 $ac_includes_default
14204 typedef intptr_t ac__type_new_;
14205 int
14206 main ()
14207 {
14208 if ((ac__type_new_ *) 0)
14209   return 0;
14210 if (sizeof (ac__type_new_))
14211   return 0;
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext
14217 if { (ac_try="$ac_compile"
14218 case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_compile") 2>conftest.er1
14224   ac_status=$?
14225   grep -v '^ *+' conftest.er1 >conftest.err
14226   rm -f conftest.er1
14227   cat conftest.err >&5
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); } && {
14230          test -z "$ac_c_werror_flag" ||
14231          test ! -s conftest.err
14232        } && test -s conftest.$ac_objext; then
14233   ac_cv_type_intptr_t=yes
14234 else
14235   echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238         ac_cv_type_intptr_t=no
14239 fi
14240
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 fi
14243 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14244 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14245 if test $ac_cv_type_intptr_t = yes; then
14246
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_INTPTR_T 1
14249 _ACEOF
14250
14251
14252 fi
14253
14254 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14255 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14256 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h.  */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h.  */
14265 #include <sys/stat.h>
14266 int
14267 main ()
14268 {
14269 struct stat stat; stat.st_flags = 0;
14270   ;
14271   return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext
14275 if { (ac_try="$ac_compile"
14276 case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_compile") 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } && {
14288          test -z "$ac_c_werror_flag" ||
14289          test ! -s conftest.err
14290        } && test -s conftest.$ac_objext; then
14291   e2fsprogs_cv_struct_st_flags=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296         e2fsprogs_cv_struct_st_flags=no
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301
14302 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14303 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14304 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14305   { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14306 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14307   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14308   echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310   cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h.  */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h.  */
14316 #include <sys/stat.h>
14317 int
14318 main ()
14319 {
14320 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (ac_try="$ac_compile"
14327 case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_compile") 2>conftest.er1
14333   ac_status=$?
14334   grep -v '^ *+' conftest.er1 >conftest.err
14335   rm -f conftest.er1
14336   cat conftest.err >&5
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } && {
14339          test -z "$ac_c_werror_flag" ||
14340          test ! -s conftest.err
14341        } && test -s conftest.$ac_objext; then
14342   e2fsprogs_cv_struct_st_flags_immut=yes
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347         e2fsprogs_cv_struct_st_flags_immut=no
14348 fi
14349
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352
14353   { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14354 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14355   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14356           cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_STAT_FLAGS 1
14358 _ACEOF
14359
14360   fi
14361 fi
14362 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14363 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14364 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14365   echo $ECHO_N "(cached) $ECHO_C" >&6
14366 else
14367   cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <sys/types.h>
14374          #include <sys/socket.h>
14375
14376 int
14377 main ()
14378 {
14379 static struct sockaddr ac_aggr;
14380 if (ac_aggr.sa_len)
14381 return 0;
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390   *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393   (eval "$ac_compile") 2>conftest.er1
14394   ac_status=$?
14395   grep -v '^ *+' conftest.er1 >conftest.err
14396   rm -f conftest.er1
14397   cat conftest.err >&5
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); } && {
14400          test -z "$ac_c_werror_flag" ||
14401          test ! -s conftest.err
14402        } && test -s conftest.$ac_objext; then
14403   ac_cv_member_struct_sockaddr_sa_len=yes
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408         cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 #include <sys/types.h>
14415          #include <sys/socket.h>
14416
14417 int
14418 main ()
14419 {
14420 static struct sockaddr ac_aggr;
14421 if (sizeof ac_aggr.sa_len)
14422 return 0;
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434   (eval "$ac_compile") 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } && {
14441          test -z "$ac_c_werror_flag" ||
14442          test ! -s conftest.err
14443        } && test -s conftest.$ac_objext; then
14444   ac_cv_member_struct_sockaddr_sa_len=yes
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449         ac_cv_member_struct_sockaddr_sa_len=no
14450 fi
14451
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 fi
14454
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 fi
14457 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14458 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14459 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14460
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_SA_LEN 1
14463 _ACEOF
14464
14465 fi
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime
14494 do
14495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14509 #define $ac_func innocuous_$ac_func
14510
14511 /* System header to define __stub macros and hopefully few prototypes,
14512     which can conflict with char $ac_func (); below.
14513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514     <limits.h> exists even on freestanding compilers.  */
14515
14516 #ifdef __STDC__
14517 # include <limits.h>
14518 #else
14519 # include <assert.h>
14520 #endif
14521
14522 #undef $ac_func
14523
14524 /* Override any GCC internal prototype to avoid an error.
14525    Use char because int might match the return type of a GCC
14526    builtin and then its argument prototype would still apply.  */
14527 #ifdef __cplusplus
14528 extern "C"
14529 #endif
14530 char $ac_func ();
14531 /* The GNU C library defines this for functions which it implements
14532     to always fail with ENOSYS.  Some functions are actually named
14533     something starting with __ and the normal name is an alias.  */
14534 #if defined __stub_$ac_func || defined __stub___$ac_func
14535 choke me
14536 #endif
14537
14538 int
14539 main ()
14540 {
14541 return $ac_func ();
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_link") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } && {
14560          test -z "$ac_c_werror_flag" ||
14561          test ! -s conftest.err
14562        } && test -s conftest$ac_exeext &&
14563        $as_test_x conftest$ac_exeext; then
14564   eval "$as_ac_var=yes"
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569         eval "$as_ac_var=no"
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573       conftest$ac_exeext conftest.$ac_ext
14574 fi
14575 ac_res=`eval echo '${'$as_ac_var'}'`
14576                { echo "$as_me:$LINENO: result: $ac_res" >&5
14577 echo "${ECHO_T}$ac_res" >&6; }
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579   cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 _ACEOF
14582
14583 fi
14584 done
14585
14586 SOCKET_LIB=''
14587 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14588 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14589 if test "${ac_cv_lib_socket_socket+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592   ac_check_lib_save_LIBS=$LIBS
14593 LIBS="-lsocket  $LIBS"
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600
14601 /* Override any GCC internal prototype to avoid an error.
14602    Use char because int might match the return type of a GCC
14603    builtin and then its argument prototype would still apply.  */
14604 #ifdef __cplusplus
14605 extern "C"
14606 #endif
14607 char socket ();
14608 int
14609 main ()
14610 {
14611 return socket ();
14612   ;
14613   return 0;
14614 }
14615 _ACEOF
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_link") 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } && {
14630          test -z "$ac_c_werror_flag" ||
14631          test ! -s conftest.err
14632        } && test -s conftest$ac_exeext &&
14633        $as_test_x conftest$ac_exeext; then
14634   ac_cv_lib_socket_socket=yes
14635 else
14636   echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639         ac_cv_lib_socket_socket=no
14640 fi
14641
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643       conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14645 fi
14646 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14647 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14648 if test $ac_cv_lib_socket_socket = yes; then
14649   SOCKET_LIB=-lsocket
14650 fi
14651
14652
14653 DLOPEN_LIB=''
14654 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659   ac_check_lib_save_LIBS=$LIBS
14660 LIBS="-ldl  $LIBS"
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667
14668 /* Override any GCC internal prototype to avoid an error.
14669    Use char because int might match the return type of a GCC
14670    builtin and then its argument prototype would still apply.  */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 char dlopen ();
14675 int
14676 main ()
14677 {
14678 return dlopen ();
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_link") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } && {
14697          test -z "$ac_c_werror_flag" ||
14698          test ! -s conftest.err
14699        } && test -s conftest$ac_exeext &&
14700        $as_test_x conftest$ac_exeext; then
14701   ac_cv_lib_dl_dlopen=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706         ac_cv_lib_dl_dlopen=no
14707 fi
14708
14709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14710       conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14712 fi
14713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14714 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14715 if test $ac_cv_lib_dl_dlopen = yes; then
14716   DLOPEN_LIB=-ldl
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_DLOPEN 1
14719 _ACEOF
14720
14721 fi
14722
14723
14724 { echo "$as_me:$LINENO: checking for optreset" >&5
14725 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14726 if test "${ac_cv_have_optreset+set}" = set; then
14727   echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729   cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include <unistd.h>
14736
14737 _ACEOF
14738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14739   $EGREP "optreset" >/dev/null 2>&1; then
14740   ac_cv_have_optreset=yes
14741 else
14742   ac_cv_have_optreset=no
14743 fi
14744 rm -f conftest*
14745
14746 fi
14747 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14748 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14749 if test $ac_cv_have_optreset = yes; then
14750   cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_OPTRESET 1
14752 _ACEOF
14753
14754 fi
14755 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14756 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14757 if diff -u $0 $0 >& /dev/null ; then
14758    UNI_DIFF_OPTS=-u
14759 else
14760    UNI_DIFF_OPTS=-c
14761 fi
14762 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14763 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14764
14765 case "$host_os" in
14766 linux*)
14767         cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_EXT2_IOCTLS 1
14769 _ACEOF
14770
14771         ;;
14772 esac
14773 LINUX_CMT="#"
14774 CYGWIN_CMT="#"
14775 UNIX_CMT=
14776 case "$host_os" in
14777 linux*)
14778         LINUX_CMT=
14779         ;;
14780 cygwin)
14781         CYGWIN_CMT=
14782         UNIX_CMT="#"
14783         ;;
14784 esac
14785
14786
14787
14788 case "$host_os" in
14789 linux* | gnu* | k*bsd*-gnu)
14790         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14791                 root_prefix="";
14792                 echo "On $host_os systems, root_prefix defaults to ''"
14793         fi
14794         ;;
14795 esac
14796 case "$host_os" in
14797 linux* | gnu* | k*bsd*-gnu)
14798         if test "$prefix" = NONE ; then
14799                 prefix="/usr";
14800                 echo "On $host_os systems, prefix defaults to /usr"
14801                 if test "$mandir" = '${prefix}/man' ; then
14802                         echo "...and mandir defaults to /usr/share/man"
14803                         mandir=/usr/share/man
14804                 fi
14805         fi
14806 ;;
14807 esac
14808 if test "$root_prefix" = NONE ; then
14809         if test "$prefix" = NONE ; then
14810                 root_prefix="$ac_default_prefix"
14811         else
14812                 root_prefix="$prefix"
14813         fi
14814         root_bindir=$bindir
14815         root_sbindir=$sbindir
14816         root_libdir=$libdir
14817         root_sysconfdir=$sysconfdir
14818 else
14819         root_bindir='${root_prefix}/bin'
14820         root_sbindir='${root_prefix}/sbin'
14821         root_libdir='${root_prefix}/lib'
14822         root_sysconfdir='${root_prefix}/etc'
14823 fi
14824
14825
14826
14827
14828
14829 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14830 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
14831 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14832   echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 #include <stdio.h>
14842 int
14843 main ()
14844 {
14845 fflush(stdout);
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854   *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857   (eval "$ac_link") 2>conftest.er1
14858   ac_status=$?
14859   grep -v '^ *+' conftest.er1 >conftest.err
14860   rm -f conftest.er1
14861   cat conftest.err >&5
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } && {
14864          test -z "$ac_c_werror_flag" ||
14865          test ! -s conftest.err
14866        } && test -s conftest$ac_exeext &&
14867        $as_test_x conftest$ac_exeext; then
14868   ac_cv_e2fsprogs_use_static=yes
14869 else
14870   echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873         ac_cv_e2fsprogs_use_static=no
14874 fi
14875
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877       conftest$ac_exeext conftest.$ac_ext
14878 LDFLAGS=$SAVE_LDFLAGS
14879 fi
14880
14881 case "$host_os" in
14882 solaris2.*)
14883         ac_cv_e2fsprogs_use_static=no
14884 ;;
14885 esac
14886 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14887 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
14888 LDFLAG_STATIC=
14889 if test $ac_cv_e2fsprogs_use_static = yes; then
14890         LDFLAG_STATIC=-static
14891 fi
14892
14893 case "$host_os" in
14894 darwin*)
14895         echo "Using Apple Darwin / GNU libintl workaround"
14896         cat >>confdefs.h <<\_ACEOF
14897 #define _INTL_REDIRECT_MACROS 1
14898 _ACEOF
14899
14900         ;;
14901 esac
14902 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14903 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14904
14905
14906 if test "$cross_compiling" = yes ; then
14907   DO_TEST_SUITE=
14908 else
14909   DO_TEST_SUITE=check
14910 fi
14911
14912 INTL_FLAGS=
14913 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14914         INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14915 fi
14916
14917 if test $cross_compiling = no; then
14918    BUILD_CFLAGS="$CFLAGS"
14919    BUILD_LDFLAGS="$LDFLAGS"
14920 else
14921    BUILD_CFLAGS=
14922    BUILD_LDFLAGS=
14923 fi
14924
14925
14926 test -d lib || mkdir lib
14927 test -d include || mkdir include
14928 test -d include/linux || mkdir include/linux
14929 test -d include/asm || mkdir include/asm
14930 for i in MCONFIG Makefile e2fsprogs.spec \
14931         util/Makefile util/subst.conf util/gen-tarball \
14932         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14933         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14934         lib/uuid/Makefile lib/uuid/uuid_types.h \
14935         lib/blkid/Makefile lib/blkid/blkid_types.h \
14936         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14937         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14938         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14939         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14940         resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14941         if test -d `dirname ${srcdir}/$i` ; then
14942                 outlist="$outlist $i"
14943         fi
14944 done
14945 ac_config_files="$ac_config_files $outlist"
14946
14947 cat >confcache <<\_ACEOF
14948 # This file is a shell script that caches the results of configure
14949 # tests run on this system so they can be shared between configure
14950 # scripts and configure runs, see configure's option --config-cache.
14951 # It is not useful on other systems.  If it contains results you don't
14952 # want to keep, you may remove or edit it.
14953 #
14954 # config.status only pays attention to the cache file if you give it
14955 # the --recheck option to rerun configure.
14956 #
14957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14959 # following values.
14960
14961 _ACEOF
14962
14963 # The following way of writing the cache mishandles newlines in values,
14964 # but we know of no workaround that is simple, portable, and efficient.
14965 # So, we kill variables containing newlines.
14966 # Ultrix sh set writes to stderr and can't be redirected directly,
14967 # and sets the high bit in the cache file unless we assign to the vars.
14968 (
14969   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14970     eval ac_val=\$$ac_var
14971     case $ac_val in #(
14972     *${as_nl}*)
14973       case $ac_var in #(
14974       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14976       esac
14977       case $ac_var in #(
14978       _ | IFS | as_nl) ;; #(
14979       *) $as_unset $ac_var ;;
14980       esac ;;
14981     esac
14982   done
14983
14984   (set) 2>&1 |
14985     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14986     *${as_nl}ac_space=\ *)
14987       # `set' does not quote correctly, so add quotes (double-quote
14988       # substitution turns \\\\ into \\, and sed turns \\ into \).
14989       sed -n \
14990         "s/'/'\\\\''/g;
14991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14992       ;; #(
14993     *)
14994       # `set' quotes correctly as required by POSIX, so do not add quotes.
14995       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14996       ;;
14997     esac |
14998     sort
14999 ) |
15000   sed '
15001      /^ac_cv_env_/b end
15002      t clear
15003      :clear
15004      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15005      t end
15006      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15007      :end' >>confcache
15008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15009   if test -w "$cache_file"; then
15010     test "x$cache_file" != "x/dev/null" &&
15011       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15012 echo "$as_me: updating cache $cache_file" >&6;}
15013     cat confcache >$cache_file
15014   else
15015     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15016 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15017   fi
15018 fi
15019 rm -f confcache
15020
15021 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15022 # Let make expand exec_prefix.
15023 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15024
15025 # Transform confdefs.h into DEFS.
15026 # Protect against shell expansion while executing Makefile rules.
15027 # Protect against Makefile macro expansion.
15028 #
15029 # If the first sed substitution is executed (which looks for macros that
15030 # take arguments), then branch to the quote section.  Otherwise,
15031 # look for a macro that doesn't take arguments.
15032 ac_script='
15033 t clear
15034 :clear
15035 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15036 t quote
15037 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15038 t quote
15039 b any
15040 :quote
15041 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15042 s/\[/\\&/g
15043 s/\]/\\&/g
15044 s/\$/$$/g
15045 H
15046 :any
15047 ${
15048         g
15049         s/^\n//
15050         s/\n/ /g
15051         p
15052 }
15053 '
15054 DEFS=`sed -n "$ac_script" confdefs.h`
15055
15056
15057 ac_libobjs=
15058 ac_ltlibobjs=
15059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15060   # 1. Remove the extension, and $U if already installed.
15061   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15062   ac_i=`echo "$ac_i" | sed "$ac_script"`
15063   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15064   #    will be set to the directory where LIBOBJS objects are built.
15065   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15066   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15067 done
15068 LIBOBJS=$ac_libobjs
15069
15070 LTLIBOBJS=$ac_ltlibobjs
15071
15072
15073
15074 : ${CONFIG_STATUS=./config.status}
15075 ac_clean_files_save=$ac_clean_files
15076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15079 cat >$CONFIG_STATUS <<_ACEOF
15080 #! $SHELL
15081 # Generated by $as_me.
15082 # Run this file to recreate the current configuration.
15083 # Compiler output produced by configure, useful for debugging
15084 # configure, is in config.log if it exists.
15085
15086 debug=false
15087 ac_cs_recheck=false
15088 ac_cs_silent=false
15089 SHELL=\${CONFIG_SHELL-$SHELL}
15090 _ACEOF
15091
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 ## --------------------- ##
15094 ## M4sh Initialization.  ##
15095 ## --------------------- ##
15096
15097 # Be more Bourne compatible
15098 DUALCASE=1; export DUALCASE # for MKS sh
15099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15100   emulate sh
15101   NULLCMD=:
15102   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15103   # is contrary to our usage.  Disable this feature.
15104   alias -g '${1+"$@"}'='"$@"'
15105   setopt NO_GLOB_SUBST
15106 else
15107   case `(set -o) 2>/dev/null` in
15108   *posix*) set -o posix ;;
15109 esac
15110
15111 fi
15112
15113
15114
15115
15116 # PATH needs CR
15117 # Avoid depending upon Character Ranges.
15118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15121 as_cr_digits='0123456789'
15122 as_cr_alnum=$as_cr_Letters$as_cr_digits
15123
15124 # The user is always right.
15125 if test "${PATH_SEPARATOR+set}" != set; then
15126   echo "#! /bin/sh" >conf$$.sh
15127   echo  "exit 0"   >>conf$$.sh
15128   chmod +x conf$$.sh
15129   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15130     PATH_SEPARATOR=';'
15131   else
15132     PATH_SEPARATOR=:
15133   fi
15134   rm -f conf$$.sh
15135 fi
15136
15137 # Support unset when possible.
15138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15139   as_unset=unset
15140 else
15141   as_unset=false
15142 fi
15143
15144
15145 # IFS
15146 # We need space, tab and new line, in precisely that order.  Quoting is
15147 # there to prevent editors from complaining about space-tab.
15148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15149 # splitting by setting IFS to empty value.)
15150 as_nl='
15151 '
15152 IFS=" ""        $as_nl"
15153
15154 # Find who we are.  Look in the path if we contain no directory separator.
15155 case $0 in
15156   *[\\/]* ) as_myself=$0 ;;
15157   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15159 do
15160   IFS=$as_save_IFS
15161   test -z "$as_dir" && as_dir=.
15162   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15163 done
15164 IFS=$as_save_IFS
15165
15166      ;;
15167 esac
15168 # We did not find ourselves, most probably we were run as `sh COMMAND'
15169 # in which case we are not to be found in the path.
15170 if test "x$as_myself" = x; then
15171   as_myself=$0
15172 fi
15173 if test ! -f "$as_myself"; then
15174   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15175   { (exit 1); exit 1; }
15176 fi
15177
15178 # Work around bugs in pre-3.0 UWIN ksh.
15179 for as_var in ENV MAIL MAILPATH
15180 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15181 done
15182 PS1='$ '
15183 PS2='> '
15184 PS4='+ '
15185
15186 # NLS nuisances.
15187 for as_var in \
15188   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15189   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15190   LC_TELEPHONE LC_TIME
15191 do
15192   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15193     eval $as_var=C; export $as_var
15194   else
15195     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15196   fi
15197 done
15198
15199 # Required to use basename.
15200 if expr a : '\(a\)' >/dev/null 2>&1 &&
15201    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15202   as_expr=expr
15203 else
15204   as_expr=false
15205 fi
15206
15207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15208   as_basename=basename
15209 else
15210   as_basename=false
15211 fi
15212
15213
15214 # Name of the executable.
15215 as_me=`$as_basename -- "$0" ||
15216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15217          X"$0" : 'X\(//\)$' \| \
15218          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15219 echo X/"$0" |
15220     sed '/^.*\/\([^/][^/]*\)\/*$/{
15221             s//\1/
15222             q
15223           }
15224           /^X\/\(\/\/\)$/{
15225             s//\1/
15226             q
15227           }
15228           /^X\/\(\/\).*/{
15229             s//\1/
15230             q
15231           }
15232           s/.*/./; q'`
15233
15234 # CDPATH.
15235 $as_unset CDPATH
15236
15237
15238
15239   as_lineno_1=$LINENO
15240   as_lineno_2=$LINENO
15241   test "x$as_lineno_1" != "x$as_lineno_2" &&
15242   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15243
15244   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15245   # uniformly replaced by the line number.  The first 'sed' inserts a
15246   # line-number line after each line using $LINENO; the second 'sed'
15247   # does the real work.  The second script uses 'N' to pair each
15248   # line-number line with the line containing $LINENO, and appends
15249   # trailing '-' during substitution so that $LINENO is not a special
15250   # case at line end.
15251   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15252   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15253   # E. McMahon (1931-1989) for sed's syntax.  :-)
15254   sed -n '
15255     p
15256     /[$]LINENO/=
15257   ' <$as_myself |
15258     sed '
15259       s/[$]LINENO.*/&-/
15260       t lineno
15261       b
15262       :lineno
15263       N
15264       :loop
15265       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15266       t loop
15267       s/-\n.*//
15268     ' >$as_me.lineno &&
15269   chmod +x "$as_me.lineno" ||
15270     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15271    { (exit 1); exit 1; }; }
15272
15273   # Don't try to exec as it changes $[0], causing all sort of problems
15274   # (the dirname of $[0] is not the place where we might find the
15275   # original and so on.  Autoconf is especially sensitive to this).
15276   . "./$as_me.lineno"
15277   # Exit status is that of the last command.
15278   exit
15279 }
15280
15281
15282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15283   as_dirname=dirname
15284 else
15285   as_dirname=false
15286 fi
15287
15288 ECHO_C= ECHO_N= ECHO_T=
15289 case `echo -n x` in
15290 -n*)
15291   case `echo 'x\c'` in
15292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15293   *)   ECHO_C='\c';;
15294   esac;;
15295 *)
15296   ECHO_N='-n';;
15297 esac
15298
15299 if expr a : '\(a\)' >/dev/null 2>&1 &&
15300    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15301   as_expr=expr
15302 else
15303   as_expr=false
15304 fi
15305
15306 rm -f conf$$ conf$$.exe conf$$.file
15307 if test -d conf$$.dir; then
15308   rm -f conf$$.dir/conf$$.file
15309 else
15310   rm -f conf$$.dir
15311   mkdir conf$$.dir
15312 fi
15313 echo >conf$$.file
15314 if ln -s conf$$.file conf$$ 2>/dev/null; then
15315   as_ln_s='ln -s'
15316   # ... but there are two gotchas:
15317   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15318   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15319   # In both cases, we have to default to `cp -p'.
15320   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15321     as_ln_s='cp -p'
15322 elif ln conf$$.file conf$$ 2>/dev/null; then
15323   as_ln_s=ln
15324 else
15325   as_ln_s='cp -p'
15326 fi
15327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15328 rmdir conf$$.dir 2>/dev/null
15329
15330 if mkdir -p . 2>/dev/null; then
15331   as_mkdir_p=:
15332 else
15333   test -d ./-p && rmdir ./-p
15334   as_mkdir_p=false
15335 fi
15336
15337 if test -x / >/dev/null 2>&1; then
15338   as_test_x='test -x'
15339 else
15340   if ls -dL / >/dev/null 2>&1; then
15341     as_ls_L_option=L
15342   else
15343     as_ls_L_option=
15344   fi
15345   as_test_x='
15346     eval sh -c '\''
15347       if test -d "$1"; then
15348         test -d "$1/.";
15349       else
15350         case $1 in
15351         -*)set "./$1";;
15352         esac;
15353         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15354         ???[sx]*):;;*)false;;esac;fi
15355     '\'' sh
15356   '
15357 fi
15358 as_executable_p=$as_test_x
15359
15360 # Sed expression to map a string onto a valid CPP name.
15361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15362
15363 # Sed expression to map a string onto a valid variable name.
15364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15365
15366
15367 exec 6>&1
15368
15369 # Save the log message, to keep $[0] and so on meaningful, and to
15370 # report actual input values of CONFIG_FILES etc. instead of their
15371 # values after options handling.
15372 ac_log="
15373 This file was extended by $as_me, which was
15374 generated by GNU Autoconf 2.61.  Invocation command line was
15375
15376   CONFIG_FILES    = $CONFIG_FILES
15377   CONFIG_HEADERS  = $CONFIG_HEADERS
15378   CONFIG_LINKS    = $CONFIG_LINKS
15379   CONFIG_COMMANDS = $CONFIG_COMMANDS
15380   $ $0 $@
15381
15382 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15383 "
15384
15385 _ACEOF
15386
15387 cat >>$CONFIG_STATUS <<_ACEOF
15388 # Files that config.status was made for.
15389 config_files="$ac_config_files"
15390 config_commands="$ac_config_commands"
15391
15392 _ACEOF
15393
15394 cat >>$CONFIG_STATUS <<\_ACEOF
15395 ac_cs_usage="\
15396 \`$as_me' instantiates files from templates according to the
15397 current configuration.
15398
15399 Usage: $0 [OPTIONS] [FILE]...
15400
15401   -h, --help       print this help, then exit
15402   -V, --version    print version number and configuration settings, then exit
15403   -q, --quiet      do not print progress messages
15404   -d, --debug      don't remove temporary files
15405       --recheck    update $as_me by reconfiguring in the same conditions
15406   --file=FILE[:TEMPLATE]
15407                    instantiate the configuration file FILE
15408
15409 Configuration files:
15410 $config_files
15411
15412 Configuration commands:
15413 $config_commands
15414
15415 Report bugs to <bug-autoconf@gnu.org>."
15416
15417 _ACEOF
15418 cat >>$CONFIG_STATUS <<_ACEOF
15419 ac_cs_version="\\
15420 config.status
15421 configured by $0, generated by GNU Autoconf 2.61,
15422   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15423
15424 Copyright (C) 2006 Free Software Foundation, Inc.
15425 This config.status script is free software; the Free Software Foundation
15426 gives unlimited permission to copy, distribute and modify it."
15427
15428 ac_pwd='$ac_pwd'
15429 srcdir='$srcdir'
15430 INSTALL='$INSTALL'
15431 _ACEOF
15432
15433 cat >>$CONFIG_STATUS <<\_ACEOF
15434 # If no file are specified by the user, then we need to provide default
15435 # value.  By we need to know if files were specified by the user.
15436 ac_need_defaults=:
15437 while test $# != 0
15438 do
15439   case $1 in
15440   --*=*)
15441     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15443     ac_shift=:
15444     ;;
15445   *)
15446     ac_option=$1
15447     ac_optarg=$2
15448     ac_shift=shift
15449     ;;
15450   esac
15451
15452   case $ac_option in
15453   # Handling of the options.
15454   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15455     ac_cs_recheck=: ;;
15456   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15457     echo "$ac_cs_version"; exit ;;
15458   --debug | --debu | --deb | --de | --d | -d )
15459     debug=: ;;
15460   --file | --fil | --fi | --f )
15461     $ac_shift
15462     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15463     ac_need_defaults=false;;
15464   --he | --h |  --help | --hel | -h )
15465     echo "$ac_cs_usage"; exit ;;
15466   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15467   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15468     ac_cs_silent=: ;;
15469
15470   # This is an error.
15471   -*) { echo "$as_me: error: unrecognized option: $1
15472 Try \`$0 --help' for more information." >&2
15473    { (exit 1); exit 1; }; } ;;
15474
15475   *) ac_config_targets="$ac_config_targets $1"
15476      ac_need_defaults=false ;;
15477
15478   esac
15479   shift
15480 done
15481
15482 ac_configure_extra_args=
15483
15484 if $ac_cs_silent; then
15485   exec 6>/dev/null
15486   ac_configure_extra_args="$ac_configure_extra_args --silent"
15487 fi
15488
15489 _ACEOF
15490 cat >>$CONFIG_STATUS <<_ACEOF
15491 if \$ac_cs_recheck; then
15492   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15493   CONFIG_SHELL=$SHELL
15494   export CONFIG_SHELL
15495   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15496 fi
15497
15498 _ACEOF
15499 cat >>$CONFIG_STATUS <<\_ACEOF
15500 exec 5>>config.log
15501 {
15502   echo
15503   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15504 ## Running $as_me. ##
15505 _ASBOX
15506   echo "$ac_log"
15507 } >&5
15508
15509 _ACEOF
15510 cat >>$CONFIG_STATUS <<_ACEOF
15511 #
15512 # INIT-COMMANDS
15513 #
15514 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15515     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15516     # from automake.
15517     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15518     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15519     LINGUAS="${LINGUAS-%UNSET%}"
15520
15521
15522 _ACEOF
15523
15524 cat >>$CONFIG_STATUS <<\_ACEOF
15525
15526 # Handling of arguments.
15527 for ac_config_target in $ac_config_targets
15528 do
15529   case $ac_config_target in
15530     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15531     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15532
15533   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15535    { (exit 1); exit 1; }; };;
15536   esac
15537 done
15538
15539
15540 # If the user did not use the arguments to specify the items to instantiate,
15541 # then the envvar interface is used.  Set only those that are not.
15542 # We use the long form for the default assignment because of an extremely
15543 # bizarre bug on SunOS 4.1.3.
15544 if $ac_need_defaults; then
15545   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15546   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15547 fi
15548
15549 # Have a temporary directory for convenience.  Make it in the build tree
15550 # simply because there is no reason against having it here, and in addition,
15551 # creating and moving files from /tmp can sometimes cause problems.
15552 # Hook for its removal unless debugging.
15553 # Note that there is a small window in which the directory will not be cleaned:
15554 # after its creation but before its name has been assigned to `$tmp'.
15555 $debug ||
15556 {
15557   tmp=
15558   trap 'exit_status=$?
15559   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15560 ' 0
15561   trap '{ (exit 1); exit 1; }' 1 2 13 15
15562 }
15563 # Create a (secure) tmp directory for tmp files.
15564
15565 {
15566   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15567   test -n "$tmp" && test -d "$tmp"
15568 }  ||
15569 {
15570   tmp=./conf$$-$RANDOM
15571   (umask 077 && mkdir "$tmp")
15572 } ||
15573 {
15574    echo "$me: cannot create a temporary directory in ." >&2
15575    { (exit 1); exit 1; }
15576 }
15577
15578 #
15579 # Set up the sed scripts for CONFIG_FILES section.
15580 #
15581
15582 # No need to generate the scripts if there are no CONFIG_FILES.
15583 # This happens for instance when ./config.status config.h
15584 if test -n "$CONFIG_FILES"; then
15585
15586 _ACEOF
15587
15588 # Create sed commands to just substitute file output variables.
15589
15590 # Remaining file output variables are in a fragment that also has non-file
15591 # output varibles.
15592
15593
15594
15595 ac_delim='%!_!# '
15596 for ac_last_try in false false false false false :; do
15597   cat >conf$$subs.sed <<_ACEOF
15598 SHELL!$SHELL$ac_delim
15599 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15600 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15601 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15602 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15603 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15604 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15605 exec_prefix!$exec_prefix$ac_delim
15606 prefix!$prefix$ac_delim
15607 program_transform_name!$program_transform_name$ac_delim
15608 bindir!$bindir$ac_delim
15609 sbindir!$sbindir$ac_delim
15610 libexecdir!$libexecdir$ac_delim
15611 datarootdir!$datarootdir$ac_delim
15612 datadir!$datadir$ac_delim
15613 sysconfdir!$sysconfdir$ac_delim
15614 sharedstatedir!$sharedstatedir$ac_delim
15615 localstatedir!$localstatedir$ac_delim
15616 includedir!$includedir$ac_delim
15617 oldincludedir!$oldincludedir$ac_delim
15618 docdir!$docdir$ac_delim
15619 infodir!$infodir$ac_delim
15620 htmldir!$htmldir$ac_delim
15621 dvidir!$dvidir$ac_delim
15622 pdfdir!$pdfdir$ac_delim
15623 psdir!$psdir$ac_delim
15624 libdir!$libdir$ac_delim
15625 localedir!$localedir$ac_delim
15626 mandir!$mandir$ac_delim
15627 DEFS!$DEFS$ac_delim
15628 ECHO_C!$ECHO_C$ac_delim
15629 ECHO_N!$ECHO_N$ac_delim
15630 ECHO_T!$ECHO_T$ac_delim
15631 LIBS!$LIBS$ac_delim
15632 build_alias!$build_alias$ac_delim
15633 host_alias!$host_alias$ac_delim
15634 target_alias!$target_alias$ac_delim
15635 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15636 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15637 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15638 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15639 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15640 build!$build$ac_delim
15641 build_cpu!$build_cpu$ac_delim
15642 build_vendor!$build_vendor$ac_delim
15643 build_os!$build_os$ac_delim
15644 host!$host$ac_delim
15645 host_cpu!$host_cpu$ac_delim
15646 host_vendor!$host_vendor$ac_delim
15647 host_os!$host_os$ac_delim
15648 CC!$CC$ac_delim
15649 CFLAGS!$CFLAGS$ac_delim
15650 LDFLAGS!$LDFLAGS$ac_delim
15651 CPPFLAGS!$CPPFLAGS$ac_delim
15652 ac_ct_CC!$ac_ct_CC$ac_delim
15653 EXEEXT!$EXEEXT$ac_delim
15654 OBJEXT!$OBJEXT$ac_delim
15655 CPP!$CPP$ac_delim
15656 LD!$LD$ac_delim
15657 GREP!$GREP$ac_delim
15658 EGREP!$EGREP$ac_delim
15659 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15660 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15661 HTREE_CMT!$HTREE_CMT$ac_delim
15662 ELF_CMT!$ELF_CMT$ac_delim
15663 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15664 PROFILE_CMT!$PROFILE_CMT$ac_delim
15665 CHECKER_CMT!$CHECKER_CMT$ac_delim
15666 LIB_EXT!$LIB_EXT$ac_delim
15667 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15668 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15669 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15670 IMAGER_CMT!$IMAGER_CMT$ac_delim
15671 RESIZER_CMT!$RESIZER_CMT$ac_delim
15672 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
15673 FSCK_PROG!$FSCK_PROG$ac_delim
15674 _ACEOF
15675
15676   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15677     break
15678   elif $ac_last_try; then
15679     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15680 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15681    { (exit 1); exit 1; }; }
15682   else
15683     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15684   fi
15685 done
15686
15687 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15688 if test -n "$ac_eof"; then
15689   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15690   ac_eof=`expr $ac_eof + 1`
15691 fi
15692
15693 cat >>$CONFIG_STATUS <<_ACEOF
15694 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15696 /^[      ]*@MCONFIG@[    ]*$/{
15697 r $MCONFIG
15698 d
15699 }
15700 /^[      ]*@MAKEFILE_ELF@[       ]*$/{
15701 r $MAKEFILE_ELF
15702 d
15703 }
15704 /^[      ]*@MAKEFILE_BSDLIB@[    ]*$/{
15705 r $MAKEFILE_BSDLIB
15706 d
15707 }
15708 /^[      ]*@MAKEFILE_PROFILE@[   ]*$/{
15709 r $MAKEFILE_PROFILE
15710 d
15711 }
15712 /^[      ]*@MAKEFILE_CHECKER@[   ]*$/{
15713 r $MAKEFILE_CHECKER
15714 d
15715 }
15716 /^[      ]*@MAKEFILE_LIBRARY@[   ]*$/{
15717 r $MAKEFILE_LIBRARY
15718 d
15719 }
15720 /^[      ]*@ASM_TYPES_HEADER@[   ]*$/{
15721 r $ASM_TYPES_HEADER
15722 d
15723 }
15724 _ACEOF
15725 sed '
15726 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15727 s/^/s,@/; s/!/@,|#_!!_#|/
15728 :n
15729 t n
15730 s/'"$ac_delim"'$/,g/; t
15731 s/$/\\/; p
15732 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15733 ' >>$CONFIG_STATUS <conf$$subs.sed
15734 rm -f conf$$subs.sed
15735 cat >>$CONFIG_STATUS <<_ACEOF
15736 CEOF$ac_eof
15737 _ACEOF
15738
15739
15740 ac_delim='%!_!# '
15741 for ac_last_try in false false false false false :; do
15742   cat >conf$$subs.sed <<_ACEOF
15743 FSCK_MAN!$FSCK_MAN$ac_delim
15744 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15745 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15746 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15747 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15748 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15749 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15750 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15751 PACKAGE!$PACKAGE$ac_delim
15752 VERSION!$VERSION$ac_delim
15753 SET_MAKE!$SET_MAKE$ac_delim
15754 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15755 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15756 INSTALL_DATA!$INSTALL_DATA$ac_delim
15757 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15758 USE_NLS!$USE_NLS$ac_delim
15759 MSGFMT!$MSGFMT$ac_delim
15760 GMSGFMT!$GMSGFMT$ac_delim
15761 XGETTEXT!$XGETTEXT$ac_delim
15762 MSGMERGE!$MSGMERGE$ac_delim
15763 RANLIB!$RANLIB$ac_delim
15764 ALLOCA!$ALLOCA$ac_delim
15765 GLIBC21!$GLIBC21$ac_delim
15766 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15767 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15768 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15769 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15770 LIBICONV!$LIBICONV$ac_delim
15771 LTLIBICONV!$LTLIBICONV$ac_delim
15772 INTLBISON!$INTLBISON$ac_delim
15773 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15774 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15775 CATOBJEXT!$CATOBJEXT$ac_delim
15776 DATADIRNAME!$DATADIRNAME$ac_delim
15777 INSTOBJEXT!$INSTOBJEXT$ac_delim
15778 GENCAT!$GENCAT$ac_delim
15779 INTLOBJS!$INTLOBJS$ac_delim
15780 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15781 INTLLIBS!$INTLLIBS$ac_delim
15782 LIBINTL!$LIBINTL$ac_delim
15783 LTLIBINTL!$LTLIBINTL$ac_delim
15784 POSUB!$POSUB$ac_delim
15785 BINARY_TYPE!$BINARY_TYPE$ac_delim
15786 LN!$LN$ac_delim
15787 LN_S!$LN_S$ac_delim
15788 MV!$MV$ac_delim
15789 CP!$CP$ac_delim
15790 RM!$RM$ac_delim
15791 CHMOD!$CHMOD$ac_delim
15792 AWK!$AWK$ac_delim
15793 SED!$SED$ac_delim
15794 PERL!$PERL$ac_delim
15795 LDCONFIG!$LDCONFIG$ac_delim
15796 AR!$AR$ac_delim
15797 STRIP!$STRIP$ac_delim
15798 BUILD_CC!$BUILD_CC$ac_delim
15799 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15800 SIZEOF_INT!$SIZEOF_INT$ac_delim
15801 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15802 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15803 SOCKET_LIB!$SOCKET_LIB$ac_delim
15804 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15805 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15806 LINUX_CMT!$LINUX_CMT$ac_delim
15807 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15808 UNIX_CMT!$UNIX_CMT$ac_delim
15809 root_prefix!$root_prefix$ac_delim
15810 root_bindir!$root_bindir$ac_delim
15811 root_sbindir!$root_sbindir$ac_delim
15812 root_libdir!$root_libdir$ac_delim
15813 root_sysconfdir!$root_sysconfdir$ac_delim
15814 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15815 SS_DIR!$SS_DIR$ac_delim
15816 ET_DIR!$ET_DIR$ac_delim
15817 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15818 INTL_FLAGS!$INTL_FLAGS$ac_delim
15819 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15820 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15821 LIBOBJS!$LIBOBJS$ac_delim
15822 LTLIBOBJS!$LTLIBOBJS$ac_delim
15823 _ACEOF
15824
15825   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
15826     break
15827   elif $ac_last_try; then
15828     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15829 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15830    { (exit 1); exit 1; }; }
15831   else
15832     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15833   fi
15834 done
15835
15836 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15837 if test -n "$ac_eof"; then
15838   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15839   ac_eof=`expr $ac_eof + 1`
15840 fi
15841
15842 cat >>$CONFIG_STATUS <<_ACEOF
15843 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15845 _ACEOF
15846 sed '
15847 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15848 s/^/s,@/; s/!/@,|#_!!_#|/
15849 :n
15850 t n
15851 s/'"$ac_delim"'$/,g/; t
15852 s/$/\\/; p
15853 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15854 ' >>$CONFIG_STATUS <conf$$subs.sed
15855 rm -f conf$$subs.sed
15856 cat >>$CONFIG_STATUS <<_ACEOF
15857 :end
15858 s/|#_!!_#|//g
15859 CEOF$ac_eof
15860 _ACEOF
15861
15862
15863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15865 # trailing colons and then remove the whole line if VPATH becomes empty
15866 # (actually we leave an empty line to preserve line numbers).
15867 if test "x$srcdir" = x.; then
15868   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15869 s/:*\$(srcdir):*/:/
15870 s/:*\${srcdir}:*/:/
15871 s/:*@srcdir@:*/:/
15872 s/^\([^=]*=[     ]*\):*/\1/
15873 s/:*$//
15874 s/^[^=]*=[       ]*$//
15875 }'
15876 fi
15877
15878 cat >>$CONFIG_STATUS <<\_ACEOF
15879 fi # test -n "$CONFIG_FILES"
15880
15881
15882 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
15883 do
15884   case $ac_tag in
15885   :[FHLC]) ac_mode=$ac_tag; continue;;
15886   esac
15887   case $ac_mode$ac_tag in
15888   :[FHL]*:*);;
15889   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15890 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15891    { (exit 1); exit 1; }; };;
15892   :[FH]-) ac_tag=-:-;;
15893   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15894   esac
15895   ac_save_IFS=$IFS
15896   IFS=:
15897   set x $ac_tag
15898   IFS=$ac_save_IFS
15899   shift
15900   ac_file=$1
15901   shift
15902
15903   case $ac_mode in
15904   :L) ac_source=$1;;
15905   :[FH])
15906     ac_file_inputs=
15907     for ac_f
15908     do
15909       case $ac_f in
15910       -) ac_f="$tmp/stdin";;
15911       *) # Look for the file first in the build tree, then in the source tree
15912          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15913          # because $ac_f cannot contain `:'.
15914          test -f "$ac_f" ||
15915            case $ac_f in
15916            [\\/$]*) false;;
15917            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15918            esac ||
15919            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15920 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15921    { (exit 1); exit 1; }; };;
15922       esac
15923       ac_file_inputs="$ac_file_inputs $ac_f"
15924     done
15925
15926     # Let's still pretend it is `configure' which instantiates (i.e., don't
15927     # use $as_me), people would be surprised to read:
15928     #    /* config.h.  Generated by config.status.  */
15929     configure_input="Generated from "`IFS=:
15930           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15931     if test x"$ac_file" != x-; then
15932       configure_input="$ac_file.  $configure_input"
15933       { echo "$as_me:$LINENO: creating $ac_file" >&5
15934 echo "$as_me: creating $ac_file" >&6;}
15935     fi
15936
15937     case $ac_tag in
15938     *:-:* | *:-) cat >"$tmp/stdin";;
15939     esac
15940     ;;
15941   esac
15942
15943   ac_dir=`$as_dirname -- "$ac_file" ||
15944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945          X"$ac_file" : 'X\(//\)[^/]' \| \
15946          X"$ac_file" : 'X\(//\)$' \| \
15947          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15948 echo X"$ac_file" |
15949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950             s//\1/
15951             q
15952           }
15953           /^X\(\/\/\)[^/].*/{
15954             s//\1/
15955             q
15956           }
15957           /^X\(\/\/\)$/{
15958             s//\1/
15959             q
15960           }
15961           /^X\(\/\).*/{
15962             s//\1/
15963             q
15964           }
15965           s/.*/./; q'`
15966   { as_dir="$ac_dir"
15967   case $as_dir in #(
15968   -*) as_dir=./$as_dir;;
15969   esac
15970   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15971     as_dirs=
15972     while :; do
15973       case $as_dir in #(
15974       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15975       *) as_qdir=$as_dir;;
15976       esac
15977       as_dirs="'$as_qdir' $as_dirs"
15978       as_dir=`$as_dirname -- "$as_dir" ||
15979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15980          X"$as_dir" : 'X\(//\)[^/]' \| \
15981          X"$as_dir" : 'X\(//\)$' \| \
15982          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15983 echo X"$as_dir" |
15984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15985             s//\1/
15986             q
15987           }
15988           /^X\(\/\/\)[^/].*/{
15989             s//\1/
15990             q
15991           }
15992           /^X\(\/\/\)$/{
15993             s//\1/
15994             q
15995           }
15996           /^X\(\/\).*/{
15997             s//\1/
15998             q
15999           }
16000           s/.*/./; q'`
16001       test -d "$as_dir" && break
16002     done
16003     test -z "$as_dirs" || eval "mkdir $as_dirs"
16004   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16005 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16006    { (exit 1); exit 1; }; }; }
16007   ac_builddir=.
16008
16009 case "$ac_dir" in
16010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16011 *)
16012   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16013   # A ".." for each directory in $ac_dir_suffix.
16014   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16015   case $ac_top_builddir_sub in
16016   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16017   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16018   esac ;;
16019 esac
16020 ac_abs_top_builddir=$ac_pwd
16021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16022 # for backward compatibility:
16023 ac_top_builddir=$ac_top_build_prefix
16024
16025 case $srcdir in
16026   .)  # We are building in place.
16027     ac_srcdir=.
16028     ac_top_srcdir=$ac_top_builddir_sub
16029     ac_abs_top_srcdir=$ac_pwd ;;
16030   [\\/]* | ?:[\\/]* )  # Absolute name.
16031     ac_srcdir=$srcdir$ac_dir_suffix;
16032     ac_top_srcdir=$srcdir
16033     ac_abs_top_srcdir=$srcdir ;;
16034   *) # Relative name.
16035     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16036     ac_top_srcdir=$ac_top_build_prefix$srcdir
16037     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16038 esac
16039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16040
16041
16042   case $ac_mode in
16043   :F)
16044   #
16045   # CONFIG_FILE
16046   #
16047
16048   case $INSTALL in
16049   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16050   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16051   esac
16052 _ACEOF
16053
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16055 # If the template does not know about datarootdir, expand it.
16056 # FIXME: This hack should be removed a few years after 2.60.
16057 ac_datarootdir_hack=; ac_datarootdir_seen=
16058
16059 case `sed -n '/datarootdir/ {
16060   p
16061   q
16062 }
16063 /@datadir@/p
16064 /@docdir@/p
16065 /@infodir@/p
16066 /@localedir@/p
16067 /@mandir@/p
16068 ' $ac_file_inputs` in
16069 *datarootdir*) ac_datarootdir_seen=yes;;
16070 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16071   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16072 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16073 _ACEOF
16074 cat >>$CONFIG_STATUS <<_ACEOF
16075   ac_datarootdir_hack='
16076   s&@datadir@&$datadir&g
16077   s&@docdir@&$docdir&g
16078   s&@infodir@&$infodir&g
16079   s&@localedir@&$localedir&g
16080   s&@mandir@&$mandir&g
16081     s&\\\${datarootdir}&$datarootdir&g' ;;
16082 esac
16083 _ACEOF
16084
16085 # Neutralize VPATH when `$srcdir' = `.'.
16086 # Shell code in configure.ac might set extrasub.
16087 # FIXME: do we really want to maintain this feature?
16088 cat >>$CONFIG_STATUS <<_ACEOF
16089   sed "$ac_vpsub
16090 $extrasub
16091 _ACEOF
16092 cat >>$CONFIG_STATUS <<\_ACEOF
16093 :t
16094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16095 s&@configure_input@&$configure_input&;t t
16096 s&@top_builddir@&$ac_top_builddir_sub&;t t
16097 s&@srcdir@&$ac_srcdir&;t t
16098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16099 s&@top_srcdir@&$ac_top_srcdir&;t t
16100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16101 s&@builddir@&$ac_builddir&;t t
16102 s&@abs_builddir@&$ac_abs_builddir&;t t
16103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16104 s&@INSTALL@&$ac_INSTALL&;t t
16105 $ac_datarootdir_hack
16106 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16107
16108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16109   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16110   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16111   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16112 which seems to be undefined.  Please make sure it is defined." >&5
16113 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16114 which seems to be undefined.  Please make sure it is defined." >&2;}
16115
16116   rm -f "$tmp/stdin"
16117   case $ac_file in
16118   -) cat "$tmp/out"; rm -f "$tmp/out";;
16119   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16120   esac
16121  ;;
16122
16123
16124   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16125 echo "$as_me: executing $ac_file commands" >&6;}
16126  ;;
16127   esac
16128
16129
16130   case $ac_file$ac_mode in
16131     "default-1":C)
16132     for ac_file in $CONFIG_FILES; do
16133       # Support "outfile[:infile[:infile...]]"
16134       case "$ac_file" in
16135         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16136       esac
16137       # PO directories have a Makefile.in generated from Makefile.in.in.
16138       case "$ac_file" in */Makefile.in)
16139         # Adjust a relative srcdir.
16140         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16141         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16142         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16143         # In autoconf-2.13 it is called $ac_given_srcdir.
16144         # In autoconf-2.50 it is called $srcdir.
16145         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16146         case "$ac_given_srcdir" in
16147           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16148           /*) top_srcdir="$ac_given_srcdir" ;;
16149           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16150         esac
16151         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16152           rm -f "$ac_dir/POTFILES"
16153           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16154           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16155           POMAKEFILEDEPS="POTFILES.in"
16156           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16157           # on $ac_dir but don't depend on user-specified configuration
16158           # parameters.
16159           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16160             # The LINGUAS file contains the set of available languages.
16161             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16162               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16163             fi
16164             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16165             # Hide the ALL_LINGUAS assigment from automake.
16166             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16167             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16168           else
16169             # The set of available languages was given in configure.in.
16170             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16171           fi
16172           # Compute POFILES
16173           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16174           # Compute UPDATEPOFILES
16175           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16176           # Compute DUMMYPOFILES
16177           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16178           # Compute GMOFILES
16179           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16180           case "$ac_given_srcdir" in
16181             .) srcdirpre= ;;
16182             *) srcdirpre='$(srcdir)/' ;;
16183           esac
16184           POFILES=
16185           UPDATEPOFILES=
16186           DUMMYPOFILES=
16187           GMOFILES=
16188           for lang in $ALL_LINGUAS; do
16189             POFILES="$POFILES $srcdirpre$lang.po"
16190             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16191             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16192             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16193           done
16194           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16195           # environment variable.
16196           INST_LINGUAS=
16197           if test -n "$ALL_LINGUAS"; then
16198             for presentlang in $ALL_LINGUAS; do
16199               useit=no
16200               if test "%UNSET%" != "$LINGUAS"; then
16201                 desiredlanguages="$LINGUAS"
16202               else
16203                 desiredlanguages="$ALL_LINGUAS"
16204               fi
16205               for desiredlang in $desiredlanguages; do
16206                 # Use the presentlang catalog if desiredlang is
16207                 #   a. equal to presentlang, or
16208                 #   b. a variant of presentlang (because in this case,
16209                 #      presentlang can be used as a fallback for messages
16210                 #      which are not translated in the desiredlang catalog).
16211                 case "$desiredlang" in
16212                   "$presentlang"*) useit=yes;;
16213                 esac
16214               done
16215               if test $useit = yes; then
16216                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16217               fi
16218             done
16219           fi
16220           CATALOGS=
16221           if test -n "$INST_LINGUAS"; then
16222             for lang in $INST_LINGUAS; do
16223               CATALOGS="$CATALOGS $lang.gmo"
16224             done
16225           fi
16226           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16227           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"
16228           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16229             if test -f "$f"; then
16230               case "$f" in
16231                 *.orig | *.bak | *~) ;;
16232                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16233               esac
16234             fi
16235           done
16236         fi
16237         ;;
16238       esac
16239     done ;;
16240
16241   esac
16242 done # for ac_tag
16243
16244
16245 { (exit 0); exit 0; }
16246 _ACEOF
16247 chmod +x $CONFIG_STATUS
16248 ac_clean_files=$ac_clean_files_save
16249
16250
16251 # configure is writing to config.log, and then calls config.status.
16252 # config.status does its own redirection, appending to config.log.
16253 # Unfortunately, on DOS this fails, as config.log is still kept open
16254 # by configure, so config.status won't be able to write to it; its
16255 # output is simply discarded.  So we exec the FD to /dev/null,
16256 # effectively closing config.log, so it can be properly (re)opened and
16257 # appended to by config.status.  When coming back to configure, we
16258 # need to make the FD available again.
16259 if test "$no_create" != yes; then
16260   ac_cs_success=:
16261   ac_config_status_args=
16262   test "$silent" = yes &&
16263     ac_config_status_args="$ac_config_status_args --quiet"
16264   exec 5>/dev/null
16265   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16266   exec 5>>config.log
16267   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16268   # would make configure fail if this is the last instruction.
16269   $ac_cs_success || { (exit 1); exit 1; }
16270 fi
16271
16272 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16273