2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars='LTLIBOBJS
669 INTL_LIBTOOL_SUFFIX_PREFIX
676 BUILD_INCLUDED_LIBINTL
801 program_transform_name
812 ac_subst_files='MCONFIG
819 PUBLIC_CONFIG_HEADER'
821 enable_option_checking
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
832 enable_verbose_makecmds
851 enable_e2initrd_helper
858 with_included_gettext
862 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures this package to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 if test -n "$ac_init_help"; then
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-maintainer-mode enable makefile rules useful for maintainers
1484 --enable-symlink-install use symlinks when installing instead of hard links
1485 --enable-relative-symlinks use relative symlinks when installing
1487 --enable-symlink-build use symlinks while building instead of hard links
1488 --enable-verbose-makecmds enable verbose make command output
1489 --enable-compression enable EXPERIMENTAL compression support
1490 --enable-htree enable EXPERIMENTAL htree directory support
1491 --enable-elf-shlibs select ELF shared libraries
1492 --enable-bsd-shlibs select BSD shared libraries
1493 --enable-profile build profiling libraries
1494 --enable-checker build checker libraries
1495 --enable-jbd-debug enable journal debugging
1496 --enable-blkid-debug enable blkid debugging
1497 --disable-testio-debug disable the use of the test I/O manager for debugging
1498 --disable-libuuid do not build private uuid library
1499 --disable-libblkid do not build private blkid library
1500 --enable-quota enable quota support
1501 --disable-backtrace disable use backtrace
1502 --disable-debugfs disable support of debugfs program
1503 --disable-imager disable support of e2image program
1504 --disable-resizer disable support of e2resize program
1505 --disable-defrag disable support of e4defrag program
1506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
1508 --disable-tls disable use of thread local support
1509 --disable-uuidd disable building the uuid daemon
1510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-diet-libc use diet libc
1517 --with-cc no longer supported, use CC= instead
1518 --with-ccopts no longer supported, use CFLAGS= instead
1519 --with-ldopts no longer supported, use LDFLAGS= instead
1520 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1521 --with-gnu-ld assume the C compiler uses GNU ld default=no
1522 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1523 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1524 --with-included-gettext use the GNU gettext library included here
1525 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1526 --without-libintl-prefix don't search for libintl in includedir and libdir
1527 --with-multiarch=ARCH specify the multiarch triplet
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1538 PKG_CONFIG path to pkg-config utility
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } > conftest.i && {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_type
1837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists and can be compiled using the include files in
1840 # INCLUDES, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_compile
1868 # ac_fn_c_check_func LINENO FUNC VAR
1869 # ----------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_c_check_func ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883 #define $2 innocuous_$2
1885 /* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1891 # include <limits.h>
1893 # include <assert.h>
1898 /* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1905 /* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908 #if defined __stub_$2 || defined __stub___$2
1920 if ac_fn_c_try_link "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_func
1935 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1936 # -------------------------------------------------------
1937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938 # the include files in INCLUDES and setting the cache variable VAR
1940 ac_fn_c_check_header_mongrel ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if eval \${$3+:} false; then :
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 # Is the header compilable?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955 $as_echo_n "checking $2 usability... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_header_compiler=yes
1964 ac_header_compiler=no
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968 $as_echo "$ac_header_compiler" >&6; }
1970 # Is the header present?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972 $as_echo_n "checking $2 presence... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 if ac_fn_c_try_cpp "$LINENO"; then :
1978 ac_header_preproc=yes
1980 ac_header_preproc=no
1982 rm -f conftest.err conftest.i conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984 $as_echo "$ac_header_preproc" >&6; }
1986 # So? What about this header?
1987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1998 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2002 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 eval "$3=\$ac_header_compiler"
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_header_mongrel
2022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2023 # --------------------------------------------
2024 # Tries to find the compile-time value of EXPR in a program that includes
2025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2027 ac_fn_c_compute_int ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if test "$cross_compiling" = yes; then
2031 # Depending upon the size, compute the lo and hi bounds.
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) >= 0)];
2040 return test_array [0];
2046 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 return test_array [0];
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_hi=$ac_mid; break
2066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2067 if test $ac_lo -le $ac_mid; then
2071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) < 0)];
2084 return test_array [0];
2090 if ac_fn_c_try_compile "$LINENO"; then :
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2101 return test_array [0];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=$ac_mid; break
2110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111 if test $ac_mid -le $ac_hi; then
2115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136 return test_array [0];
2142 if ac_fn_c_try_compile "$LINENO"; then :
2145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2157 static long int longval () { return $2; }
2158 static unsigned long int ulongval () { return $2; }
2165 FILE *f = fopen ("conftest.val", "w");
2170 long int i = longval ();
2173 fprintf (f, "%ld", i);
2177 unsigned long int i = ulongval ();
2180 fprintf (f, "%lu", i);
2182 /* Do not output a trailing newline, as this causes \r\n confusion
2183 on some platforms. */
2184 return ferror (f) || fclose (f) != 0;
2190 if ac_fn_c_try_run "$LINENO"; then :
2191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2196 conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } # ac_fn_c_compute_int
2205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2206 # ----------------------------------------------------
2207 # Tries to find if the field MEMBER exists in type AGGR, after including
2208 # INCLUDES, setting cache variable VAR accordingly.
2209 ac_fn_c_check_member ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2213 $as_echo_n "checking for $2.$3... " >&6; }
2214 if eval \${$4+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2240 if (sizeof ac_aggr.$3)
2246 if ac_fn_c_try_compile "$LINENO"; then :
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_member
2262 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2263 # ---------------------------------------------
2264 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 ac_fn_c_check_decl ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 as_decl_name=`echo $2|sed 's/ *(.*//'`
2270 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2272 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2273 if eval \${$3+:} false; then :
2274 $as_echo_n "(cached) " >&6
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 #ifndef $as_decl_name
2284 (void) $as_decl_use;
2286 (void) $as_decl_name;
2294 if ac_fn_c_try_compile "$LINENO"; then :
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_decl
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.69. Invocation command line was
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_must_keep_next=false
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 -* ) ac_must_keep_next=true ;;
2404 as_fn_append ac_configure_args " '$ac_arg'"
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2426 # The following way of writing the cache mishandles newlines in values,
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2462 for ac_var in $ac_subst_vars
2464 eval ac_val=\$$ac_var
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2477 for ac_var in $ac_subst_files
2479 eval ac_val=\$$ac_var
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 $as_echo "$ac_var='\''$ac_val'\''"
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2512 $as_echo "/* confdefs.h */" > confdefs.h
2514 # Predefined preprocessor variables.
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2552 elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 as_fn_append ac_header_list " stdlib.h"
2592 as_fn_append ac_header_list " unistd.h"
2593 as_fn_append ac_header_list " sys/param.h"
2594 # Check that the precious variables saved in the cache have kept the same
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 for ac_dir in config "$srcdir"/config; do
2665 if test -f "$ac_dir/install-sh"; then
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2669 elif test -f "$ac_dir/install.sh"; then
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2673 elif test -f "$ac_dir/shtool"; then
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2679 if test -z "$ac_aux_dir"; then
2680 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2692 ac_config_headers="$ac_config_headers lib/config.h"
2698 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2699 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2700 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2702 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2703 MONTH=`echo $DATE | awk -F- '{print $2}'`
2704 YEAR=`echo $DATE | awk -F- '{print $3}'`
2706 if expr $YEAR ">" 1900 > /dev/null ; then
2707 E2FSPROGS_YEAR=$YEAR
2708 elif expr $YEAR ">" 90 >/dev/null ; then
2709 E2FSPROGS_YEAR=19$YEAR
2711 E2FSPROGS_YEAR=20$YEAR
2715 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2716 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2717 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2718 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2719 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2720 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2721 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2722 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2723 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2724 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2725 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2726 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2727 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2728 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2731 base_ver=`echo $E2FSPROGS_VERSION | \
2732 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2734 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2736 case $E2FSPROGS_VERSION in
2738 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2741 E2FSPROGS_PKGVER="$base_ver"
2745 unset DATE MONTH YEAR base_ver pre_vers date_spec
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2747 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2749 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2755 # Make sure we can run config.sub.
2756 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2760 $as_echo_n "checking build system type... " >&6; }
2761 if ${ac_cv_build+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 ac_build_alias=$build_alias
2765 test "x$ac_build_alias" = x &&
2766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2767 test "x$ac_build_alias" = x &&
2768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2774 $as_echo "$ac_cv_build" >&6; }
2775 case $ac_cv_build in
2777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2780 ac_save_IFS=$IFS; IFS='-'
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2794 $as_echo_n "checking host system type... " >&6; }
2795 if ${ac_cv_host+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test "x$host_alias" = x; then
2799 ac_cv_host=$ac_cv_build
2801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2807 $as_echo "$ac_cv_host" >&6; }
2810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2813 ac_save_IFS=$IFS; IFS='-'
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2871 if test -z "$ac_cv_prog_CC"; then
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC="gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901 if test -n "$ac_ct_CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903 $as_echo "$ac_ct_CC" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2909 if test "x$ac_ct_CC" = x; then
2912 case $cross_compiling:$ac_tool_warned in
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
3000 if test $# != 0; then
3001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 for ac_prog in cl.exe
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3062 test -n "$CC" && break
3065 if test -z "$CC"; then
3067 for ac_prog in cl.exe
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_ac_ct_CC="$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 $as_echo "$ac_ct_CC" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3106 test -n "$ac_ct_CC" && break
3109 if test "x$ac_ct_CC" = x; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3125 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "no acceptable C compiler found in \$PATH
3128 See \`config.log' for more details" "$LINENO" 5; }
3130 # Provide some information about the compiler.
3131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134 for ac_option in --version -v -V -qversion; do
3135 { { ac_try="$ac_compiler $ac_option >&5"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144 if test -s conftest.err; then
3146 ... rest of stderr output deleted ...
3147 10q' conftest.err >conftest.er1
3148 cat conftest.er1 >&5
3150 rm -f conftest.er1 conftest.err
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3166 ac_clean_files_save=$ac_clean_files
3167 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3168 # Try to create an executable without -o first, disregard a.out.
3169 # It will help us diagnose broken compilers, and finding out an intuition
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172 $as_echo_n "checking whether the C compiler works... " >&6; }
3173 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175 # The possible output files:
3176 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179 for ac_file in $ac_files
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188 if { { ac_try="$ac_link_default"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link_default") 2>&5
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3202 # so that the user can short-circuit this test for compilers unknown to
3204 for ac_file in $ac_files ''
3206 test -f "$ac_file" || continue
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3211 # We found the default executable, but exeext='' is most
3215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 # We set ac_cv_exeext here because the later test for it is not
3220 # safe: cross compilers may not add the suffix if given an `-o'
3221 # argument, so we may need to know it at that point already.
3222 # Even if this section looks crufty: it has the advantage of
3229 test "$ac_cv_exeext" = no && ac_cv_exeext=
3234 if test -z "$ac_file"; then :
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error 77 "C compiler cannot create executables
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249 $as_echo_n "checking for C compiler default output file name... " >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 ac_exeext=$ac_cv_exeext
3254 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3255 ac_clean_files=$ac_clean_files_save
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3257 $as_echo_n "checking for suffix of executables... " >&6; }
3258 if { { ac_try="$ac_link"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3271 # work properly (i.e., refer to `conftest.exe'), while it won't with
3273 for ac_file in conftest.exe conftest conftest.*; do
3274 test -f "$ac_file" || continue
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286 See \`config.log' for more details" "$LINENO" 5; }
3288 rm -f conftest conftest$ac_cv_exeext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3290 $as_echo "$ac_cv_exeext" >&6; }
3292 rm -f conftest.$ac_ext
3293 EXEEXT=$ac_cv_exeext
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3301 FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3308 ac_clean_files="$ac_clean_files conftest.out"
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312 $as_echo_n "checking whether we are cross compiling... " >&6; }
3313 if test "$cross_compiling" != yes; then
3314 { { ac_try="$ac_link"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 if { ac_try='./conftest$ac_cv_exeext'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3338 if test "$cross_compiling" = maybe; then
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details" "$LINENO" 5; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350 $as_echo "$cross_compiling" >&6; }
3352 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3355 $as_echo_n "checking for suffix of object files... " >&6; }
3356 if ${ac_cv_objext+:} false; then :
3357 $as_echo_n "(cached) " >&6
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3370 rm -f conftest.o conftest.obj
3371 if { { ac_try="$ac_compile"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_compile") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 for ac_file in conftest.o conftest.obj conftest.*; do
3383 test -f "$ac_file" || continue;
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot compute suffix of object files: cannot compile
3397 See \`config.log' for more details" "$LINENO" 5; }
3399 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402 $as_echo "$ac_cv_objext" >&6; }
3403 OBJEXT=$ac_cv_objext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3407 if ${ac_cv_c_compiler_gnu+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3424 if ac_fn_c_try_compile "$LINENO"; then :
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435 if test $ac_compiler_gnu = yes; then
3440 ac_test_CFLAGS=${CFLAGS+set}
3441 ac_save_CFLAGS=$CFLAGS
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3444 if ${ac_cv_prog_cc_g+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3462 if ac_fn_c_try_compile "$LINENO"; then :
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 if ac_fn_c_try_compile "$LINENO"; then :
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504 $as_echo "$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3514 if test "$GCC" = yes; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3522 if ${ac_cv_prog_cc_c89+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 ac_cv_prog_cc_c89=no
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3546 s = g (p, va_arg (v,int));
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 CC="$ac_save_CC $ac_arg"
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_c89=$ac_arg
3586 rm -f core conftest.err conftest.$ac_objext
3587 test "x$ac_cv_prog_cc_c89" != "xno" && break
3589 rm -f conftest.$ac_ext
3594 case "x$ac_cv_prog_cc_c89" in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3597 $as_echo "none needed" >&6; } ;;
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3600 $as_echo "unsupported" >&6; } ;;
3602 CC="$CC $ac_cv_prog_cc_c89"
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3604 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3606 if test "x$ac_cv_prog_cc_c89" != xno; then :
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3619 if ${ac_cv_lib_dl_dlopen+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_check_lib_save_LIBS=$LIBS
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3627 /* Override any GCC internal prototype to avoid an error.
3628 Use char because int might match the return type of a GCC
3629 builtin and then its argument prototype would still apply. */
3642 if ac_fn_c_try_link "$LINENO"; then :
3643 ac_cv_lib_dl_dlopen=yes
3645 ac_cv_lib_dl_dlopen=no
3647 rm -f core conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649 LIBS=$ac_check_lib_save_LIBS
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3656 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3663 # Check whether --with-diet-libc was given.
3664 if test "${with_diet_libc+set}" = set; then :
3665 withval=$with_diet_libc; CC="diet cc -nostdinc"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3668 $as_echo "CC=$CC" >&6; }
3671 # Check whether --with-cc was given.
3672 if test "${with_cc+set}" = set; then :
3673 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3677 # Check whether --with-ccopts was given.
3678 if test "${with_ccopts+set}" = set; then :
3679 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3683 # Check whether --with-ldopts was given.
3684 if test "${with_ldopts+set}" = set; then :
3685 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3732 if test -z "$ac_cv_prog_CC"; then
3734 # Extract the first word of "gcc", so it can be a program name with args.
3735 set dummy gcc; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_ac_ct_CC="gcc"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3770 if test "x$ac_ct_CC" = x; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3785 if test -z "$CC"; then
3786 if test -n "$ac_tool_prefix"; then
3787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3788 set dummy ${ac_tool_prefix}cc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_CC="${ac_tool_prefix}cc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3826 if test -z "$CC"; then
3827 # Extract the first word of "cc", so it can be a program name with args.
3828 set dummy cc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_CC+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3846 ac_prog_rejected=yes
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 if test $ac_prog_rejected = yes; then
3858 # We found a bogon in the path, so make sure we never use it.
3859 set dummy $ac_cv_prog_CC
3861 if test $# != 0; then
3862 # We chose a different compiler from the bogus one.
3863 # However, it has the same basename, so the bogon will be chosen
3864 # first if we set CC to just the basename; use the full file name.
3866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3872 if test -n "$CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 $as_echo "$CC" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3882 if test -z "$CC"; then
3883 if test -n "$ac_tool_prefix"; then
3884 for ac_prog in cl.exe
3886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_CC+:} false; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 if test -n "$CC"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916 $as_echo "$CC" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3923 test -n "$CC" && break
3926 if test -z "$CC"; then
3928 for ac_prog in cl.exe
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931 set dummy $ac_prog; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3935 $as_echo_n "(cached) " >&6
3937 if test -n "$ac_ct_CC"; then
3938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_ac_ct_CC="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3958 if test -n "$ac_ct_CC"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3960 $as_echo "$ac_ct_CC" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3967 test -n "$ac_ct_CC" && break
3970 if test "x$ac_ct_CC" = x; then
3973 case $cross_compiling:$ac_tool_warned in
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3977 ac_tool_warned=yes ;;
3986 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "no acceptable C compiler found in \$PATH
3989 See \`config.log' for more details" "$LINENO" 5; }
3991 # Provide some information about the compiler.
3992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3995 for ac_option in --version -v -V -qversion; do
3996 { { ac_try="$ac_compiler $ac_option >&5"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4005 if test -s conftest.err; then
4007 ... rest of stderr output deleted ...
4008 10q' conftest.err >conftest.er1
4009 cat conftest.er1 >&5
4011 rm -f conftest.er1 conftest.err
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4017 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4018 if ${ac_cv_c_compiler_gnu+:} false; then :
4019 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4035 if ac_fn_c_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4045 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4046 if test $ac_compiler_gnu = yes; then
4051 ac_test_CFLAGS=${CFLAGS+set}
4052 ac_save_CFLAGS=$CFLAGS
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4054 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4055 if ${ac_cv_prog_cc_g+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_save_c_werror_flag=$ac_c_werror_flag
4059 ac_c_werror_flag=yes
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 if ac_fn_c_try_compile "$LINENO"; then :
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_c_werror_flag=$ac_save_c_werror_flag
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4115 $as_echo "$ac_cv_prog_cc_g" >&6; }
4116 if test "$ac_test_CFLAGS" = set; then
4117 CFLAGS=$ac_save_CFLAGS
4118 elif test $ac_cv_prog_cc_g = yes; then
4119 if test "$GCC" = yes; then
4125 if test "$GCC" = yes; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4132 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4133 if ${ac_cv_prog_cc_c89+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 ac_cv_prog_cc_c89=no
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4144 struct buf { int x; };
4145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4146 static char *e (p, i)
4152 static char *f (char * (*g) (char **, int), char **p, ...)
4157 s = g (p, va_arg (v,int));
4162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4163 function prototypes and stuff, but not '\xHH' hex character constants.
4164 These don't provoke an error unfortunately, instead are silently treated
4165 as 'x'. The following induces an error, until -std is added to get
4166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4167 array size at least. It's necessary to write '\x00'==0 to get something
4168 that's true only with -std. */
4169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4171 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4172 inside strings and character constants. */
4174 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4176 int test (int i, double x);
4177 struct s1 {int (*f) (int a);};
4178 struct s2 {int (*f) (double a);};
4179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4190 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4193 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_prog_cc_c89=$ac_arg
4197 rm -f core conftest.err conftest.$ac_objext
4198 test "x$ac_cv_prog_cc_c89" != "xno" && break
4200 rm -f conftest.$ac_ext
4205 case "x$ac_cv_prog_cc_c89" in
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208 $as_echo "none needed" >&6; } ;;
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4211 $as_echo "unsupported" >&6; } ;;
4213 CC="$CC $ac_cv_prog_cc_c89"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4215 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4217 if test "x$ac_cv_prog_cc_c89" != xno; then :
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 if test "$GCC" = yes; then
4228 RDYNAMIC="-rdynamic"
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4237 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4238 # On Suns, sometimes $CPP names a directory.
4239 if test -n "$CPP" && test -d "$CPP"; then
4242 if test -z "$CPP"; then
4243 if ${ac_cv_prog_CPP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4246 # Double quotes because CPP needs to be expanded
4247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4250 for ac_c_preproc_warn_flag in '' yes
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
4256 # On the NeXT, cc -E runs the code through the compiler's parser,
4257 # not just through cpp. "Syntax error" is here to catch this case.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 # include <limits.h>
4263 # include <assert.h>
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: fails on valid input.
4273 rm -f conftest.err conftest.i conftest.$ac_ext
4275 # OK, works on sane cases. Now check whether nonexistent headers
4276 # can be detected and how.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282 # Broken: success on invalid input.
4285 # Passes both tests.
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293 rm -f conftest.i conftest.err conftest.$ac_ext
4294 if $ac_preproc_ok; then :
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4307 $as_echo "$CPP" >&6; }
4309 for ac_c_preproc_warn_flag in '' yes
4311 # Use a header file that comes with gcc, so configuring glibc
4312 # with a fresh cross-compiler works.
4313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4314 # <limits.h> exists even on freestanding compilers.
4315 # On the NeXT, cc -E runs the code through the compiler's parser,
4316 # not just through cpp. "Syntax error" is here to catch this case.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4320 # include <limits.h>
4322 # include <assert.h>
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4329 # Broken: fails on valid input.
4332 rm -f conftest.err conftest.i conftest.$ac_ext
4334 # OK, works on sane cases. Now check whether nonexistent headers
4335 # can be detected and how.
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <ac_nonexistent.h>
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4341 # Broken: success on invalid input.
4344 # Passes both tests.
4348 rm -f conftest.err conftest.i conftest.$ac_ext
4351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4352 rm -f conftest.i conftest.err conftest.$ac_ext
4353 if $ac_preproc_ok; then :
4356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4359 See \`config.log' for more details" "$LINENO" 5; }
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4369 $as_echo_n "checking for additional special compiler flags... " >&6; }
4370 if test "$GCC" = yes
4373 alpha) addcflags="-mieee" ;;
4376 if test "x$addcflags" != x
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4379 $as_echo "$addcflags" >&6; }
4380 CFLAGS="$addcflags $CFLAGS"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4383 $as_echo "(none)" >&6; }
4389 # Check whether --with-root-prefix was given.
4390 if test "${with_root_prefix+set}" = set; then :
4391 withval=$with_root_prefix; root_prefix=$withval
4395 # Check whether --enable-maintainer-mode was given.
4396 if test "${enable_maintainer_mode+set}" = set; then :
4397 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4401 $as_echo "Disabling maintainer mode" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4405 $as_echo "Enabling maintainer mode" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4411 $as_echo "Disabling maintainer mode by default" >&6; }
4416 # Check whether --enable-symlink-install was given.
4417 if test "${enable_symlink_install+set}" = set; then :
4418 enableval=$enable_symlink_install; if test "$enableval" = "no"
4420 LINK_INSTALL_FLAGS=-f
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4422 $as_echo "Disabling symlinks for install" >&6; }
4424 LINK_INSTALL_FLAGS=-sf
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4426 $as_echo "Enabling symlinks for install" >&6; }
4430 LINK_INSTALL_FLAGS=-f
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4432 $as_echo "Disabling symlinks for install by default" >&6; }
4437 relative_symlink_defined=
4438 # Check whether --enable-relative-symlinks was given.
4439 if test "${enable_relative_symlinks+set}" = set; then :
4440 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4443 relative_symlink_defined=yes
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4445 $as_echo "Disabling relative symlinks for install" >&6; }
4447 SYMLINK_RELATIVE=--relative
4448 relative_symlink_defined=yes
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4450 $as_echo "Enabling relative symlinks for install" >&6; }
4454 # Check whether --enable-symlink-relative-symlinks was given.
4455 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4456 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4458 SYMLINK_RELATIVE=yes
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4460 $as_echo "Disabling relative symlinks for install" >&6; }
4462 SYMLINK_RELATIVE=--relative
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4464 $as_echo "Enabling relative symlinks for install" >&6; }
4468 if test -z "$relative_symlink_defined"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4472 $as_echo "Disabling relative symlinks for install by default" >&6; }
4478 # Check whether --enable-symlink-build was given.
4479 if test "${enable_symlink_build+set}" = set; then :
4480 enableval=$enable_symlink_build; if test "$enableval" = "no"
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4484 $as_echo "Disabling symlinks for build" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4488 $as_echo "Enabling symlinks for build" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4494 $as_echo "Disabling symlinks for build by default" >&6; }
4499 # Check whether --enable-verbose-makecmds was given.
4500 if test "${enable_verbose_makecmds+set}" = set; then :
4501 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4504 $as_echo "Disabling verbose make commands" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4510 $as_echo "Enabling verbose make commands" >&6; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4518 $as_echo "Disabling verbose make commands" >&6; }
4528 # Check whether --enable-compression was given.
4529 if test "${enable_compression+set}" = set; then :
4530 enableval=$enable_compression; if test "$enableval" = "no"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4533 $as_echo "Disabling compression support" >&6; }
4536 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4539 $as_echo "Enabling compression support" >&6; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4541 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4546 $as_echo "Disabling compression support by default" >&6; }
4551 # Check whether --enable-htree was given.
4552 if test "${enable_htree+set}" = set; then :
4553 enableval=$enable_htree; if test "$enableval" = "no"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4557 $as_echo "Disabling htree directory support" >&6; }
4560 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4563 $as_echo "Enabling htree directory support" >&6; }
4568 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4571 $as_echo "Enabling htree directory support by default" >&6; }
4576 E2_PKG_CONFIG_STATIC=--static
4579 # Check whether --enable-elf-shlibs was given.
4580 if test "${enable_elf_shlibs+set}" = set; then :
4581 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4584 MAKEFILE_ELF=/dev/null
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4586 $as_echo "Disabling ELF shared libraries" >&6; }
4588 E2_PKG_CONFIG_STATIC=
4590 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4593 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4599 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4601 $as_echo "Enabling ELF shared libraries" >&6; }
4605 MAKEFILE_ELF=/dev/null
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4608 $as_echo "Disabling ELF shared libraries by default" >&6; }
4614 # Check whether --enable-bsd-shlibs was given.
4615 if test "${enable_bsd_shlibs+set}" = set; then :
4616 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4619 MAKEFILE_BSDLIB=/dev/null
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4621 $as_echo "Disabling BSD shared libraries" >&6; }
4623 E2_PKG_CONFIG_STATIC=
4625 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4629 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4634 $as_echo "Enabling BSD shared libraries" >&6; }
4638 MAKEFILE_BSDLIB=/dev/null
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4641 $as_echo "Disabling BSD shared libraries by default" >&6; }
4647 # Check whether --enable-profile was given.
4648 if test "${enable_profile+set}" = set; then :
4649 enableval=$enable_profile; if test "$enableval" = "no"
4652 MAKEFILE_PROFILE=/dev/null
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4654 $as_echo "Disabling profiling libraries" >&6; }
4657 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4658 PROFILED_LIB_EXT=_p.a
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4660 $as_echo "Building profiling libraries" >&6; }
4665 MAKEFILE_PROFILE=/dev/null
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4667 $as_echo "Disabling profiling libraries by default" >&6; }
4673 # Check whether --enable-checker was given.
4674 if test "${enable_checker+set}" = set; then :
4675 enableval=$enable_checker; if test "$enableval" = "no"
4678 MAKEFILE_CHECKER=/dev/null
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4680 $as_echo "Disabling checker libraries" >&6; }
4683 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4685 $as_echo "Building checker libraries" >&6; }
4690 MAKEFILE_CHECKER=/dev/null
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4692 $as_echo "Disabling checker libraries by default" >&6; }
4703 # Check whether --enable-jbd-debug was given.
4704 if test "${enable_jbd_debug+set}" = set; then :
4705 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4708 $as_echo "Disabling journal debugging" >&6; }
4711 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4714 $as_echo "Enabling journal debugging" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4719 $as_echo "Disabling journal debugging by default" >&6; }
4723 # Check whether --enable-blkid-debug was given.
4724 if test "${enable_blkid_debug+set}" = set; then :
4725 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4728 $as_echo "Disabling blkid debugging" >&6; }
4731 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4734 $as_echo "Enabling blkid debugging" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4739 $as_echo "Disabling blkid debugging by default" >&6; }
4743 # Check whether --enable-testio-debug was given.
4744 if test "${enable_testio_debug+set}" = set; then :
4745 enableval=$enable_testio_debug;
4746 if test "$enableval" = "no"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4749 $as_echo "Disabling testio debugging" >&6; }
4753 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4756 $as_echo "Enabling testio debugging" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4761 $as_echo "Enabling testio debugging by default" >&6; }
4762 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4771 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4772 if test -n "$ac_tool_prefix"; then
4773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4778 $as_echo_n "(cached) " >&6
4782 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4804 if test -n "$PKG_CONFIG"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4806 $as_echo "$PKG_CONFIG" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4814 if test -z "$ac_cv_path_PKG_CONFIG"; then
4815 ac_pt_PKG_CONFIG=$PKG_CONFIG
4816 # Extract the first word of "pkg-config", so it can be a program name with args.
4817 set dummy pkg-config; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 case $ac_pt_PKG_CONFIG in
4825 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4847 if test -n "$ac_pt_PKG_CONFIG"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4849 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4855 if test "x$ac_pt_PKG_CONFIG" = x; then
4858 case $cross_compiling:$ac_tool_warned in
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862 ac_tool_warned=yes ;;
4864 PKG_CONFIG=$ac_pt_PKG_CONFIG
4867 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4871 if test -n "$PKG_CONFIG"; then
4872 _pkg_min_version=0.9.0
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4874 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4875 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4890 DEPPROFILED_LIBUUID=
4892 # Check whether --enable-libuuid was given.
4893 if test "${enable_libuuid+set}" = set; then :
4894 enableval=$enable_libuuid; if test "$enableval" = "no"
4896 if test -z "$PKG_CONFIG"; then
4897 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4901 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4902 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 ac_check_lib_save_LIBS=$LIBS
4906 LIBS="-luuid $LIBUUID $LIBS"
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4910 /* Override any GCC internal prototype to avoid an error.
4911 Use char because int might match the return type of a GCC
4912 builtin and then its argument prototype would still apply. */
4916 char uuid_generate ();
4920 return uuid_generate ();
4925 if ac_fn_c_try_link "$LINENO"; then :
4926 ac_cv_lib_uuid_uuid_generate=yes
4928 ac_cv_lib_uuid_uuid_generate=no
4930 rm -f core conftest.err conftest.$ac_objext \
4931 conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_check_lib_save_LIBS
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4935 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4936 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4937 LIBUUID=`$PKG_CONFIG --libs uuid`;
4938 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4940 as_fn_error $? "external uuid library not found" "$LINENO" 5
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4945 $as_echo "Disabling private uuid library" >&6; }
4947 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4949 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4950 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4951 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4952 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4954 $as_echo "Enabling private uuid library" >&6; }
4958 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4960 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4961 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4962 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4963 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4965 $as_echo "Enabling private uuid library by default" >&6; }
4978 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4985 $as_echo_n "(cached) " >&6
4989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5011 if test -n "$PKG_CONFIG"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5013 $as_echo "$PKG_CONFIG" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5021 if test -z "$ac_cv_path_PKG_CONFIG"; then
5022 ac_pt_PKG_CONFIG=$PKG_CONFIG
5023 # Extract the first word of "pkg-config", so it can be a program name with args.
5024 set dummy pkg-config; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 case $ac_pt_PKG_CONFIG in
5032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5054 if test -n "$ac_pt_PKG_CONFIG"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5056 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5062 if test "x$ac_pt_PKG_CONFIG" = x; then
5065 case $cross_compiling:$ac_tool_warned in
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069 ac_tool_warned=yes ;;
5071 PKG_CONFIG=$ac_pt_PKG_CONFIG
5074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5078 if test -n "$PKG_CONFIG"; then
5079 _pkg_min_version=0.9.0
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5081 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5084 $as_echo "yes" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5097 DEPPROFILED_LIBBLKID=
5100 # Check whether --enable-libblkid was given.
5101 if test "${enable_libblkid+set}" = set; then :
5102 enableval=$enable_libblkid; if test "$enableval" = "no"
5104 if test -z "$PKG_CONFIG"; then
5105 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5109 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5110 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_check_lib_save_LIBS=$LIBS
5114 LIBS="-lblkid $LIBBLKID $LIBS"
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5118 /* Override any GCC internal prototype to avoid an error.
5119 Use char because int might match the return type of a GCC
5120 builtin and then its argument prototype would still apply. */
5124 char blkid_get_cache ();
5128 return blkid_get_cache ();
5133 if ac_fn_c_try_link "$LINENO"; then :
5134 ac_cv_lib_blkid_blkid_get_cache=yes
5136 ac_cv_lib_blkid_blkid_get_cache=no
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS=$ac_check_lib_save_LIBS
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5143 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5144 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5145 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5146 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5148 as_fn_error $? "external blkid library not found" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5153 $as_echo "Disabling private blkid library" >&6; }
5155 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5156 DEPLIBBLKID=$LIBBLKID
5157 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5158 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5159 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5160 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5161 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5164 $as_echo "Enabling private blkid library" >&6; }
5168 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5169 DEPLIBBLKID=$LIBBLKID
5170 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5171 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5172 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5173 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5174 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5177 $as_echo "Enabling private blkid library by default" >&6; }
5190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5197 $as_echo_n "(cached) " >&6
5201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5223 if test -n "$PKG_CONFIG"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5225 $as_echo "$PKG_CONFIG" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5233 if test -z "$ac_cv_path_PKG_CONFIG"; then
5234 ac_pt_PKG_CONFIG=$PKG_CONFIG
5235 # Extract the first word of "pkg-config", so it can be a program name with args.
5236 set dummy pkg-config; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5240 $as_echo_n "(cached) " >&6
5242 case $ac_pt_PKG_CONFIG in
5244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5266 if test -n "$ac_pt_PKG_CONFIG"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5274 if test "x$ac_pt_PKG_CONFIG" = x; then
5277 case $cross_compiling:$ac_tool_warned in
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5283 PKG_CONFIG=$ac_pt_PKG_CONFIG
5286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5290 if test -n "$PKG_CONFIG"; then
5291 _pkg_min_version=0.9.0
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296 $as_echo "yes" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5305 # Check whether --enable-quota was given.
5306 if test "${enable_quota+set}" = set; then :
5307 enableval=$enable_quota; if test "$enableval" = "no"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5310 $as_echo "Disabling quota support" >&6; }
5312 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5315 $as_echo "Enabling quota support" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5320 $as_echo "Disabling quota support by default" >&6; }
5324 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5325 DEPLIBQUOTA=$LIBQUOTA
5326 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5327 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5328 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5329 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5338 # Check whether --enable-backtrace was given.
5339 if test "${enable_backtrace+set}" = set; then :
5340 enableval=$enable_backtrace; if test "$enableval" = "no"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5343 $as_echo "Disabling use of backtrace" >&6; }
5344 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5348 $as_echo "Enabling use of backtrace" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5353 $as_echo "Enabling use of backtrace by default" >&6; }
5357 # Check whether --enable-debugfs was given.
5358 if test "${enable_debugfs+set}" = set; then :
5359 enableval=$enable_debugfs; if test "$enableval" = "no"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5362 $as_echo "Disabling debugfs support" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5367 $as_echo "Enabling debugfs support" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5372 $as_echo "Enabling debugfs support by default" >&6; }
5378 # Check whether --enable-imager was given.
5379 if test "${enable_imager+set}" = set; then :
5380 enableval=$enable_imager; if test "$enableval" = "no"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5383 $as_echo "Disabling e2image support" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5388 $as_echo "Enabling e2image support" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5393 $as_echo "Enabling e2image support by default" >&6; }
5399 # Check whether --enable-resizer was given.
5400 if test "${enable_resizer+set}" = set; then :
5401 enableval=$enable_resizer; if test "$enableval" = "no"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5404 $as_echo "Disabling e2resize support" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5409 $as_echo "Enabling e2resize support" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5414 $as_echo "Enabling e2resize support by default" >&6; }
5420 # Check whether --enable-defrag was given.
5421 if test "${enable_defrag+set}" = set; then :
5422 enableval=$enable_defrag; if test "$enableval" = "no"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5425 $as_echo "Disabling e4defrag support" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5430 $as_echo "Enabling e4defrag support" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5435 $as_echo "Enabling e4defrag support by default" >&6; }
5441 # Check whether --enable-fsck was given.
5442 if test "${enable_fsck+set}" = set; then :
5443 enableval=$enable_fsck; if test "$enableval" = "no"
5445 FSCK_PROG='' FSCK_MAN=''
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5447 $as_echo "Not building fsck wrapper" >&6; }
5449 FSCK_PROG=fsck FSCK_MAN=fsck.8
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5451 $as_echo "Building fsck wrapper" >&6; }
5457 FSCK_PROG='' FSCK_MAN=''
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5459 $as_echo "Not building fsck wrapper by default" >&6; }
5462 FSCK_PROG=fsck FSCK_MAN=fsck.8
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5464 $as_echo "Building fsck wrapper by default" >&6; }
5471 # Check whether --enable-e2initrd-helper was given.
5472 if test "${enable_e2initrd_helper+set}" = set; then :
5473 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5475 E2INITRD_PROG='' E2INITRD_MAN=''
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5477 $as_echo "Not building e2initrd helper" >&6; }
5479 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5481 $as_echo "Building e2initrd helper" >&6; }
5485 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5487 $as_echo "Building e2initrd helper by default" >&6; }
5493 # Check whether --enable-tls was given.
5494 if test "${enable_tls+set}" = set; then :
5495 enableval=$enable_tls; if test "$enableval" = "no"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5499 $as_echo "Disabling thread local support" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5503 $as_echo "Enabling thread local support" >&6; }
5507 if test -n "$WITH_DIET_LIBC"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5511 $as_echo "Diet libc does not support thread local support" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5515 $as_echo "Try using thread local support by default" >&6; }
5520 if test "$try_tls" = "yes"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5524 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5525 if ${ac_cv_tls+:} false; then :
5526 $as_echo_n "(cached) " >&6
5529 ax_tls_keywords="__thread __declspec(thread) none"
5530 for ax_tls_keyword in $ax_tls_keywords; do
5531 case $ax_tls_keyword in
5532 none) ac_cv_tls=none ; break ;;
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5539 static $ax_tls_keyword int bar;
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_tls=$ax_tls_keyword ; break
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 if test "$ac_cv_tls" != "none"; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define TLS $ac_cv_tls
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5571 $as_echo "$ac_cv_tls" >&6; }
5575 # Check whether --enable-uuidd was given.
5576 if test "${enable_uuidd+set}" = set; then :
5577 enableval=$enable_uuidd; if test "$enableval" = "no"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5580 $as_echo "Not building uuidd" >&6; }
5583 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5587 $as_echo "Building uuidd" >&6; }
5591 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5595 $as_echo "Building uuidd by default" >&6; }
5600 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5602 GETTEXT_PACKAGE=e2fsprogs
5604 VERSION="$E2FSPROGS_VERSION"
5607 cat >>confdefs.h <<_ACEOF
5608 #define PACKAGE "$PACKAGE"
5612 cat >>confdefs.h <<_ACEOF
5613 #define VERSION "$VERSION"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5623 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5624 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 cat >conftest.make <<\_ACEOF
5630 @echo '@@@%%%=$(MAKE)=@@@%%%'
5632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5635 eval ac_cv_prog_make_${ac_make}_set=yes;;
5637 eval ac_cv_prog_make_${ac_make}_set=no;;
5641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 SET_MAKE="MAKE=${MAKE-make}"
5651 # Find a good install program. We prefer a C program (faster),
5652 # so one script is as good as another. But avoid the broken or
5653 # incompatible versions:
5654 # SysV /etc/install, /usr/sbin/install
5655 # SunOS /usr/etc/install
5656 # IRIX /sbin/install
5658 # AmigaOS /C/install, which installs bootblocks on floppy discs
5659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5662 # OS/2's system install, which has a completely different semantic
5663 # ./install, which can be erroneously created by make from ./install.sh.
5664 # Reject install programs that cannot install multiple files.
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5666 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5667 if test -z "$INSTALL"; then
5668 if ${ac_cv_path_install+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 # Account for people who put trailing slashes in PATH elements.
5677 case $as_dir/ in #((
5678 ./ | .// | /[cC]/* | \
5679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5683 # OSF1 and SCO ODT 3.0 have their own names for install.
5684 # Don't use installbsd from OSF since it installs stuff as root
5686 for ac_prog in ginstall scoinst install; do
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5689 if test $ac_prog = install &&
5690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5691 # AIX install. It has an incompatible calling convention.
5693 elif test $ac_prog = install &&
5694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5695 # program-specific install script used by HP pwplus--don't use.
5698 rm -rf conftest.one conftest.two conftest.dir
5699 echo one > conftest.one
5700 echo two > conftest.two
5702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5703 test -s conftest.one && test -s conftest.two &&
5704 test -s conftest.dir/conftest.one &&
5705 test -s conftest.dir/conftest.two
5707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5720 rm -rf conftest.one conftest.two conftest.dir
5723 if test "${ac_cv_path_install+set}" = set; then
5724 INSTALL=$ac_cv_path_install
5726 # As a last resort, use the slow shell script. Don't cache a
5727 # value for INSTALL within a source directory, because that will
5728 # break other packages using the cache if that directory is
5729 # removed, or if the value is a relative name.
5730 INSTALL=$ac_install_sh
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5734 $as_echo "$INSTALL" >&6; }
5736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5737 # It thinks the first close brace ends the variable substitution.
5738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5746 if test -n "$ac_aux_dir"; then
5747 case "$ac_aux_dir" in
5748 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5749 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5752 if test -z "$MKINSTALLDIRS"; then
5753 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5759 $as_echo_n "checking whether NLS is requested... " >&6; }
5760 # Check whether --enable-nls was given.
5761 if test "${enable_nls+set}" = set; then :
5762 enableval=$enable_nls; USE_NLS=$enableval
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5768 $as_echo "$USE_NLS" >&6; }
5775 # Prepare PATH_SEPARATOR.
5776 # The user is always right.
5777 if test "${PATH_SEPARATOR+set}" != set; then
5778 echo "#! /bin/sh" >conf$$.sh
5779 echo "exit 0" >>conf$$.sh
5781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5789 # Find out how to test for executable files. Don't use a zero-byte file,
5790 # as systems may use methods other than mode bits to determine executability.
5791 cat >conf$$.file <<_ASEOF
5795 chmod +x conf$$.file
5796 if test -x conf$$.file >/dev/null 2>&1; then
5797 ac_executable_p="test -x"
5799 ac_executable_p="test -f"
5803 # Extract the first word of "msgfmt", so it can be a program name with args.
5804 set dummy msgfmt; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_path_MSGFMT+:} false; then :
5808 $as_echo_n "(cached) " >&6
5812 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5815 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5816 for ac_dir in $PATH; do
5818 test -z "$ac_dir" && ac_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5821 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5822 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5823 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5830 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5834 MSGFMT="$ac_cv_path_MSGFMT"
5835 if test "$MSGFMT" != ":"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5837 $as_echo "$MSGFMT" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5844 set dummy gmsgfmt; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_path_GMSGFMT+:} false; then :
5848 $as_echo_n "(cached) " >&6
5852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5874 GMSGFMT=$ac_cv_path_GMSGFMT
5875 if test -n "$GMSGFMT"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5877 $as_echo "$GMSGFMT" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5886 # Prepare PATH_SEPARATOR.
5887 # The user is always right.
5888 if test "${PATH_SEPARATOR+set}" != set; then
5889 echo "#! /bin/sh" >conf$$.sh
5890 echo "exit 0" >>conf$$.sh
5892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5900 # Find out how to test for executable files. Don't use a zero-byte file,
5901 # as systems may use methods other than mode bits to determine executability.
5902 cat >conf$$.file <<_ASEOF
5906 chmod +x conf$$.file
5907 if test -x conf$$.file >/dev/null 2>&1; then
5908 ac_executable_p="test -x"
5910 ac_executable_p="test -f"
5914 # Extract the first word of "xgettext", so it can be a program name with args.
5915 set dummy xgettext; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_path_XGETTEXT+:} false; then :
5919 $as_echo_n "(cached) " >&6
5923 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5927 for ac_dir in $PATH; do
5929 test -z "$ac_dir" && ac_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5932 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5933 (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
5934 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5941 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5945 XGETTEXT="$ac_cv_path_XGETTEXT"
5946 if test "$XGETTEXT" != ":"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5948 $as_echo "$XGETTEXT" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5957 # Prepare PATH_SEPARATOR.
5958 # The user is always right.
5959 if test "${PATH_SEPARATOR+set}" != set; then
5960 echo "#! /bin/sh" >conf$$.sh
5961 echo "exit 0" >>conf$$.sh
5963 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5971 # Find out how to test for executable files. Don't use a zero-byte file,
5972 # as systems may use methods other than mode bits to determine executability.
5973 cat >conf$$.file <<_ASEOF
5977 chmod +x conf$$.file
5978 if test -x conf$$.file >/dev/null 2>&1; then
5979 ac_executable_p="test -x"
5981 ac_executable_p="test -f"
5985 # Extract the first word of "msgmerge", so it can be a program name with args.
5986 set dummy msgmerge; ac_word=$2
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if ${ac_cv_path_MSGMERGE+:} false; then :
5990 $as_echo_n "(cached) " >&6
5994 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5997 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5998 for ac_dir in $PATH; do
6000 test -z "$ac_dir" && ac_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6003 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6004 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6011 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6015 MSGMERGE="$ac_cv_path_MSGMERGE"
6016 if test "$MSGMERGE" != ":"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6018 $as_echo "$MSGMERGE" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6025 if test "$GMSGFMT" != ":"; then
6026 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6027 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6030 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6032 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6037 if test "$XGETTEXT" != ":"; then
6038 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6039 (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
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6043 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6049 ac_config_commands="$ac_config_commands default-1"
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$RANLIB"; then
6061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 RANLIB=$ac_cv_prog_RANLIB
6081 if test -n "$RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6083 $as_echo "$RANLIB" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test -z "$ac_cv_prog_RANLIB"; then
6092 ac_ct_RANLIB=$RANLIB
6093 # Extract the first word of "ranlib", so it can be a program name with args.
6094 set dummy ranlib; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -n "$ac_ct_RANLIB"; then
6101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_ac_ct_RANLIB="ranlib"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6121 if test -n "$ac_ct_RANLIB"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6123 $as_echo "$ac_ct_RANLIB" >&6; }
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6129 if test "x$ac_ct_RANLIB" = x; then
6132 case $cross_compiling:$ac_tool_warned in
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6138 RANLIB=$ac_ct_RANLIB
6141 RANLIB="$ac_cv_prog_RANLIB"
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6146 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6147 if ${ac_cv_lib_cposix_strerror+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 ac_check_lib_save_LIBS=$LIBS
6151 LIBS="-lcposix $LIBS"
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6155 /* Override any GCC internal prototype to avoid an error.
6156 Use char because int might match the return type of a GCC
6157 builtin and then its argument prototype would still apply. */
6170 if ac_fn_c_try_link "$LINENO"; then :
6171 ac_cv_lib_cposix_strerror=yes
6173 ac_cv_lib_cposix_strerror=no
6175 rm -f core conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6180 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6181 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6182 LIBS="$LIBS -lcposix"
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6190 if ${ac_cv_path_GREP+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -z "$GREP"; then
6194 ac_path_GREP_found=false
6195 # Loop through the user's path and test for each of PROGNAME-LIST
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6200 test -z "$as_dir" && as_dir=.
6201 for ac_prog in grep ggrep; do
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6204 as_fn_executable_p "$ac_path_GREP" || continue
6205 # Check for GNU ac_path_GREP and select it if it is found.
6206 # Check for GNU $ac_path_GREP
6207 case `"$ac_path_GREP" --version 2>&1` in
6209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6212 $as_echo_n 0123456789 >"conftest.in"
6215 cat "conftest.in" "conftest.in" >"conftest.tmp"
6216 mv "conftest.tmp" "conftest.in"
6217 cp "conftest.in" "conftest.nl"
6218 $as_echo 'GREP' >> "conftest.nl"
6219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6221 as_fn_arith $ac_count + 1 && ac_count=$as_val
6222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6223 # Best one so far, save it but keep looking for a better one
6224 ac_cv_path_GREP="$ac_path_GREP"
6225 ac_path_GREP_max=$ac_count
6227 # 10*(2^10) chars as input seems more than enough
6228 test $ac_count -gt 10 && break
6230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6233 $ac_path_GREP_found && break 3
6238 if test -z "$ac_cv_path_GREP"; then
6239 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6242 ac_cv_path_GREP=$GREP
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6247 $as_echo "$ac_cv_path_GREP" >&6; }
6248 GREP="$ac_cv_path_GREP"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6252 $as_echo_n "checking for egrep... " >&6; }
6253 if ${ac_cv_path_EGREP+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6257 then ac_cv_path_EGREP="$GREP -E"
6259 if test -z "$EGREP"; then
6260 ac_path_EGREP_found=false
6261 # Loop through the user's path and test for each of PROGNAME-LIST
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6266 test -z "$as_dir" && as_dir=.
6267 for ac_prog in egrep; do
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6270 as_fn_executable_p "$ac_path_EGREP" || continue
6271 # Check for GNU ac_path_EGREP and select it if it is found.
6272 # Check for GNU $ac_path_EGREP
6273 case `"$ac_path_EGREP" --version 2>&1` in
6275 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6278 $as_echo_n 0123456789 >"conftest.in"
6281 cat "conftest.in" "conftest.in" >"conftest.tmp"
6282 mv "conftest.tmp" "conftest.in"
6283 cp "conftest.in" "conftest.nl"
6284 $as_echo 'EGREP' >> "conftest.nl"
6285 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6287 as_fn_arith $ac_count + 1 && ac_count=$as_val
6288 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6289 # Best one so far, save it but keep looking for a better one
6290 ac_cv_path_EGREP="$ac_path_EGREP"
6291 ac_path_EGREP_max=$ac_count
6293 # 10*(2^10) chars as input seems more than enough
6294 test $ac_count -gt 10 && break
6296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 $ac_path_EGREP_found && break 3
6304 if test -z "$ac_cv_path_EGREP"; then
6305 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6308 ac_cv_path_EGREP=$EGREP
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6314 $as_echo "$ac_cv_path_EGREP" >&6; }
6315 EGREP="$ac_cv_path_EGREP"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6319 $as_echo_n "checking for ANSI C header files... " >&6; }
6320 if ${ac_cv_header_stdc+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6338 if ac_fn_c_try_compile "$LINENO"; then :
6339 ac_cv_header_stdc=yes
6341 ac_cv_header_stdc=no
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 if test $ac_cv_header_stdc = yes; then
6346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "memchr" >/dev/null 2>&1; then :
6356 ac_cv_header_stdc=no
6362 if test $ac_cv_header_stdc = yes; then
6363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 $EGREP "free" >/dev/null 2>&1; then :
6373 ac_cv_header_stdc=no
6379 if test $ac_cv_header_stdc = yes; then
6380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6381 if test "$cross_compiling" = yes; then :
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6388 #if ((' ' & 0x0FF) == 0x020)
6389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6392 # define ISLOWER(c) \
6393 (('a' <= (c) && (c) <= 'i') \
6394 || ('j' <= (c) && (c) <= 'r') \
6395 || ('s' <= (c) && (c) <= 'z'))
6396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6404 for (i = 0; i < 256; i++)
6405 if (XOR (islower (i), ISLOWER (i))
6406 || toupper (i) != TOUPPER (i))
6411 if ac_fn_c_try_run "$LINENO"; then :
6414 ac_cv_header_stdc=no
6416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6417 conftest.$ac_objext conftest.beam conftest.$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6423 $as_echo "$ac_cv_header_stdc" >&6; }
6424 if test $ac_cv_header_stdc = yes; then
6426 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6431 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6432 if ${ac_cv_c_const+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6443 /* Ultrix mips cc rejects this sort of thing. */
6444 typedef int charset[2];
6445 const charset cs = { 0, 0 };
6446 /* SunOS 4.1.1 cc rejects this. */
6447 char const *const *pcpcc;
6449 /* NEC SVR4.0.2 mips cc rejects this. */
6450 struct point {int x, y;};
6451 static struct point const zero = {0,0};
6452 /* AIX XL C 1.02.0.0 rejects this.
6453 It does not let you subtract one const X* pointer from another in
6454 an arm of an if-expression whose if-part is not a constant
6456 const char *g = "string";
6457 pcpcc = &g + (g ? g-g : 0);
6458 /* HPUX 7.0 cc rejects these. */
6460 ppc = (char**) pcpcc;
6461 pcpcc = (char const *const *) ppc;
6462 { /* SCO 3.2v4 cc rejects this sort of thing. */
6465 char const *s = 0 ? (char *) 0 : (char const *) 0;
6470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6472 const int *foo = &x[0];
6475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6476 typedef const int *iptr;
6480 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6482 struct s { int j; const int *ap[3]; } bx;
6483 struct s *b = &bx; b->j = 5;
6485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6489 return !cs[0] && !zero.x;
6496 if ac_fn_c_try_compile "$LINENO"; then :
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6504 $as_echo "$ac_cv_c_const" >&6; }
6505 if test $ac_cv_c_const = no; then
6507 $as_echo "#define const /**/" >>confdefs.h
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6513 $as_echo_n "checking for signed... " >&6; }
6514 if ${bh_cv_c_signed+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6528 if ac_fn_c_try_compile "$LINENO"; then :
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6536 $as_echo "$bh_cv_c_signed" >&6; }
6537 if test $bh_cv_c_signed = no; then
6539 $as_echo "#define signed /**/" >>confdefs.h
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6544 $as_echo_n "checking for inline... " >&6; }
6545 if ${ac_cv_c_inline+:} false; then :
6546 $as_echo_n "(cached) " >&6
6549 for ac_kw in inline __inline__ __inline; do
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6554 static $ac_kw foo_t static_foo () {return 0; }
6555 $ac_kw foo_t foo () {return 0; }
6559 if ac_fn_c_try_compile "$LINENO"; then :
6560 ac_cv_c_inline=$ac_kw
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 test "$ac_cv_c_inline" != no && break
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6568 $as_echo "$ac_cv_c_inline" >&6; }
6570 case $ac_cv_c_inline in
6573 case $ac_cv_c_inline in
6575 *) ac_val=$ac_cv_c_inline;;
6577 cat >>confdefs.h <<_ACEOF
6579 #define inline $ac_val
6585 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6587 inttypes.h stdint.h unistd.h
6589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6590 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6593 cat >>confdefs.h <<_ACEOF
6594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6603 if test "x$ac_cv_type_off_t" = xyes; then :
6607 cat >>confdefs.h <<_ACEOF
6608 #define off_t long int
6613 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6614 if test "x$ac_cv_type_size_t" = xyes; then :
6618 cat >>confdefs.h <<_ACEOF
6619 #define size_t unsigned int
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6626 $as_echo_n "checking for long long... " >&6; }
6627 if ${ac_cv_type_long_long+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 long long ll = 1LL; int i = 63;
6636 long long llmax = (long long) -1;
6637 return ll << i | ll >> i | llmax / ll | llmax % ll;
6642 if ac_fn_c_try_link "$LINENO"; then :
6643 ac_cv_type_long_long=yes
6645 ac_cv_type_long_long=no
6647 rm -f core conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6651 $as_echo "$ac_cv_type_long_long" >&6; }
6652 if test $ac_cv_type_long_long = yes; then
6654 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6660 $as_echo_n "checking for long double... " >&6; }
6661 if ${gt_cv_c_long_double+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 if test "$GCC" = yes; then
6665 gt_cv_c_long_double=yes
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6670 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6671 long double foo = 0.0;
6672 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6673 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 gt_cv_c_long_double=yes
6686 gt_cv_c_long_double=no
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6692 $as_echo "$gt_cv_c_long_double" >&6; }
6693 if test $gt_cv_c_long_double = yes; then
6695 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6701 $as_echo_n "checking for wchar_t... " >&6; }
6702 if ${gt_cv_c_wchar_t+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6708 wchar_t foo = (wchar_t)'\0';
6717 if ac_fn_c_try_compile "$LINENO"; then :
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6725 $as_echo "$gt_cv_c_wchar_t" >&6; }
6726 if test $gt_cv_c_wchar_t = yes; then
6728 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6734 $as_echo_n "checking for wint_t... " >&6; }
6735 if ${gt_cv_c_wint_t+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6741 wint_t foo = (wchar_t)'\0';
6750 if ac_fn_c_try_compile "$LINENO"; then :
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6758 $as_echo "$gt_cv_c_wint_t" >&6; }
6759 if test $gt_cv_c_wint_t = yes; then
6761 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6767 $as_echo_n "checking for inttypes.h... " >&6; }
6768 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <sys/types.h>
6774 #include <inttypes.h>
6778 uintmax_t i = (uintmax_t) -1;
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784 jm_ac_cv_header_inttypes_h=yes
6786 jm_ac_cv_header_inttypes_h=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6791 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6792 if test $jm_ac_cv_header_inttypes_h = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6802 $as_echo_n "checking for stdint.h... " >&6; }
6803 if ${jm_ac_cv_header_stdint_h+:} false; then :
6804 $as_echo_n "(cached) " >&6
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6813 uintmax_t i = (uintmax_t) -1;
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 jm_ac_cv_header_stdint_h=yes
6821 jm_ac_cv_header_stdint_h=no
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6826 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6827 if test $jm_ac_cv_header_stdint_h = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define HAVE_STDINT_H_WITH_UINTMAX 1
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6839 $as_echo_n "checking for intmax_t... " >&6; }
6840 if ${gt_cv_c_intmax_t+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6848 #if HAVE_STDINT_H_WITH_UINTMAX
6851 #if HAVE_INTTYPES_H_WITH_UINTMAX
6852 #include <inttypes.h>
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 gt_cv_c_intmax_t=yes
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6871 $as_echo "$gt_cv_c_intmax_t" >&6; }
6872 if test $gt_cv_c_intmax_t = yes; then
6874 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6881 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6882 if ${gt_cv_func_printf_posix+:} false; then :
6883 $as_echo_n "(cached) " >&6
6886 if test "$cross_compiling" = yes; then :
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6891 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "notposix" >/dev/null 2>&1; then :
6898 gt_cv_func_printf_posix="guessing no"
6900 gt_cv_func_printf_posix="guessing yes"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6911 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6912 dollar expansion (possibly an autoconf bug). */
6913 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6914 static char buf[100];
6917 sprintf (buf, format, 33, 55);
6918 return (strcmp (buf, "55 33") != 0);
6921 if ac_fn_c_try_run "$LINENO"; then :
6922 gt_cv_func_printf_posix=yes
6924 gt_cv_func_printf_posix=no
6926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6927 conftest.$ac_objext conftest.beam conftest.$ac_ext
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6933 $as_echo "$gt_cv_func_printf_posix" >&6; }
6934 case $gt_cv_func_printf_posix in
6937 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6943 # for constant arguments. Useless!
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6945 $as_echo_n "checking for working alloca.h... " >&6; }
6946 if ${ac_cv_working_alloca_h+:} false; then :
6947 $as_echo_n "(cached) " >&6
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6955 char *p = (char *) alloca (2 * sizeof (int));
6961 if ac_fn_c_try_link "$LINENO"; then :
6962 ac_cv_working_alloca_h=yes
6964 ac_cv_working_alloca_h=no
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6970 $as_echo "$ac_cv_working_alloca_h" >&6; }
6971 if test $ac_cv_working_alloca_h = yes; then
6973 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6978 $as_echo_n "checking for alloca... " >&6; }
6979 if ${ac_cv_func_alloca_works+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6985 # define alloca __builtin_alloca
6988 # include <malloc.h>
6989 # define alloca _alloca
6991 # ifdef HAVE_ALLOCA_H
6992 # include <alloca.h>
6997 # ifndef alloca /* predefined by HP cc +Olibcalls */
6998 void *alloca (size_t);
7008 char *p = (char *) alloca (1);
7014 if ac_fn_c_try_link "$LINENO"; then :
7015 ac_cv_func_alloca_works=yes
7017 ac_cv_func_alloca_works=no
7019 rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7023 $as_echo "$ac_cv_func_alloca_works" >&6; }
7025 if test $ac_cv_func_alloca_works = yes; then
7027 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7030 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7031 # that cause trouble. Some versions do not even contain alloca or
7032 # contain a buggy version. If you still want to use their alloca,
7033 # use ar to extract alloca.o from them instead of compiling alloca.c.
7035 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7037 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7041 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7042 if ${ac_cv_os_cray+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 #if defined CRAY && ! defined CRAY2
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "webecray" >/dev/null 2>&1; then :
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7064 $as_echo "$ac_cv_os_cray" >&6; }
7065 if test $ac_cv_os_cray = yes; then
7066 for ac_func in _getb67 GETB67 getb67; do
7067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7069 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7071 cat >>confdefs.h <<_ACEOF
7072 #define CRAY_STACKSEG_END $ac_func
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7082 $as_echo_n "checking stack direction for C alloca... " >&6; }
7083 if ${ac_cv_c_stack_direction+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test "$cross_compiling" = yes; then :
7087 ac_cv_c_stack_direction=0
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 $ac_includes_default
7093 find_stack_direction (int *addr, int depth)
7098 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7099 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7104 main (int argc, char **argv)
7106 return find_stack_direction (0, argc + !argv + 20) < 0;
7109 if ac_fn_c_try_run "$LINENO"; then :
7110 ac_cv_c_stack_direction=1
7112 ac_cv_c_stack_direction=-1
7114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7115 conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7120 $as_echo "$ac_cv_c_stack_direction" >&6; }
7121 cat >>confdefs.h <<_ACEOF
7122 #define STACK_DIRECTION $ac_cv_c_stack_direction
7131 for ac_header in $ac_header_list
7133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7137 cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 for ac_func in getpagesize
7154 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7155 if test "x$ac_cv_func_getpagesize" = xyes; then :
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_GETPAGESIZE 1
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7164 $as_echo_n "checking for working mmap... " >&6; }
7165 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 if test "$cross_compiling" = yes; then :
7169 ac_cv_func_mmap_fixed_mapped=no
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 $ac_includes_default
7174 /* malloc might have been renamed as rpl_malloc. */
7177 /* Thanks to Mike Haertel and Jim Avera for this test.
7178 Here is a matrix of mmap possibilities:
7179 mmap private not fixed
7180 mmap private fixed at somewhere currently unmapped
7181 mmap private fixed at somewhere already mapped
7182 mmap shared not fixed
7183 mmap shared fixed at somewhere currently unmapped
7184 mmap shared fixed at somewhere already mapped
7185 For private mappings, we should verify that changes cannot be read()
7186 back from the file, nor mmap's back from the file at a different
7187 address. (There have been systems where private was not correctly
7188 implemented like the infamous i386 svr4.0, and systems where the
7189 VM page cache was not coherent with the file system buffer cache
7190 like early versions of FreeBSD and possibly contemporary NetBSD.)
7191 For shared mappings, we should conversely verify that changes get
7192 propagated back to all the places they're supposed to be.
7194 Grep wants private fixed already mapped.
7195 The main things grep needs to know about mmap are:
7196 * does it exist and is it safe to write into the mmap'd area
7197 * how to use it (BSD variants) */
7200 #include <sys/mman.h>
7202 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7206 /* This mess was copied from the GNU getpagesize.h. */
7207 #ifndef HAVE_GETPAGESIZE
7208 # ifdef _SC_PAGESIZE
7209 # define getpagesize() sysconf(_SC_PAGESIZE)
7210 # else /* no _SC_PAGESIZE */
7211 # ifdef HAVE_SYS_PARAM_H
7212 # include <sys/param.h>
7213 # ifdef EXEC_PAGESIZE
7214 # define getpagesize() EXEC_PAGESIZE
7215 # else /* no EXEC_PAGESIZE */
7217 # define getpagesize() NBPG * CLSIZE
7220 # endif /* no CLSIZE */
7221 # else /* no NBPG */
7223 # define getpagesize() NBPC
7224 # else /* no NBPC */
7226 # define getpagesize() PAGESIZE
7227 # endif /* PAGESIZE */
7228 # endif /* no NBPC */
7229 # endif /* no NBPG */
7230 # endif /* no EXEC_PAGESIZE */
7231 # else /* no HAVE_SYS_PARAM_H */
7232 # define getpagesize() 8192 /* punt totally */
7233 # endif /* no HAVE_SYS_PARAM_H */
7234 # endif /* no _SC_PAGESIZE */
7236 #endif /* no HAVE_GETPAGESIZE */
7241 char *data, *data2, *data3;
7246 pagesize = getpagesize ();
7248 /* First, make a file with some known garbage in it. */
7249 data = (char *) malloc (pagesize);
7252 for (i = 0; i < pagesize; ++i)
7253 *(data + i) = rand ();
7255 fd = creat ("conftest.mmap", 0600);
7258 if (write (fd, data, pagesize) != pagesize)
7262 /* Next, check that the tail of a page is zero-filled. File must have
7263 non-zero length, otherwise we risk SIGBUS for entire page. */
7264 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7268 if (write (fd2, cdata2, 1) != 1)
7270 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7271 if (data2 == MAP_FAILED)
7273 for (i = 0; i < pagesize; ++i)
7277 if (munmap (data2, pagesize))
7280 /* Next, try to mmap the file at a fixed address which already has
7281 something else allocated at it. If we can, also make sure that
7282 we see the same garbage. */
7283 fd = open ("conftest.mmap", O_RDWR);
7286 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7287 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7289 for (i = 0; i < pagesize; ++i)
7290 if (*(data + i) != *(data2 + i))
7293 /* Finally, make sure that changes to the mapped area do not
7294 percolate back to the file as seen by read(). (This is a bug on
7295 some variants of i386 svr4.0.) */
7296 for (i = 0; i < pagesize; ++i)
7297 *(data2 + i) = *(data2 + i) + 1;
7298 data3 = (char *) malloc (pagesize);
7301 if (read (fd, data3, pagesize) != pagesize)
7303 for (i = 0; i < pagesize; ++i)
7304 if (*(data + i) != *(data3 + i))
7310 if ac_fn_c_try_run "$LINENO"; then :
7311 ac_cv_func_mmap_fixed_mapped=yes
7313 ac_cv_func_mmap_fixed_mapped=no
7315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7316 conftest.$ac_objext conftest.beam conftest.$ac_ext
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7321 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7322 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7324 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7327 rm -f conftest.mmap conftest.txt
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7331 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7332 if ${ac_cv_gnu_library_2_1+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7338 #include <features.h>
7339 #ifdef __GNU_LIBRARY__
7340 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7347 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7348 ac_cv_gnu_library_2_1=yes
7350 ac_cv_gnu_library_2_1=no
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7358 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7360 GLIBC21="$ac_cv_gnu_library_2_1"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7366 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7367 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7368 $as_echo_n "(cached) " >&6
7371 if test "$cross_compiling" = yes; then :
7373 # Guess based on the CPU.
7375 alpha* | i3456786 | m68k | s390*)
7376 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7378 gt_cv_int_divbyzero_sigfpe="guessing no";;
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7390 sigfpe_handler (int sig)
7392 sigfpe_handler (sig) int sig;
7395 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7396 exit (sig != SIGFPE);
7406 signal (SIGFPE, sigfpe_handler);
7407 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7408 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7409 signal (SIGTRAP, sigfpe_handler);
7411 /* Linux/SPARC yields signal SIGILL. */
7412 #if defined (__sparc__) && defined (__linux__)
7413 signal (SIGILL, sigfpe_handler);
7422 if ac_fn_c_try_run "$LINENO"; then :
7423 gt_cv_int_divbyzero_sigfpe=yes
7425 gt_cv_int_divbyzero_sigfpe=no
7427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7428 conftest.$ac_objext conftest.beam conftest.$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7434 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7435 case "$gt_cv_int_divbyzero_sigfpe" in
7440 cat >>confdefs.h <<_ACEOF
7441 #define INTDIV0_RAISES_SIGFPE $value
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7447 $as_echo_n "checking for unsigned long long... " >&6; }
7448 if ${ac_cv_type_unsigned_long_long+:} false; then :
7449 $as_echo_n "(cached) " >&6
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 unsigned long long ull = 1ULL; int i = 63;
7457 unsigned long long ullmax = (unsigned long long) -1;
7458 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 ac_cv_type_unsigned_long_long=yes
7466 ac_cv_type_unsigned_long_long=no
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7472 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7473 if test $ac_cv_type_unsigned_long_long = yes; then
7475 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7482 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7484 test $ac_cv_type_unsigned_long_long = yes \
7485 && ac_type='unsigned long long' \
7486 || ac_type='unsigned long'
7488 cat >>confdefs.h <<_ACEOF
7489 #define uintmax_t $ac_type
7494 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7500 $as_echo_n "checking for inttypes.h... " >&6; }
7501 if ${gt_cv_header_inttypes_h+:} false; then :
7502 $as_echo_n "(cached) " >&6
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7508 #include <inttypes.h>
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 gt_cv_header_inttypes_h=yes
7520 gt_cv_header_inttypes_h=no
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7526 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7527 if test $gt_cv_header_inttypes_h = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_INTTYPES_H 1
7537 if test $gt_cv_header_inttypes_h = yes; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7539 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7540 if ${gt_cv_inttypes_pri_broken+:} false; then :
7541 $as_echo_n "(cached) " >&6
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <inttypes.h>
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 gt_cv_inttypes_pri_broken=no
7562 gt_cv_inttypes_pri_broken=yes
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7568 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7570 if test "$gt_cv_inttypes_pri_broken" = yes; then
7572 cat >>confdefs.h <<_ACEOF
7573 #define PRI_MACROS_BROKEN 1
7579 for ac_header in stdint.h
7581 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7582 if test "x$ac_cv_header_stdint_h" = xyes; then :
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_STDINT_H 1
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7592 $as_echo_n "checking for SIZE_MAX... " >&6; }
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607 $EGREP "Found it" >/dev/null 2>&1; then :
7612 if test -z "$result"; then
7613 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7620 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7627 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7634 if test "$fits_in_uint" = 1; then
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7639 extern unsigned long foo;
7649 if ac_fn_c_try_compile "$LINENO"; then :
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 if test -z "$result"; then
7655 if test "$fits_in_uint" = 1; then
7656 result="$res_hi$res_lo"U
7658 result="$res_hi$res_lo"UL
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7665 $as_echo "$result" >&6; }
7666 if test "$result" != yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define SIZE_MAX $result
7676 for ac_header in stdint.h
7678 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7679 if test "x$ac_cv_header_stdint_h" = xyes; then :
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_STDINT_H 1
7690 if test "X$prefix" = "XNONE"; then
7691 acl_final_prefix="$ac_default_prefix"
7693 acl_final_prefix="$prefix"
7695 if test "X$exec_prefix" = "XNONE"; then
7696 acl_final_exec_prefix='${prefix}'
7698 acl_final_exec_prefix="$exec_prefix"
7700 acl_save_prefix="$prefix"
7701 prefix="$acl_final_prefix"
7702 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7703 prefix="$acl_save_prefix"
7706 # Check whether --with-gnu-ld was given.
7707 if test "${with_gnu_ld+set}" = set; then :
7708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7713 # Prepare PATH_SEPARATOR.
7714 # The user is always right.
7715 if test "${PATH_SEPARATOR+set}" != set; then
7716 echo "#! /bin/sh" >conf$$.sh
7717 echo "exit 0" >>conf$$.sh
7719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7727 if test "$GCC" = yes; then
7728 # Check if gcc -print-prog-name=ld gives a path.
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7730 $as_echo_n "checking for ld used by GCC... " >&6; }
7733 # gcc leaves a trailing carriage return which upsets mingw
7734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7739 # Accept absolute paths.
7740 [\\/]* | [A-Za-z]:[\\/]*)
7741 re_direlt='/[^/][^/]*/\.\./'
7742 # Canonicalize the path of ld
7743 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7744 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7745 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7747 test -z "$LD" && LD="$ac_prog"
7750 # If it fails, then pretend we aren't using GCC.
7754 # If it is relative, then search for the first ld in PATH.
7758 elif test "$with_gnu_ld" = yes; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7760 $as_echo_n "checking for GNU ld... " >&6; }
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7763 $as_echo_n "checking for non-GNU ld... " >&6; }
7765 if ${acl_cv_path_LD+:} false; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -z "$LD"; then
7769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7770 for ac_dir in $PATH; do
7771 test -z "$ac_dir" && ac_dir=.
7772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7773 acl_cv_path_LD="$ac_dir/$ac_prog"
7774 # Check to see if the program is GNU ld. I'd rather use --version,
7775 # but apparently some GNU ld's only accept -v.
7776 # Break only if it was the GNU/non-GNU ld that we prefer.
7777 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7778 *GNU* | *'with BFD'*)
7779 test "$with_gnu_ld" != no && break ;;
7781 test "$with_gnu_ld" != yes && break ;;
7787 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7791 LD="$acl_cv_path_LD"
7792 if test -n "$LD"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7794 $as_echo "$LD" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7802 if ${acl_cv_prog_gnu_ld+:} false; then :
7803 $as_echo_n "(cached) " >&6
7805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7806 case `$LD -v 2>&1 </dev/null` in
7807 *GNU* | *'with BFD'*)
7808 acl_cv_prog_gnu_ld=yes ;;
7810 acl_cv_prog_gnu_ld=no ;;
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7814 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7815 with_gnu_ld=$acl_cv_prog_gnu_ld
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7820 $as_echo_n "checking for shared library run path origin... " >&6; }
7821 if ${acl_cv_rpath+:} false; then :
7822 $as_echo_n "(cached) " >&6
7825 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7826 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7833 $as_echo "$acl_cv_rpath" >&6; }
7835 libext="$acl_cv_libext"
7836 shlibext="$acl_cv_shlibext"
7837 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7838 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7839 hardcode_direct="$acl_cv_hardcode_direct"
7840 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7841 # Check whether --enable-rpath was given.
7842 if test "${enable_rpath+set}" = set; then :
7843 enableval=$enable_rpath; :
7857 acl_save_prefix="$prefix"
7858 prefix="$acl_final_prefix"
7859 acl_save_exec_prefix="$exec_prefix"
7860 exec_prefix="$acl_final_exec_prefix"
7862 eval additional_includedir=\"$includedir\"
7863 eval additional_libdir=\"$libdir\"
7865 exec_prefix="$acl_save_exec_prefix"
7866 prefix="$acl_save_prefix"
7869 # Check whether --with-libiconv-prefix was given.
7870 if test "${with_libiconv_prefix+set}" = set; then :
7871 withval=$with_libiconv_prefix;
7872 if test "X$withval" = "Xno"; then
7875 if test "X$withval" = "X"; then
7877 acl_save_prefix="$prefix"
7878 prefix="$acl_final_prefix"
7879 acl_save_exec_prefix="$exec_prefix"
7880 exec_prefix="$acl_final_exec_prefix"
7882 eval additional_includedir=\"$includedir\"
7883 eval additional_libdir=\"$libdir\"
7885 exec_prefix="$acl_save_exec_prefix"
7886 prefix="$acl_save_prefix"
7889 additional_includedir="$withval/include"
7890 additional_libdir="$withval/lib"
7901 names_already_handled=
7902 names_next_round='iconv '
7903 while test -n "$names_next_round"; do
7904 names_this_round="$names_next_round"
7906 for name in $names_this_round; do
7908 for n in $names_already_handled; do
7909 if test "$n" = "$name"; then
7914 if test -z "$already_handled"; then
7915 names_already_handled="$names_already_handled $name"
7916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7917 eval value=\"\$HAVE_LIB$uppername\"
7918 if test -n "$value"; then
7919 if test "$value" = yes; then
7920 eval value=\"\$LIB$uppername\"
7921 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7922 eval value=\"\$LTLIB$uppername\"
7923 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7932 if test $use_additional = yes; then
7933 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7934 found_dir="$additional_libdir"
7935 found_so="$additional_libdir/lib$name.$shlibext"
7936 if test -f "$additional_libdir/lib$name.la"; then
7937 found_la="$additional_libdir/lib$name.la"
7940 if test -f "$additional_libdir/lib$name.$libext"; then
7941 found_dir="$additional_libdir"
7942 found_a="$additional_libdir/lib$name.$libext"
7943 if test -f "$additional_libdir/lib$name.la"; then
7944 found_la="$additional_libdir/lib$name.la"
7949 if test "X$found_dir" = "X"; then
7950 for x in $LDFLAGS $LTLIBICONV; do
7952 acl_save_prefix="$prefix"
7953 prefix="$acl_final_prefix"
7954 acl_save_exec_prefix="$exec_prefix"
7955 exec_prefix="$acl_final_exec_prefix"
7957 exec_prefix="$acl_save_exec_prefix"
7958 prefix="$acl_save_prefix"
7962 dir=`echo "X$x" | sed -e 's/^X-L//'`
7963 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7965 found_so="$dir/lib$name.$shlibext"
7966 if test -f "$dir/lib$name.la"; then
7967 found_la="$dir/lib$name.la"
7970 if test -f "$dir/lib$name.$libext"; then
7972 found_a="$dir/lib$name.$libext"
7973 if test -f "$dir/lib$name.la"; then
7974 found_la="$dir/lib$name.la"
7980 if test "X$found_dir" != "X"; then
7985 if test "X$found_dir" != "X"; then
7986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7987 if test "X$found_so" != "X"; then
7988 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7992 for x in $ltrpathdirs; do
7993 if test "X$x" = "X$found_dir"; then
7998 if test -z "$haveit"; then
7999 ltrpathdirs="$ltrpathdirs $found_dir"
8001 if test "$hardcode_direct" = yes; then
8002 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8004 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8007 for x in $rpathdirs; do
8008 if test "X$x" = "X$found_dir"; then
8013 if test -z "$haveit"; then
8014 rpathdirs="$rpathdirs $found_dir"
8018 for x in $LDFLAGS $LIBICONV; do
8020 acl_save_prefix="$prefix"
8021 prefix="$acl_final_prefix"
8022 acl_save_exec_prefix="$exec_prefix"
8023 exec_prefix="$acl_final_exec_prefix"
8025 exec_prefix="$acl_save_exec_prefix"
8026 prefix="$acl_save_prefix"
8028 if test "X$x" = "X-L$found_dir"; then
8033 if test -z "$haveit"; then
8034 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8036 if test "$hardcode_minus_L" != no; then
8037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8039 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8045 if test "X$found_a" != "X"; then
8046 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8051 additional_includedir=
8052 case "$found_dir" in
8054 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8055 additional_includedir="$basedir/include"
8058 if test "X$additional_includedir" != "X"; then
8059 if test "X$additional_includedir" != "X/usr/include"; then
8061 if test "X$additional_includedir" = "X/usr/local/include"; then
8062 if test -n "$GCC"; then
8064 linux*) haveit=yes;;
8068 if test -z "$haveit"; then
8069 for x in $CPPFLAGS $INCICONV; do
8071 acl_save_prefix="$prefix"
8072 prefix="$acl_final_prefix"
8073 acl_save_exec_prefix="$exec_prefix"
8074 exec_prefix="$acl_final_exec_prefix"
8076 exec_prefix="$acl_save_exec_prefix"
8077 prefix="$acl_save_prefix"
8079 if test "X$x" = "X-I$additional_includedir"; then
8084 if test -z "$haveit"; then
8085 if test -d "$additional_includedir"; then
8086 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8092 if test -n "$found_la"; then
8093 save_libdir="$libdir"
8095 */* | *\\*) . "$found_la" ;;
8096 *) . "./$found_la" ;;
8098 libdir="$save_libdir"
8099 for dep in $dependency_libs; do
8102 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8103 if test "X$additional_libdir" != "X/usr/lib"; then
8105 if test "X$additional_libdir" = "X/usr/local/lib"; then
8106 if test -n "$GCC"; then
8108 linux*) haveit=yes;;
8112 if test -z "$haveit"; then
8114 for x in $LDFLAGS $LIBICONV; do
8116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 acl_save_exec_prefix="$exec_prefix"
8119 exec_prefix="$acl_final_exec_prefix"
8121 exec_prefix="$acl_save_exec_prefix"
8122 prefix="$acl_save_prefix"
8124 if test "X$x" = "X-L$additional_libdir"; then
8129 if test -z "$haveit"; then
8130 if test -d "$additional_libdir"; then
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8135 for x in $LDFLAGS $LTLIBICONV; do
8137 acl_save_prefix="$prefix"
8138 prefix="$acl_final_prefix"
8139 acl_save_exec_prefix="$exec_prefix"
8140 exec_prefix="$acl_final_exec_prefix"
8142 exec_prefix="$acl_save_exec_prefix"
8143 prefix="$acl_save_prefix"
8145 if test "X$x" = "X-L$additional_libdir"; then
8150 if test -z "$haveit"; then
8151 if test -d "$additional_libdir"; then
8152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8159 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8160 if test "$enable_rpath" != no; then
8162 for x in $rpathdirs; do
8163 if test "X$x" = "X$dir"; then
8168 if test -z "$haveit"; then
8169 rpathdirs="$rpathdirs $dir"
8172 for x in $ltrpathdirs; do
8173 if test "X$x" = "X$dir"; then
8178 if test -z "$haveit"; then
8179 ltrpathdirs="$ltrpathdirs $dir"
8184 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8187 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8190 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8191 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8197 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8204 if test "X$rpathdirs" != "X"; then
8205 if test -n "$hardcode_libdir_separator"; then
8207 for found_dir in $rpathdirs; do
8208 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8210 acl_save_libdir="$libdir"
8212 eval flag=\"$hardcode_libdir_flag_spec\"
8213 libdir="$acl_save_libdir"
8214 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8216 for found_dir in $rpathdirs; do
8217 acl_save_libdir="$libdir"
8219 eval flag=\"$hardcode_libdir_flag_spec\"
8220 libdir="$acl_save_libdir"
8221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8225 if test "X$ltrpathdirs" != "X"; then
8226 for found_dir in $ltrpathdirs; do
8227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8238 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8239 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8243 $as_echo "#define ptrdiff_t long" >>confdefs.h
8248 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8249 stdlib.h string.h unistd.h sys/param.h
8251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8263 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8270 cat >>confdefs.h <<_ACEOF
8271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8280 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8281 if ${ac_cv_have_decl__snprintf+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8292 char *p = (char *) _snprintf;
8299 if ac_fn_c_try_compile "$LINENO"; then :
8300 ac_cv_have_decl__snprintf=yes
8302 ac_cv_have_decl__snprintf=no
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8307 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8308 if test $ac_cv_have_decl__snprintf = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_DECL__SNPRINTF $gt_value
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8321 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8322 if ${ac_cv_have_decl__snwprintf+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8333 char *p = (char *) _snwprintf;
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 ac_cv_have_decl__snwprintf=yes
8343 ac_cv_have_decl__snwprintf=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8348 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8349 if test $ac_cv_have_decl__snwprintf = yes; then
8355 cat >>confdefs.h <<_ACEOF
8356 #define HAVE_DECL__SNWPRINTF $gt_value
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8363 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8364 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8374 #ifndef feof_unlocked
8375 char *p = (char *) feof_unlocked;
8382 if ac_fn_c_try_compile "$LINENO"; then :
8383 ac_cv_have_decl_feof_unlocked=yes
8385 ac_cv_have_decl_feof_unlocked=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8390 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8391 if test $ac_cv_have_decl_feof_unlocked = yes; then
8397 cat >>confdefs.h <<_ACEOF
8398 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8404 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8405 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8415 #ifndef fgets_unlocked
8416 char *p = (char *) fgets_unlocked;
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 ac_cv_have_decl_fgets_unlocked=yes
8426 ac_cv_have_decl_fgets_unlocked=no
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8431 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8432 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8445 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8446 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8447 $as_echo_n "(cached) " >&6
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8456 #ifndef getc_unlocked
8457 char *p = (char *) getc_unlocked;
8464 if ac_fn_c_try_compile "$LINENO"; then :
8465 ac_cv_have_decl_getc_unlocked=yes
8467 ac_cv_have_decl_getc_unlocked=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8472 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8473 if test $ac_cv_have_decl_getc_unlocked = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8485 case $gt_cv_func_printf_posix in
8486 *yes) HAVE_POSIX_PRINTF=1 ;;
8487 *) HAVE_POSIX_PRINTF=0 ;;
8490 if test "$ac_cv_func_asprintf" = yes; then
8496 if test "$ac_cv_func_snprintf" = yes; then
8502 if test "$ac_cv_func_wprintf" = yes; then
8514 am_save_CPPFLAGS="$CPPFLAGS"
8516 for element in $INCICONV; do
8518 for x in $CPPFLAGS; do
8520 acl_save_prefix="$prefix"
8521 prefix="$acl_final_prefix"
8522 acl_save_exec_prefix="$exec_prefix"
8523 exec_prefix="$acl_final_exec_prefix"
8525 exec_prefix="$acl_save_exec_prefix"
8526 prefix="$acl_save_prefix"
8528 if test "X$x" = "X$element"; then
8533 if test -z "$haveit"; then
8534 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8540 $as_echo_n "checking for iconv... " >&6; }
8541 if ${am_cv_func_iconv+:} false; then :
8542 $as_echo_n "(cached) " >&6
8545 am_cv_func_iconv="no, consider installing GNU libiconv"
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8554 iconv_t cd = iconv_open("","");
8555 iconv(cd,NULL,NULL,NULL,NULL);
8561 if ac_fn_c_try_link "$LINENO"; then :
8562 am_cv_func_iconv=yes
8564 rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 if test "$am_cv_func_iconv" != yes; then
8567 am_save_LIBS="$LIBS"
8568 LIBS="$LIBS $LIBICONV"
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8576 iconv_t cd = iconv_open("","");
8577 iconv(cd,NULL,NULL,NULL,NULL);
8583 if ac_fn_c_try_link "$LINENO"; then :
8585 am_cv_func_iconv=yes
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 LIBS="$am_save_LIBS"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8594 $as_echo "$am_cv_func_iconv" >&6; }
8595 if test "$am_cv_func_iconv" = yes; then
8597 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8600 if test "$am_cv_lib_iconv" = yes; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8602 $as_echo_n "checking how to link with libiconv... " >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8604 $as_echo "$LIBICONV" >&6; }
8606 CPPFLAGS="$am_save_CPPFLAGS"
8613 if test "$am_cv_func_iconv" = yes; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8615 $as_echo_n "checking for iconv declaration... " >&6; }
8616 if ${am_cv_proto_iconv+:} false; then :
8617 $as_echo_n "(cached) " >&6
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8629 #if defined(__STDC__) || defined(__cplusplus)
8630 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8643 if ac_fn_c_try_compile "$LINENO"; then :
8644 am_cv_proto_iconv_arg1=""
8646 am_cv_proto_iconv_arg1="const"
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 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);"
8652 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8654 }$am_cv_proto_iconv" >&5
8656 }$am_cv_proto_iconv" >&6; }
8658 cat >>confdefs.h <<_ACEOF
8659 #define ICONV_CONST $am_cv_proto_iconv_arg1
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8666 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8667 if ${am_cv_langinfo_codeset+:} false; then :
8668 $as_echo_n "(cached) " >&6
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 #include <langinfo.h>
8676 char* cs = nl_langinfo(CODESET);
8681 if ac_fn_c_try_link "$LINENO"; then :
8682 am_cv_langinfo_codeset=yes
8684 am_cv_langinfo_codeset=no
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8691 $as_echo "$am_cv_langinfo_codeset" >&6; }
8692 if test $am_cv_langinfo_codeset = yes; then
8694 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8698 if test $ac_cv_header_locale_h = yes; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8701 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8702 if ${am_cv_val_LC_MESSAGES+:} false; then :
8703 $as_echo_n "(cached) " >&6
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 am_cv_val_LC_MESSAGES=yes
8719 am_cv_val_LC_MESSAGES=no
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8725 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8726 if test $am_cv_val_LC_MESSAGES = yes; then
8728 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8734 for ac_prog in bison
8736 # Extract the first word of "$ac_prog", so it can be a program name with args.
8737 set dummy $ac_prog; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_INTLBISON+:} false; then :
8741 $as_echo_n "(cached) " >&6
8743 if test -n "$INTLBISON"; then
8744 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_INTLBISON="$ac_prog"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 INTLBISON=$ac_cv_prog_INTLBISON
8764 if test -n "$INTLBISON"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8766 $as_echo "$INTLBISON" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8773 test -n "$INTLBISON" && break
8776 if test -z "$INTLBISON"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8780 $as_echo_n "checking version of bison... " >&6; }
8781 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8782 case $ac_prog_version in
8783 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8784 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8785 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8786 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8789 $as_echo "$ac_prog_version" >&6; }
8791 if test $ac_verc_fail = yes; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8811 $as_echo_n "checking whether NLS is requested... " >&6; }
8812 # Check whether --enable-nls was given.
8813 if test "${enable_nls+set}" = set; then :
8814 enableval=$enable_nls; USE_NLS=$enableval
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8820 $as_echo "$USE_NLS" >&6; }
8825 BUILD_INCLUDED_LIBINTL=no
8826 USE_INCLUDED_LIBINTL=no
8832 if test "$USE_NLS" = "yes"; then
8833 gt_use_preinstalled_gnugettext=no
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8836 $as_echo_n "checking whether included gettext is requested... " >&6; }
8838 # Check whether --with-included-gettext was given.
8839 if test "${with_included_gettext+set}" = set; then :
8840 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8842 nls_cv_force_use_gnu_gettext=no
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8846 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8848 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8849 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8857 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8858 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8859 $as_echo_n "(cached) " >&6
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 #include <libintl.h>
8864 extern int _nl_msg_cat_cntr;
8865 extern int *_nl_domain_bindings;
8869 bindtextdomain ("", "");
8870 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 gt_cv_func_gnugettext1_libc=yes
8878 gt_cv_func_gnugettext1_libc=no
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8884 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8886 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
8897 eval additional_includedir=\"$includedir\"
8898 eval additional_libdir=\"$libdir\"
8900 exec_prefix="$acl_save_exec_prefix"
8901 prefix="$acl_save_prefix"
8904 # Check whether --with-libintl-prefix was given.
8905 if test "${with_libintl_prefix+set}" = set; then :
8906 withval=$with_libintl_prefix;
8907 if test "X$withval" = "Xno"; then
8910 if test "X$withval" = "X"; then
8912 acl_save_prefix="$prefix"
8913 prefix="$acl_final_prefix"
8914 acl_save_exec_prefix="$exec_prefix"
8915 exec_prefix="$acl_final_exec_prefix"
8917 eval additional_includedir=\"$includedir\"
8918 eval additional_libdir=\"$libdir\"
8920 exec_prefix="$acl_save_exec_prefix"
8921 prefix="$acl_save_prefix"
8924 additional_includedir="$withval/include"
8925 additional_libdir="$withval/lib"
8936 names_already_handled=
8937 names_next_round='intl '
8938 while test -n "$names_next_round"; do
8939 names_this_round="$names_next_round"
8941 for name in $names_this_round; do
8943 for n in $names_already_handled; do
8944 if test "$n" = "$name"; then
8949 if test -z "$already_handled"; then
8950 names_already_handled="$names_already_handled $name"
8951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8952 eval value=\"\$HAVE_LIB$uppername\"
8953 if test -n "$value"; then
8954 if test "$value" = yes; then
8955 eval value=\"\$LIB$uppername\"
8956 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8957 eval value=\"\$LTLIB$uppername\"
8958 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8967 if test $use_additional = yes; then
8968 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8969 found_dir="$additional_libdir"
8970 found_so="$additional_libdir/lib$name.$shlibext"
8971 if test -f "$additional_libdir/lib$name.la"; then
8972 found_la="$additional_libdir/lib$name.la"
8975 if test -f "$additional_libdir/lib$name.$libext"; then
8976 found_dir="$additional_libdir"
8977 found_a="$additional_libdir/lib$name.$libext"
8978 if test -f "$additional_libdir/lib$name.la"; then
8979 found_la="$additional_libdir/lib$name.la"
8984 if test "X$found_dir" = "X"; then
8985 for x in $LDFLAGS $LTLIBINTL; do
8987 acl_save_prefix="$prefix"
8988 prefix="$acl_final_prefix"
8989 acl_save_exec_prefix="$exec_prefix"
8990 exec_prefix="$acl_final_exec_prefix"
8992 exec_prefix="$acl_save_exec_prefix"
8993 prefix="$acl_save_prefix"
8997 dir=`echo "X$x" | sed -e 's/^X-L//'`
8998 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9000 found_so="$dir/lib$name.$shlibext"
9001 if test -f "$dir/lib$name.la"; then
9002 found_la="$dir/lib$name.la"
9005 if test -f "$dir/lib$name.$libext"; then
9007 found_a="$dir/lib$name.$libext"
9008 if test -f "$dir/lib$name.la"; then
9009 found_la="$dir/lib$name.la"
9015 if test "X$found_dir" != "X"; then
9020 if test "X$found_dir" != "X"; then
9021 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9022 if test "X$found_so" != "X"; then
9023 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9024 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9027 for x in $ltrpathdirs; do
9028 if test "X$x" = "X$found_dir"; then
9033 if test -z "$haveit"; then
9034 ltrpathdirs="$ltrpathdirs $found_dir"
9036 if test "$hardcode_direct" = yes; then
9037 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9039 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9040 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9042 for x in $rpathdirs; do
9043 if test "X$x" = "X$found_dir"; then
9048 if test -z "$haveit"; then
9049 rpathdirs="$rpathdirs $found_dir"
9053 for x in $LDFLAGS $LIBINTL; do
9055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9060 exec_prefix="$acl_save_exec_prefix"
9061 prefix="$acl_save_prefix"
9063 if test "X$x" = "X-L$found_dir"; then
9068 if test -z "$haveit"; then
9069 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9071 if test "$hardcode_minus_L" != no; then
9072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9074 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9080 if test "X$found_a" != "X"; then
9081 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9083 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9086 additional_includedir=
9087 case "$found_dir" in
9089 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9090 additional_includedir="$basedir/include"
9093 if test "X$additional_includedir" != "X"; then
9094 if test "X$additional_includedir" != "X/usr/include"; then
9096 if test "X$additional_includedir" = "X/usr/local/include"; then
9097 if test -n "$GCC"; then
9099 linux*) haveit=yes;;
9103 if test -z "$haveit"; then
9104 for x in $CPPFLAGS $INCINTL; do
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9114 if test "X$x" = "X-I$additional_includedir"; then
9119 if test -z "$haveit"; then
9120 if test -d "$additional_includedir"; then
9121 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9127 if test -n "$found_la"; then
9128 save_libdir="$libdir"
9130 */* | *\\*) . "$found_la" ;;
9131 *) . "./$found_la" ;;
9133 libdir="$save_libdir"
9134 for dep in $dependency_libs; do
9137 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9138 if test "X$additional_libdir" != "X/usr/lib"; then
9140 if test "X$additional_libdir" = "X/usr/local/lib"; then
9141 if test -n "$GCC"; then
9143 linux*) haveit=yes;;
9147 if test -z "$haveit"; then
9149 for x in $LDFLAGS $LIBINTL; do
9151 acl_save_prefix="$prefix"
9152 prefix="$acl_final_prefix"
9153 acl_save_exec_prefix="$exec_prefix"
9154 exec_prefix="$acl_final_exec_prefix"
9156 exec_prefix="$acl_save_exec_prefix"
9157 prefix="$acl_save_prefix"
9159 if test "X$x" = "X-L$additional_libdir"; then
9164 if test -z "$haveit"; then
9165 if test -d "$additional_libdir"; then
9166 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9170 for x in $LDFLAGS $LTLIBINTL; do
9172 acl_save_prefix="$prefix"
9173 prefix="$acl_final_prefix"
9174 acl_save_exec_prefix="$exec_prefix"
9175 exec_prefix="$acl_final_exec_prefix"
9177 exec_prefix="$acl_save_exec_prefix"
9178 prefix="$acl_save_prefix"
9180 if test "X$x" = "X-L$additional_libdir"; then
9185 if test -z "$haveit"; then
9186 if test -d "$additional_libdir"; then
9187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9194 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9195 if test "$enable_rpath" != no; then
9197 for x in $rpathdirs; do
9198 if test "X$x" = "X$dir"; then
9203 if test -z "$haveit"; then
9204 rpathdirs="$rpathdirs $dir"
9207 for x in $ltrpathdirs; do
9208 if test "X$x" = "X$dir"; then
9213 if test -z "$haveit"; then
9214 ltrpathdirs="$ltrpathdirs $dir"
9219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9225 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9226 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9232 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9233 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9239 if test "X$rpathdirs" != "X"; then
9240 if test -n "$hardcode_libdir_separator"; then
9242 for found_dir in $rpathdirs; do
9243 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9245 acl_save_libdir="$libdir"
9247 eval flag=\"$hardcode_libdir_flag_spec\"
9248 libdir="$acl_save_libdir"
9249 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9251 for found_dir in $rpathdirs; do
9252 acl_save_libdir="$libdir"
9254 eval flag=\"$hardcode_libdir_flag_spec\"
9255 libdir="$acl_save_libdir"
9256 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9260 if test "X$ltrpathdirs" != "X"; then
9261 for found_dir in $ltrpathdirs; do
9262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9267 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9268 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 gt_save_CPPFLAGS="$CPPFLAGS"
9272 CPPFLAGS="$CPPFLAGS $INCINTL"
9273 gt_save_LIBS="$LIBS"
9274 LIBS="$LIBS $LIBINTL"
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 #include <libintl.h>
9278 extern int _nl_msg_cat_cntr;
9283 const char *_nl_expand_alias ();
9287 bindtextdomain ("", "");
9288 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 gt_cv_func_gnugettext1_libintl=yes
9296 gt_cv_func_gnugettext1_libintl=no
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9301 LIBS="$LIBS $LIBICONV"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 #include <libintl.h>
9305 extern int _nl_msg_cat_cntr;
9310 const char *_nl_expand_alias ();
9314 bindtextdomain ("", "");
9315 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9320 if ac_fn_c_try_link "$LINENO"; then :
9321 LIBINTL="$LIBINTL $LIBICONV"
9322 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9323 gt_cv_func_gnugettext1_libintl=yes
9326 rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9329 CPPFLAGS="$gt_save_CPPFLAGS"
9330 LIBS="$gt_save_LIBS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9333 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9336 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9337 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9338 && test "$PACKAGE" != gettext-runtime \
9339 && test "$PACKAGE" != gettext-tools; }; then
9340 gt_use_preinstalled_gnugettext=yes
9348 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9349 nls_cv_use_gnu_gettext=yes
9353 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9354 BUILD_INCLUDED_LIBINTL=yes
9355 USE_INCLUDED_LIBINTL=yes
9356 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9357 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9358 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9361 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9362 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9367 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9368 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9370 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9378 $as_echo_n "checking whether to use NLS... " >&6; }
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9380 $as_echo "$USE_NLS" >&6; }
9381 if test "$USE_NLS" = "yes"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9383 $as_echo_n "checking where the gettext function comes from... " >&6; }
9384 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9385 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9386 gt_source="external libintl"
9391 gt_source="included intl directory"
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9394 $as_echo "$gt_source" >&6; }
9397 if test "$USE_NLS" = "yes"; then
9399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9400 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9402 $as_echo_n "checking how to link with libintl... " >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9404 $as_echo "$LIBINTL" >&6; }
9406 for element in $INCINTL; do
9408 for x in $CPPFLAGS; do
9410 acl_save_prefix="$prefix"
9411 prefix="$acl_final_prefix"
9412 acl_save_exec_prefix="$exec_prefix"
9413 exec_prefix="$acl_final_exec_prefix"
9415 exec_prefix="$acl_save_exec_prefix"
9416 prefix="$acl_save_prefix"
9418 if test "X$x" = "X$element"; then
9423 if test -z "$haveit"; then
9424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9431 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9434 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9442 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9443 BUILD_INCLUDED_LIBINTL=yes
9451 nls_cv_header_libgt=
9462 if test "$USE_INCLUDED_LIBINTL" = yes; then
9463 INTLOBJS="\$(GETTOBJS)"
9467 INTL_LIBTOOL_SUFFIX_PREFIX=
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9482 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9483 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9484 $as_echo_n "(cached) " >&6
9486 cat >conftest.make <<\_ACEOF
9489 @echo '@@@%%%=$(MAKE)=@@@%%%'
9491 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9494 eval ac_cv_prog_make_${ac_make}_set=yes;;
9496 eval ac_cv_prog_make_${ac_make}_set=no;;
9500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9502 $as_echo "yes" >&6; }
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9507 SET_MAKE="MAKE=${MAKE-make}"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9511 $as_echo_n "checking for GNU make... " >&6; }
9512 if ${_cv_gnu_make_command+:} false; then :
9513 $as_echo_n "(cached) " >&6
9515 _cv_gnu_make_command='' ;
9516 for a in "$MAKE" make gmake gnumake ; do
9517 if test -z "$a" ; then continue ; fi ;
9518 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9519 _cv_gnu_make_command=$a ;
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9526 $as_echo "$_cv_gnu_make_command" >&6; } ;
9527 if test "x$_cv_gnu_make_command" != "x" ; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9534 $as_echo "\"Not found\"" >&6; };
9539 # Extract the first word of "ln", so it can be a program name with args.
9540 set dummy ln; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if ${ac_cv_path_LN+:} false; then :
9544 $as_echo_n "(cached) " >&6
9548 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9566 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9571 if test -n "$LN"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9573 $as_echo "$LN" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9581 $as_echo_n "checking whether ln -s works... " >&6; }
9583 if test "$LN_S" = "ln -s"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9585 $as_echo "yes" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9588 $as_echo "no, using $LN_S" >&6; }
9591 # Extract the first word of "mv", so it can be a program name with args.
9592 set dummy mv; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if ${ac_cv_path_MV+:} false; then :
9596 $as_echo_n "(cached) " >&6
9600 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9610 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9623 if test -n "$MV"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9625 $as_echo "$MV" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9632 # Extract the first word of "cp", so it can be a program name with args.
9633 set dummy cp; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if ${ac_cv_path_CP+:} false; then :
9637 $as_echo_n "(cached) " >&6
9641 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9664 if test -n "$CP"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9666 $as_echo "$CP" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9673 # Extract the first word of "rm", so it can be a program name with args.
9674 set dummy rm; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if ${ac_cv_path_RM+:} false; then :
9678 $as_echo_n "(cached) " >&6
9682 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9705 if test -n "$RM"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9707 $as_echo "$RM" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 # Extract the first word of "chmod", so it can be a program name with args.
9715 set dummy chmod; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_path_CHMOD+:} false; then :
9719 $as_echo_n "(cached) " >&6
9723 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9745 CHMOD=$ac_cv_path_CHMOD
9746 if test -n "$CHMOD"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9748 $as_echo "$CHMOD" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9755 for ac_prog in gawk mawk nawk awk
9757 # Extract the first word of "$ac_prog", so it can be a program name with args.
9758 set dummy $ac_prog; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_prog_AWK+:} false; then :
9762 $as_echo_n "(cached) " >&6
9764 if test -n "$AWK"; then
9765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_AWK="$ac_prog"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 if test -n "$AWK"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9787 $as_echo "$AWK" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9794 test -n "$AWK" && break
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9798 $as_echo_n "checking for egrep... " >&6; }
9799 if ${ac_cv_path_EGREP+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9803 then ac_cv_path_EGREP="$GREP -E"
9805 if test -z "$EGREP"; then
9806 ac_path_EGREP_found=false
9807 # Loop through the user's path and test for each of PROGNAME-LIST
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9812 test -z "$as_dir" && as_dir=.
9813 for ac_prog in egrep; do
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9816 as_fn_executable_p "$ac_path_EGREP" || continue
9817 # Check for GNU ac_path_EGREP and select it if it is found.
9818 # Check for GNU $ac_path_EGREP
9819 case `"$ac_path_EGREP" --version 2>&1` in
9821 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9824 $as_echo_n 0123456789 >"conftest.in"
9827 cat "conftest.in" "conftest.in" >"conftest.tmp"
9828 mv "conftest.tmp" "conftest.in"
9829 cp "conftest.in" "conftest.nl"
9830 $as_echo 'EGREP' >> "conftest.nl"
9831 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9833 as_fn_arith $ac_count + 1 && ac_count=$as_val
9834 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9835 # Best one so far, save it but keep looking for a better one
9836 ac_cv_path_EGREP="$ac_path_EGREP"
9837 ac_path_EGREP_max=$ac_count
9839 # 10*(2^10) chars as input seems more than enough
9840 test $ac_count -gt 10 && break
9842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9845 $ac_path_EGREP_found && break 3
9850 if test -z "$ac_cv_path_EGREP"; then
9851 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9854 ac_cv_path_EGREP=$EGREP
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9860 $as_echo "$ac_cv_path_EGREP" >&6; }
9861 EGREP="$ac_cv_path_EGREP"
9864 # Extract the first word of "sed", so it can be a program name with args.
9865 set dummy sed; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_SED+:} false; then :
9869 $as_echo_n "(cached) " >&6
9873 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9896 if test -n "$SED"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9898 $as_echo "$SED" >&6; }
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9905 # Extract the first word of "perl", so it can be a program name with args.
9906 set dummy perl; ac_word=$2
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908 $as_echo_n "checking for $ac_word... " >&6; }
9909 if ${ac_cv_path_PERL+:} false; then :
9910 $as_echo_n "(cached) " >&6
9914 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9936 PERL=$ac_cv_path_PERL
9937 if test -n "$PERL"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9939 $as_echo "$PERL" >&6; }
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9946 # Extract the first word of "ldconfig", so it can be a program name with args.
9947 set dummy ldconfig; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_path_LDCONFIG+:} false; then :
9951 $as_echo_n "(cached) " >&6
9955 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9977 LDCONFIG=$ac_cv_path_LDCONFIG
9978 if test -n "$LDCONFIG"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9980 $as_echo "$LDCONFIG" >&6; }
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9987 if test -n "$ac_tool_prefix"; then
9988 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9989 set dummy ${ac_tool_prefix}ar; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_prog_AR+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 if test -n "$AR"; then
9996 ac_cv_prog_AR="$AR" # Let the user override the test.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_prog_AR="${ac_tool_prefix}ar"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 if test -n "$AR"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10018 $as_echo "$AR" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10026 if test -z "$ac_cv_prog_AR"; then
10028 # Extract the first word of "ar", so it can be a program name with args.
10029 set dummy ar; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10033 $as_echo_n "(cached) " >&6
10035 if test -n "$ac_ct_AR"; then
10036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_prog_ac_ct_AR="ar"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10056 if test -n "$ac_ct_AR"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10058 $as_echo "$ac_ct_AR" >&6; }
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10064 if test "x$ac_ct_AR" = x; then
10067 case $cross_compiling:$ac_tool_warned in
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10071 ac_tool_warned=yes ;;
10076 AR="$ac_cv_prog_AR"
10079 if test -n "$ac_tool_prefix"; then
10080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if ${ac_cv_prog_RANLIB+:} false; then :
10085 $as_echo_n "(cached) " >&6
10087 if test -n "$RANLIB"; then
10088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 RANLIB=$ac_cv_prog_RANLIB
10108 if test -n "$RANLIB"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10110 $as_echo "$RANLIB" >&6; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10118 if test -z "$ac_cv_prog_RANLIB"; then
10119 ac_ct_RANLIB=$RANLIB
10120 # Extract the first word of "ranlib", so it can be a program name with args.
10121 set dummy ranlib; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10125 $as_echo_n "(cached) " >&6
10127 if test -n "$ac_ct_RANLIB"; then
10128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 ac_cv_prog_ac_ct_RANLIB="ranlib"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10148 if test -n "$ac_ct_RANLIB"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10150 $as_echo "$ac_ct_RANLIB" >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10156 if test "x$ac_ct_RANLIB" = x; then
10159 case $cross_compiling:$ac_tool_warned in
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10163 ac_tool_warned=yes ;;
10165 RANLIB=$ac_ct_RANLIB
10168 RANLIB="$ac_cv_prog_RANLIB"
10171 if test -n "$ac_tool_prefix"; then
10172 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10173 set dummy ${ac_tool_prefix}strip; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_prog_STRIP+:} false; then :
10177 $as_echo_n "(cached) " >&6
10179 if test -n "$STRIP"; then
10180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 STRIP=$ac_cv_prog_STRIP
10200 if test -n "$STRIP"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10202 $as_echo "$STRIP" >&6; }
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10210 if test -z "$ac_cv_prog_STRIP"; then
10212 # Extract the first word of "strip", so it can be a program name with args.
10213 set dummy strip; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10217 $as_echo_n "(cached) " >&6
10219 if test -n "$ac_ct_STRIP"; then
10220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_prog_ac_ct_STRIP="strip"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10240 if test -n "$ac_ct_STRIP"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10242 $as_echo "$ac_ct_STRIP" >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10248 if test "x$ac_ct_STRIP" = x; then
10251 case $cross_compiling:$ac_tool_warned in
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10255 ac_tool_warned=yes ;;
10260 STRIP="$ac_cv_prog_STRIP"
10263 # Extract the first word of "makeinfo", so it can be a program name with args.
10264 set dummy makeinfo; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_prog_MAKEINFO+:} false; then :
10268 $as_echo_n "(cached) " >&6
10270 if test -n "$MAKEINFO"; then
10271 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_prog_MAKEINFO="makeinfo"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 MAKEINFO=$ac_cv_prog_MAKEINFO
10291 if test -n "$MAKEINFO"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10293 $as_echo "$MAKEINFO" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10300 if test "_$MAKEINFO" = "_"; then
10301 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10303 case "$MAKEINFO" in
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10306 *** Makeinfo is missing. Info documentation will not be built." >&5
10307 $as_echo "$as_me: WARNING:
10308 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10316 # See if we need a separate native compiler.
10317 if test $cross_compiling = no; then
10321 for ac_prog in gcc cc
10323 # Extract the first word of "$ac_prog", so it can be a program name with args.
10324 set dummy $ac_prog; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_prog_BUILD_CC+:} false; then :
10328 $as_echo_n "(cached) " >&6
10330 if test -n "$BUILD_CC"; then
10331 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_BUILD_CC="$ac_prog"
10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 BUILD_CC=$ac_cv_prog_BUILD_CC
10351 if test -n "$BUILD_CC"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10353 $as_echo "$BUILD_CC" >&6; }
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10360 test -n "$BUILD_CC" && break
10364 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10369 cat >>confdefs.h <<_ACEOF
10370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10377 for ac_header in sys/disk.h sys/mount.h
10379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10381 #if HAVE_SYS_QUEUE_H
10382 #include <sys/queue.h>
10386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10387 cat >>confdefs.h <<_ACEOF
10388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395 for ac_header in net/if.h
10397 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10398 #if HAVE_SYS_TYPES_H
10399 #include <sys/types.h>
10401 #if HAVE_SYS_SOCKET
10402 #include <sys/socket.h>
10406 if test "x$ac_cv_header_net_if_h" = xyes; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_NET_IF_H 1
10415 for ac_func in vprintf
10417 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10418 if test "x$ac_cv_func_vprintf" = xyes; then :
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_VPRINTF 1
10423 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10424 if test "x$ac_cv_func__doprnt" = xyes; then :
10426 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10434 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10436 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10438 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10442 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10444 if test "x$ac_cv_type_ssize_t" = xyes; then :
10446 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10450 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10452 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10454 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10458 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10459 #define _LARGEFILE64_SOURCE
10460 #include <unistd.h>
10462 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10464 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10468 # The cast to long int works around a bug in the HP C Compiler
10469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10471 # This bug is HP SR number 8606223364.
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10473 $as_echo_n "checking size of short... " >&6; }
10474 if ${ac_cv_sizeof_short+:} false; then :
10475 $as_echo_n "(cached) " >&6
10477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10480 if test "$ac_cv_type_short" = yes; then
10481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10483 as_fn_error 77 "cannot compute sizeof (short)
10484 See \`config.log' for more details" "$LINENO" 5; }
10486 ac_cv_sizeof_short=0
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10492 $as_echo "$ac_cv_sizeof_short" >&6; }
10496 cat >>confdefs.h <<_ACEOF
10497 #define SIZEOF_SHORT $ac_cv_sizeof_short
10501 # The cast to long int works around a bug in the HP C Compiler
10502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10504 # This bug is HP SR number 8606223364.
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10506 $as_echo_n "checking size of int... " >&6; }
10507 if ${ac_cv_sizeof_int+:} false; then :
10508 $as_echo_n "(cached) " >&6
10510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10513 if test "$ac_cv_type_int" = yes; then
10514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10516 as_fn_error 77 "cannot compute sizeof (int)
10517 See \`config.log' for more details" "$LINENO" 5; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10525 $as_echo "$ac_cv_sizeof_int" >&6; }
10529 cat >>confdefs.h <<_ACEOF
10530 #define SIZEOF_INT $ac_cv_sizeof_int
10534 # The cast to long int works around a bug in the HP C Compiler
10535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10537 # This bug is HP SR number 8606223364.
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10539 $as_echo_n "checking size of long... " >&6; }
10540 if ${ac_cv_sizeof_long+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10546 if test "$ac_cv_type_long" = yes; then
10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10549 as_fn_error 77 "cannot compute sizeof (long)
10550 See \`config.log' for more details" "$LINENO" 5; }
10552 ac_cv_sizeof_long=0
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10558 $as_echo "$ac_cv_sizeof_long" >&6; }
10562 cat >>confdefs.h <<_ACEOF
10563 #define SIZEOF_LONG $ac_cv_sizeof_long
10567 # The cast to long int works around a bug in the HP C Compiler
10568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10570 # This bug is HP SR number 8606223364.
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10572 $as_echo_n "checking size of long long... " >&6; }
10573 if ${ac_cv_sizeof_long_long+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10579 if test "$ac_cv_type_long_long" = yes; then
10580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10582 as_fn_error 77 "cannot compute sizeof (long long)
10583 See \`config.log' for more details" "$LINENO" 5; }
10585 ac_cv_sizeof_long_long=0
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10591 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10595 cat >>confdefs.h <<_ACEOF
10596 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10600 # The cast to long int works around a bug in the HP C Compiler
10601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10603 # This bug is HP SR number 8606223364.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10605 $as_echo_n "checking size of off_t... " >&6; }
10606 if ${ac_cv_sizeof_off_t+:} false; then :
10607 $as_echo_n "(cached) " >&6
10609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10612 if test "$ac_cv_type_off_t" = yes; then
10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10615 as_fn_error 77 "cannot compute sizeof (off_t)
10616 See \`config.log' for more details" "$LINENO" 5; }
10618 ac_cv_sizeof_off_t=0
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10624 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10628 cat >>confdefs.h <<_ACEOF
10629 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10633 SIZEOF_SHORT=$ac_cv_sizeof_short
10634 SIZEOF_INT=$ac_cv_sizeof_int
10635 SIZEOF_LONG=$ac_cv_sizeof_long
10636 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10637 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10644 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10645 if ${ac_cv_c_bigendian+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 ac_cv_c_bigendian=unknown
10649 # See if we're dealing with a universal compiler.
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #ifndef __APPLE_CC__
10653 not a universal capable compiler
10658 if ac_fn_c_try_compile "$LINENO"; then :
10660 # Check for potential -arch flags. It is not universal unless
10661 # there are at least two -arch flags with different values.
10664 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10665 if test -n "$ac_prev"; then
10667 i?86 | x86_64 | ppc | ppc64)
10668 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10671 ac_cv_c_bigendian=universal
10677 elif test "x$ac_word" = "x-arch"; then
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 if test $ac_cv_c_bigendian = unknown; then
10684 # See if sys/param.h defines the BYTE_ORDER macro.
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include <sys/types.h>
10688 #include <sys/param.h>
10693 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10694 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10696 bogus endian macros
10703 if ac_fn_c_try_compile "$LINENO"; then :
10704 # It does; now see whether it defined to BIG_ENDIAN or not.
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10708 #include <sys/param.h>
10713 #if BYTE_ORDER != BIG_ENDIAN
10721 if ac_fn_c_try_compile "$LINENO"; then :
10722 ac_cv_c_bigendian=yes
10724 ac_cv_c_bigendian=no
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 if test $ac_cv_c_bigendian = unknown; then
10731 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #include <limits.h>
10739 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10740 bogus endian macros
10747 if ac_fn_c_try_compile "$LINENO"; then :
10748 # It does; now see whether it defined to _BIG_ENDIAN or not.
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751 #include <limits.h>
10756 #ifndef _BIG_ENDIAN
10764 if ac_fn_c_try_compile "$LINENO"; then :
10765 ac_cv_c_bigendian=yes
10767 ac_cv_c_bigendian=no
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 if test $ac_cv_c_bigendian = unknown; then
10774 # Compile a test program.
10775 if test "$cross_compiling" = yes; then :
10776 # Try to guess by grepping values from an object file.
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 short int ascii_mm[] =
10780 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10781 short int ascii_ii[] =
10782 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10783 int use_ascii (int i) {
10784 return ascii_mm[i] + ascii_ii[i];
10786 short int ebcdic_ii[] =
10787 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10788 short int ebcdic_mm[] =
10789 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10790 int use_ebcdic (int i) {
10791 return ebcdic_mm[i] + ebcdic_ii[i];
10798 return use_ascii (foo) == use_ebcdic (foo);
10803 if ac_fn_c_try_compile "$LINENO"; then :
10804 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10805 ac_cv_c_bigendian=yes
10807 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10808 if test "$ac_cv_c_bigendian" = unknown; then
10809 ac_cv_c_bigendian=no
10811 # finding both strings is unlikely to happen, but who knows?
10812 ac_cv_c_bigendian=unknown
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820 $ac_includes_default
10825 /* Are we little or big endian? From Harbison&Steele. */
10829 char c[sizeof (long int)];
10832 return u.c[sizeof (long int) - 1] == 1;
10838 if ac_fn_c_try_run "$LINENO"; then :
10839 ac_cv_c_bigendian=no
10841 ac_cv_c_bigendian=yes
10843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10844 conftest.$ac_objext conftest.beam conftest.$ac_ext
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10850 $as_echo "$ac_cv_c_bigendian" >&6; }
10851 case $ac_cv_c_bigendian in #(
10853 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10859 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10863 as_fn_error $? "unknown endianness
10864 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10867 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10868 ASM_TYPES_HEADER=./asm_types.h
10870 echo "/* These defines are needed for the public ext2fs.h header file */" \
10872 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10873 uniq tmp_config.$$ >> public_config.h
10875 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10877 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10878 uniq tmp_config.$$ >> public_config.h
10880 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10882 rm -f tmp_config.$$
10883 PUBLIC_CONFIG_HEADER=./public_config.h
10885 for ac_header in inttypes.h
10887 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10888 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10889 cat >>confdefs.h <<_ACEOF
10890 #define HAVE_INTTYPES_H 1
10897 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10898 if test "x$ac_cv_type_intptr_t" = xyes; then :
10900 cat >>confdefs.h <<_ACEOF
10901 #define HAVE_INTPTR_T 1
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10908 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10909 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10910 $as_echo_n "(cached) " >&6
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <sys/stat.h>
10918 struct stat stat; stat.st_flags = 0;
10923 if ac_fn_c_try_compile "$LINENO"; then :
10924 e2fsprogs_cv_struct_st_flags=yes
10926 e2fsprogs_cv_struct_st_flags=no
10928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10932 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10933 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10935 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10936 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10937 $as_echo_n "(cached) " >&6
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #include <sys/stat.h>
10945 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 e2fsprogs_cv_struct_st_flags_immut=yes
10953 e2fsprogs_cv_struct_st_flags_immut=no
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10959 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10960 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10962 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10966 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10967 #include <sys/socket.h>
10969 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_SA_LEN 1
10977 if test -n "$BLKID_CMT"; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10979 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10980 if ${ac_cv_search_blkid_probe_all+:} false; then :
10981 $as_echo_n "(cached) " >&6
10983 ac_func_search_save_LIBS=$LIBS
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10993 char blkid_probe_all ();
10997 return blkid_probe_all ();
11002 for ac_lib in '' blkid; do
11003 if test -z "$ac_lib"; then
11004 ac_res="none required"
11007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_search_blkid_probe_all=$ac_res
11012 rm -f core conftest.err conftest.$ac_objext \
11014 if ${ac_cv_search_blkid_probe_all+:} false; then :
11018 if ${ac_cv_search_blkid_probe_all+:} false; then :
11021 ac_cv_search_blkid_probe_all=no
11023 rm conftest.$ac_ext
11024 LIBS=$ac_func_search_save_LIBS
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11027 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11028 ac_res=$ac_cv_search_blkid_probe_all
11029 if test "$ac_res" != no; then :
11030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11035 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11040 cat >>confdefs.h <<_ACEOF
11041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11049 $as_echo_n "checking for socket in -lsocket... " >&6; }
11050 if ${ac_cv_lib_socket_socket+:} false; then :
11051 $as_echo_n "(cached) " >&6
11053 ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-lsocket $LIBS"
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11073 if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_socket_socket=yes
11076 ac_cv_lib_socket_socket=no
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11083 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11084 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11085 SOCKET_LIB=-lsocket
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11090 $as_echo_n "checking for optreset... " >&6; }
11091 if ${ac_cv_have_optreset+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11096 #include <unistd.h>
11099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11100 $EGREP "optreset" >/dev/null 2>&1; then :
11101 ac_cv_have_optreset=yes
11103 ac_cv_have_optreset=no
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11109 $as_echo "$ac_cv_have_optreset" >&6; }
11110 if test $ac_cv_have_optreset = yes; then
11112 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11117 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11118 if test "x$ac_cv_func_sem_init" = xyes; then :
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11122 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11123 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11124 $as_echo_n "(cached) " >&6
11126 ac_check_lib_save_LIBS=$LIBS
11127 LIBS="-lpthread $LIBS"
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 /* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11141 return sem_init ();
11146 if ac_fn_c_try_link "$LINENO"; then :
11147 ac_cv_lib_pthread_sem_init=yes
11149 ac_cv_lib_pthread_sem_init=no
11151 rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
11153 LIBS=$ac_check_lib_save_LIBS
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11156 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11157 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11158 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11160 SEM_INIT_LIB=-lpthread
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11163 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11164 if ${ac_cv_lib_rt_sem_init+:} false; then :
11165 $as_echo_n "(cached) " >&6
11167 ac_check_lib_save_LIBS=$LIBS
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11182 return sem_init ();
11187 if ac_fn_c_try_link "$LINENO"; then :
11188 ac_cv_lib_rt_sem_init=yes
11190 ac_cv_lib_rt_sem_init=no
11192 rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11197 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11198 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11199 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11204 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11205 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11206 $as_echo_n "(cached) " >&6
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-lposix4 $LIBS"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11223 return sem_init ();
11228 if ac_fn_c_try_link "$LINENO"; then :
11229 ac_cv_lib_posix4_sem_init=yes
11231 ac_cv_lib_posix4_sem_init=no
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11238 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11239 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11240 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11242 SEM_INIT_LIB=-lposix4
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11252 $as_echo_n "checking for unified diff option... " >&6; }
11253 if diff -u $0 $0 > /dev/null 2>&1 ; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11259 $as_echo "$UNI_DIFF_OPTS" >&6; }
11264 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11284 linux* | gnu* | k*bsd*-gnu)
11285 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11288 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11293 linux* | gnu* | k*bsd*-gnu)
11294 if test "$prefix" = NONE ; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11297 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11298 if test "$mandir" = '${prefix}/man' ; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11300 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11301 mandir=/usr/share/man
11306 if test "$root_prefix" = NONE ; then
11307 if test "$prefix" = NONE ; then
11308 root_prefix="$ac_default_prefix"
11310 root_prefix="$prefix"
11312 root_bindir=$bindir
11313 root_sbindir=$sbindir
11314 root_libdir=$libdir
11315 root_sysconfdir=$sysconfdir
11317 root_bindir='${root_prefix}/bin'
11318 root_sbindir='${root_prefix}/sbin'
11319 root_libdir='${root_prefix}/lib'
11320 root_sysconfdir='${root_prefix}/etc'
11322 if test "$bindir" != '${exec_prefix}/bin'; then
11323 root_bindir=$bindir
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11325 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11327 if test "$sbindir" != '${exec_prefix}/sbin'; then
11328 root_sbindir=$sbindir
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11330 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11332 if test "$libdir" != '${exec_prefix}/lib'; then
11333 root_libdir=$libdir
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11335 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11337 if test "$sysconfdir" != '${prefix}/etc'; then
11338 root_sysconfdir=$sysconfdir
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11340 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11348 # Check whether --with-multiarch was given.
11349 if test "${with_multiarch+set}" = set; then :
11350 withval=$with_multiarch; libdir=$libdir/$withval
11351 root_libdir=$root_libdir/$withval
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11355 $as_echo_n "checking whether we can link with -static... " >&6; }
11356 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11357 $as_echo_n "(cached) " >&6
11359 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11371 if ac_fn_c_try_link "$LINENO"; then :
11372 ac_cv_e2fsprogs_use_static=yes
11374 ac_cv_e2fsprogs_use_static=no
11376 rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
11378 LDFLAGS=$SAVE_LDFLAGS
11383 ac_cv_e2fsprogs_use_static=no
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11387 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11389 if test $ac_cv_e2fsprogs_use_static = yes; then
11390 LDFLAG_STATIC=-static
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11396 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11398 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11402 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11403 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11406 if test "$cross_compiling" = yes ; then
11409 DO_TEST_SUITE=check
11412 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11413 if test -n "$CPPFLAGS" ; then
11414 INCLUDES="$INCLUDES $CPPFLAGS"
11416 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11417 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11420 if test $cross_compiling = no; then
11421 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11422 BUILD_LDFLAGS="$LDFLAGS"
11429 test -d lib || mkdir lib
11430 test -d include || mkdir include
11431 test -d include/linux || mkdir include/linux
11432 test -d include/asm || mkdir include/asm
11433 for i in MCONFIG Makefile e2fsprogs.spec \
11434 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11435 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11436 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11437 lib/uuid/Makefile lib/uuid/uuid_types.h \
11438 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11439 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11440 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11441 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11442 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11443 resize/Makefile doc/Makefile intl/Makefile \
11444 intl/libgnuintl.h po/Makefile.in ; do
11445 if test -d `dirname ${srcdir}/$i` ; then
11446 outlist="$outlist $i"
11449 ac_config_files="$ac_config_files $outlist"
11451 cat >confcache <<\_ACEOF
11452 # This file is a shell script that caches the results of configure
11453 # tests run on this system so they can be shared between configure
11454 # scripts and configure runs, see configure's option --config-cache.
11455 # It is not useful on other systems. If it contains results you don't
11456 # want to keep, you may remove or edit it.
11458 # config.status only pays attention to the cache file if you give it
11459 # the --recheck option to rerun configure.
11461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11463 # following values.
11467 # The following way of writing the cache mishandles newlines in values,
11468 # but we know of no workaround that is simple, portable, and efficient.
11469 # So, we kill variables containing newlines.
11470 # Ultrix sh set writes to stderr and can't be redirected directly,
11471 # and sets the high bit in the cache file unless we assign to the vars.
11473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474 eval ac_val=\$$ac_var
11478 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11482 _ | IFS | as_nl) ;; #(
11483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11484 *) { eval $ac_var=; unset $ac_var;} ;;
11490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11491 *${as_nl}ac_space=\ *)
11492 # `set' does not quote correctly, so add quotes: double-quote
11493 # substitution turns \\\\ into \\, and sed turns \\ into \.
11496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11499 # `set' quotes correctly as required by POSIX, so do not add quotes.
11500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11514 if test -w "$cache_file"; then
11515 if test "x$cache_file" != "x/dev/null"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11517 $as_echo "$as_me: updating cache $cache_file" >&6;}
11518 if test ! -f "$cache_file" || test -h "$cache_file"; then
11519 cat confcache >"$cache_file"
11521 case $cache_file in #(
11523 mv -f confcache "$cache_file"$$ &&
11524 mv -f "$cache_file"$$ "$cache_file" ;; #(
11526 mv -f confcache "$cache_file" ;;
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538 # Let make expand exec_prefix.
11539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11541 DEFS=-DHAVE_CONFIG_H
11546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11547 # 1. Remove the extension, and $U if already installed.
11548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11549 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11551 # will be set to the directory where LIBOBJS objects are built.
11552 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11553 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11555 LIBOBJS=$ac_libobjs
11557 LTLIBOBJS=$ac_ltlibobjs
11562 : "${CONFIG_STATUS=./config.status}"
11564 ac_clean_files_save=$ac_clean_files
11565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11571 # Generated by $as_me.
11572 # Run this file to recreate the current configuration.
11573 # Compiler output produced by configure, useful for debugging
11574 # configure, is in config.log if it exists.
11577 ac_cs_recheck=false
11580 SHELL=\${CONFIG_SHELL-$SHELL}
11583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11584 ## -------------------- ##
11585 ## M4sh Initialization. ##
11586 ## -------------------- ##
11588 # Be more Bourne compatible
11589 DUALCASE=1; export DUALCASE # for MKS sh
11590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11594 # is contrary to our usage. Disable this feature.
11595 alias -g '${1+"$@"}'='"$@"'
11596 setopt NO_GLOB_SUBST
11598 case `(set -o) 2>/dev/null` in #(
11610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11611 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11614 # Prefer a ksh shell builtin over an external printf program on Solaris,
11615 # but without wasting forks for bash or zsh.
11616 if test -z "$BASH_VERSION$ZSH_VERSION" \
11617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11618 as_echo='print -r --'
11619 as_echo_n='print -rn --'
11620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11621 as_echo='printf %s\n'
11622 as_echo_n='printf %s'
11624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11626 as_echo_n='/usr/ucb/echo -n'
11628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11629 as_echo_n_body='eval
11633 expr "X$arg" : "X\\(.*\\)$as_nl";
11634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11638 export as_echo_n_body
11639 as_echo_n='sh -c $as_echo_n_body as_echo'
11641 export as_echo_body
11642 as_echo='sh -c $as_echo_body as_echo'
11645 # The user is always right.
11646 if test "${PATH_SEPARATOR+set}" != set; then
11648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11656 # We need space, tab and new line, in precisely that order. Quoting is
11657 # there to prevent editors from complaining about space-tab.
11658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11659 # splitting by setting IFS to empty value.)
11662 # Find who we are. Look in the path if we contain no directory separator.
11665 *[\\/]* ) as_myself=$0 ;;
11666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11677 # We did not find ourselves, most probably we were run as `sh COMMAND'
11678 # in which case we are not to be found in the path.
11679 if test "x$as_myself" = x; then
11682 if test ! -f "$as_myself"; then
11683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11687 # Unset variables that we do not need and which cause bugs (e.g. in
11688 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11689 # suppresses any "Segmentation fault" message there. '((' could
11690 # trigger a bug in pdksh 5.2.14.
11691 for as_var in BASH_ENV ENV MAIL MAILPATH
11692 do eval test x\${$as_var+set} = xset \
11693 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11709 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11710 # ----------------------------------------
11711 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11712 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11713 # script with STATUS, using 1 if that was 0.
11716 as_status=$1; test $as_status -eq 0 && as_status=1
11718 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11719 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11721 $as_echo "$as_me: error: $2" >&2
11722 as_fn_exit $as_status
11726 # as_fn_set_status STATUS
11727 # -----------------------
11728 # Set $? to STATUS, without forking.
11729 as_fn_set_status ()
11732 } # as_fn_set_status
11734 # as_fn_exit STATUS
11735 # -----------------
11736 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11740 as_fn_set_status $1
11746 # Portably unset VAR.
11749 { eval $1=; unset $1;}
11751 as_unset=as_fn_unset
11752 # as_fn_append VAR VALUE
11753 # ----------------------
11754 # Append the text in VALUE to the end of the definition contained in VAR. Take
11755 # advantage of any shell optimizations that allow amortized linear growth over
11756 # repeated appends, instead of the typical quadratic growth present in naive
11758 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11759 eval 'as_fn_append ()
11770 # as_fn_arith ARG...
11771 # ------------------
11772 # Perform arithmetic evaluation on the ARGs, and store the result in the
11773 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11774 # must be portable across $(()) and expr.
11775 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11776 eval 'as_fn_arith ()
11783 as_val=`expr "$@" || test $? -eq 1`
11788 if expr a : '\(a\)' >/dev/null 2>&1 &&
11789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11796 as_basename=basename
11801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11807 as_me=`$as_basename -- "$0" ||
11808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11809 X"$0" : 'X\(//\)$' \| \
11810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11812 sed '/^.*\/\([^/][^/]*\)\/*$/{
11826 # Avoid depending upon Character Ranges.
11827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11830 as_cr_digits='0123456789'
11831 as_cr_alnum=$as_cr_Letters$as_cr_digits
11833 ECHO_C= ECHO_N= ECHO_T=
11834 case `echo -n x` in #(((((
11836 case `echo 'xy\c'` in
11837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11846 rm -f conf$$ conf$$.exe conf$$.file
11847 if test -d conf$$.dir; then
11848 rm -f conf$$.dir/conf$$.file
11851 mkdir conf$$.dir 2>/dev/null
11853 if (echo >conf$$.file) 2>/dev/null; then
11854 if ln -s conf$$.file conf$$ 2>/dev/null; then
11856 # ... but there are two gotchas:
11857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11859 # In both cases, we have to default to `cp -pR'.
11860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11862 elif ln conf$$.file conf$$ 2>/dev/null; then
11870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11871 rmdir conf$$.dir 2>/dev/null
11876 # Create "$as_dir" as a directory, including parents if necessary.
11881 -*) as_dir=./$as_dir;;
11883 test -d "$as_dir" || eval $as_mkdir_p || {
11887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11888 *) as_qdir=$as_dir;;
11890 as_dirs="'$as_qdir' $as_dirs"
11891 as_dir=`$as_dirname -- "$as_dir" ||
11892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11893 X"$as_dir" : 'X\(//\)[^/]' \| \
11894 X"$as_dir" : 'X\(//\)$' \| \
11895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11896 $as_echo X"$as_dir" |
11897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11901 /^X\(\/\/\)[^/].*/{
11914 test -d "$as_dir" && break
11916 test -z "$as_dirs" || eval "mkdir $as_dirs"
11917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11921 if mkdir -p . 2>/dev/null; then
11922 as_mkdir_p='mkdir -p "$as_dir"'
11924 test -d ./-p && rmdir ./-p
11929 # as_fn_executable_p FILE
11930 # -----------------------
11931 # Test if FILE is an executable regular file.
11932 as_fn_executable_p ()
11934 test -f "$1" && test -x "$1"
11935 } # as_fn_executable_p
11936 as_test_x='test -x'
11937 as_executable_p=as_fn_executable_p
11939 # Sed expression to map a string onto a valid CPP name.
11940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11942 # Sed expression to map a string onto a valid variable name.
11943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11947 ## ----------------------------------- ##
11948 ## Main body of $CONFIG_STATUS script. ##
11949 ## ----------------------------------- ##
11951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11954 # Save the log message, to keep $0 and so on meaningful, and to
11955 # report actual input values of CONFIG_FILES etc. instead of their
11956 # values after options handling.
11958 This file was extended by $as_me, which was
11959 generated by GNU Autoconf 2.69. Invocation command line was
11961 CONFIG_FILES = $CONFIG_FILES
11962 CONFIG_HEADERS = $CONFIG_HEADERS
11963 CONFIG_LINKS = $CONFIG_LINKS
11964 CONFIG_COMMANDS = $CONFIG_COMMANDS
11967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11972 case $ac_config_files in *"
11973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11976 case $ac_config_headers in *"
11977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 # Files that config.status was made for.
11983 config_files="$ac_config_files"
11984 config_headers="$ac_config_headers"
11985 config_commands="$ac_config_commands"
11989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11991 \`$as_me' instantiates files and other configuration actions
11992 from templates according to the current configuration. Unless the files
11993 and actions are specified as TAGs, all are instantiated by default.
11995 Usage: $0 [OPTION]... [TAG]...
11997 -h, --help print this help, then exit
11998 -V, --version print version number and configuration settings, then exit
11999 --config print configuration, then exit
12000 -q, --quiet, --silent
12001 do not print progress messages
12002 -d, --debug don't remove temporary files
12003 --recheck update $as_me by reconfiguring in the same conditions
12004 --file=FILE[:TEMPLATE]
12005 instantiate the configuration file FILE
12006 --header=FILE[:TEMPLATE]
12007 instantiate the configuration header FILE
12009 Configuration files:
12012 Configuration headers:
12015 Configuration commands:
12018 Report bugs to the package provider."
12021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12022 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12025 configured by $0, generated by GNU Autoconf 2.69,
12026 with options \\"\$ac_cs_config\\"
12028 Copyright (C) 2012 Free Software Foundation, Inc.
12029 This config.status script is free software; the Free Software Foundation
12030 gives unlimited permission to copy, distribute and modify it."
12036 test -n "\$AWK" || AWK=awk
12039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040 # The default lists apply if the user does not specify any file.
12046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12063 # Handling of the options.
12064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12067 $as_echo "$ac_cs_version"; exit ;;
12068 --config | --confi | --conf | --con | --co | --c )
12069 $as_echo "$ac_cs_config"; exit ;;
12070 --debug | --debu | --deb | --de | --d | -d )
12072 --file | --fil | --fi | --f )
12075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12076 '') as_fn_error $? "missing file argument" ;;
12078 as_fn_append CONFIG_FILES " '$ac_optarg'"
12079 ac_need_defaults=false;;
12080 --header | --heade | --head | --hea )
12083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12086 ac_need_defaults=false;;
12088 # Conflict between --help and --header
12089 as_fn_error $? "ambiguous option: \`$1'
12090 Try \`$0 --help' for more information.";;
12091 --help | --hel | -h )
12092 $as_echo "$ac_cs_usage"; exit ;;
12093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12097 # This is an error.
12098 -*) as_fn_error $? "unrecognized option: \`$1'
12099 Try \`$0 --help' for more information." ;;
12101 *) as_fn_append ac_config_targets " $1"
12102 ac_need_defaults=false ;;
12108 ac_configure_extra_args=
12110 if $ac_cs_silent; then
12112 ac_configure_extra_args="$ac_configure_extra_args --silent"
12116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12117 if \$ac_cs_recheck; then
12118 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12121 CONFIG_SHELL='$SHELL'
12122 export CONFIG_SHELL
12127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12132 ## Running $as_me. ##
12138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12143 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12145 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12146 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12147 LINGUAS="${LINGUAS-%UNSET%}"
12152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12154 # Handling of arguments.
12155 for ac_config_target in $ac_config_targets
12157 case $ac_config_target in
12158 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12159 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12160 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12167 # If the user did not use the arguments to specify the items to instantiate,
12168 # then the envvar interface is used. Set only those that are not.
12169 # We use the long form for the default assignment because of an extremely
12170 # bizarre bug on SunOS 4.1.3.
12171 if $ac_need_defaults; then
12172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12177 # Have a temporary directory for convenience. Make it in the build tree
12178 # simply because there is no reason against having it here, and in addition,
12179 # creating and moving files from /tmp can sometimes cause problems.
12180 # Hook for its removal unless debugging.
12181 # Note that there is a small window in which the directory will not be cleaned:
12182 # after its creation but before its name has been assigned to `$tmp'.
12186 trap 'exit_status=$?
12187 : "${ac_tmp:=$tmp}"
12188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12190 trap 'as_fn_exit 1' 1 2 13 15
12192 # Create a (secure) tmp directory for tmp files.
12195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12199 tmp=./conf$$-$RANDOM
12200 (umask 077 && mkdir "$tmp")
12201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12204 # Set up the scripts for CONFIG_FILES section.
12205 # No need to generate them if there are no CONFIG_FILES.
12206 # This happens for instance with `./config.status config.h'.
12207 if test -n "$CONFIG_FILES"; then
12209 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12210 ac_cs_awk_getline=:
12211 ac_cs_awk_pipe_init=
12212 ac_cs_awk_read_file='
12213 while ((getline aline < (F[key])) > 0)
12216 ac_cs_awk_pipe_fini=
12218 ac_cs_awk_getline=false
12219 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12220 ac_cs_awk_read_file='
12222 print "cat " F[key] " &&"
12223 '$ac_cs_awk_pipe_init
12224 # The final `:' finishes the AND list.
12225 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12227 ac_cr=`echo X | tr X '\015'`
12228 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12229 # But we know of no other shell where ac_cr would be empty at this
12230 # point, so we can use a bashism as a fallback.
12231 if test "x$ac_cr" = x; then
12232 eval ac_cr=\$\'\\r\'
12234 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12235 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12238 ac_cs_awk_cr=$ac_cr
12241 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12244 # Create commands to substitute file output variables.
12246 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12247 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12248 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12251 } >conf$$files.sh &&
12252 . ./conf$$files.sh ||
12253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12254 rm -f conf$$files.sh
12257 echo "cat >conf$$subs.awk <<_ACEOF" &&
12258 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12260 } >conf$$subs.sh ||
12261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12264 for ac_last_try in false false false false false :; do
12265 . ./conf$$subs.sh ||
12266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12268 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12269 if test $ac_delim_n = $ac_delim_num; then
12271 elif $ac_last_try; then
12272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12277 rm -f conf$$subs.sh
12279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12280 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12284 s/^/S["/; s/!.*/"]=/
12294 s/\(.\{148\}\)..*/\1/
12296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12308 s/\(.\{148\}\)..*/\1/
12310 s/["\\]/\\&/g; s/^/"/; s/$/"/
12314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12319 ' <conf$$subs.awk | sed '
12324 ' >>$CONFIG_STATUS || ac_write_fail=1
12325 rm -f conf$$subs.awk
12326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12328 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12329 for (key in S) S_is_set[key] = 1
12331 \$ac_cs_awk_pipe_init
12335 nfields = split(line, field, "@")
12337 len = length(field[1])
12338 for (i = 2; i < nfields; i++) {
12340 keylen = length(key)
12341 if (S_is_set[key]) {
12343 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12344 len += length(value) + length(field[++i])
12349 if (nfields == 3 && !substed) {
12351 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12352 \$ac_cs_awk_read_file
12358 \$ac_cs_awk_pipe_fini
12361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12362 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12366 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12367 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12370 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12371 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12372 # trailing colons and then remove the whole line if VPATH becomes empty
12373 # (actually we leave an empty line to preserve line numbers).
12374 if test "x$srcdir" = x.; then
12375 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394 fi # test -n "$CONFIG_FILES"
12396 # Set up the scripts for CONFIG_HEADERS section.
12397 # No need to generate them if there are no CONFIG_HEADERS.
12398 # This happens for instance with `./config.status Makefile'.
12399 if test -n "$CONFIG_HEADERS"; then
12400 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12404 # Transform confdefs.h into an awk script `defines.awk', embedded as
12405 # here-document in config.status, that substitutes the proper values into
12406 # config.h.in to produce config.h.
12408 # Create a delimiter string that does not exist in confdefs.h, to ease
12409 # handling of long lines.
12411 for ac_last_try in false false :; do
12412 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12413 if test -z "$ac_tt"; then
12415 elif $ac_last_try; then
12416 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12422 # For the awk script, D is an array of macro values keyed by name,
12423 # likewise P contains macro parameters if any. Preserve backslash
12424 # newline sequences.
12426 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12428 s/.\{148\}/&'"$ac_delim"'/g
12431 s/^[ ]*#[ ]*define[ ][ ]*/ /
12438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12440 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12445 D["\1"]=" \3\\\\\\n"\\/p
12447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12452 s/.\{148\}/&'"$ac_delim"'/g
12457 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12460 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12462 ' <confdefs.h | sed '
12463 s/'"$ac_delim"'/"\\\
12464 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12467 for (key in D) D_is_set[key] = 1
12470 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12472 split(line, arg, " ")
12473 if (arg[1] == "#") {
12477 defundef = substr(arg[1], 2)
12480 split(mac1, mac2, "(") #)
12482 prefix = substr(line, 1, index(line, defundef) - 1)
12483 if (D_is_set[macro]) {
12484 # Preserve the white space surrounding the "#".
12485 print prefix "define", macro P[macro] D[macro]
12488 # Replace #undef with comments. This is necessary, for example,
12489 # in the case of _POSIX_SOURCE, which is predefined and required
12490 # on some systems where configure will not decide to define it.
12491 if (defundef == "undef") {
12492 print "/*", prefix defundef, macro, "*/"
12500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12501 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12502 fi # test -n "$CONFIG_HEADERS"
12505 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12510 :[FHLC]) ac_mode=$ac_tag; continue;;
12512 case $ac_mode$ac_tag in
12514 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12515 :[FH]-) ac_tag=-:-;;
12516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12533 -) ac_f="$ac_tmp/stdin";;
12534 *) # Look for the file first in the build tree, then in the source tree
12535 # (if the path is not absolute). The absolute path cannot be DOS-style,
12536 # because $ac_f cannot contain `:'.
12540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12542 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12545 as_fn_append ac_file_inputs " '$ac_f'"
12548 # Let's still pretend it is `configure' which instantiates (i.e., don't
12549 # use $as_me), people would be surprised to read:
12550 # /* config.h. Generated by config.status. */
12551 configure_input='Generated from '`
12552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12554 if test x"$ac_file" != x-; then
12555 configure_input="$ac_file. $configure_input"
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12557 $as_echo "$as_me: creating $ac_file" >&6;}
12559 # Neutralize special characters interpreted by sed in replacement strings.
12560 case $configure_input in #(
12561 *\&* | *\|* | *\\* )
12562 ac_sed_conf_input=`$as_echo "$configure_input" |
12563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12564 *) ac_sed_conf_input=$configure_input;;
12568 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12574 ac_dir=`$as_dirname -- "$ac_file" ||
12575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576 X"$ac_file" : 'X\(//\)[^/]' \| \
12577 X"$ac_file" : 'X\(//\)$' \| \
12578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12579 $as_echo X"$ac_file" |
12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12584 /^X\(\/\/\)[^/].*/{
12597 as_dir="$ac_dir"; as_fn_mkdir_p
12601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12604 # A ".." for each directory in $ac_dir_suffix.
12605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12606 case $ac_top_builddir_sub in
12607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12611 ac_abs_top_builddir=$ac_pwd
12612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12613 # for backward compatibility:
12614 ac_top_builddir=$ac_top_build_prefix
12617 .) # We are building in place.
12619 ac_top_srcdir=$ac_top_builddir_sub
12620 ac_abs_top_srcdir=$ac_pwd ;;
12621 [\\/]* | ?:[\\/]* ) # Absolute name.
12622 ac_srcdir=$srcdir$ac_dir_suffix;
12623 ac_top_srcdir=$srcdir
12624 ac_abs_top_srcdir=$srcdir ;;
12625 *) # Relative name.
12626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12627 ac_top_srcdir=$ac_top_build_prefix$srcdir
12628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12646 # If the template does not know about datarootdir, expand it.
12647 # FIXME: This hack should be removed a few years after 2.60.
12648 ac_datarootdir_hack=; ac_datarootdir_seen=
12659 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12660 *datarootdir*) ac_datarootdir_seen=yes;;
12661 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12663 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12666 ac_datarootdir_hack='
12667 s&@datadir@&$datadir&g
12668 s&@docdir@&$docdir&g
12669 s&@infodir@&$infodir&g
12670 s&@localedir@&$localedir&g
12671 s&@mandir@&$mandir&g
12672 s&\\\${datarootdir}&$datarootdir&g' ;;
12676 # Neutralize VPATH when `$srcdir' = `.'.
12677 # Shell code in configure.ac might set extrasub.
12678 # FIXME: do we really want to maintain this feature?
12679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12680 ac_sed_extra="$ac_vpsub
12683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12686 s|@configure_input@|$ac_sed_conf_input|;t t
12687 s&@top_builddir@&$ac_top_builddir_sub&;t t
12688 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12689 s&@srcdir@&$ac_srcdir&;t t
12690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12691 s&@top_srcdir@&$ac_top_srcdir&;t t
12692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12693 s&@builddir@&$ac_builddir&;t t
12694 s&@abs_builddir@&$ac_abs_builddir&;t t
12695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12696 s&@INSTALL@&$ac_INSTALL&;t t
12697 $ac_datarootdir_hack
12699 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12700 if $ac_cs_awk_getline; then
12701 $AWK -f "$ac_tmp/subs.awk"
12703 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12705 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12707 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12708 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12709 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12710 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12712 which seems to be undefined. Please make sure it is defined" >&5
12713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12714 which seems to be undefined. Please make sure it is defined" >&2;}
12716 rm -f "$ac_tmp/stdin"
12718 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12719 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12727 if test x"$ac_file" != x-; then
12729 $as_echo "/* $configure_input */" \
12730 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12731 } >"$ac_tmp/config.h" \
12732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12733 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12735 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12738 mv "$ac_tmp/config.h" "$ac_file" \
12739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12742 $as_echo "/* $configure_input */" \
12743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12744 || as_fn_error $? "could not create -" "$LINENO" 5
12748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12749 $as_echo "$as_me: executing $ac_file commands" >&6;}
12754 case $ac_file$ac_mode in
12756 for ac_file in $CONFIG_FILES; do
12757 # Support "outfile[:infile[:infile...]]"
12759 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12761 # PO directories have a Makefile.in generated from Makefile.in.in.
12762 case "$ac_file" in */Makefile.in)
12763 # Adjust a relative srcdir.
12764 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12765 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12766 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12767 # In autoconf-2.13 it is called $ac_given_srcdir.
12768 # In autoconf-2.50 it is called $srcdir.
12769 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12770 case "$ac_given_srcdir" in
12771 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12772 /*) top_srcdir="$ac_given_srcdir" ;;
12773 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12775 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12776 rm -f "$ac_dir/POTFILES"
12777 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12778 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12779 POMAKEFILEDEPS="POTFILES.in"
12780 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12781 # on $ac_dir but don't depend on user-specified configuration
12783 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12784 # The LINGUAS file contains the set of available languages.
12785 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12786 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12788 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12789 # Hide the ALL_LINGUAS assigment from automake.
12790 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12791 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12793 # The set of available languages was given in configure.in.
12794 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12798 # Compute UPDATEPOFILES
12799 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12800 # Compute DUMMYPOFILES
12801 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12803 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12804 case "$ac_given_srcdir" in
12806 *) srcdirpre='$(srcdir)/' ;;
12812 for lang in $ALL_LINGUAS; do
12813 POFILES="$POFILES $srcdirpre$lang.po"
12814 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12815 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12816 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12818 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12819 # environment variable.
12821 if test -n "$ALL_LINGUAS"; then
12822 for presentlang in $ALL_LINGUAS; do
12824 if test "%UNSET%" != "$LINGUAS"; then
12825 desiredlanguages="$LINGUAS"
12827 desiredlanguages="$ALL_LINGUAS"
12829 for desiredlang in $desiredlanguages; do
12830 # Use the presentlang catalog if desiredlang is
12831 # a. equal to presentlang, or
12832 # b. a variant of presentlang (because in this case,
12833 # presentlang can be used as a fallback for messages
12834 # which are not translated in the desiredlang catalog).
12835 case "$desiredlang" in
12836 "$presentlang"*) useit=yes;;
12839 if test $useit = yes; then
12840 INST_LINGUAS="$INST_LINGUAS $presentlang"
12845 if test -n "$INST_LINGUAS"; then
12846 for lang in $INST_LINGUAS; do
12847 CATALOGS="$CATALOGS $lang.gmo"
12850 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12851 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"
12852 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12853 if test -f "$f"; then
12855 *.orig | *.bak | *~) ;;
12856 *) cat "$f" >> "$ac_dir/Makefile" ;;
12871 ac_clean_files=$ac_clean_files_save
12873 test $ac_write_fail = 0 ||
12874 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12877 # configure is writing to config.log, and then calls config.status.
12878 # config.status does its own redirection, appending to config.log.
12879 # Unfortunately, on DOS this fails, as config.log is still kept open
12880 # by configure, so config.status won't be able to write to it; its
12881 # output is simply discarded. So we exec the FD to /dev/null,
12882 # effectively closing config.log, so it can be properly (re)opened and
12883 # appended to by config.status. When coming back to configure, we
12884 # need to make the FD available again.
12885 if test "$no_create" != yes; then
12887 ac_config_status_args=
12888 test "$silent" = yes &&
12889 ac_config_status_args="$ac_config_status_args --quiet"
12891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12894 # would make configure fail if this is the last instruction.
12895 $ac_cs_success || as_fn_exit 1
12897 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12899 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12902 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi