]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - configure
Use pkg-config to determine where to find the devmapper library
[thirdparty/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CPP
674 LD
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 SWAPFS_CMT
688 DEBUGFS_CMT
689 IMAGER_CMT
690 RESIZER_CMT
691 E2FSCK_TYPE
692 FSCK_PROG
693 FSCK_MAN
694 E2INITRD_PROG
695 E2INITRD_MAN
696 PKG_CONFIG
697 DEVMAPPER_REQ
698 DEVMAPPER_PC_LIBS
699 DEVMAPPER_LIBS
700 STATIC_DEVMAPPER_LIBS
701 STATIC_BLKID_DEVMAPPER_LIBS
702 UUIDD_CMT
703 GETTEXT_PACKAGE
704 PACKAGE
705 VERSION
706 SET_MAKE
707 INSTALL_PROGRAM
708 INSTALL_SCRIPT
709 INSTALL_DATA
710 MKINSTALLDIRS
711 USE_NLS
712 MSGFMT
713 GMSGFMT
714 XGETTEXT
715 MSGMERGE
716 RANLIB
717 ALLOCA
718 GLIBC21
719 HAVE_POSIX_PRINTF
720 HAVE_ASPRINTF
721 HAVE_SNPRINTF
722 HAVE_WPRINTF
723 LIBICONV
724 LTLIBICONV
725 INTLBISON
726 BUILD_INCLUDED_LIBINTL
727 USE_INCLUDED_LIBINTL
728 CATOBJEXT
729 DATADIRNAME
730 INSTOBJEXT
731 GENCAT
732 INTLOBJS
733 INTL_LIBTOOL_SUFFIX_PREFIX
734 INTLLIBS
735 LIBINTL
736 LTLIBINTL
737 POSUB
738 BINARY_TYPE
739 LN
740 LN_S
741 MV
742 CP
743 RM
744 CHMOD
745 AWK
746 SED
747 PERL
748 LDCONFIG
749 AR
750 STRIP
751 BUILD_CC
752 SIZEOF_SHORT
753 SIZEOF_INT
754 SIZEOF_LONG
755 SIZEOF_LONG_LONG
756 SOCKET_LIB
757 DLOPEN_LIB
758 UNI_DIFF_OPTS
759 LINUX_CMT
760 CYGWIN_CMT
761 UNIX_CMT
762 root_prefix
763 root_bindir
764 root_sbindir
765 root_libdir
766 root_sysconfdir
767 LDFLAG_STATIC
768 SS_DIR
769 ET_DIR
770 DO_TEST_SUITE
771 INTL_FLAGS
772 BUILD_CFLAGS
773 BUILD_LDFLAGS
774 LIBOBJS
775 LTLIBOBJS'
776 ac_subst_files='MCONFIG
777 MAKEFILE_ELF
778 MAKEFILE_BSDLIB
779 MAKEFILE_PROFILE
780 MAKEFILE_CHECKER
781 MAKEFILE_LIBRARY
782 ASM_TYPES_HEADER'
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1176 fi
1177
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 echo X"$0" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1257 fi
1258 else
1259 ac_srcdir_defaulted=no
1260 fi
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures this package to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362 Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
1379 --enable-dynamic-e2fsck build e2fsck dynamically
1380 --enable-fsck build fsck wrapper program
1381 --enable-e2initrd-helper build e2initrd-helper program
1382 --enable-blkid-devmapper build with device-mapper support
1383 --disable-tls disable use of thread local support
1384 --disable-uuidd disable building the uuid daemon
1385 --disable-nls do not use Native Language Support
1386 --disable-rpath do not hardcode runtime library paths
1387
1388 Optional Packages:
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-diet-libc use diet libc
1392 --with-cc=COMPILER select compiler to use
1393 --with-linker=LINKER select linker to use
1394 --with-ccopts=CCOPTS select compiler command line options
1395 --with-ldopts=LDOPTS select linker command line options
1396 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1397 --with-gnu-ld assume the C compiler uses GNU ld default=no
1398 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1399 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1400 --with-included-gettext use the GNU gettext library included here
1401 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1402 --without-libintl-prefix don't search for libintl in includedir and libdir
1403
1404 Some influential environment variables:
1405 CC C compiler command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1408 nonstandard directory <lib dir>
1409 LIBS libraries to pass to the linker, e.g. -l<library>
1410 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1411 you have headers in a nonstandard directory <include dir>
1412 CPP C preprocessor
1413 PKG_CONFIG path to pkg-config utility
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 _ACEOF
1419 ac_status=$?
1420 fi
1421
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" || continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 configure
1479 generated by GNU Autoconf 2.61
1480
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1491
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.61. Invocation command line was
1494
1495 $ $0 $@
1496
1497 _ACEOF
1498 exec 5>>config.log
1499 {
1500 cat <<_ASUNAME
1501 ## --------- ##
1502 ## Platform. ##
1503 ## --------- ##
1504
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1513
1514 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1518 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521
1522 _ASUNAME
1523
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1530 done
1531 IFS=$as_save_IFS
1532
1533 } >&5
1534
1535 cat >&5 <<_ACEOF
1536
1537
1538 ## ----------- ##
1539 ## Core tests. ##
1540 ## ----------- ##
1541
1542 _ACEOF
1543
1544
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_configure_args=
1551 ac_configure_args0=
1552 ac_configure_args1=
1553 ac_must_keep_next=false
1554 for ac_pass in 1 2
1555 do
1556 for ac_arg
1557 do
1558 case $ac_arg in
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 continue ;;
1563 *\'*)
1564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 esac
1566 case $ac_pass in
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568 2)
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1572 else
1573 case $ac_arg in
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 esac
1581 ;;
1582 -* ) ac_must_keep_next=true ;;
1583 esac
1584 fi
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 ;;
1587 esac
1588 done
1589 done
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1600 {
1601 echo
1602
1603 cat <<\_ASBOX
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1607 _ASBOX
1608 echo
1609 # The following way of writing the cache mishandles newlines in values,
1610 (
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in #(
1614 *${as_nl}*)
1615 case $ac_var in #(
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 esac
1619 case $ac_var in #(
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1622 esac ;;
1623 esac
1624 done
1625 (set) 2>&1 |
1626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
1628 sed -n \
1629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 ;; #(
1632 *)
1633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1634 ;;
1635 esac |
1636 sort
1637 )
1638 echo
1639
1640 cat <<\_ASBOX
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_vars
1647 do
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1655
1656 if test -n "$ac_subst_files"; then
1657 cat <<\_ASBOX
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1661 _ASBOX
1662 echo
1663 for ac_var in $ac_subst_files
1664 do
1665 eval ac_val=\$$ac_var
1666 case $ac_val in
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 esac
1669 echo "$ac_var='\''$ac_val'\''"
1670 done | sort
1671 echo
1672 fi
1673
1674 if test -s confdefs.h; then
1675 cat <<\_ASBOX
1676 ## ----------- ##
1677 ## confdefs.h. ##
1678 ## ----------- ##
1679 _ASBOX
1680 echo
1681 cat confdefs.h
1682 echo
1683 fi
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1687 } >&5
1688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 exit $exit_status
1691 ' 0
1692 for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 done
1695 ac_signal=0
1696
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1699
1700 # Predefined preprocessor variables.
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 _ACEOF
1705
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 _ACEOF
1710
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 _ACEOF
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 _ACEOF
1725
1726
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733 else
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
1736 fi
1737 shift
1738 for ac_site_file
1739 do
1740 if test -r "$ac_site_file"; then
1741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1744 . "$ac_site_file"
1745 fi
1746 done
1747
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1754 case $cache_file in
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1757 esac
1758 fi
1759 else
1760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1762 >$cache_file
1763 fi
1764
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1774 set,)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,set)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,);;
1783 *)
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1788 echo "$as_me: former value: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1790 echo "$as_me: current value: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1792 fi;;
1793 esac
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1796 case $ac_new_val in
1797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 *) ac_arg=$ac_var=$ac_new_val ;;
1799 esac
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 esac
1804 fi
1805 done
1806 if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
1812 fi
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835
1836
1837
1838 ac_aux_dir=
1839 for ac_dir in config "$srcdir"/config; do
1840 if test -f "$ac_dir/install-sh"; then
1841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/install-sh -c"
1843 break
1844 elif test -f "$ac_dir/install.sh"; then
1845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/install.sh -c"
1847 break
1848 elif test -f "$ac_dir/shtool"; then
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/shtool install -c"
1851 break
1852 fi
1853 done
1854 if test -z "$ac_aux_dir"; then
1855 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1856 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1857 { (exit 1); exit 1; }; }
1858 fi
1859
1860 # These three variables are undocumented and unsupported,
1861 # and are intended to be withdrawn in a future Autoconf release.
1862 # They can cause serious problems if a builder's source tree is in a directory
1863 # whose full name contains unusual characters.
1864 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1865 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1866 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1867
1868
1869 MCONFIG=./MCONFIG
1870
1871 BINARY_TYPE=bin
1872 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1873 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1874 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1875 | tr \" " "`
1876 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1877 MONTH=`echo $DATE | awk -F- '{print $2}'`
1878 YEAR=`echo $DATE | awk -F- '{print $3}'`
1879
1880 if expr $YEAR ">" 1900 > /dev/null ; then
1881 E2FSPROGS_YEAR=$YEAR
1882 elif expr $YEAR ">" 90 >/dev/null ; then
1883 E2FSPROGS_YEAR=19$YEAR
1884 else
1885 E2FSPROGS_YEAR=20$YEAR
1886 fi
1887
1888 case $MONTH in
1889 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1890 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1891 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1892 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1893 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1894 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1895 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1896 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1897 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1898 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1899 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1900 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1901 *) echo "Unknown month $MONTH??" ;;
1902 esac
1903
1904 base_ver=`echo $E2FSPROGS_VERSION | \
1905 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906 pre_vers=`echo $base_ver 0.01 - p | dc`
1907
1908 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1909
1910 case $E2FSPROGS_VERSION in
1911 *-WIP|pre-*)
1912 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1913 ;;
1914 *)
1915 E2FSPROGS_PKGVER="$base_ver"
1916 ;;
1917 esac
1918
1919 unset DATE MONTH YEAR base_ver pre_vers date_spec
1920 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1921 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1922
1923
1924
1925
1926
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931 { (exit 1); exit 1; }; }
1932
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1949
1950 fi
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1954 *-*-*) ;;
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1958 esac
1959 build=$ac_cv_build
1960 ac_save_IFS=$IFS; IFS='-'
1961 set x $ac_cv_build
1962 shift
1963 build_cpu=$1
1964 build_vendor=$2
1965 shift; shift
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1968 build_os=$*
1969 IFS=$ac_save_IFS
1970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971
1972
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1980 else
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1985 fi
1986
1987 fi
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1990 case $ac_cv_host in
1991 *-*-*) ;;
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1995 esac
1996 host=$ac_cv_host
1997 ac_save_IFS=$IFS; IFS='-'
1998 set x $ac_cv_host
1999 shift
2000 host_cpu=$1
2001 host_vendor=$2
2002 shift; shift
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2005 host_os=$*
2006 IFS=$ac_save_IFS
2007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008
2009
2010
2011 # Check whether --with-diet-libc was given.
2012 if test "${with_diet_libc+set}" = set; then
2013 withval=$with_diet_libc; CC="diet cc -nostdinc"
2014 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2015 echo "${ECHO_T}CC=$CC" >&6; }
2016 fi
2017
2018 # Check whether --with-cc was given.
2019 if test "${with_cc+set}" = set; then
2020 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2021 echo "${ECHO_T}CC=$withval" >&6; }
2022 CC=$withval
2023 else
2024 if test -z "$CC" ; then CC=cc; fi
2025 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2026 echo "${ECHO_T}CC defaults to $CC" >&6; }
2027 fi
2028 export CC
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065 { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2067 else
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072
2073 fi
2074 if test -z "$ac_cv_prog_CC"; then
2075 ac_ct_CC=$CC
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077 set dummy gcc; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_ac_ct_CC="gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097 done
2098 done
2099 IFS=$as_save_IFS
2100
2101 fi
2102 fi
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 else
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2110 fi
2111
2112 if test "x$ac_ct_CC" = x; then
2113 CC=""
2114 else
2115 case $cross_compiling:$ac_tool_warned in
2116 yes:)
2117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2124 esac
2125 CC=$ac_ct_CC
2126 fi
2127 else
2128 CC="$ac_cv_prog_CC"
2129 fi
2130
2131 if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="${ac_tool_prefix}cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2164 else
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169
2170 fi
2171 fi
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2193 continue
2194 fi
2195 ac_cv_prog_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2198 fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 if test $ac_prog_rejected = yes; then
2204 # We found a bogon in the path, so make sure we never use it.
2205 set dummy $ac_cv_prog_CC
2206 shift
2207 if test $# != 0; then
2208 # We chose a different compiler from the bogus one.
2209 # However, it has the same basename, so the bogon will be chosen
2210 # first if we set CC to just the basename; use the full file name.
2211 shift
2212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213 fi
2214 fi
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219 { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2221 else
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226
2227 fi
2228 if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl.exe
2231 do
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269 test -n "$CC" && break
2270 done
2271 fi
2272 if test -z "$CC"; then
2273 ac_ct_CC=$CC
2274 for ac_prog in cl.exe
2275 do
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2296 fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313 test -n "$ac_ct_CC" && break
2314 done
2315
2316 if test "x$ac_ct_CC" = x; then
2317 CC=""
2318 else
2319 case $cross_compiling:$ac_tool_warned in
2320 yes:)
2321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2328 esac
2329 CC=$ac_ct_CC
2330 fi
2331 fi
2332
2333 fi
2334
2335
2336 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2341
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO: checking for C compiler version" >&5
2344 ac_compiler=`set X $ac_compile; echo $2`
2345 { (ac_try="$ac_compiler --version >&5"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler --version >&5") 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
2355 { (ac_try="$ac_compiler -v >&5"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -v >&5") 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365 { (ac_try="$ac_compiler -V >&5"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compiler -V >&5") 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375
2376 cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h. */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2382
2383 int
2384 main ()
2385 {
2386
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 ac_clean_files_save=$ac_clean_files
2392 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2395 # of exeext.
2396 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2397 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2399 #
2400 # List of possible output files, starting from the most likely.
2401 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402 # only as a last resort. b.out is created by i960 compilers.
2403 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404 #
2405 # The IRIX 6 linker writes into existing files which may not be
2406 # executable, retaining their permissions. Remove them first so a
2407 # subsequent execution test works.
2408 ac_rmfiles=
2409 for ac_file in $ac_files
2410 do
2411 case $ac_file in
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414 esac
2415 done
2416 rm -f $ac_rmfiles
2417
2418 if { (ac_try="$ac_link_default"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_link_default") 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2431 # so that the user can short-circuit this test for compilers unknown to
2432 # Autoconf.
2433 for ac_file in $ac_files ''
2434 do
2435 test -f "$ac_file" || continue
2436 case $ac_file in
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2438 ;;
2439 [ab].out )
2440 # We found the default executable, but exeext='' is most
2441 # certainly right.
2442 break;;
2443 *.* )
2444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445 then :; else
2446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 fi
2448 # We set ac_cv_exeext here because the later test for it is not
2449 # safe: cross compilers may not add the suffix if given an `-o'
2450 # argument, so we may need to know it at that point already.
2451 # Even if this section looks crufty: it has the advantage of
2452 # actually working.
2453 break;;
2454 * )
2455 break;;
2456 esac
2457 done
2458 test "$ac_cv_exeext" = no && ac_cv_exeext=
2459
2460 else
2461 ac_file=''
2462 fi
2463
2464 { echo "$as_me:$LINENO: result: $ac_file" >&5
2465 echo "${ECHO_T}$ac_file" >&6; }
2466 if test -z "$ac_file"; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2475 fi
2476
2477 ac_exeext=$ac_cv_exeext
2478
2479 # Check that the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484 # If not cross compiling, check that we can run a simple program.
2485 if test "$cross_compiling" != yes; then
2486 if { ac_try='./$ac_file'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 cross_compiling=no
2497 else
2498 if test "$cross_compiling" = maybe; then
2499 cross_compiling=yes
2500 else
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; }
2508 fi
2509 fi
2510 fi
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check that the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2520 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6; }
2522
2523 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2525 if { (ac_try="$ac_link"
2526 case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_link") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2538 # `rm'.
2539 for ac_file in conftest.exe conftest conftest.*; do
2540 test -f "$ac_file" || continue
2541 case $ac_file in
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544 break;;
2545 * ) break;;
2546 esac
2547 done
2548 else
2549 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2554 fi
2555
2556 rm -f conftest$ac_cv_exeext
2557 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2559
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2562 ac_exeext=$EXEEXT
2563 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574
2575 int
2576 main ()
2577 {
2578
2579 ;
2580 return 0;
2581 }
2582 _ACEOF
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file in conftest.o conftest.obj conftest.*; do
2595 test -f "$ac_file" || continue;
2596 case $ac_file in
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599 break;;
2600 esac
2601 done
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2611 fi
2612
2613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 fi
2615 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616 echo "${ECHO_T}$ac_cv_objext" >&6; }
2617 OBJEXT=$ac_cv_objext
2618 ac_objext=$OBJEXT
2619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630
2631 int
2632 main ()
2633 {
2634 #ifndef __GNUC__
2635 choke me
2636 #endif
2637
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.$ac_objext; then
2659 ac_compiler_gnu=yes
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_compiler_gnu=no
2665 fi
2666
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669
2670 fi
2671 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2673 GCC=`test $ac_compiler_gnu = yes && echo yes`
2674 ac_test_CFLAGS=${CFLAGS+set}
2675 ac_save_CFLAGS=$CFLAGS
2676 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 ac_save_c_werror_flag=$ac_c_werror_flag
2682 ac_c_werror_flag=yes
2683 ac_cv_prog_cc_g=no
2684 CFLAGS="-g"
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 int
2693 main ()
2694 {
2695
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2717 ac_cv_prog_cc_g=yes
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 CFLAGS=""
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729
2730 int
2731 main ()
2732 {
2733
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.$ac_objext; then
2755 :
2756 else
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_c_werror_flag=$ac_save_c_werror_flag
2761 CFLAGS="-g"
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768
2769 int
2770 main ()
2771 {
2772
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (ac_try="$ac_compile"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest.$ac_objext; then
2794 ac_cv_prog_cc_g=yes
2795 else
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_c_werror_flag=$ac_save_c_werror_flag
2810 fi
2811 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814 CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816 if test "$GCC" = yes; then
2817 CFLAGS="-g -O2"
2818 else
2819 CFLAGS="-g"
2820 fi
2821 else
2822 if test "$GCC" = yes; then
2823 CFLAGS="-O2"
2824 else
2825 CFLAGS=
2826 fi
2827 fi
2828 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 ac_cv_prog_cc_c89=no
2834 ac_save_CC=$CC
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <stdarg.h>
2842 #include <stdio.h>
2843 #include <sys/types.h>
2844 #include <sys/stat.h>
2845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2846 struct buf { int x; };
2847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848 static char *e (p, i)
2849 char **p;
2850 int i;
2851 {
2852 return p[i];
2853 }
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2855 {
2856 char *s;
2857 va_list v;
2858 va_start (v,p);
2859 s = g (p, va_arg (v,int));
2860 va_end (v);
2861 return s;
2862 }
2863
2864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2865 function prototypes and stuff, but not '\xHH' hex character constants.
2866 These don't provoke an error unfortunately, instead are silently treated
2867 as 'x'. The following induces an error, until -std is added to get
2868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2869 array size at least. It's necessary to write '\x00'==0 to get something
2870 that's true only with -std. */
2871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874 inside strings and character constants. */
2875 #define FOO(x) 'x'
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882 int argc;
2883 char **argv;
2884 int
2885 main ()
2886 {
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 do
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2913 ac_cv_prog_cc_c89=$ac_arg
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918
2919 fi
2920
2921 rm -f core conftest.err conftest.$ac_objext
2922 test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 done
2924 rm -f conftest.$ac_ext
2925 CC=$ac_save_CC
2926
2927 fi
2928 # AC_CACHE_VAL
2929 case "x$ac_cv_prog_cc_c89" in
2930 x)
2931 { echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6; } ;;
2933 xno)
2934 { echo "$as_me:$LINENO: result: unsupported" >&5
2935 echo "${ECHO_T}unsupported" >&6; } ;;
2936 *)
2937 CC="$CC $ac_cv_prog_cc_c89"
2938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2940 esac
2941
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2956 # On Suns, sometimes $CPP names a directory.
2957 if test -n "$CPP" && test -d "$CPP"; then
2958 CPP=
2959 fi
2960 if test -z "$CPP"; then
2961 if test "${ac_cv_prog_CPP+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 # Double quotes because CPP needs to be expanded
2965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966 do
2967 ac_preproc_ok=false
2968 for ac_c_preproc_warn_flag in '' yes
2969 do
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982 #ifdef __STDC__
2983 # include <limits.h>
2984 #else
2985 # include <assert.h>
2986 #endif
2987 Syntax error
2988 _ACEOF
2989 if { (ac_try="$ac_cpp conftest.$ac_ext"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null && {
3002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 }; then
3005 :
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 # Broken: fails on valid input.
3011 continue
3012 fi
3013
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 # OK, works on sane cases. Now check whether nonexistent headers
3017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <ac_nonexistent.h>
3025 _ACEOF
3026 if { (ac_try="$ac_cpp conftest.$ac_ext"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev/null && {
3039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 }; then
3042 # Broken: success on invalid input.
3043 continue
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 # Passes both tests.
3049 ac_preproc_ok=:
3050 break
3051 fi
3052
3053 rm -f conftest.err conftest.$ac_ext
3054
3055 done
3056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057 rm -f conftest.err conftest.$ac_ext
3058 if $ac_preproc_ok; then
3059 break
3060 fi
3061
3062 done
3063 ac_cv_prog_CPP=$CPP
3064
3065 fi
3066 CPP=$ac_cv_prog_CPP
3067 else
3068 ac_cv_prog_CPP=$CPP
3069 fi
3070 { echo "$as_me:$LINENO: result: $CPP" >&5
3071 echo "${ECHO_T}$CPP" >&6; }
3072 ac_preproc_ok=false
3073 for ac_c_preproc_warn_flag in '' yes
3074 do
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092 Syntax error
3093 _ACEOF
3094 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3110 :
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 # Broken: fails on valid input.
3116 continue
3117 fi
3118
3119 rm -f conftest.err conftest.$ac_ext
3120
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3130 _ACEOF
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148 continue
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 # Passes both tests.
3154 ac_preproc_ok=:
3155 break
3156 fi
3157
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164 :
3165 else
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3171 fi
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180 # Check whether --with-linker was given.
3181 if test "${with_linker+set}" = set; then
3182 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3183 echo "${ECHO_T}LD=$withval" >&6; }
3184 LD=$withval
3185 else
3186 if test -z "$LD" ; then LD=$CC; fi
3187 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3188 echo "${ECHO_T}LD defaults to $LD" >&6; }
3189 fi
3190 export LD
3191
3192
3193 # Check whether --with-ccopts was given.
3194 if test "${with_ccopts+set}" = set; then
3195 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3196 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3197 CFLAGS=$withval
3198 fi
3199
3200
3201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3203 if test "${ac_cv_path_GREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 # Extract the first word of "grep ggrep" to use in msg output
3207 if test -z "$GREP"; then
3208 set dummy grep ggrep; ac_prog_name=$2
3209 if test "${ac_cv_path_GREP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 ac_path_GREP_found=false
3213 # Loop through the user's path and test for each of PROGNAME-LIST
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_prog in grep ggrep; do
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3223 # Check for GNU ac_path_GREP and select it if it is found.
3224 # Check for GNU $ac_path_GREP
3225 case `"$ac_path_GREP" --version 2>&1` in
3226 *GNU*)
3227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3228 *)
3229 ac_count=0
3230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231 while :
3232 do
3233 cat "conftest.in" "conftest.in" >"conftest.tmp"
3234 mv "conftest.tmp" "conftest.in"
3235 cp "conftest.in" "conftest.nl"
3236 echo 'GREP' >> "conftest.nl"
3237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3239 ac_count=`expr $ac_count + 1`
3240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3241 # Best one so far, save it but keep looking for a better one
3242 ac_cv_path_GREP="$ac_path_GREP"
3243 ac_path_GREP_max=$ac_count
3244 fi
3245 # 10*(2^10) chars as input seems more than enough
3246 test $ac_count -gt 10 && break
3247 done
3248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249 esac
3250
3251
3252 $ac_path_GREP_found && break 3
3253 done
3254 done
3255
3256 done
3257 IFS=$as_save_IFS
3258
3259
3260 fi
3261
3262 GREP="$ac_cv_path_GREP"
3263 if test -z "$GREP"; then
3264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269 else
3270 ac_cv_path_GREP=$GREP
3271 fi
3272
3273
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3277 GREP="$ac_cv_path_GREP"
3278
3279
3280 { echo "$as_me:$LINENO: checking for egrep" >&5
3281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3282 if test "${ac_cv_path_EGREP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3286 then ac_cv_path_EGREP="$GREP -E"
3287 else
3288 # Extract the first word of "egrep" to use in msg output
3289 if test -z "$EGREP"; then
3290 set dummy egrep; ac_prog_name=$2
3291 if test "${ac_cv_path_EGREP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 ac_path_EGREP_found=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_prog in egrep; do
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3305 # Check for GNU ac_path_EGREP and select it if it is found.
3306 # Check for GNU $ac_path_EGREP
3307 case `"$ac_path_EGREP" --version 2>&1` in
3308 *GNU*)
3309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3310 *)
3311 ac_count=0
3312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313 while :
3314 do
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 echo 'EGREP' >> "conftest.nl"
3319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321 ac_count=`expr $ac_count + 1`
3322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_EGREP="$ac_path_EGREP"
3325 ac_path_EGREP_max=$ac_count
3326 fi
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3329 done
3330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 esac
3332
3333
3334 $ac_path_EGREP_found && break 3
3335 done
3336 done
3337
3338 done
3339 IFS=$as_save_IFS
3340
3341
3342 fi
3343
3344 EGREP="$ac_cv_path_EGREP"
3345 if test -z "$EGREP"; then
3346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351 else
3352 ac_cv_path_EGREP=$EGREP
3353 fi
3354
3355
3356 fi
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3360 EGREP="$ac_cv_path_EGREP"
3361
3362
3363 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3365 if test "${ac_cv_header_stdc+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <stdlib.h>
3375 #include <stdarg.h>
3376 #include <string.h>
3377 #include <float.h>
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3404 ac_cv_header_stdc=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 ac_cv_header_stdc=no
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413
3414 if test $ac_cv_header_stdc = yes; then
3415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <string.h>
3423
3424 _ACEOF
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 $EGREP "memchr" >/dev/null 2>&1; then
3427 :
3428 else
3429 ac_cv_header_stdc=no
3430 fi
3431 rm -f conftest*
3432
3433 fi
3434
3435 if test $ac_cv_header_stdc = yes; then
3436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <stdlib.h>
3444
3445 _ACEOF
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 $EGREP "free" >/dev/null 2>&1; then
3448 :
3449 else
3450 ac_cv_header_stdc=no
3451 fi
3452 rm -f conftest*
3453
3454 fi
3455
3456 if test $ac_cv_header_stdc = yes; then
3457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3458 if test "$cross_compiling" = yes; then
3459 :
3460 else
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 #include <ctype.h>
3468 #include <stdlib.h>
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 #else
3473 # define ISLOWER(c) \
3474 (('a' <= (c) && (c) <= 'i') \
3475 || ('j' <= (c) && (c) <= 'r') \
3476 || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #endif
3479
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481 int
3482 main ()
3483 {
3484 int i;
3485 for (i = 0; i < 256; i++)
3486 if (XOR (islower (i), ISLOWER (i))
3487 || toupper (i) != TOUPPER (i))
3488 return 2;
3489 return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest$ac_exeext
3493 if { (ac_try="$ac_link"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_link") 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3503 { (case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_try") 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 :
3513 else
3514 echo "$as_me: program exited with status $ac_status" >&5
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 ( exit $ac_status )
3519 ac_cv_header_stdc=no
3520 fi
3521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3522 fi
3523
3524
3525 fi
3526 fi
3527 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3528 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3529 if test $ac_cv_header_stdc = yes; then
3530
3531 cat >>confdefs.h <<\_ACEOF
3532 #define STDC_HEADERS 1
3533 _ACEOF
3534
3535 fi
3536
3537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3548 inttypes.h stdint.h unistd.h
3549 do
3550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 $ac_includes_default
3563
3564 #include <$ac_header>
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3583 eval "$as_ac_Header=yes"
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 eval "$as_ac_Header=no"
3589 fi
3590
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 ac_res=`eval echo '${'$as_ac_Header'}'`
3594 { echo "$as_me:$LINENO: result: $ac_res" >&5
3595 echo "${ECHO_T}$ac_res" >&6; }
3596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597 cat >>confdefs.h <<_ACEOF
3598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599 _ACEOF
3600
3601 fi
3602
3603 done
3604
3605
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3608 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3609 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 fi
3612 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3613 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3614 else
3615 # Is the header compilable?
3616 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3617 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3625 #include <linux/fs.h>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_header_compiler=yes
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 ac_header_compiler=no
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6; }
3655
3656 # Is the header present?
3657 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3658 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <linux/fs.h>
3666 _ACEOF
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } >/dev/null && {
3680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 }; then
3683 ac_header_preproc=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_header_preproc=no
3689 fi
3690
3691 rm -f conftest.err conftest.$ac_ext
3692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6; }
3694
3695 # So? What about this header?
3696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697 yes:no: )
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3701 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3702 ac_header_preproc=yes
3703 ;;
3704 no:yes:* )
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3706 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3708 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3710 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3712 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3716 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3717
3718 ;;
3719 esac
3720 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3721 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 ac_cv_header_linux_fs_h=$ac_header_preproc
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3728 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3729
3730 fi
3731 if test $ac_cv_header_linux_fs_h = yes; then
3732 linux_headers=yes
3733 else
3734 linux_headers=no
3735 fi
3736
3737
3738 if test "$linux_headers" != yes; then
3739 LINUX_INCLUDE='-I$(top_builddir)/include'
3740 fi
3741
3742 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3743 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3744 if test "$GCC" = yes
3745 then
3746 case "$host_cpu" in
3747 alpha) addcflags="-mieee" ;;
3748 esac
3749 fi
3750 if test "x$addcflags" != x
3751 then
3752 { echo "$as_me:$LINENO: result: $addcflags" >&5
3753 echo "${ECHO_T}$addcflags" >&6; }
3754 CFLAGS="$addcflags $CFLAGS"
3755 else
3756 { echo "$as_me:$LINENO: result: (none)" >&5
3757 echo "${ECHO_T}(none)" >&6; }
3758 fi
3759 LIB_EXT=.a
3760 STATIC_LIB_EXT=.a
3761 PROFILE_LIB_EXT=.a
3762
3763 # Check whether --with-ldopts was given.
3764 if test "${with_ldopts+set}" = set; then
3765 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3766 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3767 LDFLAGS=$withval
3768 else
3769 LDFLAGS=
3770 fi
3771
3772
3773 # Check whether --with-root-prefix was given.
3774 if test "${with_root_prefix+set}" = set; then
3775 withval=$with_root_prefix; root_prefix=$withval
3776 else
3777 root_prefix=NONE
3778 fi
3779 # Check whether --enable-maintainer-mode was given.
3780 if test "${enable_maintainer_mode+set}" = set; then
3781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3782 then
3783 MAINTAINER_CMT=#
3784 echo "Disabling maintainer mode"
3785 else
3786 MAINTAINER_CMT=
3787 echo "Enabling maintainer mode"
3788 fi
3789
3790 else
3791 MAINTAINER_CMT=#
3792 echo "Disabling maintainer mode by default"
3793
3794 fi
3795
3796
3797 # Check whether --enable-compression was given.
3798 if test "${enable_compression+set}" = set; then
3799 enableval=$enable_compression; if test "$enableval" = "no"
3800 then
3801 echo "Disabling compression support"
3802 else
3803 cat >>confdefs.h <<\_ACEOF
3804 #define ENABLE_COMPRESSION 1
3805 _ACEOF
3806
3807 echo "Enabling compression support"
3808 echo "WARNING: Compression support is experimental"
3809 fi
3810
3811 else
3812 echo "Disabling compression support by default"
3813
3814 fi
3815
3816 # Check whether --enable-htree was given.
3817 if test "${enable_htree+set}" = set; then
3818 enableval=$enable_htree; if test "$enableval" = "no"
3819 then
3820 HTREE_CMT=#
3821 echo "Disabling htree directory support"
3822 else
3823 HTREE_CMT=
3824 cat >>confdefs.h <<\_ACEOF
3825 #define ENABLE_HTREE 1
3826 _ACEOF
3827
3828 echo "Enabling htree directory support"
3829 fi
3830
3831 else
3832 HTREE_CMT=
3833 cat >>confdefs.h <<\_ACEOF
3834 #define ENABLE_HTREE 1
3835 _ACEOF
3836
3837 echo "Enabling htree directory support by default"
3838
3839 fi
3840
3841
3842 E2_PKG_CONFIG_STATIC=--static
3843 # Check whether --enable-elf-shlibs was given.
3844 if test "${enable_elf_shlibs+set}" = set; then
3845 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3846 then
3847 ELF_CMT=#
3848 MAKEFILE_ELF=/dev/null
3849 echo "Disabling ELF shared libraries"
3850 else
3851 E2_PKG_CONFIG_STATIC=
3852 ELF_CMT=
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3854 case "$host_os" in
3855 solaris2.*)
3856 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3857 ;;
3858 esac
3859 BINARY_TYPE=elfbin
3860 LIB_EXT=.so
3861 echo "Enabling ELF shared libraries"
3862 fi
3863
3864 else
3865 MAKEFILE_ELF=/dev/null
3866 ELF_CMT=#
3867 echo "Disabling ELF shared libraries by default"
3868
3869 fi
3870
3871
3872
3873 # Check whether --enable-bsd-shlibs was given.
3874 if test "${enable_bsd_shlibs+set}" = set; then
3875 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3876 then
3877 BSDLIB_CMT=#
3878 MAKEFILE_BSDLIB=/dev/null
3879 echo "Disabling BSD shared libraries"
3880 else
3881 E2_PKG_CONFIG_STATIC=
3882 BSDLIB_CMT=
3883 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3884 LIB_EXT=.so
3885 case "$host_os" in
3886 darwin*)
3887 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3888 LIB_EXT=.dylib
3889 ;;
3890 esac
3891 echo "Enabling BSD shared libraries"
3892 fi
3893
3894 else
3895 MAKEFILE_BSDLIB=/dev/null
3896 BSDLIB_CMT=#
3897 echo "Disabling BSD shared libraries by default"
3898
3899 fi
3900
3901
3902
3903 # Check whether --enable-profile was given.
3904 if test "${enable_profile+set}" = set; then
3905 enableval=$enable_profile; if test "$enableval" = "no"
3906 then
3907 PROFILE_CMT=#
3908 MAKEFILE_PROFILE=/dev/null
3909 echo "Disabling profiling libraries"
3910 else
3911 PROFILE_CMT=
3912 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3913 PROFILED_LIB_EXT=_p.a
3914 echo "Building profiling libraries"
3915 fi
3916
3917 else
3918 PROFILE_CMT=#
3919 MAKEFILE_PROFILE=/dev/null
3920 echo "Disabling profiling libraries by default"
3921
3922 fi
3923
3924
3925
3926 # Check whether --enable-checker was given.
3927 if test "${enable_checker+set}" = set; then
3928 enableval=$enable_checker; if test "$enableval" = "no"
3929 then
3930 CHECKER_CMT=#
3931 MAKEFILE_CHECKER=/dev/null
3932 echo "Disabling checker libraries"
3933 else
3934 CHECKER_CMT=
3935 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3936 echo "Building checker libraries"
3937 fi
3938
3939 else
3940 CHECKER_CMT=#
3941 MAKEFILE_CHECKER=/dev/null
3942 echo "Disabling checker libraries by default"
3943
3944 fi
3945
3946
3947
3948
3949
3950
3951 # Check whether --enable-jbd-debug was given.
3952 if test "${enable_jbd_debug+set}" = set; then
3953 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3954 then
3955 echo "Disabling journal debugging"
3956 else
3957 cat >>confdefs.h <<\_ACEOF
3958 #define CONFIG_JBD_DEBUG 1
3959 _ACEOF
3960
3961 echo "Enabling journal debugging"
3962 fi
3963
3964 else
3965 echo "Disabling journal debugging by default"
3966
3967 fi
3968
3969 # Check whether --enable-blkid-debug was given.
3970 if test "${enable_blkid_debug+set}" = set; then
3971 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3972 then
3973 echo "Disabling blkid debugging"
3974 else
3975 cat >>confdefs.h <<\_ACEOF
3976 #define CONFIG_BLKID_DEBUG 1
3977 _ACEOF
3978
3979 echo "Enabling blkid debugging"
3980 fi
3981
3982 else
3983 echo "Disabling blkid debugging by default"
3984
3985 fi
3986
3987 # Check whether --enable-testio-debug was given.
3988 if test "${enable_testio_debug+set}" = set; then
3989 enableval=$enable_testio_debug; if test "$enableval" = "no"
3990 then
3991 echo "Disabling testio debugging"
3992 else
3993 cat >>confdefs.h <<\_ACEOF
3994 #define CONFIG_TESTIO_DEBUG 1
3995 _ACEOF
3996
3997 echo "Enabling testio debugging"
3998 fi
3999
4000 else
4001 echo "Disabling testio debugging by default"
4002
4003 fi
4004
4005 # Check whether --enable-swapfs was given.
4006 if test "${enable_swapfs+set}" = set; then
4007 enableval=$enable_swapfs; if test "$enableval" = "no"
4008 then
4009 SWAPFS_CMT=#
4010 echo "Disabling swapfs support"
4011 else
4012 SWAPFS_CMT=
4013 cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_SWAPFS 1
4015 _ACEOF
4016
4017 echo "Enabling swapfs support"
4018 fi
4019
4020 else
4021 SWAPFS_CMT=
4022 echo "Enabling swapfs support by default"
4023 cat >>confdefs.h <<\_ACEOF
4024 #define ENABLE_SWAPFS 1
4025 _ACEOF
4026
4027
4028 fi
4029
4030
4031 # Check whether --enable-debugfs was given.
4032 if test "${enable_debugfs+set}" = set; then
4033 enableval=$enable_debugfs; if test "$enableval" = "no"
4034 then
4035 echo "Disabling debugfs support"
4036 DEBUGFS_CMT="#"
4037 else
4038 DEBUGFS_CMT=
4039 echo "Enabling debugfs support"
4040 fi
4041
4042 else
4043 echo "Enabling debugfs support by default"
4044 DEBUGFS_CMT=
4045
4046 fi
4047
4048
4049 # Check whether --enable-imager was given.
4050 if test "${enable_imager+set}" = set; then
4051 enableval=$enable_imager; if test "$enableval" = "no"
4052 then
4053 echo "Disabling e2image support"
4054 IMAGER_CMT="#"
4055 else
4056 IMAGER_CMT=
4057 echo "Enabling e2image support"
4058 fi
4059
4060 else
4061 echo "Enabling e2image support by default"
4062 IMAGER_CMT=
4063
4064 fi
4065
4066
4067 # Check whether --enable-resizer was given.
4068 if test "${enable_resizer+set}" = set; then
4069 enableval=$enable_resizer; if test "$enableval" = "no"
4070 then
4071 echo "Disabling e2resize support"
4072 RESIZER_CMT="#"
4073 else
4074 RESIZER_CMT=
4075 echo "Enabling e2resize support"
4076 fi
4077
4078 else
4079 echo "Enabling e2resize support by default"
4080 RESIZER_CMT=
4081
4082 fi
4083
4084
4085 # Check whether --enable-dynamic-e2fsck was given.
4086 if test "${enable_dynamic_e2fsck+set}" = set; then
4087 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4088 then
4089 E2FSCK_TYPE=static
4090 echo "Building e2fsck statically"
4091 else
4092 E2FSCK_TYPE=shared
4093 echo "Building e2fsck dynamically"
4094 fi
4095
4096 else
4097 E2FSCK_TYPE=static
4098 echo "Building e2fsck statically by default"
4099
4100 fi
4101
4102
4103 # Check whether --enable-fsck was given.
4104 if test "${enable_fsck+set}" = set; then
4105 enableval=$enable_fsck; if test "$enableval" = "no"
4106 then
4107 FSCK_PROG='' FSCK_MAN=''
4108 echo "Not building fsck wrapper"
4109 else
4110 FSCK_PROG=fsck FSCK_MAN=fsck.8
4111 echo "Building fsck wrapper"
4112 fi
4113
4114 else
4115 case "$host_os" in
4116 gnu*)
4117 FSCK_PROG='' FSCK_MAN=''
4118 echo "Not building fsck wrapper by default"
4119 ;;
4120 *)
4121 FSCK_PROG=fsck FSCK_MAN=fsck.8
4122 echo "Building fsck wrapper by default"
4123 esac
4124
4125 fi
4126
4127
4128
4129 # Check whether --enable-e2initrd-helper was given.
4130 if test "${enable_e2initrd_helper+set}" = set; then
4131 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4132 then
4133 E2INITRD_PROG='' E2INITRD_MAN=''
4134 echo "Not building e2initrd helper"
4135 else
4136 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4137 echo "Building e2initrd helper"
4138 fi
4139
4140 else
4141 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4142 echo "Building e2initrd helper by default"
4143
4144 fi
4145
4146
4147
4148 STATIC_BLKID_DEVMAPPER_LIBS=''
4149 # Check whether --enable-blkid-devmapper was given.
4150 if test "${enable_blkid_devmapper+set}" = set; then
4151 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4152 then
4153 echo "Disabling device-mapper support"
4154 DEVMAPPER_REQ=''
4155 DEVMAPPER_LIBS=''
4156 STATIC_DEVMAPPER_LIBS=''
4157 else
4158 cat >>confdefs.h <<\_ACEOF
4159 #define HAVE_DEVMAPPER 1
4160 _ACEOF
4161
4162 echo "Enabling device-mapper support"
4163
4164
4165
4166 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4169 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 case $PKG_CONFIG in
4176 [\\/]* | ?:[\\/]*)
4177 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4178 ;;
4179 *)
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 ;;
4196 esac
4197 fi
4198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4199 if test -n "$PKG_CONFIG"; then
4200 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4201 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4202 else
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4205 fi
4206
4207
4208 fi
4209 if test -z "$ac_cv_path_PKG_CONFIG"; then
4210 ac_pt_PKG_CONFIG=$PKG_CONFIG
4211 # Extract the first word of "pkg-config", so it can be a program name with args.
4212 set dummy pkg-config; ac_word=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 case $ac_pt_PKG_CONFIG in
4219 [\\/]* | ?:[\\/]*)
4220 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4221 ;;
4222 *)
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 ;;
4239 esac
4240 fi
4241 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4242 if test -n "$ac_pt_PKG_CONFIG"; then
4243 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4244 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4245 else
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4248 fi
4249
4250 if test "x$ac_pt_PKG_CONFIG" = x; then
4251 PKG_CONFIG=""
4252 else
4253 case $cross_compiling:$ac_tool_warned in
4254 yes:)
4255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&5
4258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263 PKG_CONFIG=$ac_pt_PKG_CONFIG
4264 fi
4265 else
4266 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4267 fi
4268
4269 fi
4270 if test -n "$PKG_CONFIG"; then
4271 _pkg_min_version=0.9.0
4272 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4273 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4274 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4275 { echo "$as_me:$LINENO: result: yes" >&5
4276 echo "${ECHO_T}yes" >&6; }
4277 else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 PKG_CONFIG=""
4281 fi
4282
4283 fi
4284
4285 if test -z "$PKG_CONFIG"; then
4286 echo "pkg-config not installed; please install it."
4287 exit 1;
4288 fi
4289
4290 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4291 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4292 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 ac_check_lib_save_LIBS=$LIBS
4296 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303
4304 /* Override any GCC internal prototype to avoid an error.
4305 Use char because int might match the return type of a GCC
4306 builtin and then its argument prototype would still apply. */
4307 #ifdef __cplusplus
4308 extern "C"
4309 #endif
4310 char dm_tree_create ();
4311 int
4312 main ()
4313 {
4314 return dm_tree_create ();
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.$ac_objext conftest$ac_exeext
4320 if { (ac_try="$ac_link"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_link") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest$ac_exeext &&
4336 $as_test_x conftest$ac_exeext; then
4337 ac_cv_lib_devmapper_dm_tree_create=yes
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_cv_lib_devmapper_dm_tree_create=no
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_check_lib_save_LIBS
4348 fi
4349 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4350 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4351 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4352 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4353 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4354 DEVMAPPER_REQ="devmapper";
4355 DEVMAPPER_PC_LIBS="-ldevmapper"
4356 else
4357 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4358 echo "$as_me: error: device-mapper library not found" >&2;}
4359 { (exit 1); exit 1; }; }
4360 fi
4361
4362 # work around stupid devmapper.pc bug in Debian
4363 case "$STATIC_DEVMAPPER_LIBS" in
4364 *pthread*)
4365 ;;
4366 *)
4367 echo "Working around Debian bug #390243..."
4368 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4369 ;;
4370 esac
4371 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4372 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4373 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4374 fi
4375 fi
4376
4377 else
4378 echo "Disabling device-mapper support by default"
4379
4380 fi
4381
4382
4383
4384
4385
4386
4387 # Check whether --enable-tls was given.
4388 if test "${enable_tls+set}" = set; then
4389 enableval=$enable_tls; if test "$enableval" = "no"
4390 then
4391 try_tls=""
4392 echo "Disabling thread local support"
4393 else
4394 try_tls="yes"
4395 echo "Enabling thread local support"
4396 fi
4397
4398 else
4399 try_tls="yes"
4400 echo "Try using thread local support by default"
4401
4402 fi
4403
4404 if test "$try_tls" = "yes"
4405 then
4406
4407 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4408 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4409 if test "${ac_cv_tls+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412
4413 ax_tls_keywords="__thread __declspec(thread) none"
4414 for ax_tls_keyword in $ax_tls_keywords; do
4415 case $ax_tls_keyword in
4416 none) ac_cv_tls=none ; break ;;
4417 *)
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <stdlib.h>
4425 static void
4426 foo(void) {
4427 static $ax_tls_keyword int bar;
4428 exit(1);
4429 }
4430 int
4431 main ()
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 ac_cv_tls=$ax_tls_keyword ; break
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 ac_cv_tls=none
4461
4462 fi
4463
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 esac
4466 done
4467
4468 fi
4469
4470
4471 if test "$ac_cv_tls" != "none"; then
4472
4473 cat >>confdefs.h <<_ACEOF
4474 #define TLS $ac_cv_tls
4475 _ACEOF
4476
4477 fi
4478 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4479 echo "${ECHO_T}$ac_cv_tls" >&6; }
4480
4481 fi
4482 # Check whether --enable-uuidd was given.
4483 if test "${enable_uuidd+set}" = set; then
4484 enableval=$enable_uuidd; if test "$enableval" = "no"
4485 then
4486 echo "Not building uuidd"
4487 UUIDD_CMT="#"
4488 else
4489 cat >>confdefs.h <<\_ACEOF
4490 #define USE_UUIDD 1
4491 _ACEOF
4492
4493 UUIDD_CMT=""
4494 echo "Building uuidd"
4495 fi
4496
4497 else
4498 cat >>confdefs.h <<\_ACEOF
4499 #define USE_UUIDD 1
4500 _ACEOF
4501
4502 UUIDD_CMT=""
4503 echo "Building uuidd by default"
4504
4505 fi
4506
4507
4508 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4509
4510 GETTEXT_PACKAGE=e2fsprogs
4511 PACKAGE=e2fsprogs
4512 VERSION="$E2FSPROGS_VERSION"
4513 VERSION=0.14.1
4514 cat >>confdefs.h <<_ACEOF
4515 #define PACKAGE "$PACKAGE"
4516 _ACEOF
4517
4518 cat >>confdefs.h <<_ACEOF
4519 #define VERSION "$VERSION"
4520 _ACEOF
4521
4522
4523
4524
4525
4526 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4527 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4528 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 cat >conftest.make <<\_ACEOF
4533 SHELL = /bin/sh
4534 all:
4535 @echo '@@@%%%=$(MAKE)=@@@%%%'
4536 _ACEOF
4537 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539 *@@@%%%=?*=@@@%%%*)
4540 eval ac_cv_prog_make_${ac_make}_set=yes;;
4541 *)
4542 eval ac_cv_prog_make_${ac_make}_set=no;;
4543 esac
4544 rm -f conftest.make
4545 fi
4546 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4547 { echo "$as_me:$LINENO: result: yes" >&5
4548 echo "${ECHO_T}yes" >&6; }
4549 SET_MAKE=
4550 else
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4553 SET_MAKE="MAKE=${MAKE-make}"
4554 fi
4555
4556 # Find a good install program. We prefer a C program (faster),
4557 # so one script is as good as another. But avoid the broken or
4558 # incompatible versions:
4559 # SysV /etc/install, /usr/sbin/install
4560 # SunOS /usr/etc/install
4561 # IRIX /sbin/install
4562 # AIX /bin/install
4563 # AmigaOS /C/install, which installs bootblocks on floppy discs
4564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4567 # OS/2's system install, which has a completely different semantic
4568 # ./install, which can be erroneously created by make from ./install.sh.
4569 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4571 if test -z "$INSTALL"; then
4572 if test "${ac_cv_path_install+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 # Account for people who put trailing slashes in PATH elements.
4581 case $as_dir/ in
4582 ./ | .// | /cC/* | \
4583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4585 /usr/ucb/* ) ;;
4586 *)
4587 # OSF1 and SCO ODT 3.0 have their own names for install.
4588 # Don't use installbsd from OSF since it installs stuff as root
4589 # by default.
4590 for ac_prog in ginstall scoinst install; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4593 if test $ac_prog = install &&
4594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4595 # AIX install. It has an incompatible calling convention.
4596 :
4597 elif test $ac_prog = install &&
4598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4599 # program-specific install script used by HP pwplus--don't use.
4600 :
4601 else
4602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4603 break 3
4604 fi
4605 fi
4606 done
4607 done
4608 ;;
4609 esac
4610 done
4611 IFS=$as_save_IFS
4612
4613
4614 fi
4615 if test "${ac_cv_path_install+set}" = set; then
4616 INSTALL=$ac_cv_path_install
4617 else
4618 # As a last resort, use the slow shell script. Don't cache a
4619 # value for INSTALL within a source directory, because that will
4620 # break other packages using the cache if that directory is
4621 # removed, or if the value is a relative name.
4622 INSTALL=$ac_install_sh
4623 fi
4624 fi
4625 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4626 echo "${ECHO_T}$INSTALL" >&6; }
4627
4628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4629 # It thinks the first close brace ends the variable substitution.
4630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4631
4632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4633
4634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4635
4636
4637 MKINSTALLDIRS=
4638 if test -n "$ac_aux_dir"; then
4639 case "$ac_aux_dir" in
4640 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4641 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4642 esac
4643 fi
4644 if test -z "$MKINSTALLDIRS"; then
4645 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4646 fi
4647
4648
4649
4650 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4651 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4652 # Check whether --enable-nls was given.
4653 if test "${enable_nls+set}" = set; then
4654 enableval=$enable_nls; USE_NLS=$enableval
4655 else
4656 USE_NLS=yes
4657 fi
4658
4659 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4660 echo "${ECHO_T}$USE_NLS" >&6; }
4661
4662
4663
4664
4665
4666
4667 # Prepare PATH_SEPARATOR.
4668 # The user is always right.
4669 if test "${PATH_SEPARATOR+set}" != set; then
4670 echo "#! /bin/sh" >conf$$.sh
4671 echo "exit 0" >>conf$$.sh
4672 chmod +x conf$$.sh
4673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4674 PATH_SEPARATOR=';'
4675 else
4676 PATH_SEPARATOR=:
4677 fi
4678 rm -f conf$$.sh
4679 fi
4680
4681 # Find out how to test for executable files. Don't use a zero-byte file,
4682 # as systems may use methods other than mode bits to determine executability.
4683 cat >conf$$.file <<_ASEOF
4684 #! /bin/sh
4685 exit 0
4686 _ASEOF
4687 chmod +x conf$$.file
4688 if test -x conf$$.file >/dev/null 2>&1; then
4689 ac_executable_p="test -x"
4690 else
4691 ac_executable_p="test -f"
4692 fi
4693 rm -f conf$$.file
4694
4695 # Extract the first word of "msgfmt", so it can be a program name with args.
4696 set dummy msgfmt; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_MSGFMT+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 case "$MSGFMT" in
4703 [\\/]* | ?:[\\/]*)
4704 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4705 ;;
4706 *)
4707 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4708 for ac_dir in $PATH; do
4709 IFS="$ac_save_IFS"
4710 test -z "$ac_dir" && ac_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4713 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4714 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4715 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4716 break 2
4717 fi
4718 fi
4719 done
4720 done
4721 IFS="$ac_save_IFS"
4722 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4723 ;;
4724 esac
4725 fi
4726 MSGFMT="$ac_cv_path_MSGFMT"
4727 if test "$MSGFMT" != ":"; then
4728 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4729 echo "${ECHO_T}$MSGFMT" >&6; }
4730 else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4736 set dummy gmsgfmt; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 case $GMSGFMT in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4745 ;;
4746 *)
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4763 ;;
4764 esac
4765 fi
4766 GMSGFMT=$ac_cv_path_GMSGFMT
4767 if test -n "$GMSGFMT"; then
4768 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4769 echo "${ECHO_T}$GMSGFMT" >&6; }
4770 else
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776
4777
4778 # Prepare PATH_SEPARATOR.
4779 # The user is always right.
4780 if test "${PATH_SEPARATOR+set}" != set; then
4781 echo "#! /bin/sh" >conf$$.sh
4782 echo "exit 0" >>conf$$.sh
4783 chmod +x conf$$.sh
4784 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4785 PATH_SEPARATOR=';'
4786 else
4787 PATH_SEPARATOR=:
4788 fi
4789 rm -f conf$$.sh
4790 fi
4791
4792 # Find out how to test for executable files. Don't use a zero-byte file,
4793 # as systems may use methods other than mode bits to determine executability.
4794 cat >conf$$.file <<_ASEOF
4795 #! /bin/sh
4796 exit 0
4797 _ASEOF
4798 chmod +x conf$$.file
4799 if test -x conf$$.file >/dev/null 2>&1; then
4800 ac_executable_p="test -x"
4801 else
4802 ac_executable_p="test -f"
4803 fi
4804 rm -f conf$$.file
4805
4806 # Extract the first word of "xgettext", so it can be a program name with args.
4807 set dummy xgettext; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 case "$XGETTEXT" in
4814 [\\/]* | ?:[\\/]*)
4815 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4816 ;;
4817 *)
4818 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4819 for ac_dir in $PATH; do
4820 IFS="$ac_save_IFS"
4821 test -z "$ac_dir" && ac_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4824 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4825 (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
4826 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4827 break 2
4828 fi
4829 fi
4830 done
4831 done
4832 IFS="$ac_save_IFS"
4833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4834 ;;
4835 esac
4836 fi
4837 XGETTEXT="$ac_cv_path_XGETTEXT"
4838 if test "$XGETTEXT" != ":"; then
4839 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4840 echo "${ECHO_T}$XGETTEXT" >&6; }
4841 else
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4845
4846 rm -f messages.po
4847
4848
4849 # Prepare PATH_SEPARATOR.
4850 # The user is always right.
4851 if test "${PATH_SEPARATOR+set}" != set; then
4852 echo "#! /bin/sh" >conf$$.sh
4853 echo "exit 0" >>conf$$.sh
4854 chmod +x conf$$.sh
4855 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4856 PATH_SEPARATOR=';'
4857 else
4858 PATH_SEPARATOR=:
4859 fi
4860 rm -f conf$$.sh
4861 fi
4862
4863 # Find out how to test for executable files. Don't use a zero-byte file,
4864 # as systems may use methods other than mode bits to determine executability.
4865 cat >conf$$.file <<_ASEOF
4866 #! /bin/sh
4867 exit 0
4868 _ASEOF
4869 chmod +x conf$$.file
4870 if test -x conf$$.file >/dev/null 2>&1; then
4871 ac_executable_p="test -x"
4872 else
4873 ac_executable_p="test -f"
4874 fi
4875 rm -f conf$$.file
4876
4877 # Extract the first word of "msgmerge", so it can be a program name with args.
4878 set dummy msgmerge; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 case "$MSGMERGE" in
4885 [\\/]* | ?:[\\/]*)
4886 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4887 ;;
4888 *)
4889 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4890 for ac_dir in $PATH; do
4891 IFS="$ac_save_IFS"
4892 test -z "$ac_dir" && ac_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4895 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4896 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4897 break 2
4898 fi
4899 fi
4900 done
4901 done
4902 IFS="$ac_save_IFS"
4903 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4904 ;;
4905 esac
4906 fi
4907 MSGMERGE="$ac_cv_path_MSGMERGE"
4908 if test "$MSGMERGE" != ":"; then
4909 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4910 echo "${ECHO_T}$MSGMERGE" >&6; }
4911 else
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4914 fi
4915
4916
4917 if test "$GMSGFMT" != ":"; then
4918 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4919 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4920 : ;
4921 else
4922 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4923 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4924 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4925 GMSGFMT=":"
4926 fi
4927 fi
4928
4929 if test "$XGETTEXT" != ":"; then
4930 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4931 (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
4932 : ;
4933 else
4934 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4935 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4936 XGETTEXT=":"
4937 fi
4938 rm -f messages.po
4939 fi
4940
4941 ac_config_commands="$ac_config_commands default-1"
4942
4943
4944 if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_RANLIB+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test -n "$RANLIB"; then
4953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 RANLIB=$ac_cv_prog_RANLIB
4973 if test -n "$RANLIB"; then
4974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4975 echo "${ECHO_T}$RANLIB" >&6; }
4976 else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 fi
4980
4981
4982 fi
4983 if test -z "$ac_cv_prog_RANLIB"; then
4984 ac_ct_RANLIB=$RANLIB
4985 # Extract the first word of "ranlib", so it can be a program name with args.
4986 set dummy ranlib; ac_word=$2
4987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test -n "$ac_ct_RANLIB"; then
4993 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_ac_ct_RANLIB="ranlib"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5013 if test -n "$ac_ct_RANLIB"; then
5014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5015 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5016 else
5017 { echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6; }
5019 fi
5020
5021 if test "x$ac_ct_RANLIB" = x; then
5022 RANLIB=":"
5023 else
5024 case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5027 whose name does not start with the host triplet. If you think this
5028 configuration is useful to you, please write to autoconf@gnu.org." >&5
5029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5030 whose name does not start with the host triplet. If you think this
5031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034 RANLIB=$ac_ct_RANLIB
5035 fi
5036 else
5037 RANLIB="$ac_cv_prog_RANLIB"
5038 fi
5039
5040
5041 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5042 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5043 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 ac_check_lib_save_LIBS=$LIBS
5047 LIBS="-lcposix $LIBS"
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054
5055 /* Override any GCC internal prototype to avoid an error.
5056 Use char because int might match the return type of a GCC
5057 builtin and then its argument prototype would still apply. */
5058 #ifdef __cplusplus
5059 extern "C"
5060 #endif
5061 char strerror ();
5062 int
5063 main ()
5064 {
5065 return strerror ();
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (ac_try="$ac_link"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_link") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } && {
5084 test -z "$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 } && test -s conftest$ac_exeext &&
5087 $as_test_x conftest$ac_exeext; then
5088 ac_cv_lib_cposix_strerror=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_cv_lib_cposix_strerror=no
5094 fi
5095
5096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5097 conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5099 fi
5100 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5101 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5102 if test $ac_cv_lib_cposix_strerror = yes; then
5103 LIBS="$LIBS -lcposix"
5104 fi
5105
5106
5107
5108 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5110 if test "${ac_cv_c_const+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119
5120 int
5121 main ()
5122 {
5123 /* FIXME: Include the comments suggested by Paul. */
5124 #ifndef __cplusplus
5125 /* Ultrix mips cc rejects this. */
5126 typedef int charset[2];
5127 const charset cs;
5128 /* SunOS 4.1.1 cc rejects this. */
5129 char const *const *pcpcc;
5130 char **ppc;
5131 /* NEC SVR4.0.2 mips cc rejects this. */
5132 struct point {int x, y;};
5133 static struct point const zero = {0,0};
5134 /* AIX XL C 1.02.0.0 rejects this.
5135 It does not let you subtract one const X* pointer from another in
5136 an arm of an if-expression whose if-part is not a constant
5137 expression */
5138 const char *g = "string";
5139 pcpcc = &g + (g ? g-g : 0);
5140 /* HPUX 7.0 cc rejects these. */
5141 ++pcpcc;
5142 ppc = (char**) pcpcc;
5143 pcpcc = (char const *const *) ppc;
5144 { /* SCO 3.2v4 cc rejects this. */
5145 char *t;
5146 char const *s = 0 ? (char *) 0 : (char const *) 0;
5147
5148 *t++ = 0;
5149 if (s) return 0;
5150 }
5151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5152 int x[] = {25, 17};
5153 const int *foo = &x[0];
5154 ++foo;
5155 }
5156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5157 typedef const int *iptr;
5158 iptr p = 0;
5159 ++p;
5160 }
5161 { /* AIX XL C 1.02.0.0 rejects this saying
5162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5163 struct s { int j; const int *ap[3]; };
5164 struct s *b; b->j = 5;
5165 }
5166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5167 const int foo = 10;
5168 if (!foo) return 0;
5169 }
5170 return !cs[0] && !zero.x;
5171 #endif
5172
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext
5178 if { (ac_try="$ac_compile"
5179 case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compile") 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && {
5191 test -z "$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest.$ac_objext; then
5194 ac_cv_c_const=yes
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ac_cv_c_const=no
5200 fi
5201
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5205 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5206 if test $ac_cv_c_const = no; then
5207
5208 cat >>confdefs.h <<\_ACEOF
5209 #define const
5210 _ACEOF
5211
5212 fi
5213
5214
5215 { echo "$as_me:$LINENO: checking for signed" >&5
5216 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5217 if test "${bh_cv_c_signed+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226
5227 int
5228 main ()
5229 {
5230 signed char x;
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (ac_try="$ac_compile"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5252 bh_cv_c_signed=yes
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 bh_cv_c_signed=no
5258 fi
5259
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 fi
5262 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5263 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5264 if test $bh_cv_c_signed = no; then
5265
5266 cat >>confdefs.h <<\_ACEOF
5267 #define signed
5268 _ACEOF
5269
5270 fi
5271
5272 { echo "$as_me:$LINENO: checking for inline" >&5
5273 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5274 if test "${ac_cv_c_inline+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 ac_cv_c_inline=no
5278 for ac_kw in inline __inline__ __inline; do
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #ifndef __cplusplus
5286 typedef int foo_t;
5287 static $ac_kw foo_t static_foo () {return 0; }
5288 $ac_kw foo_t foo () {return 0; }
5289 #endif
5290
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compile") 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest.$ac_objext; then
5309 ac_cv_c_inline=$ac_kw
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314
5315 fi
5316
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 test "$ac_cv_c_inline" != no && break
5319 done
5320
5321 fi
5322 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5323 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5324
5325
5326 case $ac_cv_c_inline in
5327 inline | yes) ;;
5328 *)
5329 case $ac_cv_c_inline in
5330 no) ac_val=;;
5331 *) ac_val=$ac_cv_c_inline;;
5332 esac
5333 cat >>confdefs.h <<_ACEOF
5334 #ifndef __cplusplus
5335 #define inline $ac_val
5336 #endif
5337 _ACEOF
5338 ;;
5339 esac
5340
5341 { echo "$as_me:$LINENO: checking for off_t" >&5
5342 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5343 if test "${ac_cv_type_off_t+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 $ac_includes_default
5353 typedef off_t ac__type_new_;
5354 int
5355 main ()
5356 {
5357 if ((ac__type_new_ *) 0)
5358 return 0;
5359 if (sizeof (ac__type_new_))
5360 return 0;
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_cv_type_off_t=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_cv_type_off_t=no
5388 fi
5389
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5393 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5394 if test $ac_cv_type_off_t = yes; then
5395 :
5396 else
5397
5398 cat >>confdefs.h <<_ACEOF
5399 #define off_t long int
5400 _ACEOF
5401
5402 fi
5403
5404 { echo "$as_me:$LINENO: checking for size_t" >&5
5405 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5406 if test "${ac_cv_type_size_t+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 $ac_includes_default
5416 typedef size_t ac__type_new_;
5417 int
5418 main ()
5419 {
5420 if ((ac__type_new_ *) 0)
5421 return 0;
5422 if (sizeof (ac__type_new_))
5423 return 0;
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (ac_try="$ac_compile"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5445 ac_cv_type_size_t=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 ac_cv_type_size_t=no
5451 fi
5452
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5456 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5457 if test $ac_cv_type_size_t = yes; then
5458 :
5459 else
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define size_t unsigned int
5463 _ACEOF
5464
5465 fi
5466
5467
5468 { echo "$as_me:$LINENO: checking for long long" >&5
5469 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5470 if test "${ac_cv_type_long_long+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 long long ll = 1LL; int i = 63;
5480 int
5481 main ()
5482 {
5483 long long llmax = (long long) -1;
5484 return ll << i | ll >> i | llmax / ll | llmax % ll;
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (ac_try="$ac_link"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_link") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest$ac_exeext &&
5506 $as_test_x conftest$ac_exeext; then
5507 ac_cv_type_long_long=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 ac_cv_type_long_long=no
5513 fi
5514
5515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5516 conftest$ac_exeext conftest.$ac_ext
5517 fi
5518 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5519 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5520 if test $ac_cv_type_long_long = yes; then
5521
5522 cat >>confdefs.h <<\_ACEOF
5523 #define HAVE_LONG_LONG 1
5524 _ACEOF
5525
5526 fi
5527
5528
5529 { echo "$as_me:$LINENO: checking for long double" >&5
5530 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5531 if test "${gt_cv_c_long_double+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 if test "$GCC" = yes; then
5535 gt_cv_c_long_double=yes
5536 else
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543
5544 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5545 long double foo = 0.0;
5546 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5547 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5548
5549 int
5550 main ()
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
5574 gt_cv_c_long_double=yes
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 gt_cv_c_long_double=no
5580 fi
5581
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584 fi
5585 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5586 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5587 if test $gt_cv_c_long_double = yes; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_LONG_DOUBLE 1
5591 _ACEOF
5592
5593 fi
5594
5595
5596 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5597 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5598 if test "${gt_cv_c_wchar_t+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 #include <stddef.h>
5608 wchar_t foo = (wchar_t)'\0';
5609 int
5610 main ()
5611 {
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 gt_cv_c_wchar_t=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 gt_cv_c_wchar_t=no
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5645 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5646 if test $gt_cv_c_wchar_t = yes; then
5647
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_WCHAR_T 1
5650 _ACEOF
5651
5652 fi
5653
5654
5655 { echo "$as_me:$LINENO: checking for wint_t" >&5
5656 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5657 if test "${gt_cv_c_wint_t+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <wchar.h>
5667 wint_t foo = (wchar_t)'\0';
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 gt_cv_c_wint_t=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 gt_cv_c_wint_t=no
5699 fi
5700
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5704 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5705 if test $gt_cv_c_wint_t = yes; then
5706
5707 cat >>confdefs.h <<\_ACEOF
5708 #define HAVE_WINT_T 1
5709 _ACEOF
5710
5711 fi
5712
5713
5714 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5715 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5716 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <sys/types.h>
5726 #include <inttypes.h>
5727 int
5728 main ()
5729 {
5730 uintmax_t i = (uintmax_t) -1;
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 jm_ac_cv_header_inttypes_h=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 jm_ac_cv_header_inttypes_h=no
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5763 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5764 if test $jm_ac_cv_header_inttypes_h = yes; then
5765
5766 cat >>confdefs.h <<_ACEOF
5767 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5768 _ACEOF
5769
5770 fi
5771
5772
5773 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5774 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5775 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5785 #include <stdint.h>
5786 int
5787 main ()
5788 {
5789 uintmax_t i = (uintmax_t) -1;
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 jm_ac_cv_header_stdint_h=yes
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 jm_ac_cv_header_stdint_h=no
5817 fi
5818
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 fi
5821 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5822 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5823 if test $jm_ac_cv_header_stdint_h = yes; then
5824
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_STDINT_H_WITH_UINTMAX 1
5827 _ACEOF
5828
5829 fi
5830
5831
5832
5833
5834 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5835 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5836 if test "${gt_cv_c_intmax_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845
5846 #include <stddef.h>
5847 #include <stdlib.h>
5848 #if HAVE_STDINT_H_WITH_UINTMAX
5849 #include <stdint.h>
5850 #endif
5851 #if HAVE_INTTYPES_H_WITH_UINTMAX
5852 #include <inttypes.h>
5853 #endif
5854
5855 int
5856 main ()
5857 {
5858 intmax_t x = -1;
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 gt_cv_c_intmax_t=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 gt_cv_c_intmax_t=no
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5891 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5892 if test $gt_cv_c_intmax_t = yes; then
5893
5894 cat >>confdefs.h <<\_ACEOF
5895 #define HAVE_INTMAX_T 1
5896 _ACEOF
5897
5898 fi
5899
5900
5901
5902 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5903 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5904 if test "${gt_cv_func_printf_posix+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907
5908 if test "$cross_compiling" = yes; then
5909
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916
5917 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5918 notposix
5919 #endif
5920
5921 _ACEOF
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 $EGREP "notposix" >/dev/null 2>&1; then
5924 gt_cv_func_printf_posix="guessing no"
5925 else
5926 gt_cv_func_printf_posix="guessing yes"
5927 fi
5928 rm -f conftest*
5929
5930
5931 else
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938
5939 #include <stdio.h>
5940 #include <string.h>
5941 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5942 dollar expansion (possibly an autoconf bug). */
5943 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5944 static char buf[100];
5945 int main ()
5946 {
5947 sprintf (buf, format, 33, 55);
5948 return (strcmp (buf, "55 33") != 0);
5949 }
5950 _ACEOF
5951 rm -f conftest$ac_exeext
5952 if { (ac_try="$ac_link"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_link") 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 gt_cv_func_printf_posix=yes
5972 else
5973 echo "$as_me: program exited with status $ac_status" >&5
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 ( exit $ac_status )
5978 gt_cv_func_printf_posix=no
5979 fi
5980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5981 fi
5982
5983
5984
5985 fi
5986 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5987 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5988 case $gt_cv_func_printf_posix in
5989 *yes)
5990
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_POSIX_PRINTF 1
5993 _ACEOF
5994
5995 ;;
5996 esac
5997
5998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5999 # for constant arguments. Useless!
6000 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6001 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6002 if test "${ac_cv_working_alloca_h+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <alloca.h>
6012 int
6013 main ()
6014 {
6015 char *p = (char *) alloca (2 * sizeof (int));
6016 if (p) return 0;
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (ac_try="$ac_link"
6023 case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_link") 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest$ac_exeext &&
6038 $as_test_x conftest$ac_exeext; then
6039 ac_cv_working_alloca_h=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 ac_cv_working_alloca_h=no
6045 fi
6046
6047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
6050 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6051 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6052 if test $ac_cv_working_alloca_h = yes; then
6053
6054 cat >>confdefs.h <<\_ACEOF
6055 #define HAVE_ALLOCA_H 1
6056 _ACEOF
6057
6058 fi
6059
6060 { echo "$as_me:$LINENO: checking for alloca" >&5
6061 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6062 if test "${ac_cv_func_alloca_works+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #ifdef __GNUC__
6072 # define alloca __builtin_alloca
6073 #else
6074 # ifdef _MSC_VER
6075 # include <malloc.h>
6076 # define alloca _alloca
6077 # else
6078 # ifdef HAVE_ALLOCA_H
6079 # include <alloca.h>
6080 # else
6081 # ifdef _AIX
6082 #pragma alloca
6083 # else
6084 # ifndef alloca /* predefined by HP cc +Olibcalls */
6085 char *alloca ();
6086 # endif
6087 # endif
6088 # endif
6089 # endif
6090 #endif
6091
6092 int
6093 main ()
6094 {
6095 char *p = (char *) alloca (1);
6096 if (p) return 0;
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_func_alloca_works=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_cv_func_alloca_works=no
6125 fi
6126
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6129 fi
6130 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6131 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6132
6133 if test $ac_cv_func_alloca_works = yes; then
6134
6135 cat >>confdefs.h <<\_ACEOF
6136 #define HAVE_ALLOCA 1
6137 _ACEOF
6138
6139 else
6140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6141 # that cause trouble. Some versions do not even contain alloca or
6142 # contain a buggy version. If you still want to use their alloca,
6143 # use ar to extract alloca.o from them instead of compiling alloca.c.
6144
6145 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6146
6147 cat >>confdefs.h <<\_ACEOF
6148 #define C_ALLOCA 1
6149 _ACEOF
6150
6151
6152 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6153 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6154 if test "${ac_cv_os_cray+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #if defined CRAY && ! defined CRAY2
6164 webecray
6165 #else
6166 wenotbecray
6167 #endif
6168
6169 _ACEOF
6170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171 $EGREP "webecray" >/dev/null 2>&1; then
6172 ac_cv_os_cray=yes
6173 else
6174 ac_cv_os_cray=no
6175 fi
6176 rm -f conftest*
6177
6178 fi
6179 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6180 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6181 if test $ac_cv_os_cray = yes; then
6182 for ac_func in _getb67 GETB67 getb67; do
6183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6197 #define $ac_func innocuous_$ac_func
6198
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char $ac_func (); below.
6201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202 <limits.h> exists even on freestanding compilers. */
6203
6204 #ifdef __STDC__
6205 # include <limits.h>
6206 #else
6207 # include <assert.h>
6208 #endif
6209
6210 #undef $ac_func
6211
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 char $ac_func ();
6219 /* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222 #if defined __stub_$ac_func || defined __stub___$ac_func
6223 choke me
6224 #endif
6225
6226 int
6227 main ()
6228 {
6229 return $ac_func ();
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (ac_try="$ac_link"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_link") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest$ac_exeext &&
6251 $as_test_x conftest$ac_exeext; then
6252 eval "$as_ac_var=yes"
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 eval "$as_ac_var=no"
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6261 conftest$ac_exeext conftest.$ac_ext
6262 fi
6263 ac_res=`eval echo '${'$as_ac_var'}'`
6264 { echo "$as_me:$LINENO: result: $ac_res" >&5
6265 echo "${ECHO_T}$ac_res" >&6; }
6266 if test `eval echo '${'$as_ac_var'}'` = yes; then
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define CRAY_STACKSEG_END $ac_func
6270 _ACEOF
6271
6272 break
6273 fi
6274
6275 done
6276 fi
6277
6278 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6279 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6280 if test "${ac_cv_c_stack_direction+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 if test "$cross_compiling" = yes; then
6284 ac_cv_c_stack_direction=0
6285 else
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6293 int
6294 find_stack_direction ()
6295 {
6296 static char *addr = 0;
6297 auto char dummy;
6298 if (addr == 0)
6299 {
6300 addr = &dummy;
6301 return find_stack_direction ();
6302 }
6303 else
6304 return (&dummy > addr) ? 1 : -1;
6305 }
6306
6307 int
6308 main ()
6309 {
6310 return find_stack_direction () < 0;
6311 }
6312 _ACEOF
6313 rm -f conftest$ac_exeext
6314 if { (ac_try="$ac_link"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_link") 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_c_stack_direction=1
6334 else
6335 echo "$as_me: program exited with status $ac_status" >&5
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ( exit $ac_status )
6340 ac_cv_c_stack_direction=-1
6341 fi
6342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6343 fi
6344
6345
6346 fi
6347 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6348 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6349
6350 cat >>confdefs.h <<_ACEOF
6351 #define STACK_DIRECTION $ac_cv_c_stack_direction
6352 _ACEOF
6353
6354
6355 fi
6356
6357
6358
6359 for ac_header in stdlib.h unistd.h
6360 do
6361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 fi
6368 ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6371 else
6372 # Is the header compilable?
6373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 #include <$ac_header>
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 ac_header_compiler=yes
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_header_compiler=no
6407 fi
6408
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411 echo "${ECHO_T}$ac_header_compiler" >&6; }
6412
6413 # Is the header present?
6414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #include <$ac_header>
6423 _ACEOF
6424 if { (ac_try="$ac_cpp conftest.$ac_ext"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } >/dev/null && {
6437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 }; then
6440 ac_header_preproc=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_header_preproc=no
6446 fi
6447
6448 rm -f conftest.err conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450 echo "${ECHO_T}$ac_header_preproc" >&6; }
6451
6452 # So? What about this header?
6453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6454 yes:no: )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459 ac_header_preproc=yes
6460 ;;
6461 no:yes:* )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6474
6475 ;;
6476 esac
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 eval "$as_ac_Header=\$ac_header_preproc"
6483 fi
6484 ac_res=`eval echo '${'$as_ac_Header'}'`
6485 { echo "$as_me:$LINENO: result: $ac_res" >&5
6486 echo "${ECHO_T}$ac_res" >&6; }
6487
6488 fi
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 _ACEOF
6493
6494 fi
6495
6496 done
6497
6498
6499 for ac_func in getpagesize
6500 do
6501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6515 #define $ac_func innocuous_$ac_func
6516
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func (); below.
6519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6520 <limits.h> exists even on freestanding compilers. */
6521
6522 #ifdef __STDC__
6523 # include <limits.h>
6524 #else
6525 # include <assert.h>
6526 #endif
6527
6528 #undef $ac_func
6529
6530 /* Override any GCC internal prototype to avoid an error.
6531 Use char because int might match the return type of a GCC
6532 builtin and then its argument prototype would still apply. */
6533 #ifdef __cplusplus
6534 extern "C"
6535 #endif
6536 char $ac_func ();
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined __stub_$ac_func || defined __stub___$ac_func
6541 choke me
6542 #endif
6543
6544 int
6545 main ()
6546 {
6547 return $ac_func ();
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_link") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest$ac_exeext &&
6569 $as_test_x conftest$ac_exeext; then
6570 eval "$as_ac_var=yes"
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 eval "$as_ac_var=no"
6576 fi
6577
6578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6579 conftest$ac_exeext conftest.$ac_ext
6580 fi
6581 ac_res=`eval echo '${'$as_ac_var'}'`
6582 { echo "$as_me:$LINENO: result: $ac_res" >&5
6583 echo "${ECHO_T}$ac_res" >&6; }
6584 if test `eval echo '${'$as_ac_var'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6587 _ACEOF
6588
6589 fi
6590 done
6591
6592 { echo "$as_me:$LINENO: checking for working mmap" >&5
6593 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6594 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 if test "$cross_compiling" = yes; then
6598 ac_cv_func_mmap_fixed_mapped=no
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6607 /* malloc might have been renamed as rpl_malloc. */
6608 #undef malloc
6609
6610 /* Thanks to Mike Haertel and Jim Avera for this test.
6611 Here is a matrix of mmap possibilities:
6612 mmap private not fixed
6613 mmap private fixed at somewhere currently unmapped
6614 mmap private fixed at somewhere already mapped
6615 mmap shared not fixed
6616 mmap shared fixed at somewhere currently unmapped
6617 mmap shared fixed at somewhere already mapped
6618 For private mappings, we should verify that changes cannot be read()
6619 back from the file, nor mmap's back from the file at a different
6620 address. (There have been systems where private was not correctly
6621 implemented like the infamous i386 svr4.0, and systems where the
6622 VM page cache was not coherent with the file system buffer cache
6623 like early versions of FreeBSD and possibly contemporary NetBSD.)
6624 For shared mappings, we should conversely verify that changes get
6625 propagated back to all the places they're supposed to be.
6626
6627 Grep wants private fixed already mapped.
6628 The main things grep needs to know about mmap are:
6629 * does it exist and is it safe to write into the mmap'd area
6630 * how to use it (BSD variants) */
6631
6632 #include <fcntl.h>
6633 #include <sys/mman.h>
6634
6635 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6636 char *malloc ();
6637 #endif
6638
6639 /* This mess was copied from the GNU getpagesize.h. */
6640 #ifndef HAVE_GETPAGESIZE
6641 /* Assume that all systems that can run configure have sys/param.h. */
6642 # ifndef HAVE_SYS_PARAM_H
6643 # define HAVE_SYS_PARAM_H 1
6644 # endif
6645
6646 # ifdef _SC_PAGESIZE
6647 # define getpagesize() sysconf(_SC_PAGESIZE)
6648 # else /* no _SC_PAGESIZE */
6649 # ifdef HAVE_SYS_PARAM_H
6650 # include <sys/param.h>
6651 # ifdef EXEC_PAGESIZE
6652 # define getpagesize() EXEC_PAGESIZE
6653 # else /* no EXEC_PAGESIZE */
6654 # ifdef NBPG
6655 # define getpagesize() NBPG * CLSIZE
6656 # ifndef CLSIZE
6657 # define CLSIZE 1
6658 # endif /* no CLSIZE */
6659 # else /* no NBPG */
6660 # ifdef NBPC
6661 # define getpagesize() NBPC
6662 # else /* no NBPC */
6663 # ifdef PAGESIZE
6664 # define getpagesize() PAGESIZE
6665 # endif /* PAGESIZE */
6666 # endif /* no NBPC */
6667 # endif /* no NBPG */
6668 # endif /* no EXEC_PAGESIZE */
6669 # else /* no HAVE_SYS_PARAM_H */
6670 # define getpagesize() 8192 /* punt totally */
6671 # endif /* no HAVE_SYS_PARAM_H */
6672 # endif /* no _SC_PAGESIZE */
6673
6674 #endif /* no HAVE_GETPAGESIZE */
6675
6676 int
6677 main ()
6678 {
6679 char *data, *data2, *data3;
6680 int i, pagesize;
6681 int fd;
6682
6683 pagesize = getpagesize ();
6684
6685 /* First, make a file with some known garbage in it. */
6686 data = (char *) malloc (pagesize);
6687 if (!data)
6688 return 1;
6689 for (i = 0; i < pagesize; ++i)
6690 *(data + i) = rand ();
6691 umask (0);
6692 fd = creat ("conftest.mmap", 0600);
6693 if (fd < 0)
6694 return 1;
6695 if (write (fd, data, pagesize) != pagesize)
6696 return 1;
6697 close (fd);
6698
6699 /* Next, try to mmap the file at a fixed address which already has
6700 something else allocated at it. If we can, also make sure that
6701 we see the same garbage. */
6702 fd = open ("conftest.mmap", O_RDWR);
6703 if (fd < 0)
6704 return 1;
6705 data2 = (char *) malloc (2 * pagesize);
6706 if (!data2)
6707 return 1;
6708 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6709 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6710 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6711 return 1;
6712 for (i = 0; i < pagesize; ++i)
6713 if (*(data + i) != *(data2 + i))
6714 return 1;
6715
6716 /* Finally, make sure that changes to the mapped area do not
6717 percolate back to the file as seen by read(). (This is a bug on
6718 some variants of i386 svr4.0.) */
6719 for (i = 0; i < pagesize; ++i)
6720 *(data2 + i) = *(data2 + i) + 1;
6721 data3 = (char *) malloc (pagesize);
6722 if (!data3)
6723 return 1;
6724 if (read (fd, data3, pagesize) != pagesize)
6725 return 1;
6726 for (i = 0; i < pagesize; ++i)
6727 if (*(data + i) != *(data3 + i))
6728 return 1;
6729 close (fd);
6730 return 0;
6731 }
6732 _ACEOF
6733 rm -f conftest$ac_exeext
6734 if { (ac_try="$ac_link"
6735 case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738 esac
6739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_link") 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6744 { (case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_func_mmap_fixed_mapped=yes
6754 else
6755 echo "$as_me: program exited with status $ac_status" >&5
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 ( exit $ac_status )
6760 ac_cv_func_mmap_fixed_mapped=no
6761 fi
6762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 fi
6764
6765
6766 fi
6767 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6768 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6769 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6770
6771 cat >>confdefs.h <<\_ACEOF
6772 #define HAVE_MMAP 1
6773 _ACEOF
6774
6775 fi
6776 rm -f conftest.mmap
6777
6778
6779 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6780 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6781 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790
6791 #include <features.h>
6792 #ifdef __GNU_LIBRARY__
6793 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6794 Lucky GNU user
6795 #endif
6796 #endif
6797
6798 _ACEOF
6799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6800 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6801 ac_cv_gnu_library_2_1=yes
6802 else
6803 ac_cv_gnu_library_2_1=no
6804 fi
6805 rm -f conftest*
6806
6807
6808
6809 fi
6810 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6811 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6812
6813 GLIBC21="$ac_cv_gnu_library_2_1"
6814
6815
6816
6817
6818 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6819 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6820 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823
6824 if test "$cross_compiling" = yes; then
6825
6826 # Guess based on the CPU.
6827 case "$host_cpu" in
6828 alpha* | i3456786 | m68k | s390*)
6829 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6830 *)
6831 gt_cv_int_divbyzero_sigfpe="guessing no";;
6832 esac
6833
6834 else
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841
6842 #include <stdlib.h>
6843 #include <signal.h>
6844
6845 static void
6846 #ifdef __cplusplus
6847 sigfpe_handler (int sig)
6848 #else
6849 sigfpe_handler (sig) int sig;
6850 #endif
6851 {
6852 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6853 exit (sig != SIGFPE);
6854 }
6855
6856 int x = 1;
6857 int y = 0;
6858 int z;
6859 int nan;
6860
6861 int main ()
6862 {
6863 signal (SIGFPE, sigfpe_handler);
6864 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6865 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6866 signal (SIGTRAP, sigfpe_handler);
6867 #endif
6868 /* Linux/SPARC yields signal SIGILL. */
6869 #if defined (__sparc__) && defined (__linux__)
6870 signal (SIGILL, sigfpe_handler);
6871 #endif
6872
6873 z = x / y;
6874 nan = y / y;
6875 exit (1);
6876 }
6877
6878 _ACEOF
6879 rm -f conftest$ac_exeext
6880 if { (ac_try="$ac_link"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 gt_cv_int_divbyzero_sigfpe=yes
6900 else
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 ( exit $ac_status )
6906 gt_cv_int_divbyzero_sigfpe=no
6907 fi
6908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6909 fi
6910
6911
6912
6913 fi
6914 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6915 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6916 case "$gt_cv_int_divbyzero_sigfpe" in
6917 *yes) value=1;;
6918 *) value=0;;
6919 esac
6920
6921 cat >>confdefs.h <<_ACEOF
6922 #define INTDIV0_RAISES_SIGFPE $value
6923 _ACEOF
6924
6925
6926
6927 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6928 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6929 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 unsigned long long ull = 1ULL; int i = 63;
6939 int
6940 main ()
6941 {
6942 unsigned long long ullmax = (unsigned long long) -1;
6943 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6966 ac_cv_type_unsigned_long_long=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_cv_type_unsigned_long_long=no
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6976 fi
6977 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6978 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6979 if test $ac_cv_type_unsigned_long_long = yes; then
6980
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_UNSIGNED_LONG_LONG 1
6983 _ACEOF
6984
6985 fi
6986
6987
6988
6989
6990 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6991
6992 test $ac_cv_type_unsigned_long_long = yes \
6993 && ac_type='unsigned long long' \
6994 || ac_type='unsigned long'
6995
6996 cat >>confdefs.h <<_ACEOF
6997 #define uintmax_t $ac_type
6998 _ACEOF
6999
7000 else
7001
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_UINTMAX_T 1
7004 _ACEOF
7005
7006 fi
7007
7008
7009 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7010 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7011 if test "${gt_cv_header_inttypes_h+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #include <sys/types.h>
7022 #include <inttypes.h>
7023 int
7024 main ()
7025 {
7026
7027 ;
7028 return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7033 case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
7048 gt_cv_header_inttypes_h=yes
7049 else
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053 gt_cv_header_inttypes_h=no
7054 fi
7055
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057
7058 fi
7059 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7060 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7061 if test $gt_cv_header_inttypes_h = yes; then
7062
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_INTTYPES_H 1
7065 _ACEOF
7066
7067 fi
7068
7069
7070
7071 if test $gt_cv_header_inttypes_h = yes; then
7072 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7073 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7074 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <inttypes.h>
7085 #ifdef PRId32
7086 char *p = PRId32;
7087 #endif
7088
7089 int
7090 main ()
7091 {
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 gt_cv_inttypes_pri_broken=no
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 gt_cv_inttypes_pri_broken=yes
7120 fi
7121
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123
7124 fi
7125 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7126 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7127 fi
7128 if test "$gt_cv_inttypes_pri_broken" = yes; then
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define PRI_MACROS_BROKEN 1
7132 _ACEOF
7133
7134 fi
7135
7136
7137
7138 for ac_header in stdint.h
7139 do
7140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 fi
7147 ac_res=`eval echo '${'$as_ac_Header'}'`
7148 { echo "$as_me:$LINENO: result: $ac_res" >&5
7149 echo "${ECHO_T}$ac_res" >&6; }
7150 else
7151 # Is the header compilable?
7152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 #include <$ac_header>
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 ac_header_compiler=yes
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_header_compiler=no
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7190 echo "${ECHO_T}$ac_header_compiler" >&6; }
7191
7192 # Is the header present?
7193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 #include <$ac_header>
7202 _ACEOF
7203 if { (ac_try="$ac_cpp conftest.$ac_ext"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } >/dev/null && {
7216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 }; then
7219 ac_header_preproc=yes
7220 else
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 ac_header_preproc=no
7225 fi
7226
7227 rm -f conftest.err conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7229 echo "${ECHO_T}$ac_header_preproc" >&6; }
7230
7231 # So? What about this header?
7232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7233 yes:no: )
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7238 ac_header_preproc=yes
7239 ;;
7240 no:yes:* )
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7253
7254 ;;
7255 esac
7256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262 fi
7263 ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result: $ac_res" >&5
7265 echo "${ECHO_T}$ac_res" >&6; }
7266
7267 fi
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271 _ACEOF
7272
7273 fi
7274
7275 done
7276
7277 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7278 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7279 result=
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286
7287 #include <limits.h>
7288 #if HAVE_STDINT_H
7289 #include <stdint.h>
7290 #endif
7291 #ifdef SIZE_MAX
7292 Found it
7293 #endif
7294
7295 _ACEOF
7296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297 $EGREP "Found it" >/dev/null 2>&1; then
7298 result=yes
7299 fi
7300 rm -f conftest*
7301
7302 if test -z "$result"; then
7303 if test "$cross_compiling" = yes; then
7304 # Depending upon the size, compute the lo and hi bounds.
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #include <stddef.h>
7312 int
7313 main ()
7314 {
7315 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7316 test_array [0] = 0
7317
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 ac_lo=0 ac_mid=0
7340 while :; do
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <stddef.h>
7348 int
7349 main ()
7350 {
7351 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7352 test_array [0] = 0
7353
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (ac_try="$ac_compile"
7360 case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
7375 ac_hi=$ac_mid; break
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 ac_lo=`expr $ac_mid + 1`
7381 if test $ac_lo -le $ac_mid; then
7382 ac_lo= ac_hi=
7383 break
7384 fi
7385 ac_mid=`expr 2 '*' $ac_mid + 1`
7386 fi
7387
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 done
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <stddef.h>
7401 int
7402 main ()
7403 {
7404 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7405 test_array [0] = 0
7406
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_hi=-1 ac_mid=-1
7429 while :; do
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <stddef.h>
7437 int
7438 main ()
7439 {
7440 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7441 test_array [0] = 0
7442
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 ac_lo=$ac_mid; break
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 ac_hi=`expr '(' $ac_mid ')' - 1`
7470 if test $ac_mid -le $ac_hi; then
7471 ac_lo= ac_hi=
7472 break
7473 fi
7474 ac_mid=`expr 2 '*' $ac_mid`
7475 fi
7476
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 done
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_lo= ac_hi=
7484 fi
7485
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 # Binary search between lo and hi bounds.
7491 while test "x$ac_lo" != "x$ac_hi"; do
7492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #include <stddef.h>
7500 int
7501 main ()
7502 {
7503 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7504 test_array [0] = 0
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 ac_hi=$ac_mid
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_lo=`expr '(' $ac_mid ')' + 1`
7533 fi
7534
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 done
7537 case $ac_lo in
7538 ?*) res_hi=$ac_lo;;
7539 '') result=? ;;
7540 esac
7541 else
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 #include <stddef.h>
7549 static long int longval () { return ~(size_t)0 / 10; }
7550 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7551 #include <stdio.h>
7552 #include <stdlib.h>
7553 int
7554 main ()
7555 {
7556
7557 FILE *f = fopen ("conftest.val", "w");
7558 if (! f)
7559 return 1;
7560 if ((~(size_t)0 / 10) < 0)
7561 {
7562 long int i = longval ();
7563 if (i != (~(size_t)0 / 10))
7564 return 1;
7565 fprintf (f, "%ld\n", i);
7566 }
7567 else
7568 {
7569 unsigned long int i = ulongval ();
7570 if (i != (~(size_t)0 / 10))
7571 return 1;
7572 fprintf (f, "%lu\n", i);
7573 }
7574 return ferror (f) || fclose (f) != 0;
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest$ac_exeext
7581 if { (ac_try="$ac_link"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_link") 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 res_hi=`cat conftest.val`
7601 else
7602 echo "$as_me: program exited with status $ac_status" >&5
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 ( exit $ac_status )
7607 result=?
7608 fi
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7610 fi
7611 rm -f conftest.val
7612
7613 if test "$cross_compiling" = yes; then
7614 # Depending upon the size, compute the lo and hi bounds.
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <stddef.h>
7622 int
7623 main ()
7624 {
7625 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7626 test_array [0] = 0
7627
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_lo=0 ac_mid=0
7650 while :; do
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <stddef.h>
7658 int
7659 main ()
7660 {
7661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7662 test_array [0] = 0
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 ac_hi=$ac_mid; break
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 ac_lo=`expr $ac_mid + 1`
7691 if test $ac_lo -le $ac_mid; then
7692 ac_lo= ac_hi=
7693 break
7694 fi
7695 ac_mid=`expr 2 '*' $ac_mid + 1`
7696 fi
7697
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 done
7700 else
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 #include <stddef.h>
7711 int
7712 main ()
7713 {
7714 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7715 test_array [0] = 0
7716
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7723 case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7738 ac_hi=-1 ac_mid=-1
7739 while :; do
7740 cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h. */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <stddef.h>
7747 int
7748 main ()
7749 {
7750 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7751 test_array [0] = 0
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_lo=$ac_mid; break
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 ac_hi=`expr '(' $ac_mid ')' - 1`
7780 if test $ac_mid -le $ac_hi; then
7781 ac_lo= ac_hi=
7782 break
7783 fi
7784 ac_mid=`expr 2 '*' $ac_mid`
7785 fi
7786
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 done
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 ac_lo= ac_hi=
7794 fi
7795
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 # Binary search between lo and hi bounds.
7801 while test "x$ac_lo" != "x$ac_hi"; do
7802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 #include <stddef.h>
7810 int
7811 main ()
7812 {
7813 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7814 test_array [0] = 0
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_hi=$ac_mid
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_lo=`expr '(' $ac_mid ')' + 1`
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 done
7847 case $ac_lo in
7848 ?*) res_lo=$ac_lo;;
7849 '') result=? ;;
7850 esac
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <stddef.h>
7859 static long int longval () { return ~(size_t)0 % 10; }
7860 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7861 #include <stdio.h>
7862 #include <stdlib.h>
7863 int
7864 main ()
7865 {
7866
7867 FILE *f = fopen ("conftest.val", "w");
7868 if (! f)
7869 return 1;
7870 if ((~(size_t)0 % 10) < 0)
7871 {
7872 long int i = longval ();
7873 if (i != (~(size_t)0 % 10))
7874 return 1;
7875 fprintf (f, "%ld\n", i);
7876 }
7877 else
7878 {
7879 unsigned long int i = ulongval ();
7880 if (i != (~(size_t)0 % 10))
7881 return 1;
7882 fprintf (f, "%lu\n", i);
7883 }
7884 return ferror (f) || fclose (f) != 0;
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_link") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 res_lo=`cat conftest.val`
7911 else
7912 echo "$as_me: program exited with status $ac_status" >&5
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ( exit $ac_status )
7917 result=?
7918 fi
7919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 rm -f conftest.val
7922
7923 if test "$cross_compiling" = yes; then
7924 # Depending upon the size, compute the lo and hi bounds.
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <stddef.h>
7932 int
7933 main ()
7934 {
7935 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7936 test_array [0] = 0
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7959 ac_lo=0 ac_mid=0
7960 while :; do
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 #include <stddef.h>
7968 int
7969 main ()
7970 {
7971 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7972 test_array [0] = 0
7973
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_hi=$ac_mid; break
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8002 ac_lo= ac_hi=
8003 break
8004 fi
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 done
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <stddef.h>
8021 int
8022 main ()
8023 {
8024 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8025 test_array [0] = 0
8026
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_hi=-1 ac_mid=-1
8049 while :; do
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 #include <stddef.h>
8057 int
8058 main ()
8059 {
8060 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8061 test_array [0] = 0
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
8084 ac_lo=$ac_mid; break
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 ac_hi=`expr '(' $ac_mid ')' - 1`
8090 if test $ac_mid -le $ac_hi; then
8091 ac_lo= ac_hi=
8092 break
8093 fi
8094 ac_mid=`expr 2 '*' $ac_mid`
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 done
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ac_lo= ac_hi=
8104 fi
8105
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 fi
8108
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 # Binary search between lo and hi bounds.
8111 while test "x$ac_lo" != "x$ac_hi"; do
8112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <stddef.h>
8120 int
8121 main ()
8122 {
8123 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8124 test_array [0] = 0
8125
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_hi=$ac_mid
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_lo=`expr '(' $ac_mid ')' + 1`
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 done
8157 case $ac_lo in
8158 ?*) fits_in_uint=$ac_lo;;
8159 '') result=? ;;
8160 esac
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <stddef.h>
8169 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8170 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8171 #include <stdio.h>
8172 #include <stdlib.h>
8173 int
8174 main ()
8175 {
8176
8177 FILE *f = fopen ("conftest.val", "w");
8178 if (! f)
8179 return 1;
8180 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8181 {
8182 long int i = longval ();
8183 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8184 return 1;
8185 fprintf (f, "%ld\n", i);
8186 }
8187 else
8188 {
8189 unsigned long int i = ulongval ();
8190 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8191 return 1;
8192 fprintf (f, "%lu\n", i);
8193 }
8194 return ferror (f) || fclose (f) != 0;
8195
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 fits_in_uint=`cat conftest.val`
8221 else
8222 echo "$as_me: program exited with status $ac_status" >&5
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ( exit $ac_status )
8227 result=?
8228 fi
8229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8230 fi
8231 rm -f conftest.val
8232
8233 if test "$fits_in_uint" = 1; then
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 #include <stddef.h>
8241 extern size_t foo;
8242 extern unsigned long foo;
8243
8244 int
8245 main ()
8246 {
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8254 case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 fits_in_uint=0
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274
8275 fi
8276
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 fi
8279 if test -z "$result"; then
8280 if test "$fits_in_uint" = 1; then
8281 result="$res_hi$res_lo"U
8282 else
8283 result="$res_hi$res_lo"UL
8284 fi
8285 else
8286 result='~(size_t)0'
8287 fi
8288 fi
8289 { echo "$as_me:$LINENO: result: $result" >&5
8290 echo "${ECHO_T}$result" >&6; }
8291 if test "$result" != yes; then
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define SIZE_MAX $result
8295 _ACEOF
8296
8297 fi
8298
8299
8300
8301
8302 for ac_header in stdint.h
8303 do
8304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 fi
8311 ac_res=`eval echo '${'$as_ac_Header'}'`
8312 { echo "$as_me:$LINENO: result: $ac_res" >&5
8313 echo "${ECHO_T}$ac_res" >&6; }
8314 else
8315 # Is the header compilable?
8316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #include <$ac_header>
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8329 case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
8344 ac_header_compiler=yes
8345 else
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_header_compiler=no
8350 fi
8351
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8354 echo "${ECHO_T}$ac_header_compiler" >&6; }
8355
8356 # Is the header present?
8357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8359 cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 #include <$ac_header>
8366 _ACEOF
8367 if { (ac_try="$ac_cpp conftest.$ac_ext"
8368 case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } >/dev/null && {
8380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 }; then
8383 ac_header_preproc=yes
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_header_preproc=no
8389 fi
8390
8391 rm -f conftest.err conftest.$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6; }
8394
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8397 yes:no: )
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8402 ac_header_preproc=yes
8403 ;;
8404 no:yes:* )
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8417
8418 ;;
8419 esac
8420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 eval "$as_ac_Header=\$ac_header_preproc"
8426 fi
8427 ac_res=`eval echo '${'$as_ac_Header'}'`
8428 { echo "$as_me:$LINENO: result: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8430
8431 fi
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8435 _ACEOF
8436
8437 fi
8438
8439 done
8440
8441
8442
8443 if test "X$prefix" = "XNONE"; then
8444 acl_final_prefix="$ac_default_prefix"
8445 else
8446 acl_final_prefix="$prefix"
8447 fi
8448 if test "X$exec_prefix" = "XNONE"; then
8449 acl_final_exec_prefix='${prefix}'
8450 else
8451 acl_final_exec_prefix="$exec_prefix"
8452 fi
8453 acl_save_prefix="$prefix"
8454 prefix="$acl_final_prefix"
8455 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8456 prefix="$acl_save_prefix"
8457
8458
8459 # Check whether --with-gnu-ld was given.
8460 if test "${with_gnu_ld+set}" = set; then
8461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8462 else
8463 with_gnu_ld=no
8464 fi
8465
8466 # Prepare PATH_SEPARATOR.
8467 # The user is always right.
8468 if test "${PATH_SEPARATOR+set}" != set; then
8469 echo "#! /bin/sh" >conf$$.sh
8470 echo "exit 0" >>conf$$.sh
8471 chmod +x conf$$.sh
8472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8473 PATH_SEPARATOR=';'
8474 else
8475 PATH_SEPARATOR=:
8476 fi
8477 rm -f conf$$.sh
8478 fi
8479 ac_prog=ld
8480 if test "$GCC" = yes; then
8481 # Check if gcc -print-prog-name=ld gives a path.
8482 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8483 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8484 case $host in
8485 *-*-mingw*)
8486 # gcc leaves a trailing carriage return which upsets mingw
8487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8488 *)
8489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8490 esac
8491 case $ac_prog in
8492 # Accept absolute paths.
8493 [\\/]* | [A-Za-z]:[\\/]*)
8494 re_direlt='/[^/][^/]*/\.\./'
8495 # Canonicalize the path of ld
8496 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8497 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8498 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8499 done
8500 test -z "$LD" && LD="$ac_prog"
8501 ;;
8502 "")
8503 # If it fails, then pretend we aren't using GCC.
8504 ac_prog=ld
8505 ;;
8506 *)
8507 # If it is relative, then search for the first ld in PATH.
8508 with_gnu_ld=unknown
8509 ;;
8510 esac
8511 elif test "$with_gnu_ld" = yes; then
8512 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8514 else
8515 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8517 fi
8518 if test "${acl_cv_path_LD+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 if test -z "$LD"; then
8522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8523 for ac_dir in $PATH; do
8524 test -z "$ac_dir" && ac_dir=.
8525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8526 acl_cv_path_LD="$ac_dir/$ac_prog"
8527 # Check to see if the program is GNU ld. I'd rather use --version,
8528 # but apparently some GNU ld's only accept -v.
8529 # Break only if it was the GNU/non-GNU ld that we prefer.
8530 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8531 *GNU* | *'with BFD'*)
8532 test "$with_gnu_ld" != no && break ;;
8533 *)
8534 test "$with_gnu_ld" != yes && break ;;
8535 esac
8536 fi
8537 done
8538 IFS="$ac_save_ifs"
8539 else
8540 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8541 fi
8542 fi
8543
8544 LD="$acl_cv_path_LD"
8545 if test -n "$LD"; then
8546 { echo "$as_me:$LINENO: result: $LD" >&5
8547 echo "${ECHO_T}$LD" >&6; }
8548 else
8549 { echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6; }
8551 fi
8552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8554 { (exit 1); exit 1; }; }
8555 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8557 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8561 case `$LD -v 2>&1 </dev/null` in
8562 *GNU* | *'with BFD'*)
8563 acl_cv_prog_gnu_ld=yes ;;
8564 *)
8565 acl_cv_prog_gnu_ld=no ;;
8566 esac
8567 fi
8568 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8570 with_gnu_ld=$acl_cv_prog_gnu_ld
8571
8572
8573
8574 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8576 if test "${acl_cv_rpath+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579
8580 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8582 . ./conftest.sh
8583 rm -f ./conftest.sh
8584 acl_cv_rpath=done
8585
8586 fi
8587 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8588 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8589 wl="$acl_cv_wl"
8590 libext="$acl_cv_libext"
8591 shlibext="$acl_cv_shlibext"
8592 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8593 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8594 hardcode_direct="$acl_cv_hardcode_direct"
8595 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8596 # Check whether --enable-rpath was given.
8597 if test "${enable_rpath+set}" = set; then
8598 enableval=$enable_rpath; :
8599 else
8600 enable_rpath=yes
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610 use_additional=yes
8611
8612 acl_save_prefix="$prefix"
8613 prefix="$acl_final_prefix"
8614 acl_save_exec_prefix="$exec_prefix"
8615 exec_prefix="$acl_final_exec_prefix"
8616
8617 eval additional_includedir=\"$includedir\"
8618 eval additional_libdir=\"$libdir\"
8619
8620 exec_prefix="$acl_save_exec_prefix"
8621 prefix="$acl_save_prefix"
8622
8623
8624 # Check whether --with-libiconv-prefix was given.
8625 if test "${with_libiconv_prefix+set}" = set; then
8626 withval=$with_libiconv_prefix;
8627 if test "X$withval" = "Xno"; then
8628 use_additional=no
8629 else
8630 if test "X$withval" = "X"; then
8631
8632 acl_save_prefix="$prefix"
8633 prefix="$acl_final_prefix"
8634 acl_save_exec_prefix="$exec_prefix"
8635 exec_prefix="$acl_final_exec_prefix"
8636
8637 eval additional_includedir=\"$includedir\"
8638 eval additional_libdir=\"$libdir\"
8639
8640 exec_prefix="$acl_save_exec_prefix"
8641 prefix="$acl_save_prefix"
8642
8643 else
8644 additional_includedir="$withval/include"
8645 additional_libdir="$withval/lib"
8646 fi
8647 fi
8648
8649 fi
8650
8651 LIBICONV=
8652 LTLIBICONV=
8653 INCICONV=
8654 rpathdirs=
8655 ltrpathdirs=
8656 names_already_handled=
8657 names_next_round='iconv '
8658 while test -n "$names_next_round"; do
8659 names_this_round="$names_next_round"
8660 names_next_round=
8661 for name in $names_this_round; do
8662 already_handled=
8663 for n in $names_already_handled; do
8664 if test "$n" = "$name"; then
8665 already_handled=yes
8666 break
8667 fi
8668 done
8669 if test -z "$already_handled"; then
8670 names_already_handled="$names_already_handled $name"
8671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8672 eval value=\"\$HAVE_LIB$uppername\"
8673 if test -n "$value"; then
8674 if test "$value" = yes; then
8675 eval value=\"\$LIB$uppername\"
8676 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8677 eval value=\"\$LTLIB$uppername\"
8678 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8679 else
8680 :
8681 fi
8682 else
8683 found_dir=
8684 found_la=
8685 found_so=
8686 found_a=
8687 if test $use_additional = yes; then
8688 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8689 found_dir="$additional_libdir"
8690 found_so="$additional_libdir/lib$name.$shlibext"
8691 if test -f "$additional_libdir/lib$name.la"; then
8692 found_la="$additional_libdir/lib$name.la"
8693 fi
8694 else
8695 if test -f "$additional_libdir/lib$name.$libext"; then
8696 found_dir="$additional_libdir"
8697 found_a="$additional_libdir/lib$name.$libext"
8698 if test -f "$additional_libdir/lib$name.la"; then
8699 found_la="$additional_libdir/lib$name.la"
8700 fi
8701 fi
8702 fi
8703 fi
8704 if test "X$found_dir" = "X"; then
8705 for x in $LDFLAGS $LTLIBICONV; do
8706
8707 acl_save_prefix="$prefix"
8708 prefix="$acl_final_prefix"
8709 acl_save_exec_prefix="$exec_prefix"
8710 exec_prefix="$acl_final_exec_prefix"
8711 eval x=\"$x\"
8712 exec_prefix="$acl_save_exec_prefix"
8713 prefix="$acl_save_prefix"
8714
8715 case "$x" in
8716 -L*)
8717 dir=`echo "X$x" | sed -e 's/^X-L//'`
8718 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8719 found_dir="$dir"
8720 found_so="$dir/lib$name.$shlibext"
8721 if test -f "$dir/lib$name.la"; then
8722 found_la="$dir/lib$name.la"
8723 fi
8724 else
8725 if test -f "$dir/lib$name.$libext"; then
8726 found_dir="$dir"
8727 found_a="$dir/lib$name.$libext"
8728 if test -f "$dir/lib$name.la"; then
8729 found_la="$dir/lib$name.la"
8730 fi
8731 fi
8732 fi
8733 ;;
8734 esac
8735 if test "X$found_dir" != "X"; then
8736 break
8737 fi
8738 done
8739 fi
8740 if test "X$found_dir" != "X"; then
8741 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8742 if test "X$found_so" != "X"; then
8743 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8745 else
8746 haveit=
8747 for x in $ltrpathdirs; do
8748 if test "X$x" = "X$found_dir"; then
8749 haveit=yes
8750 break
8751 fi
8752 done
8753 if test -z "$haveit"; then
8754 ltrpathdirs="$ltrpathdirs $found_dir"
8755 fi
8756 if test "$hardcode_direct" = yes; then
8757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8758 else
8759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8761 haveit=
8762 for x in $rpathdirs; do
8763 if test "X$x" = "X$found_dir"; then
8764 haveit=yes
8765 break
8766 fi
8767 done
8768 if test -z "$haveit"; then
8769 rpathdirs="$rpathdirs $found_dir"
8770 fi
8771 else
8772 haveit=
8773 for x in $LDFLAGS $LIBICONV; do
8774
8775 acl_save_prefix="$prefix"
8776 prefix="$acl_final_prefix"
8777 acl_save_exec_prefix="$exec_prefix"
8778 exec_prefix="$acl_final_exec_prefix"
8779 eval x=\"$x\"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8782
8783 if test "X$x" = "X-L$found_dir"; then
8784 haveit=yes
8785 break
8786 fi
8787 done
8788 if test -z "$haveit"; then
8789 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8790 fi
8791 if test "$hardcode_minus_L" != no; then
8792 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8793 else
8794 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8795 fi
8796 fi
8797 fi
8798 fi
8799 else
8800 if test "X$found_a" != "X"; then
8801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8802 else
8803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8804 fi
8805 fi
8806 additional_includedir=
8807 case "$found_dir" in
8808 */lib | */lib/)
8809 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8810 additional_includedir="$basedir/include"
8811 ;;
8812 esac
8813 if test "X$additional_includedir" != "X"; then
8814 if test "X$additional_includedir" != "X/usr/include"; then
8815 haveit=
8816 if test "X$additional_includedir" = "X/usr/local/include"; then
8817 if test -n "$GCC"; then
8818 case $host_os in
8819 linux*) haveit=yes;;
8820 esac
8821 fi
8822 fi
8823 if test -z "$haveit"; then
8824 for x in $CPPFLAGS $INCICONV; do
8825
8826 acl_save_prefix="$prefix"
8827 prefix="$acl_final_prefix"
8828 acl_save_exec_prefix="$exec_prefix"
8829 exec_prefix="$acl_final_exec_prefix"
8830 eval x=\"$x\"
8831 exec_prefix="$acl_save_exec_prefix"
8832 prefix="$acl_save_prefix"
8833
8834 if test "X$x" = "X-I$additional_includedir"; then
8835 haveit=yes
8836 break
8837 fi
8838 done
8839 if test -z "$haveit"; then
8840 if test -d "$additional_includedir"; then
8841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8842 fi
8843 fi
8844 fi
8845 fi
8846 fi
8847 if test -n "$found_la"; then
8848 save_libdir="$libdir"
8849 case "$found_la" in
8850 */* | *\\*) . "$found_la" ;;
8851 *) . "./$found_la" ;;
8852 esac
8853 libdir="$save_libdir"
8854 for dep in $dependency_libs; do
8855 case "$dep" in
8856 -L*)
8857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8858 if test "X$additional_libdir" != "X/usr/lib"; then
8859 haveit=
8860 if test "X$additional_libdir" = "X/usr/local/lib"; then
8861 if test -n "$GCC"; then
8862 case $host_os in
8863 linux*) haveit=yes;;
8864 esac
8865 fi
8866 fi
8867 if test -z "$haveit"; then
8868 haveit=
8869 for x in $LDFLAGS $LIBICONV; do
8870
8871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8875 eval x=\"$x\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8878
8879 if test "X$x" = "X-L$additional_libdir"; then
8880 haveit=yes
8881 break
8882 fi
8883 done
8884 if test -z "$haveit"; then
8885 if test -d "$additional_libdir"; then
8886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8887 fi
8888 fi
8889 haveit=
8890 for x in $LDFLAGS $LTLIBICONV; do
8891
8892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
8896 eval x=\"$x\"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8899
8900 if test "X$x" = "X-L$additional_libdir"; then
8901 haveit=yes
8902 break
8903 fi
8904 done
8905 if test -z "$haveit"; then
8906 if test -d "$additional_libdir"; then
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8908 fi
8909 fi
8910 fi
8911 fi
8912 ;;
8913 -R*)
8914 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8915 if test "$enable_rpath" != no; then
8916 haveit=
8917 for x in $rpathdirs; do
8918 if test "X$x" = "X$dir"; then
8919 haveit=yes
8920 break
8921 fi
8922 done
8923 if test -z "$haveit"; then
8924 rpathdirs="$rpathdirs $dir"
8925 fi
8926 haveit=
8927 for x in $ltrpathdirs; do
8928 if test "X$x" = "X$dir"; then
8929 haveit=yes
8930 break
8931 fi
8932 done
8933 if test -z "$haveit"; then
8934 ltrpathdirs="$ltrpathdirs $dir"
8935 fi
8936 fi
8937 ;;
8938 -l*)
8939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8940 ;;
8941 *.la)
8942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8943 ;;
8944 *)
8945 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8947 ;;
8948 esac
8949 done
8950 fi
8951 else
8952 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8954 fi
8955 fi
8956 fi
8957 done
8958 done
8959 if test "X$rpathdirs" != "X"; then
8960 if test -n "$hardcode_libdir_separator"; then
8961 alldirs=
8962 for found_dir in $rpathdirs; do
8963 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8964 done
8965 acl_save_libdir="$libdir"
8966 libdir="$alldirs"
8967 eval flag=\"$hardcode_libdir_flag_spec\"
8968 libdir="$acl_save_libdir"
8969 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8970 else
8971 for found_dir in $rpathdirs; do
8972 acl_save_libdir="$libdir"
8973 libdir="$found_dir"
8974 eval flag=\"$hardcode_libdir_flag_spec\"
8975 libdir="$acl_save_libdir"
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8977 done
8978 fi
8979 fi
8980 if test "X$ltrpathdirs" != "X"; then
8981 for found_dir in $ltrpathdirs; do
8982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8983 done
8984 fi
8985
8986
8987
8988
8989
8990
8991
8992
8993 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8994 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8995 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef ptrdiff_t ac__type_new_;
9006 int
9007 main ()
9008 {
9009 if ((ac__type_new_ *) 0)
9010 return 0;
9011 if (sizeof (ac__type_new_))
9012 return 0;
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9019 case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest.$ac_objext; then
9034 ac_cv_type_ptrdiff_t=yes
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ac_cv_type_ptrdiff_t=no
9040 fi
9041
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9045 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9046 if test $ac_cv_type_ptrdiff_t = yes; then
9047 :
9048 else
9049
9050 cat >>confdefs.h <<\_ACEOF
9051 #define ptrdiff_t long
9052 _ACEOF
9053
9054
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9068 stdlib.h string.h unistd.h sys/param.h
9069 do
9070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 fi
9077 ac_res=`eval echo '${'$as_ac_Header'}'`
9078 { echo "$as_me:$LINENO: result: $ac_res" >&5
9079 echo "${ECHO_T}$ac_res" >&6; }
9080 else
9081 # Is the header compilable?
9082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9084 cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h. */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9090 $ac_includes_default
9091 #include <$ac_header>
9092 _ACEOF
9093 rm -f conftest.$ac_objext
9094 if { (ac_try="$ac_compile"
9095 case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_compile") 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.$ac_objext; then
9110 ac_header_compiler=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_header_compiler=no
9116 fi
9117
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120 echo "${ECHO_T}$ac_header_compiler" >&6; }
9121
9122 # Is the header present?
9123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <$ac_header>
9132 _ACEOF
9133 if { (ac_try="$ac_cpp conftest.$ac_ext"
9134 case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev/null && {
9146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 }; then
9149 ac_header_preproc=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155 fi
9156
9157 rm -f conftest.err conftest.$ac_ext
9158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159 echo "${ECHO_T}$ac_header_preproc" >&6; }
9160
9161 # So? What about this header?
9162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9169 ;;
9170 no:yes:* )
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183
9184 ;;
9185 esac
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 eval "$as_ac_Header=\$ac_header_preproc"
9192 fi
9193 ac_res=`eval echo '${'$as_ac_Header'}'`
9194 { echo "$as_me:$LINENO: result: $ac_res" >&5
9195 echo "${ECHO_T}$ac_res" >&6; }
9196
9197 fi
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9231 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9232 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9233 __fsetlocking
9234 do
9235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9249 #define $ac_func innocuous_$ac_func
9250
9251 /* System header to define __stub macros and hopefully few prototypes,
9252 which can conflict with char $ac_func (); below.
9253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254 <limits.h> exists even on freestanding compilers. */
9255
9256 #ifdef __STDC__
9257 # include <limits.h>
9258 #else
9259 # include <assert.h>
9260 #endif
9261
9262 #undef $ac_func
9263
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char $ac_func ();
9271 /* The GNU C library defines this for functions which it implements
9272 to always fail with ENOSYS. Some functions are actually named
9273 something starting with __ and the normal name is an alias. */
9274 #if defined __stub_$ac_func || defined __stub___$ac_func
9275 choke me
9276 #endif
9277
9278 int
9279 main ()
9280 {
9281 return $ac_func ();
9282 ;
9283 return 0;
9284 }
9285 _ACEOF
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (ac_try="$ac_link"
9288 case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291 esac
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_link") 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_c_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest$ac_exeext &&
9303 $as_test_x conftest$ac_exeext; then
9304 eval "$as_ac_var=yes"
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 eval "$as_ac_var=no"
9310 fi
9311
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313 conftest$ac_exeext conftest.$ac_ext
9314 fi
9315 ac_res=`eval echo '${'$as_ac_var'}'`
9316 { echo "$as_me:$LINENO: result: $ac_res" >&5
9317 echo "${ECHO_T}$ac_res" >&6; }
9318 if test `eval echo '${'$as_ac_var'}'` = yes; then
9319 cat >>confdefs.h <<_ACEOF
9320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9321 _ACEOF
9322
9323 fi
9324 done
9325
9326
9327
9328 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9329 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9330 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <stdio.h>
9340 int
9341 main ()
9342 {
9343
9344 #ifndef _snprintf
9345 char *p = (char *) _snprintf;
9346 #endif
9347
9348 ;
9349 return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext
9353 if { (ac_try="$ac_compile"
9354 case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357 esac
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_compile") 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest.$ac_objext; then
9369 ac_cv_have_decl__snprintf=yes
9370 else
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 ac_cv_have_decl__snprintf=no
9375 fi
9376
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 fi
9379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9380 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9381 if test $ac_cv_have_decl__snprintf = yes; then
9382 gt_value=1
9383 else
9384 gt_value=0
9385 fi
9386
9387 cat >>confdefs.h <<_ACEOF
9388 #define HAVE_DECL__SNPRINTF $gt_value
9389 _ACEOF
9390
9391
9392
9393 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9394 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9395 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
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 <stdio.h>
9405 int
9406 main ()
9407 {
9408
9409 #ifndef _snwprintf
9410 char *p = (char *) _snwprintf;
9411 #endif
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9419 case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 ac_cv_have_decl__snwprintf=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 ac_cv_have_decl__snwprintf=no
9440 fi
9441
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 fi
9444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9445 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9446 if test $ac_cv_have_decl__snwprintf = yes; then
9447 gt_value=1
9448 else
9449 gt_value=0
9450 fi
9451
9452 cat >>confdefs.h <<_ACEOF
9453 #define HAVE_DECL__SNWPRINTF $gt_value
9454 _ACEOF
9455
9456
9457
9458
9459 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9460 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9461 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 #include <stdio.h>
9471 int
9472 main ()
9473 {
9474
9475 #ifndef feof_unlocked
9476 char *p = (char *) feof_unlocked;
9477 #endif
9478
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (ac_try="$ac_compile"
9485 case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_compile") 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest.$ac_objext; then
9500 ac_cv_have_decl_feof_unlocked=yes
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505 ac_cv_have_decl_feof_unlocked=no
9506 fi
9507
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 fi
9510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9511 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9512 if test $ac_cv_have_decl_feof_unlocked = yes; then
9513 gt_value=1
9514 else
9515 gt_value=0
9516 fi
9517
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9520 _ACEOF
9521
9522
9523
9524 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9525 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9526 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h. */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 #include <stdio.h>
9536 int
9537 main ()
9538 {
9539
9540 #ifndef fgets_unlocked
9541 char *p = (char *) fgets_unlocked;
9542 #endif
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9550 case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
9565 ac_cv_have_decl_fgets_unlocked=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_cv_have_decl_fgets_unlocked=no
9571 fi
9572
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 fi
9575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9576 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9577 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9578 gt_value=1
9579 else
9580 gt_value=0
9581 fi
9582
9583 cat >>confdefs.h <<_ACEOF
9584 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9585 _ACEOF
9586
9587
9588
9589 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9590 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9591 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <stdio.h>
9601 int
9602 main ()
9603 {
9604
9605 #ifndef getc_unlocked
9606 char *p = (char *) getc_unlocked;
9607 #endif
9608
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9630 ac_cv_have_decl_getc_unlocked=yes
9631 else
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ac_cv_have_decl_getc_unlocked=no
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 fi
9640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9641 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9642 if test $ac_cv_have_decl_getc_unlocked = yes; then
9643 gt_value=1
9644 else
9645 gt_value=0
9646 fi
9647
9648 cat >>confdefs.h <<_ACEOF
9649 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9650 _ACEOF
9651
9652
9653
9654 case $gt_cv_func_printf_posix in
9655 *yes) HAVE_POSIX_PRINTF=1 ;;
9656 *) HAVE_POSIX_PRINTF=0 ;;
9657 esac
9658
9659 if test "$ac_cv_func_asprintf" = yes; then
9660 HAVE_ASPRINTF=1
9661 else
9662 HAVE_ASPRINTF=0
9663 fi
9664
9665 if test "$ac_cv_func_snprintf" = yes; then
9666 HAVE_SNPRINTF=1
9667 else
9668 HAVE_SNPRINTF=0
9669 fi
9670
9671 if test "$ac_cv_func_wprintf" = yes; then
9672 HAVE_WPRINTF=1
9673 else
9674 HAVE_WPRINTF=0
9675 fi
9676
9677
9678
9679
9680
9681
9682
9683 am_save_CPPFLAGS="$CPPFLAGS"
9684
9685 for element in $INCICONV; do
9686 haveit=
9687 for x in $CPPFLAGS; do
9688
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 acl_save_exec_prefix="$exec_prefix"
9692 exec_prefix="$acl_final_exec_prefix"
9693 eval x=\"$x\"
9694 exec_prefix="$acl_save_exec_prefix"
9695 prefix="$acl_save_prefix"
9696
9697 if test "X$x" = "X$element"; then
9698 haveit=yes
9699 break
9700 fi
9701 done
9702 if test -z "$haveit"; then
9703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9704 fi
9705 done
9706
9707
9708 { echo "$as_me:$LINENO: checking for iconv" >&5
9709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9710 if test "${am_cv_func_iconv+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713
9714 am_cv_func_iconv="no, consider installing GNU libiconv"
9715 am_cv_lib_iconv=no
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <stdlib.h>
9723 #include <iconv.h>
9724 int
9725 main ()
9726 {
9727 iconv_t cd = iconv_open("","");
9728 iconv(cd,NULL,NULL,NULL,NULL);
9729 iconv_close(cd);
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 am_cv_func_iconv=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 if test "$am_cv_func_iconv" != yes; then
9763 am_save_LIBS="$LIBS"
9764 LIBS="$LIBS $LIBICONV"
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 #include <stdlib.h>
9772 #include <iconv.h>
9773 int
9774 main ()
9775 {
9776 iconv_t cd = iconv_open("","");
9777 iconv(cd,NULL,NULL,NULL,NULL);
9778 iconv_close(cd);
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9785 case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9801 am_cv_lib_iconv=yes
9802 am_cv_func_iconv=yes
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807
9808 fi
9809
9810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS="$am_save_LIBS"
9813 fi
9814
9815 fi
9816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9818 if test "$am_cv_func_iconv" = yes; then
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_ICONV 1
9822 _ACEOF
9823
9824 fi
9825 if test "$am_cv_lib_iconv" = yes; then
9826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9829 echo "${ECHO_T}$LIBICONV" >&6; }
9830 else
9831 CPPFLAGS="$am_save_CPPFLAGS"
9832 LIBICONV=
9833 LTLIBICONV=
9834 fi
9835
9836
9837
9838 if test "$am_cv_func_iconv" = yes; then
9839 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9841 if test "${am_cv_proto_iconv+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851
9852 #include <stdlib.h>
9853 #include <iconv.h>
9854 extern
9855 #ifdef __cplusplus
9856 "C"
9857 #endif
9858 #if defined(__STDC__) || defined(__cplusplus)
9859 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9860 #else
9861 size_t iconv();
9862 #endif
9863
9864 int
9865 main ()
9866 {
9867
9868 ;
9869 return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (ac_try="$ac_compile"
9874 case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.$ac_objext; then
9889 am_cv_proto_iconv_arg1=""
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 am_cv_proto_iconv_arg1="const"
9895 fi
9896
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 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);"
9899 fi
9900
9901 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9902 { echo "$as_me:$LINENO: result: ${ac_t:-
9903 }$am_cv_proto_iconv" >&5
9904 echo "${ECHO_T}${ac_t:-
9905 }$am_cv_proto_iconv" >&6; }
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define ICONV_CONST $am_cv_proto_iconv_arg1
9909 _ACEOF
9910
9911 fi
9912
9913
9914 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9916 if test "${am_cv_langinfo_codeset+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 #include <langinfo.h>
9926 int
9927 main ()
9928 {
9929 char* cs = nl_langinfo(CODESET);
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 am_cv_langinfo_codeset=yes
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 am_cv_langinfo_codeset=no
9958 fi
9959
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9962
9963 fi
9964 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9965 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9966 if test $am_cv_langinfo_codeset = yes; then
9967
9968 cat >>confdefs.h <<\_ACEOF
9969 #define HAVE_LANGINFO_CODESET 1
9970 _ACEOF
9971
9972 fi
9973
9974 if test $ac_cv_header_locale_h = yes; then
9975
9976 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9978 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 #include <locale.h>
9988 int
9989 main ()
9990 {
9991 return LC_MESSAGES
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext &&
10013 $as_test_x conftest$ac_exeext; then
10014 am_cv_val_LC_MESSAGES=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 am_cv_val_LC_MESSAGES=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023 conftest$ac_exeext conftest.$ac_ext
10024 fi
10025 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10026 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10027 if test $am_cv_val_LC_MESSAGES = yes; then
10028
10029 cat >>confdefs.h <<\_ACEOF
10030 #define HAVE_LC_MESSAGES 1
10031 _ACEOF
10032
10033 fi
10034
10035 fi
10036
10037 for ac_prog in bison
10038 do
10039 # Extract the first word of "$ac_prog", so it can be a program name with args.
10040 set dummy $ac_prog; ac_word=$2
10041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10043 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 if test -n "$INTLBISON"; then
10047 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_INTLBISON="$ac_prog"
10057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060 done
10061 done
10062 IFS=$as_save_IFS
10063
10064 fi
10065 fi
10066 INTLBISON=$ac_cv_prog_INTLBISON
10067 if test -n "$INTLBISON"; then
10068 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10069 echo "${ECHO_T}$INTLBISON" >&6; }
10070 else
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10073 fi
10074
10075
10076 test -n "$INTLBISON" && break
10077 done
10078
10079 if test -z "$INTLBISON"; then
10080 ac_verc_fail=yes
10081 else
10082 { echo "$as_me:$LINENO: checking version of bison" >&5
10083 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10084 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10085 case $ac_prog_version in
10086 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10087 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10088 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10089 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10090 esac
10091 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10092 echo "${ECHO_T}$ac_prog_version" >&6; }
10093 fi
10094 if test $ac_verc_fail = yes; then
10095 INTLBISON=:
10096 fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10114 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10115 # Check whether --enable-nls was given.
10116 if test "${enable_nls+set}" = set; then
10117 enableval=$enable_nls; USE_NLS=$enableval
10118 else
10119 USE_NLS=yes
10120 fi
10121
10122 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10123 echo "${ECHO_T}$USE_NLS" >&6; }
10124
10125
10126
10127
10128 BUILD_INCLUDED_LIBINTL=no
10129 USE_INCLUDED_LIBINTL=no
10130
10131 LIBINTL=
10132 LTLIBINTL=
10133 POSUB=
10134
10135 if test "$USE_NLS" = "yes"; then
10136 gt_use_preinstalled_gnugettext=no
10137
10138 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10139 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10140
10141 # Check whether --with-included-gettext was given.
10142 if test "${with_included_gettext+set}" = set; then
10143 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10144 else
10145 nls_cv_force_use_gnu_gettext=no
10146 fi
10147
10148 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10149 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10150
10151 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10152 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10153
10154
10155
10156
10157
10158
10159 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10160 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10161 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <libintl.h>
10171 extern int _nl_msg_cat_cntr;
10172 extern int *_nl_domain_bindings;
10173 int
10174 main ()
10175 {
10176 bindtextdomain ("", "");
10177 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10178 ;
10179 return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (ac_try="$ac_link"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest$ac_exeext &&
10199 $as_test_x conftest$ac_exeext; then
10200 gt_cv_func_gnugettext1_libc=yes
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 gt_cv_func_gnugettext1_libc=no
10206 fi
10207
10208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10209 conftest$ac_exeext conftest.$ac_ext
10210 fi
10211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10213
10214 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10215
10216
10217
10218 use_additional=yes
10219
10220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
10224
10225 eval additional_includedir=\"$includedir\"
10226 eval additional_libdir=\"$libdir\"
10227
10228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10230
10231
10232 # Check whether --with-libintl-prefix was given.
10233 if test "${with_libintl_prefix+set}" = set; then
10234 withval=$with_libintl_prefix;
10235 if test "X$withval" = "Xno"; then
10236 use_additional=no
10237 else
10238 if test "X$withval" = "X"; then
10239
10240 acl_save_prefix="$prefix"
10241 prefix="$acl_final_prefix"
10242 acl_save_exec_prefix="$exec_prefix"
10243 exec_prefix="$acl_final_exec_prefix"
10244
10245 eval additional_includedir=\"$includedir\"
10246 eval additional_libdir=\"$libdir\"
10247
10248 exec_prefix="$acl_save_exec_prefix"
10249 prefix="$acl_save_prefix"
10250
10251 else
10252 additional_includedir="$withval/include"
10253 additional_libdir="$withval/lib"
10254 fi
10255 fi
10256
10257 fi
10258
10259 LIBINTL=
10260 LTLIBINTL=
10261 INCINTL=
10262 rpathdirs=
10263 ltrpathdirs=
10264 names_already_handled=
10265 names_next_round='intl '
10266 while test -n "$names_next_round"; do
10267 names_this_round="$names_next_round"
10268 names_next_round=
10269 for name in $names_this_round; do
10270 already_handled=
10271 for n in $names_already_handled; do
10272 if test "$n" = "$name"; then
10273 already_handled=yes
10274 break
10275 fi
10276 done
10277 if test -z "$already_handled"; then
10278 names_already_handled="$names_already_handled $name"
10279 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10280 eval value=\"\$HAVE_LIB$uppername\"
10281 if test -n "$value"; then
10282 if test "$value" = yes; then
10283 eval value=\"\$LIB$uppername\"
10284 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10285 eval value=\"\$LTLIB$uppername\"
10286 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10287 else
10288 :
10289 fi
10290 else
10291 found_dir=
10292 found_la=
10293 found_so=
10294 found_a=
10295 if test $use_additional = yes; then
10296 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10297 found_dir="$additional_libdir"
10298 found_so="$additional_libdir/lib$name.$shlibext"
10299 if test -f "$additional_libdir/lib$name.la"; then
10300 found_la="$additional_libdir/lib$name.la"
10301 fi
10302 else
10303 if test -f "$additional_libdir/lib$name.$libext"; then
10304 found_dir="$additional_libdir"
10305 found_a="$additional_libdir/lib$name.$libext"
10306 if test -f "$additional_libdir/lib$name.la"; then
10307 found_la="$additional_libdir/lib$name.la"
10308 fi
10309 fi
10310 fi
10311 fi
10312 if test "X$found_dir" = "X"; then
10313 for x in $LDFLAGS $LTLIBINTL; do
10314
10315 acl_save_prefix="$prefix"
10316 prefix="$acl_final_prefix"
10317 acl_save_exec_prefix="$exec_prefix"
10318 exec_prefix="$acl_final_exec_prefix"
10319 eval x=\"$x\"
10320 exec_prefix="$acl_save_exec_prefix"
10321 prefix="$acl_save_prefix"
10322
10323 case "$x" in
10324 -L*)
10325 dir=`echo "X$x" | sed -e 's/^X-L//'`
10326 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10327 found_dir="$dir"
10328 found_so="$dir/lib$name.$shlibext"
10329 if test -f "$dir/lib$name.la"; then
10330 found_la="$dir/lib$name.la"
10331 fi
10332 else
10333 if test -f "$dir/lib$name.$libext"; then
10334 found_dir="$dir"
10335 found_a="$dir/lib$name.$libext"
10336 if test -f "$dir/lib$name.la"; then
10337 found_la="$dir/lib$name.la"
10338 fi
10339 fi
10340 fi
10341 ;;
10342 esac
10343 if test "X$found_dir" != "X"; then
10344 break
10345 fi
10346 done
10347 fi
10348 if test "X$found_dir" != "X"; then
10349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10350 if test "X$found_so" != "X"; then
10351 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10353 else
10354 haveit=
10355 for x in $ltrpathdirs; do
10356 if test "X$x" = "X$found_dir"; then
10357 haveit=yes
10358 break
10359 fi
10360 done
10361 if test -z "$haveit"; then
10362 ltrpathdirs="$ltrpathdirs $found_dir"
10363 fi
10364 if test "$hardcode_direct" = yes; then
10365 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10366 else
10367 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10368 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10369 haveit=
10370 for x in $rpathdirs; do
10371 if test "X$x" = "X$found_dir"; then
10372 haveit=yes
10373 break
10374 fi
10375 done
10376 if test -z "$haveit"; then
10377 rpathdirs="$rpathdirs $found_dir"
10378 fi
10379 else
10380 haveit=
10381 for x in $LDFLAGS $LIBINTL; do
10382
10383 acl_save_prefix="$prefix"
10384 prefix="$acl_final_prefix"
10385 acl_save_exec_prefix="$exec_prefix"
10386 exec_prefix="$acl_final_exec_prefix"
10387 eval x=\"$x\"
10388 exec_prefix="$acl_save_exec_prefix"
10389 prefix="$acl_save_prefix"
10390
10391 if test "X$x" = "X-L$found_dir"; then
10392 haveit=yes
10393 break
10394 fi
10395 done
10396 if test -z "$haveit"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10398 fi
10399 if test "$hardcode_minus_L" != no; then
10400 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10401 else
10402 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10403 fi
10404 fi
10405 fi
10406 fi
10407 else
10408 if test "X$found_a" != "X"; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10410 else
10411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10412 fi
10413 fi
10414 additional_includedir=
10415 case "$found_dir" in
10416 */lib | */lib/)
10417 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10418 additional_includedir="$basedir/include"
10419 ;;
10420 esac
10421 if test "X$additional_includedir" != "X"; then
10422 if test "X$additional_includedir" != "X/usr/include"; then
10423 haveit=
10424 if test "X$additional_includedir" = "X/usr/local/include"; then
10425 if test -n "$GCC"; then
10426 case $host_os in
10427 linux*) haveit=yes;;
10428 esac
10429 fi
10430 fi
10431 if test -z "$haveit"; then
10432 for x in $CPPFLAGS $INCINTL; do
10433
10434 acl_save_prefix="$prefix"
10435 prefix="$acl_final_prefix"
10436 acl_save_exec_prefix="$exec_prefix"
10437 exec_prefix="$acl_final_exec_prefix"
10438 eval x=\"$x\"
10439 exec_prefix="$acl_save_exec_prefix"
10440 prefix="$acl_save_prefix"
10441
10442 if test "X$x" = "X-I$additional_includedir"; then
10443 haveit=yes
10444 break
10445 fi
10446 done
10447 if test -z "$haveit"; then
10448 if test -d "$additional_includedir"; then
10449 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10450 fi
10451 fi
10452 fi
10453 fi
10454 fi
10455 if test -n "$found_la"; then
10456 save_libdir="$libdir"
10457 case "$found_la" in
10458 */* | *\\*) . "$found_la" ;;
10459 *) . "./$found_la" ;;
10460 esac
10461 libdir="$save_libdir"
10462 for dep in $dependency_libs; do
10463 case "$dep" in
10464 -L*)
10465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10466 if test "X$additional_libdir" != "X/usr/lib"; then
10467 haveit=
10468 if test "X$additional_libdir" = "X/usr/local/lib"; then
10469 if test -n "$GCC"; then
10470 case $host_os in
10471 linux*) haveit=yes;;
10472 esac
10473 fi
10474 fi
10475 if test -z "$haveit"; then
10476 haveit=
10477 for x in $LDFLAGS $LIBINTL; do
10478
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10486
10487 if test "X$x" = "X-L$additional_libdir"; then
10488 haveit=yes
10489 break
10490 fi
10491 done
10492 if test -z "$haveit"; then
10493 if test -d "$additional_libdir"; then
10494 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10495 fi
10496 fi
10497 haveit=
10498 for x in $LDFLAGS $LTLIBINTL; do
10499
10500 acl_save_prefix="$prefix"
10501 prefix="$acl_final_prefix"
10502 acl_save_exec_prefix="$exec_prefix"
10503 exec_prefix="$acl_final_exec_prefix"
10504 eval x=\"$x\"
10505 exec_prefix="$acl_save_exec_prefix"
10506 prefix="$acl_save_prefix"
10507
10508 if test "X$x" = "X-L$additional_libdir"; then
10509 haveit=yes
10510 break
10511 fi
10512 done
10513 if test -z "$haveit"; then
10514 if test -d "$additional_libdir"; then
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10516 fi
10517 fi
10518 fi
10519 fi
10520 ;;
10521 -R*)
10522 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10523 if test "$enable_rpath" != no; then
10524 haveit=
10525 for x in $rpathdirs; do
10526 if test "X$x" = "X$dir"; then
10527 haveit=yes
10528 break
10529 fi
10530 done
10531 if test -z "$haveit"; then
10532 rpathdirs="$rpathdirs $dir"
10533 fi
10534 haveit=
10535 for x in $ltrpathdirs; do
10536 if test "X$x" = "X$dir"; then
10537 haveit=yes
10538 break
10539 fi
10540 done
10541 if test -z "$haveit"; then
10542 ltrpathdirs="$ltrpathdirs $dir"
10543 fi
10544 fi
10545 ;;
10546 -l*)
10547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10548 ;;
10549 *.la)
10550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10551 ;;
10552 *)
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10555 ;;
10556 esac
10557 done
10558 fi
10559 else
10560 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10561 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10562 fi
10563 fi
10564 fi
10565 done
10566 done
10567 if test "X$rpathdirs" != "X"; then
10568 if test -n "$hardcode_libdir_separator"; then
10569 alldirs=
10570 for found_dir in $rpathdirs; do
10571 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10572 done
10573 acl_save_libdir="$libdir"
10574 libdir="$alldirs"
10575 eval flag=\"$hardcode_libdir_flag_spec\"
10576 libdir="$acl_save_libdir"
10577 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10578 else
10579 for found_dir in $rpathdirs; do
10580 acl_save_libdir="$libdir"
10581 libdir="$found_dir"
10582 eval flag=\"$hardcode_libdir_flag_spec\"
10583 libdir="$acl_save_libdir"
10584 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10585 done
10586 fi
10587 fi
10588 if test "X$ltrpathdirs" != "X"; then
10589 for found_dir in $ltrpathdirs; do
10590 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10591 done
10592 fi
10593
10594 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10595 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10596 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599 gt_save_CPPFLAGS="$CPPFLAGS"
10600 CPPFLAGS="$CPPFLAGS $INCINTL"
10601 gt_save_LIBS="$LIBS"
10602 LIBS="$LIBS $LIBINTL"
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <libintl.h>
10610 extern int _nl_msg_cat_cntr;
10611 extern
10612 #ifdef __cplusplus
10613 "C"
10614 #endif
10615 const char *_nl_expand_alias ();
10616 int
10617 main ()
10618 {
10619 bindtextdomain ("", "");
10620 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (ac_try="$ac_link"
10627 case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 gt_cv_func_gnugettext1_libintl=yes
10644 else
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 gt_cv_func_gnugettext1_libintl=no
10649 fi
10650
10651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10654 LIBS="$LIBS $LIBICONV"
10655 cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h. */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 #include <libintl.h>
10662 extern int _nl_msg_cat_cntr;
10663 extern
10664 #ifdef __cplusplus
10665 "C"
10666 #endif
10667 const char *_nl_expand_alias ();
10668 int
10669 main ()
10670 {
10671 bindtextdomain ("", "");
10672 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10673 ;
10674 return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest$ac_exeext &&
10694 $as_test_x conftest$ac_exeext; then
10695 LIBINTL="$LIBINTL $LIBICONV"
10696 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10697 gt_cv_func_gnugettext1_libintl=yes
10698
10699 else
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703
10704 fi
10705
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707 conftest$ac_exeext conftest.$ac_ext
10708 fi
10709 CPPFLAGS="$gt_save_CPPFLAGS"
10710 LIBS="$gt_save_LIBS"
10711 fi
10712 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10713 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10714 fi
10715
10716 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10717 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10718 && test "$PACKAGE" != gettext-runtime \
10719 && test "$PACKAGE" != gettext-tools; }; then
10720 gt_use_preinstalled_gnugettext=yes
10721 else
10722 LIBINTL=
10723 LTLIBINTL=
10724 INCINTL=
10725 fi
10726
10727
10728 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10729 nls_cv_use_gnu_gettext=yes
10730 fi
10731 fi
10732
10733 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10734 BUILD_INCLUDED_LIBINTL=yes
10735 USE_INCLUDED_LIBINTL=yes
10736 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10737 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10738 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10739 fi
10740
10741 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10742 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10743 CATOBJEXT=.gmo
10744 fi
10745
10746
10747 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10748 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10749
10750 cat >>confdefs.h <<\_ACEOF
10751 #define ENABLE_NLS 1
10752 _ACEOF
10753
10754 else
10755 USE_NLS=no
10756 fi
10757 fi
10758
10759 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10760 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10761 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10762 echo "${ECHO_T}$USE_NLS" >&6; }
10763 if test "$USE_NLS" = "yes"; then
10764 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10765 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10766 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10767 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10768 gt_source="external libintl"
10769 else
10770 gt_source="libc"
10771 fi
10772 else
10773 gt_source="included intl directory"
10774 fi
10775 { echo "$as_me:$LINENO: result: $gt_source" >&5
10776 echo "${ECHO_T}$gt_source" >&6; }
10777 fi
10778
10779 if test "$USE_NLS" = "yes"; then
10780
10781 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10782 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10783 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10784 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10785 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10786 echo "${ECHO_T}$LIBINTL" >&6; }
10787
10788 for element in $INCINTL; do
10789 haveit=
10790 for x in $CPPFLAGS; do
10791
10792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10796 eval x=\"$x\"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
10799
10800 if test "X$x" = "X$element"; then
10801 haveit=yes
10802 break
10803 fi
10804 done
10805 if test -z "$haveit"; then
10806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10807 fi
10808 done
10809
10810 fi
10811
10812
10813 cat >>confdefs.h <<\_ACEOF
10814 #define HAVE_GETTEXT 1
10815 _ACEOF
10816
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_DCGETTEXT 1
10820 _ACEOF
10821
10822 fi
10823
10824 POSUB=po
10825 fi
10826
10827
10828 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10829 BUILD_INCLUDED_LIBINTL=yes
10830 fi
10831
10832
10833
10834
10835
10836 nls_cv_header_intl=
10837 nls_cv_header_libgt=
10838
10839 DATADIRNAME=share
10840
10841
10842 INSTOBJEXT=.mo
10843
10844
10845 GENCAT=gencat
10846
10847
10848 if test "$USE_INCLUDED_LIBINTL" = yes; then
10849 INTLOBJS="\$(GETTOBJS)"
10850 fi
10851
10852
10853 INTL_LIBTOOL_SUFFIX_PREFIX=
10854
10855
10856
10857 INTLLIBS="$LIBINTL"
10858
10859
10860
10861
10862
10863
10864
10865 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10866 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10867 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10868 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 cat >conftest.make <<\_ACEOF
10872 SHELL = /bin/sh
10873 all:
10874 @echo '@@@%%%=$(MAKE)=@@@%%%'
10875 _ACEOF
10876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10877 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10878 *@@@%%%=?*=@@@%%%*)
10879 eval ac_cv_prog_make_${ac_make}_set=yes;;
10880 *)
10881 eval ac_cv_prog_make_${ac_make}_set=no;;
10882 esac
10883 rm -f conftest.make
10884 fi
10885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10886 { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10888 SET_MAKE=
10889 else
10890 { echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6; }
10892 SET_MAKE="MAKE=${MAKE-make}"
10893 fi
10894
10895 # Extract the first word of "ln", so it can be a program name with args.
10896 set dummy ln; ac_word=$2
10897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10899 if test "${ac_cv_path_LN+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 case $LN in
10903 [\\/]* | ?:[\\/]*)
10904 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10905 ;;
10906 *)
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10909 do
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10917 fi
10918 done
10919 done
10920 IFS=$as_save_IFS
10921
10922 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10923 ;;
10924 esac
10925 fi
10926 LN=$ac_cv_path_LN
10927 if test -n "$LN"; then
10928 { echo "$as_me:$LINENO: result: $LN" >&5
10929 echo "${ECHO_T}$LN" >&6; }
10930 else
10931 { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10933 fi
10934
10935
10936 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10938 LN_S=$as_ln_s
10939 if test "$LN_S" = "ln -s"; then
10940 { echo "$as_me:$LINENO: result: yes" >&5
10941 echo "${ECHO_T}yes" >&6; }
10942 else
10943 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10944 echo "${ECHO_T}no, using $LN_S" >&6; }
10945 fi
10946
10947 # Extract the first word of "mv", so it can be a program name with args.
10948 set dummy mv; ac_word=$2
10949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10951 if test "${ac_cv_path_MV+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 case $MV in
10955 [\\/]* | ?:[\\/]*)
10956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10957 ;;
10958 *)
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970 done
10971 done
10972 IFS=$as_save_IFS
10973
10974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10975 ;;
10976 esac
10977 fi
10978 MV=$ac_cv_path_MV
10979 if test -n "$MV"; then
10980 { echo "$as_me:$LINENO: result: $MV" >&5
10981 echo "${ECHO_T}$MV" >&6; }
10982 else
10983 { echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6; }
10985 fi
10986
10987
10988 # Extract the first word of "cp", so it can be a program name with args.
10989 set dummy cp; ac_word=$2
10990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10992 if test "${ac_cv_path_CP+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995 case $CP in
10996 [\\/]* | ?:[\\/]*)
10997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10998 ;;
10999 *)
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011 done
11012 done
11013 IFS=$as_save_IFS
11014
11015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11016 ;;
11017 esac
11018 fi
11019 CP=$ac_cv_path_CP
11020 if test -n "$CP"; then
11021 { echo "$as_me:$LINENO: result: $CP" >&5
11022 echo "${ECHO_T}$CP" >&6; }
11023 else
11024 { echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6; }
11026 fi
11027
11028
11029 # Extract the first word of "rm", so it can be a program name with args.
11030 set dummy rm; ac_word=$2
11031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11033 if test "${ac_cv_path_RM+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036 case $RM in
11037 [\\/]* | ?:[\\/]*)
11038 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11039 ;;
11040 *)
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052 done
11053 done
11054 IFS=$as_save_IFS
11055
11056 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11057 ;;
11058 esac
11059 fi
11060 RM=$ac_cv_path_RM
11061 if test -n "$RM"; then
11062 { echo "$as_me:$LINENO: result: $RM" >&5
11063 echo "${ECHO_T}$RM" >&6; }
11064 else
11065 { echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6; }
11067 fi
11068
11069
11070 # Extract the first word of "chmod", so it can be a program name with args.
11071 set dummy chmod; ac_word=$2
11072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11074 if test "${ac_cv_path_CHMOD+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 case $CHMOD in
11078 [\\/]* | ?:[\\/]*)
11079 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11080 ;;
11081 *)
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093 done
11094 done
11095 IFS=$as_save_IFS
11096
11097 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11098 ;;
11099 esac
11100 fi
11101 CHMOD=$ac_cv_path_CHMOD
11102 if test -n "$CHMOD"; then
11103 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11104 echo "${ECHO_T}$CHMOD" >&6; }
11105 else
11106 { echo "$as_me:$LINENO: result: no" >&5
11107 echo "${ECHO_T}no" >&6; }
11108 fi
11109
11110
11111 for ac_prog in gawk mawk nawk awk
11112 do
11113 # Extract the first word of "$ac_prog", so it can be a program name with args.
11114 set dummy $ac_prog; ac_word=$2
11115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11117 if test "${ac_cv_prog_AWK+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 if test -n "$AWK"; then
11121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_AWK="$ac_prog"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 AWK=$ac_cv_prog_AWK
11141 if test -n "$AWK"; then
11142 { echo "$as_me:$LINENO: result: $AWK" >&5
11143 echo "${ECHO_T}$AWK" >&6; }
11144 else
11145 { echo "$as_me:$LINENO: result: no" >&5
11146 echo "${ECHO_T}no" >&6; }
11147 fi
11148
11149
11150 test -n "$AWK" && break
11151 done
11152
11153 { echo "$as_me:$LINENO: checking for egrep" >&5
11154 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11155 if test "${ac_cv_path_EGREP+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11159 then ac_cv_path_EGREP="$GREP -E"
11160 else
11161 # Extract the first word of "egrep" to use in msg output
11162 if test -z "$EGREP"; then
11163 set dummy egrep; ac_prog_name=$2
11164 if test "${ac_cv_path_EGREP+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 ac_path_EGREP_found=false
11168 # Loop through the user's path and test for each of PROGNAME-LIST
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11171 do
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_prog in egrep; do
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11178 # Check for GNU ac_path_EGREP and select it if it is found.
11179 # Check for GNU $ac_path_EGREP
11180 case `"$ac_path_EGREP" --version 2>&1` in
11181 *GNU*)
11182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11183 *)
11184 ac_count=0
11185 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11186 while :
11187 do
11188 cat "conftest.in" "conftest.in" >"conftest.tmp"
11189 mv "conftest.tmp" "conftest.in"
11190 cp "conftest.in" "conftest.nl"
11191 echo 'EGREP' >> "conftest.nl"
11192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11194 ac_count=`expr $ac_count + 1`
11195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11196 # Best one so far, save it but keep looking for a better one
11197 ac_cv_path_EGREP="$ac_path_EGREP"
11198 ac_path_EGREP_max=$ac_count
11199 fi
11200 # 10*(2^10) chars as input seems more than enough
11201 test $ac_count -gt 10 && break
11202 done
11203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11204 esac
11205
11206
11207 $ac_path_EGREP_found && break 3
11208 done
11209 done
11210
11211 done
11212 IFS=$as_save_IFS
11213
11214
11215 fi
11216
11217 EGREP="$ac_cv_path_EGREP"
11218 if test -z "$EGREP"; then
11219 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11220 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11221 { (exit 1); exit 1; }; }
11222 fi
11223
11224 else
11225 ac_cv_path_EGREP=$EGREP
11226 fi
11227
11228
11229 fi
11230 fi
11231 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11232 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11233 EGREP="$ac_cv_path_EGREP"
11234
11235
11236 # Extract the first word of "sed", so it can be a program name with args.
11237 set dummy sed; ac_word=$2
11238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11240 if test "${ac_cv_path_SED+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 case $SED in
11244 [\\/]* | ?:[\\/]*)
11245 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11246 ;;
11247 *)
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11250 do
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11255 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 break 2
11258 fi
11259 done
11260 done
11261 IFS=$as_save_IFS
11262
11263 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11264 ;;
11265 esac
11266 fi
11267 SED=$ac_cv_path_SED
11268 if test -n "$SED"; then
11269 { echo "$as_me:$LINENO: result: $SED" >&5
11270 echo "${ECHO_T}$SED" >&6; }
11271 else
11272 { echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6; }
11274 fi
11275
11276
11277 # Extract the first word of "perl", so it can be a program name with args.
11278 set dummy perl; ac_word=$2
11279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11281 if test "${ac_cv_path_PERL+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 case $PERL in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11287 ;;
11288 *)
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300 done
11301 done
11302 IFS=$as_save_IFS
11303
11304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11305 ;;
11306 esac
11307 fi
11308 PERL=$ac_cv_path_PERL
11309 if test -n "$PERL"; then
11310 { echo "$as_me:$LINENO: result: $PERL" >&5
11311 echo "${ECHO_T}$PERL" >&6; }
11312 else
11313 { echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6; }
11315 fi
11316
11317
11318 # Extract the first word of "ldconfig", so it can be a program name with args.
11319 set dummy ldconfig; ac_word=$2
11320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11322 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 case $LDCONFIG in
11326 [\\/]* | ?:[\\/]*)
11327 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11328 ;;
11329 *)
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341 done
11342 done
11343 IFS=$as_save_IFS
11344
11345 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11346 ;;
11347 esac
11348 fi
11349 LDCONFIG=$ac_cv_path_LDCONFIG
11350 if test -n "$LDCONFIG"; then
11351 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11352 echo "${ECHO_T}$LDCONFIG" >&6; }
11353 else
11354 { echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6; }
11356 fi
11357
11358
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}ar; ac_word=$2
11362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11364 if test "${ac_cv_prog_AR+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 if test -n "$AR"; then
11368 ac_cv_prog_AR="$AR" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377 ac_cv_prog_AR="${ac_tool_prefix}ar"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 AR=$ac_cv_prog_AR
11388 if test -n "$AR"; then
11389 { echo "$as_me:$LINENO: result: $AR" >&5
11390 echo "${ECHO_T}$AR" >&6; }
11391 else
11392 { echo "$as_me:$LINENO: result: no" >&5
11393 echo "${ECHO_T}no" >&6; }
11394 fi
11395
11396
11397 fi
11398 if test -z "$ac_cv_prog_AR"; then
11399 ac_ct_AR=$AR
11400 # Extract the first word of "ar", so it can be a program name with args.
11401 set dummy ar; ac_word=$2
11402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407 if test -n "$ac_ct_AR"; then
11408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417 ac_cv_prog_ac_ct_AR="ar"
11418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11420 fi
11421 done
11422 done
11423 IFS=$as_save_IFS
11424
11425 fi
11426 fi
11427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428 if test -n "$ac_ct_AR"; then
11429 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430 echo "${ECHO_T}$ac_ct_AR" >&6; }
11431 else
11432 { echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6; }
11434 fi
11435
11436 if test "x$ac_ct_AR" = x; then
11437 AR="ar"
11438 else
11439 case $cross_compiling:$ac_tool_warned in
11440 yes:)
11441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11442 whose name does not start with the host triplet. If you think this
11443 configuration is useful to you, please write to autoconf@gnu.org." >&5
11444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11445 whose name does not start with the host triplet. If you think this
11446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11447 ac_tool_warned=yes ;;
11448 esac
11449 AR=$ac_ct_AR
11450 fi
11451 else
11452 AR="$ac_cv_prog_AR"
11453 fi
11454
11455 if test -n "$ac_tool_prefix"; then
11456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11460 if test "${ac_cv_prog_RANLIB+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 if test -n "$RANLIB"; then
11464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 fi
11482 fi
11483 RANLIB=$ac_cv_prog_RANLIB
11484 if test -n "$RANLIB"; then
11485 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11486 echo "${ECHO_T}$RANLIB" >&6; }
11487 else
11488 { echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6; }
11490 fi
11491
11492
11493 fi
11494 if test -z "$ac_cv_prog_RANLIB"; then
11495 ac_ct_RANLIB=$RANLIB
11496 # Extract the first word of "ranlib", so it can be a program name with args.
11497 set dummy ranlib; ac_word=$2
11498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 if test -n "$ac_ct_RANLIB"; then
11504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_ac_ct_RANLIB="ranlib"
11514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517 done
11518 done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11524 if test -n "$ac_ct_RANLIB"; then
11525 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11527 else
11528 { echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6; }
11530 fi
11531
11532 if test "x$ac_ct_RANLIB" = x; then
11533 RANLIB=":"
11534 else
11535 case $cross_compiling:$ac_tool_warned in
11536 yes:)
11537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11538 whose name does not start with the host triplet. If you think this
11539 configuration is useful to you, please write to autoconf@gnu.org." >&5
11540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11541 whose name does not start with the host triplet. If you think this
11542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11543 ac_tool_warned=yes ;;
11544 esac
11545 RANLIB=$ac_ct_RANLIB
11546 fi
11547 else
11548 RANLIB="$ac_cv_prog_RANLIB"
11549 fi
11550
11551 if test -n "$ac_tool_prefix"; then
11552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11553 set dummy ${ac_tool_prefix}strip; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_prog_STRIP+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 if test -n "$STRIP"; then
11560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573 done
11574 done
11575 IFS=$as_save_IFS
11576
11577 fi
11578 fi
11579 STRIP=$ac_cv_prog_STRIP
11580 if test -n "$STRIP"; then
11581 { echo "$as_me:$LINENO: result: $STRIP" >&5
11582 echo "${ECHO_T}$STRIP" >&6; }
11583 else
11584 { echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6; }
11586 fi
11587
11588
11589 fi
11590 if test -z "$ac_cv_prog_STRIP"; then
11591 ac_ct_STRIP=$STRIP
11592 # Extract the first word of "strip", so it can be a program name with args.
11593 set dummy strip; ac_word=$2
11594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 if test -n "$ac_ct_STRIP"; then
11600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11601 else
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11604 do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_prog_ac_ct_STRIP="strip"
11610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11612 fi
11613 done
11614 done
11615 IFS=$as_save_IFS
11616
11617 fi
11618 fi
11619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11620 if test -n "$ac_ct_STRIP"; then
11621 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11622 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11623 else
11624 { echo "$as_me:$LINENO: result: no" >&5
11625 echo "${ECHO_T}no" >&6; }
11626 fi
11627
11628 if test "x$ac_ct_STRIP" = x; then
11629 STRIP=":"
11630 else
11631 case $cross_compiling:$ac_tool_warned in
11632 yes:)
11633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11634 whose name does not start with the host triplet. If you think this
11635 configuration is useful to you, please write to autoconf@gnu.org." >&5
11636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11637 whose name does not start with the host triplet. If you think this
11638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11639 ac_tool_warned=yes ;;
11640 esac
11641 STRIP=$ac_ct_STRIP
11642 fi
11643 else
11644 STRIP="$ac_cv_prog_STRIP"
11645 fi
11646
11647 # Find a good install program. We prefer a C program (faster),
11648 # so one script is as good as another. But avoid the broken or
11649 # incompatible versions:
11650 # SysV /etc/install, /usr/sbin/install
11651 # SunOS /usr/etc/install
11652 # IRIX /sbin/install
11653 # AIX /bin/install
11654 # AmigaOS /C/install, which installs bootblocks on floppy discs
11655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11658 # OS/2's system install, which has a completely different semantic
11659 # ./install, which can be erroneously created by make from ./install.sh.
11660 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11662 if test -z "$INSTALL"; then
11663 if test "${ac_cv_path_install+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 # Account for people who put trailing slashes in PATH elements.
11672 case $as_dir/ in
11673 ./ | .// | /cC/* | \
11674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11676 /usr/ucb/* ) ;;
11677 *)
11678 # OSF1 and SCO ODT 3.0 have their own names for install.
11679 # Don't use installbsd from OSF since it installs stuff as root
11680 # by default.
11681 for ac_prog in ginstall scoinst install; do
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11684 if test $ac_prog = install &&
11685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11686 # AIX install. It has an incompatible calling convention.
11687 :
11688 elif test $ac_prog = install &&
11689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11690 # program-specific install script used by HP pwplus--don't use.
11691 :
11692 else
11693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11694 break 3
11695 fi
11696 fi
11697 done
11698 done
11699 ;;
11700 esac
11701 done
11702 IFS=$as_save_IFS
11703
11704
11705 fi
11706 if test "${ac_cv_path_install+set}" = set; then
11707 INSTALL=$ac_cv_path_install
11708 else
11709 # As a last resort, use the slow shell script. Don't cache a
11710 # value for INSTALL within a source directory, because that will
11711 # break other packages using the cache if that directory is
11712 # removed, or if the value is a relative name.
11713 INSTALL=$ac_install_sh
11714 fi
11715 fi
11716 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11717 echo "${ECHO_T}$INSTALL" >&6; }
11718
11719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11720 # It thinks the first close brace ends the variable substitution.
11721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11722
11723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11724
11725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11726
11727 # See if we need a separate native compiler.
11728 if test $cross_compiling = no; then
11729 BUILD_CC="$CC"
11730
11731 else
11732 for ac_prog in gcc cc
11733 do
11734 # Extract the first word of "$ac_prog", so it can be a program name with args.
11735 set dummy $ac_prog; ac_word=$2
11736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 if test -n "$BUILD_CC"; then
11742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_BUILD_CC="$ac_prog"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757 IFS=$as_save_IFS
11758
11759 fi
11760 fi
11761 BUILD_CC=$ac_cv_prog_BUILD_CC
11762 if test -n "$BUILD_CC"; then
11763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11764 echo "${ECHO_T}$BUILD_CC" >&6; }
11765 else
11766 { echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6; }
11768 fi
11769
11770
11771 test -n "$BUILD_CC" && break
11772 done
11773
11774 fi
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808 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 sys/syscall.h net/if_dl.h netinet/in.h utime.h
11809 do
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 fi
11817 ac_res=`eval echo '${'$as_ac_Header'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11820 else
11821 # Is the header compilable?
11822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 $ac_includes_default
11831 #include <$ac_header>
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
11850 ac_header_compiler=yes
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_header_compiler=no
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11860 echo "${ECHO_T}$ac_header_compiler" >&6; }
11861
11862 # Is the header present?
11863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <$ac_header>
11872 _ACEOF
11873 if { (ac_try="$ac_cpp conftest.$ac_ext"
11874 case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null && {
11886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 }; then
11889 ac_header_preproc=yes
11890 else
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 ac_header_preproc=no
11895 fi
11896
11897 rm -f conftest.err conftest.$ac_ext
11898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899 echo "${ECHO_T}$ac_header_preproc" >&6; }
11900
11901 # So? What about this header?
11902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11903 yes:no: )
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11909 ;;
11910 no:yes:* )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11923
11924 ;;
11925 esac
11926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931 eval "$as_ac_Header=\$ac_header_preproc"
11932 fi
11933 ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936
11937 fi
11938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11941 _ACEOF
11942
11943 fi
11944
11945 done
11946
11947
11948
11949 for ac_header in sys/disk.h sys/mount.h
11950 do
11951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963
11964 #if HAVE_SYS_QUEUE_H
11965 #include <sys/queue.h>
11966 #endif
11967
11968
11969 #include <$ac_header>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.$ac_objext; then
11988 eval "$as_ac_Header=yes"
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 eval "$as_ac_Header=no"
11994 fi
11995
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998 ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12004 _ACEOF
12005
12006 fi
12007
12008 done
12009
12010
12011 for ac_header in net/if.h
12012 do
12013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019 cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h. */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025
12026 #if HAVE_SYS_TYPES_H
12027 #include <sys/types.h>
12028 #endif
12029 #if HAVE_SYS_SOCKET
12030 #include <sys/socket.h>
12031 #endif
12032
12033
12034 #include <$ac_header>
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
12053 eval "$as_ac_Header=yes"
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 eval "$as_ac_Header=no"
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 fi
12063 ac_res=`eval echo '${'$as_ac_Header'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069 _ACEOF
12070
12071 fi
12072
12073 done
12074
12075
12076 for ac_func in vprintf
12077 do
12078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092 #define $ac_func innocuous_$ac_func
12093
12094 /* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char $ac_func (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12098
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12104
12105 #undef $ac_func
12106
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char $ac_func ();
12114 /* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117 #if defined __stub_$ac_func || defined __stub___$ac_func
12118 choke me
12119 #endif
12120
12121 int
12122 main ()
12123 {
12124 return $ac_func ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (ac_try="$ac_link"
12131 case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_link") 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest$ac_exeext &&
12146 $as_test_x conftest$ac_exeext; then
12147 eval "$as_ac_var=yes"
12148 else
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 eval "$as_ac_var=no"
12153 fi
12154
12155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12156 conftest$ac_exeext conftest.$ac_ext
12157 fi
12158 ac_res=`eval echo '${'$as_ac_var'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12161 if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12164 _ACEOF
12165
12166 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12167 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12168 if test "${ac_cv_func__doprnt+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179 #define _doprnt innocuous__doprnt
12180
12181 /* System header to define __stub macros and hopefully few prototypes,
12182 which can conflict with char _doprnt (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12185
12186 #ifdef __STDC__
12187 # include <limits.h>
12188 #else
12189 # include <assert.h>
12190 #endif
12191
12192 #undef _doprnt
12193
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 char _doprnt ();
12201 /* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204 #if defined __stub__doprnt || defined __stub____doprnt
12205 choke me
12206 #endif
12207
12208 int
12209 main ()
12210 {
12211 return _doprnt ();
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_func__doprnt=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_func__doprnt=no
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244 fi
12245 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12246 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12247 if test $ac_cv_func__doprnt = yes; then
12248
12249 cat >>confdefs.h <<\_ACEOF
12250 #define HAVE_DOPRNT 1
12251 _ACEOF
12252
12253 fi
12254
12255 fi
12256 done
12257
12258
12259 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12260 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12261 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 #include <dirent.h>
12271
12272 int
12273 main ()
12274 {
12275 static struct dirent ac_aggr;
12276 if (ac_aggr.d_reclen)
12277 return 0;
12278 ;
12279 return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
12299 ac_cv_member_struct_dirent_d_reclen=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 #include <dirent.h>
12311
12312 int
12313 main ()
12314 {
12315 static struct dirent ac_aggr;
12316 if (sizeof ac_aggr.d_reclen)
12317 return 0;
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_member_struct_dirent_d_reclen=yes
12340 else
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_cv_member_struct_dirent_d_reclen=no
12345 fi
12346
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12353 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12354 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12355 cat >>confdefs.h <<\_ACEOF
12356 #define HAVE_RECLEN_DIRENT 1
12357 _ACEOF
12358
12359 fi
12360
12361 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12362 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12363 if test "${ac_cv_type_ssize_t+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <sys/types.h>
12373
12374 typedef ssize_t ac__type_new_;
12375 int
12376 main ()
12377 {
12378 if ((ac__type_new_ *) 0)
12379 return 0;
12380 if (sizeof (ac__type_new_))
12381 return 0;
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_compile") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest.$ac_objext; then
12403 ac_cv_type_ssize_t=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_cv_type_ssize_t=no
12409 fi
12410
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12414 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12415 if test $ac_cv_type_ssize_t = yes; then
12416 cat >>confdefs.h <<\_ACEOF
12417 #define HAVE_TYPE_SSIZE_T 1
12418 _ACEOF
12419
12420 fi
12421
12422 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12423 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12424 if test "${ac_cv_have_decl_llseek+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h. */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 #include <unistd.h>
12434
12435 int
12436 main ()
12437 {
12438 #ifndef llseek
12439 (void) llseek;
12440 #endif
12441
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext
12447 if { (ac_try="$ac_compile"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_compile") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest.$ac_objext; then
12463 ac_cv_have_decl_llseek=yes
12464 else
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 ac_cv_have_decl_llseek=no
12469 fi
12470
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 fi
12473 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12474 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12475 if test $ac_cv_have_decl_llseek = yes; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_LLSEEK_PROTOTYPE 1
12478 _ACEOF
12479
12480 fi
12481
12482 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12483 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12484 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 #define _LARGEFILE_SOURCE
12494 #define _LARGEFILE64_SOURCE
12495 #include <unistd.h>
12496
12497 int
12498 main ()
12499 {
12500 #ifndef lseek64
12501 (void) lseek64;
12502 #endif
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (ac_try="$ac_compile"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.$ac_objext; then
12525 ac_cv_have_decl_lseek64=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_cv_have_decl_lseek64=no
12531 fi
12532
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 fi
12535 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12536 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12537 if test $ac_cv_have_decl_lseek64 = yes; then
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_LSEEK64_PROTOTYPE 1
12540 _ACEOF
12541
12542 fi
12543
12544 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12545 # if cross-compiling, with no cached values, just assume something common.
12546 ac_cv_sizeof_short=2
12547 ac_cv_sizeof_int=4
12548 ac_cv_sizeof_long=4
12549 ac_cv_sizeof_long_long=8
12550 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12551 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12552 fi
12553 { echo "$as_me:$LINENO: checking for short" >&5
12554 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12555 if test "${ac_cv_type_short+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 $ac_includes_default
12565 typedef short ac__type_new_;
12566 int
12567 main ()
12568 {
12569 if ((ac__type_new_ *) 0)
12570 return 0;
12571 if (sizeof (ac__type_new_))
12572 return 0;
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compile") 2>conftest.er1
12585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } && {
12591 test -z "$ac_c_werror_flag" ||
12592 test ! -s conftest.err
12593 } && test -s conftest.$ac_objext; then
12594 ac_cv_type_short=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_cv_type_short=no
12600 fi
12601
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 fi
12604 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12605 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12606
12607 # The cast to long int works around a bug in the HP C Compiler
12608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12610 # This bug is HP SR number 8606223364.
12611 { echo "$as_me:$LINENO: checking size of short" >&5
12612 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12613 if test "${ac_cv_sizeof_short+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616 if test "$cross_compiling" = yes; then
12617 # Depending upon the size, compute the lo and hi bounds.
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12625 typedef short ac__type_sizeof_;
12626 int
12627 main ()
12628 {
12629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12630 test_array [0] = 0
12631
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (ac_try="$ac_compile"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
12653 ac_lo=0 ac_mid=0
12654 while :; do
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 short ac__type_sizeof_;
12663 int
12664 main ()
12665 {
12666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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_hi=$ac_mid; break
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_lo=`expr $ac_mid + 1`
12696 if test $ac_lo -le $ac_mid; then
12697 ac_lo= ac_hi=
12698 break
12699 fi
12700 ac_mid=`expr 2 '*' $ac_mid + 1`
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 done
12705 else
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h. */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 $ac_includes_default
12716 typedef short ac__type_sizeof_;
12717 int
12718 main ()
12719 {
12720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12721 test_array [0] = 0
12722
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.$ac_objext; then
12744 ac_hi=-1 ac_mid=-1
12745 while :; do
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 short ac__type_sizeof_;
12754 int
12755 main ()
12756 {
12757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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_lo=$ac_mid; break
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12785
12786 ac_hi=`expr '(' $ac_mid ')' - 1`
12787 if test $ac_mid -le $ac_hi; then
12788 ac_lo= ac_hi=
12789 break
12790 fi
12791 ac_mid=`expr 2 '*' $ac_mid`
12792 fi
12793
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 done
12796 else
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 ac_lo= ac_hi=
12801 fi
12802
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 fi
12805
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 # Binary search between lo and hi bounds.
12808 while test "x$ac_lo" != "x$ac_hi"; do
12809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12817 typedef short ac__type_sizeof_;
12818 int
12819 main ()
12820 {
12821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12822 test_array [0] = 0
12823
12824 ;
12825 return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (ac_try="$ac_compile"
12830 case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.$ac_objext; then
12845 ac_hi=$ac_mid
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12849
12850 ac_lo=`expr '(' $ac_mid ')' + 1`
12851 fi
12852
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 done
12855 case $ac_lo in
12856 ?*) ac_cv_sizeof_short=$ac_lo;;
12857 '') if test "$ac_cv_type_short" = yes; then
12858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12859 See \`config.log' for more details." >&5
12860 echo "$as_me: error: cannot compute sizeof (short)
12861 See \`config.log' for more details." >&2;}
12862 { (exit 77); exit 77; }; }
12863 else
12864 ac_cv_sizeof_short=0
12865 fi ;;
12866 esac
12867 else
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 $ac_includes_default
12875 typedef short ac__type_sizeof_;
12876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12878 #include <stdio.h>
12879 #include <stdlib.h>
12880 int
12881 main ()
12882 {
12883
12884 FILE *f = fopen ("conftest.val", "w");
12885 if (! f)
12886 return 1;
12887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12888 {
12889 long int i = longval ();
12890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12891 return 1;
12892 fprintf (f, "%ld\n", i);
12893 }
12894 else
12895 {
12896 unsigned long int i = ulongval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898 return 1;
12899 fprintf (f, "%lu\n", i);
12900 }
12901 return ferror (f) || fclose (f) != 0;
12902
12903 ;
12904 return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12918 { (case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_cv_sizeof_short=`cat conftest.val`
12928 else
12929 echo "$as_me: program exited with status $ac_status" >&5
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ( exit $ac_status )
12934 if test "$ac_cv_type_short" = yes; then
12935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12936 See \`config.log' for more details." >&5
12937 echo "$as_me: error: cannot compute sizeof (short)
12938 See \`config.log' for more details." >&2;}
12939 { (exit 77); exit 77; }; }
12940 else
12941 ac_cv_sizeof_short=0
12942 fi
12943 fi
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12945 fi
12946 rm -f conftest.val
12947 fi
12948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12949 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12950
12951
12952
12953 cat >>confdefs.h <<_ACEOF
12954 #define SIZEOF_SHORT $ac_cv_sizeof_short
12955 _ACEOF
12956
12957
12958 { echo "$as_me:$LINENO: checking for int" >&5
12959 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12960 if test "${ac_cv_type_int+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 typedef int ac__type_new_;
12971 int
12972 main ()
12973 {
12974 if ((ac__type_new_ *) 0)
12975 return 0;
12976 if (sizeof (ac__type_new_))
12977 return 0;
12978 ;
12979 return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_compile") 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest.$ac_objext; then
12999 ac_cv_type_int=yes
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 ac_cv_type_int=no
13005 fi
13006
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13010 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13011
13012 # The cast to long int works around a bug in the HP C Compiler
13013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13015 # This bug is HP SR number 8606223364.
13016 { echo "$as_me:$LINENO: checking size of int" >&5
13017 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13018 if test "${ac_cv_sizeof_int+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 else
13021 if test "$cross_compiling" = yes; then
13022 # Depending upon the size, compute the lo and hi bounds.
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 typedef int ac__type_sizeof_;
13031 int
13032 main ()
13033 {
13034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13035 test_array [0] = 0
13036
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
13058 ac_lo=0 ac_mid=0
13059 while :; do
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 int ac__type_sizeof_;
13068 int
13069 main ()
13070 {
13071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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_hi=$ac_mid; break
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 ac_lo=`expr $ac_mid + 1`
13101 if test $ac_lo -le $ac_mid; then
13102 ac_lo= ac_hi=
13103 break
13104 fi
13105 ac_mid=`expr 2 '*' $ac_mid + 1`
13106 fi
13107
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 done
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13121 typedef int ac__type_sizeof_;
13122 int
13123 main ()
13124 {
13125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13126 test_array [0] = 0
13127
13128 ;
13129 return 0;
13130 }
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_compile") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
13149 ac_hi=-1 ac_mid=-1
13150 while :; do
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 int ac__type_sizeof_;
13159 int
13160 main ()
13161 {
13162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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_lo=$ac_mid; break
13187 else
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_hi=`expr '(' $ac_mid ')' - 1`
13192 if test $ac_mid -le $ac_hi; then
13193 ac_lo= ac_hi=
13194 break
13195 fi
13196 ac_mid=`expr 2 '*' $ac_mid`
13197 fi
13198
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 done
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_lo= ac_hi=
13206 fi
13207
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 fi
13210
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 # Binary search between lo and hi bounds.
13213 while test "x$ac_lo" != "x$ac_hi"; do
13214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13222 typedef int ac__type_sizeof_;
13223 int
13224 main ()
13225 {
13226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13227 test_array [0] = 0
13228
13229 ;
13230 return 0;
13231 }
13232 _ACEOF
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest.$ac_objext; then
13250 ac_hi=$ac_mid
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_lo=`expr '(' $ac_mid ')' + 1`
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 done
13260 case $ac_lo in
13261 ?*) ac_cv_sizeof_int=$ac_lo;;
13262 '') if test "$ac_cv_type_int" = yes; then
13263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13264 See \`config.log' for more details." >&5
13265 echo "$as_me: error: cannot compute sizeof (int)
13266 See \`config.log' for more details." >&2;}
13267 { (exit 77); exit 77; }; }
13268 else
13269 ac_cv_sizeof_int=0
13270 fi ;;
13271 esac
13272 else
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 $ac_includes_default
13280 typedef int ac__type_sizeof_;
13281 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13282 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13283 #include <stdio.h>
13284 #include <stdlib.h>
13285 int
13286 main ()
13287 {
13288
13289 FILE *f = fopen ("conftest.val", "w");
13290 if (! f)
13291 return 1;
13292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13293 {
13294 long int i = longval ();
13295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13296 return 1;
13297 fprintf (f, "%ld\n", i);
13298 }
13299 else
13300 {
13301 unsigned long int i = ulongval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13303 return 1;
13304 fprintf (f, "%lu\n", i);
13305 }
13306 return ferror (f) || fclose (f) != 0;
13307
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_sizeof_int=`cat conftest.val`
13333 else
13334 echo "$as_me: program exited with status $ac_status" >&5
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 ( exit $ac_status )
13339 if test "$ac_cv_type_int" = yes; then
13340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13341 See \`config.log' for more details." >&5
13342 echo "$as_me: error: cannot compute sizeof (int)
13343 See \`config.log' for more details." >&2;}
13344 { (exit 77); exit 77; }; }
13345 else
13346 ac_cv_sizeof_int=0
13347 fi
13348 fi
13349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13350 fi
13351 rm -f conftest.val
13352 fi
13353 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13354 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13355
13356
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define SIZEOF_INT $ac_cv_sizeof_int
13360 _ACEOF
13361
13362
13363 { echo "$as_me:$LINENO: checking for long" >&5
13364 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13365 if test "${ac_cv_type_long+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 typedef long ac__type_new_;
13376 int
13377 main ()
13378 {
13379 if ((ac__type_new_ *) 0)
13380 return 0;
13381 if (sizeof (ac__type_new_))
13382 return 0;
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.$ac_objext; then
13404 ac_cv_type_long=yes
13405 else
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409 ac_cv_type_long=no
13410 fi
13411
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13415 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13416
13417 # The cast to long int works around a bug in the HP C Compiler
13418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13420 # This bug is HP SR number 8606223364.
13421 { echo "$as_me:$LINENO: checking size of long" >&5
13422 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13423 if test "${ac_cv_sizeof_long+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 if test "$cross_compiling" = yes; then
13427 # Depending upon the size, compute the lo and hi bounds.
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 $ac_includes_default
13435 typedef long ac__type_sizeof_;
13436 int
13437 main ()
13438 {
13439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13440 test_array [0] = 0
13441
13442 ;
13443 return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (ac_try="$ac_compile"
13448 case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_compile") 2>conftest.er1
13454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } && {
13460 test -z "$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 } && test -s conftest.$ac_objext; then
13463 ac_lo=0 ac_mid=0
13464 while :; do
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 ac__type_sizeof_;
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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_hi=$ac_mid; break
13501 else
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 ac_lo=`expr $ac_mid + 1`
13506 if test $ac_lo -le $ac_mid; then
13507 ac_lo= ac_hi=
13508 break
13509 fi
13510 ac_mid=`expr 2 '*' $ac_mid + 1`
13511 fi
13512
13513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 done
13515 else
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13526 typedef long ac__type_sizeof_;
13527 int
13528 main ()
13529 {
13530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13531 test_array [0] = 0
13532
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 rm -f conftest.$ac_objext
13538 if { (ac_try="$ac_compile"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_compile") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && {
13551 test -z "$ac_c_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest.$ac_objext; then
13554 ac_hi=-1 ac_mid=-1
13555 while :; do
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 ac__type_sizeof_;
13564 int
13565 main ()
13566 {
13567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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_lo=$ac_mid; break
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_hi=`expr '(' $ac_mid ')' - 1`
13597 if test $ac_mid -le $ac_hi; then
13598 ac_lo= ac_hi=
13599 break
13600 fi
13601 ac_mid=`expr 2 '*' $ac_mid`
13602 fi
13603
13604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 done
13606 else
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 ac_lo= ac_hi=
13611 fi
13612
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 fi
13615
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617 # Binary search between lo and hi bounds.
13618 while test "x$ac_lo" != "x$ac_hi"; do
13619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13627 typedef long ac__type_sizeof_;
13628 int
13629 main ()
13630 {
13631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13632 test_array [0] = 0
13633
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (ac_try="$ac_compile"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compile") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest.$ac_objext; then
13655 ac_hi=$ac_mid
13656 else
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 ac_lo=`expr '(' $ac_mid ')' + 1`
13661 fi
13662
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 done
13665 case $ac_lo in
13666 ?*) ac_cv_sizeof_long=$ac_lo;;
13667 '') if test "$ac_cv_type_long" = yes; then
13668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13669 See \`config.log' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (long)
13671 See \`config.log' for more details." >&2;}
13672 { (exit 77); exit 77; }; }
13673 else
13674 ac_cv_sizeof_long=0
13675 fi ;;
13676 esac
13677 else
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 typedef long ac__type_sizeof_;
13686 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13687 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13688 #include <stdio.h>
13689 #include <stdlib.h>
13690 int
13691 main ()
13692 {
13693
13694 FILE *f = fopen ("conftest.val", "w");
13695 if (! f)
13696 return 1;
13697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13698 {
13699 long int i = longval ();
13700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13701 return 1;
13702 fprintf (f, "%ld\n", i);
13703 }
13704 else
13705 {
13706 unsigned long int i = ulongval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13708 return 1;
13709 fprintf (f, "%lu\n", i);
13710 }
13711 return ferror (f) || fclose (f) != 0;
13712
13713 ;
13714 return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_sizeof_long=`cat conftest.val`
13738 else
13739 echo "$as_me: program exited with status $ac_status" >&5
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 ( exit $ac_status )
13744 if test "$ac_cv_type_long" = yes; then
13745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13746 See \`config.log' for more details." >&5
13747 echo "$as_me: error: cannot compute sizeof (long)
13748 See \`config.log' for more details." >&2;}
13749 { (exit 77); exit 77; }; }
13750 else
13751 ac_cv_sizeof_long=0
13752 fi
13753 fi
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 rm -f conftest.val
13757 fi
13758 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13759 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13760
13761
13762
13763 cat >>confdefs.h <<_ACEOF
13764 #define SIZEOF_LONG $ac_cv_sizeof_long
13765 _ACEOF
13766
13767
13768 { echo "$as_me:$LINENO: checking for long long" >&5
13769 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13770 if test "${ac_cv_type_long_long+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 $ac_includes_default
13780 typedef long long ac__type_new_;
13781 int
13782 main ()
13783 {
13784 if ((ac__type_new_ *) 0)
13785 return 0;
13786 if (sizeof (ac__type_new_))
13787 return 0;
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (ac_try="$ac_compile"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_compile") 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && {
13806 test -z "$ac_c_werror_flag" ||
13807 test ! -s conftest.err
13808 } && test -s conftest.$ac_objext; then
13809 ac_cv_type_long_long=yes
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_cv_type_long_long=no
13815 fi
13816
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13820 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13821
13822 # The cast to long int works around a bug in the HP C Compiler
13823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825 # This bug is HP SR number 8606223364.
13826 { echo "$as_me:$LINENO: checking size of long long" >&5
13827 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13828 if test "${ac_cv_sizeof_long_long+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 if test "$cross_compiling" = yes; then
13832 # Depending upon the size, compute the lo and hi bounds.
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13840 typedef long long ac__type_sizeof_;
13841 int
13842 main ()
13843 {
13844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13845 test_array [0] = 0
13846
13847 ;
13848 return 0;
13849 }
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (ac_try="$ac_compile"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_compile") 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
13868 ac_lo=0 ac_mid=0
13869 while :; do
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 typedef long long ac__type_sizeof_;
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13882 test_array [0] = 0
13883
13884 ;
13885 return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (ac_try="$ac_compile"
13890 case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_compile") 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && {
13902 test -z "$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13904 } && test -s conftest.$ac_objext; then
13905 ac_hi=$ac_mid; break
13906 else
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 ac_lo=`expr $ac_mid + 1`
13911 if test $ac_lo -le $ac_mid; then
13912 ac_lo= ac_hi=
13913 break
13914 fi
13915 ac_mid=`expr 2 '*' $ac_mid + 1`
13916 fi
13917
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 done
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 typedef long long ac__type_sizeof_;
13932 int
13933 main ()
13934 {
13935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13936 test_array [0] = 0
13937
13938 ;
13939 return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13959 ac_hi=-1 ac_mid=-1
13960 while :; do
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 $ac_includes_default
13968 typedef long long ac__type_sizeof_;
13969 int
13970 main ()
13971 {
13972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13973 test_array [0] = 0
13974
13975 ;
13976 return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.$ac_objext; then
13996 ac_lo=$ac_mid; break
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 ac_hi=`expr '(' $ac_mid ')' - 1`
14002 if test $ac_mid -le $ac_hi; then
14003 ac_lo= ac_hi=
14004 break
14005 fi
14006 ac_mid=`expr 2 '*' $ac_mid`
14007 fi
14008
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 done
14011 else
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 ac_lo= ac_hi=
14016 fi
14017
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 fi
14020
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022 # Binary search between lo and hi bounds.
14023 while test "x$ac_lo" != "x$ac_hi"; do
14024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14025 cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h. */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 $ac_includes_default
14032 typedef long long ac__type_sizeof_;
14033 int
14034 main ()
14035 {
14036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14037 test_array [0] = 0
14038
14039 ;
14040 return 0;
14041 }
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (ac_try="$ac_compile"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_compile") 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest.$ac_objext; then
14060 ac_hi=$ac_mid
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 ac_lo=`expr '(' $ac_mid ')' + 1`
14066 fi
14067
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 done
14070 case $ac_lo in
14071 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14072 '') if test "$ac_cv_type_long_long" = yes; then
14073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14074 See \`config.log' for more details." >&5
14075 echo "$as_me: error: cannot compute sizeof (long long)
14076 See \`config.log' for more details." >&2;}
14077 { (exit 77); exit 77; }; }
14078 else
14079 ac_cv_sizeof_long_long=0
14080 fi ;;
14081 esac
14082 else
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 $ac_includes_default
14090 typedef long long ac__type_sizeof_;
14091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14093 #include <stdio.h>
14094 #include <stdlib.h>
14095 int
14096 main ()
14097 {
14098
14099 FILE *f = fopen ("conftest.val", "w");
14100 if (! f)
14101 return 1;
14102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14103 {
14104 long int i = longval ();
14105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14106 return 1;
14107 fprintf (f, "%ld\n", i);
14108 }
14109 else
14110 {
14111 unsigned long int i = ulongval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14113 return 1;
14114 fprintf (f, "%lu\n", i);
14115 }
14116 return ferror (f) || fclose (f) != 0;
14117
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 rm -f conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_sizeof_long_long=`cat conftest.val`
14143 else
14144 echo "$as_me: program exited with status $ac_status" >&5
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148 ( exit $ac_status )
14149 if test "$ac_cv_type_long_long" = yes; then
14150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14151 See \`config.log' for more details." >&5
14152 echo "$as_me: error: cannot compute sizeof (long long)
14153 See \`config.log' for more details." >&2;}
14154 { (exit 77); exit 77; }; }
14155 else
14156 ac_cv_sizeof_long_long=0
14157 fi
14158 fi
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14160 fi
14161 rm -f conftest.val
14162 fi
14163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14164 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14165
14166
14167
14168 cat >>confdefs.h <<_ACEOF
14169 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14170 _ACEOF
14171
14172
14173 SIZEOF_SHORT=$ac_cv_sizeof_short
14174 SIZEOF_INT=$ac_cv_sizeof_int
14175 SIZEOF_LONG=$ac_cv_sizeof_long
14176 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14177
14178
14179
14180
14181 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14182 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14183 if test "${ac_cv_c_bigendian+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186 # See if sys/param.h defines the BYTE_ORDER macro.
14187 cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h. */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #include <sys/param.h>
14195
14196 int
14197 main ()
14198 {
14199 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14200 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14201 bogus endian macros
14202 #endif
14203
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213 esac
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } && {
14222 test -z "$ac_c_werror_flag" ||
14223 test ! -s conftest.err
14224 } && test -s conftest.$ac_objext; then
14225 # It does; now see whether it defined to BIG_ENDIAN or not.
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <sys/types.h>
14233 #include <sys/param.h>
14234
14235 int
14236 main ()
14237 {
14238 #if BYTE_ORDER != BIG_ENDIAN
14239 not big endian
14240 #endif
14241
14242 ;
14243 return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251 esac
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
14254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && {
14260 test -z "$ac_c_werror_flag" ||
14261 test ! -s conftest.err
14262 } && test -s conftest.$ac_objext; then
14263 ac_cv_c_bigendian=yes
14264 else
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14267
14268 ac_cv_c_bigendian=no
14269 fi
14270
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 # It does not; compile a test program.
14277 if test "$cross_compiling" = yes; then
14278 # try to guess the endianness by grepping values into an object file
14279 ac_cv_c_bigendian=unknown
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14287 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14288 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14289 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14290 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14291 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14292 int
14293 main ()
14294 {
14295 _ascii (); _ebcdic ();
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.$ac_objext; then
14317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14318 ac_cv_c_bigendian=yes
14319 fi
14320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14321 if test "$ac_cv_c_bigendian" = unknown; then
14322 ac_cv_c_bigendian=no
14323 else
14324 # finding both strings is unlikely to happen, but who knows?
14325 ac_cv_c_bigendian=unknown
14326 fi
14327 fi
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332
14333 fi
14334
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 else
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14344 int
14345 main ()
14346 {
14347
14348 /* Are we little or big endian? From Harbison&Steele. */
14349 union
14350 {
14351 long int l;
14352 char c[sizeof (long int)];
14353 } u;
14354 u.l = 1;
14355 return u.c[sizeof (long int) - 1] == 1;
14356
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 rm -f conftest$ac_exeext
14362 if { (ac_try="$ac_link"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_link") 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14372 { (case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_try") 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_c_bigendian=no
14382 else
14383 echo "$as_me: program exited with status $ac_status" >&5
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ( exit $ac_status )
14388 ac_cv_c_bigendian=yes
14389 fi
14390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14391 fi
14392
14393
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14400 case $ac_cv_c_bigendian in
14401 yes)
14402
14403 cat >>confdefs.h <<\_ACEOF
14404 #define WORDS_BIGENDIAN 1
14405 _ACEOF
14406 ;;
14407 no)
14408 ;;
14409 *)
14410 { { echo "$as_me:$LINENO: error: unknown endianness
14411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14412 echo "$as_me: error: unknown endianness
14413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14414 { (exit 1); exit 1; }; } ;;
14415 esac
14416
14417 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14418 ASM_TYPES_HEADER=./asm_types.h
14419
14420
14421 for ac_header in inttypes.h
14422 do
14423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 fi
14430 ac_res=`eval echo '${'$as_ac_Header'}'`
14431 { echo "$as_me:$LINENO: result: $ac_res" >&5
14432 echo "${ECHO_T}$ac_res" >&6; }
14433 else
14434 # Is the header compilable?
14435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h. */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 $ac_includes_default
14444 #include <$ac_header>
14445 _ACEOF
14446 rm -f conftest.$ac_objext
14447 if { (ac_try="$ac_compile"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_compile") 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } && {
14460 test -z "$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 } && test -s conftest.$ac_objext; then
14463 ac_header_compiler=yes
14464 else
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_compiler=no
14469 fi
14470
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473 echo "${ECHO_T}$ac_header_compiler" >&6; }
14474
14475 # Is the header present?
14476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 #include <$ac_header>
14485 _ACEOF
14486 if { (ac_try="$ac_cpp conftest.$ac_ext"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } >/dev/null && {
14499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 }; then
14502 ac_header_preproc=yes
14503 else
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_header_preproc=no
14508 fi
14509
14510 rm -f conftest.err conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14512 echo "${ECHO_T}$ac_header_preproc" >&6; }
14513
14514 # So? What about this header?
14515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14516 yes:no: )
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14521 ac_header_preproc=yes
14522 ;;
14523 no:yes:* )
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14536
14537 ;;
14538 esac
14539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544 eval "$as_ac_Header=\$ac_header_preproc"
14545 fi
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14549
14550 fi
14551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14554 _ACEOF
14555
14556 fi
14557
14558 done
14559
14560 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14561 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14562 if test "${ac_cv_type_intptr_t+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 $ac_includes_default
14572 typedef intptr_t ac__type_new_;
14573 int
14574 main ()
14575 {
14576 if ((ac__type_new_ *) 0)
14577 return 0;
14578 if (sizeof (ac__type_new_))
14579 return 0;
14580 ;
14581 return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
14601 ac_cv_type_intptr_t=yes
14602 else
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606 ac_cv_type_intptr_t=no
14607 fi
14608
14609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14610 fi
14611 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14612 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14613 if test $ac_cv_type_intptr_t = yes; then
14614
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_INTPTR_T 1
14617 _ACEOF
14618
14619
14620 fi
14621
14622 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14623 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14624 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <sys/stat.h>
14634 int
14635 main ()
14636 {
14637 struct stat stat; stat.st_flags = 0;
14638 ;
14639 return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
14659 e2fsprogs_cv_struct_st_flags=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 e2fsprogs_cv_struct_st_flags=no
14665 fi
14666
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 fi
14669
14670 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14671 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14672 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14673 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14674 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14675 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/stat.h>
14685 int
14686 main ()
14687 {
14688 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14689 ;
14690 return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
14710 e2fsprogs_cv_struct_st_flags_immut=yes
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 e2fsprogs_cv_struct_st_flags_immut=no
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 fi
14720
14721 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14722 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14723 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_STAT_FLAGS 1
14726 _ACEOF
14727
14728 fi
14729 fi
14730 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14731 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14732 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <sys/types.h>
14742 #include <sys/socket.h>
14743
14744 int
14745 main ()
14746 {
14747 static struct sockaddr ac_aggr;
14748 if (ac_aggr.sa_len)
14749 return 0;
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.$ac_objext; then
14771 ac_cv_member_struct_sockaddr_sa_len=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <sys/types.h>
14783 #include <sys/socket.h>
14784
14785 int
14786 main ()
14787 {
14788 static struct sockaddr ac_aggr;
14789 if (sizeof ac_aggr.sa_len)
14790 return 0;
14791 ;
14792 return 0;
14793 }
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800 esac
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_compile") 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest.$ac_objext; then
14812 ac_cv_member_struct_sockaddr_sa_len=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_cv_member_struct_sockaddr_sa_len=no
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821 fi
14822
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14826 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14827 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14828
14829 cat >>confdefs.h <<_ACEOF
14830 #define HAVE_SA_LEN 1
14831 _ACEOF
14832
14833 fi
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863 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 setresuid setresgid
14864 do
14865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14880
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14885
14886 #ifdef __STDC__
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14891
14892 #undef $ac_func
14893
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char $ac_func ();
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_$ac_func || defined __stub___$ac_func
14905 choke me
14906 #endif
14907
14908 int
14909 main ()
14910 {
14911 return $ac_func ();
14912 ;
14913 return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 eval "$as_ac_var=yes"
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 eval "$as_ac_var=no"
14940 fi
14941
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14944 fi
14945 ac_res=`eval echo '${'$as_ac_var'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_var'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14951 _ACEOF
14952
14953 fi
14954 done
14955
14956 SOCKET_LIB=''
14957 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14958 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14959 if test "${ac_cv_lib_socket_socket+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 ac_check_lib_save_LIBS=$LIBS
14963 LIBS="-lsocket $LIBS"
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970
14971 /* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
14974 #ifdef __cplusplus
14975 extern "C"
14976 #endif
14977 char socket ();
14978 int
14979 main ()
14980 {
14981 return socket ();
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (ac_try="$ac_link"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
15004 ac_cv_lib_socket_socket=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15008
15009 ac_cv_lib_socket_socket=no
15010 fi
15011
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15015 fi
15016 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15017 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15018 if test $ac_cv_lib_socket_socket = yes; then
15019 SOCKET_LIB=-lsocket
15020 fi
15021
15022
15023 DLOPEN_LIB=''
15024 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 ac_check_lib_save_LIBS=$LIBS
15030 LIBS="-ldl $LIBS"
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037
15038 /* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
15041 #ifdef __cplusplus
15042 extern "C"
15043 #endif
15044 char dlopen ();
15045 int
15046 main ()
15047 {
15048 return dlopen ();
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071 ac_cv_lib_dl_dlopen=yes
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_cv_lib_dl_dlopen=no
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS
15082 fi
15083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15085 if test $ac_cv_lib_dl_dlopen = yes; then
15086 DLOPEN_LIB=-ldl
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_DLOPEN 1
15089 _ACEOF
15090
15091 fi
15092
15093
15094 { echo "$as_me:$LINENO: checking for optreset" >&5
15095 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15096 if test "${ac_cv_have_optreset+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h. */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 #include <unistd.h>
15106
15107 _ACEOF
15108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15109 $EGREP "optreset" >/dev/null 2>&1; then
15110 ac_cv_have_optreset=yes
15111 else
15112 ac_cv_have_optreset=no
15113 fi
15114 rm -f conftest*
15115
15116 fi
15117 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15118 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15119 if test $ac_cv_have_optreset = yes; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAVE_OPTRESET 1
15122 _ACEOF
15123
15124 fi
15125 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15126 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15127 if diff -u $0 $0 >& /dev/null ; then
15128 UNI_DIFF_OPTS=-u
15129 else
15130 UNI_DIFF_OPTS=-c
15131 fi
15132 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15133 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15134
15135 case "$host_os" in
15136 linux*)
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_EXT2_IOCTLS 1
15139 _ACEOF
15140
15141 ;;
15142 esac
15143 LINUX_CMT="#"
15144 CYGWIN_CMT="#"
15145 UNIX_CMT=
15146 case "$host_os" in
15147 linux*)
15148 LINUX_CMT=
15149 ;;
15150 cygwin)
15151 CYGWIN_CMT=
15152 UNIX_CMT="#"
15153 ;;
15154 esac
15155
15156
15157
15158 case "$host_os" in
15159 linux* | gnu* | k*bsd*-gnu)
15160 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15161 root_prefix="";
15162 echo "On $host_os systems, root_prefix defaults to ''"
15163 fi
15164 ;;
15165 esac
15166 case "$host_os" in
15167 linux* | gnu* | k*bsd*-gnu)
15168 if test "$prefix" = NONE ; then
15169 prefix="/usr";
15170 echo "On $host_os systems, prefix defaults to /usr"
15171 if test "$mandir" = '${prefix}/man' ; then
15172 echo "...and mandir defaults to /usr/share/man"
15173 mandir=/usr/share/man
15174 fi
15175 fi
15176 ;;
15177 esac
15178 if test "$root_prefix" = NONE ; then
15179 if test "$prefix" = NONE ; then
15180 root_prefix="$ac_default_prefix"
15181 else
15182 root_prefix="$prefix"
15183 fi
15184 root_bindir=$bindir
15185 root_sbindir=$sbindir
15186 root_libdir=$libdir
15187 root_sysconfdir=$sysconfdir
15188 else
15189 root_bindir='${root_prefix}/bin'
15190 root_sbindir='${root_prefix}/sbin'
15191 root_libdir='${root_prefix}/lib'
15192 root_sysconfdir='${root_prefix}/etc'
15193 fi
15194
15195
15196
15197
15198
15199 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15200 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15201 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 #include <stdio.h>
15212 int
15213 main ()
15214 {
15215 fflush(stdout);
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_link") 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest$ac_exeext &&
15237 $as_test_x conftest$ac_exeext; then
15238 ac_cv_e2fsprogs_use_static=yes
15239 else
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_cv_e2fsprogs_use_static=no
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15247 conftest$ac_exeext conftest.$ac_ext
15248 LDFLAGS=$SAVE_LDFLAGS
15249 fi
15250
15251 case "$host_os" in
15252 solaris2.*)
15253 ac_cv_e2fsprogs_use_static=no
15254 ;;
15255 esac
15256 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15257 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15258 LDFLAG_STATIC=
15259 if test $ac_cv_e2fsprogs_use_static = yes; then
15260 LDFLAG_STATIC=-static
15261 fi
15262
15263 case "$host_os" in
15264 darwin*)
15265 echo "Using Apple Darwin / GNU libintl workaround"
15266 cat >>confdefs.h <<\_ACEOF
15267 #define _INTL_REDIRECT_MACROS 1
15268 _ACEOF
15269
15270 ;;
15271 esac
15272 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15273 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15274
15275
15276 if test "$cross_compiling" = yes ; then
15277 DO_TEST_SUITE=
15278 else
15279 DO_TEST_SUITE=check
15280 fi
15281
15282 INTL_FLAGS=
15283 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15284 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15285 fi
15286
15287 if test $cross_compiling = no; then
15288 BUILD_CFLAGS="$CFLAGS"
15289 BUILD_LDFLAGS="$LDFLAGS"
15290 else
15291 BUILD_CFLAGS=
15292 BUILD_LDFLAGS=
15293 fi
15294
15295
15296 test -d lib || mkdir lib
15297 test -d include || mkdir include
15298 test -d include/linux || mkdir include/linux
15299 test -d include/asm || mkdir include/asm
15300 for i in MCONFIG Makefile e2fsprogs.spec \
15301 util/Makefile util/subst.conf util/gen-tarball \
15302 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15303 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15304 lib/uuid/Makefile lib/uuid/uuid_types.h \
15305 lib/blkid/Makefile lib/blkid/blkid_types.h \
15306 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15307 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15308 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15309 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15310 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15311 if test -d `dirname ${srcdir}/$i` ; then
15312 outlist="$outlist $i"
15313 fi
15314 done
15315 ac_config_files="$ac_config_files $outlist"
15316
15317 cat >confcache <<\_ACEOF
15318 # This file is a shell script that caches the results of configure
15319 # tests run on this system so they can be shared between configure
15320 # scripts and configure runs, see configure's option --config-cache.
15321 # It is not useful on other systems. If it contains results you don't
15322 # want to keep, you may remove or edit it.
15323 #
15324 # config.status only pays attention to the cache file if you give it
15325 # the --recheck option to rerun configure.
15326 #
15327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15329 # following values.
15330
15331 _ACEOF
15332
15333 # The following way of writing the cache mishandles newlines in values,
15334 # but we know of no workaround that is simple, portable, and efficient.
15335 # So, we kill variables containing newlines.
15336 # Ultrix sh set writes to stderr and can't be redirected directly,
15337 # and sets the high bit in the cache file unless we assign to the vars.
15338 (
15339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15340 eval ac_val=\$$ac_var
15341 case $ac_val in #(
15342 *${as_nl}*)
15343 case $ac_var in #(
15344 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15345 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15346 esac
15347 case $ac_var in #(
15348 _ | IFS | as_nl) ;; #(
15349 *) $as_unset $ac_var ;;
15350 esac ;;
15351 esac
15352 done
15353
15354 (set) 2>&1 |
15355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15356 *${as_nl}ac_space=\ *)
15357 # `set' does not quote correctly, so add quotes (double-quote
15358 # substitution turns \\\\ into \\, and sed turns \\ into \).
15359 sed -n \
15360 "s/'/'\\\\''/g;
15361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15362 ;; #(
15363 *)
15364 # `set' quotes correctly as required by POSIX, so do not add quotes.
15365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15366 ;;
15367 esac |
15368 sort
15369 ) |
15370 sed '
15371 /^ac_cv_env_/b end
15372 t clear
15373 :clear
15374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15375 t end
15376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15377 :end' >>confcache
15378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15379 if test -w "$cache_file"; then
15380 test "x$cache_file" != "x/dev/null" &&
15381 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15382 echo "$as_me: updating cache $cache_file" >&6;}
15383 cat confcache >$cache_file
15384 else
15385 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15386 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15387 fi
15388 fi
15389 rm -f confcache
15390
15391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15392 # Let make expand exec_prefix.
15393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15394
15395 # Transform confdefs.h into DEFS.
15396 # Protect against shell expansion while executing Makefile rules.
15397 # Protect against Makefile macro expansion.
15398 #
15399 # If the first sed substitution is executed (which looks for macros that
15400 # take arguments), then branch to the quote section. Otherwise,
15401 # look for a macro that doesn't take arguments.
15402 ac_script='
15403 t clear
15404 :clear
15405 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15406 t quote
15407 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15408 t quote
15409 b any
15410 :quote
15411 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15412 s/\[/\\&/g
15413 s/\]/\\&/g
15414 s/\$/$$/g
15415 H
15416 :any
15417 ${
15418 g
15419 s/^\n//
15420 s/\n/ /g
15421 p
15422 }
15423 '
15424 DEFS=`sed -n "$ac_script" confdefs.h`
15425
15426
15427 ac_libobjs=
15428 ac_ltlibobjs=
15429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15430 # 1. Remove the extension, and $U if already installed.
15431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15432 ac_i=`echo "$ac_i" | sed "$ac_script"`
15433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15434 # will be set to the directory where LIBOBJS objects are built.
15435 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15436 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15437 done
15438 LIBOBJS=$ac_libobjs
15439
15440 LTLIBOBJS=$ac_ltlibobjs
15441
15442
15443
15444 : ${CONFIG_STATUS=./config.status}
15445 ac_clean_files_save=$ac_clean_files
15446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15447 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15448 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15449 cat >$CONFIG_STATUS <<_ACEOF
15450 #! $SHELL
15451 # Generated by $as_me.
15452 # Run this file to recreate the current configuration.
15453 # Compiler output produced by configure, useful for debugging
15454 # configure, is in config.log if it exists.
15455
15456 debug=false
15457 ac_cs_recheck=false
15458 ac_cs_silent=false
15459 SHELL=\${CONFIG_SHELL-$SHELL}
15460 _ACEOF
15461
15462 cat >>$CONFIG_STATUS <<\_ACEOF
15463 ## --------------------- ##
15464 ## M4sh Initialization. ##
15465 ## --------------------- ##
15466
15467 # Be more Bourne compatible
15468 DUALCASE=1; export DUALCASE # for MKS sh
15469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15470 emulate sh
15471 NULLCMD=:
15472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15473 # is contrary to our usage. Disable this feature.
15474 alias -g '${1+"$@"}'='"$@"'
15475 setopt NO_GLOB_SUBST
15476 else
15477 case `(set -o) 2>/dev/null` in
15478 *posix*) set -o posix ;;
15479 esac
15480
15481 fi
15482
15483
15484
15485
15486 # PATH needs CR
15487 # Avoid depending upon Character Ranges.
15488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15491 as_cr_digits='0123456789'
15492 as_cr_alnum=$as_cr_Letters$as_cr_digits
15493
15494 # The user is always right.
15495 if test "${PATH_SEPARATOR+set}" != set; then
15496 echo "#! /bin/sh" >conf$$.sh
15497 echo "exit 0" >>conf$$.sh
15498 chmod +x conf$$.sh
15499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15500 PATH_SEPARATOR=';'
15501 else
15502 PATH_SEPARATOR=:
15503 fi
15504 rm -f conf$$.sh
15505 fi
15506
15507 # Support unset when possible.
15508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15509 as_unset=unset
15510 else
15511 as_unset=false
15512 fi
15513
15514
15515 # IFS
15516 # We need space, tab and new line, in precisely that order. Quoting is
15517 # there to prevent editors from complaining about space-tab.
15518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15519 # splitting by setting IFS to empty value.)
15520 as_nl='
15521 '
15522 IFS=" "" $as_nl"
15523
15524 # Find who we are. Look in the path if we contain no directory separator.
15525 case $0 in
15526 *[\\/]* ) as_myself=$0 ;;
15527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15529 do
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15533 done
15534 IFS=$as_save_IFS
15535
15536 ;;
15537 esac
15538 # We did not find ourselves, most probably we were run as `sh COMMAND'
15539 # in which case we are not to be found in the path.
15540 if test "x$as_myself" = x; then
15541 as_myself=$0
15542 fi
15543 if test ! -f "$as_myself"; then
15544 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15545 { (exit 1); exit 1; }
15546 fi
15547
15548 # Work around bugs in pre-3.0 UWIN ksh.
15549 for as_var in ENV MAIL MAILPATH
15550 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15551 done
15552 PS1='$ '
15553 PS2='> '
15554 PS4='+ '
15555
15556 # NLS nuisances.
15557 for as_var in \
15558 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15559 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15560 LC_TELEPHONE LC_TIME
15561 do
15562 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15563 eval $as_var=C; export $as_var
15564 else
15565 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15566 fi
15567 done
15568
15569 # Required to use basename.
15570 if expr a : '\(a\)' >/dev/null 2>&1 &&
15571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15572 as_expr=expr
15573 else
15574 as_expr=false
15575 fi
15576
15577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15578 as_basename=basename
15579 else
15580 as_basename=false
15581 fi
15582
15583
15584 # Name of the executable.
15585 as_me=`$as_basename -- "$0" ||
15586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15587 X"$0" : 'X\(//\)$' \| \
15588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15589 echo X/"$0" |
15590 sed '/^.*\/\([^/][^/]*\)\/*$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\/\(\/\/\)$/{
15595 s//\1/
15596 q
15597 }
15598 /^X\/\(\/\).*/{
15599 s//\1/
15600 q
15601 }
15602 s/.*/./; q'`
15603
15604 # CDPATH.
15605 $as_unset CDPATH
15606
15607
15608
15609 as_lineno_1=$LINENO
15610 as_lineno_2=$LINENO
15611 test "x$as_lineno_1" != "x$as_lineno_2" &&
15612 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15613
15614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15615 # uniformly replaced by the line number. The first 'sed' inserts a
15616 # line-number line after each line using $LINENO; the second 'sed'
15617 # does the real work. The second script uses 'N' to pair each
15618 # line-number line with the line containing $LINENO, and appends
15619 # trailing '-' during substitution so that $LINENO is not a special
15620 # case at line end.
15621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15622 # scripts with optimization help from Paolo Bonzini. Blame Lee
15623 # E. McMahon (1931-1989) for sed's syntax. :-)
15624 sed -n '
15625 p
15626 /[$]LINENO/=
15627 ' <$as_myself |
15628 sed '
15629 s/[$]LINENO.*/&-/
15630 t lineno
15631 b
15632 :lineno
15633 N
15634 :loop
15635 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15636 t loop
15637 s/-\n.*//
15638 ' >$as_me.lineno &&
15639 chmod +x "$as_me.lineno" ||
15640 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15641 { (exit 1); exit 1; }; }
15642
15643 # Don't try to exec as it changes $[0], causing all sort of problems
15644 # (the dirname of $[0] is not the place where we might find the
15645 # original and so on. Autoconf is especially sensitive to this).
15646 . "./$as_me.lineno"
15647 # Exit status is that of the last command.
15648 exit
15649 }
15650
15651
15652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15653 as_dirname=dirname
15654 else
15655 as_dirname=false
15656 fi
15657
15658 ECHO_C= ECHO_N= ECHO_T=
15659 case `echo -n x` in
15660 -n*)
15661 case `echo 'x\c'` in
15662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15663 *) ECHO_C='\c';;
15664 esac;;
15665 *)
15666 ECHO_N='-n';;
15667 esac
15668
15669 if expr a : '\(a\)' >/dev/null 2>&1 &&
15670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15671 as_expr=expr
15672 else
15673 as_expr=false
15674 fi
15675
15676 rm -f conf$$ conf$$.exe conf$$.file
15677 if test -d conf$$.dir; then
15678 rm -f conf$$.dir/conf$$.file
15679 else
15680 rm -f conf$$.dir
15681 mkdir conf$$.dir
15682 fi
15683 echo >conf$$.file
15684 if ln -s conf$$.file conf$$ 2>/dev/null; then
15685 as_ln_s='ln -s'
15686 # ... but there are two gotchas:
15687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15689 # In both cases, we have to default to `cp -p'.
15690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15691 as_ln_s='cp -p'
15692 elif ln conf$$.file conf$$ 2>/dev/null; then
15693 as_ln_s=ln
15694 else
15695 as_ln_s='cp -p'
15696 fi
15697 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15698 rmdir conf$$.dir 2>/dev/null
15699
15700 if mkdir -p . 2>/dev/null; then
15701 as_mkdir_p=:
15702 else
15703 test -d ./-p && rmdir ./-p
15704 as_mkdir_p=false
15705 fi
15706
15707 if test -x / >/dev/null 2>&1; then
15708 as_test_x='test -x'
15709 else
15710 if ls -dL / >/dev/null 2>&1; then
15711 as_ls_L_option=L
15712 else
15713 as_ls_L_option=
15714 fi
15715 as_test_x='
15716 eval sh -c '\''
15717 if test -d "$1"; then
15718 test -d "$1/.";
15719 else
15720 case $1 in
15721 -*)set "./$1";;
15722 esac;
15723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15724 ???[sx]*):;;*)false;;esac;fi
15725 '\'' sh
15726 '
15727 fi
15728 as_executable_p=$as_test_x
15729
15730 # Sed expression to map a string onto a valid CPP name.
15731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15732
15733 # Sed expression to map a string onto a valid variable name.
15734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15735
15736
15737 exec 6>&1
15738
15739 # Save the log message, to keep $[0] and so on meaningful, and to
15740 # report actual input values of CONFIG_FILES etc. instead of their
15741 # values after options handling.
15742 ac_log="
15743 This file was extended by $as_me, which was
15744 generated by GNU Autoconf 2.61. Invocation command line was
15745
15746 CONFIG_FILES = $CONFIG_FILES
15747 CONFIG_HEADERS = $CONFIG_HEADERS
15748 CONFIG_LINKS = $CONFIG_LINKS
15749 CONFIG_COMMANDS = $CONFIG_COMMANDS
15750 $ $0 $@
15751
15752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15753 "
15754
15755 _ACEOF
15756
15757 cat >>$CONFIG_STATUS <<_ACEOF
15758 # Files that config.status was made for.
15759 config_files="$ac_config_files"
15760 config_commands="$ac_config_commands"
15761
15762 _ACEOF
15763
15764 cat >>$CONFIG_STATUS <<\_ACEOF
15765 ac_cs_usage="\
15766 \`$as_me' instantiates files from templates according to the
15767 current configuration.
15768
15769 Usage: $0 [OPTIONS] [FILE]...
15770
15771 -h, --help print this help, then exit
15772 -V, --version print version number and configuration settings, then exit
15773 -q, --quiet do not print progress messages
15774 -d, --debug don't remove temporary files
15775 --recheck update $as_me by reconfiguring in the same conditions
15776 --file=FILE[:TEMPLATE]
15777 instantiate the configuration file FILE
15778
15779 Configuration files:
15780 $config_files
15781
15782 Configuration commands:
15783 $config_commands
15784
15785 Report bugs to <bug-autoconf@gnu.org>."
15786
15787 _ACEOF
15788 cat >>$CONFIG_STATUS <<_ACEOF
15789 ac_cs_version="\\
15790 config.status
15791 configured by $0, generated by GNU Autoconf 2.61,
15792 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15793
15794 Copyright (C) 2006 Free Software Foundation, Inc.
15795 This config.status script is free software; the Free Software Foundation
15796 gives unlimited permission to copy, distribute and modify it."
15797
15798 ac_pwd='$ac_pwd'
15799 srcdir='$srcdir'
15800 INSTALL='$INSTALL'
15801 _ACEOF
15802
15803 cat >>$CONFIG_STATUS <<\_ACEOF
15804 # If no file are specified by the user, then we need to provide default
15805 # value. By we need to know if files were specified by the user.
15806 ac_need_defaults=:
15807 while test $# != 0
15808 do
15809 case $1 in
15810 --*=*)
15811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15813 ac_shift=:
15814 ;;
15815 *)
15816 ac_option=$1
15817 ac_optarg=$2
15818 ac_shift=shift
15819 ;;
15820 esac
15821
15822 case $ac_option in
15823 # Handling of the options.
15824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15825 ac_cs_recheck=: ;;
15826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15827 echo "$ac_cs_version"; exit ;;
15828 --debug | --debu | --deb | --de | --d | -d )
15829 debug=: ;;
15830 --file | --fil | --fi | --f )
15831 $ac_shift
15832 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15833 ac_need_defaults=false;;
15834 --he | --h | --help | --hel | -h )
15835 echo "$ac_cs_usage"; exit ;;
15836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15838 ac_cs_silent=: ;;
15839
15840 # This is an error.
15841 -*) { echo "$as_me: error: unrecognized option: $1
15842 Try \`$0 --help' for more information." >&2
15843 { (exit 1); exit 1; }; } ;;
15844
15845 *) ac_config_targets="$ac_config_targets $1"
15846 ac_need_defaults=false ;;
15847
15848 esac
15849 shift
15850 done
15851
15852 ac_configure_extra_args=
15853
15854 if $ac_cs_silent; then
15855 exec 6>/dev/null
15856 ac_configure_extra_args="$ac_configure_extra_args --silent"
15857 fi
15858
15859 _ACEOF
15860 cat >>$CONFIG_STATUS <<_ACEOF
15861 if \$ac_cs_recheck; then
15862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15863 CONFIG_SHELL=$SHELL
15864 export CONFIG_SHELL
15865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15866 fi
15867
15868 _ACEOF
15869 cat >>$CONFIG_STATUS <<\_ACEOF
15870 exec 5>>config.log
15871 {
15872 echo
15873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15874 ## Running $as_me. ##
15875 _ASBOX
15876 echo "$ac_log"
15877 } >&5
15878
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<_ACEOF
15881 #
15882 # INIT-COMMANDS
15883 #
15884 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15885 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15886 # from automake.
15887 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15888 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15889 LINGUAS="${LINGUAS-%UNSET%}"
15890
15891
15892 _ACEOF
15893
15894 cat >>$CONFIG_STATUS <<\_ACEOF
15895
15896 # Handling of arguments.
15897 for ac_config_target in $ac_config_targets
15898 do
15899 case $ac_config_target in
15900 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15901 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15902
15903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15904 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15905 { (exit 1); exit 1; }; };;
15906 esac
15907 done
15908
15909
15910 # If the user did not use the arguments to specify the items to instantiate,
15911 # then the envvar interface is used. Set only those that are not.
15912 # We use the long form for the default assignment because of an extremely
15913 # bizarre bug on SunOS 4.1.3.
15914 if $ac_need_defaults; then
15915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15917 fi
15918
15919 # Have a temporary directory for convenience. Make it in the build tree
15920 # simply because there is no reason against having it here, and in addition,
15921 # creating and moving files from /tmp can sometimes cause problems.
15922 # Hook for its removal unless debugging.
15923 # Note that there is a small window in which the directory will not be cleaned:
15924 # after its creation but before its name has been assigned to `$tmp'.
15925 $debug ||
15926 {
15927 tmp=
15928 trap 'exit_status=$?
15929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15930 ' 0
15931 trap '{ (exit 1); exit 1; }' 1 2 13 15
15932 }
15933 # Create a (secure) tmp directory for tmp files.
15934
15935 {
15936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15937 test -n "$tmp" && test -d "$tmp"
15938 } ||
15939 {
15940 tmp=./conf$$-$RANDOM
15941 (umask 077 && mkdir "$tmp")
15942 } ||
15943 {
15944 echo "$me: cannot create a temporary directory in ." >&2
15945 { (exit 1); exit 1; }
15946 }
15947
15948 #
15949 # Set up the sed scripts for CONFIG_FILES section.
15950 #
15951
15952 # No need to generate the scripts if there are no CONFIG_FILES.
15953 # This happens for instance when ./config.status config.h
15954 if test -n "$CONFIG_FILES"; then
15955
15956 _ACEOF
15957
15958 # Create sed commands to just substitute file output variables.
15959
15960 # Remaining file output variables are in a fragment that also has non-file
15961 # output varibles.
15962
15963
15964
15965 ac_delim='%!_!# '
15966 for ac_last_try in false false false false false :; do
15967 cat >conf$$subs.sed <<_ACEOF
15968 SHELL!$SHELL$ac_delim
15969 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15970 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15971 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15972 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15973 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15974 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15975 exec_prefix!$exec_prefix$ac_delim
15976 prefix!$prefix$ac_delim
15977 program_transform_name!$program_transform_name$ac_delim
15978 bindir!$bindir$ac_delim
15979 sbindir!$sbindir$ac_delim
15980 libexecdir!$libexecdir$ac_delim
15981 datarootdir!$datarootdir$ac_delim
15982 datadir!$datadir$ac_delim
15983 sysconfdir!$sysconfdir$ac_delim
15984 sharedstatedir!$sharedstatedir$ac_delim
15985 localstatedir!$localstatedir$ac_delim
15986 includedir!$includedir$ac_delim
15987 oldincludedir!$oldincludedir$ac_delim
15988 docdir!$docdir$ac_delim
15989 infodir!$infodir$ac_delim
15990 htmldir!$htmldir$ac_delim
15991 dvidir!$dvidir$ac_delim
15992 pdfdir!$pdfdir$ac_delim
15993 psdir!$psdir$ac_delim
15994 libdir!$libdir$ac_delim
15995 localedir!$localedir$ac_delim
15996 mandir!$mandir$ac_delim
15997 DEFS!$DEFS$ac_delim
15998 ECHO_C!$ECHO_C$ac_delim
15999 ECHO_N!$ECHO_N$ac_delim
16000 ECHO_T!$ECHO_T$ac_delim
16001 LIBS!$LIBS$ac_delim
16002 build_alias!$build_alias$ac_delim
16003 host_alias!$host_alias$ac_delim
16004 target_alias!$target_alias$ac_delim
16005 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16006 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16007 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16008 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16009 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16010 build!$build$ac_delim
16011 build_cpu!$build_cpu$ac_delim
16012 build_vendor!$build_vendor$ac_delim
16013 build_os!$build_os$ac_delim
16014 host!$host$ac_delim
16015 host_cpu!$host_cpu$ac_delim
16016 host_vendor!$host_vendor$ac_delim
16017 host_os!$host_os$ac_delim
16018 CC!$CC$ac_delim
16019 CFLAGS!$CFLAGS$ac_delim
16020 LDFLAGS!$LDFLAGS$ac_delim
16021 CPPFLAGS!$CPPFLAGS$ac_delim
16022 ac_ct_CC!$ac_ct_CC$ac_delim
16023 EXEEXT!$EXEEXT$ac_delim
16024 OBJEXT!$OBJEXT$ac_delim
16025 CPP!$CPP$ac_delim
16026 LD!$LD$ac_delim
16027 GREP!$GREP$ac_delim
16028 EGREP!$EGREP$ac_delim
16029 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16030 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16031 HTREE_CMT!$HTREE_CMT$ac_delim
16032 ELF_CMT!$ELF_CMT$ac_delim
16033 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16034 PROFILE_CMT!$PROFILE_CMT$ac_delim
16035 CHECKER_CMT!$CHECKER_CMT$ac_delim
16036 LIB_EXT!$LIB_EXT$ac_delim
16037 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16038 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16039 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16040 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16041 IMAGER_CMT!$IMAGER_CMT$ac_delim
16042 RESIZER_CMT!$RESIZER_CMT$ac_delim
16043 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
16044 _ACEOF
16045
16046 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16047 break
16048 elif $ac_last_try; then
16049 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16050 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16051 { (exit 1); exit 1; }; }
16052 else
16053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16054 fi
16055 done
16056
16057 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16058 if test -n "$ac_eof"; then
16059 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16060 ac_eof=`expr $ac_eof + 1`
16061 fi
16062
16063 cat >>$CONFIG_STATUS <<_ACEOF
16064 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16066 /^[ ]*@MCONFIG@[ ]*$/{
16067 r $MCONFIG
16068 d
16069 }
16070 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16071 r $MAKEFILE_ELF
16072 d
16073 }
16074 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16075 r $MAKEFILE_BSDLIB
16076 d
16077 }
16078 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16079 r $MAKEFILE_PROFILE
16080 d
16081 }
16082 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16083 r $MAKEFILE_CHECKER
16084 d
16085 }
16086 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16087 r $MAKEFILE_LIBRARY
16088 d
16089 }
16090 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16091 r $ASM_TYPES_HEADER
16092 d
16093 }
16094 _ACEOF
16095 sed '
16096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16097 s/^/s,@/; s/!/@,|#_!!_#|/
16098 :n
16099 t n
16100 s/'"$ac_delim"'$/,g/; t
16101 s/$/\\/; p
16102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16103 ' >>$CONFIG_STATUS <conf$$subs.sed
16104 rm -f conf$$subs.sed
16105 cat >>$CONFIG_STATUS <<_ACEOF
16106 CEOF$ac_eof
16107 _ACEOF
16108
16109
16110 ac_delim='%!_!# '
16111 for ac_last_try in false false false false false :; do
16112 cat >conf$$subs.sed <<_ACEOF
16113 FSCK_PROG!$FSCK_PROG$ac_delim
16114 FSCK_MAN!$FSCK_MAN$ac_delim
16115 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16116 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16117 PKG_CONFIG!$PKG_CONFIG$ac_delim
16118 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16119 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16120 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16121 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16122 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16123 UUIDD_CMT!$UUIDD_CMT$ac_delim
16124 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16125 PACKAGE!$PACKAGE$ac_delim
16126 VERSION!$VERSION$ac_delim
16127 SET_MAKE!$SET_MAKE$ac_delim
16128 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16129 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16130 INSTALL_DATA!$INSTALL_DATA$ac_delim
16131 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16132 USE_NLS!$USE_NLS$ac_delim
16133 MSGFMT!$MSGFMT$ac_delim
16134 GMSGFMT!$GMSGFMT$ac_delim
16135 XGETTEXT!$XGETTEXT$ac_delim
16136 MSGMERGE!$MSGMERGE$ac_delim
16137 RANLIB!$RANLIB$ac_delim
16138 ALLOCA!$ALLOCA$ac_delim
16139 GLIBC21!$GLIBC21$ac_delim
16140 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16141 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16142 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16143 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16144 LIBICONV!$LIBICONV$ac_delim
16145 LTLIBICONV!$LTLIBICONV$ac_delim
16146 INTLBISON!$INTLBISON$ac_delim
16147 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16148 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16149 CATOBJEXT!$CATOBJEXT$ac_delim
16150 DATADIRNAME!$DATADIRNAME$ac_delim
16151 INSTOBJEXT!$INSTOBJEXT$ac_delim
16152 GENCAT!$GENCAT$ac_delim
16153 INTLOBJS!$INTLOBJS$ac_delim
16154 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16155 INTLLIBS!$INTLLIBS$ac_delim
16156 LIBINTL!$LIBINTL$ac_delim
16157 LTLIBINTL!$LTLIBINTL$ac_delim
16158 POSUB!$POSUB$ac_delim
16159 BINARY_TYPE!$BINARY_TYPE$ac_delim
16160 LN!$LN$ac_delim
16161 LN_S!$LN_S$ac_delim
16162 MV!$MV$ac_delim
16163 CP!$CP$ac_delim
16164 RM!$RM$ac_delim
16165 CHMOD!$CHMOD$ac_delim
16166 AWK!$AWK$ac_delim
16167 SED!$SED$ac_delim
16168 PERL!$PERL$ac_delim
16169 LDCONFIG!$LDCONFIG$ac_delim
16170 AR!$AR$ac_delim
16171 STRIP!$STRIP$ac_delim
16172 BUILD_CC!$BUILD_CC$ac_delim
16173 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16174 SIZEOF_INT!$SIZEOF_INT$ac_delim
16175 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16176 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16177 SOCKET_LIB!$SOCKET_LIB$ac_delim
16178 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16179 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16180 LINUX_CMT!$LINUX_CMT$ac_delim
16181 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16182 UNIX_CMT!$UNIX_CMT$ac_delim
16183 root_prefix!$root_prefix$ac_delim
16184 root_bindir!$root_bindir$ac_delim
16185 root_sbindir!$root_sbindir$ac_delim
16186 root_libdir!$root_libdir$ac_delim
16187 root_sysconfdir!$root_sysconfdir$ac_delim
16188 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16189 SS_DIR!$SS_DIR$ac_delim
16190 ET_DIR!$ET_DIR$ac_delim
16191 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16192 INTL_FLAGS!$INTL_FLAGS$ac_delim
16193 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16194 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16195 LIBOBJS!$LIBOBJS$ac_delim
16196 LTLIBOBJS!$LTLIBOBJS$ac_delim
16197 _ACEOF
16198
16199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16200 break
16201 elif $ac_last_try; then
16202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16203 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16204 { (exit 1); exit 1; }; }
16205 else
16206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16207 fi
16208 done
16209
16210 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16211 if test -n "$ac_eof"; then
16212 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16213 ac_eof=`expr $ac_eof + 1`
16214 fi
16215
16216 cat >>$CONFIG_STATUS <<_ACEOF
16217 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16219 _ACEOF
16220 sed '
16221 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16222 s/^/s,@/; s/!/@,|#_!!_#|/
16223 :n
16224 t n
16225 s/'"$ac_delim"'$/,g/; t
16226 s/$/\\/; p
16227 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16228 ' >>$CONFIG_STATUS <conf$$subs.sed
16229 rm -f conf$$subs.sed
16230 cat >>$CONFIG_STATUS <<_ACEOF
16231 :end
16232 s/|#_!!_#|//g
16233 CEOF$ac_eof
16234 _ACEOF
16235
16236
16237 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16238 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16239 # trailing colons and then remove the whole line if VPATH becomes empty
16240 # (actually we leave an empty line to preserve line numbers).
16241 if test "x$srcdir" = x.; then
16242 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16243 s/:*\$(srcdir):*/:/
16244 s/:*\${srcdir}:*/:/
16245 s/:*@srcdir@:*/:/
16246 s/^\([^=]*=[ ]*\):*/\1/
16247 s/:*$//
16248 s/^[^=]*=[ ]*$//
16249 }'
16250 fi
16251
16252 cat >>$CONFIG_STATUS <<\_ACEOF
16253 fi # test -n "$CONFIG_FILES"
16254
16255
16256 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16257 do
16258 case $ac_tag in
16259 :[FHLC]) ac_mode=$ac_tag; continue;;
16260 esac
16261 case $ac_mode$ac_tag in
16262 :[FHL]*:*);;
16263 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16264 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16265 { (exit 1); exit 1; }; };;
16266 :[FH]-) ac_tag=-:-;;
16267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16268 esac
16269 ac_save_IFS=$IFS
16270 IFS=:
16271 set x $ac_tag
16272 IFS=$ac_save_IFS
16273 shift
16274 ac_file=$1
16275 shift
16276
16277 case $ac_mode in
16278 :L) ac_source=$1;;
16279 :[FH])
16280 ac_file_inputs=
16281 for ac_f
16282 do
16283 case $ac_f in
16284 -) ac_f="$tmp/stdin";;
16285 *) # Look for the file first in the build tree, then in the source tree
16286 # (if the path is not absolute). The absolute path cannot be DOS-style,
16287 # because $ac_f cannot contain `:'.
16288 test -f "$ac_f" ||
16289 case $ac_f in
16290 [\\/$]*) false;;
16291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16292 esac ||
16293 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16294 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16295 { (exit 1); exit 1; }; };;
16296 esac
16297 ac_file_inputs="$ac_file_inputs $ac_f"
16298 done
16299
16300 # Let's still pretend it is `configure' which instantiates (i.e., don't
16301 # use $as_me), people would be surprised to read:
16302 # /* config.h. Generated by config.status. */
16303 configure_input="Generated from "`IFS=:
16304 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16305 if test x"$ac_file" != x-; then
16306 configure_input="$ac_file. $configure_input"
16307 { echo "$as_me:$LINENO: creating $ac_file" >&5
16308 echo "$as_me: creating $ac_file" >&6;}
16309 fi
16310
16311 case $ac_tag in
16312 *:-:* | *:-) cat >"$tmp/stdin";;
16313 esac
16314 ;;
16315 esac
16316
16317 ac_dir=`$as_dirname -- "$ac_file" ||
16318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$ac_file" : 'X\(//\)[^/]' \| \
16320 X"$ac_file" : 'X\(//\)$' \| \
16321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16322 echo X"$ac_file" |
16323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16324 s//\1/
16325 q
16326 }
16327 /^X\(\/\/\)[^/].*/{
16328 s//\1/
16329 q
16330 }
16331 /^X\(\/\/\)$/{
16332 s//\1/
16333 q
16334 }
16335 /^X\(\/\).*/{
16336 s//\1/
16337 q
16338 }
16339 s/.*/./; q'`
16340 { as_dir="$ac_dir"
16341 case $as_dir in #(
16342 -*) as_dir=./$as_dir;;
16343 esac
16344 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16345 as_dirs=
16346 while :; do
16347 case $as_dir in #(
16348 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16349 *) as_qdir=$as_dir;;
16350 esac
16351 as_dirs="'$as_qdir' $as_dirs"
16352 as_dir=`$as_dirname -- "$as_dir" ||
16353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16354 X"$as_dir" : 'X\(//\)[^/]' \| \
16355 X"$as_dir" : 'X\(//\)$' \| \
16356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16357 echo X"$as_dir" |
16358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)[^/].*/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\/\)$/{
16367 s//\1/
16368 q
16369 }
16370 /^X\(\/\).*/{
16371 s//\1/
16372 q
16373 }
16374 s/.*/./; q'`
16375 test -d "$as_dir" && break
16376 done
16377 test -z "$as_dirs" || eval "mkdir $as_dirs"
16378 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16379 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16380 { (exit 1); exit 1; }; }; }
16381 ac_builddir=.
16382
16383 case "$ac_dir" in
16384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16385 *)
16386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16387 # A ".." for each directory in $ac_dir_suffix.
16388 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16389 case $ac_top_builddir_sub in
16390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16392 esac ;;
16393 esac
16394 ac_abs_top_builddir=$ac_pwd
16395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16396 # for backward compatibility:
16397 ac_top_builddir=$ac_top_build_prefix
16398
16399 case $srcdir in
16400 .) # We are building in place.
16401 ac_srcdir=.
16402 ac_top_srcdir=$ac_top_builddir_sub
16403 ac_abs_top_srcdir=$ac_pwd ;;
16404 [\\/]* | ?:[\\/]* ) # Absolute name.
16405 ac_srcdir=$srcdir$ac_dir_suffix;
16406 ac_top_srcdir=$srcdir
16407 ac_abs_top_srcdir=$srcdir ;;
16408 *) # Relative name.
16409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16410 ac_top_srcdir=$ac_top_build_prefix$srcdir
16411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16412 esac
16413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16414
16415
16416 case $ac_mode in
16417 :F)
16418 #
16419 # CONFIG_FILE
16420 #
16421
16422 case $INSTALL in
16423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16424 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16425 esac
16426 _ACEOF
16427
16428 cat >>$CONFIG_STATUS <<\_ACEOF
16429 # If the template does not know about datarootdir, expand it.
16430 # FIXME: This hack should be removed a few years after 2.60.
16431 ac_datarootdir_hack=; ac_datarootdir_seen=
16432
16433 case `sed -n '/datarootdir/ {
16434 p
16435 q
16436 }
16437 /@datadir@/p
16438 /@docdir@/p
16439 /@infodir@/p
16440 /@localedir@/p
16441 /@mandir@/p
16442 ' $ac_file_inputs` in
16443 *datarootdir*) ac_datarootdir_seen=yes;;
16444 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16445 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16446 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16447 _ACEOF
16448 cat >>$CONFIG_STATUS <<_ACEOF
16449 ac_datarootdir_hack='
16450 s&@datadir@&$datadir&g
16451 s&@docdir@&$docdir&g
16452 s&@infodir@&$infodir&g
16453 s&@localedir@&$localedir&g
16454 s&@mandir@&$mandir&g
16455 s&\\\${datarootdir}&$datarootdir&g' ;;
16456 esac
16457 _ACEOF
16458
16459 # Neutralize VPATH when `$srcdir' = `.'.
16460 # Shell code in configure.ac might set extrasub.
16461 # FIXME: do we really want to maintain this feature?
16462 cat >>$CONFIG_STATUS <<_ACEOF
16463 sed "$ac_vpsub
16464 $extrasub
16465 _ACEOF
16466 cat >>$CONFIG_STATUS <<\_ACEOF
16467 :t
16468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16469 s&@configure_input@&$configure_input&;t t
16470 s&@top_builddir@&$ac_top_builddir_sub&;t t
16471 s&@srcdir@&$ac_srcdir&;t t
16472 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16473 s&@top_srcdir@&$ac_top_srcdir&;t t
16474 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16475 s&@builddir@&$ac_builddir&;t t
16476 s&@abs_builddir@&$ac_abs_builddir&;t t
16477 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16478 s&@INSTALL@&$ac_INSTALL&;t t
16479 $ac_datarootdir_hack
16480 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16481
16482 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16483 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16485 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16486 which seems to be undefined. Please make sure it is defined." >&5
16487 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16488 which seems to be undefined. Please make sure it is defined." >&2;}
16489
16490 rm -f "$tmp/stdin"
16491 case $ac_file in
16492 -) cat "$tmp/out"; rm -f "$tmp/out";;
16493 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16494 esac
16495 ;;
16496
16497
16498 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16499 echo "$as_me: executing $ac_file commands" >&6;}
16500 ;;
16501 esac
16502
16503
16504 case $ac_file$ac_mode in
16505 "default-1":C)
16506 for ac_file in $CONFIG_FILES; do
16507 # Support "outfile[:infile[:infile...]]"
16508 case "$ac_file" in
16509 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16510 esac
16511 # PO directories have a Makefile.in generated from Makefile.in.in.
16512 case "$ac_file" in */Makefile.in)
16513 # Adjust a relative srcdir.
16514 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16515 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16516 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16517 # In autoconf-2.13 it is called $ac_given_srcdir.
16518 # In autoconf-2.50 it is called $srcdir.
16519 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16520 case "$ac_given_srcdir" in
16521 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16522 /*) top_srcdir="$ac_given_srcdir" ;;
16523 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16524 esac
16525 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16526 rm -f "$ac_dir/POTFILES"
16527 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16528 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16529 POMAKEFILEDEPS="POTFILES.in"
16530 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16531 # on $ac_dir but don't depend on user-specified configuration
16532 # parameters.
16533 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16534 # The LINGUAS file contains the set of available languages.
16535 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16536 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16537 fi
16538 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16539 # Hide the ALL_LINGUAS assigment from automake.
16540 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16541 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16542 else
16543 # The set of available languages was given in configure.in.
16544 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16545 fi
16546 # Compute POFILES
16547 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16548 # Compute UPDATEPOFILES
16549 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16550 # Compute DUMMYPOFILES
16551 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16552 # Compute GMOFILES
16553 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16554 case "$ac_given_srcdir" in
16555 .) srcdirpre= ;;
16556 *) srcdirpre='$(srcdir)/' ;;
16557 esac
16558 POFILES=
16559 UPDATEPOFILES=
16560 DUMMYPOFILES=
16561 GMOFILES=
16562 for lang in $ALL_LINGUAS; do
16563 POFILES="$POFILES $srcdirpre$lang.po"
16564 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16565 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16566 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16567 done
16568 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16569 # environment variable.
16570 INST_LINGUAS=
16571 if test -n "$ALL_LINGUAS"; then
16572 for presentlang in $ALL_LINGUAS; do
16573 useit=no
16574 if test "%UNSET%" != "$LINGUAS"; then
16575 desiredlanguages="$LINGUAS"
16576 else
16577 desiredlanguages="$ALL_LINGUAS"
16578 fi
16579 for desiredlang in $desiredlanguages; do
16580 # Use the presentlang catalog if desiredlang is
16581 # a. equal to presentlang, or
16582 # b. a variant of presentlang (because in this case,
16583 # presentlang can be used as a fallback for messages
16584 # which are not translated in the desiredlang catalog).
16585 case "$desiredlang" in
16586 "$presentlang"*) useit=yes;;
16587 esac
16588 done
16589 if test $useit = yes; then
16590 INST_LINGUAS="$INST_LINGUAS $presentlang"
16591 fi
16592 done
16593 fi
16594 CATALOGS=
16595 if test -n "$INST_LINGUAS"; then
16596 for lang in $INST_LINGUAS; do
16597 CATALOGS="$CATALOGS $lang.gmo"
16598 done
16599 fi
16600 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16601 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"
16602 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16603 if test -f "$f"; then
16604 case "$f" in
16605 *.orig | *.bak | *~) ;;
16606 *) cat "$f" >> "$ac_dir/Makefile" ;;
16607 esac
16608 fi
16609 done
16610 fi
16611 ;;
16612 esac
16613 done ;;
16614
16615 esac
16616 done # for ac_tag
16617
16618
16619 { (exit 0); exit 0; }
16620 _ACEOF
16621 chmod +x $CONFIG_STATUS
16622 ac_clean_files=$ac_clean_files_save
16623
16624
16625 # configure is writing to config.log, and then calls config.status.
16626 # config.status does its own redirection, appending to config.log.
16627 # Unfortunately, on DOS this fails, as config.log is still kept open
16628 # by configure, so config.status won't be able to write to it; its
16629 # output is simply discarded. So we exec the FD to /dev/null,
16630 # effectively closing config.log, so it can be properly (re)opened and
16631 # appended to by config.status. When coming back to configure, we
16632 # need to make the FD available again.
16633 if test "$no_create" != yes; then
16634 ac_cs_success=:
16635 ac_config_status_args=
16636 test "$silent" = yes &&
16637 ac_config_status_args="$ac_config_status_args --quiet"
16638 exec 5>/dev/null
16639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16640 exec 5>>config.log
16641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16642 # would make configure fail if this is the last instruction.
16643 $ac_cs_success || { (exit 1); exit 1; }
16644 fi
16645
16646 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16647