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
856 enable_bmap_stats_ops
861 with_included_gettext
865 ac_precious_vars='build_alias
877 # Initialize some variables set by options.
879 ac_init_version=false
880 ac_unrecognized_opts=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
966 cache_file=config.cache ;;
968 -datadir | --datadir | --datadi | --datad)
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
994 eval enable_$ac_useropt=no ;;
996 -docdir | --docdir | --docdi | --doc | --do)
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1184 -site=* | --site=* | --sit=*)
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1224 eval with_$ac_useropt=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1240 eval with_$ac_useropt=no ;;
1243 # Obsolete; use --with-x.
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-maintainer-mode enable makefile rules useful for maintainers
1487 --enable-symlink-install use symlinks when installing instead of hard links
1488 --enable-relative-symlinks use relative symlinks when installing
1490 --enable-symlink-build use symlinks while building instead of hard links
1491 --enable-verbose-makecmds enable verbose make command output
1492 --enable-compression enable EXPERIMENTAL compression support
1493 --enable-htree enable EXPERIMENTAL htree directory support
1494 --enable-elf-shlibs select ELF shared libraries
1495 --enable-bsd-shlibs select BSD shared libraries
1496 --enable-profile build profiling libraries
1497 --enable-checker build checker libraries
1498 --enable-jbd-debug enable journal debugging
1499 --enable-blkid-debug enable blkid debugging
1500 --disable-testio-debug disable the use of the test I/O manager for debugging
1501 --disable-libuuid do not build private uuid library
1502 --disable-libblkid do not build private blkid library
1503 --enable-quota enable quota support
1504 --disable-backtrace disable use backtrace
1505 --disable-debugfs disable support of debugfs program
1506 --disable-imager disable support of e2image program
1507 --disable-resizer disable support of e2resize program
1508 --disable-defrag disable support of e4defrag program
1509 --enable-fsck build fsck wrapper program
1510 --enable-e2initrd-helper build e2initrd-helper program
1511 --disable-tls disable use of thread local support
1512 --disable-uuidd disable building the uuid daemon
1513 --disable-mmp disable support mmp, Multi Mount Protection
1514 --disable-bmap-stats disable collection of bitmap stats.
1515 --enable-bmap-stats-ops enable collection of additional bitmap stats
1516 --disable-nls do not use Native Language Support
1517 --disable-rpath do not hardcode runtime library paths
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-diet-libc use diet libc
1523 --with-cc no longer supported, use CC= instead
1524 --with-ccopts no longer supported, use CFLAGS= instead
1525 --with-ldopts no longer supported, use LDFLAGS= instead
1526 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1527 --with-gnu-ld assume the C compiler uses GNU ld default=no
1528 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1529 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1530 --with-included-gettext use the GNU gettext library included here
1531 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1532 --without-libintl-prefix don't search for libintl in includedir and libdir
1533 --with-multiarch=ARCH specify the multiarch triplet
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1544 PKG_CONFIG path to pkg-config utility
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to the package provider.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 test -x conftest$ac_exeext
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_link
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=$ac_status
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1789 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1790 # -------------------------------------------
1791 # Tests whether TYPE exists after having included INCLUDES, setting cache
1792 # variable VAR accordingly.
1793 ac_fn_c_check_type ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_type
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1860 if ac_fn_c_try_compile "$LINENO"; then :
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_header_compile
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1897 # include <limits.h>
1899 # include <assert.h>
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1926 if ac_fn_c_try_link "$LINENO"; then :
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1946 ac_fn_c_check_header_mongrel ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if eval \${$3+:} false; then :
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1959 # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_header_compiler=yes
1970 ac_header_compiler=no
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 ac_header_preproc=yes
1986 ac_header_preproc=no
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1992 # So? What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 eval "$3=\$ac_header_compiler"
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_header_mongrel
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2033 ac_fn_c_compute_int ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2046 return test_array [0];
2052 if ac_fn_c_try_compile "$LINENO"; then :
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2063 return test_array [0];
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid; break
2072 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073 if test $ac_lo -le $ac_mid; then
2077 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) < 0)];
2090 return test_array [0];
2096 if ac_fn_c_try_compile "$LINENO"; then :
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 return test_array [0];
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 return test_array [0];
2148 if ac_fn_c_try_compile "$LINENO"; then :
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2171 FILE *f = fopen ("conftest.val", "w");
2176 long int i = longval ();
2179 fprintf (f, "%ld", i);
2183 unsigned long int i = ulongval ();
2186 fprintf (f, "%lu", i);
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2196 if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_c_compute_int
2211 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2212 # ----------------------------------------------------
2213 # Tries to find if the field MEMBER exists in type AGGR, after including
2214 # INCLUDES, setting cache variable VAR accordingly.
2215 ac_fn_c_check_member ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2219 $as_echo_n "checking for $2.$3... " >&6; }
2220 if eval \${$4+:} false; then :
2221 $as_echo_n "(cached) " >&6
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2236 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2246 if (sizeof ac_aggr.$3)
2252 if ac_fn_c_try_compile "$LINENO"; then :
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266 } # ac_fn_c_check_member
2268 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2269 # ---------------------------------------------
2270 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272 ac_fn_c_check_decl ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 as_decl_name=`echo $2|sed 's/ *(.*//'`
2276 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2278 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2279 if eval \${$3+:} false; then :
2280 $as_echo_n "(cached) " >&6
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 #ifndef $as_decl_name
2290 (void) $as_decl_use;
2292 (void) $as_decl_name;
2300 if ac_fn_c_try_compile "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_decl
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2340 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2343 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2344 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2345 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2378 ac_must_keep_next=false
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 -* ) ac_must_keep_next=true ;;
2410 as_fn_append ac_configure_args " '$ac_arg'"
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 for ac_dir in config "$srcdir"/config; do
2671 if test -f "$ac_dir/install-sh"; then
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2675 elif test -f "$ac_dir/install.sh"; then
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 elif test -f "$ac_dir/shtool"; then
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2698 ac_config_headers="$ac_config_headers lib/config.h"
2704 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2705 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2706 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2708 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2709 MONTH=`echo $DATE | awk -F- '{print $2}'`
2710 YEAR=`echo $DATE | awk -F- '{print $3}'`
2712 if expr $YEAR ">" 1900 > /dev/null ; then
2713 E2FSPROGS_YEAR=$YEAR
2714 elif expr $YEAR ">" 90 >/dev/null ; then
2715 E2FSPROGS_YEAR=19$YEAR
2717 E2FSPROGS_YEAR=20$YEAR
2721 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2722 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2723 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2724 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2725 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2726 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2727 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2728 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2729 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2730 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2731 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2732 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2733 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2734 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2737 base_ver=`echo $E2FSPROGS_VERSION | \
2738 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2740 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2742 case $E2FSPROGS_VERSION in
2744 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2747 E2FSPROGS_PKGVER="$base_ver"
2751 unset DATE MONTH YEAR base_ver pre_vers date_spec
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2753 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2755 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 ac_save_IFS=$IFS; IFS='-'
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test "x$host_alias" = x; then
2805 ac_cv_host=$ac_cv_build
2807 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 ac_save_IFS=$IFS; IFS='-'
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$ac_cv_prog_CC"; then
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2915 if test "x$ac_ct_CC" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$CC" && break
3071 if test -z "$CC"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$ac_ct_CC" && break
3115 if test "x$ac_ct_CC" = x; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3140 for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150 if test -s conftest.err; then
3152 ... rest of stderr output deleted ...
3153 10q' conftest.err >conftest.er1
3154 cat conftest.er1 >&5
3156 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185 for ac_file in $ac_files
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3194 if { { ac_try="$ac_link_default"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3210 for ac_file in $ac_files ''
3212 test -f "$ac_file" || continue
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 # We found the default executable, but exeext='' is most
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3240 if test -z "$ac_file"; then :
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3279 for ac_file in conftest.exe conftest conftest.*; do
3280 test -f "$ac_file" || continue
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3307 FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3344 if test "$cross_compiling" = maybe; then
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3430 if ac_fn_c_try_compile "$LINENO"; then :
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3468 if ac_fn_c_try_compile "$LINENO"; then :
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3520 if test "$GCC" = yes; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 ac_cv_prog_cc_c89=no
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3539 struct buf { int x; };
3540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541 static char *e (p, i)
3547 static char *f (char * (*g) (char **, int), char **p, ...)
3552 s = g (p, va_arg (v,int));
3557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3558 function prototypes and stuff, but not '\xHH' hex character constants.
3559 These don't provoke an error unfortunately, instead are silently treated
3560 as 'x'. The following induces an error, until -std is added to get
3561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3562 array size at least. It's necessary to write '\x00'==0 to get something
3563 that's true only with -std. */
3564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567 inside strings and character constants. */
3569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571 int test (int i, double x);
3572 struct s1 {int (*f) (int a);};
3573 struct s2 {int (*f) (double a);};
3574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 CC="$ac_save_CC $ac_arg"
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_c89=$ac_arg
3592 rm -f core conftest.err conftest.$ac_objext
3593 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 rm -f conftest.$ac_ext
3600 case "x$ac_cv_prog_cc_c89" in
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3603 $as_echo "none needed" >&6; } ;;
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3606 $as_echo "unsupported" >&6; } ;;
3608 CC="$CC $ac_cv_prog_cc_c89"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3610 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 if test "x$ac_cv_prog_cc_c89" != xno; then :
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3625 if ${ac_cv_lib_dl_dlopen+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_check_lib_save_LIBS=$LIBS
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3633 /* Override any GCC internal prototype to avoid an error.
3634 Use char because int might match the return type of a GCC
3635 builtin and then its argument prototype would still apply. */
3648 if ac_fn_c_try_link "$LINENO"; then :
3649 ac_cv_lib_dl_dlopen=yes
3651 ac_cv_lib_dl_dlopen=no
3653 rm -f core conftest.err conftest.$ac_objext \
3654 conftest$ac_exeext conftest.$ac_ext
3655 LIBS=$ac_check_lib_save_LIBS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3662 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3669 # Check whether --with-diet-libc was given.
3670 if test "${with_diet_libc+set}" = set; then :
3671 withval=$with_diet_libc; CC="diet cc -nostdinc"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3674 $as_echo "CC=$CC" >&6; }
3677 # Check whether --with-cc was given.
3678 if test "${with_cc+set}" = set; then :
3679 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3683 # Check whether --with-ccopts was given.
3684 if test "${with_ccopts+set}" = set; then :
3685 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3689 # Check whether --with-ldopts was given.
3690 if test "${with_ldopts+set}" = set; then :
3691 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3738 if test -z "$ac_cv_prog_CC"; then
3740 # Extract the first word of "gcc", so it can be a program name with args.
3741 set dummy gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$ac_ct_CC"; then
3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CC="gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3776 if test "x$ac_ct_CC" = x; then
3779 case $cross_compiling:$ac_tool_warned in
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}cc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_CC="${ac_tool_prefix}cc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3832 if test -z "$CC"; then
3833 # Extract the first word of "cc", so it can be a program name with args.
3834 set dummy cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852 ac_prog_rejected=yes
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test $ac_prog_rejected = yes; then
3864 # We found a bogon in the path, so make sure we never use it.
3865 set dummy $ac_cv_prog_CC
3867 if test $# != 0; then
3868 # We chose a different compiler from the bogus one.
3869 # However, it has the same basename, so the bogon will be chosen
3870 # first if we set CC to just the basename; use the full file name.
3872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3878 if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 for ac_prog in cl.exe
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$CC" && break
3932 if test -z "$CC"; then
3934 for ac_prog in cl.exe
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_CC="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$ac_ct_CC" && break
3976 if test "x$ac_ct_CC" = x; then
3979 case $cross_compiling:$ac_tool_warned in
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "no acceptable C compiler found in \$PATH
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 # Provide some information about the compiler.
3998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4001 for ac_option in --version -v -V -qversion; do
4002 { { ac_try="$ac_compiler $ac_option >&5"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4011 if test -s conftest.err; then
4013 ... rest of stderr output deleted ...
4014 10q' conftest.err >conftest.er1
4015 cat conftest.er1 >&5
4017 rm -f conftest.er1 conftest.err
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4023 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4024 if ${ac_cv_c_compiler_gnu+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4041 if ac_fn_c_try_compile "$LINENO"; then :
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4052 if test $ac_compiler_gnu = yes; then
4057 ac_test_CFLAGS=${CFLAGS+set}
4058 ac_save_CFLAGS=$CFLAGS
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4061 if ${ac_cv_prog_cc_g+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_save_c_werror_flag=$ac_c_werror_flag
4065 ac_c_werror_flag=yes
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 if ac_fn_c_try_compile "$LINENO"; then :
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4121 $as_echo "$ac_cv_prog_cc_g" >&6; }
4122 if test "$ac_test_CFLAGS" = set; then
4123 CFLAGS=$ac_save_CFLAGS
4124 elif test $ac_cv_prog_cc_g = yes; then
4125 if test "$GCC" = yes; then
4131 if test "$GCC" = yes; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4138 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4139 if ${ac_cv_prog_cc_c89+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 ac_cv_prog_cc_c89=no
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4163 s = g (p, va_arg (v,int));
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4169 function prototypes and stuff, but not '\xHH' hex character constants.
4170 These don't provoke an error unfortunately, instead are silently treated
4171 as 'x'. The following induces an error, until -std is added to get
4172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4173 array size at least. It's necessary to write '\x00'==0 to get something
4174 that's true only with -std. */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178 inside strings and character constants. */
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4199 CC="$ac_save_CC $ac_arg"
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_c89=$ac_arg
4203 rm -f core conftest.err conftest.$ac_objext
4204 test "x$ac_cv_prog_cc_c89" != "xno" && break
4206 rm -f conftest.$ac_ext
4211 case "x$ac_cv_prog_cc_c89" in
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4219 CC="$CC $ac_cv_prog_cc_c89"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test "$GCC" = yes; then
4234 RDYNAMIC="-rdynamic"
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4248 if test -z "$CPP"; then
4249 if ${ac_cv_prog_CPP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: fails on valid input.
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ac_nonexistent.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4291 # Passes both tests.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4350 # Passes both tests.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4375 $as_echo_n "checking for additional special compiler flags... " >&6; }
4376 if test "$GCC" = yes
4379 alpha) addcflags="-mieee" ;;
4382 if test "x$addcflags" != x
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4385 $as_echo "$addcflags" >&6; }
4386 CFLAGS="$addcflags $CFLAGS"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4389 $as_echo "(none)" >&6; }
4395 # Check whether --with-root-prefix was given.
4396 if test "${with_root_prefix+set}" = set; then :
4397 withval=$with_root_prefix; root_prefix=$withval
4401 # Check whether --enable-maintainer-mode was given.
4402 if test "${enable_maintainer_mode+set}" = set; then :
4403 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4407 $as_echo "Disabling maintainer mode" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4411 $as_echo "Enabling maintainer mode" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4417 $as_echo "Disabling maintainer mode by default" >&6; }
4422 # Check whether --enable-symlink-install was given.
4423 if test "${enable_symlink_install+set}" = set; then :
4424 enableval=$enable_symlink_install; if test "$enableval" = "no"
4426 LINK_INSTALL_FLAGS=-f
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4428 $as_echo "Disabling symlinks for install" >&6; }
4430 LINK_INSTALL_FLAGS=-sf
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4432 $as_echo "Enabling symlinks for install" >&6; }
4436 LINK_INSTALL_FLAGS=-f
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4438 $as_echo "Disabling symlinks for install by default" >&6; }
4443 relative_symlink_defined=
4444 # Check whether --enable-relative-symlinks was given.
4445 if test "${enable_relative_symlinks+set}" = set; then :
4446 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4449 relative_symlink_defined=yes
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4451 $as_echo "Disabling relative symlinks for install" >&6; }
4453 SYMLINK_RELATIVE=--relative
4454 relative_symlink_defined=yes
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4456 $as_echo "Enabling relative symlinks for install" >&6; }
4460 # Check whether --enable-symlink-relative-symlinks was given.
4461 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4462 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4464 SYMLINK_RELATIVE=yes
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4466 $as_echo "Disabling relative symlinks for install" >&6; }
4468 SYMLINK_RELATIVE=--relative
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4470 $as_echo "Enabling relative symlinks for install" >&6; }
4474 if test -z "$relative_symlink_defined"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4478 $as_echo "Disabling relative symlinks for install by default" >&6; }
4484 # Check whether --enable-symlink-build was given.
4485 if test "${enable_symlink_build+set}" = set; then :
4486 enableval=$enable_symlink_build; if test "$enableval" = "no"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4490 $as_echo "Disabling symlinks for build" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4494 $as_echo "Enabling symlinks for build" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4500 $as_echo "Disabling symlinks for build by default" >&6; }
4505 # Check whether --enable-verbose-makecmds was given.
4506 if test "${enable_verbose_makecmds+set}" = set; then :
4507 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4510 $as_echo "Disabling verbose make commands" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4516 $as_echo "Enabling verbose make commands" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4524 $as_echo "Disabling verbose make commands" >&6; }
4534 # Check whether --enable-compression was given.
4535 if test "${enable_compression+set}" = set; then :
4536 enableval=$enable_compression; if test "$enableval" = "no"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4539 $as_echo "Disabling compression support" >&6; }
4542 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4545 $as_echo "Enabling compression support" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4547 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4552 $as_echo "Disabling compression support by default" >&6; }
4557 # Check whether --enable-htree was given.
4558 if test "${enable_htree+set}" = set; then :
4559 enableval=$enable_htree; if test "$enableval" = "no"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4563 $as_echo "Disabling htree directory support" >&6; }
4566 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4569 $as_echo "Enabling htree directory support" >&6; }
4574 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4577 $as_echo "Enabling htree directory support by default" >&6; }
4582 E2_PKG_CONFIG_STATIC=--static
4585 # Check whether --enable-elf-shlibs was given.
4586 if test "${enable_elf_shlibs+set}" = set; then :
4587 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4590 MAKEFILE_ELF=/dev/null
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4592 $as_echo "Disabling ELF shared libraries" >&6; }
4594 E2_PKG_CONFIG_STATIC=
4596 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4599 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4605 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4607 $as_echo "Enabling ELF shared libraries" >&6; }
4611 MAKEFILE_ELF=/dev/null
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4614 $as_echo "Disabling ELF shared libraries by default" >&6; }
4620 # Check whether --enable-bsd-shlibs was given.
4621 if test "${enable_bsd_shlibs+set}" = set; then :
4622 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4625 MAKEFILE_BSDLIB=/dev/null
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4627 $as_echo "Disabling BSD shared libraries" >&6; }
4629 E2_PKG_CONFIG_STATIC=
4631 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4635 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4640 $as_echo "Enabling BSD shared libraries" >&6; }
4644 MAKEFILE_BSDLIB=/dev/null
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4647 $as_echo "Disabling BSD shared libraries by default" >&6; }
4653 # Check whether --enable-profile was given.
4654 if test "${enable_profile+set}" = set; then :
4655 enableval=$enable_profile; if test "$enableval" = "no"
4658 MAKEFILE_PROFILE=/dev/null
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4660 $as_echo "Disabling profiling libraries" >&6; }
4663 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4664 PROFILED_LIB_EXT=_p.a
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4666 $as_echo "Building profiling libraries" >&6; }
4671 MAKEFILE_PROFILE=/dev/null
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4673 $as_echo "Disabling profiling libraries by default" >&6; }
4679 # Check whether --enable-checker was given.
4680 if test "${enable_checker+set}" = set; then :
4681 enableval=$enable_checker; if test "$enableval" = "no"
4684 MAKEFILE_CHECKER=/dev/null
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4686 $as_echo "Disabling checker libraries" >&6; }
4689 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4691 $as_echo "Building checker libraries" >&6; }
4696 MAKEFILE_CHECKER=/dev/null
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4698 $as_echo "Disabling checker libraries by default" >&6; }
4709 # Check whether --enable-jbd-debug was given.
4710 if test "${enable_jbd_debug+set}" = set; then :
4711 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4714 $as_echo "Disabling journal debugging" >&6; }
4717 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4720 $as_echo "Enabling journal debugging" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4725 $as_echo "Disabling journal debugging by default" >&6; }
4729 # Check whether --enable-blkid-debug was given.
4730 if test "${enable_blkid_debug+set}" = set; then :
4731 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4734 $as_echo "Disabling blkid debugging" >&6; }
4737 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4740 $as_echo "Enabling blkid debugging" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4745 $as_echo "Disabling blkid debugging by default" >&6; }
4749 # Check whether --enable-testio-debug was given.
4750 if test "${enable_testio_debug+set}" = set; then :
4751 enableval=$enable_testio_debug;
4752 if test "$enableval" = "no"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4755 $as_echo "Disabling testio debugging" >&6; }
4759 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4762 $as_echo "Enabling testio debugging" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4767 $as_echo "Enabling testio debugging by default" >&6; }
4768 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4777 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4778 if test -n "$ac_tool_prefix"; then
4779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4780 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4784 $as_echo_n "(cached) " >&6
4788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4810 if test -n "$PKG_CONFIG"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4812 $as_echo "$PKG_CONFIG" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_path_PKG_CONFIG"; then
4821 ac_pt_PKG_CONFIG=$PKG_CONFIG
4822 # Extract the first word of "pkg-config", so it can be a program name with args.
4823 set dummy pkg-config; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 case $ac_pt_PKG_CONFIG in
4831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4853 if test -n "$ac_pt_PKG_CONFIG"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4855 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4861 if test "x$ac_pt_PKG_CONFIG" = x; then
4864 case $cross_compiling:$ac_tool_warned in
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4868 ac_tool_warned=yes ;;
4870 PKG_CONFIG=$ac_pt_PKG_CONFIG
4873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4877 if test -n "$PKG_CONFIG"; then
4878 _pkg_min_version=0.9.0
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4880 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4883 $as_echo "yes" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4896 DEPPROFILED_LIBUUID=
4898 # Check whether --enable-libuuid was given.
4899 if test "${enable_libuuid+set}" = set; then :
4900 enableval=$enable_libuuid; if test "$enableval" = "no"
4902 if test -z "$PKG_CONFIG"; then
4903 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4907 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4908 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 ac_check_lib_save_LIBS=$LIBS
4912 LIBS="-luuid $LIBUUID $LIBS"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4916 /* Override any GCC internal prototype to avoid an error.
4917 Use char because int might match the return type of a GCC
4918 builtin and then its argument prototype would still apply. */
4922 char uuid_generate ();
4926 return uuid_generate ();
4931 if ac_fn_c_try_link "$LINENO"; then :
4932 ac_cv_lib_uuid_uuid_generate=yes
4934 ac_cv_lib_uuid_uuid_generate=no
4936 rm -f core conftest.err conftest.$ac_objext \
4937 conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4941 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4942 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4943 LIBUUID=`$PKG_CONFIG --libs uuid`;
4944 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4946 as_fn_error $? "external uuid library not found" "$LINENO" 5
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4951 $as_echo "Disabling private uuid library" >&6; }
4953 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4955 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4956 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4957 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4958 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4960 $as_echo "Enabling private uuid library" >&6; }
4964 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4966 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4967 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4968 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4969 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4971 $as_echo "Enabling private uuid library by default" >&6; }
4984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4985 if test -n "$ac_tool_prefix"; then
4986 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4991 $as_echo_n "(cached) " >&6
4995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5017 if test -n "$PKG_CONFIG"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5019 $as_echo "$PKG_CONFIG" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5027 if test -z "$ac_cv_path_PKG_CONFIG"; then
5028 ac_pt_PKG_CONFIG=$PKG_CONFIG
5029 # Extract the first word of "pkg-config", so it can be a program name with args.
5030 set dummy pkg-config; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5034 $as_echo_n "(cached) " >&6
5036 case $ac_pt_PKG_CONFIG in
5038 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5060 if test -n "$ac_pt_PKG_CONFIG"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5062 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5068 if test "x$ac_pt_PKG_CONFIG" = x; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned=yes ;;
5077 PKG_CONFIG=$ac_pt_PKG_CONFIG
5080 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5084 if test -n "$PKG_CONFIG"; then
5085 _pkg_min_version=0.9.0
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5087 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5088 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090 $as_echo "yes" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5103 DEPPROFILED_LIBBLKID=
5106 # Check whether --enable-libblkid was given.
5107 if test "${enable_libblkid+set}" = set; then :
5108 enableval=$enable_libblkid; if test "$enableval" = "no"
5110 if test -z "$PKG_CONFIG"; then
5111 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5115 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5116 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 ac_check_lib_save_LIBS=$LIBS
5120 LIBS="-lblkid $LIBBLKID $LIBS"
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5124 /* Override any GCC internal prototype to avoid an error.
5125 Use char because int might match the return type of a GCC
5126 builtin and then its argument prototype would still apply. */
5130 char blkid_get_cache ();
5134 return blkid_get_cache ();
5139 if ac_fn_c_try_link "$LINENO"; then :
5140 ac_cv_lib_blkid_blkid_get_cache=yes
5142 ac_cv_lib_blkid_blkid_get_cache=no
5144 rm -f core conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext conftest.$ac_ext
5146 LIBS=$ac_check_lib_save_LIBS
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5149 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5150 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5151 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5152 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5154 as_fn_error $? "external blkid library not found" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5159 $as_echo "Disabling private blkid library" >&6; }
5161 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5162 DEPLIBBLKID=$LIBBLKID
5163 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5164 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5165 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5166 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5167 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5170 $as_echo "Enabling private blkid library" >&6; }
5174 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5175 DEPLIBBLKID=$LIBBLKID
5176 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5177 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5178 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5179 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5180 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5183 $as_echo "Enabling private blkid library by default" >&6; }
5196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5203 $as_echo_n "(cached) " >&6
5207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5229 if test -n "$PKG_CONFIG"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5231 $as_echo "$PKG_CONFIG" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5239 if test -z "$ac_cv_path_PKG_CONFIG"; then
5240 ac_pt_PKG_CONFIG=$PKG_CONFIG
5241 # Extract the first word of "pkg-config", so it can be a program name with args.
5242 set dummy pkg-config; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 case $ac_pt_PKG_CONFIG in
5250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5272 if test -n "$ac_pt_PKG_CONFIG"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5274 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5280 if test "x$ac_pt_PKG_CONFIG" = x; then
5283 case $cross_compiling:$ac_tool_warned in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5289 PKG_CONFIG=$ac_pt_PKG_CONFIG
5292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5296 if test -n "$PKG_CONFIG"; then
5297 _pkg_min_version=0.9.0
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5299 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302 $as_echo "yes" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5311 # Check whether --enable-quota was given.
5312 if test "${enable_quota+set}" = set; then :
5313 enableval=$enable_quota; if test "$enableval" = "no"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5316 $as_echo "Disabling quota support" >&6; }
5318 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5321 $as_echo "Enabling quota support" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5326 $as_echo "Disabling quota support by default" >&6; }
5330 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5331 DEPLIBQUOTA=$LIBQUOTA
5332 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5333 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5334 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5335 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5344 # Check whether --enable-backtrace was given.
5345 if test "${enable_backtrace+set}" = set; then :
5346 enableval=$enable_backtrace; if test "$enableval" = "no"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5349 $as_echo "Disabling use of backtrace" >&6; }
5350 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5354 $as_echo "Enabling use of backtrace" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5359 $as_echo "Enabling use of backtrace by default" >&6; }
5363 # Check whether --enable-debugfs was given.
5364 if test "${enable_debugfs+set}" = set; then :
5365 enableval=$enable_debugfs; if test "$enableval" = "no"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5368 $as_echo "Disabling debugfs support" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5373 $as_echo "Enabling debugfs support" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5378 $as_echo "Enabling debugfs support by default" >&6; }
5384 # Check whether --enable-imager was given.
5385 if test "${enable_imager+set}" = set; then :
5386 enableval=$enable_imager; if test "$enableval" = "no"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5389 $as_echo "Disabling e2image support" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5394 $as_echo "Enabling e2image support" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5399 $as_echo "Enabling e2image support by default" >&6; }
5405 # Check whether --enable-resizer was given.
5406 if test "${enable_resizer+set}" = set; then :
5407 enableval=$enable_resizer; if test "$enableval" = "no"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5410 $as_echo "Disabling e2resize support" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5415 $as_echo "Enabling e2resize support" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5420 $as_echo "Enabling e2resize support by default" >&6; }
5426 # Check whether --enable-defrag was given.
5427 if test "${enable_defrag+set}" = set; then :
5428 enableval=$enable_defrag; if test "$enableval" = "no"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5431 $as_echo "Disabling e4defrag support" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5436 $as_echo "Enabling e4defrag support" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5441 $as_echo "Enabling e4defrag support by default" >&6; }
5447 # Check whether --enable-fsck was given.
5448 if test "${enable_fsck+set}" = set; then :
5449 enableval=$enable_fsck; if test "$enableval" = "no"
5451 FSCK_PROG='' FSCK_MAN=''
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5453 $as_echo "Not building fsck wrapper" >&6; }
5455 FSCK_PROG=fsck FSCK_MAN=fsck.8
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5457 $as_echo "Building fsck wrapper" >&6; }
5463 FSCK_PROG='' FSCK_MAN=''
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5465 $as_echo "Not building fsck wrapper by default" >&6; }
5468 FSCK_PROG=fsck FSCK_MAN=fsck.8
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5470 $as_echo "Building fsck wrapper by default" >&6; }
5477 # Check whether --enable-e2initrd-helper was given.
5478 if test "${enable_e2initrd_helper+set}" = set; then :
5479 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5481 E2INITRD_PROG='' E2INITRD_MAN=''
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5483 $as_echo "Not 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" >&5
5487 $as_echo "Building e2initrd helper" >&6; }
5491 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5493 $as_echo "Building e2initrd helper by default" >&6; }
5499 # Check whether --enable-tls was given.
5500 if test "${enable_tls+set}" = set; then :
5501 enableval=$enable_tls; if test "$enableval" = "no"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5505 $as_echo "Disabling thread local support" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5509 $as_echo "Enabling thread local support" >&6; }
5513 if test -n "$WITH_DIET_LIBC"
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5517 $as_echo "Diet libc does not support thread local support" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5521 $as_echo "Try using thread local support by default" >&6; }
5526 if test "$try_tls" = "yes"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5530 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5531 if ${ac_cv_tls+:} false; then :
5532 $as_echo_n "(cached) " >&6
5535 ax_tls_keywords="__thread __declspec(thread) none"
5536 for ax_tls_keyword in $ax_tls_keywords; do
5537 case $ax_tls_keyword in
5538 none) ac_cv_tls=none ; break ;;
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5545 static $ax_tls_keyword int bar;
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 ac_cv_tls=$ax_tls_keyword ; break
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 if test "$ac_cv_tls" != "none"; then
5571 cat >>confdefs.h <<_ACEOF
5572 #define TLS $ac_cv_tls
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5577 $as_echo "$ac_cv_tls" >&6; }
5581 # Check whether --enable-uuidd was given.
5582 if test "${enable_uuidd+set}" = set; then :
5583 enableval=$enable_uuidd; if test "$enableval" = "no"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5586 $as_echo "Not building uuidd" >&6; }
5589 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5593 $as_echo "Building uuidd" >&6; }
5597 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5601 $as_echo "Building uuidd by default" >&6; }
5607 # Check whether --enable-mmp was given.
5608 if test "${enable_mmp+set}" = set; then :
5609 enableval=$enable_mmp; if test "$enableval" = "no"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5612 $as_echo "Disabling mmp support" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5615 $as_echo "Enabling mmp support" >&6; }
5616 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5622 $as_echo "Enabling mmp support by default" >&6; }
5623 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5629 # Check whether --enable-bmap-stats was given.
5630 if test "${enable_bmap_stats+set}" = set; then :
5631 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5634 $as_echo "Disabling bitmap statistics support" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5637 $as_echo "Enabling bitmap statistics support" >&6; }
5638 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5644 $as_echo "Enabling bitmap statistics support by default" >&6; }
5645 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5651 # Check whether --enable-bmap-stats-ops was given.
5652 if test "${enable_bmap_stats_ops+set}" = set; then :
5653 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5656 $as_echo "Disabling additional bitmap statistics" >&6; }
5658 if test "x${enable_bmap_stats}" = "xno"; then :
5659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5662 See \`config.log' for more details" "$LINENO" 5; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5666 $as_echo "Enabling additional bitmap statistics" >&6; }
5667 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5673 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5677 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5679 GETTEXT_PACKAGE=e2fsprogs
5681 VERSION="$E2FSPROGS_VERSION"
5684 cat >>confdefs.h <<_ACEOF
5685 #define PACKAGE "$PACKAGE"
5689 cat >>confdefs.h <<_ACEOF
5690 #define VERSION "$VERSION"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5702 $as_echo_n "(cached) " >&6
5704 cat >conftest.make <<\_ACEOF
5707 @echo '@@@%%%=$(MAKE)=@@@%%%'
5709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5712 eval ac_cv_prog_make_${ac_make}_set=yes;;
5714 eval ac_cv_prog_make_${ac_make}_set=no;;
5718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5720 $as_echo "yes" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 SET_MAKE="MAKE=${MAKE-make}"
5728 # Find a good install program. We prefer a C program (faster),
5729 # so one script is as good as another. But avoid the broken or
5730 # incompatible versions:
5731 # SysV /etc/install, /usr/sbin/install
5732 # SunOS /usr/etc/install
5733 # IRIX /sbin/install
5735 # AmigaOS /C/install, which installs bootblocks on floppy discs
5736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5739 # OS/2's system install, which has a completely different semantic
5740 # ./install, which can be erroneously created by make from ./install.sh.
5741 # Reject install programs that cannot install multiple files.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5743 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5744 if test -z "$INSTALL"; then
5745 if ${ac_cv_path_install+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 # Account for people who put trailing slashes in PATH elements.
5754 case $as_dir/ in #((
5755 ./ | .// | /[cC]/* | \
5756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5760 # OSF1 and SCO ODT 3.0 have their own names for install.
5761 # Don't use installbsd from OSF since it installs stuff as root
5763 for ac_prog in ginstall scoinst install; do
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5766 if test $ac_prog = install &&
5767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5768 # AIX install. It has an incompatible calling convention.
5770 elif test $ac_prog = install &&
5771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5772 # program-specific install script used by HP pwplus--don't use.
5775 rm -rf conftest.one conftest.two conftest.dir
5776 echo one > conftest.one
5777 echo two > conftest.two
5779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5780 test -s conftest.one && test -s conftest.two &&
5781 test -s conftest.dir/conftest.one &&
5782 test -s conftest.dir/conftest.two
5784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5797 rm -rf conftest.one conftest.two conftest.dir
5800 if test "${ac_cv_path_install+set}" = set; then
5801 INSTALL=$ac_cv_path_install
5803 # As a last resort, use the slow shell script. Don't cache a
5804 # value for INSTALL within a source directory, because that will
5805 # break other packages using the cache if that directory is
5806 # removed, or if the value is a relative name.
5807 INSTALL=$ac_install_sh
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5811 $as_echo "$INSTALL" >&6; }
5813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5814 # It thinks the first close brace ends the variable substitution.
5815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5823 if test -n "$ac_aux_dir"; then
5824 case "$ac_aux_dir" in
5825 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5826 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5829 if test -z "$MKINSTALLDIRS"; then
5830 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5836 $as_echo_n "checking whether NLS is requested... " >&6; }
5837 # Check whether --enable-nls was given.
5838 if test "${enable_nls+set}" = set; then :
5839 enableval=$enable_nls; USE_NLS=$enableval
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5845 $as_echo "$USE_NLS" >&6; }
5852 # Prepare PATH_SEPARATOR.
5853 # The user is always right.
5854 if test "${PATH_SEPARATOR+set}" != set; then
5855 echo "#! /bin/sh" >conf$$.sh
5856 echo "exit 0" >>conf$$.sh
5858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5866 # Find out how to test for executable files. Don't use a zero-byte file,
5867 # as systems may use methods other than mode bits to determine executability.
5868 cat >conf$$.file <<_ASEOF
5872 chmod +x conf$$.file
5873 if test -x conf$$.file >/dev/null 2>&1; then
5874 ac_executable_p="test -x"
5876 ac_executable_p="test -f"
5880 # Extract the first word of "msgfmt", so it can be a program name with args.
5881 set dummy msgfmt; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_path_MSGFMT+:} false; then :
5885 $as_echo_n "(cached) " >&6
5889 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5892 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5893 for ac_dir in $PATH; do
5895 test -z "$ac_dir" && ac_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5898 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5899 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5900 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5911 MSGFMT="$ac_cv_path_MSGFMT"
5912 if test "$MSGFMT" != ":"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5914 $as_echo "$MSGFMT" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5920 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5921 set dummy gmsgfmt; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_path_GMSGFMT+:} false; then :
5925 $as_echo_n "(cached) " >&6
5929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5951 GMSGFMT=$ac_cv_path_GMSGFMT
5952 if test -n "$GMSGFMT"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5954 $as_echo "$GMSGFMT" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5963 # Prepare PATH_SEPARATOR.
5964 # The user is always right.
5965 if test "${PATH_SEPARATOR+set}" != set; then
5966 echo "#! /bin/sh" >conf$$.sh
5967 echo "exit 0" >>conf$$.sh
5969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5977 # Find out how to test for executable files. Don't use a zero-byte file,
5978 # as systems may use methods other than mode bits to determine executability.
5979 cat >conf$$.file <<_ASEOF
5983 chmod +x conf$$.file
5984 if test -x conf$$.file >/dev/null 2>&1; then
5985 ac_executable_p="test -x"
5987 ac_executable_p="test -f"
5991 # Extract the first word of "xgettext", so it can be a program name with args.
5992 set dummy xgettext; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_path_XGETTEXT+:} false; then :
5996 $as_echo_n "(cached) " >&6
6000 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6003 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6004 for ac_dir in $PATH; do
6006 test -z "$ac_dir" && ac_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6009 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6010 (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
6011 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6018 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6022 XGETTEXT="$ac_cv_path_XGETTEXT"
6023 if test "$XGETTEXT" != ":"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6025 $as_echo "$XGETTEXT" >&6; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6034 # Prepare PATH_SEPARATOR.
6035 # The user is always right.
6036 if test "${PATH_SEPARATOR+set}" != set; then
6037 echo "#! /bin/sh" >conf$$.sh
6038 echo "exit 0" >>conf$$.sh
6040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6048 # Find out how to test for executable files. Don't use a zero-byte file,
6049 # as systems may use methods other than mode bits to determine executability.
6050 cat >conf$$.file <<_ASEOF
6054 chmod +x conf$$.file
6055 if test -x conf$$.file >/dev/null 2>&1; then
6056 ac_executable_p="test -x"
6058 ac_executable_p="test -f"
6062 # Extract the first word of "msgmerge", so it can be a program name with args.
6063 set dummy msgmerge; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_path_MSGMERGE+:} false; then :
6067 $as_echo_n "(cached) " >&6
6071 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6074 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6075 for ac_dir in $PATH; do
6077 test -z "$ac_dir" && ac_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6080 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6081 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6088 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6092 MSGMERGE="$ac_cv_path_MSGMERGE"
6093 if test "$MSGMERGE" != ":"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6095 $as_echo "$MSGMERGE" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6102 if test "$GMSGFMT" != ":"; then
6103 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6104 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6107 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6109 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6114 if test "$XGETTEXT" != ":"; then
6115 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6116 (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
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6120 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6126 ac_config_commands="$ac_config_commands default-1"
6129 if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_RANLIB+:} false; then :
6135 $as_echo_n "(cached) " >&6
6137 if test -n "$RANLIB"; then
6138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 RANLIB=$ac_cv_prog_RANLIB
6158 if test -n "$RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6160 $as_echo "$RANLIB" >&6; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6168 if test -z "$ac_cv_prog_RANLIB"; then
6169 ac_ct_RANLIB=$RANLIB
6170 # Extract the first word of "ranlib", so it can be a program name with args.
6171 set dummy ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$ac_ct_RANLIB"; then
6178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_RANLIB="ranlib"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6198 if test -n "$ac_ct_RANLIB"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6200 $as_echo "$ac_ct_RANLIB" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6206 if test "x$ac_ct_RANLIB" = x; then
6209 case $cross_compiling:$ac_tool_warned in
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6215 RANLIB=$ac_ct_RANLIB
6218 RANLIB="$ac_cv_prog_RANLIB"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6223 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6224 if ${ac_cv_lib_cposix_strerror+:} false; then :
6225 $as_echo_n "(cached) " >&6
6227 ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-lcposix $LIBS"
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6247 if ac_fn_c_try_link "$LINENO"; then :
6248 ac_cv_lib_cposix_strerror=yes
6250 ac_cv_lib_cposix_strerror=no
6252 rm -f core conftest.err conftest.$ac_objext \
6253 conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6257 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6258 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6259 LIBS="$LIBS -lcposix"
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6267 if ${ac_cv_path_GREP+:} false; then :
6268 $as_echo_n "(cached) " >&6
6270 if test -z "$GREP"; then
6271 ac_path_GREP_found=false
6272 # Loop through the user's path and test for each of PROGNAME-LIST
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6277 test -z "$as_dir" && as_dir=.
6278 for ac_prog in grep ggrep; do
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6281 as_fn_executable_p "$ac_path_GREP" || continue
6282 # Check for GNU ac_path_GREP and select it if it is found.
6283 # Check for GNU $ac_path_GREP
6284 case `"$ac_path_GREP" --version 2>&1` in
6286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6289 $as_echo_n 0123456789 >"conftest.in"
6292 cat "conftest.in" "conftest.in" >"conftest.tmp"
6293 mv "conftest.tmp" "conftest.in"
6294 cp "conftest.in" "conftest.nl"
6295 $as_echo 'GREP' >> "conftest.nl"
6296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6298 as_fn_arith $ac_count + 1 && ac_count=$as_val
6299 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6300 # Best one so far, save it but keep looking for a better one
6301 ac_cv_path_GREP="$ac_path_GREP"
6302 ac_path_GREP_max=$ac_count
6304 # 10*(2^10) chars as input seems more than enough
6305 test $ac_count -gt 10 && break
6307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6310 $ac_path_GREP_found && break 3
6315 if test -z "$ac_cv_path_GREP"; then
6316 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6319 ac_cv_path_GREP=$GREP
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6324 $as_echo "$ac_cv_path_GREP" >&6; }
6325 GREP="$ac_cv_path_GREP"
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6329 $as_echo_n "checking for egrep... " >&6; }
6330 if ${ac_cv_path_EGREP+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6334 then ac_cv_path_EGREP="$GREP -E"
6336 if test -z "$EGREP"; then
6337 ac_path_EGREP_found=false
6338 # Loop through the user's path and test for each of PROGNAME-LIST
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6343 test -z "$as_dir" && as_dir=.
6344 for ac_prog in egrep; do
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6347 as_fn_executable_p "$ac_path_EGREP" || continue
6348 # Check for GNU ac_path_EGREP and select it if it is found.
6349 # Check for GNU $ac_path_EGREP
6350 case `"$ac_path_EGREP" --version 2>&1` in
6352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6355 $as_echo_n 0123456789 >"conftest.in"
6358 cat "conftest.in" "conftest.in" >"conftest.tmp"
6359 mv "conftest.tmp" "conftest.in"
6360 cp "conftest.in" "conftest.nl"
6361 $as_echo 'EGREP' >> "conftest.nl"
6362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6364 as_fn_arith $ac_count + 1 && ac_count=$as_val
6365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6366 # Best one so far, save it but keep looking for a better one
6367 ac_cv_path_EGREP="$ac_path_EGREP"
6368 ac_path_EGREP_max=$ac_count
6370 # 10*(2^10) chars as input seems more than enough
6371 test $ac_count -gt 10 && break
6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6376 $ac_path_EGREP_found && break 3
6381 if test -z "$ac_cv_path_EGREP"; then
6382 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6385 ac_cv_path_EGREP=$EGREP
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6391 $as_echo "$ac_cv_path_EGREP" >&6; }
6392 EGREP="$ac_cv_path_EGREP"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6396 $as_echo_n "checking for ANSI C header files... " >&6; }
6397 if ${ac_cv_header_stdc+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 ac_cv_header_stdc=yes
6418 ac_cv_header_stdc=no
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 if test $ac_cv_header_stdc = yes; then
6423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "memchr" >/dev/null 2>&1; then :
6433 ac_cv_header_stdc=no
6439 if test $ac_cv_header_stdc = yes; then
6440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "free" >/dev/null 2>&1; then :
6450 ac_cv_header_stdc=no
6456 if test $ac_cv_header_stdc = yes; then
6457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6458 if test "$cross_compiling" = yes; then :
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6465 #if ((' ' & 0x0FF) == 0x020)
6466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6469 # define ISLOWER(c) \
6470 (('a' <= (c) && (c) <= 'i') \
6471 || ('j' <= (c) && (c) <= 'r') \
6472 || ('s' <= (c) && (c) <= 'z'))
6473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6481 for (i = 0; i < 256; i++)
6482 if (XOR (islower (i), ISLOWER (i))
6483 || toupper (i) != TOUPPER (i))
6488 if ac_fn_c_try_run "$LINENO"; then :
6491 ac_cv_header_stdc=no
6493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6494 conftest.$ac_objext conftest.beam conftest.$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6500 $as_echo "$ac_cv_header_stdc" >&6; }
6501 if test $ac_cv_header_stdc = yes; then
6503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6508 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6509 if ${ac_cv_c_const+:} false; then :
6510 $as_echo_n "(cached) " >&6
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6520 /* Ultrix mips cc rejects this sort of thing. */
6521 typedef int charset[2];
6522 const charset cs = { 0, 0 };
6523 /* SunOS 4.1.1 cc rejects this. */
6524 char const *const *pcpcc;
6526 /* NEC SVR4.0.2 mips cc rejects this. */
6527 struct point {int x, y;};
6528 static struct point const zero = {0,0};
6529 /* AIX XL C 1.02.0.0 rejects this.
6530 It does not let you subtract one const X* pointer from another in
6531 an arm of an if-expression whose if-part is not a constant
6533 const char *g = "string";
6534 pcpcc = &g + (g ? g-g : 0);
6535 /* HPUX 7.0 cc rejects these. */
6537 ppc = (char**) pcpcc;
6538 pcpcc = (char const *const *) ppc;
6539 { /* SCO 3.2v4 cc rejects this sort of thing. */
6542 char const *s = 0 ? (char *) 0 : (char const *) 0;
6547 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6549 const int *foo = &x[0];
6552 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6553 typedef const int *iptr;
6557 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6558 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6559 struct s { int j; const int *ap[3]; } bx;
6560 struct s *b = &bx; b->j = 5;
6562 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6566 return !cs[0] && !zero.x;
6573 if ac_fn_c_try_compile "$LINENO"; then :
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6581 $as_echo "$ac_cv_c_const" >&6; }
6582 if test $ac_cv_c_const = no; then
6584 $as_echo "#define const /**/" >>confdefs.h
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6590 $as_echo_n "checking for signed... " >&6; }
6591 if ${bh_cv_c_signed+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6605 if ac_fn_c_try_compile "$LINENO"; then :
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6613 $as_echo "$bh_cv_c_signed" >&6; }
6614 if test $bh_cv_c_signed = no; then
6616 $as_echo "#define signed /**/" >>confdefs.h
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6621 $as_echo_n "checking for inline... " >&6; }
6622 if ${ac_cv_c_inline+:} false; then :
6623 $as_echo_n "(cached) " >&6
6626 for ac_kw in inline __inline__ __inline; do
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6631 static $ac_kw foo_t static_foo () {return 0; }
6632 $ac_kw foo_t foo () {return 0; }
6636 if ac_fn_c_try_compile "$LINENO"; then :
6637 ac_cv_c_inline=$ac_kw
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 test "$ac_cv_c_inline" != no && break
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6645 $as_echo "$ac_cv_c_inline" >&6; }
6647 case $ac_cv_c_inline in
6650 case $ac_cv_c_inline in
6652 *) ac_val=$ac_cv_c_inline;;
6654 cat >>confdefs.h <<_ACEOF
6656 #define inline $ac_val
6662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6663 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6664 inttypes.h stdint.h unistd.h
6666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6667 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6670 cat >>confdefs.h <<_ACEOF
6671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6680 if test "x$ac_cv_type_off_t" = xyes; then :
6684 cat >>confdefs.h <<_ACEOF
6685 #define off_t long int
6690 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6691 if test "x$ac_cv_type_size_t" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696 #define size_t unsigned int
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6703 $as_echo_n "checking for long long... " >&6; }
6704 if ${ac_cv_type_long_long+:} false; then :
6705 $as_echo_n "(cached) " >&6
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 long long ll = 1LL; int i = 63;
6713 long long llmax = (long long) -1;
6714 return ll << i | ll >> i | llmax / ll | llmax % ll;
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 ac_cv_type_long_long=yes
6722 ac_cv_type_long_long=no
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6728 $as_echo "$ac_cv_type_long_long" >&6; }
6729 if test $ac_cv_type_long_long = yes; then
6731 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6737 $as_echo_n "checking for long double... " >&6; }
6738 if ${gt_cv_c_long_double+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test "$GCC" = yes; then
6742 gt_cv_c_long_double=yes
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6748 long double foo = 0.0;
6749 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6750 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 gt_cv_c_long_double=yes
6763 gt_cv_c_long_double=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6769 $as_echo "$gt_cv_c_long_double" >&6; }
6770 if test $gt_cv_c_long_double = yes; then
6772 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6778 $as_echo_n "checking for wchar_t... " >&6; }
6779 if ${gt_cv_c_wchar_t+:} false; then :
6780 $as_echo_n "(cached) " >&6
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6785 wchar_t foo = (wchar_t)'\0';
6794 if ac_fn_c_try_compile "$LINENO"; then :
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6802 $as_echo "$gt_cv_c_wchar_t" >&6; }
6803 if test $gt_cv_c_wchar_t = yes; then
6805 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6811 $as_echo_n "checking for wint_t... " >&6; }
6812 if ${gt_cv_c_wint_t+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6818 wint_t foo = (wchar_t)'\0';
6827 if ac_fn_c_try_compile "$LINENO"; then :
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6835 $as_echo "$gt_cv_c_wint_t" >&6; }
6836 if test $gt_cv_c_wint_t = yes; then
6838 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6844 $as_echo_n "checking for inttypes.h... " >&6; }
6845 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <sys/types.h>
6851 #include <inttypes.h>
6855 uintmax_t i = (uintmax_t) -1;
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 jm_ac_cv_header_inttypes_h=yes
6863 jm_ac_cv_header_inttypes_h=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6868 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6869 if test $jm_ac_cv_header_inttypes_h = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6879 $as_echo_n "checking for stdint.h... " >&6; }
6880 if ${jm_ac_cv_header_stdint_h+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <sys/types.h>
6890 uintmax_t i = (uintmax_t) -1;
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 jm_ac_cv_header_stdint_h=yes
6898 jm_ac_cv_header_stdint_h=no
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6903 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6904 if test $jm_ac_cv_header_stdint_h = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STDINT_H_WITH_UINTMAX 1
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6916 $as_echo_n "checking for intmax_t... " >&6; }
6917 if ${gt_cv_c_intmax_t+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6925 #if HAVE_STDINT_H_WITH_UINTMAX
6928 #if HAVE_INTTYPES_H_WITH_UINTMAX
6929 #include <inttypes.h>
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 gt_cv_c_intmax_t=yes
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6948 $as_echo "$gt_cv_c_intmax_t" >&6; }
6949 if test $gt_cv_c_intmax_t = yes; then
6951 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6958 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6959 if ${gt_cv_func_printf_posix+:} false; then :
6960 $as_echo_n "(cached) " >&6
6963 if test "$cross_compiling" = yes; then :
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6968 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "notposix" >/dev/null 2>&1; then :
6975 gt_cv_func_printf_posix="guessing no"
6977 gt_cv_func_printf_posix="guessing yes"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6988 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6989 dollar expansion (possibly an autoconf bug). */
6990 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6991 static char buf[100];
6994 sprintf (buf, format, 33, 55);
6995 return (strcmp (buf, "55 33") != 0);
6998 if ac_fn_c_try_run "$LINENO"; then :
6999 gt_cv_func_printf_posix=yes
7001 gt_cv_func_printf_posix=no
7003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7004 conftest.$ac_objext conftest.beam conftest.$ac_ext
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7010 $as_echo "$gt_cv_func_printf_posix" >&6; }
7011 case $gt_cv_func_printf_posix in
7014 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7019 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7020 # for constant arguments. Useless!
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7022 $as_echo_n "checking for working alloca.h... " >&6; }
7023 if ${ac_cv_working_alloca_h+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7032 char *p = (char *) alloca (2 * sizeof (int));
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 ac_cv_working_alloca_h=yes
7041 ac_cv_working_alloca_h=no
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7047 $as_echo "$ac_cv_working_alloca_h" >&6; }
7048 if test $ac_cv_working_alloca_h = yes; then
7050 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7055 $as_echo_n "checking for alloca... " >&6; }
7056 if ${ac_cv_func_alloca_works+:} false; then :
7057 $as_echo_n "(cached) " >&6
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7062 # define alloca __builtin_alloca
7065 # include <malloc.h>
7066 # define alloca _alloca
7068 # ifdef HAVE_ALLOCA_H
7069 # include <alloca.h>
7074 # ifndef alloca /* predefined by HP cc +Olibcalls */
7075 void *alloca (size_t);
7085 char *p = (char *) alloca (1);
7091 if ac_fn_c_try_link "$LINENO"; then :
7092 ac_cv_func_alloca_works=yes
7094 ac_cv_func_alloca_works=no
7096 rm -f core conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7100 $as_echo "$ac_cv_func_alloca_works" >&6; }
7102 if test $ac_cv_func_alloca_works = yes; then
7104 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7107 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7108 # that cause trouble. Some versions do not even contain alloca or
7109 # contain a buggy version. If you still want to use their alloca,
7110 # use ar to extract alloca.o from them instead of compiling alloca.c.
7112 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7114 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7118 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7119 if ${ac_cv_os_cray+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 #if defined CRAY && ! defined CRAY2
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "webecray" >/dev/null 2>&1; then :
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7141 $as_echo "$ac_cv_os_cray" >&6; }
7142 if test $ac_cv_os_cray = yes; then
7143 for ac_func in _getb67 GETB67 getb67; do
7144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7148 cat >>confdefs.h <<_ACEOF
7149 #define CRAY_STACKSEG_END $ac_func
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7159 $as_echo_n "checking stack direction for C alloca... " >&6; }
7160 if ${ac_cv_c_stack_direction+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 if test "$cross_compiling" = yes; then :
7164 ac_cv_c_stack_direction=0
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 $ac_includes_default
7170 find_stack_direction (int *addr, int depth)
7175 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7176 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7181 main (int argc, char **argv)
7183 return find_stack_direction (0, argc + !argv + 20) < 0;
7186 if ac_fn_c_try_run "$LINENO"; then :
7187 ac_cv_c_stack_direction=1
7189 ac_cv_c_stack_direction=-1
7191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7192 conftest.$ac_objext conftest.beam conftest.$ac_ext
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7197 $as_echo "$ac_cv_c_stack_direction" >&6; }
7198 cat >>confdefs.h <<_ACEOF
7199 #define STACK_DIRECTION $ac_cv_c_stack_direction
7208 for ac_header in $ac_header_list
7210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7214 cat >>confdefs.h <<_ACEOF
7215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229 for ac_func in getpagesize
7231 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7232 if test "x$ac_cv_func_getpagesize" = xyes; then :
7233 cat >>confdefs.h <<_ACEOF
7234 #define HAVE_GETPAGESIZE 1
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7241 $as_echo_n "checking for working mmap... " >&6; }
7242 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7243 $as_echo_n "(cached) " >&6
7245 if test "$cross_compiling" = yes; then :
7246 ac_cv_func_mmap_fixed_mapped=no
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 $ac_includes_default
7251 /* malloc might have been renamed as rpl_malloc. */
7254 /* Thanks to Mike Haertel and Jim Avera for this test.
7255 Here is a matrix of mmap possibilities:
7256 mmap private not fixed
7257 mmap private fixed at somewhere currently unmapped
7258 mmap private fixed at somewhere already mapped
7259 mmap shared not fixed
7260 mmap shared fixed at somewhere currently unmapped
7261 mmap shared fixed at somewhere already mapped
7262 For private mappings, we should verify that changes cannot be read()
7263 back from the file, nor mmap's back from the file at a different
7264 address. (There have been systems where private was not correctly
7265 implemented like the infamous i386 svr4.0, and systems where the
7266 VM page cache was not coherent with the file system buffer cache
7267 like early versions of FreeBSD and possibly contemporary NetBSD.)
7268 For shared mappings, we should conversely verify that changes get
7269 propagated back to all the places they're supposed to be.
7271 Grep wants private fixed already mapped.
7272 The main things grep needs to know about mmap are:
7273 * does it exist and is it safe to write into the mmap'd area
7274 * how to use it (BSD variants) */
7277 #include <sys/mman.h>
7279 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7283 /* This mess was copied from the GNU getpagesize.h. */
7284 #ifndef HAVE_GETPAGESIZE
7285 # ifdef _SC_PAGESIZE
7286 # define getpagesize() sysconf(_SC_PAGESIZE)
7287 # else /* no _SC_PAGESIZE */
7288 # ifdef HAVE_SYS_PARAM_H
7289 # include <sys/param.h>
7290 # ifdef EXEC_PAGESIZE
7291 # define getpagesize() EXEC_PAGESIZE
7292 # else /* no EXEC_PAGESIZE */
7294 # define getpagesize() NBPG * CLSIZE
7297 # endif /* no CLSIZE */
7298 # else /* no NBPG */
7300 # define getpagesize() NBPC
7301 # else /* no NBPC */
7303 # define getpagesize() PAGESIZE
7304 # endif /* PAGESIZE */
7305 # endif /* no NBPC */
7306 # endif /* no NBPG */
7307 # endif /* no EXEC_PAGESIZE */
7308 # else /* no HAVE_SYS_PARAM_H */
7309 # define getpagesize() 8192 /* punt totally */
7310 # endif /* no HAVE_SYS_PARAM_H */
7311 # endif /* no _SC_PAGESIZE */
7313 #endif /* no HAVE_GETPAGESIZE */
7318 char *data, *data2, *data3;
7323 pagesize = getpagesize ();
7325 /* First, make a file with some known garbage in it. */
7326 data = (char *) malloc (pagesize);
7329 for (i = 0; i < pagesize; ++i)
7330 *(data + i) = rand ();
7332 fd = creat ("conftest.mmap", 0600);
7335 if (write (fd, data, pagesize) != pagesize)
7339 /* Next, check that the tail of a page is zero-filled. File must have
7340 non-zero length, otherwise we risk SIGBUS for entire page. */
7341 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7345 if (write (fd2, cdata2, 1) != 1)
7347 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7348 if (data2 == MAP_FAILED)
7350 for (i = 0; i < pagesize; ++i)
7354 if (munmap (data2, pagesize))
7357 /* Next, try to mmap the file at a fixed address which already has
7358 something else allocated at it. If we can, also make sure that
7359 we see the same garbage. */
7360 fd = open ("conftest.mmap", O_RDWR);
7363 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7364 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7366 for (i = 0; i < pagesize; ++i)
7367 if (*(data + i) != *(data2 + i))
7370 /* Finally, make sure that changes to the mapped area do not
7371 percolate back to the file as seen by read(). (This is a bug on
7372 some variants of i386 svr4.0.) */
7373 for (i = 0; i < pagesize; ++i)
7374 *(data2 + i) = *(data2 + i) + 1;
7375 data3 = (char *) malloc (pagesize);
7378 if (read (fd, data3, pagesize) != pagesize)
7380 for (i = 0; i < pagesize; ++i)
7381 if (*(data + i) != *(data3 + i))
7387 if ac_fn_c_try_run "$LINENO"; then :
7388 ac_cv_func_mmap_fixed_mapped=yes
7390 ac_cv_func_mmap_fixed_mapped=no
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7393 conftest.$ac_objext conftest.beam conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7398 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7399 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7401 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7404 rm -f conftest.mmap conftest.txt
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7408 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7409 if ${ac_cv_gnu_library_2_1+:} false; then :
7410 $as_echo_n "(cached) " >&6
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7415 #include <features.h>
7416 #ifdef __GNU_LIBRARY__
7417 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7425 ac_cv_gnu_library_2_1=yes
7427 ac_cv_gnu_library_2_1=no
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7435 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7437 GLIBC21="$ac_cv_gnu_library_2_1"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7443 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7444 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7445 $as_echo_n "(cached) " >&6
7448 if test "$cross_compiling" = yes; then :
7450 # Guess based on the CPU.
7452 alpha* | i3456786 | m68k | s390*)
7453 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7455 gt_cv_int_divbyzero_sigfpe="guessing no";;
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7467 sigfpe_handler (int sig)
7469 sigfpe_handler (sig) int sig;
7472 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7473 exit (sig != SIGFPE);
7483 signal (SIGFPE, sigfpe_handler);
7484 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7485 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7486 signal (SIGTRAP, sigfpe_handler);
7488 /* Linux/SPARC yields signal SIGILL. */
7489 #if defined (__sparc__) && defined (__linux__)
7490 signal (SIGILL, sigfpe_handler);
7499 if ac_fn_c_try_run "$LINENO"; then :
7500 gt_cv_int_divbyzero_sigfpe=yes
7502 gt_cv_int_divbyzero_sigfpe=no
7504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7505 conftest.$ac_objext conftest.beam conftest.$ac_ext
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7511 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7512 case "$gt_cv_int_divbyzero_sigfpe" in
7517 cat >>confdefs.h <<_ACEOF
7518 #define INTDIV0_RAISES_SIGFPE $value
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7524 $as_echo_n "checking for unsigned long long... " >&6; }
7525 if ${ac_cv_type_unsigned_long_long+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 unsigned long long ull = 1ULL; int i = 63;
7534 unsigned long long ullmax = (unsigned long long) -1;
7535 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 ac_cv_type_unsigned_long_long=yes
7543 ac_cv_type_unsigned_long_long=no
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7549 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7550 if test $ac_cv_type_unsigned_long_long = yes; then
7552 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7559 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7561 test $ac_cv_type_unsigned_long_long = yes \
7562 && ac_type='unsigned long long' \
7563 || ac_type='unsigned long'
7565 cat >>confdefs.h <<_ACEOF
7566 #define uintmax_t $ac_type
7571 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7577 $as_echo_n "checking for inttypes.h... " >&6; }
7578 if ${gt_cv_header_inttypes_h+:} false; then :
7579 $as_echo_n "(cached) " >&6
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 #include <sys/types.h>
7585 #include <inttypes.h>
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 gt_cv_header_inttypes_h=yes
7597 gt_cv_header_inttypes_h=no
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7603 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7604 if test $gt_cv_header_inttypes_h = yes; then
7606 cat >>confdefs.h <<_ACEOF
7607 #define HAVE_INTTYPES_H 1
7614 if test $gt_cv_header_inttypes_h = yes; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7616 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7617 if ${gt_cv_inttypes_pri_broken+:} false; then :
7618 $as_echo_n "(cached) " >&6
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <inttypes.h>
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 gt_cv_inttypes_pri_broken=no
7639 gt_cv_inttypes_pri_broken=yes
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7645 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7647 if test "$gt_cv_inttypes_pri_broken" = yes; then
7649 cat >>confdefs.h <<_ACEOF
7650 #define PRI_MACROS_BROKEN 1
7656 for ac_header in stdint.h
7658 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7659 if test "x$ac_cv_header_stdint_h" = xyes; then :
7660 cat >>confdefs.h <<_ACEOF
7661 #define HAVE_STDINT_H 1
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7669 $as_echo_n "checking for SIZE_MAX... " >&6; }
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "Found it" >/dev/null 2>&1; then :
7689 if test -z "$result"; then
7690 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7697 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7704 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7711 if test "$fits_in_uint" = 1; then
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7716 extern unsigned long foo;
7726 if ac_fn_c_try_compile "$LINENO"; then :
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 if test -z "$result"; then
7732 if test "$fits_in_uint" = 1; then
7733 result="$res_hi$res_lo"U
7735 result="$res_hi$res_lo"UL
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7742 $as_echo "$result" >&6; }
7743 if test "$result" != yes; then
7745 cat >>confdefs.h <<_ACEOF
7746 #define SIZE_MAX $result
7753 for ac_header in stdint.h
7755 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7756 if test "x$ac_cv_header_stdint_h" = xyes; then :
7757 cat >>confdefs.h <<_ACEOF
7758 #define HAVE_STDINT_H 1
7767 if test "X$prefix" = "XNONE"; then
7768 acl_final_prefix="$ac_default_prefix"
7770 acl_final_prefix="$prefix"
7772 if test "X$exec_prefix" = "XNONE"; then
7773 acl_final_exec_prefix='${prefix}'
7775 acl_final_exec_prefix="$exec_prefix"
7777 acl_save_prefix="$prefix"
7778 prefix="$acl_final_prefix"
7779 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7780 prefix="$acl_save_prefix"
7783 # Check whether --with-gnu-ld was given.
7784 if test "${with_gnu_ld+set}" = set; then :
7785 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7790 # Prepare PATH_SEPARATOR.
7791 # The user is always right.
7792 if test "${PATH_SEPARATOR+set}" != set; then
7793 echo "#! /bin/sh" >conf$$.sh
7794 echo "exit 0" >>conf$$.sh
7796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7804 if test "$GCC" = yes; then
7805 # Check if gcc -print-prog-name=ld gives a path.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7807 $as_echo_n "checking for ld used by GCC... " >&6; }
7810 # gcc leaves a trailing carriage return which upsets mingw
7811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7816 # Accept absolute paths.
7817 [\\/]* | [A-Za-z]:[\\/]*)
7818 re_direlt='/[^/][^/]*/\.\./'
7819 # Canonicalize the path of ld
7820 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7821 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7822 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7824 test -z "$LD" && LD="$ac_prog"
7827 # If it fails, then pretend we aren't using GCC.
7831 # If it is relative, then search for the first ld in PATH.
7835 elif test "$with_gnu_ld" = yes; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7837 $as_echo_n "checking for GNU ld... " >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7840 $as_echo_n "checking for non-GNU ld... " >&6; }
7842 if ${acl_cv_path_LD+:} false; then :
7843 $as_echo_n "(cached) " >&6
7845 if test -z "$LD"; then
7846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7847 for ac_dir in $PATH; do
7848 test -z "$ac_dir" && ac_dir=.
7849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7850 acl_cv_path_LD="$ac_dir/$ac_prog"
7851 # Check to see if the program is GNU ld. I'd rather use --version,
7852 # but apparently some GNU ld's only accept -v.
7853 # Break only if it was the GNU/non-GNU ld that we prefer.
7854 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7855 *GNU* | *'with BFD'*)
7856 test "$with_gnu_ld" != no && break ;;
7858 test "$with_gnu_ld" != yes && break ;;
7864 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7868 LD="$acl_cv_path_LD"
7869 if test -n "$LD"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7871 $as_echo "$LD" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7879 if ${acl_cv_prog_gnu_ld+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7883 case `$LD -v 2>&1 </dev/null` in
7884 *GNU* | *'with BFD'*)
7885 acl_cv_prog_gnu_ld=yes ;;
7887 acl_cv_prog_gnu_ld=no ;;
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7891 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7892 with_gnu_ld=$acl_cv_prog_gnu_ld
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7897 $as_echo_n "checking for shared library run path origin... " >&6; }
7898 if ${acl_cv_rpath+:} false; then :
7899 $as_echo_n "(cached) " >&6
7902 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7903 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7910 $as_echo "$acl_cv_rpath" >&6; }
7912 libext="$acl_cv_libext"
7913 shlibext="$acl_cv_shlibext"
7914 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7915 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7916 hardcode_direct="$acl_cv_hardcode_direct"
7917 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7918 # Check whether --enable-rpath was given.
7919 if test "${enable_rpath+set}" = set; then :
7920 enableval=$enable_rpath; :
7934 acl_save_prefix="$prefix"
7935 prefix="$acl_final_prefix"
7936 acl_save_exec_prefix="$exec_prefix"
7937 exec_prefix="$acl_final_exec_prefix"
7939 eval additional_includedir=\"$includedir\"
7940 eval additional_libdir=\"$libdir\"
7942 exec_prefix="$acl_save_exec_prefix"
7943 prefix="$acl_save_prefix"
7946 # Check whether --with-libiconv-prefix was given.
7947 if test "${with_libiconv_prefix+set}" = set; then :
7948 withval=$with_libiconv_prefix;
7949 if test "X$withval" = "Xno"; then
7952 if test "X$withval" = "X"; then
7954 acl_save_prefix="$prefix"
7955 prefix="$acl_final_prefix"
7956 acl_save_exec_prefix="$exec_prefix"
7957 exec_prefix="$acl_final_exec_prefix"
7959 eval additional_includedir=\"$includedir\"
7960 eval additional_libdir=\"$libdir\"
7962 exec_prefix="$acl_save_exec_prefix"
7963 prefix="$acl_save_prefix"
7966 additional_includedir="$withval/include"
7967 additional_libdir="$withval/lib"
7978 names_already_handled=
7979 names_next_round='iconv '
7980 while test -n "$names_next_round"; do
7981 names_this_round="$names_next_round"
7983 for name in $names_this_round; do
7985 for n in $names_already_handled; do
7986 if test "$n" = "$name"; then
7991 if test -z "$already_handled"; then
7992 names_already_handled="$names_already_handled $name"
7993 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7994 eval value=\"\$HAVE_LIB$uppername\"
7995 if test -n "$value"; then
7996 if test "$value" = yes; then
7997 eval value=\"\$LIB$uppername\"
7998 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7999 eval value=\"\$LTLIB$uppername\"
8000 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8009 if test $use_additional = yes; then
8010 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8011 found_dir="$additional_libdir"
8012 found_so="$additional_libdir/lib$name.$shlibext"
8013 if test -f "$additional_libdir/lib$name.la"; then
8014 found_la="$additional_libdir/lib$name.la"
8017 if test -f "$additional_libdir/lib$name.$libext"; then
8018 found_dir="$additional_libdir"
8019 found_a="$additional_libdir/lib$name.$libext"
8020 if test -f "$additional_libdir/lib$name.la"; then
8021 found_la="$additional_libdir/lib$name.la"
8026 if test "X$found_dir" = "X"; then
8027 for x in $LDFLAGS $LTLIBICONV; do
8029 acl_save_prefix="$prefix"
8030 prefix="$acl_final_prefix"
8031 acl_save_exec_prefix="$exec_prefix"
8032 exec_prefix="$acl_final_exec_prefix"
8034 exec_prefix="$acl_save_exec_prefix"
8035 prefix="$acl_save_prefix"
8039 dir=`echo "X$x" | sed -e 's/^X-L//'`
8040 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8042 found_so="$dir/lib$name.$shlibext"
8043 if test -f "$dir/lib$name.la"; then
8044 found_la="$dir/lib$name.la"
8047 if test -f "$dir/lib$name.$libext"; then
8049 found_a="$dir/lib$name.$libext"
8050 if test -f "$dir/lib$name.la"; then
8051 found_la="$dir/lib$name.la"
8057 if test "X$found_dir" != "X"; then
8062 if test "X$found_dir" != "X"; then
8063 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8064 if test "X$found_so" != "X"; then
8065 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8069 for x in $ltrpathdirs; do
8070 if test "X$x" = "X$found_dir"; then
8075 if test -z "$haveit"; then
8076 ltrpathdirs="$ltrpathdirs $found_dir"
8078 if test "$hardcode_direct" = yes; then
8079 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8081 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8084 for x in $rpathdirs; do
8085 if test "X$x" = "X$found_dir"; then
8090 if test -z "$haveit"; then
8091 rpathdirs="$rpathdirs $found_dir"
8095 for x in $LDFLAGS $LIBICONV; do
8097 acl_save_prefix="$prefix"
8098 prefix="$acl_final_prefix"
8099 acl_save_exec_prefix="$exec_prefix"
8100 exec_prefix="$acl_final_exec_prefix"
8102 exec_prefix="$acl_save_exec_prefix"
8103 prefix="$acl_save_prefix"
8105 if test "X$x" = "X-L$found_dir"; then
8110 if test -z "$haveit"; then
8111 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8113 if test "$hardcode_minus_L" != no; then
8114 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8116 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8122 if test "X$found_a" != "X"; then
8123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8125 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8128 additional_includedir=
8129 case "$found_dir" in
8131 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8132 additional_includedir="$basedir/include"
8135 if test "X$additional_includedir" != "X"; then
8136 if test "X$additional_includedir" != "X/usr/include"; then
8138 if test "X$additional_includedir" = "X/usr/local/include"; then
8139 if test -n "$GCC"; then
8141 linux*) haveit=yes;;
8145 if test -z "$haveit"; then
8146 for x in $CPPFLAGS $INCICONV; do
8148 acl_save_prefix="$prefix"
8149 prefix="$acl_final_prefix"
8150 acl_save_exec_prefix="$exec_prefix"
8151 exec_prefix="$acl_final_exec_prefix"
8153 exec_prefix="$acl_save_exec_prefix"
8154 prefix="$acl_save_prefix"
8156 if test "X$x" = "X-I$additional_includedir"; then
8161 if test -z "$haveit"; then
8162 if test -d "$additional_includedir"; then
8163 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8169 if test -n "$found_la"; then
8170 save_libdir="$libdir"
8172 */* | *\\*) . "$found_la" ;;
8173 *) . "./$found_la" ;;
8175 libdir="$save_libdir"
8176 for dep in $dependency_libs; do
8179 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8180 if test "X$additional_libdir" != "X/usr/lib"; then
8182 if test "X$additional_libdir" = "X/usr/local/lib"; then
8183 if test -n "$GCC"; then
8185 linux*) haveit=yes;;
8189 if test -z "$haveit"; then
8191 for x in $LDFLAGS $LIBICONV; do
8193 acl_save_prefix="$prefix"
8194 prefix="$acl_final_prefix"
8195 acl_save_exec_prefix="$exec_prefix"
8196 exec_prefix="$acl_final_exec_prefix"
8198 exec_prefix="$acl_save_exec_prefix"
8199 prefix="$acl_save_prefix"
8201 if test "X$x" = "X-L$additional_libdir"; then
8206 if test -z "$haveit"; then
8207 if test -d "$additional_libdir"; then
8208 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8212 for x in $LDFLAGS $LTLIBICONV; do
8214 acl_save_prefix="$prefix"
8215 prefix="$acl_final_prefix"
8216 acl_save_exec_prefix="$exec_prefix"
8217 exec_prefix="$acl_final_exec_prefix"
8219 exec_prefix="$acl_save_exec_prefix"
8220 prefix="$acl_save_prefix"
8222 if test "X$x" = "X-L$additional_libdir"; then
8227 if test -z "$haveit"; then
8228 if test -d "$additional_libdir"; then
8229 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8236 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8237 if test "$enable_rpath" != no; then
8239 for x in $rpathdirs; do
8240 if test "X$x" = "X$dir"; then
8245 if test -z "$haveit"; then
8246 rpathdirs="$rpathdirs $dir"
8249 for x in $ltrpathdirs; do
8250 if test "X$x" = "X$dir"; then
8255 if test -z "$haveit"; then
8256 ltrpathdirs="$ltrpathdirs $dir"
8261 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8264 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8267 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8274 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8281 if test "X$rpathdirs" != "X"; then
8282 if test -n "$hardcode_libdir_separator"; then
8284 for found_dir in $rpathdirs; do
8285 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8287 acl_save_libdir="$libdir"
8289 eval flag=\"$hardcode_libdir_flag_spec\"
8290 libdir="$acl_save_libdir"
8291 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8293 for found_dir in $rpathdirs; do
8294 acl_save_libdir="$libdir"
8296 eval flag=\"$hardcode_libdir_flag_spec\"
8297 libdir="$acl_save_libdir"
8298 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8302 if test "X$ltrpathdirs" != "X"; then
8303 for found_dir in $ltrpathdirs; do
8304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8315 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8316 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8320 $as_echo "#define ptrdiff_t long" >>confdefs.h
8325 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8326 stdlib.h string.h unistd.h sys/param.h
8328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8331 cat >>confdefs.h <<_ACEOF
8332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8339 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8340 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8341 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8347 cat >>confdefs.h <<_ACEOF
8348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8357 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8358 if ${ac_cv_have_decl__snprintf+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8369 char *p = (char *) _snprintf;
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 ac_cv_have_decl__snprintf=yes
8379 ac_cv_have_decl__snprintf=no
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8384 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8385 if test $ac_cv_have_decl__snprintf = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL__SNPRINTF $gt_value
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8398 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8399 if ${ac_cv_have_decl__snwprintf+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8410 char *p = (char *) _snwprintf;
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418 ac_cv_have_decl__snwprintf=yes
8420 ac_cv_have_decl__snwprintf=no
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8425 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8426 if test $ac_cv_have_decl__snwprintf = yes; then
8432 cat >>confdefs.h <<_ACEOF
8433 #define HAVE_DECL__SNWPRINTF $gt_value
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8440 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8441 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8451 #ifndef feof_unlocked
8452 char *p = (char *) feof_unlocked;
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 ac_cv_have_decl_feof_unlocked=yes
8462 ac_cv_have_decl_feof_unlocked=no
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8467 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8468 if test $ac_cv_have_decl_feof_unlocked = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8481 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8482 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8492 #ifndef fgets_unlocked
8493 char *p = (char *) fgets_unlocked;
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 ac_cv_have_decl_fgets_unlocked=yes
8503 ac_cv_have_decl_fgets_unlocked=no
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8508 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8509 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8522 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8523 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8524 $as_echo_n "(cached) " >&6
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8533 #ifndef getc_unlocked
8534 char *p = (char *) getc_unlocked;
8541 if ac_fn_c_try_compile "$LINENO"; then :
8542 ac_cv_have_decl_getc_unlocked=yes
8544 ac_cv_have_decl_getc_unlocked=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8549 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8550 if test $ac_cv_have_decl_getc_unlocked = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8562 case $gt_cv_func_printf_posix in
8563 *yes) HAVE_POSIX_PRINTF=1 ;;
8564 *) HAVE_POSIX_PRINTF=0 ;;
8567 if test "$ac_cv_func_asprintf" = yes; then
8573 if test "$ac_cv_func_snprintf" = yes; then
8579 if test "$ac_cv_func_wprintf" = yes; then
8591 am_save_CPPFLAGS="$CPPFLAGS"
8593 for element in $INCICONV; do
8595 for x in $CPPFLAGS; do
8597 acl_save_prefix="$prefix"
8598 prefix="$acl_final_prefix"
8599 acl_save_exec_prefix="$exec_prefix"
8600 exec_prefix="$acl_final_exec_prefix"
8602 exec_prefix="$acl_save_exec_prefix"
8603 prefix="$acl_save_prefix"
8605 if test "X$x" = "X$element"; then
8610 if test -z "$haveit"; then
8611 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8617 $as_echo_n "checking for iconv... " >&6; }
8618 if ${am_cv_func_iconv+:} false; then :
8619 $as_echo_n "(cached) " >&6
8622 am_cv_func_iconv="no, consider installing GNU libiconv"
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8631 iconv_t cd = iconv_open("","");
8632 iconv(cd,NULL,NULL,NULL,NULL);
8638 if ac_fn_c_try_link "$LINENO"; then :
8639 am_cv_func_iconv=yes
8641 rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 if test "$am_cv_func_iconv" != yes; then
8644 am_save_LIBS="$LIBS"
8645 LIBS="$LIBS $LIBICONV"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8653 iconv_t cd = iconv_open("","");
8654 iconv(cd,NULL,NULL,NULL,NULL);
8660 if ac_fn_c_try_link "$LINENO"; then :
8662 am_cv_func_iconv=yes
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS="$am_save_LIBS"
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8671 $as_echo "$am_cv_func_iconv" >&6; }
8672 if test "$am_cv_func_iconv" = yes; then
8674 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8677 if test "$am_cv_lib_iconv" = yes; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8679 $as_echo_n "checking how to link with libiconv... " >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8681 $as_echo "$LIBICONV" >&6; }
8683 CPPFLAGS="$am_save_CPPFLAGS"
8690 if test "$am_cv_func_iconv" = yes; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8692 $as_echo_n "checking for iconv declaration... " >&6; }
8693 if ${am_cv_proto_iconv+:} false; then :
8694 $as_echo_n "(cached) " >&6
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8706 #if defined(__STDC__) || defined(__cplusplus)
8707 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 am_cv_proto_iconv_arg1=""
8723 am_cv_proto_iconv_arg1="const"
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 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);"
8729 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8731 }$am_cv_proto_iconv" >&5
8733 }$am_cv_proto_iconv" >&6; }
8735 cat >>confdefs.h <<_ACEOF
8736 #define ICONV_CONST $am_cv_proto_iconv_arg1
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8743 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8744 if ${am_cv_langinfo_codeset+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 #include <langinfo.h>
8753 char* cs = nl_langinfo(CODESET);
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 am_cv_langinfo_codeset=yes
8761 am_cv_langinfo_codeset=no
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8768 $as_echo "$am_cv_langinfo_codeset" >&6; }
8769 if test $am_cv_langinfo_codeset = yes; then
8771 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8775 if test $ac_cv_header_locale_h = yes; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8778 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8779 if ${am_cv_val_LC_MESSAGES+:} false; then :
8780 $as_echo_n "(cached) " >&6
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8793 if ac_fn_c_try_link "$LINENO"; then :
8794 am_cv_val_LC_MESSAGES=yes
8796 am_cv_val_LC_MESSAGES=no
8798 rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8802 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8803 if test $am_cv_val_LC_MESSAGES = yes; then
8805 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8811 for ac_prog in bison
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy $ac_prog; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_INTLBISON+:} false; then :
8818 $as_echo_n "(cached) " >&6
8820 if test -n "$INTLBISON"; then
8821 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_INTLBISON="$ac_prog"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 INTLBISON=$ac_cv_prog_INTLBISON
8841 if test -n "$INTLBISON"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8843 $as_echo "$INTLBISON" >&6; }
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8850 test -n "$INTLBISON" && break
8853 if test -z "$INTLBISON"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8857 $as_echo_n "checking version of bison... " >&6; }
8858 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8859 case $ac_prog_version in
8860 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8861 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8862 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8863 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8866 $as_echo "$ac_prog_version" >&6; }
8868 if test $ac_verc_fail = yes; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8888 $as_echo_n "checking whether NLS is requested... " >&6; }
8889 # Check whether --enable-nls was given.
8890 if test "${enable_nls+set}" = set; then :
8891 enableval=$enable_nls; USE_NLS=$enableval
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8897 $as_echo "$USE_NLS" >&6; }
8902 BUILD_INCLUDED_LIBINTL=no
8903 USE_INCLUDED_LIBINTL=no
8909 if test "$USE_NLS" = "yes"; then
8910 gt_use_preinstalled_gnugettext=no
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8913 $as_echo_n "checking whether included gettext is requested... " >&6; }
8915 # Check whether --with-included-gettext was given.
8916 if test "${with_included_gettext+set}" = set; then :
8917 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8919 nls_cv_force_use_gnu_gettext=no
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8923 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8925 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8926 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8934 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8935 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8936 $as_echo_n "(cached) " >&6
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 #include <libintl.h>
8941 extern int _nl_msg_cat_cntr;
8942 extern int *_nl_domain_bindings;
8946 bindtextdomain ("", "");
8947 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8952 if ac_fn_c_try_link "$LINENO"; then :
8953 gt_cv_func_gnugettext1_libc=yes
8955 gt_cv_func_gnugettext1_libc=no
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8961 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8963 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8969 acl_save_prefix="$prefix"
8970 prefix="$acl_final_prefix"
8971 acl_save_exec_prefix="$exec_prefix"
8972 exec_prefix="$acl_final_exec_prefix"
8974 eval additional_includedir=\"$includedir\"
8975 eval additional_libdir=\"$libdir\"
8977 exec_prefix="$acl_save_exec_prefix"
8978 prefix="$acl_save_prefix"
8981 # Check whether --with-libintl-prefix was given.
8982 if test "${with_libintl_prefix+set}" = set; then :
8983 withval=$with_libintl_prefix;
8984 if test "X$withval" = "Xno"; then
8987 if test "X$withval" = "X"; then
8989 acl_save_prefix="$prefix"
8990 prefix="$acl_final_prefix"
8991 acl_save_exec_prefix="$exec_prefix"
8992 exec_prefix="$acl_final_exec_prefix"
8994 eval additional_includedir=\"$includedir\"
8995 eval additional_libdir=\"$libdir\"
8997 exec_prefix="$acl_save_exec_prefix"
8998 prefix="$acl_save_prefix"
9001 additional_includedir="$withval/include"
9002 additional_libdir="$withval/lib"
9013 names_already_handled=
9014 names_next_round='intl '
9015 while test -n "$names_next_round"; do
9016 names_this_round="$names_next_round"
9018 for name in $names_this_round; do
9020 for n in $names_already_handled; do
9021 if test "$n" = "$name"; then
9026 if test -z "$already_handled"; then
9027 names_already_handled="$names_already_handled $name"
9028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9029 eval value=\"\$HAVE_LIB$uppername\"
9030 if test -n "$value"; then
9031 if test "$value" = yes; then
9032 eval value=\"\$LIB$uppername\"
9033 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9034 eval value=\"\$LTLIB$uppername\"
9035 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9044 if test $use_additional = yes; then
9045 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9046 found_dir="$additional_libdir"
9047 found_so="$additional_libdir/lib$name.$shlibext"
9048 if test -f "$additional_libdir/lib$name.la"; then
9049 found_la="$additional_libdir/lib$name.la"
9052 if test -f "$additional_libdir/lib$name.$libext"; then
9053 found_dir="$additional_libdir"
9054 found_a="$additional_libdir/lib$name.$libext"
9055 if test -f "$additional_libdir/lib$name.la"; then
9056 found_la="$additional_libdir/lib$name.la"
9061 if test "X$found_dir" = "X"; then
9062 for x in $LDFLAGS $LTLIBINTL; do
9064 acl_save_prefix="$prefix"
9065 prefix="$acl_final_prefix"
9066 acl_save_exec_prefix="$exec_prefix"
9067 exec_prefix="$acl_final_exec_prefix"
9069 exec_prefix="$acl_save_exec_prefix"
9070 prefix="$acl_save_prefix"
9074 dir=`echo "X$x" | sed -e 's/^X-L//'`
9075 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9077 found_so="$dir/lib$name.$shlibext"
9078 if test -f "$dir/lib$name.la"; then
9079 found_la="$dir/lib$name.la"
9082 if test -f "$dir/lib$name.$libext"; then
9084 found_a="$dir/lib$name.$libext"
9085 if test -f "$dir/lib$name.la"; then
9086 found_la="$dir/lib$name.la"
9092 if test "X$found_dir" != "X"; then
9097 if test "X$found_dir" != "X"; then
9098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9099 if test "X$found_so" != "X"; then
9100 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9101 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9104 for x in $ltrpathdirs; do
9105 if test "X$x" = "X$found_dir"; then
9110 if test -z "$haveit"; then
9111 ltrpathdirs="$ltrpathdirs $found_dir"
9113 if test "$hardcode_direct" = yes; then
9114 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9116 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9119 for x in $rpathdirs; do
9120 if test "X$x" = "X$found_dir"; then
9125 if test -z "$haveit"; then
9126 rpathdirs="$rpathdirs $found_dir"
9130 for x in $LDFLAGS $LIBINTL; do
9132 acl_save_prefix="$prefix"
9133 prefix="$acl_final_prefix"
9134 acl_save_exec_prefix="$exec_prefix"
9135 exec_prefix="$acl_final_exec_prefix"
9137 exec_prefix="$acl_save_exec_prefix"
9138 prefix="$acl_save_prefix"
9140 if test "X$x" = "X-L$found_dir"; then
9145 if test -z "$haveit"; then
9146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9148 if test "$hardcode_minus_L" != no; then
9149 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9157 if test "X$found_a" != "X"; then
9158 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9160 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9163 additional_includedir=
9164 case "$found_dir" in
9166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9167 additional_includedir="$basedir/include"
9170 if test "X$additional_includedir" != "X"; then
9171 if test "X$additional_includedir" != "X/usr/include"; then
9173 if test "X$additional_includedir" = "X/usr/local/include"; then
9174 if test -n "$GCC"; then
9176 linux*) haveit=yes;;
9180 if test -z "$haveit"; then
9181 for x in $CPPFLAGS $INCINTL; do
9183 acl_save_prefix="$prefix"
9184 prefix="$acl_final_prefix"
9185 acl_save_exec_prefix="$exec_prefix"
9186 exec_prefix="$acl_final_exec_prefix"
9188 exec_prefix="$acl_save_exec_prefix"
9189 prefix="$acl_save_prefix"
9191 if test "X$x" = "X-I$additional_includedir"; then
9196 if test -z "$haveit"; then
9197 if test -d "$additional_includedir"; then
9198 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9204 if test -n "$found_la"; then
9205 save_libdir="$libdir"
9207 */* | *\\*) . "$found_la" ;;
9208 *) . "./$found_la" ;;
9210 libdir="$save_libdir"
9211 for dep in $dependency_libs; do
9214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9215 if test "X$additional_libdir" != "X/usr/lib"; then
9217 if test "X$additional_libdir" = "X/usr/local/lib"; then
9218 if test -n "$GCC"; then
9220 linux*) haveit=yes;;
9224 if test -z "$haveit"; then
9226 for x in $LDFLAGS $LIBINTL; do
9228 acl_save_prefix="$prefix"
9229 prefix="$acl_final_prefix"
9230 acl_save_exec_prefix="$exec_prefix"
9231 exec_prefix="$acl_final_exec_prefix"
9233 exec_prefix="$acl_save_exec_prefix"
9234 prefix="$acl_save_prefix"
9236 if test "X$x" = "X-L$additional_libdir"; then
9241 if test -z "$haveit"; then
9242 if test -d "$additional_libdir"; then
9243 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9247 for x in $LDFLAGS $LTLIBINTL; do
9249 acl_save_prefix="$prefix"
9250 prefix="$acl_final_prefix"
9251 acl_save_exec_prefix="$exec_prefix"
9252 exec_prefix="$acl_final_exec_prefix"
9254 exec_prefix="$acl_save_exec_prefix"
9255 prefix="$acl_save_prefix"
9257 if test "X$x" = "X-L$additional_libdir"; then
9262 if test -z "$haveit"; then
9263 if test -d "$additional_libdir"; then
9264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9271 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9272 if test "$enable_rpath" != no; then
9274 for x in $rpathdirs; do
9275 if test "X$x" = "X$dir"; then
9280 if test -z "$haveit"; then
9281 rpathdirs="$rpathdirs $dir"
9284 for x in $ltrpathdirs; do
9285 if test "X$x" = "X$dir"; then
9290 if test -z "$haveit"; then
9291 ltrpathdirs="$ltrpathdirs $dir"
9296 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9299 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9302 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9309 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9316 if test "X$rpathdirs" != "X"; then
9317 if test -n "$hardcode_libdir_separator"; then
9319 for found_dir in $rpathdirs; do
9320 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9322 acl_save_libdir="$libdir"
9324 eval flag=\"$hardcode_libdir_flag_spec\"
9325 libdir="$acl_save_libdir"
9326 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9328 for found_dir in $rpathdirs; do
9329 acl_save_libdir="$libdir"
9331 eval flag=\"$hardcode_libdir_flag_spec\"
9332 libdir="$acl_save_libdir"
9333 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9337 if test "X$ltrpathdirs" != "X"; then
9338 for found_dir in $ltrpathdirs; do
9339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9344 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9345 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 gt_save_CPPFLAGS="$CPPFLAGS"
9349 CPPFLAGS="$CPPFLAGS $INCINTL"
9350 gt_save_LIBS="$LIBS"
9351 LIBS="$LIBS $LIBINTL"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #include <libintl.h>
9355 extern int _nl_msg_cat_cntr;
9360 const char *_nl_expand_alias ();
9364 bindtextdomain ("", "");
9365 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 gt_cv_func_gnugettext1_libintl=yes
9373 gt_cv_func_gnugettext1_libintl=no
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9378 LIBS="$LIBS $LIBICONV"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <libintl.h>
9382 extern int _nl_msg_cat_cntr;
9387 const char *_nl_expand_alias ();
9391 bindtextdomain ("", "");
9392 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9397 if ac_fn_c_try_link "$LINENO"; then :
9398 LIBINTL="$LIBINTL $LIBICONV"
9399 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9400 gt_cv_func_gnugettext1_libintl=yes
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9406 CPPFLAGS="$gt_save_CPPFLAGS"
9407 LIBS="$gt_save_LIBS"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9410 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9413 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9414 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9415 && test "$PACKAGE" != gettext-runtime \
9416 && test "$PACKAGE" != gettext-tools; }; then
9417 gt_use_preinstalled_gnugettext=yes
9425 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9426 nls_cv_use_gnu_gettext=yes
9430 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9431 BUILD_INCLUDED_LIBINTL=yes
9432 USE_INCLUDED_LIBINTL=yes
9433 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9434 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9435 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9438 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9439 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9444 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9445 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9447 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9455 $as_echo_n "checking whether to use NLS... " >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9457 $as_echo "$USE_NLS" >&6; }
9458 if test "$USE_NLS" = "yes"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9460 $as_echo_n "checking where the gettext function comes from... " >&6; }
9461 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9462 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9463 gt_source="external libintl"
9468 gt_source="included intl directory"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9471 $as_echo "$gt_source" >&6; }
9474 if test "$USE_NLS" = "yes"; then
9476 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9477 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9479 $as_echo_n "checking how to link with libintl... " >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9481 $as_echo "$LIBINTL" >&6; }
9483 for element in $INCINTL; do
9485 for x in $CPPFLAGS; do
9487 acl_save_prefix="$prefix"
9488 prefix="$acl_final_prefix"
9489 acl_save_exec_prefix="$exec_prefix"
9490 exec_prefix="$acl_final_exec_prefix"
9492 exec_prefix="$acl_save_exec_prefix"
9493 prefix="$acl_save_prefix"
9495 if test "X$x" = "X$element"; then
9500 if test -z "$haveit"; then
9501 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9508 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9511 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9519 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9520 BUILD_INCLUDED_LIBINTL=yes
9528 nls_cv_header_libgt=
9539 if test "$USE_INCLUDED_LIBINTL" = yes; then
9540 INTLOBJS="\$(GETTOBJS)"
9544 INTL_LIBTOOL_SUFFIX_PREFIX=
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9557 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9559 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9560 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 cat >conftest.make <<\_ACEOF
9566 @echo '@@@%%%=$(MAKE)=@@@%%%'
9568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9571 eval ac_cv_prog_make_${ac_make}_set=yes;;
9573 eval ac_cv_prog_make_${ac_make}_set=no;;
9577 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9579 $as_echo "yes" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584 SET_MAKE="MAKE=${MAKE-make}"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9588 $as_echo_n "checking for GNU make... " >&6; }
9589 if ${_cv_gnu_make_command+:} false; then :
9590 $as_echo_n "(cached) " >&6
9592 _cv_gnu_make_command='' ;
9593 for a in "$MAKE" make gmake gnumake ; do
9594 if test -z "$a" ; then continue ; fi ;
9595 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9596 _cv_gnu_make_command=$a ;
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9603 $as_echo "$_cv_gnu_make_command" >&6; } ;
9604 if test "x$_cv_gnu_make_command" != "x" ; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9611 $as_echo "\"Not found\"" >&6; };
9616 # Extract the first word of "ln", so it can be a program name with args.
9617 set dummy ln; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_LN+:} false; then :
9621 $as_echo_n "(cached) " >&6
9625 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9648 if test -n "$LN"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9650 $as_echo "$LN" >&6; }
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9658 $as_echo_n "checking whether ln -s works... " >&6; }
9660 if test "$LN_S" = "ln -s"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9662 $as_echo "yes" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9665 $as_echo "no, using $LN_S" >&6; }
9668 # Extract the first word of "mv", so it can be a program name with args.
9669 set dummy mv; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_path_MV+:} false; then :
9673 $as_echo_n "(cached) " >&6
9677 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9700 if test -n "$MV"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9702 $as_echo "$MV" >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9709 # Extract the first word of "cp", so it can be a program name with args.
9710 set dummy cp; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if ${ac_cv_path_CP+:} false; then :
9714 $as_echo_n "(cached) " >&6
9718 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9741 if test -n "$CP"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9743 $as_echo "$CP" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 # Extract the first word of "rm", so it can be a program name with args.
9751 set dummy rm; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_RM+:} false; then :
9755 $as_echo_n "(cached) " >&6
9759 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9782 if test -n "$RM"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9784 $as_echo "$RM" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9791 # Extract the first word of "chmod", so it can be a program name with args.
9792 set dummy chmod; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_CHMOD+:} false; then :
9796 $as_echo_n "(cached) " >&6
9800 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9822 CHMOD=$ac_cv_path_CHMOD
9823 if test -n "$CHMOD"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9825 $as_echo "$CHMOD" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9832 for ac_prog in gawk mawk nawk awk
9834 # Extract the first word of "$ac_prog", so it can be a program name with args.
9835 set dummy $ac_prog; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_AWK+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 if test -n "$AWK"; then
9842 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_prog_AWK="$ac_prog"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 if test -n "$AWK"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9864 $as_echo "$AWK" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9871 test -n "$AWK" && break
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9875 $as_echo_n "checking for egrep... " >&6; }
9876 if ${ac_cv_path_EGREP+:} false; then :
9877 $as_echo_n "(cached) " >&6
9879 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9880 then ac_cv_path_EGREP="$GREP -E"
9882 if test -z "$EGREP"; then
9883 ac_path_EGREP_found=false
9884 # Loop through the user's path and test for each of PROGNAME-LIST
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9889 test -z "$as_dir" && as_dir=.
9890 for ac_prog in egrep; do
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9893 as_fn_executable_p "$ac_path_EGREP" || continue
9894 # Check for GNU ac_path_EGREP and select it if it is found.
9895 # Check for GNU $ac_path_EGREP
9896 case `"$ac_path_EGREP" --version 2>&1` in
9898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9901 $as_echo_n 0123456789 >"conftest.in"
9904 cat "conftest.in" "conftest.in" >"conftest.tmp"
9905 mv "conftest.tmp" "conftest.in"
9906 cp "conftest.in" "conftest.nl"
9907 $as_echo 'EGREP' >> "conftest.nl"
9908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9910 as_fn_arith $ac_count + 1 && ac_count=$as_val
9911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9912 # Best one so far, save it but keep looking for a better one
9913 ac_cv_path_EGREP="$ac_path_EGREP"
9914 ac_path_EGREP_max=$ac_count
9916 # 10*(2^10) chars as input seems more than enough
9917 test $ac_count -gt 10 && break
9919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9922 $ac_path_EGREP_found && break 3
9927 if test -z "$ac_cv_path_EGREP"; then
9928 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9931 ac_cv_path_EGREP=$EGREP
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9937 $as_echo "$ac_cv_path_EGREP" >&6; }
9938 EGREP="$ac_cv_path_EGREP"
9941 # Extract the first word of "sed", so it can be a program name with args.
9942 set dummy sed; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_SED+:} false; then :
9946 $as_echo_n "(cached) " >&6
9950 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9973 if test -n "$SED"; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9975 $as_echo "$SED" >&6; }
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9982 # Extract the first word of "perl", so it can be a program name with args.
9983 set dummy perl; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_PERL+:} false; then :
9987 $as_echo_n "(cached) " >&6
9991 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10013 PERL=$ac_cv_path_PERL
10014 if test -n "$PERL"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10016 $as_echo "$PERL" >&6; }
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 # Extract the first word of "ldconfig", so it can be a program name with args.
10024 set dummy ldconfig; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if ${ac_cv_path_LDCONFIG+:} false; then :
10028 $as_echo_n "(cached) " >&6
10032 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10054 LDCONFIG=$ac_cv_path_LDCONFIG
10055 if test -n "$LDCONFIG"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10057 $as_echo "$LDCONFIG" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10064 if test -n "$ac_tool_prefix"; then
10065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10066 set dummy ${ac_tool_prefix}ar; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_prog_AR+:} false; then :
10070 $as_echo_n "(cached) " >&6
10072 if test -n "$AR"; then
10073 ac_cv_prog_AR="$AR" # Let the user override the test.
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10079 test -z "$as_dir" && as_dir=.
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10082 ac_cv_prog_AR="${ac_tool_prefix}ar"
10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 if test -n "$AR"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10095 $as_echo "$AR" >&6; }
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10103 if test -z "$ac_cv_prog_AR"; then
10105 # Extract the first word of "ar", so it can be a program name with args.
10106 set dummy ar; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10110 $as_echo_n "(cached) " >&6
10112 if test -n "$ac_ct_AR"; then
10113 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10122 ac_cv_prog_ac_ct_AR="ar"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10133 if test -n "$ac_ct_AR"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10135 $as_echo "$ac_ct_AR" >&6; }
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10141 if test "x$ac_ct_AR" = x; then
10144 case $cross_compiling:$ac_tool_warned in
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10148 ac_tool_warned=yes ;;
10153 AR="$ac_cv_prog_AR"
10156 if test -n "$ac_tool_prefix"; then
10157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_prog_RANLIB+:} false; then :
10162 $as_echo_n "(cached) " >&6
10164 if test -n "$RANLIB"; then
10165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 RANLIB=$ac_cv_prog_RANLIB
10185 if test -n "$RANLIB"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10187 $as_echo "$RANLIB" >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10195 if test -z "$ac_cv_prog_RANLIB"; then
10196 ac_ct_RANLIB=$RANLIB
10197 # Extract the first word of "ranlib", so it can be a program name with args.
10198 set dummy ranlib; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10202 $as_echo_n "(cached) " >&6
10204 if test -n "$ac_ct_RANLIB"; then
10205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214 ac_cv_prog_ac_ct_RANLIB="ranlib"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10225 if test -n "$ac_ct_RANLIB"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10227 $as_echo "$ac_ct_RANLIB" >&6; }
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10233 if test "x$ac_ct_RANLIB" = x; then
10236 case $cross_compiling:$ac_tool_warned in
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10240 ac_tool_warned=yes ;;
10242 RANLIB=$ac_ct_RANLIB
10245 RANLIB="$ac_cv_prog_RANLIB"
10248 if test -n "$ac_tool_prefix"; then
10249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10250 set dummy ${ac_tool_prefix}strip; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_prog_STRIP+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 if test -n "$STRIP"; then
10257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 STRIP=$ac_cv_prog_STRIP
10277 if test -n "$STRIP"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10279 $as_echo "$STRIP" >&6; }
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10287 if test -z "$ac_cv_prog_STRIP"; then
10289 # Extract the first word of "strip", so it can be a program name with args.
10290 set dummy strip; ac_word=$2
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292 $as_echo_n "checking for $ac_word... " >&6; }
10293 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10294 $as_echo_n "(cached) " >&6
10296 if test -n "$ac_ct_STRIP"; then
10297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $PATH
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10306 ac_cv_prog_ac_ct_STRIP="strip"
10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10317 if test -n "$ac_ct_STRIP"; then
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10319 $as_echo "$ac_ct_STRIP" >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10325 if test "x$ac_ct_STRIP" = x; then
10328 case $cross_compiling:$ac_tool_warned in
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10332 ac_tool_warned=yes ;;
10337 STRIP="$ac_cv_prog_STRIP"
10340 # Extract the first word of "makeinfo", so it can be a program name with args.
10341 set dummy makeinfo; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_MAKEINFO+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 if test -n "$MAKEINFO"; then
10348 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_MAKEINFO="makeinfo"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 MAKEINFO=$ac_cv_prog_MAKEINFO
10368 if test -n "$MAKEINFO"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10370 $as_echo "$MAKEINFO" >&6; }
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10377 if test "_$MAKEINFO" = "_"; then
10378 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10380 case "$MAKEINFO" in
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10383 *** Makeinfo is missing. Info documentation will not be built." >&5
10384 $as_echo "$as_me: WARNING:
10385 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10393 # See if we need a separate native compiler.
10394 if test $cross_compiling = no; then
10398 for ac_prog in gcc cc
10400 # Extract the first word of "$ac_prog", so it can be a program name with args.
10401 set dummy $ac_prog; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if ${ac_cv_prog_BUILD_CC+:} false; then :
10405 $as_echo_n "(cached) " >&6
10407 if test -n "$BUILD_CC"; then
10408 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_BUILD_CC="$ac_prog"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 BUILD_CC=$ac_cv_prog_BUILD_CC
10428 if test -n "$BUILD_CC"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10430 $as_echo "$BUILD_CC" >&6; }
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10437 test -n "$BUILD_CC" && break
10441 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
10443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10446 cat >>confdefs.h <<_ACEOF
10447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10454 for ac_header in sys/disk.h sys/mount.h
10456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10458 #if HAVE_SYS_QUEUE_H
10459 #include <sys/queue.h>
10463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10464 cat >>confdefs.h <<_ACEOF
10465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10472 for ac_header in net/if.h
10474 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10475 #if HAVE_SYS_TYPES_H
10476 #include <sys/types.h>
10478 #if HAVE_SYS_SOCKET
10479 #include <sys/socket.h>
10483 if test "x$ac_cv_header_net_if_h" = xyes; then :
10484 cat >>confdefs.h <<_ACEOF
10485 #define HAVE_NET_IF_H 1
10492 for ac_func in vprintf
10494 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10495 if test "x$ac_cv_func_vprintf" = xyes; then :
10496 cat >>confdefs.h <<_ACEOF
10497 #define HAVE_VPRINTF 1
10500 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10501 if test "x$ac_cv_func__doprnt" = xyes; then :
10503 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10511 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10513 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10515 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10519 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10521 if test "x$ac_cv_type_ssize_t" = xyes; then :
10523 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10527 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10529 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10531 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10535 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10536 #define _LARGEFILE64_SOURCE
10537 #include <unistd.h>
10539 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10541 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10545 # The cast to long int works around a bug in the HP C Compiler
10546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10548 # This bug is HP SR number 8606223364.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10550 $as_echo_n "checking size of short... " >&6; }
10551 if ${ac_cv_sizeof_short+:} false; then :
10552 $as_echo_n "(cached) " >&6
10554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10557 if test "$ac_cv_type_short" = yes; then
10558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10560 as_fn_error 77 "cannot compute sizeof (short)
10561 See \`config.log' for more details" "$LINENO" 5; }
10563 ac_cv_sizeof_short=0
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10569 $as_echo "$ac_cv_sizeof_short" >&6; }
10573 cat >>confdefs.h <<_ACEOF
10574 #define SIZEOF_SHORT $ac_cv_sizeof_short
10578 # The cast to long int works around a bug in the HP C Compiler
10579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581 # This bug is HP SR number 8606223364.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10583 $as_echo_n "checking size of int... " >&6; }
10584 if ${ac_cv_sizeof_int+:} false; then :
10585 $as_echo_n "(cached) " >&6
10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10590 if test "$ac_cv_type_int" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 as_fn_error 77 "cannot compute sizeof (int)
10594 See \`config.log' for more details" "$LINENO" 5; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10602 $as_echo "$ac_cv_sizeof_int" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_INT $ac_cv_sizeof_int
10611 # The cast to long int works around a bug in the HP C Compiler
10612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10614 # This bug is HP SR number 8606223364.
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10616 $as_echo_n "checking size of long... " >&6; }
10617 if ${ac_cv_sizeof_long+:} false; then :
10618 $as_echo_n "(cached) " >&6
10620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10623 if test "$ac_cv_type_long" = yes; then
10624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10626 as_fn_error 77 "cannot compute sizeof (long)
10627 See \`config.log' for more details" "$LINENO" 5; }
10629 ac_cv_sizeof_long=0
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10635 $as_echo "$ac_cv_sizeof_long" >&6; }
10639 cat >>confdefs.h <<_ACEOF
10640 #define SIZEOF_LONG $ac_cv_sizeof_long
10644 # The cast to long int works around a bug in the HP C Compiler
10645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10647 # This bug is HP SR number 8606223364.
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10649 $as_echo_n "checking size of long long... " >&6; }
10650 if ${ac_cv_sizeof_long_long+:} false; then :
10651 $as_echo_n "(cached) " >&6
10653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10656 if test "$ac_cv_type_long_long" = yes; then
10657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659 as_fn_error 77 "cannot compute sizeof (long long)
10660 See \`config.log' for more details" "$LINENO" 5; }
10662 ac_cv_sizeof_long_long=0
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10668 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10672 cat >>confdefs.h <<_ACEOF
10673 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10677 # The cast to long int works around a bug in the HP C Compiler
10678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680 # This bug is HP SR number 8606223364.
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10682 $as_echo_n "checking size of off_t... " >&6; }
10683 if ${ac_cv_sizeof_off_t+:} false; then :
10684 $as_echo_n "(cached) " >&6
10686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10689 if test "$ac_cv_type_off_t" = yes; then
10690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10692 as_fn_error 77 "cannot compute sizeof (off_t)
10693 See \`config.log' for more details" "$LINENO" 5; }
10695 ac_cv_sizeof_off_t=0
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10701 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10705 cat >>confdefs.h <<_ACEOF
10706 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10710 SIZEOF_SHORT=$ac_cv_sizeof_short
10711 SIZEOF_INT=$ac_cv_sizeof_int
10712 SIZEOF_LONG=$ac_cv_sizeof_long
10713 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10714 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10722 if ${ac_cv_c_bigendian+:} false; then :
10723 $as_echo_n "(cached) " >&6
10725 ac_cv_c_bigendian=unknown
10726 # See if we're dealing with a universal compiler.
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #ifndef __APPLE_CC__
10730 not a universal capable compiler
10735 if ac_fn_c_try_compile "$LINENO"; then :
10737 # Check for potential -arch flags. It is not universal unless
10738 # there are at least two -arch flags with different values.
10741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10742 if test -n "$ac_prev"; then
10744 i?86 | x86_64 | ppc | ppc64)
10745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10748 ac_cv_c_bigendian=universal
10754 elif test "x$ac_word" = "x-arch"; then
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 if test $ac_cv_c_bigendian = unknown; then
10761 # See if sys/param.h defines the BYTE_ORDER macro.
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 #include <sys/types.h>
10765 #include <sys/param.h>
10770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10773 bogus endian macros
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781 # It does; now see whether it defined to BIG_ENDIAN or not.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <sys/types.h>
10785 #include <sys/param.h>
10790 #if BYTE_ORDER != BIG_ENDIAN
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799 ac_cv_c_bigendian=yes
10801 ac_cv_c_bigendian=no
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 if test $ac_cv_c_bigendian = unknown; then
10808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include <limits.h>
10816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10817 bogus endian macros
10824 if ac_fn_c_try_compile "$LINENO"; then :
10825 # It does; now see whether it defined to _BIG_ENDIAN or not.
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 #include <limits.h>
10833 #ifndef _BIG_ENDIAN
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842 ac_cv_c_bigendian=yes
10844 ac_cv_c_bigendian=no
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850 if test $ac_cv_c_bigendian = unknown; then
10851 # Compile a test program.
10852 if test "$cross_compiling" = yes; then :
10853 # Try to guess by grepping values from an object file.
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 short int ascii_mm[] =
10857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10858 short int ascii_ii[] =
10859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10860 int use_ascii (int i) {
10861 return ascii_mm[i] + ascii_ii[i];
10863 short int ebcdic_ii[] =
10864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10865 short int ebcdic_mm[] =
10866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10867 int use_ebcdic (int i) {
10868 return ebcdic_mm[i] + ebcdic_ii[i];
10875 return use_ascii (foo) == use_ebcdic (foo);
10880 if ac_fn_c_try_compile "$LINENO"; then :
10881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10882 ac_cv_c_bigendian=yes
10884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10885 if test "$ac_cv_c_bigendian" = unknown; then
10886 ac_cv_c_bigendian=no
10888 # finding both strings is unlikely to happen, but who knows?
10889 ac_cv_c_bigendian=unknown
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 $ac_includes_default
10902 /* Are we little or big endian? From Harbison&Steele. */
10906 char c[sizeof (long int)];
10909 return u.c[sizeof (long int) - 1] == 1;
10915 if ac_fn_c_try_run "$LINENO"; then :
10916 ac_cv_c_bigendian=no
10918 ac_cv_c_bigendian=yes
10920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10921 conftest.$ac_objext conftest.beam conftest.$ac_ext
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10927 $as_echo "$ac_cv_c_bigendian" >&6; }
10928 case $ac_cv_c_bigendian in #(
10930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10940 as_fn_error $? "unknown endianness
10941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10944 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10945 ASM_TYPES_HEADER=./asm_types.h
10947 echo "/* These defines are needed for the public ext2fs.h header file */" \
10949 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10950 uniq tmp_config.$$ >> public_config.h
10952 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10954 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10955 uniq tmp_config.$$ >> public_config.h
10957 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10959 rm -f tmp_config.$$
10960 PUBLIC_CONFIG_HEADER=./public_config.h
10962 for ac_header in inttypes.h
10964 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10965 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_INTTYPES_H 1
10974 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10975 if test "x$ac_cv_type_intptr_t" = xyes; then :
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_INTPTR_T 1
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10985 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10986 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10987 $as_echo_n "(cached) " >&6
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #include <sys/stat.h>
10995 struct stat stat; stat.st_flags = 0;
11000 if ac_fn_c_try_compile "$LINENO"; then :
11001 e2fsprogs_cv_struct_st_flags=yes
11003 e2fsprogs_cv_struct_st_flags=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11009 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11010 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11012 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11013 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11014 $as_echo_n "(cached) " >&6
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018 #include <sys/stat.h>
11022 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11027 if ac_fn_c_try_compile "$LINENO"; then :
11028 e2fsprogs_cv_struct_st_flags_immut=yes
11030 e2fsprogs_cv_struct_st_flags_immut=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11036 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11037 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11039 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11043 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11044 #include <sys/socket.h>
11046 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_SA_LEN 1
11054 if test -n "$BLKID_CMT"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11056 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11057 if ${ac_cv_search_blkid_probe_all+:} false; then :
11058 $as_echo_n "(cached) " >&6
11060 ac_func_search_save_LIBS=$LIBS
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11070 char blkid_probe_all ();
11074 return blkid_probe_all ();
11079 for ac_lib in '' blkid; do
11080 if test -z "$ac_lib"; then
11081 ac_res="none required"
11084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_search_blkid_probe_all=$ac_res
11089 rm -f core conftest.err conftest.$ac_objext \
11091 if ${ac_cv_search_blkid_probe_all+:} false; then :
11095 if ${ac_cv_search_blkid_probe_all+:} false; then :
11098 ac_cv_search_blkid_probe_all=no
11100 rm conftest.$ac_ext
11101 LIBS=$ac_func_search_save_LIBS
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11104 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11105 ac_res=$ac_cv_search_blkid_probe_all
11106 if test "$ac_res" != no; then :
11107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11112 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
11114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11117 cat >>confdefs.h <<_ACEOF
11118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11126 $as_echo_n "checking for socket in -lsocket... " >&6; }
11127 if ${ac_cv_lib_socket_socket+:} false; then :
11128 $as_echo_n "(cached) " >&6
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lsocket $LIBS"
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11150 if ac_fn_c_try_link "$LINENO"; then :
11151 ac_cv_lib_socket_socket=yes
11153 ac_cv_lib_socket_socket=no
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11160 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11161 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11162 SOCKET_LIB=-lsocket
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11167 $as_echo_n "checking for optreset... " >&6; }
11168 if ${ac_cv_have_optreset+:} false; then :
11169 $as_echo_n "(cached) " >&6
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <unistd.h>
11176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11177 $EGREP "optreset" >/dev/null 2>&1; then :
11178 ac_cv_have_optreset=yes
11180 ac_cv_have_optreset=no
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11186 $as_echo "$ac_cv_have_optreset" >&6; }
11187 if test $ac_cv_have_optreset = yes; then
11189 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11194 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11195 if test "x$ac_cv_func_sem_init" = xyes; then :
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11199 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11200 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-lpthread $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11218 return sem_init ();
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_pthread_sem_init=yes
11226 ac_cv_lib_pthread_sem_init=no
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11233 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11234 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11235 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11237 SEM_INIT_LIB=-lpthread
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11240 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11241 if ${ac_cv_lib_rt_sem_init+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 ac_check_lib_save_LIBS=$LIBS
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11259 return sem_init ();
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_lib_rt_sem_init=yes
11267 ac_cv_lib_rt_sem_init=no
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11274 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11275 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11276 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11281 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11282 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11283 $as_echo_n "(cached) " >&6
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lposix4 $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11300 return sem_init ();
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_lib_posix4_sem_init=yes
11308 ac_cv_lib_posix4_sem_init=no
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11315 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11316 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11317 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11319 SEM_INIT_LIB=-lposix4
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11329 $as_echo_n "checking for unified diff option... " >&6; }
11330 if diff -u $0 $0 > /dev/null 2>&1 ; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11336 $as_echo "$UNI_DIFF_OPTS" >&6; }
11341 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11361 linux* | gnu* | k*bsd*-gnu)
11362 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11365 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11370 linux* | gnu* | k*bsd*-gnu)
11371 if test "$prefix" = NONE ; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11374 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11375 if test "$mandir" = '${prefix}/man' ; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11377 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11378 mandir=/usr/share/man
11383 if test "$root_prefix" = NONE ; then
11384 if test "$prefix" = NONE ; then
11385 root_prefix="$ac_default_prefix"
11387 root_prefix="$prefix"
11389 root_bindir=$bindir
11390 root_sbindir=$sbindir
11391 root_libdir=$libdir
11392 root_sysconfdir=$sysconfdir
11394 root_bindir='${root_prefix}/bin'
11395 root_sbindir='${root_prefix}/sbin'
11396 root_libdir='${root_prefix}/lib'
11397 root_sysconfdir='${root_prefix}/etc'
11399 if test "$bindir" != '${exec_prefix}/bin'; then
11400 root_bindir=$bindir
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11402 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11404 if test "$sbindir" != '${exec_prefix}/sbin'; then
11405 root_sbindir=$sbindir
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11407 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11409 if test "$libdir" != '${exec_prefix}/lib'; then
11410 root_libdir=$libdir
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11412 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11414 if test "$sysconfdir" != '${prefix}/etc'; then
11415 root_sysconfdir=$sysconfdir
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11417 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11425 # Check whether --with-multiarch was given.
11426 if test "${with_multiarch+set}" = set; then :
11427 withval=$with_multiarch; libdir=$libdir/$withval
11428 root_libdir=$root_libdir/$withval
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11432 $as_echo_n "checking whether we can link with -static... " >&6; }
11433 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11434 $as_echo_n "(cached) " >&6
11436 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11448 if ac_fn_c_try_link "$LINENO"; then :
11449 ac_cv_e2fsprogs_use_static=yes
11451 ac_cv_e2fsprogs_use_static=no
11453 rm -f core conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LDFLAGS=$SAVE_LDFLAGS
11460 ac_cv_e2fsprogs_use_static=no
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11464 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11466 if test $ac_cv_e2fsprogs_use_static = yes; then
11467 LDFLAG_STATIC=-static
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11473 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11475 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11479 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11480 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11483 if test "$cross_compiling" = yes ; then
11486 DO_TEST_SUITE=check
11489 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11490 if test -n "$CPPFLAGS" ; then
11491 INCLUDES="$INCLUDES $CPPFLAGS"
11493 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11494 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11497 if test $cross_compiling = no; then
11498 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11499 BUILD_LDFLAGS="$LDFLAGS"
11506 test -d lib || mkdir lib
11507 test -d include || mkdir include
11508 test -d include/linux || mkdir include/linux
11509 test -d include/asm || mkdir include/asm
11510 for i in MCONFIG Makefile e2fsprogs.spec \
11511 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11512 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11513 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11514 lib/uuid/Makefile lib/uuid/uuid_types.h \
11515 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11516 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11517 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11518 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11519 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11520 resize/Makefile doc/Makefile intl/Makefile \
11521 intl/libgnuintl.h po/Makefile.in ; do
11522 if test -d `dirname ${srcdir}/$i` ; then
11523 outlist="$outlist $i"
11526 ac_config_files="$ac_config_files $outlist"
11528 cat >confcache <<\_ACEOF
11529 # This file is a shell script that caches the results of configure
11530 # tests run on this system so they can be shared between configure
11531 # scripts and configure runs, see configure's option --config-cache.
11532 # It is not useful on other systems. If it contains results you don't
11533 # want to keep, you may remove or edit it.
11535 # config.status only pays attention to the cache file if you give it
11536 # the --recheck option to rerun configure.
11538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11540 # following values.
11544 # The following way of writing the cache mishandles newlines in values,
11545 # but we know of no workaround that is simple, portable, and efficient.
11546 # So, we kill variables containing newlines.
11547 # Ultrix sh set writes to stderr and can't be redirected directly,
11548 # and sets the high bit in the cache file unless we assign to the vars.
11550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11551 eval ac_val=\$$ac_var
11555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11559 _ | IFS | as_nl) ;; #(
11560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11561 *) { eval $ac_var=; unset $ac_var;} ;;
11567 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11568 *${as_nl}ac_space=\ *)
11569 # `set' does not quote correctly, so add quotes: double-quote
11570 # substitution turns \\\\ into \\, and sed turns \\ into \.
11573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11576 # `set' quotes correctly as required by POSIX, so do not add quotes.
11577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11588 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11590 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11591 if test -w "$cache_file"; then
11592 if test "x$cache_file" != "x/dev/null"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11594 $as_echo "$as_me: updating cache $cache_file" >&6;}
11595 if test ! -f "$cache_file" || test -h "$cache_file"; then
11596 cat confcache >"$cache_file"
11598 case $cache_file in #(
11600 mv -f confcache "$cache_file"$$ &&
11601 mv -f "$cache_file"$$ "$cache_file" ;; #(
11603 mv -f confcache "$cache_file" ;;
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11609 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11615 # Let make expand exec_prefix.
11616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11618 DEFS=-DHAVE_CONFIG_H
11623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11624 # 1. Remove the extension, and $U if already installed.
11625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11628 # will be set to the directory where LIBOBJS objects are built.
11629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11632 LIBOBJS=$ac_libobjs
11634 LTLIBOBJS=$ac_ltlibobjs
11639 : "${CONFIG_STATUS=./config.status}"
11641 ac_clean_files_save=$ac_clean_files
11642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11644 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11648 # Generated by $as_me.
11649 # Run this file to recreate the current configuration.
11650 # Compiler output produced by configure, useful for debugging
11651 # configure, is in config.log if it exists.
11654 ac_cs_recheck=false
11657 SHELL=\${CONFIG_SHELL-$SHELL}
11660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11661 ## -------------------- ##
11662 ## M4sh Initialization. ##
11663 ## -------------------- ##
11665 # Be more Bourne compatible
11666 DUALCASE=1; export DUALCASE # for MKS sh
11667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11671 # is contrary to our usage. Disable this feature.
11672 alias -g '${1+"$@"}'='"$@"'
11673 setopt NO_GLOB_SUBST
11675 case `(set -o) 2>/dev/null` in #(
11687 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11688 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11691 # Prefer a ksh shell builtin over an external printf program on Solaris,
11692 # but without wasting forks for bash or zsh.
11693 if test -z "$BASH_VERSION$ZSH_VERSION" \
11694 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11695 as_echo='print -r --'
11696 as_echo_n='print -rn --'
11697 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11698 as_echo='printf %s\n'
11699 as_echo_n='printf %s'
11701 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11702 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11703 as_echo_n='/usr/ucb/echo -n'
11705 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11706 as_echo_n_body='eval
11710 expr "X$arg" : "X\\(.*\\)$as_nl";
11711 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11713 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11715 export as_echo_n_body
11716 as_echo_n='sh -c $as_echo_n_body as_echo'
11718 export as_echo_body
11719 as_echo='sh -c $as_echo_body as_echo'
11722 # The user is always right.
11723 if test "${PATH_SEPARATOR+set}" != set; then
11725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11733 # We need space, tab and new line, in precisely that order. Quoting is
11734 # there to prevent editors from complaining about space-tab.
11735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11736 # splitting by setting IFS to empty value.)
11739 # Find who we are. Look in the path if we contain no directory separator.
11742 *[\\/]* ) as_myself=$0 ;;
11743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11747 test -z "$as_dir" && as_dir=.
11748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11754 # We did not find ourselves, most probably we were run as `sh COMMAND'
11755 # in which case we are not to be found in the path.
11756 if test "x$as_myself" = x; then
11759 if test ! -f "$as_myself"; then
11760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11764 # Unset variables that we do not need and which cause bugs (e.g. in
11765 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11766 # suppresses any "Segmentation fault" message there. '((' could
11767 # trigger a bug in pdksh 5.2.14.
11768 for as_var in BASH_ENV ENV MAIL MAILPATH
11769 do eval test x\${$as_var+set} = xset \
11770 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11783 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11786 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11787 # ----------------------------------------
11788 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11789 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11790 # script with STATUS, using 1 if that was 0.
11793 as_status=$1; test $as_status -eq 0 && as_status=1
11795 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11796 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11798 $as_echo "$as_me: error: $2" >&2
11799 as_fn_exit $as_status
11803 # as_fn_set_status STATUS
11804 # -----------------------
11805 # Set $? to STATUS, without forking.
11806 as_fn_set_status ()
11809 } # as_fn_set_status
11811 # as_fn_exit STATUS
11812 # -----------------
11813 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11817 as_fn_set_status $1
11823 # Portably unset VAR.
11826 { eval $1=; unset $1;}
11828 as_unset=as_fn_unset
11829 # as_fn_append VAR VALUE
11830 # ----------------------
11831 # Append the text in VALUE to the end of the definition contained in VAR. Take
11832 # advantage of any shell optimizations that allow amortized linear growth over
11833 # repeated appends, instead of the typical quadratic growth present in naive
11835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11836 eval 'as_fn_append ()
11847 # as_fn_arith ARG...
11848 # ------------------
11849 # Perform arithmetic evaluation on the ARGs, and store the result in the
11850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11851 # must be portable across $(()) and expr.
11852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11853 eval 'as_fn_arith ()
11860 as_val=`expr "$@" || test $? -eq 1`
11865 if expr a : '\(a\)' >/dev/null 2>&1 &&
11866 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11873 as_basename=basename
11878 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11884 as_me=`$as_basename -- "$0" ||
11885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11886 X"$0" : 'X\(//\)$' \| \
11887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11889 sed '/^.*\/\([^/][^/]*\)\/*$/{
11903 # Avoid depending upon Character Ranges.
11904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11907 as_cr_digits='0123456789'
11908 as_cr_alnum=$as_cr_Letters$as_cr_digits
11910 ECHO_C= ECHO_N= ECHO_T=
11911 case `echo -n x` in #(((((
11913 case `echo 'xy\c'` in
11914 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11916 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11923 rm -f conf$$ conf$$.exe conf$$.file
11924 if test -d conf$$.dir; then
11925 rm -f conf$$.dir/conf$$.file
11928 mkdir conf$$.dir 2>/dev/null
11930 if (echo >conf$$.file) 2>/dev/null; then
11931 if ln -s conf$$.file conf$$ 2>/dev/null; then
11933 # ... but there are two gotchas:
11934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11936 # In both cases, we have to default to `cp -pR'.
11937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11939 elif ln conf$$.file conf$$ 2>/dev/null; then
11947 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11948 rmdir conf$$.dir 2>/dev/null
11953 # Create "$as_dir" as a directory, including parents if necessary.
11958 -*) as_dir=./$as_dir;;
11960 test -d "$as_dir" || eval $as_mkdir_p || {
11964 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11965 *) as_qdir=$as_dir;;
11967 as_dirs="'$as_qdir' $as_dirs"
11968 as_dir=`$as_dirname -- "$as_dir" ||
11969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11970 X"$as_dir" : 'X\(//\)[^/]' \| \
11971 X"$as_dir" : 'X\(//\)$' \| \
11972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11973 $as_echo X"$as_dir" |
11974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11978 /^X\(\/\/\)[^/].*/{
11991 test -d "$as_dir" && break
11993 test -z "$as_dirs" || eval "mkdir $as_dirs"
11994 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11998 if mkdir -p . 2>/dev/null; then
11999 as_mkdir_p='mkdir -p "$as_dir"'
12001 test -d ./-p && rmdir ./-p
12006 # as_fn_executable_p FILE
12007 # -----------------------
12008 # Test if FILE is an executable regular file.
12009 as_fn_executable_p ()
12011 test -f "$1" && test -x "$1"
12012 } # as_fn_executable_p
12013 as_test_x='test -x'
12014 as_executable_p=as_fn_executable_p
12016 # Sed expression to map a string onto a valid CPP name.
12017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12019 # Sed expression to map a string onto a valid variable name.
12020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12024 ## ----------------------------------- ##
12025 ## Main body of $CONFIG_STATUS script. ##
12026 ## ----------------------------------- ##
12028 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12031 # Save the log message, to keep $0 and so on meaningful, and to
12032 # report actual input values of CONFIG_FILES etc. instead of their
12033 # values after options handling.
12035 This file was extended by $as_me, which was
12036 generated by GNU Autoconf 2.69. Invocation command line was
12038 CONFIG_FILES = $CONFIG_FILES
12039 CONFIG_HEADERS = $CONFIG_HEADERS
12040 CONFIG_LINKS = $CONFIG_LINKS
12041 CONFIG_COMMANDS = $CONFIG_COMMANDS
12044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12049 case $ac_config_files in *"
12050 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12053 case $ac_config_headers in *"
12054 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 # Files that config.status was made for.
12060 config_files="$ac_config_files"
12061 config_headers="$ac_config_headers"
12062 config_commands="$ac_config_commands"
12066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12068 \`$as_me' instantiates files and other configuration actions
12069 from templates according to the current configuration. Unless the files
12070 and actions are specified as TAGs, all are instantiated by default.
12072 Usage: $0 [OPTION]... [TAG]...
12074 -h, --help print this help, then exit
12075 -V, --version print version number and configuration settings, then exit
12076 --config print configuration, then exit
12077 -q, --quiet, --silent
12078 do not print progress messages
12079 -d, --debug don't remove temporary files
12080 --recheck update $as_me by reconfiguring in the same conditions
12081 --file=FILE[:TEMPLATE]
12082 instantiate the configuration file FILE
12083 --header=FILE[:TEMPLATE]
12084 instantiate the configuration header FILE
12086 Configuration files:
12089 Configuration headers:
12092 Configuration commands:
12095 Report bugs to the package provider."
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12099 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12102 configured by $0, generated by GNU Autoconf 2.69,
12103 with options \\"\$ac_cs_config\\"
12105 Copyright (C) 2012 Free Software Foundation, Inc.
12106 This config.status script is free software; the Free Software Foundation
12107 gives unlimited permission to copy, distribute and modify it."
12113 test -n "\$AWK" || AWK=awk
12116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117 # The default lists apply if the user does not specify any file.
12123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12140 # Handling of the options.
12141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12144 $as_echo "$ac_cs_version"; exit ;;
12145 --config | --confi | --conf | --con | --co | --c )
12146 $as_echo "$ac_cs_config"; exit ;;
12147 --debug | --debu | --deb | --de | --d | -d )
12149 --file | --fil | --fi | --f )
12152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12153 '') as_fn_error $? "missing file argument" ;;
12155 as_fn_append CONFIG_FILES " '$ac_optarg'"
12156 ac_need_defaults=false;;
12157 --header | --heade | --head | --hea )
12160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12162 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12163 ac_need_defaults=false;;
12165 # Conflict between --help and --header
12166 as_fn_error $? "ambiguous option: \`$1'
12167 Try \`$0 --help' for more information.";;
12168 --help | --hel | -h )
12169 $as_echo "$ac_cs_usage"; exit ;;
12170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12174 # This is an error.
12175 -*) as_fn_error $? "unrecognized option: \`$1'
12176 Try \`$0 --help' for more information." ;;
12178 *) as_fn_append ac_config_targets " $1"
12179 ac_need_defaults=false ;;
12185 ac_configure_extra_args=
12187 if $ac_cs_silent; then
12189 ac_configure_extra_args="$ac_configure_extra_args --silent"
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 if \$ac_cs_recheck; then
12195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12198 CONFIG_SHELL='$SHELL'
12199 export CONFIG_SHELL
12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12209 ## Running $as_me. ##
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12219 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12220 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12222 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12223 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12224 LINGUAS="${LINGUAS-%UNSET%}"
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12231 # Handling of arguments.
12232 for ac_config_target in $ac_config_targets
12234 case $ac_config_target in
12235 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12236 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12237 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12244 # If the user did not use the arguments to specify the items to instantiate,
12245 # then the envvar interface is used. Set only those that are not.
12246 # We use the long form for the default assignment because of an extremely
12247 # bizarre bug on SunOS 4.1.3.
12248 if $ac_need_defaults; then
12249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12254 # Have a temporary directory for convenience. Make it in the build tree
12255 # simply because there is no reason against having it here, and in addition,
12256 # creating and moving files from /tmp can sometimes cause problems.
12257 # Hook for its removal unless debugging.
12258 # Note that there is a small window in which the directory will not be cleaned:
12259 # after its creation but before its name has been assigned to `$tmp'.
12263 trap 'exit_status=$?
12264 : "${ac_tmp:=$tmp}"
12265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12267 trap 'as_fn_exit 1' 1 2 13 15
12269 # Create a (secure) tmp directory for tmp files.
12272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12276 tmp=./conf$$-$RANDOM
12277 (umask 077 && mkdir "$tmp")
12278 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12281 # Set up the scripts for CONFIG_FILES section.
12282 # No need to generate them if there are no CONFIG_FILES.
12283 # This happens for instance with `./config.status config.h'.
12284 if test -n "$CONFIG_FILES"; then
12286 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12287 ac_cs_awk_getline=:
12288 ac_cs_awk_pipe_init=
12289 ac_cs_awk_read_file='
12290 while ((getline aline < (F[key])) > 0)
12293 ac_cs_awk_pipe_fini=
12295 ac_cs_awk_getline=false
12296 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12297 ac_cs_awk_read_file='
12299 print "cat " F[key] " &&"
12300 '$ac_cs_awk_pipe_init
12301 # The final `:' finishes the AND list.
12302 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12304 ac_cr=`echo X | tr X '\015'`
12305 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12306 # But we know of no other shell where ac_cr would be empty at this
12307 # point, so we can use a bashism as a fallback.
12308 if test "x$ac_cr" = x; then
12309 eval ac_cr=\$\'\\r\'
12311 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12315 ac_cs_awk_cr=$ac_cr
12318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12321 # Create commands to substitute file output variables.
12323 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12324 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12325 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12328 } >conf$$files.sh &&
12329 . ./conf$$files.sh ||
12330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12331 rm -f conf$$files.sh
12334 echo "cat >conf$$subs.awk <<_ACEOF" &&
12335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12337 } >conf$$subs.sh ||
12338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12341 for ac_last_try in false false false false false :; do
12342 . ./conf$$subs.sh ||
12343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12346 if test $ac_delim_n = $ac_delim_num; then
12348 elif $ac_last_try; then
12349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12354 rm -f conf$$subs.sh
12356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12361 s/^/S["/; s/!.*/"]=/
12371 s/\(.\{148\}\)..*/\1/
12373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12385 s/\(.\{148\}\)..*/\1/
12387 s/["\\]/\\&/g; s/^/"/; s/$/"/
12391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12396 ' <conf$$subs.awk | sed '
12401 ' >>$CONFIG_STATUS || ac_write_fail=1
12402 rm -f conf$$subs.awk
12403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12406 for (key in S) S_is_set[key] = 1
12408 \$ac_cs_awk_pipe_init
12412 nfields = split(line, field, "@")
12414 len = length(field[1])
12415 for (i = 2; i < nfields; i++) {
12417 keylen = length(key)
12418 if (S_is_set[key]) {
12420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12421 len += length(value) + length(field[++i])
12426 if (nfields == 3 && !substed) {
12428 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12429 \$ac_cs_awk_read_file
12435 \$ac_cs_awk_pipe_fini
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12449 # trailing colons and then remove the whole line if VPATH becomes empty
12450 # (actually we leave an empty line to preserve line numbers).
12451 if test "x$srcdir" = x.; then
12452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 fi # test -n "$CONFIG_FILES"
12473 # Set up the scripts for CONFIG_HEADERS section.
12474 # No need to generate them if there are no CONFIG_HEADERS.
12475 # This happens for instance with `./config.status Makefile'.
12476 if test -n "$CONFIG_HEADERS"; then
12477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12481 # Transform confdefs.h into an awk script `defines.awk', embedded as
12482 # here-document in config.status, that substitutes the proper values into
12483 # config.h.in to produce config.h.
12485 # Create a delimiter string that does not exist in confdefs.h, to ease
12486 # handling of long lines.
12488 for ac_last_try in false false :; do
12489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12490 if test -z "$ac_tt"; then
12492 elif $ac_last_try; then
12493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12499 # For the awk script, D is an array of macro values keyed by name,
12500 # likewise P contains macro parameters if any. Preserve backslash
12501 # newline sequences.
12503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12505 s/.\{148\}/&'"$ac_delim"'/g
12508 s/^[ ]*#[ ]*define[ ][ ]*/ /
12515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12522 D["\1"]=" \3\\\\\\n"\\/p
12524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12529 s/.\{148\}/&'"$ac_delim"'/g
12534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12539 ' <confdefs.h | sed '
12540 s/'"$ac_delim"'/"\\\
12541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 for (key in D) D_is_set[key] = 1
12547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12549 split(line, arg, " ")
12550 if (arg[1] == "#") {
12554 defundef = substr(arg[1], 2)
12557 split(mac1, mac2, "(") #)
12559 prefix = substr(line, 1, index(line, defundef) - 1)
12560 if (D_is_set[macro]) {
12561 # Preserve the white space surrounding the "#".
12562 print prefix "define", macro P[macro] D[macro]
12565 # Replace #undef with comments. This is necessary, for example,
12566 # in the case of _POSIX_SOURCE, which is predefined and required
12567 # on some systems where configure will not decide to define it.
12568 if (defundef == "undef") {
12569 print "/*", prefix defundef, macro, "*/"
12577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12579 fi # test -n "$CONFIG_HEADERS"
12582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12587 :[FHLC]) ac_mode=$ac_tag; continue;;
12589 case $ac_mode$ac_tag in
12591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12592 :[FH]-) ac_tag=-:-;;
12593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12610 -) ac_f="$ac_tmp/stdin";;
12611 *) # Look for the file first in the build tree, then in the source tree
12612 # (if the path is not absolute). The absolute path cannot be DOS-style,
12613 # because $ac_f cannot contain `:'.
12617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12622 as_fn_append ac_file_inputs " '$ac_f'"
12625 # Let's still pretend it is `configure' which instantiates (i.e., don't
12626 # use $as_me), people would be surprised to read:
12627 # /* config.h. Generated by config.status. */
12628 configure_input='Generated from '`
12629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12631 if test x"$ac_file" != x-; then
12632 configure_input="$ac_file. $configure_input"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12634 $as_echo "$as_me: creating $ac_file" >&6;}
12636 # Neutralize special characters interpreted by sed in replacement strings.
12637 case $configure_input in #(
12638 *\&* | *\|* | *\\* )
12639 ac_sed_conf_input=`$as_echo "$configure_input" |
12640 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12641 *) ac_sed_conf_input=$configure_input;;
12645 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12651 ac_dir=`$as_dirname -- "$ac_file" ||
12652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12653 X"$ac_file" : 'X\(//\)[^/]' \| \
12654 X"$ac_file" : 'X\(//\)$' \| \
12655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12656 $as_echo X"$ac_file" |
12657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12661 /^X\(\/\/\)[^/].*/{
12674 as_dir="$ac_dir"; as_fn_mkdir_p
12678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12681 # A ".." for each directory in $ac_dir_suffix.
12682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12683 case $ac_top_builddir_sub in
12684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12688 ac_abs_top_builddir=$ac_pwd
12689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12690 # for backward compatibility:
12691 ac_top_builddir=$ac_top_build_prefix
12694 .) # We are building in place.
12696 ac_top_srcdir=$ac_top_builddir_sub
12697 ac_abs_top_srcdir=$ac_pwd ;;
12698 [\\/]* | ?:[\\/]* ) # Absolute name.
12699 ac_srcdir=$srcdir$ac_dir_suffix;
12700 ac_top_srcdir=$srcdir
12701 ac_abs_top_srcdir=$srcdir ;;
12702 *) # Relative name.
12703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12704 ac_top_srcdir=$ac_top_build_prefix$srcdir
12705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 # If the template does not know about datarootdir, expand it.
12724 # FIXME: This hack should be removed a few years after 2.60.
12725 ac_datarootdir_hack=; ac_datarootdir_seen=
12736 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12737 *datarootdir*) ac_datarootdir_seen=yes;;
12738 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12740 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743 ac_datarootdir_hack='
12744 s&@datadir@&$datadir&g
12745 s&@docdir@&$docdir&g
12746 s&@infodir@&$infodir&g
12747 s&@localedir@&$localedir&g
12748 s&@mandir@&$mandir&g
12749 s&\\\${datarootdir}&$datarootdir&g' ;;
12753 # Neutralize VPATH when `$srcdir' = `.'.
12754 # Shell code in configure.ac might set extrasub.
12755 # FIXME: do we really want to maintain this feature?
12756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757 ac_sed_extra="$ac_vpsub
12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763 s|@configure_input@|$ac_sed_conf_input|;t t
12764 s&@top_builddir@&$ac_top_builddir_sub&;t t
12765 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12766 s&@srcdir@&$ac_srcdir&;t t
12767 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12768 s&@top_srcdir@&$ac_top_srcdir&;t t
12769 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12770 s&@builddir@&$ac_builddir&;t t
12771 s&@abs_builddir@&$ac_abs_builddir&;t t
12772 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12773 s&@INSTALL@&$ac_INSTALL&;t t
12774 $ac_datarootdir_hack
12776 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12777 if $ac_cs_awk_getline; then
12778 $AWK -f "$ac_tmp/subs.awk"
12780 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12782 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12785 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12787 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12789 which seems to be undefined. Please make sure it is defined" >&5
12790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12791 which seems to be undefined. Please make sure it is defined" >&2;}
12793 rm -f "$ac_tmp/stdin"
12795 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12796 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12804 if test x"$ac_file" != x-; then
12806 $as_echo "/* $configure_input */" \
12807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12808 } >"$ac_tmp/config.h" \
12809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12810 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12812 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12815 mv "$ac_tmp/config.h" "$ac_file" \
12816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12819 $as_echo "/* $configure_input */" \
12820 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12821 || as_fn_error $? "could not create -" "$LINENO" 5
12825 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12826 $as_echo "$as_me: executing $ac_file commands" >&6;}
12831 case $ac_file$ac_mode in
12833 for ac_file in $CONFIG_FILES; do
12834 # Support "outfile[:infile[:infile...]]"
12836 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12838 # PO directories have a Makefile.in generated from Makefile.in.in.
12839 case "$ac_file" in */Makefile.in)
12840 # Adjust a relative srcdir.
12841 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12842 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12843 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12844 # In autoconf-2.13 it is called $ac_given_srcdir.
12845 # In autoconf-2.50 it is called $srcdir.
12846 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12847 case "$ac_given_srcdir" in
12848 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12849 /*) top_srcdir="$ac_given_srcdir" ;;
12850 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12852 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12853 rm -f "$ac_dir/POTFILES"
12854 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12855 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12856 POMAKEFILEDEPS="POTFILES.in"
12857 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12858 # on $ac_dir but don't depend on user-specified configuration
12860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12861 # The LINGUAS file contains the set of available languages.
12862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12865 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12866 # Hide the ALL_LINGUAS assigment from automake.
12867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12870 # The set of available languages was given in configure.in.
12871 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12874 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12875 # Compute UPDATEPOFILES
12876 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12877 # Compute DUMMYPOFILES
12878 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12880 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12881 case "$ac_given_srcdir" in
12883 *) srcdirpre='$(srcdir)/' ;;
12889 for lang in $ALL_LINGUAS; do
12890 POFILES="$POFILES $srcdirpre$lang.po"
12891 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12892 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12893 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12895 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12896 # environment variable.
12898 if test -n "$ALL_LINGUAS"; then
12899 for presentlang in $ALL_LINGUAS; do
12901 if test "%UNSET%" != "$LINGUAS"; then
12902 desiredlanguages="$LINGUAS"
12904 desiredlanguages="$ALL_LINGUAS"
12906 for desiredlang in $desiredlanguages; do
12907 # Use the presentlang catalog if desiredlang is
12908 # a. equal to presentlang, or
12909 # b. a variant of presentlang (because in this case,
12910 # presentlang can be used as a fallback for messages
12911 # which are not translated in the desiredlang catalog).
12912 case "$desiredlang" in
12913 "$presentlang"*) useit=yes;;
12916 if test $useit = yes; then
12917 INST_LINGUAS="$INST_LINGUAS $presentlang"
12922 if test -n "$INST_LINGUAS"; then
12923 for lang in $INST_LINGUAS; do
12924 CATALOGS="$CATALOGS $lang.gmo"
12927 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12928 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"
12929 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12930 if test -f "$f"; then
12932 *.orig | *.bak | *~) ;;
12933 *) cat "$f" >> "$ac_dir/Makefile" ;;
12948 ac_clean_files=$ac_clean_files_save
12950 test $ac_write_fail = 0 ||
12951 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12954 # configure is writing to config.log, and then calls config.status.
12955 # config.status does its own redirection, appending to config.log.
12956 # Unfortunately, on DOS this fails, as config.log is still kept open
12957 # by configure, so config.status won't be able to write to it; its
12958 # output is simply discarded. So we exec the FD to /dev/null,
12959 # effectively closing config.log, so it can be properly (re)opened and
12960 # appended to by config.status. When coming back to configure, we
12961 # need to make the FD available again.
12962 if test "$no_create" != yes; then
12964 ac_config_status_args=
12965 test "$silent" = yes &&
12966 ac_config_status_args="$ac_config_status_args --quiet"
12968 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12970 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12971 # would make configure fail if this is the last instruction.
12972 $ac_cs_success || as_fn_exit 1
12974 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12976 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12979 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi