2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL
=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec
; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo
; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo
; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset
; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
593 for dir
in $PATH /usr
/ucb
; do
595 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho
; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL
=/bin
/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
634 SHELL
="$CONFIG_SHELL"
636 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string
=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix
=/usr
/local
691 ac_config_libobj_dir
=.
698 # Identity of this package.
706 # Factoring default headers for most tests.
707 ac_includes_default
="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
742 ac_subst_vars
='am__EXEEXT_FALSE
772 NO_UNUSED_BUT_SET_VARIABLE
803 am__fastdepCCAS_FALSE
851 INSTALL_STRIP_PROGRAM
869 MAINTAINER_MODE_FALSE
922 program_transform_name
935 enable_option_checking
936 enable_maintainer_mode
938 enable_dependency_tracking
961 ac_precious_vars
='build_alias
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 ac_unrecognized_opts
=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1045 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1047 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1048 bindir
=$ac_optarg ;;
1050 -build |
--build |
--buil |
--bui |
--bu)
1051 ac_prev
=build_alias
;;
1052 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1053 build_alias
=$ac_optarg ;;
1055 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1056 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1057 ac_prev
=cache_file
;;
1058 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1059 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1060 cache_file
=$ac_optarg ;;
1062 --config-cache |
-C)
1063 cache_file
=config.cache
;;
1065 -datadir |
--datadir |
--datadi |
--datad)
1067 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1068 datadir
=$ac_optarg ;;
1070 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1071 |
--dataroo |
--dataro |
--datar)
1072 ac_prev
=datarootdir
;;
1073 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1074 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1075 datarootdir
=$ac_optarg ;;
1077 -disable-* |
--disable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error $?
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=no
;;
1093 -docdir |
--docdir |
--docdi |
--doc |
--do)
1095 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1096 docdir
=$ac_optarg ;;
1098 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1100 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1101 dvidir
=$ac_optarg ;;
1103 -enable-* |
--enable-*)
1104 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid feature name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "enable_
$ac_useropt"
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval enable_
$ac_useropt=\
$ac_optarg ;;
1119 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1120 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1121 |
--exec |
--exe |
--ex)
1122 ac_prev
=exec_prefix
;;
1123 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1124 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1125 |
--exec=* |
--exe=* |
--ex=*)
1126 exec_prefix
=$ac_optarg ;;
1128 -gas |
--gas |
--ga |
--g)
1129 # Obsolete; use --with-gas.
1132 -help |
--help |
--hel |
--he |
-h)
1133 ac_init_help
=long
;;
1134 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1135 ac_init_help
=recursive
;;
1136 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1137 ac_init_help
=short
;;
1139 -host |
--host |
--hos |
--ho)
1140 ac_prev
=host_alias
;;
1141 -host=* |
--host=* |
--hos=* |
--ho=*)
1142 host_alias
=$ac_optarg ;;
1144 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1146 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1148 htmldir
=$ac_optarg ;;
1150 -includedir |
--includedir |
--includedi |
--included |
--include \
1151 |
--includ |
--inclu |
--incl |
--inc)
1152 ac_prev
=includedir
;;
1153 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1154 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1155 includedir
=$ac_optarg ;;
1157 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1159 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1160 infodir
=$ac_optarg ;;
1162 -libdir |
--libdir |
--libdi |
--libd)
1164 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1165 libdir
=$ac_optarg ;;
1167 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1168 |
--libexe |
--libex |
--libe)
1169 ac_prev
=libexecdir
;;
1170 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1171 |
--libexe=* |
--libex=* |
--libe=*)
1172 libexecdir
=$ac_optarg ;;
1174 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1175 ac_prev
=localedir
;;
1176 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1177 localedir
=$ac_optarg ;;
1179 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1180 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1181 ac_prev
=localstatedir
;;
1182 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1183 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1184 localstatedir
=$ac_optarg ;;
1186 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1188 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1189 mandir
=$ac_optarg ;;
1191 -nfp |
--nfp |
--nf)
1192 # Obsolete; use --without-fp.
1195 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1196 |
--no-cr |
--no-c |
-n)
1199 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1200 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1203 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1204 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1205 |
--oldin |
--oldi |
--old |
--ol |
--o)
1206 ac_prev
=oldincludedir
;;
1207 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1208 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1209 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1210 oldincludedir
=$ac_optarg ;;
1212 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1214 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1215 prefix
=$ac_optarg ;;
1217 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1218 |
--program-pre |
--program-pr |
--program-p)
1219 ac_prev
=program_prefix
;;
1220 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1221 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1222 program_prefix
=$ac_optarg ;;
1224 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1225 |
--program-suf |
--program-su |
--program-s)
1226 ac_prev
=program_suffix
;;
1227 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1228 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1229 program_suffix
=$ac_optarg ;;
1231 -program-transform-name |
--program-transform-name \
1232 |
--program-transform-nam |
--program-transform-na \
1233 |
--program-transform-n |
--program-transform- \
1234 |
--program-transform |
--program-transfor \
1235 |
--program-transfo |
--program-transf \
1236 |
--program-trans |
--program-tran \
1237 |
--progr-tra |
--program-tr |
--program-t)
1238 ac_prev
=program_transform_name
;;
1239 -program-transform-name=* |
--program-transform-name=* \
1240 |
--program-transform-nam=* |
--program-transform-na=* \
1241 |
--program-transform-n=* |
--program-transform-=* \
1242 |
--program-transform=* |
--program-transfor=* \
1243 |
--program-transfo=* |
--program-transf=* \
1244 |
--program-trans=* |
--program-tran=* \
1245 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1246 program_transform_name
=$ac_optarg ;;
1248 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1250 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1251 pdfdir
=$ac_optarg ;;
1253 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1255 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1258 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1259 |
-silent |
--silent |
--silen |
--sile |
--sil)
1262 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1264 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1266 sbindir
=$ac_optarg ;;
1268 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1269 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1270 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1272 ac_prev
=sharedstatedir
;;
1273 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1274 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1275 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1277 sharedstatedir
=$ac_optarg ;;
1279 -site |
--site |
--sit)
1281 -site=* |
--site=* |
--sit=*)
1284 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1286 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1287 srcdir
=$ac_optarg ;;
1289 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1290 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1291 ac_prev
=sysconfdir
;;
1292 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1293 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1294 sysconfdir
=$ac_optarg ;;
1296 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1297 ac_prev
=target_alias
;;
1298 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1299 target_alias
=$ac_optarg ;;
1301 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1304 -version |
--version |
--versio |
--versi |
--vers |
-V)
1305 ac_init_version
=: ;;
1308 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=\
$ac_optarg ;;
1323 -without-* |
--without-*)
1324 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1327 as_fn_error $?
"invalid package name: $ac_useropt"
1328 ac_useropt_orig
=$ac_useropt
1329 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1334 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep
=', ';;
1337 eval with_
$ac_useropt=no
;;
1340 # Obsolete; use --with-x.
1343 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1344 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1345 ac_prev
=x_includes
;;
1346 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1347 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1348 x_includes
=$ac_optarg ;;
1350 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1351 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1352 ac_prev
=x_libraries
;;
1353 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1354 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1355 x_libraries
=$ac_optarg ;;
1357 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1362 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1366 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1368 eval $ac_envvar=\
$ac_optarg
1369 export $ac_envvar ;;
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1382 if test -n "$ac_prev"; then
1383 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $?
"missing argument to $ac_option"
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1390 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 # Check all directory arguments for consistency.
1396 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1401 eval ac_val
=\$
$ac_var
1402 # Remove trailing slashes.
1405 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\
$ac_val;;
1408 # Be sure to have absolute directory names.
1410 [\\/$
]* | ?
:[\\/]* ) continue;;
1411 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1413 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1421 target
=$target_alias
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x
; then
1425 if test "x$build_alias" = x
; then
1426 cross_compiling
=maybe
1427 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1428 If a cross compiler is detected then cross compile mode will be used" >&2
1429 elif test "x$build_alias" != "x$host_alias"; then
1435 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1437 test "$silent" = yes && exec 6>/dev
/null
1440 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di
=`ls -di .` &&
1442 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $?
"working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $?
"pwd does not report name of working directory"
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted
=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir
=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1480 ac_srcdir_defaulted
=no
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1484 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1486 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var
in $ac_precious_vars; do
1501 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1503 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures this package to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1577 --build=BUILD configure
for building on BUILD
[guessed
]
1578 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1579 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1583 if test -n "$ac_init_help"; then
1588 --disable-option-checking ignore unrecognized
--enable/--with options
1589 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1590 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing
) to the casual installer
1593 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1594 --disable-silent-rules verbose build output (undo: `make V
=0')
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --enable-shared[=PKGS] build shared libraries [default=yes]
1598 --enable-static[=PKGS] build static libraries [default=yes]
1599 --enable-fast-install[=PKGS]
1600 optimize for fast installation [default=yes]
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602 --enable-linux-builtin Configure for builtin in-tree kernel modules
1604 --enable-debug Enable generic debug support [default=no]
1605 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-spec=SPEC Spec files 'generic|fedora
'
1614 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1615 --with-linux=PATH Path to kernel source
1616 --with-linux-obj=PATH Path to kernel build objects
1617 --with-spl=PATH Path to spl source
1618 --with-spl-obj=PATH Path to spl build objects
1619 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1620 --with-udevdir=DIR install udev helpers [[EPREFIX/lib/udev]]
1621 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1622 --with-dracutdir=DIR install dracut helpers [[EPREFIX/lib/dracut]]
1623 --with-blkid support blkid caching [default=check]
1624 --with-selinux support selinux [default=check]
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 CCAS assembler compiler command (defaults to CC)
1636 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1638 Use these variables to override the choices made by `configure' or to
help
1639 it to
find libraries and programs with nonstandard names
/locations.
1641 Report bugs to the package provider.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1655 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1657 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1662 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir
=$ac_pwd
1666 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir
=$ac_top_build_prefix
1671 .
) # We are building in place.
1673 ac_top_srcdir
=$ac_top_builddir_sub
1674 ac_abs_top_srcdir
=$ac_pwd ;;
1675 [\\/]* | ?
:[\\/]* ) # Absolute name.
1676 ac_srcdir
=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir
=$srcdir
1678 ac_abs_top_srcdir
=$srcdir ;;
1680 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1705 generated by GNU Autoconf
2.67
1707 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1708 This configure
script is free software
; the Free Software Foundation
1709 gives unlimited permission to copy
, distribute and modify it.
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile
()
1723 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1724 rm -f conftest.
$ac_objext
1725 if { { ac_try
="$ac_compile"
1727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1766 *) ac_try_echo
=$ac_try;;
1768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1772 if test -s conftest.err
; then
1773 grep -v '^ *+' conftest.err
>conftest.er1
1774 cat conftest.er1
>&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest
$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest
$ac_exeext
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.
$ac_ext >&5
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1798 as_fn_set_status
$ac_retval
1800 } # ac_fn_c_try_link
1802 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists and can be compiled using the include files in
1805 # INCLUDES, setting the cache variable VAR accordingly.
1806 ac_fn_c_check_header_compile
()
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1819 if ac_fn_c_try_compile
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1831 } # ac_fn_c_check_header_compile
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_try_run LINENO
1871 # ----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873 # that executables *can* be run.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_link"
1879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1880 *) ac_try_echo
=$ac_try;;
1882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=$ac_status
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 as_fn_set_status $ac_retval
1912 # ac_fn_c_check_func LINENO FUNC VAR
1913 # ----------------------------------
1914 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1915 ac_fn_c_check_func ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval "test \"\${$3+set}\"" = set; then :
1921 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927 #define $2 innocuous_$2
1929 /* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1935 # include <limits.h>
1937 # include <assert.h>
1942 /* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined __stub_$2 || defined __stub___$2
1964 if ac_fn_c_try_link "$LINENO"; then :
1969 rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 } # ac_fn_c_check_func
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1984 ac_fn_c_check_header_mongrel ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval "test \"\${$3+set}\"" = set; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval "test \"\${$3+set}\"" = set; then :
1991 $as_echo_n "(cached) " >&6
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2008 ac_header_compiler=no
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2024 ac_header_preproc=no
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval "test \"\${$3+set}\"" = set; then :
2054 $as_echo_n "(cached) " >&6
2056 eval "$3=\$ac_header_compiler"
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_header_mongrel
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2069 It was created by $as_me, which was
2070 generated by GNU Autoconf 2.67. Invocation command line was
2082 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2083 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2084 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2085 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2086 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2088 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2089 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2091 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2092 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2093 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2094 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2095 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2096 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2097 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_must_keep_next=false
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2141 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 -* ) ac_must_keep_next=true ;;
2162 as_fn_append ac_configure_args " '$ac_arg'"
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2184 # The following way of writing the cache mishandles newlines in values,
2186 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2187 eval ac_val=\$$ac_var
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2202 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2220 for ac_var in $ac_subst_vars
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2235 for ac_var in $ac_subst_files
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site
script $ac_site_file
2328 See \
`config.log' for more details" "$LINENO" 5 ; }
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2349 # Check that the precious variables saved in the cache have kept the same
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2360 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2364 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x
$ac_old_val`
2371 ac_new_val_w=`echo x
$ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2375 ac_cache_corrupted=:
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 for ac_prog in gawk mawk nawk awk
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_prog_AWK+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2436 if test -n "$AWK"; then
2437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_AWK="$ac_prog"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$AWK"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2459 $as_echo "$AWK" >&6; }
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2466 test -n "$AWK" && break
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2470 $as_echo_n "checking metadata... " >&6; }
2473 _zfs_ac_meta_type="none"
2474 if test -f "$META"; then
2475 _zfs_ac_meta_type="META file"
2477 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2478 if test -n "$ZFS_META_NAME"; then
2480 cat >>confdefs.h <<_ACEOF
2481 #define ZFS_META_NAME "$ZFS_META_NAME"
2487 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2488 if test -n "$ZFS_META_VERSION"; then
2490 cat >>confdefs.h <<_ACEOF
2491 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2497 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2498 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}*"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2508 if test -n "$ZFS_META_RELEASE"; then
2510 cat >>confdefs.h <<_ACEOF
2511 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2516 RELEASE="$ZFS_META_RELEASE"
2520 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2521 if test -n "$ZFS_META_LICENSE"; then
2523 cat >>confdefs.h <<_ACEOF
2524 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2530 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2531 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2532 test -n "$ZFS_META_RELEASE" &&
2533 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2535 cat >>confdefs.h <<_ACEOF
2536 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2542 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2543 if test -n "$ZFS_META_DATA"; then
2545 cat >>confdefs.h <<_ACEOF
2546 #define ZFS_META_DATA "$ZFS_META_DATA"
2552 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2553 if test -n "$ZFS_META_AUTHOR"; then
2555 cat >>confdefs.h <<_ACEOF
2556 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2563 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2564 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2566 if test -n "$ZFS_META_LT_CURRENT" \
2567 -o -n "$ZFS_META_LT_REVISION" \
2568 -o -n "$ZFS_META_LT_AGE"; then
2569 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2570 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2571 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2573 cat >>confdefs.h <<_ACEOF
2574 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2578 cat >>confdefs.h <<_ACEOF
2579 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2583 cat >>confdefs.h <<_ACEOF
2584 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2594 $as_echo "$_zfs_ac_meta_type" >&6; }
2598 for ac_dir in config "$srcdir"/config; do
2599 if test -f "$ac_dir/install-sh"; then
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 elif test -f "$ac_dir/install.sh"; then
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 elif test -f "$ac_dir/shtool"; then
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2627 # Make sure we can run config.sub.
2628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2632 $as_echo_n "checking build system type... " >&6; }
2633 if test "${ac_cv_build+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2636 ac_build_alias=$build_alias
2637 test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639 test "x$ac_build_alias" = x &&
2640 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2646 $as_echo "$ac_cv_build" >&6; }
2647 case $ac_cv_build in
2649 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2652 ac_save_IFS=$IFS; IFS='-'
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2662 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2666 $as_echo_n "checking host system type... " >&6; }
2667 if test "${ac_cv_host+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2670 if test "x$host_alias" = x; then
2671 ac_cv_host=$ac_cv_build
2673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2679 $as_echo "$ac_cv_host" >&6; }
2682 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2685 ac_save_IFS=$IFS; IFS='-'
2691 # Remember, the first character of IFS is used to create $*,
2692 # except with old shells:
2695 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2699 $as_echo_n "checking target system type... " >&6; }
2700 if test "${ac_cv_target+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 if test "x$target_alias" = x; then
2704 ac_cv_target=$ac_cv_host
2706 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2707 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2712 $as_echo "$ac_cv_target" >&6; }
2713 case $ac_cv_target in
2715 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2717 target=$ac_cv_target
2718 ac_save_IFS=$IFS; IFS='-'
2724 # Remember, the first character of IFS is used to create $*,
2725 # except with old shells:
2728 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2731 # The aliases save the names the user supplied, while $host etc.
2732 # will get canonicalized.
2733 test -n "$target_alias" &&
2734 test "$program_prefix$program_suffix$program_transform_name" = \
2736 program_prefix=${target_alias}-
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2740 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2741 # Check whether --enable-maintainer-mode was given.
2742 if test "${enable_maintainer_mode+set}" = set; then :
2743 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2745 USE_MAINTAINER_MODE=no
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2749 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2750 if test $USE_MAINTAINER_MODE = yes; then
2751 MAINTAINER_MODE_TRUE=
2752 MAINTAINER_MODE_FALSE='#'
2754 MAINTAINER_MODE_TRUE='#'
2755 MAINTAINER_MODE_FALSE=
2758 MAINT=$MAINTAINER_MODE_TRUE
2761 # Check whether --enable-silent-rules was given.
2762 if test "${enable_silent_rules+set}" = set; then :
2763 enableval=$enable_silent_rules;
2766 case $enable_silent_rules in
2767 yes) AM_DEFAULT_VERBOSITY=0;;
2768 no) AM_DEFAULT_VERBOSITY=1;;
2769 *) AM_DEFAULT_VERBOSITY=0;;
2773 am__api_version='1.11'
2775 # Find a good install program. We prefer a C program (faster),
2776 # so one script is as good as another. But avoid the broken or
2777 # incompatible versions:
2778 # SysV /etc/install, /usr/sbin/install
2779 # SunOS /usr/etc/install
2780 # IRIX /sbin/install
2782 # AmigaOS /C/install, which installs bootblocks on floppy discs
2783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2786 # OS/2's system install, which has a completely different semantic
2787 # ./install, which can be erroneously created by make from ./install.sh.
2788 # Reject install programs that cannot install multiple files.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2790 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2791 if test -z "$INSTALL"; then
2792 if test "${ac_cv_path_install+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 # Account for people who put trailing slashes in PATH elements.
2801 case $as_dir/ in #((
2802 ./ | .// | /[cC]/* | \
2803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2807 # OSF1 and SCO ODT 3.0 have their own names for install.
2808 # Don't use installbsd from OSF since it installs stuff as root
2810 for ac_prog in ginstall scoinst install; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2813 if test $ac_prog = install &&
2814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # AIX install. It has an incompatible calling convention.
2817 elif test $ac_prog = install &&
2818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2819 # program-specific install script used by HP pwplus--don't use.
2822 rm -rf conftest.one conftest.two conftest.dir
2823 echo one > conftest.one
2824 echo two > conftest.two
2826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2827 test -s conftest.one && test -s conftest.two &&
2828 test -s conftest.dir/conftest.one &&
2829 test -s conftest.dir/conftest.two
2831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2844 rm -rf conftest.one conftest.two conftest.dir
2847 if test "${ac_cv_path_install+set}" = set; then
2848 INSTALL=$ac_cv_path_install
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for INSTALL within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 INSTALL=$ac_install_sh
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2858 $as_echo "$INSTALL" >&6; }
2860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2861 # It thinks the first close brace ends the variable substitution.
2862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2869 $as_echo_n "checking whether build environment is sane... " >&6; }
2872 echo timestamp > conftest.file
2873 # Reject unsafe characters in $srcdir or the absolute working directory
2874 # name. Accept space and tab only in the latter.
2878 *[\\\"\#\$\&\'\`$am_lf]*)
2879 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
2882 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2883 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2886 # Do `set' in a subshell so we don't clobber the current shell's
2887 # arguments. Must try -L first in case configure is actually a
2888 # symlink; some systems play weird games with the mod time of symlinks
2889 # (eg FreeBSD returns the mod time of the symlink's containing
2892 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2893 if test "$*" = "X"; then
2895 set X
`ls -t "$srcdir/configure" conftest.file`
2898 if test "$*" != "X $srcdir/configure conftest.file" \
2899 && test "$*" != "X conftest.file $srcdir/configure"; then
2901 # If neither matched, then we have a broken ls. This can happen
2902 # if, for instance, CONFIG_SHELL is bash and it inherits a
2903 # broken ls alias from the environment. This has actually
2904 # happened. Such a system could not be considered "sane".
2905 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2906 alias in your environment" "$LINENO" 5
2909 test "$2" = conftest.
file
2915 as_fn_error $?
"newly created file is older than distributed files!
2916 Check your system clock" "$LINENO" 5
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2920 test "$program_prefix" != NONE
&&
2921 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2922 # Use a double $ so make ignores it.
2923 test "$program_suffix" != NONE
&&
2924 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2925 # Double any \ or $.
2926 # By default was `s,x,x', remove it if useless.
2927 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2928 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930 # expand $ac_aux_dir to an absolute path
2931 am_aux_dir
=`cd $ac_aux_dir && pwd`
2933 if test x
"${MISSING+set}" != xset
; then
2936 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2941 # Use eval to expand $SHELL
2942 if eval "$MISSING --run true"; then
2943 am_missing_run
="$MISSING --run "
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2947 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2950 if test x
"${install_sh}" != xset
; then
2953 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2959 # Installed binaries are usually stripped using `strip' when the user
2960 # run `make install-strip'. However `strip' might not be the right
2961 # tool to use in cross-compilation environments, therefore Automake
2962 # will honor the `STRIP' environment variable to overrule this program.
2963 if test "$cross_compiling" != no
; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_STRIP+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir
=.
2980 for ac_exec_ext
in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 STRIP
=$ac_cv_prog_STRIP
2993 if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995 $as_echo "$STRIP" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3003 if test -z "$ac_cv_prog_STRIP"; then
3005 # Extract the first word of "strip", so it can be a program name with args.
3006 set dummy strip
; ac_word
=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir
=.
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_STRIP
="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3033 if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035 $as_echo "$ac_ct_STRIP" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3041 if test "x$ac_ct_STRIP" = x
; then
3044 case $cross_compiling:$ac_tool_warned in
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned
=yes ;;
3053 STRIP
="$ac_cv_prog_STRIP"
3057 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062 if test "${ac_cv_path_mkdir+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3069 test -z "$as_dir" && as_dir
=.
3070 for ac_prog
in mkdir gmkdir
; do
3071 for ac_exec_ext
in '' $ac_executable_extensions; do
3072 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3087 test -d .
/--version && rmdir .
/--version
3088 if test "${ac_cv_path_mkdir+set}" = set; then
3089 MKDIR_P
="$ac_cv_path_mkdir -p"
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for MKDIR_P within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
3095 MKDIR_P
="$ac_install_sh -d"
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3103 [\\/$
]* | ?
:[\\/]*) ;;
3104 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3108 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3110 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3111 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 cat >conftest.
make <<\_ACEOF
3117 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3119 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3120 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3122 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3124 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3128 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 SET_MAKE
="MAKE=${MAKE-make}"
3138 rm -rf .tst
2>/dev
/null
3139 mkdir .tst
2>/dev
/null
3140 if test -d .tst
; then
3145 rmdir .tst
2>/dev
/null
3147 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3148 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3149 # is not polluted with repeated "-I."
3150 am__isrc
=' -I$(srcdir)'
3151 # test to see if srcdir already configured
3152 if test -f $srcdir/config.status
; then
3153 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3157 # test whether we have cygpath
3158 if test -z "$CYGPATH_W"; then
3159 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3160 CYGPATH_W
='cygpath -w'
3167 # Define the identity of the package.
3168 PACKAGE
=$ZFS_META_NAME
3169 VERSION
=$ZFS_META_VERSION
3172 cat >>confdefs.h
<<_ACEOF
3173 #define PACKAGE "$PACKAGE"
3177 cat >>confdefs.h
<<_ACEOF
3178 #define VERSION "$VERSION"
3181 # Some tools Automake needs.
3183 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3186 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3189 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3192 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3195 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3197 # We need awk for the "check" target. The system "awk" is bad on
3199 # Always define AMTAR for backward compatibility.
3201 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3203 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3209 ac_config_headers
="$ac_config_headers zfs_config.h"
3214 ac_cpp
='$CPP $CPPFLAGS'
3215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC
="$CC" # Let the user override the test.
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3257 if test -z "$ac_cv_prog_CC"; then
3259 # Extract the first word of "gcc", so it can be a program name with args.
3260 set dummy gcc
; ac_word
=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir
=.
3274 for ac_exec_ext
in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_ac_ct_CC
="gcc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3287 if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289 $as_echo "$ac_ct_CC" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3295 if test "x$ac_ct_CC" = x
; then
3298 case $cross_compiling:$ac_tool_warned in
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned
=yes ;;
3310 if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if test "${ac_cv_prog_CC+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC
="$CC" # Let the user override the test.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc
; ac_word
=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC
="$CC" # Let the user override the test.
3363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir
=.
3368 for ac_exec_ext
in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected
=yes
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 if test $ac_prog_rejected = yes; then
3383 # We found a bogon in the path, so make sure we never use it.
3384 set dummy
$ac_cv_prog_CC
3386 if test $# != 0; then
3387 # We chose a different compiler from the bogus one.
3388 # However, it has the same basename, so the bogon will be chosen
3389 # first if we set CC to just the basename; use the full file name.
3391 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3407 if test -z "$CC"; then
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog
in cl.exe
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_CC+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC
="$CC" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$CC" && break
3451 if test -z "$CC"; then
3453 for ac_prog
in cl.exe
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy
$ac_prog; ac_word
=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir
=.
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_ac_ct_CC
="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3483 if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485 $as_echo "$ac_ct_CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$ac_ct_CC" && break
3495 if test "x$ac_ct_CC" = x
; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned
=yes ;;
3511 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $?
"no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details" "$LINENO" 5 ; }
3516 # Provide some information about the compiler.
3517 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3520 for ac_option
in --version -v -V -qversion; do
3521 { { ac_try
="$ac_compiler $ac_option >&5"
3523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3530 if test -s conftest.err; then
3532 ... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3536 rm -f conftest.er1 conftest.err
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558 $as_echo_n "checking whether the C compiler works... " >&6; }
3559 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3561 # The possible output files:
3562 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3565 for ac_file in $ac_files
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3574 if { { ac_try="$ac_link_default"
3576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3577 *) ac_try_echo
=$ac_try;;
3579 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link_default") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3590 for ac_file
in $ac_files ''
3592 test -f "$ac_file" ||
continue
3594 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3597 # We found the default executable, but exeext='' is most
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3603 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3615 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3620 if test -z "$ac_file"; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error
77 "C compiler cannot create executables
3629 See \`config.log' for more details" "$LINENO" 5 ; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3635 $as_echo_n "checking for C compiler default output file name... " >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3637 $as_echo "$ac_file" >&6; }
3638 ac_exeext
=$ac_cv_exeext
3640 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3641 ac_clean_files
=$ac_clean_files_save
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try
="$ac_link"
3646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3656 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3659 for ac_file
in conftest.exe conftest conftest.
*; do
3660 test -f "$ac_file" ||
continue
3662 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3663 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details" "$LINENO" 5 ; }
3674 rm -f conftest conftest
$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3678 rm -f conftest.
$ac_ext
3679 EXEEXT
=$ac_cv_exeext
3681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3687 FILE *f = fopen ("conftest.out", "w");
3688 return ferror (f) || fclose (f) != 0;
3694 ac_clean_files
="$ac_clean_files conftest.out"
3695 # Check that the compiler produces executables we can run. If not, either
3696 # the compiler is broken, or we cross compile.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3698 $as_echo_n "checking whether we are cross compiling... " >&6; }
3699 if test "$cross_compiling" != yes; then
3700 { { ac_try
="$ac_link"
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 if { ac_try='./conftest$ac_cv_exeext'
3712 { { case "(($ac_try" in
3713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3714 *) ac_try_echo
=$ac_try;;
3716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_try") 2>&5
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; }; then
3724 if test "$cross_compiling" = maybe
; then
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $?
"cannot run C compiled programs.
3730 If you meant to cross compile, use \`--host'.
3731 See \`config.log' for more details" "$LINENO" 5 ; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3736 $as_echo "$cross_compiling" >&6; }
3738 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3739 ac_clean_files
=$ac_clean_files_save
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3741 $as_echo_n "checking for suffix of object files... " >&6; }
3742 if test "${ac_cv_objext+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3756 rm -f conftest.o conftest.obj
3757 if { { ac_try
="$ac_compile"
3759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compile") 2>&5
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 for ac_file in conftest.o conftest.obj conftest.*; do
3769 test -f "$ac_file" || continue;
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3783 See \
`config.log' for more details" "$LINENO" 5 ; }
3785 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3788 $as_echo "$ac_cv_objext" >&6; }
3789 OBJEXT=$ac_cv_objext
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3793 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3810 if ac_fn_c_try_compile "$LINENO"; then :
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3821 if test $ac_compiler_gnu = yes; then
3826 ac_test_CFLAGS=${CFLAGS+set}
3827 ac_save_CFLAGS=$CFLAGS
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3830 if test "${ac_cv_prog_cc_g+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3833 ac_save_c_werror_flag=$ac_c_werror_flag
3834 ac_c_werror_flag=yes
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 if ac_fn_c_try_compile "$LINENO"; then :
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_c_werror_flag=$ac_save_c_werror_flag
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3879 if ac_fn_c_try_compile "$LINENO"; then :
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3890 $as_echo "$ac_cv_prog_cc_g" >&6; }
3891 if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893 elif test $ac_cv_prog_cc_g = yes; then
3894 if test "$GCC" = yes; then
3900 if test "$GCC" = yes; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3911 ac_cv_prog_cc_c89=no
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3917 #include <sys/types.h>
3918 #include <sys/stat.h>
3919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920 struct buf { int x; };
3921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922 static char *e (p, i)
3928 static char *f (char * (*g) (char **, int), char **p, ...)
3933 s = g (p, va_arg (v,int));
3938 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3950 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3952 int test (int i, double x);
3953 struct s1 {int (*f) (int a);};
3954 struct s2 {int (*f) (double a);};
3955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3961 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969 CC="$ac_save_CC $ac_arg"
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_prog_cc_c89=$ac_arg
3973 rm -f core conftest.err conftest.$ac_objext
3974 test "x$ac_cv_prog_cc_c89" != "xno" && break
3976 rm -f conftest.$ac_ext
3981 case "x$ac_cv_prog_cc_c89" in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984 $as_echo "none needed" >&6; } ;;
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987 $as_echo "unsupported" >&6; } ;;
3989 CC="$CC $ac_cv_prog_cc_c89"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3993 if test "x$ac_cv_prog_cc_c89" != xno; then :
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 DEPDIR="${am__leading_dot}deps"
4004 ac_config_commands="$ac_config_commands depfiles"
4007 am_make=${MAKE-make}
4008 cat > confinc << 'END'
4010 @echo this is the am__doit target
4013 # If we don't find an include directive, just comment out the code.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4019 # First try GNU make style include.
4020 echo "include confinc" > confmf
4021 # Ignore all kinds of additional output from `make'.
4022 case `$am_make -s -f confmf 2> /dev/null` in #(
4023 *the\ am__doit\ target*)
4029 # Now try BSD make style include.
4030 if test "$am__include" = "#"; then
4031 echo '.include
"confinc"' > confmf
4032 case `$am_make -s -f confmf 2> /dev/null` in #(
4033 *the\ am__doit\ target*)
4034 am__include=.include
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4043 $as_echo "$_am_result" >&6; }
4044 rm -f confinc confmf
4046 # Check whether --enable-dependency-tracking was given.
4047 if test "${enable_dependency_tracking+set}" = set; then :
4048 enableval=$enable_dependency_tracking;
4051 if test "x$enable_dependency_tracking" != xno; then
4052 am_depcomp="$ac_aux_dir/depcomp"
4055 if test "x$enable_dependency_tracking" != xno
; then
4065 depcc
="$CC" am_compiler_list
=
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4068 $as_echo_n "checking dependency style of $depcc... " >&6; }
4069 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4073 # We make a subdir and do the tests there. Otherwise we can end up
4074 # making bogus files that we don't know about and never remove. For
4075 # instance it was reported that on HP-UX the gcc test will end up
4076 # making a dummy file named `D' -- because `-MD' means `put the output
4079 # Copy depcomp to subdir because otherwise we won't find it if we're
4080 # using a relative directory.
4081 cp "$am_depcomp" conftest.dir
4083 # We will build objects and dependencies in a subdirectory because
4084 # it helps to detect inapplicable dependency modes. For instance
4085 # both Tru64's cc and ICC support -MD to output dependencies as a
4086 # side effect of compilation, but ICC will put the dependencies in
4087 # the current directory while Tru64 will put them in the object
4091 am_cv_CC_dependencies_compiler_type
=none
4092 if test "$am_compiler_list" = ""; then
4093 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4096 case " $depcc " in #(
4097 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4100 for depmode
in $am_compiler_list; do
4101 # Setup a source with many dependencies, because some compilers
4102 # like to wrap large dependency lists on column 80 (with \), and
4103 # we should not choose a depcomp mode which is confused by this.
4105 # We need to recreate these files for each test, as the compiler may
4106 # overwrite some of them when testing with obscure command lines.
4107 # This happens at least with the AIX C compiler.
4109 for i
in 1 2 3 4 5 6; do
4110 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4112 # Solaris 8's {/usr,}/bin/sh.
4113 touch sub
/conftst
$i.h
4115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4118 # mode. It turns out that the SunPro C++ compiler does not properly
4119 # handle `-M -o', and we need to detect this. Also, some Intel
4120 # versions had trouble with output in subdirs
4121 am__obj
=sub
/conftest.
${OBJEXT-o}
4122 am__minus_obj
="-o $am__obj"
4125 # This depmode causes a compiler race in universal mode.
4126 test "$am__universal" = false ||
continue
4129 # after this tag, mechanisms are not by side-effect, so they'll
4130 # only be used when explicitly requested
4131 if test "x$enable_dependency_tracking" = xyes
; then
4137 msvisualcpp | msvcmsys
)
4138 # This compiler won't grok `-c -o', but also, the minuso test has
4139 # not run yet. These depmodes are late enough in the game, and
4140 # so weak that their functioning should not be impacted.
4141 am__obj
=conftest.
${OBJEXT-o}
4146 if depmode
=$depmode \
4147 source=sub
/conftest.c object
=$am__obj \
4148 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4149 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4150 >/dev
/null
2>conftest.err
&&
4151 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4152 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4153 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4154 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4155 # icc doesn't choke on unknown options, it will just issue warnings
4156 # or remarks (even with -Werror). So we grep stderr for any message
4157 # that says an option was ignored or not supported.
4158 # When given -MP, icc 7.0 and 7.1 complain thusly:
4159 # icc: Command line warning: ignoring option '-M'; no argument required
4160 # The diagnosis changed in icc 8.0:
4161 # icc: Command line remark: option '-MP' not supported
4162 if (grep 'ignoring option' conftest.err ||
4163 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4164 am_cv_CC_dependencies_compiler_type
=$depmode
4173 am_cv_CC_dependencies_compiler_type
=none
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4179 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4182 test "x$enable_dependency_tracking" != xno \
4183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4185 am__fastdepCC_FALSE
='#'
4187 am__fastdepCC_TRUE
='#'
4188 am__fastdepCC_FALSE
=
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4195 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4200 macro_version
='2.2.6b'
4201 macro_revision
='1.3017'
4215 ltmain
="$ac_aux_dir/ltmain.sh"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4218 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4219 if test "${ac_cv_path_SED+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4222 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4223 for ac_i
in 1 2 3 4 5 6 7; do
4224 ac_script
="$ac_script$as_nl$ac_script"
4226 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4227 { ac_script
=; unset ac_script
;}
4228 if test -z "$SED"; then
4229 ac_path_SED_found
=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir
=.
4236 for ac_prog
in sed gsed
; do
4237 for ac_exec_ext
in '' $ac_executable_extensions; do
4238 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4239 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4240 # Check for GNU ac_path_SED and select it if it is found.
4241 # Check for GNU $ac_path_SED
4242 case `"$ac_path_SED" --version 2>&1` in
4244 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4247 $as_echo_n 0123456789 >"conftest.in"
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 $as_echo '' >> "conftest.nl"
4254 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4255 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4256 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4257 if test $ac_count -gt ${ac_path_SED_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_SED
="$ac_path_SED"
4260 ac_path_SED_max
=$ac_count
4262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4265 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4268 $ac_path_SED_found && break 3
4273 if test -z "$ac_cv_path_SED"; then
4274 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4282 $as_echo "$ac_cv_path_SED" >&6; }
4283 SED
="$ac_cv_path_SED"
4286 test -z "$SED" && SED
=sed
4287 Xsed
="$SED -e 1s/^X//"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4300 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found
=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4311 test -z "$as_dir" && as_dir
=.
4312 for ac_prog
in grep ggrep
; do
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4315 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4316 # Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318 case `"$ac_path_GREP" --version 2>&1` in
4320 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4323 $as_echo_n 0123456789 >"conftest.in"
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4331 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4332 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP
="$ac_path_GREP"
4336 ac_path_GREP_max
=$ac_count
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4341 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4344 $ac_path_GREP_found && break 3
4349 if test -z "$ac_cv_path_GREP"; then
4350 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 ac_cv_path_GREP
=$GREP
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4358 $as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP
="$ac_cv_path_GREP"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4363 $as_echo_n "checking for egrep... " >&6; }
4364 if test "${ac_cv_path_EGREP+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4367 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4368 then ac_cv_path_EGREP
="$GREP -E"
4370 if test -z "$EGREP"; then
4371 ac_path_EGREP_found
=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_prog
in egrep; do
4379 for ac_exec_ext
in '' $ac_executable_extensions; do
4380 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4382 # Check for GNU ac_path_EGREP and select it if it is found.
4383 # Check for GNU $ac_path_EGREP
4384 case `"$ac_path_EGREP" --version 2>&1` in
4386 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4389 $as_echo_n 0123456789 >"conftest.in"
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 $as_echo 'EGREP' >> "conftest.nl"
4396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4397 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4398 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_EGREP
="$ac_path_EGREP"
4402 ac_path_EGREP_max
=$ac_count
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4407 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4410 $ac_path_EGREP_found && break 3
4415 if test -z "$ac_cv_path_EGREP"; then
4416 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419 ac_cv_path_EGREP
=$EGREP
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4425 $as_echo "$ac_cv_path_EGREP" >&6; }
4426 EGREP
="$ac_cv_path_EGREP"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4430 $as_echo_n "checking for fgrep... " >&6; }
4431 if test "${ac_cv_path_FGREP+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4435 then ac_cv_path_FGREP
="$GREP -F"
4437 if test -z "$FGREP"; then
4438 ac_path_FGREP_found
=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4441 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_prog
in fgrep
; do
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4449 # Check for GNU ac_path_FGREP and select it if it is found.
4450 # Check for GNU $ac_path_FGREP
4451 case `"$ac_path_FGREP" --version 2>&1` in
4453 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4456 $as_echo_n 0123456789 >"conftest.in"
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'FGREP' >> "conftest.nl"
4463 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4464 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4465 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4466 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_FGREP
="$ac_path_FGREP"
4469 ac_path_FGREP_max
=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4474 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4477 $ac_path_FGREP_found && break 3
4482 if test -z "$ac_cv_path_FGREP"; then
4483 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 ac_cv_path_FGREP
=$FGREP
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4492 $as_echo "$ac_cv_path_FGREP" >&6; }
4493 FGREP
="$ac_cv_path_FGREP"
4496 test -z "$GREP" && GREP
=grep
4516 # Check whether --with-gnu-ld was given.
4517 if test "${with_gnu_ld+set}" = set; then :
4518 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4524 if test "$GCC" = yes; then
4525 # Check if gcc -print-prog-name=ld gives a path.
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4527 $as_echo_n "checking for ld used by $CC... " >&6; }
4530 # gcc leaves a trailing carriage return which upsets mingw
4531 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4533 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4536 # Accept absolute paths.
4538 re_direlt
='/[^/][^/]*/\.\./'
4539 # Canonicalize the pathname of ld
4540 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4541 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4542 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4544 test -z "$LD" && LD
="$ac_prog"
4547 # If it fails, then pretend we aren't using GCC.
4551 # If it is relative, then search for the first ld in PATH.
4555 elif test "$with_gnu_ld" = yes; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4557 $as_echo_n "checking for GNU ld... " >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4560 $as_echo_n "checking for non-GNU ld... " >&6; }
4562 if test "${lt_cv_path_LD+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -z "$LD"; then
4566 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4567 for ac_dir
in $PATH; do
4569 test -z "$ac_dir" && ac_dir
=.
4570 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4571 lt_cv_path_LD
="$ac_dir/$ac_prog"
4572 # Check to see if the program is GNU ld. I'd rather use --version,
4573 # but apparently some variants of GNU ld only accept -v.
4574 # Break only if it was the GNU/non-GNU ld that we prefer.
4575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4576 *GNU
* |
*'with BFD'*)
4577 test "$with_gnu_ld" != no
&& break
4580 test "$with_gnu_ld" != yes && break
4587 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4592 if test -n "$LD"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4594 $as_echo "$LD" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4599 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4602 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4605 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4606 case `$LD -v 2>&1 </dev/null` in
4607 *GNU
* |
*'with BFD'*)
4608 lt_cv_prog_gnu_ld
=yes
4611 lt_cv_prog_gnu_ld
=no
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4616 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4617 with_gnu_ld
=$lt_cv_prog_gnu_ld
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4628 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4629 if test "${lt_cv_path_NM+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$NM"; then
4633 # Let the user override the test.
4636 lt_nm_to_check
="${ac_tool_prefix}nm"
4637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4638 lt_nm_to_check
="$lt_nm_to_check nm"
4640 for lt_tmp_nm
in $lt_nm_to_check; do
4641 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4642 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4644 test -z "$ac_dir" && ac_dir
=.
4645 tmp_nm
="$ac_dir/$lt_tmp_nm"
4646 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4647 # Check to see if the nm accepts a BSD-compat flag.
4648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4649 # nm: unknown option "B" ignored
4650 # Tru64's nm complains that /dev/null is an invalid object file
4651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4652 */dev
/null
* |
*'Invalid file or object type'*)
4653 lt_cv_path_NM
="$tmp_nm -B"
4657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4659 lt_cv_path_NM
="$tmp_nm -p"
4663 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4664 continue # so that we can try to find one that supports BSD flags
4673 : ${lt_cv_path_NM=no}
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4677 $as_echo "$lt_cv_path_NM" >&6; }
4678 if test "$lt_cv_path_NM" != "no"; then
4681 # Didn't find any BSD compatible name lister, look for dumpbin.
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 if test -n "$DUMPBIN"; then
4693 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir
=.
4700 for ac_exec_ext
in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 DUMPBIN
=$ac_cv_prog_DUMPBIN
4713 if test -n "$DUMPBIN"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4715 $as_echo "$DUMPBIN" >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4722 test -n "$DUMPBIN" && break
4725 if test -z "$DUMPBIN"; then
4726 ac_ct_DUMPBIN
=$DUMPBIN
4727 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy
$ac_prog; ac_word
=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir
=.
4744 for ac_exec_ext
in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4757 if test -n "$ac_ct_DUMPBIN"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4759 $as_echo "$ac_ct_DUMPBIN" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4766 test -n "$ac_ct_DUMPBIN" && break
4769 if test "x$ac_ct_DUMPBIN" = x
; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned
=yes ;;
4778 DUMPBIN
=$ac_ct_DUMPBIN
4783 if test "$DUMPBIN" != ":"; then
4787 test -z "$NM" && NM
=nm
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4795 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4796 if test "${lt_cv_nm_interface+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4799 lt_cv_nm_interface
="BSD nm"
4800 echo "int some_variable = 0;" > conftest.
$ac_ext
4801 (eval echo "\"\$as_me:4801: $ac_compile\"" >&5)
4802 (eval "$ac_compile" 2>conftest.err
)
4803 cat conftest.err
>&5
4804 (eval echo "\"\$as_me:4804: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4806 cat conftest.err
>&5
4807 (eval echo "\"\$as_me:4807: output\"" >&5)
4808 cat conftest.out
>&5
4809 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4810 lt_cv_nm_interface
="MS dumpbin"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4815 $as_echo "$lt_cv_nm_interface" >&6; }
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4818 $as_echo_n "checking whether ln -s works... " >&6; }
4820 if test "$LN_S" = "ln -s"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822 $as_echo "yes" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4825 $as_echo "no, using $LN_S" >&6; }
4828 # find the maximum length of command line arguments
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4830 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4831 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4839 # On DJGPP, this test can blow up pretty badly due to problems in libc
4840 # (any single argument exceeding 2000 bytes causes a buffer overrun
4841 # during glob expansion). Even if it were fixed, the result of this
4842 # check would be larger than it should be.
4843 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4847 # Under GNU Hurd, this test is not required because there is
4848 # no limit to the length of command line arguments.
4849 # Libtool will interpret -1 as no limit whatsoever
4850 lt_cv_sys_max_cmd_len
=-1;
4853 cygwin
* | mingw
* | cegcc
*)
4854 # On Win9x/ME, this test blows up -- it succeeds, but takes
4855 # about 5 minutes as the teststring grows exponentially.
4856 # Worse, since 9x/ME are not pre-emptively multitasking,
4857 # you end up with a "frozen" computer, even though with patience
4858 # the test eventually succeeds (with a max line length of 256k).
4859 # Instead, let's just punt: use the minimum linelength reported by
4860 # all of the supported platforms: 8192 (on NT/2K/XP).
4861 lt_cv_sys_max_cmd_len
=8192;
4865 # On AmigaOS with pdksh, this test takes hours, literally.
4866 # So we just punt and use a minimum line length of 8192.
4867 lt_cv_sys_max_cmd_len
=8192;
4870 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4871 # This has been around since 386BSD, at least. Likely further.
4872 if test -x /sbin
/sysctl
; then
4873 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4874 elif test -x /usr
/sbin
/sysctl
; then
4875 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4877 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4879 # And add a safety zone
4880 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4881 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4885 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4886 lt_cv_sys_max_cmd_len
=196608
4890 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4891 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4892 # nice to cause kernel panics so lets avoid the loop below.
4893 # First set a reasonable default.
4894 lt_cv_sys_max_cmd_len
=16384
4896 if test -x /sbin
/sysconfig
; then
4897 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4898 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4903 lt_cv_sys_max_cmd_len
=102400
4905 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4906 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4907 if test -n "$kargmax"; then
4908 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4910 lt_cv_sys_max_cmd_len
=32768
4914 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4915 if test -n "$lt_cv_sys_max_cmd_len"; then
4916 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4917 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4919 # Make teststring a little bigger before we do anything with it.
4920 # a 1K string should be a reasonable start.
4921 for i
in 1 2 3 4 5 6 7 8 ; do
4922 teststring
=$teststring$teststring
4924 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4925 # If test is not a shell built-in, we'll probably end up computing a
4926 # maximum length that is only half of the actual maximum length, but
4928 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4929 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4930 test $i != 17 # 1/2 MB should be enough
4933 teststring
=$teststring$teststring
4935 # Only check the string length outside the loop.
4936 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4938 # Add a significant safety factor because C++ compilers can tack on
4939 # massive amounts of additional arguments before passing them to the
4940 # linker. It appears as though 1/2 is a usable value.
4941 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4948 if test -n $lt_cv_sys_max_cmd_len ; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4950 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4953 $as_echo "none" >&6; }
4955 max_cmd_len
=$lt_cv_sys_max_cmd_len
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4967 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4968 # Try some XSI features
4971 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4973 && eval 'test $(( 1 + 1 )) -eq 2 \
4974 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
4977 $as_echo "$xsi_shell" >&6; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
4981 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4983 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4985 && lt_shell_append=yes
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
4987 $as_echo "$lt_shell_append" >&6; }
4990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5000 # test EBCDIC or ASCII
5001 case `echo X|tr X '\101'` in
5002 A) # ASCII based system
5003 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5004 lt_SP2NL='tr \040 \012'
5005 lt_NL2SP='tr \015\012 \040\040'
5007 *) # EBCDIC based system
5008 lt_SP2NL='tr \100 \n'
5009 lt_NL2SP='tr \r\n \100\100'
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5022 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5023 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5024 $as_echo_n "(cached
) " >&6
5026 lt_cv_ld_reload_flag='-r'
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5029 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5030 reload_flag=$lt_cv_ld_reload_flag
5031 case $reload_flag in
5033 *) reload_flag=" $reload_flag" ;;
5035 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5038 if test "$GCC" = yes; then
5039 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054 if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5058 $as_echo_n "checking
for $ac_word...
" >&6; }
5059 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5060 $as_echo_n "(cached
) " >&6
5062 if test -n "$OBJDUMP"; then
5063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5082 OBJDUMP=$ac_cv_prog_OBJDUMP
5083 if test -n "$OBJDUMP"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5085 $as_echo "$OBJDUMP" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5088 $as_echo "no
" >&6; }
5093 if test -z "$ac_cv_prog_OBJDUMP"; then
5094 ac_ct_OBJDUMP=$OBJDUMP
5095 # Extract the first word of "objdump
", so it can be a program name with args.
5096 set dummy objdump; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5098 $as_echo_n "checking
for $ac_word...
" >&6; }
5099 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5100 $as_echo_n "(cached
) " >&6
5102 if test -n "$ac_ct_OBJDUMP"; then
5103 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5122 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5123 if test -n "$ac_ct_OBJDUMP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5125 $as_echo "$ac_ct_OBJDUMP" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5128 $as_echo "no
" >&6; }
5131 if test "x
$ac_ct_OBJDUMP" = x; then
5134 case $cross_compiling:$ac_tool_warned in
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5137 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5138 ac_tool_warned=yes ;;
5140 OBJDUMP=$ac_ct_OBJDUMP
5143 OBJDUMP="$ac_cv_prog_OBJDUMP"
5146 test -z "$OBJDUMP" && OBJDUMP=objdump
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5157 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5158 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5159 $as_echo_n "(cached
) " >&6
5161 lt_cv_file_magic_cmd='$MAGIC_CMD'
5162 lt_cv_file_magic_test_file=
5163 lt_cv_deplibs_check_method='unknown'
5164 # Need to set the preceding variable on all platforms that support
5165 # interlibrary dependencies.
5166 # 'none' -- dependencies not supported.
5167 # `unknown' -- same as none, but documents that we really don't know.
5168 # 'pass_all' -- all dependencies passed with no checks.
5169 # 'test_compile' -- check by making test program.
5170 # 'file_magic [[regex]]' -- check by looking for files in library path
5171 # which responds to the $file_magic_cmd with a given extended regex.
5172 # If you have `file' or equivalent on your system and you're not sure
5173 # whether `pass_all' will *always* work, you probably want this one.
5177 lt_cv_deplibs_check_method=pass_all
5181 lt_cv_deplibs_check_method=pass_all
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5186 lt_cv_file_magic_cmd='/usr/bin/file -L'
5187 lt_cv_file_magic_test_file=/shlib/libc.so
5191 # func_win32_libid is a shell function defined in ltmain.sh
5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193 lt_cv_file_magic_cmd='func_win32_libid'
5197 # Base MSYS/MinGW do not provide the 'file' command needed by
5198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5199 # unless we find 'file', for example because we are cross-compiling.
5200 if ( file / ) >/dev/null 2>&1; then
5201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5202 lt_cv_file_magic_cmd='func_win32_libid'
5204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5205 lt_cv_file_magic_cmd='$OBJDUMP -f'
5210 # use the weaker test based on 'objdump'. See mingw*.
5211 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5212 lt_cv_file_magic_cmd='$OBJDUMP -f'
5215 darwin* | rhapsody*)
5216 lt_cv_deplibs_check_method=pass_all
5219 freebsd* | dragonfly*)
5220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5223 # Not sure whether the presence of OpenBSD here was a mistake.
5224 # Let's accept both of them until this is cleared up.
5225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5231 lt_cv_deplibs_check_method=pass_all
5236 lt_cv_deplibs_check_method=pass_all
5239 hpux10.20* | hpux11*)
5240 lt_cv_file_magic_cmd=/usr/bin/file
5243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5262 irix5* | irix6* | nonstopux*)
5264 *-32|*"-32 ") libmagic=32-bit;;
5265 *-n32|*"-n32 ") libmagic=N32;;
5266 *-64|*"-64 ") libmagic=64-bit;;
5267 *) libmagic=never-match;;
5269 lt_cv_deplibs_check_method=pass_all
5272 # This must be Linux ELF.
5273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5274 lt_cv_deplibs_check_method=pass_all
5277 netbsd* | netbsdelf*-gnu)
5278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5287 lt_cv_file_magic_cmd=/usr/bin/file
5288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5292 lt_cv_deplibs_check_method=pass_all
5296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5303 osf3* | osf4* | osf5*)
5304 lt_cv_deplibs_check_method=pass_all
5308 lt_cv_deplibs_check_method=pass_all
5312 lt_cv_deplibs_check_method=pass_all
5315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5316 lt_cv_deplibs_check_method=pass_all
5320 case $host_vendor in
5322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5326 lt_cv_deplibs_check_method=pass_all
5329 lt_cv_file_magic_cmd='/bin/file'
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5333 lt_cv_file_magic_cmd='/bin/file'
5334 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5335 lt_cv_file_magic_test_file=/lib/libc.so
5338 lt_cv_deplibs_check_method=pass_all
5341 lt_cv_deplibs_check_method=pass_all
5347 lt_cv_deplibs_check_method=pass_all
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5354 file_magic_cmd=$lt_cv_file_magic_cmd
5355 deplibs_check_method=$lt_cv_deplibs_check_method
5356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5369 if test -n "$ac_tool_prefix"; then
5370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5371 set dummy ${ac_tool_prefix}ar; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5373 $as_echo_n "checking
for $ac_word...
" >&6; }
5374 if test "${ac_cv_prog_AR+set}" = set; then :
5375 $as_echo_n "(cached
) " >&6
5377 if test -n "$AR"; then
5378 ac_cv_prog_AR="$AR" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_AR="${ac_tool_prefix}ar"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5398 if test -n "$AR"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5400 $as_echo "$AR" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5403 $as_echo "no
" >&6; }
5408 if test -z "$ac_cv_prog_AR"; then
5410 # Extract the first word of "ar", so it can be a program name with args.
5411 set dummy ar; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5413 $as_echo_n "checking
for $ac_word...
" >&6; }
5414 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5415 $as_echo_n "(cached
) " >&6
5417 if test -n "$ac_ct_AR"; then
5418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_ac_ct_AR="ar"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5438 if test -n "$ac_ct_AR"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5440 $as_echo "$ac_ct_AR" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5443 $as_echo "no
" >&6; }
5446 if test "x
$ac_ct_AR" = x; then
5449 case $cross_compiling:$ac_tool_warned in
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5452 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5453 ac_tool_warned=yes ;;
5461 test -z "$AR" && AR=ar
5462 test -z "$AR_FLAGS" && AR_FLAGS=cru
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}strip; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5478 $as_echo_n "checking
for $ac_word...
" >&6; }
5479 if test "${ac_cv_prog_STRIP+set}" = set; then :
5480 $as_echo_n "(cached
) " >&6
5482 if test -n "$STRIP"; then
5483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5502 STRIP=$ac_cv_prog_STRIP
5503 if test -n "$STRIP"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5505 $as_echo "$STRIP" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5508 $as_echo "no
" >&6; }
5513 if test -z "$ac_cv_prog_STRIP"; then
5515 # Extract the first word of "strip
", so it can be a program name with args.
5516 set dummy strip; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5518 $as_echo_n "checking
for $ac_word...
" >&6; }
5519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5520 $as_echo_n "(cached
) " >&6
5522 if test -n "$ac_ct_STRIP"; then
5523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_STRIP="strip
"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5543 if test -n "$ac_ct_STRIP"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5545 $as_echo "$ac_ct_STRIP" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5548 $as_echo "no
" >&6; }
5551 if test "x
$ac_ct_STRIP" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5557 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5558 ac_tool_warned=yes ;;
5563 STRIP="$ac_cv_prog_STRIP"
5566 test -z "$STRIP" && STRIP=:
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5577 $as_echo_n "checking
for $ac_word...
" >&6; }
5578 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5579 $as_echo_n "(cached
) " >&6
5581 if test -n "$RANLIB"; then
5582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5601 RANLIB=$ac_cv_prog_RANLIB
5602 if test -n "$RANLIB"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5604 $as_echo "$RANLIB" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5607 $as_echo "no
" >&6; }
5612 if test -z "$ac_cv_prog_RANLIB"; then
5613 ac_ct_RANLIB=$RANLIB
5614 # Extract the first word of "ranlib
", so it can be a program name with args.
5615 set dummy ranlib; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5617 $as_echo_n "checking
for $ac_word...
" >&6; }
5618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5619 $as_echo_n "(cached
) " >&6
5621 if test -n "$ac_ct_RANLIB"; then
5622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5642 if test -n "$ac_ct_RANLIB"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5644 $as_echo "$ac_ct_RANLIB" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5647 $as_echo "no
" >&6; }
5650 if test "x
$ac_ct_RANLIB" = x; then
5653 case $cross_compiling:$ac_tool_warned in
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5656 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5657 ac_tool_warned=yes ;;
5659 RANLIB=$ac_ct_RANLIB
5662 RANLIB="$ac_cv_prog_RANLIB"
5665 test -z "$RANLIB" && RANLIB=:
5672 # Determine commands to create old-style static archives.
5673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5674 old_postinstall_cmds='chmod 644 $oldlib'
5675 old_postuninstall_cmds=
5677 if test -n "$RANLIB"; then
5680 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5683 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5686 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5722 # If no C compiler was specified, use CC.
5725 # If no C compiler flags were specified, use CFLAGS.
5726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5728 # Allow CC to be a program name with arguments.
5732 # Check for command to grab the raw symbol name followed by C symbol from nm.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
5734 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5735 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5736 $as_echo_n "(cached
) " >&6
5739 # These are sane defaults that work on at least a few old systems.
5740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5742 # Character class describing NM global symbol codes.
5743 symcode='[BCDEGRST]'
5745 # Regexp to match symbols that can be accessed directly from C.
5746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5748 # Define system-specific variables.
5753 cygwin* | mingw* | pw32* | cegcc*)
5754 symcode='[ABCDGISTW]'
5757 if test "$host_cpu" = ia64; then
5758 symcode='[ABCDEGRST]'
5762 symcode='[BCDEGRST]'
5765 symcode='[BCDEGQRST]'
5776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5784 # If we're using GNU nm, then use its standard symbol codes.
5785 case `$NM -V 2>&1` in
5786 *GNU* | *'with BFD'*)
5787 symcode='[ABCDGIRSTW]' ;;
5790 # Transform an extracted symbol line into a proper C declaration.
5791 # Some systems (esp. on ia64) link data and code symbols differently,
5792 # so use this general approach.
5793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5795 # Transform an extracted symbol line into symbol name and symbol address
5796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5799 # Handle CRLF in mingw tool chain
5803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5807 # Try without a prefix underscore, then with it.
5808 for ac_symprfx in "" "_
"; do
5810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5811 symxfrm="\\1 $ac_symprfx\\2 \\2"
5813 # Write the raw and C identifiers.
5814 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5815 # Fake it for dumpbin and say T for any non-static function
5816 # and D for any global variable.
5817 # Also find C++ and __fastcall symbols from MSVC++,
5818 # which start with @ or ?.
5819 lt_cv_sys_global_symbol_pipe="$AWK '"\
5820 " {last_section=section; section=\$ 3};"\
5821 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5822 " \$ 0!~/External *\|/{next};"\
5823 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5824 " {if(hide[section]) next};"\
5825 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5826 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5827 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5828 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5829 " ' prfx
=^
$ac_symprfx"
5831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5834 # Check to see that the pipe works correctly.
5838 cat > conftest.$ac_ext <<_LT_EOF
5843 void nm_test_func(void);
5844 void nm_test_func(void){}
5848 int main(){nm_test_var='a';nm_test_func();return(0);}
5851 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852 (eval $ac_compile) 2>&5
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5855 test $ac_status = 0; }; then
5856 # Now try to grab the symbols.
5858 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\""; } >&5
5859 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5862 test $ac_status = 0; } && test -s "$nlist"; then
5863 # Try sorting and uniquifying the output.
5864 if sort "$nlist" | uniq > "$nlist"T; then
5865 mv -f "$nlist"T "$nlist"
5870 # Make sure that we snagged all the symbols we need.
5871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5873 cat <<_LT_EOF > conftest.$ac_ext
5879 # Now generate the symbol file.
5880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5882 cat <<_LT_EOF >> conftest.$ac_ext
5884 /* The mapping between symbol names and symbols. */
5889 lt__PROGRAM__LTX_preloaded_symbols[] =
5891 { "@PROGRAM@
", (void *) 0 },
5893 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5894 cat <<\_LT_EOF >> conftest.$ac_ext
5898 /* This works around a problem in FreeBSD linker */
5899 #ifdef FREEBSD_WORKAROUND
5900 static const void *lt_preloaded_setup() {
5901 return lt__PROGRAM__LTX_preloaded_symbols;
5909 # Now try linking the two files.
5910 mv conftest.$ac_objext conftstm.$ac_objext
5911 lt_save_LIBS="$LIBS"
5912 lt_save_CFLAGS="$CFLAGS"
5913 LIBS="conftstm.
$ac_objext"
5914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5915 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5916 (eval $ac_link) 2>&5
5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5922 LIBS="$lt_save_LIBS"
5923 CFLAGS="$lt_save_CFLAGS"
5925 echo "cannot
find nm_test_func
in $nlist" >&5
5928 echo "cannot
find nm_test_var
in $nlist" >&5
5931 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5934 echo "$progname: failed program was
:" >&5
5935 cat conftest.$ac_ext >&5
5937 rm -rf conftest* conftst*
5939 # Do not use the global_symbol_pipe unless it works.
5940 if test "$pipe_works" = yes; then
5943 lt_cv_sys_global_symbol_pipe=
5949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5950 lt_cv_sys_global_symbol_to_cdecl=
5952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
5954 $as_echo "failed
" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
5957 $as_echo "ok
" >&6; }
5982 # Check whether --enable-libtool-lock was given.
5983 if test "${enable_libtool_lock+set}" = set; then :
5984 enableval=$enable_libtool_lock;
5987 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5989 # Some flags need to be propagated to the compiler or linker for good
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.$ac_objext` in
6012 # Find out which ABI we are using.
6013 echo '#line 6013 "configure
"' > conftest.$ac_ext
6014 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6015 (eval $ac_compile) 2>&5
6017 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6018 test $ac_status = 0; }; then
6019 if test "$lt_cv_prog_gnu_ld" = yes; then
6020 case `/usr/bin/file conftest.$ac_objext` in
6022 LD="${LD-ld} -melf32bsmip"
6025 LD="${LD-ld} -melf32bmipn32"
6028 LD="${LD-ld} -melf64bmip"
6032 case `/usr/bin/file conftest.$ac_objext` in
6048 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6049 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6050 # Find out which ABI we are using.
6051 echo 'int i;' > conftest.$ac_ext
6052 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 case `/usr/bin/file conftest.o` in
6060 x86_64-*kfreebsd*-gnu)
6061 LD="${LD-ld} -m elf_i386_fbsd
"
6064 LD="${LD-ld} -m elf_i386
"
6066 ppc64-*linux*|powerpc64-*linux*)
6067 LD="${LD-ld} -m elf32ppclinux
"
6070 LD="${LD-ld} -m elf_s390
"
6073 LD="${LD-ld} -m elf32_sparc
"
6079 x86_64-*kfreebsd*-gnu)
6080 LD="${LD-ld} -m elf_x86_64_fbsd
"
6083 LD="${LD-ld} -m elf_x86_64
"
6085 ppc*-*linux*|powerpc*-*linux*)
6086 LD="${LD-ld} -m elf64ppc
"
6088 s390*-*linux*|s390*-*tpf*)
6089 LD="${LD-ld} -m elf64_s390
"
6092 LD="${LD-ld} -m elf64_sparc
"
6102 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6103 SAVE_CFLAGS="$CFLAGS"
6104 CFLAGS="$CFLAGS -belf"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6106 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6107 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6108 $as_echo_n "(cached
) " >&6
6111 ac_cpp='$CPP $CPPFLAGS'
6112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6127 if ac_fn_c_try_link "$LINENO"; then :
6128 lt_cv_cc_needs_belf=yes
6130 lt_cv_cc_needs_belf=no
6132 rm -f core conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6142 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6145 CFLAGS="$SAVE_CFLAGS"
6149 # Find out which ABI we are using.
6150 echo 'int i;' > conftest.$ac_ext
6151 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6152 (eval $ac_compile) 2>&5
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6155 test $ac_status = 0; }; then
6156 case `/usr/bin/file conftest.o` in
6158 case $lt_cv_prog_gnu_ld in
6159 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6161 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6173 need_locks="$enable_libtool_lock"
6177 rhapsody* | darwin*)
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6182 $as_echo_n "checking
for $ac_word...
" >&6; }
6183 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6184 $as_echo_n "(cached
) " >&6
6186 if test -n "$DSYMUTIL"; then
6187 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6206 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6207 if test -n "$DSYMUTIL"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6209 $as_echo "$DSYMUTIL" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6212 $as_echo "no
" >&6; }
6217 if test -z "$ac_cv_prog_DSYMUTIL"; then
6218 ac_ct_DSYMUTIL=$DSYMUTIL
6219 # Extract the first word of "dsymutil
", so it can be a program name with args.
6220 set dummy dsymutil; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6222 $as_echo_n "checking
for $ac_word...
" >&6; }
6223 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6224 $as_echo_n "(cached
) " >&6
6226 if test -n "$ac_ct_DSYMUTIL"; then
6227 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6246 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6247 if test -n "$ac_ct_DSYMUTIL"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6249 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6252 $as_echo "no
" >&6; }
6255 if test "x
$ac_ct_DSYMUTIL" = x; then
6258 case $cross_compiling:$ac_tool_warned in
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6261 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6262 ac_tool_warned=yes ;;
6264 DSYMUTIL=$ac_ct_DSYMUTIL
6267 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6274 $as_echo_n "checking
for $ac_word...
" >&6; }
6275 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6276 $as_echo_n "(cached
) " >&6
6278 if test -n "$NMEDIT"; then
6279 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6298 NMEDIT=$ac_cv_prog_NMEDIT
6299 if test -n "$NMEDIT"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6301 $as_echo "$NMEDIT" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6304 $as_echo "no
" >&6; }
6309 if test -z "$ac_cv_prog_NMEDIT"; then
6310 ac_ct_NMEDIT=$NMEDIT
6311 # Extract the first word of "nmedit
", so it can be a program name with args.
6312 set dummy nmedit; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6314 $as_echo_n "checking
for $ac_word...
" >&6; }
6315 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6316 $as_echo_n "(cached
) " >&6
6318 if test -n "$ac_ct_NMEDIT"; then
6319 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6338 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6339 if test -n "$ac_ct_NMEDIT"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6341 $as_echo "$ac_ct_NMEDIT" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6344 $as_echo "no
" >&6; }
6347 if test "x
$ac_ct_NMEDIT" = x; then
6350 case $cross_compiling:$ac_tool_warned in
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6353 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6354 ac_tool_warned=yes ;;
6356 NMEDIT=$ac_ct_NMEDIT
6359 NMEDIT="$ac_cv_prog_NMEDIT"
6362 if test -n "$ac_tool_prefix"; then
6363 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6364 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6366 $as_echo_n "checking
for $ac_word...
" >&6; }
6367 if test "${ac_cv_prog_LIPO+set}" = set; then :
6368 $as_echo_n "(cached
) " >&6
6370 if test -n "$LIPO"; then
6371 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6390 LIPO=$ac_cv_prog_LIPO
6391 if test -n "$LIPO"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6393 $as_echo "$LIPO" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6396 $as_echo "no
" >&6; }
6401 if test -z "$ac_cv_prog_LIPO"; then
6403 # Extract the first word of "lipo
", so it can be a program name with args.
6404 set dummy lipo; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6406 $as_echo_n "checking
for $ac_word...
" >&6; }
6407 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6408 $as_echo_n "(cached
) " >&6
6410 if test -n "$ac_ct_LIPO"; then
6411 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_LIPO="lipo
"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6430 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6431 if test -n "$ac_ct_LIPO"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6433 $as_echo "$ac_ct_LIPO" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6436 $as_echo "no
" >&6; }
6439 if test "x
$ac_ct_LIPO" = x; then
6442 case $cross_compiling:$ac_tool_warned in
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6445 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6446 ac_tool_warned=yes ;;
6451 LIPO="$ac_cv_prog_LIPO"
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}otool; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6458 $as_echo_n "checking
for $ac_word...
" >&6; }
6459 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6460 $as_echo_n "(cached
) " >&6
6462 if test -n "$OTOOL"; then
6463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6482 OTOOL=$ac_cv_prog_OTOOL
6483 if test -n "$OTOOL"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6485 $as_echo "$OTOOL" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6488 $as_echo "no
" >&6; }
6493 if test -z "$ac_cv_prog_OTOOL"; then
6495 # Extract the first word of "otool
", so it can be a program name with args.
6496 set dummy otool; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6498 $as_echo_n "checking
for $ac_word...
" >&6; }
6499 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6500 $as_echo_n "(cached
) " >&6
6502 if test -n "$ac_ct_OTOOL"; then
6503 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_OTOOL="otool
"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6522 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6523 if test -n "$ac_ct_OTOOL"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
6525 $as_echo "$ac_ct_OTOOL" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6528 $as_echo "no
" >&6; }
6531 if test "x
$ac_ct_OTOOL" = x; then
6534 case $cross_compiling:$ac_tool_warned in
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6537 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6538 ac_tool_warned=yes ;;
6543 OTOOL="$ac_cv_prog_OTOOL"
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6550 $as_echo_n "checking
for $ac_word...
" >&6; }
6551 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6552 $as_echo_n "(cached
) " >&6
6554 if test -n "$OTOOL64"; then
6555 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6574 OTOOL64=$ac_cv_prog_OTOOL64
6575 if test -n "$OTOOL64"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
6577 $as_echo "$OTOOL64" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6580 $as_echo "no
" >&6; }
6585 if test -z "$ac_cv_prog_OTOOL64"; then
6586 ac_ct_OTOOL64=$OTOOL64
6587 # Extract the first word of "otool64
", so it can be a program name with args.
6588 set dummy otool64; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6590 $as_echo_n "checking
for $ac_word...
" >&6; }
6591 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6592 $as_echo_n "(cached
) " >&6
6594 if test -n "$ac_ct_OTOOL64"; then
6595 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6615 if test -n "$ac_ct_OTOOL64"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
6617 $as_echo "$ac_ct_OTOOL64" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6620 $as_echo "no
" >&6; }
6623 if test "x
$ac_ct_OTOOL64" = x; then
6626 case $cross_compiling:$ac_tool_warned in
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6629 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6630 ac_tool_warned=yes ;;
6632 OTOOL64=$ac_ct_OTOOL64
6635 OTOOL64="$ac_cv_prog_OTOOL64"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
6665 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6666 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6667 $as_echo_n "(cached
) " >&6
6669 lt_cv_apple_cc_single_mod=no
6670 if test -z "${LT_MULTI_MODULE}"; then
6671 # By default we will add the -single_module flag. You can override
6672 # by either setting the environment variable LT_MULTI_MODULE
6673 # non-empty at configure time, or by adding -multi_module to the
6675 rm -rf libconftest.dylib*
6676 echo "int foo
(void
){return 1;}" > conftest.c
6677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6678 -dynamiclib -Wl,-single_module conftest.c
" >&5
6679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6683 lt_cv_apple_cc_single_mod=yes
6685 cat conftest.err >&5
6687 rm -rf libconftest.dylib*
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
6692 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
6694 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6695 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6696 $as_echo_n "(cached
) " >&6
6698 lt_cv_ld_exported_symbols_list=no
6699 save_LDFLAGS=$LDFLAGS
6700 echo "_main
" > conftest.sym
6701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 lt_cv_ld_exported_symbols_list=yes
6716 lt_cv_ld_exported_symbols_list=no
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 LDFLAGS="$save_LDFLAGS"
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
6724 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6726 rhapsody* | darwin1.[012])
6727 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6730 darwin*) # darwin 5.x on
6731 # if running on 10.5 or later, the deployment target defaults
6732 # to the OS version, if on x86, and 10.4, the deployment
6733 # target defaults to 10.4. Don't you love it?
6734 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6735 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6736 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6740 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6744 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6745 _lt_dar_single_mod='$single_module'
6747 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6748 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6750 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6752 if test "$DSYMUTIL" != ":"; then
6753 _lt_dsymutil='~$DSYMUTIL $lib || :'
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
6766 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6767 # On Suns, sometimes $CPP names a directory.
6768 if test -n "$CPP" && test -d "$CPP"; then
6771 if test -z "$CPP"; then
6772 if test "${ac_cv_prog_CPP+set}" = set; then :
6773 $as_echo_n "(cached
) " >&6
6775 # Double quotes because CPP needs to be expanded
6776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6779 for ac_c_preproc_warn_flag in '' yes
6781 # Use a header file that comes with gcc, so configuring glibc
6782 # with a fresh cross-compiler works.
6783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784 # <limits.h> exists even on freestanding compilers.
6785 # On the NeXT, cc -E runs the code through the compiler's parser,
6786 # not just through cpp. "Syntax error
" is here to catch this case.
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6790 # include <limits.h>
6792 # include <assert.h>
6796 if ac_fn_c_try_cpp "$LINENO"; then :
6799 # Broken: fails on valid input.
6802 rm -f conftest.err conftest.i conftest.$ac_ext
6804 # OK, works on sane cases. Now check whether nonexistent headers
6805 # can be detected and how.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <ac_nonexistent.h>
6810 if ac_fn_c_try_cpp "$LINENO"; then :
6811 # Broken: success on invalid input.
6814 # Passes both tests.
6818 rm -f conftest.err conftest.i conftest.$ac_ext
6821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822 rm -f conftest.i conftest.err conftest.$ac_ext
6823 if $ac_preproc_ok; then :
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
6836 $as_echo "$CPP" >&6; }
6838 for ac_c_preproc_warn_flag in '' yes
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error
" is here to catch this case.
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6849 # include <limits.h>
6851 # include <assert.h>
6855 if ac_fn_c_try_cpp "$LINENO"; then :
6858 # Broken: fails on valid input.
6861 rm -f conftest.err conftest.i conftest.$ac_ext
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 #include <ac_nonexistent.h>
6869 if ac_fn_c_try_cpp "$LINENO"; then :
6870 # Broken: success on invalid input.
6873 # Passes both tests.
6877 rm -f conftest.err conftest.i conftest.$ac_ext
6880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881 rm -f conftest.i conftest.err conftest.$ac_ext
6882 if $ac_preproc_ok; then :
6885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6887 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6888 See \`config.log' for more details
" "$LINENO" 5 ; }
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
6899 $as_echo_n "checking
for ANSI C header files...
" >&6; }
6900 if test "${ac_cv_header_stdc+set}" = set; then :
6901 $as_echo_n "(cached
) " >&6
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 ac_cv_header_stdc=yes
6921 ac_cv_header_stdc=no
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 if test $ac_cv_header_stdc = yes; then
6926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6932 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6933 $EGREP "memchr
" >/dev/null 2>&1; then :
6936 ac_cv_header_stdc=no
6942 if test $ac_cv_header_stdc = yes; then
6943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6949 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6950 $EGREP "free
" >/dev/null 2>&1; then :
6953 ac_cv_header_stdc=no
6959 if test $ac_cv_header_stdc = yes; then
6960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6961 if test "$cross_compiling" = yes; then :
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6968 #if ((' ' & 0x0FF) == 0x020)
6969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6972 # define ISLOWER(c) \
6973 (('a' <= (c) && (c) <= 'i') \
6974 || ('j' <= (c) && (c) <= 'r') \
6975 || ('s' <= (c) && (c) <= 'z'))
6976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6984 for (i = 0; i < 256; i++)
6985 if (XOR (islower (i), ISLOWER (i))
6986 || toupper (i) != TOUPPER (i))
6991 if ac_fn_c_try_run "$LINENO"; then :
6994 ac_cv_header_stdc=no
6996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6997 conftest.$ac_objext conftest.beam conftest.$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7003 $as_echo "$ac_cv_header_stdc" >&6; }
7004 if test $ac_cv_header_stdc = yes; then
7006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7011 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7012 inttypes.h stdint.h unistd.h
7014 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7015 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7017 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7018 cat >>confdefs.h
<<_ACEOF
7019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027 for ac_header
in dlfcn.h
7029 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7031 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7032 cat >>confdefs.h
<<_ACEOF
7033 #define HAVE_DLFCN_H 1
7052 # Check whether --enable-shared was given.
7053 if test "${enable_shared+set}" = set; then :
7054 enableval
=$enable_shared; p
=${PACKAGE-default}
7056 yes) enable_shared
=yes ;;
7057 no
) enable_shared
=no
;;
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7062 for pkg
in $enableval; do
7064 if test "X$pkg" = "X$p"; then
7083 # Check whether --enable-static was given.
7084 if test "${enable_static+set}" = set; then :
7085 enableval
=$enable_static; p
=${PACKAGE-default}
7087 yes) enable_static
=yes ;;
7088 no
) enable_static
=no
;;
7091 # Look at the argument we got. We use all the common list separators.
7092 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7093 for pkg
in $enableval; do
7095 if test "X$pkg" = "X$p"; then
7115 # Check whether --with-pic was given.
7116 if test "${with_pic+set}" = set; then :
7117 withval
=$with_pic; pic_mode
="$withval"
7123 test -z "$pic_mode" && pic_mode
=default
7131 # Check whether --enable-fast-install was given.
7132 if test "${enable_fast_install+set}" = set; then :
7133 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7135 yes) enable_fast_install
=yes ;;
7136 no
) enable_fast_install
=no
;;
7138 enable_fast_install
=no
7139 # Look at the argument we got. We use all the common list separators.
7140 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7141 for pkg
in $enableval; do
7143 if test "X$pkg" = "X$p"; then
7144 enable_fast_install
=yes
7151 enable_fast_install
=yes
7164 # This can be used to rebuild libtool when needed
7165 LIBTOOL_DEPS
="$ltmain"
7167 # Always use our own libtool.
7168 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7194 test -z "$LN_S" && LN_S
="ln -s"
7209 if test -n "${ZSH_VERSION+set}" ; then
7210 setopt NO_GLOB_SUBST
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7214 $as_echo_n "checking for objdir... " >&6; }
7215 if test "${lt_cv_objdir+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7218 rm -f .libs
2>/dev
/null
7219 mkdir .libs
2>/dev
/null
7220 if test -d .libs
; then
7223 # MS-DOS does not allow filenames that begin with a dot.
7226 rmdir .libs
2>/dev
/null
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7229 $as_echo "$lt_cv_objdir" >&6; }
7230 objdir
=$lt_cv_objdir
7236 cat >>confdefs.h
<<_ACEOF
7237 #define LT_OBJDIR "$lt_cv_objdir/"
7258 # AIX sometimes has problems with the GCC collect2 program. For some
7259 # reason, if we set the COLLECT_NAMES environment variable, the problems
7260 # vanish in a puff of smoke.
7261 if test "X${COLLECT_NAMES+set}" != Xset
; then
7263 export COLLECT_NAMES
7268 # Sed substitution that helps us do robust quoting. It backslashifies
7269 # metacharacters that are still active within double-quoted strings.
7270 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7272 # Same as above, but do not quote variable references.
7273 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7275 # Sed substitution to delay expansion of an escaped shell variable in a
7276 # double_quote_subst'ed string.
7277 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7279 # Sed substitution to delay expansion of an escaped single quote.
7280 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7282 # Sed substitution to avoid accidental globbing in evaled expressions
7283 no_glob_subst
='s/\*/\\\*/g'
7287 can_build_shared
=yes
7289 # All known linkers require a `.a' archive for static linking (except MSVC,
7290 # which needs '.lib').
7293 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7296 old_CFLAGS
="$CFLAGS"
7298 # Set sane defaults for various variables
7299 test -z "$CC" && CC
=cc
7300 test -z "$LTCC" && LTCC
=$CC
7301 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7302 test -z "$LD" && LD
=ld
7303 test -z "$ac_objext" && ac_objext
=o
7305 for cc_temp
in $compiler""; do
7307 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7308 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7313 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7316 # Only perform the check for file, if the check method requires it
7317 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7318 case $deplibs_check_method in
7320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7322 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7328 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7331 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7332 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7333 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir
in $ac_dummy; do
7336 test -z "$ac_dir" && ac_dir
=.
7337 if test -f $ac_dir/${ac_tool_prefix}file; then
7338 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7342 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7345 $EGREP "$file_magic_regex" > /dev
/null
; then
7350 *** Warning: the command libtool uses to detect shared libraries,
7351 *** $file_magic_cmd, produces output that libtool cannot recognize.
7352 *** The result is that libtool may fail to recognize shared libraries
7353 *** as such. This will affect the creation of libtool libraries that
7354 *** depend on shared libraries, but programs linked with such libtool
7355 *** libraries will work regardless of this problem. Nevertheless, you
7356 *** may want to report the problem to your system manager and/or to
7357 *** bug-libtool@gnu.org
7367 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7372 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7373 if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7375 $as_echo "$MAGIC_CMD" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7385 if test -z "$lt_cv_path_MAGIC_CMD"; then
7386 if test -n "$ac_tool_prefix"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7388 $as_echo_n "checking for file... " >&6; }
7389 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7394 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7397 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7398 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7399 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7400 for ac_dir
in $ac_dummy; do
7402 test -z "$ac_dir" && ac_dir
=.
7403 if test -f $ac_dir/file; then
7404 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7405 if test -n "$file_magic_test_file"; then
7406 case $deplibs_check_method in
7408 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7409 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7410 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7411 $EGREP "$file_magic_regex" > /dev
/null
; then
7416 *** Warning: the command libtool uses to detect shared libraries,
7417 *** $file_magic_cmd, produces output that libtool cannot recognize.
7418 *** The result is that libtool may fail to recognize shared libraries
7419 *** as such. This will affect the creation of libtool libraries that
7420 *** depend on shared libraries, but programs linked with such libtool
7421 *** libraries will work regardless of this problem. Nevertheless, you
7422 *** may want to report the problem to your system manager and/or to
7423 *** bug-libtool@gnu.org
7433 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7438 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7439 if test -n "$MAGIC_CMD"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7441 $as_echo "$MAGIC_CMD" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7457 # Use C for the default configuration in the libtool script
7461 ac_cpp
='$CPP $CPPFLAGS'
7462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7467 # Source file extension for C test sources.
7470 # Object file extension for compiled C test sources.
7474 # Code to be used in simple compile tests
7475 lt_simple_compile_test_code
="int some_variable = 0;"
7477 # Code to be used in simple link tests
7478 lt_simple_link_test_code
='int main(){return(0);}'
7486 # If no C compiler was specified, use CC.
7489 # If no C compiler flags were specified, use CFLAGS.
7490 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7492 # Allow CC to be a program name with arguments.
7495 # Save the default compiler, since it gets overwritten when the other
7496 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7497 compiler_DEFAULT
=$CC
7499 # save warnings/boilerplate of simple test code
7500 ac_outfile
=conftest.
$ac_objext
7501 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7502 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7503 _lt_compiler_boilerplate
=`cat conftest.err`
7506 ac_outfile
=conftest.
$ac_objext
7507 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7508 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7509 _lt_linker_boilerplate
=`cat conftest.err`
7514 ## There is no encapsulation within the following macros, do not change
7515 ## the running order or otherwise move them around unless you know exactly
7516 ## what you are doing...
7517 if test -n "$compiler"; then
7519 lt_prog_compiler_no_builtin_flag
=
7521 if test "$GCC" = yes; then
7522 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7529 lt_cv_prog_compiler_rtti_exceptions
=no
7530 ac_outfile
=conftest.
$ac_objext
7531 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7532 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7533 # Insert the option either (1) after the last *FLAGS variable, or
7534 # (2) before a word containing "conftest.", or (3) at the end.
7535 # Note that $ac_compile itself does not contain backslashes and begins
7536 # with a dollar sign (not a hyphen), so the echo should work correctly.
7537 # The option is referenced via a variable to avoid confusing sed.
7538 lt_compile
=`echo "$ac_compile" | $SED \
7539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7541 -e 's:$: $lt_compiler_flag:'`
7542 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5)
7543 (eval "$lt_compile" 2>conftest.err
)
7545 cat conftest.err
>&5
7546 echo "$as_me:7546: \$? = $ac_status" >&5
7547 if (exit $ac_status) && test -s "$ac_outfile"; then
7548 # The compiler can only warn and ignore the option if not recognized
7549 # So say no if there are warnings other than the usual output.
7550 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7551 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7552 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7553 lt_cv_prog_compiler_rtti_exceptions
=yes
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7562 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7563 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7575 lt_prog_compiler_wl
=
7576 lt_prog_compiler_pic
=
7577 lt_prog_compiler_static
=
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7580 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7582 if test "$GCC" = yes; then
7583 lt_prog_compiler_wl
='-Wl,'
7584 lt_prog_compiler_static
='-static'
7588 # All AIX code is PIC.
7589 if test "$host_cpu" = ia64
; then
7590 # AIX 5 now supports IA64 processor
7591 lt_prog_compiler_static
='-Bstatic'
7598 # see comment about AmigaOS4 .so support
7599 lt_prog_compiler_pic
='-fPIC'
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7605 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7610 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7611 # PIC is the default for these OSes.
7614 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic
='-DDLL_EXPORT'
7622 darwin
* | rhapsody
*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic
='-fno-common'
7629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7631 # sets the default TLS model and affects inlining.
7637 lt_prog_compiler_pic
='-fPIC'
7643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7644 # Instead, we relocate shared libraries at runtime.
7648 # Just because we use GCC doesn't mean we suddenly get shared libraries
7649 # on systems that don't support them.
7650 lt_prog_compiler_can_build_shared
=no
7655 # QNX uses GNU C++, but need to define -shared option too, otherwise
7657 lt_prog_compiler_pic
='-fPIC -shared'
7661 if test -d /usr
/nec
; then
7662 lt_prog_compiler_pic
=-Kconform_pic
7667 lt_prog_compiler_pic
='-fPIC'
7671 # PORTME Check for flag to pass linker flags through the system compiler.
7674 lt_prog_compiler_wl
='-Wl,'
7675 if test "$host_cpu" = ia64
; then
7676 # AIX 5 now supports IA64 processor
7677 lt_prog_compiler_static
='-Bstatic'
7679 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7683 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7684 # This hack is so that the source file can tell whether it is being
7685 # built for inclusion in a dll (and should export symbols for example).
7686 lt_prog_compiler_pic
='-DDLL_EXPORT'
7689 hpux9
* | hpux10
* | hpux11
*)
7690 lt_prog_compiler_wl
='-Wl,'
7691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698 lt_prog_compiler_pic
='+Z'
7701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7702 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7705 irix5
* | irix6
* | nonstopux
*)
7706 lt_prog_compiler_wl
='-Wl,'
7707 # PIC (with -KPIC) is the default.
7708 lt_prog_compiler_static
='-non_shared'
7711 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7712 case $cc_basename in
7713 # old Intel for x86_64 which still supported -KPIC.
7715 lt_prog_compiler_wl
='-Wl,'
7716 lt_prog_compiler_pic
='-KPIC'
7717 lt_prog_compiler_static
='-static'
7719 # icc used to be incompatible with GCC.
7720 # ICC 10 doesn't accept -KPIC any more.
7722 lt_prog_compiler_wl
='-Wl,'
7723 lt_prog_compiler_pic
='-fPIC'
7724 lt_prog_compiler_static
='-static'
7726 # Lahey Fortran 8.1.
7728 lt_prog_compiler_wl
='-Wl,'
7729 lt_prog_compiler_pic
='--shared'
7730 lt_prog_compiler_static
='--static'
7732 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7733 # Portland Group compilers (*not* the Pentium gcc compiler,
7734 # which looks to be a dead project)
7735 lt_prog_compiler_wl
='-Wl,'
7736 lt_prog_compiler_pic
='-fpic'
7737 lt_prog_compiler_static
='-Bstatic'
7740 lt_prog_compiler_wl
='-Wl,'
7741 # All Alpha code is PIC.
7742 lt_prog_compiler_static
='-non_shared'
7745 # IBM XL C 8.0/Fortran 10.1 on PPC
7746 lt_prog_compiler_wl
='-Wl,'
7747 lt_prog_compiler_pic
='-qpic'
7748 lt_prog_compiler_static
='-qstaticlink'
7751 case `$CC -V 2>&1 | sed 5q` in
7754 lt_prog_compiler_pic
='-KPIC'
7755 lt_prog_compiler_static
='-Bstatic'
7756 lt_prog_compiler_wl
='-Wl,'
7759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7760 lt_prog_compiler_pic
='-KPIC'
7761 lt_prog_compiler_static
='-Bstatic'
7762 lt_prog_compiler_wl
=''
7770 lt_prog_compiler_pic
='-KPIC'
7771 lt_prog_compiler_static
='-Bstatic'
7775 # QNX uses GNU C++, but need to define -shared option too, otherwise
7777 lt_prog_compiler_pic
='-fPIC -shared'
7780 osf3
* | osf4
* | osf5
*)
7781 lt_prog_compiler_wl
='-Wl,'
7782 # All OSF/1 code is PIC.
7783 lt_prog_compiler_static
='-non_shared'
7787 lt_prog_compiler_static
='-non_shared'
7791 lt_prog_compiler_pic
='-KPIC'
7792 lt_prog_compiler_static
='-Bstatic'
7793 case $cc_basename in
7795 lt_prog_compiler_wl
='-Qoption ld ';;
7797 lt_prog_compiler_wl
='-Wl,';;
7802 lt_prog_compiler_wl
='-Qoption ld '
7803 lt_prog_compiler_pic
='-PIC'
7804 lt_prog_compiler_static
='-Bstatic'
7807 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7808 lt_prog_compiler_wl
='-Wl,'
7809 lt_prog_compiler_pic
='-KPIC'
7810 lt_prog_compiler_static
='-Bstatic'
7814 if test -d /usr
/nec
;then
7815 lt_prog_compiler_pic
='-Kconform_pic'
7816 lt_prog_compiler_static
='-Bstatic'
7820 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7821 lt_prog_compiler_wl
='-Wl,'
7822 lt_prog_compiler_pic
='-KPIC'
7823 lt_prog_compiler_static
='-Bstatic'
7827 lt_prog_compiler_wl
='-Wl,'
7828 lt_prog_compiler_can_build_shared
=no
7832 lt_prog_compiler_pic
='-pic'
7833 lt_prog_compiler_static
='-Bstatic'
7837 lt_prog_compiler_can_build_shared
=no
7843 # For platforms which do not support PIC, -DPIC is meaningless:
7845 lt_prog_compiler_pic
=
7848 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7852 $as_echo "$lt_prog_compiler_pic" >&6; }
7860 # Check to make sure the PIC flag actually works.
7862 if test -n "$lt_prog_compiler_pic"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7864 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7865 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 lt_cv_prog_compiler_pic_works
=no
7869 ac_outfile
=conftest.
$ac_objext
7870 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7871 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7872 # Insert the option either (1) after the last *FLAGS variable, or
7873 # (2) before a word containing "conftest.", or (3) at the end.
7874 # Note that $ac_compile itself does not contain backslashes and begins
7875 # with a dollar sign (not a hyphen), so the echo should work correctly.
7876 # The option is referenced via a variable to avoid confusing sed.
7877 lt_compile
=`echo "$ac_compile" | $SED \
7878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7880 -e 's:$: $lt_compiler_flag:'`
7881 (eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
7882 (eval "$lt_compile" 2>conftest.err
)
7884 cat conftest.err
>&5
7885 echo "$as_me:7885: \$? = $ac_status" >&5
7886 if (exit $ac_status) && test -s "$ac_outfile"; then
7887 # The compiler can only warn and ignore the option if not recognized
7888 # So say no if there are warnings other than the usual output.
7889 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7890 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7891 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7892 lt_cv_prog_compiler_pic_works
=yes
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7899 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7901 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7902 case $lt_prog_compiler_pic in
7904 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7907 lt_prog_compiler_pic
=
7908 lt_prog_compiler_can_build_shared
=no
7919 # Check to make sure the static flag actually works.
7921 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7923 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7924 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 lt_cv_prog_compiler_static_works
=no
7928 save_LDFLAGS
="$LDFLAGS"
7929 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7930 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7931 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7932 # The linker can only warn and ignore the option if not recognized
7933 # So say no if there are warnings
7934 if test -s conftest.err
; then
7935 # Append any errors to the config.log.
7936 cat conftest.err
1>&5
7937 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7938 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7939 if diff conftest.exp conftest.er2
>/dev
/null
; then
7940 lt_cv_prog_compiler_static_works
=yes
7943 lt_cv_prog_compiler_static_works
=yes
7947 LDFLAGS
="$save_LDFLAGS"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7951 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7953 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7956 lt_prog_compiler_static
=
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7970 lt_cv_prog_compiler_c_o
=no
7971 $RM -r conftest
2>/dev
/null
7975 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7977 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 lt_compile
=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>out
/conftest.err
)
7989 cat out
/conftest.err
>&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings
7995 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7996 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7997 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7998 lt_cv_prog_compiler_c_o
=yes
8003 # SGI C++ compiler will create directory out/ii_files/ for
8004 # template instantiation
8005 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8006 $RM out
/* && rmdir out
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8013 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8025 lt_cv_prog_compiler_c_o
=no
8026 $RM -r conftest
2>/dev
/null
8030 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8032 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 lt_compile
=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
8041 (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
8042 (eval "$lt_compile" 2>out
/conftest.err
)
8044 cat out
/conftest.err
>&5
8045 echo "$as_me:8045: \$? = $ac_status" >&5
8046 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8051 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8052 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8053 lt_cv_prog_compiler_c_o
=yes
8058 # SGI C++ compiler will create directory out/ii_files/ for
8059 # template instantiation
8060 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8061 $RM out
/* && rmdir out
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8073 hard_links
="nottested"
8074 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8075 # do not overwrite the value of need_locks provided by the user
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8077 $as_echo_n "checking if we can lock with hard links... " >&6; }
8080 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8082 ln conftest.a conftest.b
2>&5 || hard_links
=no
8083 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8085 $as_echo "$hard_links" >&6; }
8086 if test "$hard_links" = no
; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8104 allow_undefined_flag
=
8105 always_export_symbols
=no
8107 archive_expsym_cmds
=
8108 compiler_needs_object
=no
8109 enable_shared_with_static_runtimes
=no
8110 export_dynamic_flag_spec
=
8111 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8112 hardcode_automatic
=no
8114 hardcode_direct_absolute
=no
8115 hardcode_libdir_flag_spec
=
8116 hardcode_libdir_flag_spec_ld
=
8117 hardcode_libdir_separator
=
8119 hardcode_shlibpath_var
=unsupported
8121 link_all_deplibs
=unknown
8124 old_archive_from_new_cmds
=
8125 old_archive_from_expsyms_cmds
=
8126 thread_safe_flag_spec
=
8127 whole_archive_flag_spec
=
8128 # include_expsyms should be a list of space-separated symbols to be *always*
8129 # included in the symbol list
8131 # exclude_expsyms can be an extended regexp of symbols to exclude
8132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8134 # as well as any symbol that contains `d'.
8135 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8137 # platforms (ab)use it in PIC code, but their linkers get confused if
8138 # the symbol is explicitly referenced. Since portable code cannot
8139 # rely on this symbol name, it's probably fine to never include it in
8140 # preloaded symbol tables.
8141 # Exclude shared library initialization/finalization symbols.
8142 extract_expsyms_cmds
=
8145 cygwin
* | mingw
* | pw32
* | cegcc
*)
8146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8147 # When not using gcc, we currently assume that we are using
8148 # Microsoft Visual C++.
8149 if test "$GCC" != yes; then
8154 # we just hope/assume this is gcc and not c89 (= MSVC++)
8160 linux
* | k
*bsd
*-gnu)
8166 if test "$with_gnu_ld" = yes; then
8167 # If archive_cmds runs LD, not CC, wlarc should be empty
8170 # Set some defaults for GNU ld with shared library support. These
8171 # are reset later if shared libraries are not supported. Putting them
8172 # here allows them to be overridden if necessary.
8173 runpath_var
=LD_RUN_PATH
8174 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8175 export_dynamic_flag_spec
='${wl}--export-dynamic'
8176 # ancient GNU ld didn't support --whole-archive et. al.
8177 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8178 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8180 whole_archive_flag_spec
=
8182 supports_anon_versioning
=no
8183 case `$LD -v 2>&1` in
8184 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8185 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8186 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8187 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8188 *\
2.11.
*) ;; # other 2.11 versions
8189 *) supports_anon_versioning
=yes ;;
8192 # See if GNU ld supports shared libraries.
8195 # On AIX/PPC, the GNU linker is very broken
8196 if test "$host_cpu" != ia64
; then
8200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8201 *** to be unable to reliably create shared libraries on AIX.
8202 *** Therefore, libtool is disabling shared libraries support. If you
8203 *** really care for shared libraries, you may want to modify your PATH
8204 *** so that a non-GNU linker is found, and then restart.
8213 # see comment about AmigaOS4 .so support
8214 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 archive_expsym_cmds
=''
8218 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8219 hardcode_libdir_flag_spec
='-L$libdir'
8220 hardcode_minus_L
=yes
8226 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8227 allow_undefined_flag
=unsupported
8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229 # support --undefined. This deserves some investigation. FIXME
8230 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 cygwin
* | mingw
* | pw32
* | cegcc
*)
8237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238 # as there is no search path for DLLs.
8239 hardcode_libdir_flag_spec
='-L$libdir'
8240 allow_undefined_flag
=unsupported
8241 always_export_symbols
=no
8242 enable_shared_with_static_runtimes
=yes
8243 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8245 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8246 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8247 # If the export-symbols file already is a .def file (1st line
8248 # is EXPORTS), use it as is; otherwise, prepend...
8249 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250 cp $export_symbols $output_objdir/$soname.def;
8252 echo EXPORTS > $output_objdir/$soname.def;
8253 cat $export_symbols >> $output_objdir/$soname.def;
8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263 hardcode_shlibpath_var
=no
8264 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8265 export_dynamic_flag_spec
='${wl}-E'
8266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8267 # Instead, shared libraries are loaded at an image base (0x10000000 by
8268 # default) and relocated if they conflict, which is a slow very memory
8269 # consuming and fragmenting process. To avoid this, we pick a random,
8270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8272 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8273 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8276 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8278 if test "$host_os" = linux-dietlibc
; then
8279 case $cc_basename in
8280 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8283 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8284 && test "$tmp_diet" = no
8287 tmp_sharedflag
='-shared'
8288 case $cc_basename,$host_cpu in
8289 pgcc
*) # Portland Group C compiler
8290 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8291 tmp_addflag
=' $pic_flag'
8293 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8294 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8295 tmp_addflag
=' $pic_flag -Mnomain' ;;
8296 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8297 tmp_addflag
=' -i_dynamic' ;;
8298 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8299 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8300 ifc
* | ifort
*) # Intel Fortran compiler
8301 tmp_addflag
=' -nofor_main' ;;
8302 lf95
*) # Lahey Fortran 8.1
8303 whole_archive_flag_spec
=
8304 tmp_sharedflag
='--shared' ;;
8305 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8306 tmp_sharedflag
='-qmkshrobj'
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ C
*) # Sun C 5.9
8311 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8312 compiler_needs_object
=yes
8313 tmp_sharedflag
='-G' ;;
8314 *Sun\ F
*) # Sun Fortran 8.3
8315 tmp_sharedflag
='-G' ;;
8317 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319 if test "x$supports_anon_versioning" = xyes
; then
8320 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8322 echo "local: *; };" >> $output_objdir/$libname.ver~
8323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8326 case $cc_basename in
8328 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8329 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8330 hardcode_libdir_flag_spec
=
8331 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8332 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8333 if test "x$supports_anon_versioning" = xyes
; then
8334 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8335 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336 echo "local: *; };" >> $output_objdir/$libname.ver~
8337 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8346 netbsd
* | netbsdelf
*-gnu)
8347 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8348 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362 *** create shared libraries on Solaris systems. Therefore, libtool
8363 *** is disabling shared libraries support. We urge you to upgrade GNU
8364 *** binutils to release 2.9.1 or newer. Another option is to modify
8365 *** your PATH or compiler configuration so that the native linker is
8366 *** used, and then restart.
8369 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8370 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8378 case `$LD -v 2>&1` in
8379 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384 *** reliably create shared libraries on SCO systems. Therefore, libtool
8385 *** is disabling shared libraries support. We urge you to upgrade GNU
8386 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8393 # For security reasons, it is highly recommended that you always
8394 # use absolute paths for naming shared libraries, and exclude the
8395 # DT_RUNPATH tag from executables and libraries. But doing so
8396 # requires that you compile everything twice, which is a pain.
8397 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8398 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8399 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_shlibpath_var
=no
8416 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8417 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 if test "$ld_shlibs" = no
; then
8427 hardcode_libdir_flag_spec
=
8428 export_dynamic_flag_spec
=
8429 whole_archive_flag_spec
=
8432 # PORTME fill in a description of your system's linker (not GNU ld)
8435 allow_undefined_flag
=unsupported
8436 always_export_symbols
=yes
8437 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8438 # Note: this linker hardcodes the directories in LIBPATH if there
8439 # are no directories specified by -L.
8440 hardcode_minus_L
=yes
8441 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442 # Neither direct hardcoding nor static linking is supported with a
8444 hardcode_direct
=unsupported
8449 if test "$host_cpu" = ia64
; then
8450 # On IA64, the linker does run time linking by default, so we don't
8451 # have to do anything special.
8452 aix_use_runtimelinking
=no
8453 exp_sym_flag
='-Bexport'
8456 # If we're using GNU nm, then we don't want the "-C" option.
8457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8459 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8461 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8463 aix_use_runtimelinking
=no
8465 # Test if we are trying to use run time linking or normal
8466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467 # need to do runtime linking.
8468 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8469 for ld_flag
in $LDFLAGS; do
8470 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8471 aix_use_runtimelinking
=yes
8478 exp_sym_flag
='-bexport'
8479 no_entry_flag
='-bnoentry'
8482 # When large executables or shared objects are built, AIX ld can
8483 # have problems creating the table of contents. If linking a library
8484 # or program results in "error TOC overflow" add -mminimal-toc to
8485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8490 hardcode_direct_absolute
=yes
8491 hardcode_libdir_separator
=':'
8492 link_all_deplibs
=yes
8493 file_list_spec
='${wl}-f,'
8495 if test "$GCC" = yes; then
8496 case $host_os in aix4.
[012]|aix4.
[012].
*)
8497 # We only want to do this on AIX 4.2 and lower, the check
8498 # below for broken collect2 doesn't work under 4.3+
8499 collect2name
=`${CC} -print-prog-name=collect2`
8500 if test -f "$collect2name" &&
8501 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8503 # We have reworked collect2
8506 # We have old collect2
8507 hardcode_direct
=unsupported
8508 # It fails to find uninstalled libraries when the uninstalled
8509 # path is not listed in the libpath. Setting hardcode_minus_L
8510 # to unsupported forces relinking
8511 hardcode_minus_L
=yes
8512 hardcode_libdir_flag_spec
='-L$libdir'
8513 hardcode_libdir_separator
=
8517 shared_flag
='-shared'
8518 if test "$aix_use_runtimelinking" = yes; then
8519 shared_flag
="$shared_flag "'${wl}-G'
8524 if test "$host_cpu" = ia64
; then
8525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8526 # chokes on -Wl,-G. The following line is correct:
8529 if test "$aix_use_runtimelinking" = yes; then
8530 shared_flag
='${wl}-G'
8532 shared_flag
='${wl}-bM:SRE'
8537 export_dynamic_flag_spec
='${wl}-bexpall'
8538 # It seems that -bexpall does not export symbols beginning with
8539 # underscore (_), so it is better to generate a list of symbols to export.
8540 always_export_symbols
=yes
8541 if test "$aix_use_runtimelinking" = yes; then
8542 # Warning - without using the other runtime loading flags (-brtl),
8543 # -berok will link without error, but may produce a broken library.
8544 allow_undefined_flag
='-berok'
8545 # Determine the default libpath from the value encoded in an
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8558 if ac_fn_c_try_link
"$LINENO"; then :
8560 lt_aix_libpath_sed
='
8561 /Import File Strings/,/^$/ {
8567 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8568 # Check for a 64-bit object if we didn't find anything.
8569 if test -z "$aix_libpath"; then
8570 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573 rm -f core conftest.err conftest.
$ac_objext \
8574 conftest
$ac_exeext conftest.
$ac_ext
8575 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8577 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8578 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8580 if test "$host_cpu" = ia64
; then
8581 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8582 allow_undefined_flag
="-z nodefs"
8583 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8585 # Determine the default libpath from the value encoded in an
8587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8598 if ac_fn_c_try_link
"$LINENO"; then :
8600 lt_aix_libpath_sed
='
8601 /Import File Strings/,/^$/ {
8607 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8608 # Check for a 64-bit object if we didn't find anything.
8609 if test -z "$aix_libpath"; then
8610 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613 rm -f core conftest.err conftest.
$ac_objext \
8614 conftest
$ac_exeext conftest.
$ac_ext
8615 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8617 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8618 # Warning - without using the other run time loading flags,
8619 # -berok will link without error, but may produce a broken library.
8620 no_undefined_flag
=' ${wl}-bernotok'
8621 allow_undefined_flag
=' ${wl}-berok'
8622 # Exported symbols can be pulled into shared objects from archives
8623 whole_archive_flag_spec
='$convenience'
8624 archive_cmds_need_lc
=yes
8625 # This is similar to how AIX traditionally builds its shared libraries.
8626 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8634 # see comment about AmigaOS4 .so support
8635 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds
=''
8639 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8640 hardcode_libdir_flag_spec
='-L$libdir'
8641 hardcode_minus_L
=yes
8647 export_dynamic_flag_spec
=-rdynamic
8650 cygwin
* | mingw
* | pw32
* | cegcc
*)
8651 # When not using gcc, we currently assume that we are using
8652 # Microsoft Visual C++.
8653 # hardcode_libdir_flag_spec is actually meaningless, as there is
8654 # no search path for DLLs.
8655 hardcode_libdir_flag_spec
=' '
8656 allow_undefined_flag
=unsupported
8657 # Tell ltmain to make .lib files, not .a files.
8659 # Tell ltmain to make .dll files, not .so files.
8661 # FIXME: Setting linknames here is a bad hack.
8662 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8663 # The linker will automatically build a .lib file if we build a DLL.
8664 old_archive_from_new_cmds
='true'
8665 # FIXME: Should let the user specify the lib program.
8666 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8667 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8668 enable_shared_with_static_runtimes
=yes
8671 darwin
* | rhapsody
*)
8674 archive_cmds_need_lc
=no
8676 hardcode_automatic
=yes
8677 hardcode_shlibpath_var
=unsupported
8678 whole_archive_flag_spec
=''
8679 link_all_deplibs
=yes
8680 allow_undefined_flag
="$_lt_dar_allow_undefined"
8681 case $cc_basename in
8682 ifort
*) _lt_dar_can_shared
=yes ;;
8683 *) _lt_dar_can_shared
=$GCC ;;
8685 if test "$_lt_dar_can_shared" = "yes"; then
8686 output_verbose_link_cmd
=echo
8687 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8688 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8689 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8690 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8699 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700 hardcode_libdir_flag_spec
='-L$libdir'
8701 hardcode_shlibpath_var
=no
8708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8709 # support. Future versions do this automatically, but an explicit c++rt0.o
8710 # does not break anything, and helps significantly (at the cost of a little
8713 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8714 hardcode_libdir_flag_spec
='-R$libdir'
8716 hardcode_shlibpath_var
=no
8719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8721 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_minus_L
=yes
8724 hardcode_shlibpath_var
=no
8727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8728 freebsd
* | dragonfly
*)
8729 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8730 hardcode_libdir_flag_spec
='-R$libdir'
8732 hardcode_shlibpath_var
=no
8736 if test "$GCC" = yes; then
8737 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8739 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8741 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8742 hardcode_libdir_separator
=:
8745 # hardcode_minus_L: Not really in the search PATH,
8746 # but as the default location of the library.
8747 hardcode_minus_L
=yes
8748 export_dynamic_flag_spec
='${wl}-E'
8752 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8753 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8757 if test "$with_gnu_ld" = no
; then
8758 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8759 hardcode_libdir_flag_spec_ld
='+b $libdir'
8760 hardcode_libdir_separator
=:
8762 hardcode_direct_absolute
=yes
8763 export_dynamic_flag_spec
='${wl}-E'
8764 # hardcode_minus_L: Not really in the search PATH,
8765 # but as the default location of the library.
8766 hardcode_minus_L
=yes
8771 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8774 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8792 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8796 if test "$with_gnu_ld" = no
; then
8797 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8798 hardcode_libdir_separator
=:
8803 hardcode_shlibpath_var
=no
8807 hardcode_direct_absolute
=yes
8808 export_dynamic_flag_spec
='${wl}-E'
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L
=yes
8818 irix5
* | irix6
* | nonstopux
*)
8819 if test "$GCC" = yes; then
8820 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8821 # Try to use the -exported_symbol ld option, if it does not
8822 # work, assume that -exports_file does not work either and
8823 # implicitly export all symbols.
8824 save_LDFLAGS
="$LDFLAGS"
8825 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8830 if ac_fn_c_try_link
"$LINENO"; then :
8831 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8834 rm -f core conftest.err conftest.
$ac_objext \
8835 conftest
$ac_exeext conftest.
$ac_ext
8836 LDFLAGS
="$save_LDFLAGS"
8838 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8839 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8841 archive_cmds_need_lc
='no'
8842 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8843 hardcode_libdir_separator
=:
8845 link_all_deplibs
=yes
8848 netbsd
* | netbsdelf
*-gnu)
8849 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8850 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8852 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8854 hardcode_libdir_flag_spec
='-R$libdir'
8856 hardcode_shlibpath_var
=no
8860 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8863 hardcode_libdir_separator
=:
8864 hardcode_shlibpath_var
=no
8871 if test -f /usr
/libexec
/ld.so
; then
8873 hardcode_shlibpath_var
=no
8874 hardcode_direct_absolute
=yes
8875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8876 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8878 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8879 export_dynamic_flag_spec
='${wl}-E'
8882 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8883 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec
='-R$libdir'
8887 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8898 hardcode_libdir_flag_spec
='-L$libdir'
8899 hardcode_minus_L
=yes
8900 allow_undefined_flag
=unsupported
8901 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8902 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8906 if test "$GCC" = yes; then
8907 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8908 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8910 allow_undefined_flag
=' -expect_unresolved \*'
8911 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8913 archive_cmds_need_lc
='no'
8914 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator
=:
8918 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8919 if test "$GCC" = yes; then
8920 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8921 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8922 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8924 allow_undefined_flag
=' -expect_unresolved \*'
8925 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8926 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8927 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8929 # Both c and cxx compiler support -rpath directly
8930 hardcode_libdir_flag_spec
='-rpath $libdir'
8932 archive_cmds_need_lc
='no'
8933 hardcode_libdir_separator
=:
8937 no_undefined_flag
=' -z defs'
8938 if test "$GCC" = yes; then
8940 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8942 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8944 case `$CC -V 2>&1` in
8947 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8953 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8955 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8959 hardcode_libdir_flag_spec
='-R$libdir'
8960 hardcode_shlibpath_var
=no
8962 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8964 # The compiler driver will combine and reorder linker options,
8965 # but understands `-z linker_flag'. GCC discards it without `$wl',
8966 # but is careful enough not to reorder.
8967 # Supported since Solaris 2.6 (maybe 2.5.1?)
8968 if test "$GCC" = yes; then
8969 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8971 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8975 link_all_deplibs
=yes
8979 if test "x$host_vendor" = xsequent
; then
8980 # Use $CC to link under sequent, because it throws in some extra .o
8981 # files that make .init and .fini sections work.
8982 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8986 hardcode_libdir_flag_spec
='-L$libdir'
8988 hardcode_minus_L
=yes
8989 hardcode_shlibpath_var
=no
8993 case $host_vendor in
8995 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct
=yes # is this really true???
8999 ## LD is ld it makes a PLAMLIB
9000 ## CC just makes a GrossModule.
9001 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9002 reload_cmds
='$CC -r -o $output$reload_objs'
9006 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9010 runpath_var
='LD_RUN_PATH'
9011 hardcode_shlibpath_var
=no
9015 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_shlibpath_var
=no
9017 export_dynamic_flag_spec
='-Bexport'
9021 if test -d /usr
/nec
; then
9022 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_shlibpath_var
=no
9024 runpath_var
=LD_RUN_PATH
9025 hardcode_runpath_var
=yes
9030 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9031 no_undefined_flag
='${wl}-z,text'
9032 archive_cmds_need_lc
=no
9033 hardcode_shlibpath_var
=no
9034 runpath_var
='LD_RUN_PATH'
9036 if test "$GCC" = yes; then
9037 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 sysv5
* | sco3.2v5
* | sco5v6
*)
9046 # Note: We can NOT use -z defs as we might desire, because we do not
9047 # link with -lc, and that would cause any symbols used from libc to
9048 # always be unresolved, which means just about no library would
9049 # ever link correctly. If we're not using GNU ld we use -z text
9050 # though, which does catch some bad symbols but isn't as heavy-handed
9052 no_undefined_flag
='${wl}-z,text'
9053 allow_undefined_flag
='${wl}-z,nodefs'
9054 archive_cmds_need_lc
=no
9055 hardcode_shlibpath_var
=no
9056 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9057 hardcode_libdir_separator
=':'
9058 link_all_deplibs
=yes
9059 export_dynamic_flag_spec
='${wl}-Bexport'
9060 runpath_var
='LD_RUN_PATH'
9062 if test "$GCC" = yes; then
9063 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_libdir_flag_spec
='-L$libdir'
9074 hardcode_shlibpath_var
=no
9082 if test x
$host_vendor = xsni
; then
9084 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9085 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9092 $as_echo "$ld_shlibs" >&6; }
9093 test "$ld_shlibs" = no
&& can_build_shared
=no
9095 with_gnu_ld
=$with_gnu_ld
9112 # Do we need to explicitly link libc?
9114 case "x$archive_cmds_need_lc" in
9116 # Assume -lc should be added
9117 archive_cmds_need_lc
=yes
9119 if test "$enable_shared" = yes && test "$GCC" = yes; then
9120 case $archive_cmds in
9122 # FIXME: we may have to deal with multi-command sequences.
9125 # Test whether the compiler implicitly links with -lc since on some
9126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9127 # to ld, don't add -lc before -lgcc.
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9129 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9131 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9134 (eval $ac_compile) 2>&5
9136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9137 test $ac_status = 0; } 2>conftest.err
; then
9140 libobjs
=conftest.
$ac_objext
9142 wl
=$lt_prog_compiler_wl
9143 pic_flag
=$lt_prog_compiler_pic
9149 lt_save_allow_undefined_flag
=$allow_undefined_flag
9150 allow_undefined_flag
=
9151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9152 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155 test $ac_status = 0; }
9157 archive_cmds_need_lc
=no
9159 archive_cmds_need_lc
=yes
9161 allow_undefined_flag
=$lt_save_allow_undefined_flag
9163 cat conftest.err
1>&5
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9167 $as_echo "$archive_cmds_need_lc" >&6; }
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9331 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9333 if test "$GCC" = yes; then
9335 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9336 *) lt_awk_arg
="/^libraries:/" ;;
9338 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9340 # if the path contains ";" then we assume it to be the separator
9341 # otherwise default to the standard path separator (i.e. ":") - it is
9342 # assumed that no part of a normal pathname contains ";" but that should
9343 # okay in the real world where ";" in dirpaths is itself problematic.
9344 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9346 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9348 # Ok, now we have the path, separated by spaces, we can step through it
9349 # and add multilib dir if necessary.
9350 lt_tmp_lt_search_path_spec
=
9351 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9352 for lt_sys_path
in $lt_search_path_spec; do
9353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9354 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9356 test -d "$lt_sys_path" && \
9357 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9360 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9361 BEGIN {RS=" "; FS="/|\n";} {
9364 for (lt_i = NF; lt_i > 0; lt_i--) {
9365 if ($lt_i != "" && $lt_i != ".") {
9366 if ($lt_i == "..") {
9369 if (lt_count == 0) {
9370 lt_foo="/" $lt_i lt_foo;
9377 if (lt_foo != "") { lt_freq[lt_foo]++; }
9378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9380 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9382 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9385 libname_spec
='lib$name'
9393 shlibpath_overrides_runpath
=unknown
9395 dynamic_linker
="$host_os ld.so"
9396 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9397 need_lib_prefix
=unknown
9398 hardcode_into_libs
=no
9400 # when you set need_version to no, make sure it does not cause -set_version
9401 # flags to be left without arguments
9402 need_version
=unknown
9407 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9408 shlibpath_var
=LIBPATH
9410 # AIX 3 has no versioning support, so we append a major version to the name.
9411 soname_spec
='${libname}${release}${shared_ext}$major'
9418 hardcode_into_libs
=yes
9419 if test "$host_cpu" = ia64
; then
9420 # AIX 5 supports IA64
9421 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9422 shlibpath_var
=LD_LIBRARY_PATH
9424 # With GCC up to 2.95.x, collect2 would create an import file
9425 # for dependence libraries. The import file would start with
9426 # the line `#! .'. This would cause the generated library to
9427 # depend on `.', always an invalid library. This was fixed in
9428 # development snapshots of GCC prior to 3.0.
9430 aix4 | aix4.
[01] | aix4.
[01].
*)
9431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9433 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9441 # soname into executable. Probably we can add versioning support to
9442 # collect2, so additional links can be useful in future.
9443 if test "$aix_use_runtimelinking" = yes; then
9444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9445 # instead of lib<name>.a to let people know that these are not
9446 # typical AIX shared libraries.
9447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 # We preserve .a as extension for shared libraries through AIX4.2
9450 # and later when we are not doing run time linking.
9451 library_names_spec
='${libname}${release}.a $libname.a'
9452 soname_spec
='${libname}${release}${shared_ext}$major'
9454 shlibpath_var
=LIBPATH
9461 # Since July 2007 AmigaOS4 officially supports .so libraries.
9462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 library_names_spec
='$libname.ixlibrary $libname.a'
9467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9468 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9474 library_names_spec
='${libname}${shared_ext}'
9475 dynamic_linker
="$host_os ld.so"
9476 shlibpath_var
=LIBRARY_PATH
9482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec
='${libname}${release}${shared_ext}$major'
9484 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9485 shlibpath_var
=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9488 # the default ld.so.conf also contains /usr/contrib/lib and
9489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490 # libtool to hard-code these into programs
9493 cygwin
* | mingw
* | pw32
* | cegcc
*)
9494 version_type
=windows
9499 case $GCC,$host_os in
9500 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9501 library_names_spec
='$libname.dll.a'
9502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503 postinstall_cmds
='base_file=`basename \${file}`~
9504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9505 dldir=$destdir/`dirname \$dlpath`~
9506 test -d \$dldir || mkdir -p \$dldir~
9507 $install_prog $dir/$dlname \$dldir/$dlname~
9508 chmod a+x \$dldir/$dlname~
9509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9512 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9513 dlpath=$dir/\$dldll~
9515 shlibpath_overrides_runpath
=yes
9519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9520 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9521 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9524 # MinGW DLLs use traditional 'lib' prefix
9525 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9526 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9527 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9528 # It is most probably a Windows format PATH printed by
9529 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9530 # path with ; separators, and with drive letters. We can handle the
9531 # drive letters (cygwin fileutils understands them), so leave them,
9532 # especially as we might pass files found there to a mingw objdump,
9533 # which wouldn't understand a cygwinified path. Ahh.
9534 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9540 # pw32 DLLs use 'pw' prefix rather than 'lib'
9541 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9550 dynamic_linker
='Win32 ld.exe'
9551 # FIXME: first we should search . and the directory the executable is in
9555 darwin
* | rhapsody
*)
9556 dynamic_linker
="$host_os dyld"
9560 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9561 soname_spec
='${libname}${release}${major}$shared_ext'
9562 shlibpath_overrides_runpath
=yes
9563 shlibpath_var
=DYLD_LIBRARY_PATH
9564 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9566 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9567 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9575 soname_spec
='${libname}${release}${shared_ext}$major'
9576 shlibpath_var
=LD_LIBRARY_PATH
9583 freebsd
* | dragonfly
*)
9584 # DragonFly does not have aout. When/if they implement a new
9585 # versioning mechanism, adjust this.
9586 if test -x /usr
/bin
/objformat
; then
9587 objformat
=`/usr/bin/objformat`
9590 freebsd
[123]*) objformat
=aout
;;
9594 version_type
=freebsd-
$objformat
9595 case $version_type in
9597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9606 shlibpath_var
=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath
=yes
9611 freebsd3.
[01]* | freebsdelf3.
[01]*)
9612 shlibpath_overrides_runpath
=yes
9613 hardcode_into_libs
=yes
9615 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9616 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9617 shlibpath_overrides_runpath
=no
9618 hardcode_into_libs
=yes
9620 *) # from 4.6 on, and DragonFly
9621 shlibpath_overrides_runpath
=yes
9622 hardcode_into_libs
=yes
9631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9632 soname_spec
='${libname}${release}${shared_ext}$major'
9633 shlibpath_var
=LD_LIBRARY_PATH
9634 hardcode_into_libs
=yes
9637 hpux9
* | hpux10
* | hpux11
*)
9638 # Give a soname corresponding to the major version so that dld.sl refuses to
9639 # link against other versions.
9646 hardcode_into_libs
=yes
9647 dynamic_linker
="$host_os dld.so"
9648 shlibpath_var
=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 soname_spec
='${libname}${release}${shared_ext}$major'
9652 if test "X$HPUX_IA64_MODE" = X32
; then
9653 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9655 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9657 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9661 hardcode_into_libs
=yes
9662 dynamic_linker
="$host_os dld.sl"
9663 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9664 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec
='${libname}${release}${shared_ext}$major'
9667 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9668 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9672 dynamic_linker
="$host_os dld.sl"
9673 shlibpath_var
=SHLIB_PATH
9674 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec
='${libname}${release}${shared_ext}$major'
9679 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9680 postinstall_cmds
='chmod 555 $lib'
9687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688 soname_spec
='${libname}${release}${shared_ext}$major'
9689 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9690 shlibpath_var
=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath
=no
9692 hardcode_into_libs
=yes
9695 irix5
* | irix6
* | nonstopux
*)
9697 nonstopux
*) version_type
=nonstopux
;;
9699 if test "$lt_cv_prog_gnu_ld" = yes; then
9707 soname_spec
='${libname}${release}${shared_ext}$major'
9708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9710 irix5
* | nonstopux
*)
9714 case $LD in # libtool.m4 will add one of these switches to LD
9715 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9716 libsuff
= shlibsuff
= libmagic
=32-bit;;
9717 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9718 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9719 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9720 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9721 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9725 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9726 shlibpath_overrides_runpath
=no
9727 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9728 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9729 hardcode_into_libs
=yes
9732 # No shared lib support for Linux oldld, aout, or coff.
9733 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9737 # This must be Linux ELF.
9738 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec
='${libname}${release}${shared_ext}$major'
9744 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9745 shlibpath_var
=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath
=no
9747 # Some binutils ld are patched to set DT_RUNPATH
9748 save_LDFLAGS
=$LDFLAGS
9750 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9751 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9763 if ac_fn_c_try_link
"$LINENO"; then :
9764 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
9765 shlibpath_overrides_runpath
=yes
9768 rm -f core conftest.err conftest.
$ac_objext \
9769 conftest
$ac_exeext conftest.
$ac_ext
9770 LDFLAGS
=$save_LDFLAGS
9773 # This implies no fast_install, which is unacceptable.
9774 # Some rework will be needed to allow for fast_install
9775 # before this can be enabled.
9776 hardcode_into_libs
=yes
9778 # Append ld.so.conf contents to the search path
9779 if test -f /etc
/ld.so.conf
; then
9780 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9781 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9784 # We used to test for /lib/ld.so.1 and disable shared libraries on
9785 # powerpc, because MkLinux only supported shared libraries with the
9786 # GNU dynamic linker. Since this was broken with cross compilers,
9787 # most powerpc-linux boxes support dynamic linking these days and
9788 # people can always --disable-shared, the test was removed, and we
9789 # assume the GNU/Linux dynamic linker is in use.
9790 dynamic_linker
='GNU/Linux ld.so'
9797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9798 soname_spec
='${libname}${release}${shared_ext}$major'
9799 shlibpath_var
=LD_LIBRARY_PATH
9800 shlibpath_overrides_runpath
=no
9801 hardcode_into_libs
=yes
9802 dynamic_linker
='NetBSD ld.elf_so'
9809 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9811 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9812 dynamic_linker
='NetBSD (a.out) ld.so'
9814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9815 soname_spec
='${libname}${release}${shared_ext}$major'
9816 dynamic_linker
='NetBSD ld.elf_so'
9818 shlibpath_var
=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath
=yes
9820 hardcode_into_libs
=yes
9825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 shlibpath_var
=LD_LIBRARY_PATH
9827 shlibpath_overrides_runpath
=yes
9834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 soname_spec
='${libname}${release}${shared_ext}$major'
9836 shlibpath_var
=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath
=no
9838 hardcode_into_libs
=yes
9839 dynamic_linker
='ldqnx.so'
9844 sys_lib_dlsearch_path_spec
="/usr/lib"
9846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9848 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9849 *) need_version
=no
;;
9851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9852 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9853 shlibpath_var
=LD_LIBRARY_PATH
9854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9856 openbsd2.
[89] | openbsd2.
[89].
*)
9857 shlibpath_overrides_runpath
=no
9860 shlibpath_overrides_runpath
=yes
9864 shlibpath_overrides_runpath
=yes
9869 libname_spec
='$name'
9872 library_names_spec
='$libname${shared_ext} $libname.a'
9873 dynamic_linker
='OS/2 ld.exe'
9874 shlibpath_var
=LIBPATH
9877 osf3
* | osf4
* | osf5
*)
9881 soname_spec
='${libname}${release}${shared_ext}$major'
9882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 shlibpath_var
=LD_LIBRARY_PATH
9884 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9885 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec
='${libname}${release}${shared_ext}$major'
9898 shlibpath_var
=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath
=yes
9900 hardcode_into_libs
=yes
9901 # ldd complains unless libraries are executable
9902 postinstall_cmds
='chmod +x $lib'
9907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9909 shlibpath_var
=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath
=yes
9911 if test "$with_gnu_ld" = yes; then
9919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec
='${libname}${release}${shared_ext}$major'
9921 shlibpath_var
=LD_LIBRARY_PATH
9922 case $host_vendor in
9924 shlibpath_overrides_runpath
=no
9926 runpath_var
=LD_RUN_PATH
9934 shlibpath_overrides_runpath
=no
9935 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9941 if test -d /usr
/nec
;then
9943 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9944 soname_spec
='$libname${shared_ext}.$major'
9945 shlibpath_var
=LD_LIBRARY_PATH
9949 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9950 version_type
=freebsd-elf
9953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954 soname_spec
='${libname}${release}${shared_ext}$major'
9955 shlibpath_var
=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath
=yes
9957 hardcode_into_libs
=yes
9958 if test "$with_gnu_ld" = yes; then
9959 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9961 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9964 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9968 sys_lib_dlsearch_path_spec
='/usr/lib'
9972 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 shlibpath_var
=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath
=no
9979 hardcode_into_libs
=yes
9984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec
='${libname}${release}${shared_ext}$major'
9986 shlibpath_var
=LD_LIBRARY_PATH
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9994 $as_echo "$dynamic_linker" >&6; }
9995 test "$dynamic_linker" = no
&& can_build_shared
=no
9997 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9998 if test "$GCC" = yes; then
9999 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10002 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10003 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10005 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10006 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10098 if test -n "$hardcode_libdir_flag_spec" ||
10099 test -n "$runpath_var" ||
10100 test "X$hardcode_automatic" = "Xyes" ; then
10102 # We can hardcode non-existent directories.
10103 if test "$hardcode_direct" != no
&&
10104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10105 # have to relink, otherwise we might link with an installed library
10106 # when we should be linking with a yet-to-be-installed one
10107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10108 test "$hardcode_minus_L" != no
; then
10109 # Linking always hardcodes the temporary library directory.
10110 hardcode_action
=relink
10112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10113 hardcode_action
=immediate
10116 # We cannot hardcode anything, or else we can only hardcode existing
10118 hardcode_action
=unsupported
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10121 $as_echo "$hardcode_action" >&6; }
10123 if test "$hardcode_action" = relink ||
10124 test "$inherit_rpath" = yes; then
10125 # Fast installation is not supported
10126 enable_fast_install
=no
10127 elif test "$shlibpath_overrides_runpath" = yes ||
10128 test "$enable_shared" = no
; then
10129 # Fast installation is not necessary
10130 enable_fast_install
=needless
10138 if test "x$enable_dlopen" != xyes
; then
10139 enable_dlopen
=unknown
10140 enable_dlopen_self
=unknown
10141 enable_dlopen_self_static
=unknown
10148 lt_cv_dlopen
="load_add_on"
10150 lt_cv_dlopen_self
=yes
10153 mingw
* | pw32
* | cegcc
*)
10154 lt_cv_dlopen
="LoadLibrary"
10159 lt_cv_dlopen
="dlopen"
10164 # if libdl is installed we need to link against it
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10170 ac_check_lib_save_LIBS
=$LIBS
10172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10190 if ac_fn_c_try_link
"$LINENO"; then :
10191 ac_cv_lib_dl_dlopen
=yes
10193 ac_cv_lib_dl_dlopen
=no
10195 rm -f core conftest.err conftest.
$ac_objext \
10196 conftest
$ac_exeext conftest.
$ac_ext
10197 LIBS
=$ac_check_lib_save_LIBS
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10201 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10202 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10205 lt_cv_dlopen
="dyld"
10207 lt_cv_dlopen_self
=yes
10214 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10215 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10216 lt_cv_dlopen
="shl_load"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10223 ac_check_lib_save_LIBS
=$LIBS
10225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10238 return shl_load ();
10243 if ac_fn_c_try_link
"$LINENO"; then :
10244 ac_cv_lib_dld_shl_load
=yes
10246 ac_cv_lib_dld_shl_load
=no
10248 rm -f core conftest.err conftest.
$ac_objext \
10249 conftest
$ac_exeext conftest.
$ac_ext
10250 LIBS
=$ac_check_lib_save_LIBS
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10254 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10255 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10257 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10258 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10259 lt_cv_dlopen
="dlopen"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10266 ac_check_lib_save_LIBS
=$LIBS
10268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10286 if ac_fn_c_try_link
"$LINENO"; then :
10287 ac_cv_lib_dl_dlopen
=yes
10289 ac_cv_lib_dl_dlopen
=no
10291 rm -f core conftest.err conftest.
$ac_objext \
10292 conftest
$ac_exeext conftest.
$ac_ext
10293 LIBS
=$ac_check_lib_save_LIBS
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10297 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10298 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10302 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10305 ac_check_lib_save_LIBS
=$LIBS
10306 LIBS
="-lsvld $LIBS"
10307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10325 if ac_fn_c_try_link
"$LINENO"; then :
10326 ac_cv_lib_svld_dlopen
=yes
10328 ac_cv_lib_svld_dlopen
=no
10330 rm -f core conftest.err conftest.
$ac_objext \
10331 conftest
$ac_exeext conftest.
$ac_ext
10332 LIBS
=$ac_check_lib_save_LIBS
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10336 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
10337 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10344 ac_check_lib_save_LIBS
=$LIBS
10346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10359 return dld_link ();
10364 if ac_fn_c_try_link
"$LINENO"; then :
10365 ac_cv_lib_dld_dld_link
=yes
10367 ac_cv_lib_dld_dld_link
=no
10369 rm -f core conftest.err conftest.
$ac_objext \
10370 conftest
$ac_exeext conftest.
$ac_ext
10371 LIBS
=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10375 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
10376 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10397 if test "x$lt_cv_dlopen" != xno
; then
10403 case $lt_cv_dlopen in
10405 save_CPPFLAGS
="$CPPFLAGS"
10406 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10408 save_LDFLAGS
="$LDFLAGS"
10409 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10412 LIBS
="$lt_cv_dlopen_libs $LIBS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10416 if test "${lt_cv_dlopen_self+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10419 if test "$cross_compiling" = yes; then :
10420 lt_cv_dlopen_self
=cross
10422 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10423 lt_status
=$lt_dlunknown
10424 cat > conftest.
$ac_ext <<_LT_EOF
10425 #line 10425 "configure"
10426 #include "confdefs.h"
10435 # define LT_DLGLOBAL RTLD_GLOBAL
10438 # define LT_DLGLOBAL DL_GLOBAL
10440 # define LT_DLGLOBAL 0
10444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10445 find out it does not work in some platform. */
10446 #ifndef LT_DLLAZY_OR_NOW
10448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10451 # define LT_DLLAZY_OR_NOW DL_LAZY
10454 # define LT_DLLAZY_OR_NOW RTLD_NOW
10457 # define LT_DLLAZY_OR_NOW DL_NOW
10459 # define LT_DLLAZY_OR_NOW 0
10466 void fnord() { int i=42;}
10469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10470 int status = $lt_dlunknown;
10474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10476 /* dlclose (self); */
10484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10485 (eval $ac_link) 2>&5
10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10489 (.
/conftest
; exit; ) >&5 2>/dev
/null
10491 case x
$lt_status in
10492 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10493 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10494 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10497 # compilation failed
10498 lt_cv_dlopen_self
=no
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10506 $as_echo "$lt_cv_dlopen_self" >&6; }
10508 if test "x$lt_cv_dlopen_self" = xyes
; then
10509 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10511 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10512 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10515 if test "$cross_compiling" = yes; then :
10516 lt_cv_dlopen_self_static
=cross
10518 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10519 lt_status
=$lt_dlunknown
10520 cat > conftest.
$ac_ext <<_LT_EOF
10521 #line 10521 "configure"
10522 #include "confdefs.h"
10531 # define LT_DLGLOBAL RTLD_GLOBAL
10534 # define LT_DLGLOBAL DL_GLOBAL
10536 # define LT_DLGLOBAL 0
10540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10541 find out it does not work in some platform. */
10542 #ifndef LT_DLLAZY_OR_NOW
10544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10547 # define LT_DLLAZY_OR_NOW DL_LAZY
10550 # define LT_DLLAZY_OR_NOW RTLD_NOW
10553 # define LT_DLLAZY_OR_NOW DL_NOW
10555 # define LT_DLLAZY_OR_NOW 0
10562 void fnord() { int i=42;}
10565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10566 int status = $lt_dlunknown;
10570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10572 /* dlclose (self); */
10580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10581 (eval $ac_link) 2>&5
10583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10584 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10585 (.
/conftest
; exit; ) >&5 2>/dev
/null
10587 case x
$lt_status in
10588 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10589 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10590 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10593 # compilation failed
10594 lt_cv_dlopen_self_static
=no
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10602 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10605 CPPFLAGS
="$save_CPPFLAGS"
10606 LDFLAGS
="$save_LDFLAGS"
10611 case $lt_cv_dlopen_self in
10612 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10613 *) enable_dlopen_self
=unknown
;;
10616 case $lt_cv_dlopen_self_static in
10617 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10618 *) enable_dlopen_self_static
=unknown
;;
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10642 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10643 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10644 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646 $as_echo "yes" >&6; }
10648 # FIXME - insert some real tests, host_os isn't really good enough
10651 if test -n "$STRIP" ; then
10652 striplib
="$STRIP -x"
10653 old_striplib
="$STRIP -S"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655 $as_echo "yes" >&6; }
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10679 # Report which library types will actually be built
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10683 $as_echo "$can_build_shared" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10686 $as_echo_n "checking whether to build shared libraries... " >&6; }
10687 test "$can_build_shared" = "no" && enable_shared
=no
10689 # On AIX, shared libraries and static libraries use the same namespace, and
10690 # are all built from PIC.
10693 test "$enable_shared" = yes && enable_static
=no
10694 if test -n "$RANLIB"; then
10695 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
10696 postinstall_cmds
='$RANLIB $lib'
10701 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
10702 test "$enable_shared" = yes && enable_static
=no
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10707 $as_echo "$enable_shared" >&6; }
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10710 $as_echo_n "checking whether to build static libraries... " >&6; }
10711 # Make sure either enable_shared or enable_static is yes.
10712 test "$enable_shared" = yes || enable_static
=yes
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10714 $as_echo "$enable_static" >&6; }
10721 ac_cpp
='$CPP $CPPFLAGS'
10722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10740 ac_config_commands
="$ac_config_commands libtool"
10745 # Only expand once:
10748 # By default we simply use the C compiler to build assembly code.
10750 test "${CCAS+set}" = set || CCAS
=$CC
10751 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
10755 depcc
="$CCAS" am_compiler_list
=
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10758 $as_echo_n "checking dependency style of $depcc... " >&6; }
10759 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10763 # We make a subdir and do the tests there. Otherwise we can end up
10764 # making bogus files that we don't know about and never remove. For
10765 # instance it was reported that on HP-UX the gcc test will end up
10766 # making a dummy file named `D' -- because `-MD' means `put the output
10769 # Copy depcomp to subdir because otherwise we won't find it if we're
10770 # using a relative directory.
10771 cp "$am_depcomp" conftest.dir
10773 # We will build objects and dependencies in a subdirectory because
10774 # it helps to detect inapplicable dependency modes. For instance
10775 # both Tru64's cc and ICC support -MD to output dependencies as a
10776 # side effect of compilation, but ICC will put the dependencies in
10777 # the current directory while Tru64 will put them in the object
10781 am_cv_CCAS_dependencies_compiler_type
=none
10782 if test "$am_compiler_list" = ""; then
10783 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10785 am__universal
=false
10788 for depmode
in $am_compiler_list; do
10789 # Setup a source with many dependencies, because some compilers
10790 # like to wrap large dependency lists on column 80 (with \), and
10791 # we should not choose a depcomp mode which is confused by this.
10793 # We need to recreate these files for each test, as the compiler may
10794 # overwrite some of them when testing with obscure command lines.
10795 # This happens at least with the AIX C compiler.
10797 for i
in 1 2 3 4 5 6; do
10798 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10800 # Solaris 8's {/usr,}/bin/sh.
10801 touch sub
/conftst
$i.h
10803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10806 # mode. It turns out that the SunPro C++ compiler does not properly
10807 # handle `-M -o', and we need to detect this. Also, some Intel
10808 # versions had trouble with output in subdirs
10809 am__obj
=sub
/conftest.
${OBJEXT-o}
10810 am__minus_obj
="-o $am__obj"
10813 # This depmode causes a compiler race in universal mode.
10814 test "$am__universal" = false ||
continue
10817 # after this tag, mechanisms are not by side-effect, so they'll
10818 # only be used when explicitly requested
10819 if test "x$enable_dependency_tracking" = xyes
; then
10825 msvisualcpp | msvcmsys
)
10826 # This compiler won't grok `-c -o', but also, the minuso test has
10827 # not run yet. These depmodes are late enough in the game, and
10828 # so weak that their functioning should not be impacted.
10829 am__obj
=conftest.
${OBJEXT-o}
10834 if depmode
=$depmode \
10835 source=sub
/conftest.c object
=$am__obj \
10836 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
10837 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
10838 >/dev
/null
2>conftest.err
&&
10839 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10840 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10841 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
10842 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
10843 # icc doesn't choke on unknown options, it will just issue warnings
10844 # or remarks (even with -Werror). So we grep stderr for any message
10845 # that says an option was ignored or not supported.
10846 # When given -MP, icc 7.0 and 7.1 complain thusly:
10847 # icc: Command line warning: ignoring option '-M'; no argument required
10848 # The diagnosis changed in icc 8.0:
10849 # icc: Command line remark: option '-MP' not supported
10850 if (grep 'ignoring option' conftest.err ||
10851 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10852 am_cv_CCAS_dependencies_compiler_type
=$depmode
10859 rm -rf conftest.dir
10861 am_cv_CCAS_dependencies_compiler_type
=none
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10866 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10867 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
10870 test "x$enable_dependency_tracking" != xno \
10871 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
10872 am__fastdepCCAS_TRUE
=
10873 am__fastdepCCAS_FALSE
='#'
10875 am__fastdepCCAS_TRUE
='#'
10876 am__fastdepCCAS_FALSE
=
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
10883 $as_echo_n "checking zfs author... " >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
10885 $as_echo "$ZFS_META_AUTHOR" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
10888 $as_echo_n "checking zfs license... " >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
10890 $as_echo "$ZFS_META_LICENSE" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10895 $as_echo_n "checking linux distribution... " >&6; }
10896 if test -f /etc
/toss-release
; then
10898 elif test -f /etc
/fedora-release
; then
10900 elif test -f /etc
/redhat-release
; then
10902 elif test -f /etc
/gentoo-release
; then
10904 elif test -f /etc
/arch-release
; then
10906 elif test -f /etc
/SuSE-release
; then
10908 elif test -f /etc
/slackware-version
; then
10910 elif test -f /etc
/lunar.release
; then
10912 elif test -f /etc
/lsb-release
; then
10914 elif test -f /etc
/debian_version
; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10920 $as_echo "$VENDOR" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
10924 $as_echo_n "checking default package type... " >&6; }
10926 toss
) DEFAULT_PACKAGE
=rpm
;;
10927 redhat
) DEFAULT_PACKAGE
=rpm
;;
10928 fedora
) DEFAULT_PACKAGE
=rpm
;;
10929 gentoo
) DEFAULT_PACKAGE
=tgz
;;
10930 arch
) DEFAULT_PACKAGE
=tgz
;;
10931 sles
) DEFAULT_PACKAGE
=rpm
;;
10932 slackware
) DEFAULT_PACKAGE
=tgz
;;
10933 lunar
) DEFAULT_PACKAGE
=tgz
;;
10934 ubuntu
) DEFAULT_PACKAGE
=deb
;;
10935 debian
) DEFAULT_PACKAGE
=deb
;;
10936 *) DEFAULT_PACKAGE
=rpm
;;
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
10940 $as_echo "$DEFAULT_PACKAGE" >&6; }
10943 DEFAULT_INIT_DIR
=$sysconfdir/init.d
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
10945 $as_echo_n "checking default init directory... " >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
10947 $as_echo "$DEFAULT_INIT_DIR" >&6; }
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
10951 $as_echo_n "checking default init script type... " >&6; }
10953 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
10954 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
10955 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
10956 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
10957 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
10958 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
10959 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
10960 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
10961 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
10962 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
10963 *) DEFAULT_INIT_SCRIPT
=lsb
;;
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
10967 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
10975 $as_echo_n "checking whether $RPM is available... " >&6; }
10976 if tmp
=$
($RPM --version 2>/dev
/null
); then :
10978 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
10981 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
10987 $as_echo "$HAVE_RPM" >&6; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
10992 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
10993 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
10995 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10998 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11004 $as_echo "$HAVE_RPMBUILD" >&6; }
11008 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11010 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)"'
11013 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11018 RPM_SPEC_DIR
="rpm/generic"
11020 # Check whether --with-spec was given.
11021 if test "${with_spec+set}" = set; then :
11022 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11027 $as_echo_n "checking whether spec files are available... " >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11029 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11051 DPKGBUILD
=dpkg-buildpackage
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11054 $as_echo_n "checking whether $DPKG is available... " >&6; }
11055 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
11057 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11060 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11066 $as_echo "$HAVE_DPKG" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11071 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11072 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
11074 DPKGBUILD_VERSION
=$
(echo $tmp | \
11075 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11078 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11084 $as_echo "$HAVE_DPKGBUILD" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
11100 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11101 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
11103 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11106 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
11112 $as_echo "$HAVE_ALIEN" >&6; }
11122 TARGET_ASM_DIR
=asm-generic
11127 # Check whether --with-config was given.
11128 if test "${with_config+set}" = set; then :
11129 withval
=$with_config; ZFS_CONFIG
="$withval"
11132 # Check whether --enable-linux-builtin was given.
11133 if test "${enable_linux_builtin+set}" = set; then :
11134 enableval
=$enable_linux_builtin;
11136 enable_linux_builtin
=no
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
11141 $as_echo_n "checking zfs config... " >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
11143 $as_echo "$ZFS_CONFIG" >&6; };
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
11149 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11151 saved_flags
="$CFLAGS"
11152 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11154 if test "$cross_compiling" = yes; then :
11155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11157 as_fn_error $?
"cannot run test program while cross compiling
11158 See \`config.log' for more details" "$LINENO" 5 ; }
11160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11171 if ac_fn_c_try_run
"$LINENO"; then :
11173 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11179 NO_UNUSED_BUT_SET_VARIABLE
=
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11185 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11189 CFLAGS
="$saved_flags"
11194 case "$ZFS_CONFIG" in
11198 # Check whether --with-linux was given.
11199 if test "${with_linux+set}" = set; then :
11200 withval
=$with_linux; kernelsrc
="$withval"
11205 # Check whether --with-linux-obj was given.
11206 if test "${with_linux_obj+set}" = set; then :
11207 withval
=$with_linux_obj; kernelbuild
="$withval"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
11212 $as_echo_n "checking kernel source directory... " >&6; }
11213 if test -z "$kernelsrc"; then :
11215 if test -e "/lib/modules/$(uname -r)/source"; then :
11217 headersdir
="/lib/modules/$(uname -r)/source"
11218 sourcelink
=$
(readlink
-f "$headersdir")
11220 elif test -e "/lib/modules/$(uname -r)/build"; then :
11222 headersdir
="/lib/modules/$(uname -r)/build"
11223 sourcelink
=$
(readlink
-f "$headersdir")
11227 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11229 2>/dev
/null |
grep -v obj |
tail -1)
11233 if test -n "$sourcelink" && test -e ${sourcelink}; then :
11235 kernelsrc
=`readlink -f ${sourcelink}`
11239 kernelsrc
="Not found"
11245 if test "$kernelsrc" = "NONE"; then :
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
11254 $as_echo "$kernelsrc" >&6; }
11255 if test ! -d "$kernelsrc"; then :
11258 *** Please make sure the kernel devel package for your distribution
11259 *** is installed and then try again. If that fails, you can specify the
11260 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
11265 $as_echo_n "checking kernel build directory... " >&6; }
11266 if test -z "$kernelbuild"; then :
11268 if test -e "/lib/modules/$(uname -r)/build"; then :
11270 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11272 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
11274 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11276 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
11278 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11280 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
11282 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11286 kernelbuild
=${kernelsrc}
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
11292 $as_echo "$kernelbuild" >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
11295 $as_echo_n "checking kernel source version... " >&6; }
11296 utsrelease1
=$kernelbuild/include
/linux
/version.h
11297 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11298 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11299 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
11301 utsrelease
=linux
/version.h
11303 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
11305 utsrelease
=linux
/utsrelease.h
11307 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
11309 utsrelease
=generated
/utsrelease.h
11313 if test "$utsrelease"; then :
11315 kernsrcver
=`(echo "#include <$utsrelease>";
11316 echo "kernsrcver=UTS_RELEASE") |
11317 cpp -I $kernelbuild/include |
11318 grep "^kernsrcver=" | cut -d \" -f 2`
11320 if test -z "$kernsrcver"; then :
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11323 $as_echo "Not found" >&6; }
11324 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11331 $as_echo "Not found" >&6; }
11332 if test "x$enable_linux_builtin" != xyes
; then
11333 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11336 *** Cannot find UTS_RELEASE definition.
11337 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11343 $as_echo "$kernsrcver" >&6; }
11346 LINUX_OBJ
=${kernelbuild}
11347 LINUX_VERSION
=${kernsrcver}
11354 modpost
=$LINUX/scripts
/Makefile.modpost
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11356 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11357 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
11359 if grep -q Modules.symvers
$modpost; then :
11361 LINUX_SYMBOLS
=Modules.symvers
11365 LINUX_SYMBOLS
=Module.symvers
11369 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
11372 *** Please make sure the kernel devel package for your distribution
11373 *** is installed. If you are building with a custom kernel, make sure the
11374 *** kernel is configured, built, and the '--with-linux=PATH' configure
11375 *** option refers to the location of the kernel source." "$LINENO" 5
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11385 $as_echo "$LINUX_SYMBOLS" >&6; }
11391 # Check whether --with-spl was given.
11392 if test "${with_spl+set}" = set; then :
11393 withval
=$with_spl; splsrc
="$withval"
11398 # Check whether --with-spl-obj was given.
11399 if test "${with_spl_obj+set}" = set; then :
11400 withval
=$with_spl_obj; splbuild
="$withval"
11405 # Check whether --with-spl-timeout was given.
11406 if test "${with_spl_timeout+set}" = set; then :
11407 withval
=$with_spl_timeout; timeout
="$withval"
11413 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
11414 splsrc1
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
11415 splsrc2
="/usr/src/spl-${VERSION}"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
11420 $as_echo_n "checking spl source directory... " >&6; }
11421 if test -z "${splsrc}"; then :
11423 if test -e "${splsrc0}/spl.release.in"; then :
11427 elif test -e "${splsrc1}/spl.release.in"; then :
11431 elif test -e "${splsrc2}/spl.release.in"; then :
11435 elif test -e "${splsrc3}/spl.release.in"; then :
11437 splsrc
=$
(readlink
-f "${splsrc3}")
11439 elif test -e "${splsrc4}/spl.release.in" ; then :
11451 if test "$splsrc" = "NONE"; then :
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
11461 $as_echo "$splsrc" >&6; }
11462 if test ! -e "$splsrc/spl.release.in"; then :
11465 *** Please make sure the kmod spl devel package for your distribution
11466 *** is installed then try again. If that fails you can specify the
11467 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
11472 $as_echo_n "checking spl build directory... " >&6; }
11474 if test -z "$splbuild"; then :
11476 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
11478 splbuild
="${splsrc}/${LINUX_VERSION}"
11480 elif test -e "${splsrc}/spl_config.h" ; then :
11482 splbuild
="${splsrc}"
11486 splbuild
="Not found"
11491 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
11498 timeout
=$
((timeout-1
))
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
11504 $as_echo "$splbuild" >&6; }
11505 if ! test -e "$splbuild/spl_config.h"; then :
11508 *** Please make sure the kmod spl devel <kernel> package for your
11509 *** distribution is installed then try again. If that fails you
11510 *** can specify the location of the spl objects with the
11511 *** '--with-spl-obj=PATH' option." "$LINENO" 5
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
11516 $as_echo_n "checking spl source version... " >&6; }
11517 if test -r $splbuild/spl_config.h
&&
11518 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
11521 splsrcver
=`(echo "#include <spl_config.h>";
11522 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
11524 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
11528 if test -z "$splsrcver"; then :
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11531 $as_echo "Not found" >&6; }
11533 *** Cannot determine the version of the spl source.
11534 *** Please prepare the spl source before running this script" "$LINENO" 5
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
11539 $as_echo "$splsrcver" >&6; }
11542 SPL_OBJ
=${splbuild}
11543 SPL_VERSION
=${splsrcver}
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
11550 $as_echo_n "checking spl file name for module symbols... " >&6; }
11554 if test -r $SPL_OBJ/Module.symvers
; then :
11556 SPL_SYMBOLS
=Module.symvers
11558 elif test -r $SPL_OBJ/Modules.symvers
; then :
11560 SPL_SYMBOLS
=Modules.symvers
11562 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
11564 SPL_SYMBOLS
=Module.symvers
11566 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
11568 SPL_SYMBOLS
=Modules.symvers
11572 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
11579 timeout
=$
((timeout-1
))
11584 if test "$SPL_SYMBOLS" = NONE
; then :
11586 SPL_SYMBOLS
=$LINUX_SYMBOLS
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
11591 $as_echo "$SPL_SYMBOLS" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11595 $as_echo_n "checking whether modules can be built... " >&6; }
11598 cat confdefs.h
- <<_ACEOF >conftest.c
11612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11613 echo "obj-m := conftest.o" >build
/Makefile
11615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11616 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11618 (eval $ac_try) 2>&5
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11623 (eval $ac_try) 2>&5
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; }; }; then :
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11629 $as_echo "yes" >&6; }
11632 $as_echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.
$ac_ext >&5
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 if test "x$enable_linux_builtin" != xyes
; then
11638 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
11641 *** Unable to build an empty module.
11642 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11654 if test "$ZFS_META_LICENSE" = GPL
; then :
11657 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
11665 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
11668 cat confdefs.h
- <<_ACEOF >conftest.c
11671 #include <linux/module.h>
11677 #ifndef CONFIG_DEBUG_LOCK_ALLOC
11678 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
11688 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11689 echo "obj-m := conftest.o" >build
/Makefile
11691 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11692 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11694 (eval $ac_try) 2>&5
11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11699 (eval $ac_try) 2>&5
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; }; }; then :
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11705 $as_echo "yes" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
11708 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
11709 tmp_flags
="$EXTRA_KCFLAGS"
11712 cat confdefs.h
- <<_ACEOF >conftest.c
11715 #include <linux/module.h>
11716 #include <linux/mutex.h>
11718 MODULE_LICENSE("$ZFS_META_LICENSE");
11728 mutex_unlock(&lock);
11737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11738 echo "obj-m := conftest.o" >build
/Makefile
11740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11741 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11743 (eval $ac_try) 2>&5
11745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11748 (eval $ac_try) 2>&5
11750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11751 test $ac_status = 0; }; }; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11757 $as_echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.
$ac_ext >&5
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11763 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
11764 *** with the CDDL license and will prevent the module linking stage
11765 *** from succeeding. You must rebuild your kernel without this
11766 *** option enabled." "$LINENO" 5
11774 EXTRA_KCFLAGS
="$tmp_flags"
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.
$ac_ext >&5
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
11796 $as_echo_n "checking block device operation prototypes... " >&6; }
11797 tmp_flags
="$EXTRA_KCFLAGS"
11798 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
11801 cat confdefs.h
- <<_ACEOF >conftest.c
11804 #include <linux/blkdev.h>
11806 int blk_open(struct block_device *bdev, fmode_t mode)
11808 int blk_ioctl(struct block_device *bdev, fmode_t mode,
11809 unsigned x, unsigned long y) { return 0; }
11810 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
11811 unsigned x, unsigned long y) { return 0; }
11813 static const struct block_device_operations
11814 bops __attribute__ ((unused)) = {
11817 .ioctl = blk_ioctl,
11818 .compat_ioctl = blk_compat_ioctl,
11833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11834 echo "obj-m := conftest.o" >build
/Makefile
11836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11837 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11839 (eval $ac_try) 2>&5
11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11844 (eval $ac_try) 2>&5
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; }; }; then :
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
11850 $as_echo "struct block_device" >&6; }
11852 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.
$ac_ext >&5
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
11860 $as_echo "struct inode" >&6; }
11868 EXTRA_KCFLAGS
="$tmp_flags"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
11872 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
11873 tmp_flags
="$EXTRA_KCFLAGS"
11874 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
11877 cat confdefs.h
- <<_ACEOF >conftest.c
11880 #include <linux/blkdev.h>
11882 void blk_release(struct gendisk *g, fmode_t mode) { return; }
11884 static const struct block_device_operations
11885 bops __attribute__ ((unused)) = {
11887 .release = blk_release,
11889 .compat_ioctl = NULL,
11904 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11905 echo "obj-m := conftest.o" >build
/Makefile
11907 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11908 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11910 (eval $ac_try) 2>&5
11912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11913 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11915 (eval $ac_try) 2>&5
11917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918 test $ac_status = 0; }; }; then :
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
11921 $as_echo "void" >&6; }
11923 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
11927 $as_echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.
$ac_ext >&5
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
11931 $as_echo "int" >&6; }
11939 EXTRA_KCFLAGS
="$tmp_flags"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
11942 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
11945 cat confdefs.h
- <<_ACEOF >conftest.c
11948 #include <linux/types.h>
11954 fmode_t *ptr __attribute__ ((unused));
11963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11964 echo "obj-m := conftest.o" >build
/Makefile
11966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11967 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11969 (eval $ac_try) 2>&5
11971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11974 (eval $ac_try) 2>&5
11976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11977 test $ac_status = 0; }; }; then :
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11982 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
11986 $as_echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.
$ac_ext >&5
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
12001 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12004 cat confdefs.h
- <<_ACEOF >conftest.c
12007 #include <linux/kobject.h>
12013 int val __attribute__ ((unused));
12014 val = KOBJ_NAME_LEN;
12023 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12024 echo "obj-m := conftest.o" >build
/Makefile
12026 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12027 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12029 (eval $ac_try) 2>&5
12031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12034 (eval $ac_try) 2>&5
12036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037 test $ac_status = 0; }; }; then :
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12042 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
12046 $as_echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.
$ac_ext >&5
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
12061 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12064 cat confdefs.h
- <<_ACEOF >conftest.c
12067 #include <linux/fs.h>
12073 struct block_device *bdev = NULL;
12074 (void) blkdev_get(bdev, 0, NULL);
12083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12084 echo "obj-m := conftest.o" >build
/Makefile
12086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12087 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12089 (eval $ac_try) 2>&5
12091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12094 (eval $ac_try) 2>&5
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; }; then :
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; }
12102 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
12106 $as_echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.
$ac_ext >&5
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
12120 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
12124 cat confdefs.h
- <<_ACEOF >conftest.c
12127 #include <linux/fs.h>
12133 blkdev_get_by_path(NULL, 0, NULL);
12142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12143 echo "obj-m := conftest.o" >build
/Makefile
12145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12146 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12148 (eval $ac_try) 2>&5
12150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12153 (eval $ac_try) 2>&5
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; }; then :
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12168 if test $rc -ne 0; then :
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12174 if test "x$enable_linux_builtin" != xyes
; then
12176 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12177 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12179 if test $rc -ne 0; then
12181 for file in fs
/block_dev.c
; do
12182 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
12183 "$LINUX/$file" 2>/dev
/null
12185 if test $rc -eq 0; then
12190 if test $export -eq 0; then :
12200 if test $rc -ne 0; then :
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208 $as_echo "yes" >&6; }
12210 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
12218 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
12222 cat confdefs.h
- <<_ACEOF >conftest.c
12225 #include <linux/fs.h>
12231 open_bdev_exclusive(NULL, 0, NULL);
12240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12241 echo "obj-m := conftest.o" >build
/Makefile
12243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12244 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12246 (eval $ac_try) 2>&5
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12251 (eval $ac_try) 2>&5
12253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254 test $ac_status = 0; }; }; then :
12257 $as_echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.
$ac_ext >&5
12266 if test $rc -ne 0; then :
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12272 if test "x$enable_linux_builtin" != xyes
; then
12274 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12275 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12277 if test $rc -ne 0; then
12279 for file in fs
/block_dev.c
; do
12280 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
12281 "$LINUX/$file" 2>/dev
/null
12283 if test $rc -eq 0; then
12288 if test $export -eq 0; then :
12298 if test $rc -ne 0; then :
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306 $as_echo "yes" >&6; }
12308 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
12316 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
12320 cat confdefs.h
- <<_ACEOF >conftest.c
12323 #include <linux/fs.h>
12338 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12339 echo "obj-m := conftest.o" >build
/Makefile
12341 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12342 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12344 (eval $ac_try) 2>&5
12346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12347 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12349 (eval $ac_try) 2>&5
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; }; }; then :
12355 $as_echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.
$ac_ext >&5
12364 if test $rc -ne 0; then :
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12370 if test "x$enable_linux_builtin" != xyes
; then
12372 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
12373 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12375 if test $rc -ne 0; then
12377 for file in fs
/block_dev.c
; do
12378 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
12379 "$LINUX/$file" 2>/dev
/null
12381 if test $rc -eq 0; then
12386 if test $export -eq 0; then :
12396 if test $rc -ne 0; then :
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404 $as_echo "yes" >&6; }
12406 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
12415 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12418 cat confdefs.h
- <<_ACEOF >conftest.c
12421 #include <linux/buffer_head.h>
12427 struct block_device *bdev = NULL;
12428 invalidate_bdev(bdev);
12437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12438 echo "obj-m := conftest.o" >build
/Makefile
12440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12441 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12443 (eval $ac_try) 2>&5
12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12448 (eval $ac_try) 2>&5
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; }; }; then :
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454 $as_echo "yes" >&6; }
12456 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
12460 $as_echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.
$ac_ext >&5
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
12475 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12476 tmp_flags
="$EXTRA_KCFLAGS"
12477 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12480 cat confdefs.h
- <<_ACEOF >conftest.c
12483 #include <linux/blkdev.h>
12489 struct block_device *bdev = NULL;
12490 bdev_logical_block_size(bdev);
12499 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12500 echo "obj-m := conftest.o" >build
/Makefile
12502 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12503 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12505 (eval $ac_try) 2>&5
12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12510 (eval $ac_try) 2>&5
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; }; }; then :
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516 $as_echo "yes" >&6; }
12518 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
12522 $as_echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.
$ac_ext >&5
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12534 EXTRA_KCFLAGS
="$tmp_flags"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
12538 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
12539 tmp_flags
="$EXTRA_KCFLAGS"
12540 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12543 cat confdefs.h
- <<_ACEOF >conftest.c
12546 #include <linux/blkdev.h>
12552 struct block_device *bdev = NULL;
12553 bdev_physical_block_size(bdev);
12562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12563 echo "obj-m := conftest.o" >build
/Makefile
12565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12566 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12568 (eval $ac_try) 2>&5
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12573 (eval $ac_try) 2>&5
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }; }; then :
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579 $as_echo "yes" >&6; }
12581 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
12585 $as_echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.
$ac_ext >&5
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12597 EXTRA_KCFLAGS
="$tmp_flags"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
12601 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12604 cat confdefs.h
- <<_ACEOF >conftest.c
12607 #include <linux/bio.h>
12613 int flags __attribute__ ((unused));
12614 flags = (1 << BIO_RW_FAILFAST);
12623 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12624 echo "obj-m := conftest.o" >build
/Makefile
12626 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12627 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12629 (eval $ac_try) 2>&5
12631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12634 (eval $ac_try) 2>&5
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; }; }; then :
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640 $as_echo "yes" >&6; }
12642 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
12646 $as_echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
12661 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12664 cat confdefs.h
- <<_ACEOF >conftest.c
12667 #include <linux/bio.h>
12673 int flags __attribute__ ((unused));
12674 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12675 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12676 (1 << BIO_RW_FAILFAST_DRIVER));
12685 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12686 echo "obj-m := conftest.o" >build
/Makefile
12688 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12689 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12691 (eval $ac_try) 2>&5
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12696 (eval $ac_try) 2>&5
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; }; then :
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 $as_echo "yes" >&6; }
12704 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
12708 $as_echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.
$ac_ext >&5
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
12723 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12726 cat confdefs.h
- <<_ACEOF >conftest.c
12729 #include <linux/bio.h>
12735 int flags __attribute__ ((unused));
12736 flags = REQ_FAILFAST_MASK;
12745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12746 echo "obj-m := conftest.o" >build
/Makefile
12748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12749 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12751 (eval $ac_try) 2>&5
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12756 (eval $ac_try) 2>&5
12758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759 test $ac_status = 0; }; }; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12764 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
12768 $as_echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.
$ac_ext >&5
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
12783 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12786 cat confdefs.h
- <<_ACEOF >conftest.c
12789 #include <linux/bio.h>
12791 void wanted_end_io(struct bio *bio, int x) { return; }
12793 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
12807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12808 echo "obj-m := conftest.o" >build
/Makefile
12810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12811 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12813 (eval $ac_try) 2>&5
12815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12818 (eval $ac_try) 2>&5
12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }; }; then :
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12826 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
12830 $as_echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.
$ac_ext >&5
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
12845 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
12848 cat confdefs.h
- <<_ACEOF >conftest.c
12851 #include <linux/bio.h>
12857 int flags __attribute__ ((unused));
12858 flags = BIO_RW_SYNC;
12867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12868 echo "obj-m := conftest.o" >build
/Makefile
12870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12871 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12873 (eval $ac_try) 2>&5
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12878 (eval $ac_try) 2>&5
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; }; }; then :
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12884 $as_echo "yes" >&6; }
12886 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
12890 $as_echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.
$ac_ext >&5
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
12905 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12908 cat confdefs.h
- <<_ACEOF >conftest.c
12911 #include <linux/bio.h>
12917 int flags __attribute__ ((unused));
12918 flags = BIO_RW_SYNCIO;
12927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12928 echo "obj-m := conftest.o" >build
/Makefile
12930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12931 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12933 (eval $ac_try) 2>&5
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12938 (eval $ac_try) 2>&5
12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941 test $ac_status = 0; }; }; then :
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944 $as_echo "yes" >&6; }
12946 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
12950 $as_echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.
$ac_ext >&5
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
12965 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
12968 cat confdefs.h
- <<_ACEOF >conftest.c
12971 #include <linux/bio.h>
12977 int flags __attribute__ ((unused));
12987 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12988 echo "obj-m := conftest.o" >build
/Makefile
12990 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12991 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12993 (eval $ac_try) 2>&5
12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12998 (eval $ac_try) 2>&5
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; }; }; then :
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13004 $as_echo "yes" >&6; }
13006 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
13010 $as_echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.
$ac_ext >&5
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
13025 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13026 tmp_flags
="$EXTRA_KCFLAGS"
13027 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13030 cat confdefs.h
- <<_ACEOF >conftest.c
13033 #include <linux/blkdev.h>
13039 struct request *req = NULL;
13040 (void) blk_end_request(req, 0, 0);
13049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13050 echo "obj-m := conftest.o" >build
/Makefile
13052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13053 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13055 (eval $ac_try) 2>&5
13057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13060 (eval $ac_try) 2>&5
13062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13063 test $ac_status = 0; }; }; then :
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13068 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
13072 $as_echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.
$ac_ext >&5
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
13086 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13089 cat confdefs.h
- <<_ACEOF >conftest.c
13092 #include <linux/module.h>
13093 #include <linux/blkdev.h>
13095 MODULE_LICENSE("CDDL");
13101 struct request *req = NULL;
13102 (void) blk_end_request(req, 0, 0);
13111 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13112 echo "obj-m := conftest.o" >build
/Makefile
13114 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13115 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13117 (eval $ac_try) 2>&5
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13122 (eval $ac_try) 2>&5
13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13125 test $ac_status = 0; }; }; then :
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13131 $as_echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.
$ac_ext >&5
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 $as_echo "yes" >&6; }
13137 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
13146 EXTRA_KCFLAGS
="$tmp_flags"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
13150 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13151 tmp_flags
="$EXTRA_KCFLAGS"
13152 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13155 cat confdefs.h
- <<_ACEOF >conftest.c
13158 #include <linux/blkdev.h>
13164 struct request_queue *q = NULL;
13165 (void) blk_queue_flush(q, REQ_FLUSH);
13174 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13175 echo "obj-m := conftest.o" >build
/Makefile
13177 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13178 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13180 (eval $ac_try) 2>&5
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13185 (eval $ac_try) 2>&5
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; }; then :
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13191 $as_echo "yes" >&6; }
13193 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
13197 $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.
$ac_ext >&5
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
13211 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13214 cat confdefs.h
- <<_ACEOF >conftest.c
13217 #include <linux/module.h>
13218 #include <linux/blkdev.h>
13220 MODULE_LICENSE("CDDL");
13226 struct request_queue *q = NULL;
13227 (void) blk_queue_flush(q, REQ_FLUSH);
13236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13237 echo "obj-m := conftest.o" >build
/Makefile
13239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13240 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13242 (eval $ac_try) 2>&5
13244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13247 (eval $ac_try) 2>&5
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; }; then :
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13256 $as_echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.
$ac_ext >&5
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13260 $as_echo "yes" >&6; }
13262 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
13271 EXTRA_KCFLAGS
="$tmp_flags"
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
13275 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13276 tmp_flags
="$EXTRA_KCFLAGS"
13277 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13280 cat confdefs.h
- <<_ACEOF >conftest.c
13283 #include <linux/blkdev.h>
13289 struct request_queue *q = NULL;
13290 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13299 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13300 echo "obj-m := conftest.o" >build
/Makefile
13302 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13303 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13305 (eval $ac_try) 2>&5
13307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13310 (eval $ac_try) 2>&5
13312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13313 test $ac_status = 0; }; }; then :
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316 $as_echo "yes" >&6; }
13318 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
13322 $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.
$ac_ext >&5
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13334 EXTRA_KCFLAGS
="$tmp_flags"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
13338 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13339 tmp_flags
="$EXTRA_KCFLAGS"
13340 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13343 cat confdefs.h
- <<_ACEOF >conftest.c
13346 #include <linux/blkdev.h>
13352 struct request_queue *q = NULL;
13353 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13362 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13363 echo "obj-m := conftest.o" >build
/Makefile
13365 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13366 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13368 (eval $ac_try) 2>&5
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13373 (eval $ac_try) 2>&5
13375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13376 test $ac_status = 0; }; }; then :
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379 $as_echo "yes" >&6; }
13381 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
13385 $as_echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.
$ac_ext >&5
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13397 EXTRA_KCFLAGS
="$tmp_flags"
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
13401 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13402 tmp_flags
="$EXTRA_KCFLAGS"
13403 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13406 cat confdefs.h
- <<_ACEOF >conftest.c
13409 #include <linux/blkdev.h>
13415 struct request_queue *q = NULL;
13416 unsigned short block_size = 1;
13417 (void) blk_queue_physical_block_size(q, block_size);
13426 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13427 echo "obj-m := conftest.o" >build
/Makefile
13429 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13430 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13432 (eval $ac_try) 2>&5
13434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13437 (eval $ac_try) 2>&5
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }; }; then :
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443 $as_echo "yes" >&6; }
13445 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13449 $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.
$ac_ext >&5
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13461 EXTRA_KCFLAGS
="$tmp_flags"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
13465 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
13466 tmp_flags
="$EXTRA_KCFLAGS"
13467 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13470 cat confdefs.h
- <<_ACEOF >conftest.c
13473 #include <linux/blkdev.h>
13479 struct request_queue *q = NULL;
13480 unsigned int opt = 1;
13481 (void) blk_queue_io_opt(q, opt);
13490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13491 echo "obj-m := conftest.o" >build
/Makefile
13493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13494 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13496 (eval $ac_try) 2>&5
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13501 (eval $ac_try) 2>&5
13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504 test $ac_status = 0; }; }; then :
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507 $as_echo "yes" >&6; }
13509 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
13513 $as_echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.
$ac_ext >&5
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13525 EXTRA_KCFLAGS
="$tmp_flags"
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
13529 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
13530 tmp_flags
="$EXTRA_KCFLAGS"
13531 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13534 cat confdefs.h
- <<_ACEOF >conftest.c
13537 #include <linux/blkdev.h>
13543 struct request_queue *q = NULL;
13544 (void) blk_queue_nonrot(q);
13553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13554 echo "obj-m := conftest.o" >build
/Makefile
13556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13557 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13559 (eval $ac_try) 2>&5
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13564 (eval $ac_try) 2>&5
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; }; }; then :
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13572 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
13576 $as_echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.
$ac_ext >&5
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13588 EXTRA_KCFLAGS
="$tmp_flags"
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
13592 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
13593 tmp_flags
="$EXTRA_KCFLAGS"
13594 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13597 cat confdefs.h
- <<_ACEOF >conftest.c
13600 #include <linux/blkdev.h>
13606 struct request_queue *q = NULL;
13607 (void) blk_queue_discard(q);
13616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13617 echo "obj-m := conftest.o" >build
/Makefile
13619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13620 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13622 (eval $ac_try) 2>&5
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13627 (eval $ac_try) 2>&5
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; }; then :
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13635 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
13639 $as_echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.
$ac_ext >&5
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13651 EXTRA_KCFLAGS
="$tmp_flags"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
13655 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13656 tmp_flags
="$EXTRA_KCFLAGS"
13657 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13660 cat confdefs.h
- <<_ACEOF >conftest.c
13663 #include <linux/blkdev.h>
13669 struct request_queue *q = NULL;
13670 (void) blk_fetch_request(q);
13679 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13680 echo "obj-m := conftest.o" >build
/Makefile
13682 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13683 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13685 (eval $ac_try) 2>&5
13687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13690 (eval $ac_try) 2>&5
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693 test $ac_status = 0; }; }; then :
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13696 $as_echo "yes" >&6; }
13698 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
13702 $as_echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.
$ac_ext >&5
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13714 EXTRA_KCFLAGS
="$tmp_flags"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
13718 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13719 tmp_flags
="$EXTRA_KCFLAGS"
13720 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13723 cat confdefs.h
- <<_ACEOF >conftest.c
13726 #include <linux/blkdev.h>
13732 struct request_queue *q = NULL;
13733 struct request *req = NULL;
13734 blk_requeue_request(q, req);
13743 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13744 echo "obj-m := conftest.o" >build
/Makefile
13746 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13747 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13749 (eval $ac_try) 2>&5
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13754 (eval $ac_try) 2>&5
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; }; then :
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760 $as_echo "yes" >&6; }
13762 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
13766 $as_echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.
$ac_ext >&5
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13778 EXTRA_KCFLAGS
="$tmp_flags"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
13782 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13783 tmp_flags
="$EXTRA_KCFLAGS"
13784 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13787 cat confdefs.h
- <<_ACEOF >conftest.c
13790 #include <linux/blkdev.h>
13796 struct request *req = NULL;
13797 (void) blk_rq_bytes(req);
13806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13807 echo "obj-m := conftest.o" >build
/Makefile
13809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13810 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13812 (eval $ac_try) 2>&5
13814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13817 (eval $ac_try) 2>&5
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }; }; then :
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823 $as_echo "yes" >&6; }
13825 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
13829 $as_echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.
$ac_ext >&5
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
13843 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13846 cat confdefs.h
- <<_ACEOF >conftest.c
13849 #include <linux/module.h>
13850 #include <linux/blkdev.h>
13852 MODULE_LICENSE("CDDL");
13858 struct request *req = NULL;
13859 (void) blk_rq_bytes(req);
13868 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13869 echo "obj-m := conftest.o" >build
/Makefile
13871 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13872 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13874 (eval $ac_try) 2>&5
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13879 (eval $ac_try) 2>&5
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; }; then :
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13888 $as_echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.
$ac_ext >&5
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 $as_echo "yes" >&6; }
13894 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
13903 EXTRA_KCFLAGS
="$tmp_flags"
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
13907 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13908 tmp_flags
="$EXTRA_KCFLAGS"
13909 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13912 cat confdefs.h
- <<_ACEOF >conftest.c
13915 #include <linux/blkdev.h>
13921 struct request *req = NULL;
13922 (void) blk_rq_pos(req);
13931 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13932 echo "obj-m := conftest.o" >build
/Makefile
13934 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13935 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13937 (eval $ac_try) 2>&5
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13942 (eval $ac_try) 2>&5
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; }; then :
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948 $as_echo "yes" >&6; }
13950 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
13954 $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.
$ac_ext >&5
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13966 EXTRA_KCFLAGS
="$tmp_flags"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
13970 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13971 tmp_flags
="$EXTRA_KCFLAGS"
13972 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13975 cat confdefs.h
- <<_ACEOF >conftest.c
13978 #include <linux/blkdev.h>
13984 struct request *req = NULL;
13985 (void) blk_rq_sectors(req);
13994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13995 echo "obj-m := conftest.o" >build
/Makefile
13997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13998 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14000 (eval $ac_try) 2>&5
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14005 (eval $ac_try) 2>&5
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; }; then :
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14011 $as_echo "yes" >&6; }
14013 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
14017 $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.
$ac_ext >&5
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14029 EXTRA_KCFLAGS
="$tmp_flags"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14033 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14034 tmp_flags
="$EXTRA_KCFLAGS"
14035 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14038 cat confdefs.h
- <<_ACEOF >conftest.c
14041 #include <linux/blkdev.h>
14047 struct gendisk *disk = NULL;
14048 (void) get_disk_ro(disk);
14057 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14058 echo "obj-m := conftest.o" >build
/Makefile
14060 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14061 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14080 $as_echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.
$ac_ext >&5
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14092 EXTRA_KCFLAGS
="$tmp_flags"
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14095 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
14099 cat confdefs.h
- <<_ACEOF >conftest.c
14102 #include <linux/genhd.h>
14108 get_gendisk(0, NULL);
14117 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14118 echo "obj-m := conftest.o" >build
/Makefile
14120 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14121 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14123 (eval $ac_try) 2>&5
14125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14126 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14128 (eval $ac_try) 2>&5
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; }; then :
14134 $as_echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.
$ac_ext >&5
14143 if test $rc -ne 0; then :
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14149 if test "x$enable_linux_builtin" != xyes
; then
14151 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14154 if test $rc -ne 0; then
14156 for file in block
/genhd.c
; do
14157 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14158 "$LINUX/$file" 2>/dev
/null
14160 if test $rc -eq 0; then
14165 if test $export -eq 0; then :
14175 if test $rc -ne 0; then :
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 $as_echo "yes" >&6; }
14185 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
14194 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14195 tmp_flags
="$EXTRA_KCFLAGS"
14196 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14199 cat confdefs.h
- <<_ACEOF >conftest.c
14202 #include <linux/blkdev.h>
14208 struct request *req = NULL;
14209 (void) rq_is_sync(req);
14218 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14219 echo "obj-m := conftest.o" >build
/Makefile
14221 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14222 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235 $as_echo "yes" >&6; }
14237 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
14241 $as_echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14253 EXTRA_KCFLAGS
="$tmp_flags"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
14257 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14258 tmp_flags
="$EXTRA_KCFLAGS"
14259 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14262 cat confdefs.h
- <<_ACEOF >conftest.c
14265 #include <linux/blkdev.h>
14271 struct bio_vec *bv;
14272 struct req_iterator iter;
14273 struct request *req = NULL;
14274 rq_for_each_segment(bv, req, iter) { }
14283 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14284 echo "obj-m := conftest.o" >build
/Makefile
14286 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14287 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14289 (eval $ac_try) 2>&5
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14294 (eval $ac_try) 2>&5
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; }; then :
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14300 $as_echo "yes" >&6; }
14302 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.
$ac_ext >&5
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14318 EXTRA_KCFLAGS
="$tmp_flags"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14322 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14325 cat confdefs.h
- <<_ACEOF >conftest.c
14328 #include <linux/blkdev.h>
14334 struct queue_limits ql __attribute__ ((unused));
14336 ql.discard_granularity = 0;
14345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14346 echo "obj-m := conftest.o" >build
/Makefile
14348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14349 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14351 (eval $ac_try) 2>&5
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14356 (eval $ac_try) 2>&5
14358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14359 test $ac_status = 0; }; }; then :
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362 $as_echo "yes" >&6; }
14364 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14368 $as_echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.
$ac_ext >&5
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
14382 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14385 cat confdefs.h
- <<_ACEOF >conftest.c
14388 #include <linux/fs.h>
14389 #include <linux/xattr.h>
14391 const struct xattr_handler xattr_test_handler = {
14397 const struct xattr_handler *xattr_handlers[] = {
14398 &xattr_test_handler,
14405 struct super_block sb __attribute__ ((unused));
14407 sb.s_xattr = xattr_handlers;
14416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14417 echo "obj-m := conftest.o" >build
/Makefile
14419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14420 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14422 (eval $ac_try) 2>&5
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14427 (eval $ac_try) 2>&5
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }; }; then :
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433 $as_echo "yes" >&6; }
14435 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.
$ac_ext >&5
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443 $as_echo "no" >&6; }
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14454 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14457 cat confdefs.h
- <<_ACEOF >conftest.c
14460 #include <linux/xattr.h>
14466 int (*get)(struct dentry *dentry, const char *name,
14467 void *buffer, size_t size, int handler_flags) = NULL;
14468 struct xattr_handler xops __attribute__ ((unused));
14479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14480 echo "obj-m := conftest.o" >build
/Makefile
14482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14483 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14485 (eval $ac_try) 2>&5
14487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14490 (eval $ac_try) 2>&5
14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493 test $ac_status = 0; }; }; then :
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14498 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.
$ac_ext >&5
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
14517 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14520 cat confdefs.h
- <<_ACEOF >conftest.c
14523 #include <linux/xattr.h>
14529 int (*set)(struct dentry *dentry, const char *name,
14530 const void *buffer, size_t size, int flags,
14531 int handler_flags) = NULL;
14532 struct xattr_handler xops __attribute__ ((unused));
14543 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14544 echo "obj-m := conftest.o" >build
/Makefile
14546 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14547 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14549 (eval $ac_try) 2>&5
14551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14552 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14554 (eval $ac_try) 2>&5
14556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14557 test $ac_status = 0; }; }; then :
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14560 $as_echo "yes" >&6; }
14562 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
14566 $as_echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.
$ac_ext >&5
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
14581 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
14585 cat confdefs.h
- <<_ACEOF >conftest.c
14588 #include <linux/fs.h>
14590 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
14591 static struct super_operations sops __attribute__ ((unused)) = {
14592 .show_options = show_options,
14607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14608 echo "obj-m := conftest.o" >build
/Makefile
14610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14611 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14618 (eval $ac_try) 2>&5
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; }; then :
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14626 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.
$ac_ext >&5
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
14645 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14649 cat confdefs.h
- <<_ACEOF >conftest.c
14652 #include <linux/fs.h>
14654 int test_fsync(struct file *f, struct dentry *dentry, int x)
14657 static const struct file_operations
14658 fops __attribute__ ((unused)) = {
14659 .fsync = test_fsync,
14674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14675 echo "obj-m := conftest.o" >build
/Makefile
14677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14678 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14680 (eval $ac_try) 2>&5
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; }; then :
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
14691 $as_echo "dentry" >&6; }
14693 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14711 cat confdefs.h
- <<_ACEOF >conftest.c
14714 #include <linux/fs.h>
14716 int test_fsync(struct file *f, int x) { return 0; }
14718 static const struct file_operations
14719 fops __attribute__ ((unused)) = {
14720 .fsync = test_fsync,
14735 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14736 echo "obj-m := conftest.o" >build
/Makefile
14738 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14739 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14741 (eval $ac_try) 2>&5
14743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14744 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14746 (eval $ac_try) 2>&5
14748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749 test $ac_status = 0; }; }; then :
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
14752 $as_echo "no dentry" >&6; }
14754 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
14758 $as_echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.
$ac_ext >&5
14772 cat confdefs.h
- <<_ACEOF >conftest.c
14775 #include <linux/fs.h>
14777 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
14780 static const struct file_operations
14781 fops __attribute__ ((unused)) = {
14782 .fsync = test_fsync,
14797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14798 echo "obj-m := conftest.o" >build
/Makefile
14800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14801 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14803 (eval $ac_try) 2>&5
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14808 (eval $ac_try) 2>&5
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }; }; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
14814 $as_echo "range" >&6; }
14816 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
14820 $as_echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.
$ac_ext >&5
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
14834 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14837 cat confdefs.h
- <<_ACEOF >conftest.c
14840 #include <linux/fs.h>
14841 void evict_inode (struct inode * t) { return; }
14842 static struct super_operations sops __attribute__ ((unused)) = {
14843 .evict_inode = evict_inode,
14858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14859 echo "obj-m := conftest.o" >build
/Makefile
14861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14862 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14864 (eval $ac_try) 2>&5
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14869 (eval $ac_try) 2>&5
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; }; }; then :
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14875 $as_echo "yes" >&6; }
14877 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
14881 $as_echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.
$ac_ext >&5
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14885 $as_echo "no" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
14896 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
14899 cat confdefs.h
- <<_ACEOF >conftest.c
14902 #include <linux/fs.h>
14904 void dirty_inode(struct inode *a, int b) { return; }
14906 static const struct super_operations
14907 sops __attribute__ ((unused)) = {
14908 .dirty_inode = dirty_inode,
14923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14924 echo "obj-m := conftest.o" >build
/Makefile
14926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14927 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14929 (eval $ac_try) 2>&5
14931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14932 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14934 (eval $ac_try) 2>&5
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }; }; then :
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14940 $as_echo "yes" >&6; }
14942 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
14946 $as_echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.
$ac_ext >&5
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
14961 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14964 cat confdefs.h
- <<_ACEOF >conftest.c
14967 #include <linux/fs.h>
14969 int nr_cached_objects(struct super_block *sb) { return 0; }
14971 static const struct super_operations
14972 sops __attribute__ ((unused)) = {
14973 .nr_cached_objects = nr_cached_objects,
14988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14989 echo "obj-m := conftest.o" >build
/Makefile
14991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14992 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14994 (eval $ac_try) 2>&5
14996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14999 (eval $ac_try) 2>&5
15001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15002 test $ac_status = 0; }; }; then :
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15005 $as_echo "yes" >&6; }
15007 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
15011 $as_echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.
$ac_ext >&5
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 $as_echo "no" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
15026 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15029 cat confdefs.h
- <<_ACEOF >conftest.c
15032 #include <linux/fs.h>
15034 void free_cached_objects(struct super_block *sb, int x)
15037 static const struct super_operations
15038 sops __attribute__ ((unused)) = {
15039 .free_cached_objects = free_cached_objects,
15054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15055 echo "obj-m := conftest.o" >build
/Makefile
15057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15058 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15060 (eval $ac_try) 2>&5
15062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15065 (eval $ac_try) 2>&5
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }; }; then :
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15071 $as_echo "yes" >&6; }
15073 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
15077 $as_echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.
$ac_ext >&5
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15093 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15096 cat confdefs.h
- <<_ACEOF >conftest.c
15099 #include <linux/fs.h>
15101 long test_fallocate(struct file *file, int mode,
15102 loff_t offset, loff_t len) { return 0; }
15104 static const struct file_operations
15105 fops __attribute__ ((unused)) = {
15106 .fallocate = test_fallocate,
15121 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15122 echo "obj-m := conftest.o" >build
/Makefile
15124 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15125 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15127 (eval $ac_try) 2>&5
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15132 (eval $ac_try) 2>&5
15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15135 test $ac_status = 0; }; }; then :
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15138 $as_echo "yes" >&6; }
15140 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15144 $as_echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.
$ac_ext >&5
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 $as_echo "no" >&6; }
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15159 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15162 cat confdefs.h
- <<_ACEOF >conftest.c
15165 #include <linux/fs.h>
15167 long test_fallocate(struct inode *inode, int mode,
15168 loff_t offset, loff_t len) { return 0; }
15170 static const struct inode_operations
15171 fops __attribute__ ((unused)) = {
15172 .fallocate = test_fallocate,
15187 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15188 echo "obj-m := conftest.o" >build
/Makefile
15190 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15191 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15193 (eval $ac_try) 2>&5
15195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15196 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15198 (eval $ac_try) 2>&5
15200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201 test $ac_status = 0; }; }; then :
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15204 $as_echo "yes" >&6; }
15206 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15210 $as_echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.
$ac_ext >&5
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
15226 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
15229 cat confdefs.h
- <<_ACEOF >conftest.c
15232 #include <linux/fs.h>
15234 int mkdir(struct inode *inode, struct dentry *dentry,
15235 umode_t umode) { return 0; }
15237 static const struct inode_operations
15238 iops __attribute__ ((unused)) = {
15254 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15255 echo "obj-m := conftest.o" >build
/Makefile
15257 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15258 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15260 (eval $ac_try) 2>&5
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15265 (eval $ac_try) 2>&5
15267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268 test $ac_status = 0; }; }; then :
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15271 $as_echo "yes" >&6; }
15273 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
15277 $as_echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.
$ac_ext >&5
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 $as_echo "no" >&6; }
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
15292 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
15295 cat confdefs.h
- <<_ACEOF >conftest.c
15298 #include <linux/fs.h>
15300 struct dentry *inode_lookup(struct inode *inode,
15301 struct dentry *dentry, struct nameidata *nidata)
15304 static const struct inode_operations iops
15305 __attribute__ ((unused)) = {
15306 .lookup = inode_lookup,
15321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15322 echo "obj-m := conftest.o" >build
/Makefile
15324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15325 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15327 (eval $ac_try) 2>&5
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15332 (eval $ac_try) 2>&5
15334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335 test $ac_status = 0; }; }; then :
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15338 $as_echo "yes" >&6; }
15340 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
15344 $as_echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.
$ac_ext >&5
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348 $as_echo "no" >&6; }
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
15359 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
15362 cat confdefs.h
- <<_ACEOF >conftest.c
15365 #include <linux/fs.h>
15367 #ifdef HAVE_MKDIR_UMODE_T
15368 int inode_create(struct inode *inode ,struct dentry *dentry,
15369 umode_t umode, struct nameidata *nidata) { return 0; }
15371 int inode_create(struct inode *inode,struct dentry *dentry,
15372 int umode, struct nameidata * nidata) { return 0; }
15375 static const struct inode_operations
15376 iops __attribute__ ((unused)) = {
15377 .create = inode_create,
15392 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15393 echo "obj-m := conftest.o" >build
/Makefile
15395 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15396 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15398 (eval $ac_try) 2>&5
15400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15401 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15403 (eval $ac_try) 2>&5
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; }; then :
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15409 $as_echo "yes" >&6; }
15411 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
15415 $as_echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.
$ac_ext >&5
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
15430 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
15433 cat confdefs.h
- <<_ACEOF >conftest.c
15436 #include <linux/fs.h>
15437 void truncate_range(struct inode *inode, loff_t start,
15438 loff_t end) { return; }
15439 static struct inode_operations iops __attribute__ ((unused)) = {
15440 .truncate_range = truncate_range,
15455 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15456 echo "obj-m := conftest.o" >build
/Makefile
15458 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15459 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15461 (eval $ac_try) 2>&5
15463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15466 (eval $ac_try) 2>&5
15468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469 test $ac_status = 0; }; }; then :
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472 $as_echo "yes" >&6; }
15474 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
15478 $as_echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.
$ac_ext >&5
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
15493 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15496 cat confdefs.h
- <<_ACEOF >conftest.c
15499 #include <linux/dcache.h>
15500 struct vfsmount *d_automount(struct path *p) { return NULL; }
15501 struct dentry_operations dops __attribute__ ((unused)) = {
15502 .d_automount = d_automount,
15517 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15518 echo "obj-m := conftest.o" >build
/Makefile
15520 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15521 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15523 (eval $ac_try) 2>&5
15525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15526 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15528 (eval $ac_try) 2>&5
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; }; }; then :
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15536 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544 $as_echo "no" >&6; }
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
15555 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
15558 cat confdefs.h
- <<_ACEOF >conftest.c
15561 #include <linux/exportfs.h>
15562 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
15563 struct inode *parent) { return 0; }
15564 static struct export_operations eops __attribute__ ((unused))={
15565 .encode_fh = encode_fh,
15580 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15581 echo "obj-m := conftest.o" >build
/Makefile
15583 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15584 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15586 (eval $ac_try) 2>&5
15588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15589 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15591 (eval $ac_try) 2>&5
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; }; then :
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15597 $as_echo "yes" >&6; }
15599 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
15603 $as_echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.
$ac_ext >&5
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15607 $as_echo "no" >&6; }
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
15618 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
15621 cat confdefs.h
- <<_ACEOF >conftest.c
15624 #include <linux/exportfs.h>
15625 int commit_metadata(struct inode *inode) { return 0; }
15626 static struct export_operations eops __attribute__ ((unused))={
15627 .commit_metadata = commit_metadata,
15642 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15643 echo "obj-m := conftest.o" >build
/Makefile
15645 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15646 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15648 (eval $ac_try) 2>&5
15650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15651 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15653 (eval $ac_try) 2>&5
15655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656 test $ac_status = 0; }; }; then :
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15659 $as_echo "yes" >&6; }
15661 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.
$ac_ext >&5
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
15679 $as_echo_n "checking whether clear_inode() is available... " >&6; }
15683 cat confdefs.h
- <<_ACEOF >conftest.c
15686 #include <linux/fs.h>
15701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15702 echo "obj-m := conftest.o" >build
/Makefile
15704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15705 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15707 (eval $ac_try) 2>&5
15709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15712 (eval $ac_try) 2>&5
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; }; }; then :
15718 $as_echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.
$ac_ext >&5
15727 if test $rc -ne 0; then :
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15733 if test "x$enable_linux_builtin" != xyes
; then
15735 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
15736 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15738 if test $rc -ne 0; then
15740 for file in fs
/inode.c
; do
15741 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
15742 "$LINUX/$file" 2>/dev
/null
15744 if test $rc -eq 0; then
15749 if test $export -eq 0; then :
15759 if test $rc -ne 0; then :
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15767 $as_echo "yes" >&6; }
15769 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
15777 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
15781 cat confdefs.h
- <<_ACEOF >conftest.c
15784 #include <linux/fs.h>
15790 insert_inode_locked(NULL);
15799 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15800 echo "obj-m := conftest.o" >build
/Makefile
15802 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15803 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15805 (eval $ac_try) 2>&5
15807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15810 (eval $ac_try) 2>&5
15812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813 test $ac_status = 0; }; }; then :
15816 $as_echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.
$ac_ext >&5
15825 if test $rc -ne 0; then :
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828 $as_echo "no" >&6; }
15831 if test "x$enable_linux_builtin" != xyes
; then
15833 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15834 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15836 if test $rc -ne 0; then
15838 for file in fs
/inode.c
; do
15839 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
15840 "$LINUX/$file" 2>/dev
/null
15842 if test $rc -eq 0; then
15847 if test $export -eq 0; then :
15857 if test $rc -ne 0; then :
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15867 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
15875 $as_echo_n "checking whether d_make_root() is available... " >&6; }
15879 cat confdefs.h
- <<_ACEOF >conftest.c
15882 #include <linux/dcache.h>
15897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15898 echo "obj-m := conftest.o" >build
/Makefile
15900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15901 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15903 (eval $ac_try) 2>&5
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15908 (eval $ac_try) 2>&5
15910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15911 test $ac_status = 0; }; }; then :
15914 $as_echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.
$ac_ext >&5
15923 if test $rc -ne 0; then :
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926 $as_echo "no" >&6; }
15929 if test "x$enable_linux_builtin" != xyes
; then
15931 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
15932 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15934 if test $rc -ne 0; then
15936 for file in fs
/dcache.c
; do
15937 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
15938 "$LINUX/$file" 2>/dev
/null
15940 if test $rc -eq 0; then
15945 if test $export -eq 0; then :
15955 if test $rc -ne 0; then :
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15963 $as_echo "yes" >&6; }
15965 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
15973 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
15977 cat confdefs.h
- <<_ACEOF >conftest.c
15980 #include <linux/dcache.h>
15986 d_obtain_alias(NULL);
15995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15996 echo "obj-m := conftest.o" >build
/Makefile
15998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15999 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16001 (eval $ac_try) 2>&5
16003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16004 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16006 (eval $ac_try) 2>&5
16008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16009 test $ac_status = 0; }; }; then :
16012 $as_echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.
$ac_ext >&5
16021 if test $rc -ne 0; then :
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024 $as_echo "no" >&6; }
16027 if test "x$enable_linux_builtin" != xyes
; then
16029 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16030 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16032 if test $rc -ne 0; then
16034 for file in fs
/dcache.c
; do
16035 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
16036 "$LINUX/$file" 2>/dev
/null
16038 if test $rc -eq 0; then
16043 if test $export -eq 0; then :
16053 if test $rc -ne 0; then :
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056 $as_echo "no" >&6; }
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16061 $as_echo "yes" >&6; }
16063 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
16071 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
16075 cat confdefs.h
- <<_ACEOF >conftest.c
16078 #include <linux/dcache.h>
16084 d_set_d_op(NULL, NULL);
16093 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16094 echo "obj-m := conftest.o" >build
/Makefile
16096 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16097 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16099 (eval $ac_try) 2>&5
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16104 (eval $ac_try) 2>&5
16106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16107 test $ac_status = 0; }; }; then :
16110 $as_echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.
$ac_ext >&5
16119 if test $rc -ne 0; then :
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16125 if test "x$enable_linux_builtin" != xyes
; then
16127 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
16128 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16130 if test $rc -ne 0; then
16132 for file in fs
/dcache.c
; do
16133 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
16134 "$LINUX/$file" 2>/dev
/null
16136 if test $rc -eq 0; then
16141 if test $export -eq 0; then :
16151 if test $rc -ne 0; then :
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16159 $as_echo "yes" >&6; }
16161 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
16170 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
16173 cat confdefs.h
- <<_ACEOF >conftest.c
16176 #include <linux/dcache.h>
16178 int revalidate (struct dentry *dentry,
16179 struct nameidata *nidata) { return 0; }
16181 static const struct dentry_operations
16182 dops __attribute__ ((unused)) = {
16183 .d_revalidate = revalidate,
16198 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16199 echo "obj-m := conftest.o" >build
/Makefile
16201 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16202 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16204 (eval $ac_try) 2>&5
16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16209 (eval $ac_try) 2>&5
16211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212 test $ac_status = 0; }; }; then :
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16217 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
16221 $as_echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.
$ac_ext >&5
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
16236 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
16239 cat confdefs.h
- <<_ACEOF >conftest.c
16242 #include <linux/dcache.h>
16244 const struct dentry_operations test_d_op = {
16245 .d_revalidate = NULL,
16252 struct dentry d __attribute__ ((unused));
16254 d.d_op = &test_d_op;
16263 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16264 echo "obj-m := conftest.o" >build
/Makefile
16266 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16267 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16269 (eval $ac_try) 2>&5
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; }; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16280 $as_echo "yes" >&6; }
16282 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.
$ac_ext >&5
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
16300 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
16304 cat confdefs.h
- <<_ACEOF >conftest.c
16307 #include <linux/fs.h>
16313 check_disk_size_change(NULL, NULL);
16322 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16323 echo "obj-m := conftest.o" >build
/Makefile
16325 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16326 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16328 (eval $ac_try) 2>&5
16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16331 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16333 (eval $ac_try) 2>&5
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; }; }; then :
16339 $as_echo "$as_me: failed program was:" >&5
16340 sed 's/^/| /' conftest.
$ac_ext >&5
16348 if test $rc -ne 0; then :
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351 $as_echo "no" >&6; }
16354 if test "x$enable_linux_builtin" != xyes
; then
16356 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16357 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16359 if test $rc -ne 0; then
16361 for file in fs
/block_dev.c
; do
16362 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
16363 "$LINUX/$file" 2>/dev
/null
16365 if test $rc -eq 0; then
16370 if test $export -eq 0; then :
16380 if test $rc -ne 0; then :
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 $as_echo "no" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16388 $as_echo "yes" >&6; }
16390 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
16398 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
16402 cat confdefs.h
- <<_ACEOF >conftest.c
16405 #include <linux/mm.h>
16411 truncate_setsize(NULL, 0);
16420 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16421 echo "obj-m := conftest.o" >build
/Makefile
16423 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16424 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16426 (eval $ac_try) 2>&5
16428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16429 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16431 (eval $ac_try) 2>&5
16433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16434 test $ac_status = 0; }; }; then :
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.
$ac_ext >&5
16446 if test $rc -ne 0; then :
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16449 $as_echo "no" >&6; }
16452 if test "x$enable_linux_builtin" != xyes
; then
16454 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16455 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16457 if test $rc -ne 0; then
16459 for file in mm
/truncate.c
; do
16460 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
16461 "$LINUX/$file" 2>/dev
/null
16463 if test $rc -eq 0; then
16468 if test $export -eq 0; then :
16478 if test $rc -ne 0; then :
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481 $as_echo "no" >&6; }
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16486 $as_echo "yes" >&6; }
16488 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
16497 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16500 cat confdefs.h
- <<_ACEOF >conftest.c
16503 #include <linux/security.h>
16509 struct inode *ip __attribute__ ((unused)) = NULL;
16510 struct inode *dip __attribute__ ((unused)) = NULL;
16511 const struct qstr *str __attribute__ ((unused)) = NULL;
16512 char *name __attribute__ ((unused)) = NULL;
16513 void *value __attribute__ ((unused)) = NULL;
16514 size_t len __attribute__ ((unused)) = 0;
16516 security_inode_init_security(ip, dip, str, &name, &value, &len);
16525 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16526 echo "obj-m := conftest.o" >build
/Makefile
16528 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16529 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16531 (eval $ac_try) 2>&5
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16536 (eval $ac_try) 2>&5
16538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; }; }; then :
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542 $as_echo "yes" >&6; }
16544 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.
$ac_ext >&5
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
16563 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16566 cat confdefs.h
- <<_ACEOF >conftest.c
16569 #include <linux/security.h>
16575 struct inode *ip __attribute__ ((unused)) = NULL;
16576 struct inode *dip __attribute__ ((unused)) = NULL;
16577 const struct qstr *str __attribute__ ((unused)) = NULL;
16578 initxattrs func __attribute__ ((unused)) = NULL;
16580 security_inode_init_security(ip, dip, str, func, NULL);
16589 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16590 echo "obj-m := conftest.o" >build
/Makefile
16592 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16593 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16595 (eval $ac_try) 2>&5
16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16600 (eval $ac_try) 2>&5
16602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16603 test $ac_status = 0; }; }; then :
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16606 $as_echo "yes" >&6; }
16608 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16612 $as_echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.
$ac_ext >&5
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
16626 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
16630 cat confdefs.h
- <<_ACEOF >conftest.c
16633 #include <linux/fs.h>
16639 mount_nodev(NULL, 0, NULL, NULL);
16648 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16649 echo "obj-m := conftest.o" >build
/Makefile
16651 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16652 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16654 (eval $ac_try) 2>&5
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16659 (eval $ac_try) 2>&5
16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16662 test $ac_status = 0; }; }; then :
16665 $as_echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.
$ac_ext >&5
16674 if test $rc -ne 0; then :
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16677 $as_echo "no" >&6; }
16680 if test "x$enable_linux_builtin" != xyes
; then
16682 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16683 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16685 if test $rc -ne 0; then
16687 for file in fs
/super.c
; do
16688 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
16689 "$LINUX/$file" 2>/dev
/null
16691 if test $rc -eq 0; then
16696 if test $export -eq 0; then :
16706 if test $rc -ne 0; then :
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714 $as_echo "yes" >&6; }
16716 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
16725 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16728 cat confdefs.h
- <<_ACEOF >conftest.c
16731 #include <linux/fs.h>
16733 int shrink(struct shrinker *s, struct shrink_control *sc)
16736 static const struct super_block
16737 sb __attribute__ ((unused)) = {
16738 .s_shrink.shrink = shrink,
16739 .s_shrink.seeks = DEFAULT_SEEKS,
16740 .s_shrink.batch = 0,
16755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16756 echo "obj-m := conftest.o" >build
/Makefile
16758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16759 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16774 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
16779 $as_echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.
$ac_ext >&5
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
16794 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
16797 cat confdefs.h
- <<_ACEOF >conftest.c
16800 #include <linux/fs.h>
16806 struct super_block sb __attribute__ ((unused));
16808 INIT_LIST_HEAD(&sb.s_instances);
16817 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16818 echo "obj-m := conftest.o" >build
/Makefile
16820 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16821 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16823 (eval $ac_try) 2>&5
16825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16826 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16828 (eval $ac_try) 2>&5
16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; }; }; then :
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16836 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
16840 $as_echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.
$ac_ext >&5
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
16854 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
16857 cat confdefs.h
- <<_ACEOF >conftest.c
16860 #include <linux/fs.h>
16866 struct super_block sb __attribute__ ((unused));
16876 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16877 echo "obj-m := conftest.o" >build
/Makefile
16879 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16880 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16882 (eval $ac_try) 2>&5
16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16887 (eval $ac_try) 2>&5
16889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16890 test $ac_status = 0; }; }; then :
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893 $as_echo "yes" >&6; }
16895 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
16899 $as_echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.
$ac_ext >&5
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903 $as_echo "no" >&6; }
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
16914 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16917 cat confdefs.h
- <<_ACEOF >conftest.c
16920 #include <linux/fs.h>
16926 struct super_block sb __attribute__ ((unused));
16936 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16937 echo "obj-m := conftest.o" >build
/Makefile
16939 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16940 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16942 (eval $ac_try) 2>&5
16944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16947 (eval $ac_try) 2>&5
16949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16950 test $ac_status = 0; }; }; then :
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16953 $as_echo "yes" >&6; }
16955 $as_echo "#define HAVE_BDI 1" >>confdefs.h
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.
$ac_ext >&5
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
16973 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
16977 cat confdefs.h
- <<_ACEOF >conftest.c
16980 #include <linux/backing-dev.h>
16986 bdi_setup_and_register(NULL, NULL, 0);
16995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16996 echo "obj-m := conftest.o" >build
/Makefile
16998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16999 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17001 (eval $ac_try) 2>&5
17003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17004 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17006 (eval $ac_try) 2>&5
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; }; then :
17012 $as_echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.
$ac_ext >&5
17021 if test $rc -ne 0; then :
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17027 if test "x$enable_linux_builtin" != xyes
; then
17029 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17030 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17032 if test $rc -ne 0; then
17034 for file in mm
/backing-dev.c
; do
17035 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
17036 "$LINUX/$file" 2>/dev
/null
17038 if test $rc -eq 0; then
17043 if test $export -eq 0; then :
17053 if test $rc -ne 0; then :
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17056 $as_echo "no" >&6; }
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061 $as_echo "yes" >&6; }
17063 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
17072 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17075 cat confdefs.h
- <<_ACEOF >conftest.c
17078 #include <linux/fs.h>
17085 unsigned int link = 0;
17086 (void) set_nlink(&node, link);
17095 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17096 echo "obj-m := conftest.o" >build
/Makefile
17098 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17099 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17106 (eval $ac_try) 2>&5
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; }; then :
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17114 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
17118 $as_echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.
$ac_ext >&5
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122 $as_echo "no" >&6; }
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
17133 $as_echo_n "checking whether elevator_change() is available... " >&6; }
17134 tmp_flags
="$EXTRA_KCFLAGS"
17135 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17138 cat confdefs.h
- <<_ACEOF >conftest.c
17141 #include <linux/blkdev.h>
17142 #include <linux/elevator.h>
17149 struct request_queue *q = NULL;
17150 char *elevator = NULL;
17151 ret = elevator_change(q, elevator);
17160 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17161 echo "obj-m := conftest.o" >build
/Makefile
17163 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17164 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17166 (eval $ac_try) 2>&5
17168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17171 (eval $ac_try) 2>&5
17173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17174 test $ac_status = 0; }; }; then :
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177 $as_echo "yes" >&6; }
17179 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
17183 $as_echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.
$ac_ext >&5
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17195 EXTRA_KCFLAGS
="$tmp_flags"
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
17198 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
17201 cat confdefs.h
- <<_ACEOF >conftest.c
17204 #include <linux/fs.h>
17210 struct file_system_type *type = NULL;
17211 int (*test)(struct super_block *,void *) = NULL;
17212 int (*set)(struct super_block *,void *) = NULL;
17215 (void) sget(type, test, set, flags, data);
17224 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17225 echo "obj-m := conftest.o" >build
/Makefile
17227 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17228 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17230 (eval $ac_try) 2>&5
17232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17235 (eval $ac_try) 2>&5
17237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17238 test $ac_status = 0; }; }; then :
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17243 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
17247 $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17251 $as_echo "no" >&6; }
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
17261 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
17265 cat confdefs.h
- <<_ACEOF >conftest.c
17268 #include <linux/fs.h>
17274 struct file *fp __attribute__ ((unused)) = NULL;
17275 struct inode *ip __attribute__ ((unused)) = NULL;
17276 loff_t offset __attribute__ ((unused)) = 0;
17277 loff_t maxsize __attribute__ ((unused)) = 0;
17279 lseek_execute(fp, ip, offset, maxsize);
17288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17289 echo "obj-m := conftest.o" >build
/Makefile
17291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17292 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17294 (eval $ac_try) 2>&5
17296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17299 (eval $ac_try) 2>&5
17301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17302 test $ac_status = 0; }; }; then :
17305 $as_echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.
$ac_ext >&5
17314 if test $rc -ne 0; then :
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317 $as_echo "no" >&6; }
17320 if test "x$enable_linux_builtin" != xyes
; then
17322 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
17323 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17325 if test $rc -ne 0; then
17327 for file in fs
/read_write.c
; do
17328 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
17329 "$LINUX/$file" 2>/dev
/null
17331 if test $rc -eq 0; then
17336 if test $export -eq 0; then :
17346 if test $rc -ne 0; then :
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354 $as_echo "yes" >&6; }
17356 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
17365 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
17368 cat confdefs.h
- <<_ACEOF >conftest.c
17371 #include <linux/fs.h>
17372 int iterate(struct file *filp, struct dir_context * context)
17375 static const struct file_operations fops
17376 __attribute__ ((unused)) = {
17377 .iterate = iterate,
17392 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17393 echo "obj-m := conftest.o" >build
/Makefile
17395 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17396 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17398 (eval $ac_try) 2>&5
17400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17403 (eval $ac_try) 2>&5
17405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17406 test $ac_status = 0; }; }; then :
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409 $as_echo "yes" >&6; }
17411 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
17415 $as_echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.
$ac_ext >&5
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
17422 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
17425 cat confdefs.h
- <<_ACEOF >conftest.c
17428 #include <linux/fs.h>
17429 int readdir(struct file *filp, void *entry, filldir_t func)
17432 static const struct file_operations fops
17433 __attribute__ ((unused)) = {
17434 .readdir = readdir,
17449 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17450 echo "obj-m := conftest.o" >build
/Makefile
17452 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17453 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17455 (eval $ac_try) 2>&5
17457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17458 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17460 (eval $ac_try) 2>&5
17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463 test $ac_status = 0; }; }; then :
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17466 $as_echo "yes" >&6; }
17468 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
17472 $as_echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.
$ac_ext >&5
17475 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
17493 if test "$LINUX_OBJ" != "$LINUX"; then :
17495 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17501 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17502 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17503 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17510 # Check whether --with-udevdir was given.
17511 if test "${with_udevdir+set}" = set; then :
17512 withval
=$with_udevdir; udevdir
=$withval
17514 udevdir
='${exec_prefix}/lib/udev'
17519 # Check whether --with-udevruledir was given.
17520 if test "${with_udevruledir+set}" = set; then :
17521 withval
=$with_udevruledir; udevruledir
=$withval
17523 udevruledir
='${udevdir}/rules.d'
17532 # Check whether --with-dracutdir was given.
17533 if test "${with_dracutdir+set}" = set; then :
17534 withval
=$with_dracutdir; dracutdir
=$withval
17536 dracutdir
='${exec_prefix}/lib/dracut'
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
17544 $as_echo_n "checking for target asm dir... " >&6; }
17545 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
17547 case $TARGET_ARCH in
17549 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
17552 TARGET_ASM_DIR
=asm-generic
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
17558 $as_echo "$TARGET_ASM_DIR" >&6; }
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
17562 $as_echo_n "checking for ioctl()... " >&6; }
17563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 #include <unistd.h>
17568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17569 $EGREP "ioctl" >/dev
/null
2>&1; then :
17576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h. */
17578 #include <sys/ioctl.h>
17581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17582 $EGREP "ioctl" >/dev
/null
2>&1; then :
17589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 #include <stropts.h>
17594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17595 $EGREP "ioctl" >/dev
/null
2>&1; then :
17603 if test $is_unistd = yes; then
17606 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
17610 if test $is_sys_ioctl = yes; then
17613 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
17615 elif test $is_stropts = yes; then
17617 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
17624 if test $result = no
; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626 $as_echo "no" >&6; }
17627 as_fn_error $?
"*** Cannot locate ioctl() definition" "$LINENO" 5
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17630 $as_echo "yes" >&6; }
17636 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17637 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
17640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17643 *** zlib.h missing, zlib-devel package required
17644 See \`config.log' for more details" "$LINENO" 5 ; }
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
17650 $as_echo_n "checking for compress2 in -lz... " >&6; }
17651 if test "${ac_cv_lib_z_compress2+set}" = set; then :
17652 $as_echo_n "(cached) " >&6
17654 ac_check_lib_save_LIBS
=$LIBS
17656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17669 return compress2 ();
17674 if ac_fn_c_try_link
"$LINENO"; then :
17675 ac_cv_lib_z_compress2
=yes
17677 ac_cv_lib_z_compress2
=no
17679 rm -f core conftest.err conftest.
$ac_objext \
17680 conftest
$ac_exeext conftest.
$ac_ext
17681 LIBS
=$ac_check_lib_save_LIBS
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
17684 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17685 if test "x$ac_cv_lib_z_compress2" = x
""yes; then :
17686 cat >>confdefs.h
<<_ACEOF
17687 #define HAVE_LIBZ 1
17693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17696 *** compress2() missing, zlib-devel package required
17697 See \`config.log' for more details" "$LINENO" 5 ; }
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
17702 $as_echo_n "checking for uncompress in -lz... " >&6; }
17703 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17706 ac_check_lib_save_LIBS
=$LIBS
17708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17711 /* Override any GCC internal prototype to avoid an error.
17712 Use char because int might match the return type of a GCC
17713 builtin and then its argument prototype would still apply. */
17717 char uncompress ();
17721 return uncompress ();
17726 if ac_fn_c_try_link
"$LINENO"; then :
17727 ac_cv_lib_z_uncompress
=yes
17729 ac_cv_lib_z_uncompress
=no
17731 rm -f core conftest.err conftest.
$ac_objext \
17732 conftest
$ac_exeext conftest.
$ac_ext
17733 LIBS
=$ac_check_lib_save_LIBS
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
17736 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17737 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then :
17738 cat >>confdefs.h
<<_ACEOF
17739 #define HAVE_LIBZ 1
17745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17748 *** uncompress() missing, zlib-devel package required
17749 See \`config.log' for more details" "$LINENO" 5 ; }
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17754 $as_echo_n "checking for crc32 in -lz... " >&6; }
17755 if test "${ac_cv_lib_z_crc32+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17758 ac_check_lib_save_LIBS
=$LIBS
17760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17763 /* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17778 if ac_fn_c_try_link
"$LINENO"; then :
17779 ac_cv_lib_z_crc32
=yes
17781 ac_cv_lib_z_crc32
=no
17783 rm -f core conftest.err conftest.
$ac_objext \
17784 conftest
$ac_exeext conftest.
$ac_ext
17785 LIBS
=$ac_check_lib_save_LIBS
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17788 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17789 if test "x$ac_cv_lib_z_crc32" = x
""yes; then :
17790 cat >>confdefs.h
<<_ACEOF
17791 #define HAVE_LIBZ 1
17797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17800 *** crc32() missing, zlib-devel package required
17801 See \`config.log' for more details" "$LINENO" 5 ; }
17808 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17814 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17815 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then :
17818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17821 *** uuid/uuid.h missing, libuuid-devel package required
17822 See \`config.log' for more details" "$LINENO" 5 ; }
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17828 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17829 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17832 ac_check_lib_save_LIBS
=$LIBS
17833 LIBS
="-luuid $LIBS"
17834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17837 /* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17843 char uuid_generate ();
17847 return uuid_generate ();
17852 if ac_fn_c_try_link
"$LINENO"; then :
17853 ac_cv_lib_uuid_uuid_generate
=yes
17855 ac_cv_lib_uuid_uuid_generate
=no
17857 rm -f core conftest.err conftest.
$ac_objext \
17858 conftest
$ac_exeext conftest.
$ac_ext
17859 LIBS
=$ac_check_lib_save_LIBS
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17862 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17863 if test "x$ac_cv_lib_uuid_uuid_generate" = x
""yes; then :
17864 cat >>confdefs.h
<<_ACEOF
17865 #define HAVE_LIBUUID 1
17868 LIBS
="-luuid $LIBS"
17871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17874 *** uuid_generate() missing, libuuid-devel package required
17875 See \`config.log' for more details" "$LINENO" 5 ; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
17880 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17881 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
17882 $as_echo_n "(cached) " >&6
17884 ac_check_lib_save_LIBS
=$LIBS
17885 LIBS
="-luuid $LIBS"
17886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17889 /* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17895 char uuid_is_null ();
17899 return uuid_is_null ();
17904 if ac_fn_c_try_link
"$LINENO"; then :
17905 ac_cv_lib_uuid_uuid_is_null
=yes
17907 ac_cv_lib_uuid_uuid_is_null
=no
17909 rm -f core conftest.err conftest.
$ac_objext \
17910 conftest
$ac_exeext conftest.
$ac_ext
17911 LIBS
=$ac_check_lib_save_LIBS
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17914 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17915 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then :
17916 cat >>confdefs.h
<<_ACEOF
17917 #define HAVE_LIBUUID 1
17920 LIBS
="-luuid $LIBS"
17923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17926 *** uuid_is_null() missing, libuuid-devel package required
17927 See \`config.log' for more details" "$LINENO" 5 ; }
17934 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17939 # Check whether --with-blkid was given.
17940 if test "${with_blkid+set}" = set; then :
17941 withval
=$with_blkid;
17948 if test "x$with_blkid" != xno
; then :
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
17951 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17952 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17955 ac_check_lib_save_LIBS
=$LIBS
17956 LIBS
="-lblkid $LIBS"
17957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17966 char blkid_get_cache ();
17970 return blkid_get_cache ();
17975 if ac_fn_c_try_link
"$LINENO"; then :
17976 ac_cv_lib_blkid_blkid_get_cache
=yes
17978 ac_cv_lib_blkid_blkid_get_cache
=no
17980 rm -f core conftest.err conftest.
$ac_objext \
17981 conftest
$ac_exeext conftest.
$ac_ext
17982 LIBS
=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17985 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17986 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then :
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
17989 $as_echo_n "checking for blkid zfs support... " >&6; }
17992 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
17993 >/dev
/null
2>/dev
/null
17994 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17995 dd of
=$ZFS_DEV bs
=1k count
=8 \
17996 seek
=132 conv
=notrunc
&>/dev
/null \
17997 >/dev
/null
2>/dev
/null
17999 saved_LDFLAGS
="$LDFLAGS"
18002 if test "$cross_compiling" = yes; then :
18003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18005 as_fn_error $?
"cannot run test program while cross compiling
18006 See \`config.log' for more details" "$LINENO" 5 ; }
18008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18012 #include <blkid/blkid.h>
18021 if (blkid_get_cache(&cache, NULL) < 0)
18024 value = blkid_get_tag_value(cache, "TYPE",
18027 blkid_put_cache(cache);
18031 if (strcmp(value, "zfs")) {
18033 blkid_put_cache(cache);
18038 blkid_put_cache(cache);
18044 if ac_fn_c_try_run
"$LINENO"; then :
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18048 $as_echo "yes" >&6; }
18052 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18059 $as_echo "no" >&6; }
18060 if test "x$with_blkid" != xcheck
; then :
18061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18063 as_fn_error $?
"--with-blkid given but unavailable
18064 See \`config.log' for more details" "$LINENO" 5 ; }
18068 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18069 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18073 LDFLAGS
="$saved_LDFLAGS"
18077 if test "x$with_blkid" != xcheck
; then :
18078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18080 as_fn_error $?
"--with-blkid given but unavailable
18081 See \`config.log' for more details" "$LINENO" 5 ; }
18092 # Check whether --with-selinux was given.
18093 if test "${with_selinux+set}" = set; then :
18094 withval
=$with_selinux;
18101 if test "x$with_selinux" != xno
; then :
18103 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
18104 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
18107 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
18108 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18111 ac_check_lib_save_LIBS
=$LIBS
18112 LIBS
="-lselinux $LIBS"
18113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18122 char is_selinux_enabled ();
18126 return is_selinux_enabled ();
18131 if ac_fn_c_try_link
"$LINENO"; then :
18132 ac_cv_lib_selinux_is_selinux_enabled
=yes
18134 ac_cv_lib_selinux_is_selinux_enabled
=no
18136 rm -f core conftest.err conftest.
$ac_objext \
18137 conftest
$ac_exeext conftest.
$ac_ext
18138 LIBS
=$ac_check_lib_save_LIBS
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18141 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
18142 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
18144 LIBSELINUX
="-lselinux"
18147 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18152 if test "x$with_selinux" != xcheck
; then :
18153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18155 as_fn_error $?
"--with-selinux given but unavailable
18156 See \`config.log' for more details" "$LINENO" 5 ; }
18165 if test "x$with_selinux" != xcheck
; then :
18166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18168 as_fn_error $?
"--with-selinux given but unavailable
18169 See \`config.log' for more details" "$LINENO" 5 ; }
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
18180 $as_echo_n "checking for selinux support... " >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
18188 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
18190 saved_flags
="$CFLAGS"
18191 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
18193 if test "$cross_compiling" = yes; then :
18194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18196 as_fn_error $?
"cannot run test program while cross compiling
18197 See \`config.log' for more details" "$LINENO" 5 ; }
18199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18210 if ac_fn_c_try_run
"$LINENO"; then :
18212 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18228 CFLAGS
="$saved_flags"
18235 # Check whether --with-linux was given.
18236 if test "${with_linux+set}" = set; then :
18237 withval
=$with_linux; kernelsrc
="$withval"
18242 # Check whether --with-linux-obj was given.
18243 if test "${with_linux_obj+set}" = set; then :
18244 withval
=$with_linux_obj; kernelbuild
="$withval"
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
18249 $as_echo_n "checking kernel source directory... " >&6; }
18250 if test -z "$kernelsrc"; then :
18252 if test -e "/lib/modules/$(uname -r)/source"; then :
18254 headersdir
="/lib/modules/$(uname -r)/source"
18255 sourcelink
=$
(readlink
-f "$headersdir")
18257 elif test -e "/lib/modules/$(uname -r)/build"; then :
18259 headersdir
="/lib/modules/$(uname -r)/build"
18260 sourcelink
=$
(readlink
-f "$headersdir")
18264 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
18266 2>/dev
/null |
grep -v obj |
tail -1)
18270 if test -n "$sourcelink" && test -e ${sourcelink}; then :
18272 kernelsrc
=`readlink -f ${sourcelink}`
18276 kernelsrc
="Not found"
18282 if test "$kernelsrc" = "NONE"; then :
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
18291 $as_echo "$kernelsrc" >&6; }
18292 if test ! -d "$kernelsrc"; then :
18295 *** Please make sure the kernel devel package for your distribution
18296 *** is installed and then try again. If that fails, you can specify the
18297 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
18302 $as_echo_n "checking kernel build directory... " >&6; }
18303 if test -z "$kernelbuild"; then :
18305 if test -e "/lib/modules/$(uname -r)/build"; then :
18307 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
18309 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
18311 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18313 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
18315 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
18317 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
18319 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
18323 kernelbuild
=${kernelsrc}
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
18329 $as_echo "$kernelbuild" >&6; }
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
18332 $as_echo_n "checking kernel source version... " >&6; }
18333 utsrelease1
=$kernelbuild/include
/linux
/version.h
18334 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
18335 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
18336 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
18338 utsrelease
=linux
/version.h
18340 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
18342 utsrelease
=linux
/utsrelease.h
18344 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
18346 utsrelease
=generated
/utsrelease.h
18350 if test "$utsrelease"; then :
18352 kernsrcver
=`(echo "#include <$utsrelease>";
18353 echo "kernsrcver=UTS_RELEASE") |
18354 cpp -I $kernelbuild/include |
18355 grep "^kernsrcver=" | cut -d \" -f 2`
18357 if test -z "$kernsrcver"; then :
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18360 $as_echo "Not found" >&6; }
18361 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18368 $as_echo "Not found" >&6; }
18369 if test "x$enable_linux_builtin" != xyes
; then
18370 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
18373 *** Cannot find UTS_RELEASE definition.
18374 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
18380 $as_echo "$kernsrcver" >&6; }
18383 LINUX_OBJ
=${kernelbuild}
18384 LINUX_VERSION
=${kernsrcver}
18391 modpost
=$LINUX/scripts
/Makefile.modpost
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
18393 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18394 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
18396 if grep -q Modules.symvers
$modpost; then :
18398 LINUX_SYMBOLS
=Modules.symvers
18402 LINUX_SYMBOLS
=Module.symvers
18406 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
18409 *** Please make sure the kernel devel package for your distribution
18410 *** is installed. If you are building with a custom kernel, make sure the
18411 *** kernel is configured, built, and the '--with-linux=PATH' configure
18412 *** option refers to the location of the kernel source." "$LINENO" 5
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
18422 $as_echo "$LINUX_SYMBOLS" >&6; }
18428 # Check whether --with-spl was given.
18429 if test "${with_spl+set}" = set; then :
18430 withval
=$with_spl; splsrc
="$withval"
18435 # Check whether --with-spl-obj was given.
18436 if test "${with_spl_obj+set}" = set; then :
18437 withval
=$with_spl_obj; splbuild
="$withval"
18442 # Check whether --with-spl-timeout was given.
18443 if test "${with_spl_timeout+set}" = set; then :
18444 withval
=$with_spl_timeout; timeout
="$withval"
18450 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
18451 splsrc1
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
18452 splsrc2
="/usr/src/spl-${VERSION}"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
18457 $as_echo_n "checking spl source directory... " >&6; }
18458 if test -z "${splsrc}"; then :
18460 if test -e "${splsrc0}/spl.release.in"; then :
18464 elif test -e "${splsrc1}/spl.release.in"; then :
18468 elif test -e "${splsrc2}/spl.release.in"; then :
18472 elif test -e "${splsrc3}/spl.release.in"; then :
18474 splsrc
=$
(readlink
-f "${splsrc3}")
18476 elif test -e "${splsrc4}/spl.release.in" ; then :
18488 if test "$splsrc" = "NONE"; then :
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
18498 $as_echo "$splsrc" >&6; }
18499 if test ! -e "$splsrc/spl.release.in"; then :
18502 *** Please make sure the kmod spl devel package for your distribution
18503 *** is installed then try again. If that fails you can specify the
18504 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
18509 $as_echo_n "checking spl build directory... " >&6; }
18511 if test -z "$splbuild"; then :
18513 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
18515 splbuild
="${splsrc}/${LINUX_VERSION}"
18517 elif test -e "${splsrc}/spl_config.h" ; then :
18519 splbuild
="${splsrc}"
18523 splbuild
="Not found"
18528 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
18535 timeout
=$
((timeout-1
))
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
18541 $as_echo "$splbuild" >&6; }
18542 if ! test -e "$splbuild/spl_config.h"; then :
18545 *** Please make sure the kmod spl devel <kernel> package for your
18546 *** distribution is installed then try again. If that fails you
18547 *** can specify the location of the spl objects with the
18548 *** '--with-spl-obj=PATH' option." "$LINENO" 5
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
18553 $as_echo_n "checking spl source version... " >&6; }
18554 if test -r $splbuild/spl_config.h
&&
18555 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
18558 splsrcver
=`(echo "#include <spl_config.h>";
18559 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18561 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18565 if test -z "$splsrcver"; then :
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18568 $as_echo "Not found" >&6; }
18570 *** Cannot determine the version of the spl source.
18571 *** Please prepare the spl source before running this script" "$LINENO" 5
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
18576 $as_echo "$splsrcver" >&6; }
18579 SPL_OBJ
=${splbuild}
18580 SPL_VERSION
=${splsrcver}
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
18587 $as_echo_n "checking spl file name for module symbols... " >&6; }
18591 if test -r $SPL_OBJ/Module.symvers
; then :
18593 SPL_SYMBOLS
=Module.symvers
18595 elif test -r $SPL_OBJ/Modules.symvers
; then :
18597 SPL_SYMBOLS
=Modules.symvers
18599 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
18601 SPL_SYMBOLS
=Module.symvers
18603 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
18605 SPL_SYMBOLS
=Modules.symvers
18609 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
18616 timeout
=$
((timeout-1
))
18621 if test "$SPL_SYMBOLS" = NONE
; then :
18623 SPL_SYMBOLS
=$LINUX_SYMBOLS
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
18628 $as_echo "$SPL_SYMBOLS" >&6; }
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
18632 $as_echo_n "checking whether modules can be built... " >&6; }
18635 cat confdefs.h
- <<_ACEOF >conftest.c
18649 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18650 echo "obj-m := conftest.o" >build
/Makefile
18652 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18653 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18655 (eval $ac_try) 2>&5
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18660 (eval $ac_try) 2>&5
18662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18663 test $ac_status = 0; }; }; then :
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18666 $as_echo "yes" >&6; }
18669 $as_echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.
$ac_ext >&5
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673 $as_echo "no" >&6; }
18674 if test "x$enable_linux_builtin" != xyes
; then
18675 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
18678 *** Unable to build an empty module.
18679 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
18691 if test "$ZFS_META_LICENSE" = GPL
; then :
18694 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18702 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18705 cat confdefs.h
- <<_ACEOF >conftest.c
18708 #include <linux/module.h>
18714 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18715 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18725 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18726 echo "obj-m := conftest.o" >build
/Makefile
18728 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18729 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18731 (eval $ac_try) 2>&5
18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18736 (eval $ac_try) 2>&5
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; }; then :
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742 $as_echo "yes" >&6; }
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
18745 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
18746 tmp_flags
="$EXTRA_KCFLAGS"
18749 cat confdefs.h
- <<_ACEOF >conftest.c
18752 #include <linux/module.h>
18753 #include <linux/mutex.h>
18755 MODULE_LICENSE("$ZFS_META_LICENSE");
18765 mutex_unlock(&lock);
18774 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18775 echo "obj-m := conftest.o" >build
/Makefile
18777 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18778 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18780 (eval $ac_try) 2>&5
18782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18783 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18785 (eval $ac_try) 2>&5
18787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788 test $ac_status = 0; }; }; then :
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791 $as_echo "no" >&6; }
18794 $as_echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.
$ac_ext >&5
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798 $as_echo "yes" >&6; }
18800 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18801 *** with the CDDL license and will prevent the module linking stage
18802 *** from succeeding. You must rebuild your kernel without this
18803 *** option enabled." "$LINENO" 5
18811 EXTRA_KCFLAGS
="$tmp_flags"
18815 $as_echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.
$ac_ext >&5
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
18833 $as_echo_n "checking block device operation prototypes... " >&6; }
18834 tmp_flags
="$EXTRA_KCFLAGS"
18835 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
18838 cat confdefs.h
- <<_ACEOF >conftest.c
18841 #include <linux/blkdev.h>
18843 int blk_open(struct block_device *bdev, fmode_t mode)
18845 int blk_ioctl(struct block_device *bdev, fmode_t mode,
18846 unsigned x, unsigned long y) { return 0; }
18847 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
18848 unsigned x, unsigned long y) { return 0; }
18850 static const struct block_device_operations
18851 bops __attribute__ ((unused)) = {
18854 .ioctl = blk_ioctl,
18855 .compat_ioctl = blk_compat_ioctl,
18870 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18871 echo "obj-m := conftest.o" >build
/Makefile
18873 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18874 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18876 (eval $ac_try) 2>&5
18878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18879 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18881 (eval $ac_try) 2>&5
18883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18884 test $ac_status = 0; }; }; then :
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
18887 $as_echo "struct block_device" >&6; }
18889 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
18893 $as_echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.
$ac_ext >&5
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
18897 $as_echo "struct inode" >&6; }
18905 EXTRA_KCFLAGS
="$tmp_flags"
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
18909 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
18910 tmp_flags
="$EXTRA_KCFLAGS"
18911 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
18914 cat confdefs.h
- <<_ACEOF >conftest.c
18917 #include <linux/blkdev.h>
18919 void blk_release(struct gendisk *g, fmode_t mode) { return; }
18921 static const struct block_device_operations
18922 bops __attribute__ ((unused)) = {
18924 .release = blk_release,
18926 .compat_ioctl = NULL,
18941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18942 echo "obj-m := conftest.o" >build
/Makefile
18944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18945 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18947 (eval $ac_try) 2>&5
18949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; }; then :
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18958 $as_echo "void" >&6; }
18960 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
18964 $as_echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.
$ac_ext >&5
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18968 $as_echo "int" >&6; }
18976 EXTRA_KCFLAGS
="$tmp_flags"
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
18979 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18982 cat confdefs.h
- <<_ACEOF >conftest.c
18985 #include <linux/types.h>
18991 fmode_t *ptr __attribute__ ((unused));
19000 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19001 echo "obj-m := conftest.o" >build
/Makefile
19003 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19004 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19006 (eval $ac_try) 2>&5
19008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19009 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19011 (eval $ac_try) 2>&5
19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }; }; then :
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19017 $as_echo "yes" >&6; }
19019 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
19023 $as_echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.
$ac_ext >&5
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
19038 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
19041 cat confdefs.h
- <<_ACEOF >conftest.c
19044 #include <linux/kobject.h>
19050 int val __attribute__ ((unused));
19051 val = KOBJ_NAME_LEN;
19060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19061 echo "obj-m := conftest.o" >build
/Makefile
19063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19064 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19066 (eval $ac_try) 2>&5
19068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19071 (eval $ac_try) 2>&5
19073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19074 test $ac_status = 0; }; }; then :
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19077 $as_echo "yes" >&6; }
19079 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
19083 $as_echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.
$ac_ext >&5
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
19098 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
19101 cat confdefs.h
- <<_ACEOF >conftest.c
19104 #include <linux/fs.h>
19110 struct block_device *bdev = NULL;
19111 (void) blkdev_get(bdev, 0, NULL);
19120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19121 echo "obj-m := conftest.o" >build
/Makefile
19123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19124 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19126 (eval $ac_try) 2>&5
19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19131 (eval $ac_try) 2>&5
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; }; }; then :
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19137 $as_echo "yes" >&6; }
19139 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
19143 $as_echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.
$ac_ext >&5
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19147 $as_echo "no" >&6; }
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
19157 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
19161 cat confdefs.h
- <<_ACEOF >conftest.c
19164 #include <linux/fs.h>
19170 blkdev_get_by_path(NULL, 0, NULL);
19179 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19180 echo "obj-m := conftest.o" >build
/Makefile
19182 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19183 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19185 (eval $ac_try) 2>&5
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19190 (eval $ac_try) 2>&5
19192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19193 test $ac_status = 0; }; }; then :
19196 $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.
$ac_ext >&5
19205 if test $rc -ne 0; then :
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19211 if test "x$enable_linux_builtin" != xyes
; then
19213 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
19214 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19216 if test $rc -ne 0; then
19218 for file in fs
/block_dev.c
; do
19219 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
19220 "$LINUX/$file" 2>/dev
/null
19222 if test $rc -eq 0; then
19227 if test $export -eq 0; then :
19237 if test $rc -ne 0; then :
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240 $as_echo "no" >&6; }
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245 $as_echo "yes" >&6; }
19247 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
19255 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
19259 cat confdefs.h
- <<_ACEOF >conftest.c
19262 #include <linux/fs.h>
19268 open_bdev_exclusive(NULL, 0, NULL);
19277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19278 echo "obj-m := conftest.o" >build
/Makefile
19280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19281 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19283 (eval $ac_try) 2>&5
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19288 (eval $ac_try) 2>&5
19290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291 test $ac_status = 0; }; }; then :
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19303 if test $rc -ne 0; then :
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306 $as_echo "no" >&6; }
19309 if test "x$enable_linux_builtin" != xyes
; then
19311 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
19312 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19314 if test $rc -ne 0; then
19316 for file in fs
/block_dev.c
; do
19317 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
19318 "$LINUX/$file" 2>/dev
/null
19320 if test $rc -eq 0; then
19325 if test $export -eq 0; then :
19335 if test $rc -ne 0; then :
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 $as_echo "no" >&6; }
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343 $as_echo "yes" >&6; }
19345 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
19353 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
19357 cat confdefs.h
- <<_ACEOF >conftest.c
19360 #include <linux/fs.h>
19375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19376 echo "obj-m := conftest.o" >build
/Makefile
19378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19379 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19381 (eval $ac_try) 2>&5
19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19386 (eval $ac_try) 2>&5
19388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19389 test $ac_status = 0; }; }; then :
19392 $as_echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.
$ac_ext >&5
19401 if test $rc -ne 0; then :
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 $as_echo "no" >&6; }
19407 if test "x$enable_linux_builtin" != xyes
; then
19409 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
19410 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19412 if test $rc -ne 0; then
19414 for file in fs
/block_dev.c
; do
19415 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
19416 "$LINUX/$file" 2>/dev
/null
19418 if test $rc -eq 0; then
19423 if test $export -eq 0; then :
19433 if test $rc -ne 0; then :
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436 $as_echo "no" >&6; }
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441 $as_echo "yes" >&6; }
19443 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
19452 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19455 cat confdefs.h
- <<_ACEOF >conftest.c
19458 #include <linux/buffer_head.h>
19464 struct block_device *bdev = NULL;
19465 invalidate_bdev(bdev);
19474 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19475 echo "obj-m := conftest.o" >build
/Makefile
19477 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19478 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19480 (eval $ac_try) 2>&5
19482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19485 (eval $ac_try) 2>&5
19487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19488 test $ac_status = 0; }; }; then :
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491 $as_echo "yes" >&6; }
19493 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
19497 $as_echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.
$ac_ext >&5
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19501 $as_echo "no" >&6; }
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
19512 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19513 tmp_flags
="$EXTRA_KCFLAGS"
19514 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19517 cat confdefs.h
- <<_ACEOF >conftest.c
19520 #include <linux/blkdev.h>
19526 struct block_device *bdev = NULL;
19527 bdev_logical_block_size(bdev);
19536 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19537 echo "obj-m := conftest.o" >build
/Makefile
19539 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19540 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19542 (eval $ac_try) 2>&5
19544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19545 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19547 (eval $ac_try) 2>&5
19549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19550 test $ac_status = 0; }; }; then :
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19555 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
19559 $as_echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.
$ac_ext >&5
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19563 $as_echo "no" >&6; }
19571 EXTRA_KCFLAGS
="$tmp_flags"
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
19575 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
19576 tmp_flags
="$EXTRA_KCFLAGS"
19577 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19580 cat confdefs.h
- <<_ACEOF >conftest.c
19583 #include <linux/blkdev.h>
19589 struct block_device *bdev = NULL;
19590 bdev_physical_block_size(bdev);
19599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19600 echo "obj-m := conftest.o" >build
/Makefile
19602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19603 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19605 (eval $ac_try) 2>&5
19607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19608 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19610 (eval $ac_try) 2>&5
19612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19613 test $ac_status = 0; }; }; then :
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19616 $as_echo "yes" >&6; }
19618 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
19622 $as_echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.
$ac_ext >&5
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626 $as_echo "no" >&6; }
19634 EXTRA_KCFLAGS
="$tmp_flags"
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
19638 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19641 cat confdefs.h
- <<_ACEOF >conftest.c
19644 #include <linux/bio.h>
19650 int flags __attribute__ ((unused));
19651 flags = (1 << BIO_RW_FAILFAST);
19660 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19661 echo "obj-m := conftest.o" >build
/Makefile
19663 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19664 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19666 (eval $ac_try) 2>&5
19668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19669 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19671 (eval $ac_try) 2>&5
19673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19674 test $ac_status = 0; }; }; then :
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677 $as_echo "yes" >&6; }
19679 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
19683 $as_echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.
$ac_ext >&5
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687 $as_echo "no" >&6; }
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
19698 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19701 cat confdefs.h
- <<_ACEOF >conftest.c
19704 #include <linux/bio.h>
19710 int flags __attribute__ ((unused));
19711 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19712 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19713 (1 << BIO_RW_FAILFAST_DRIVER));
19722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19723 echo "obj-m := conftest.o" >build
/Makefile
19725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19726 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19728 (eval $ac_try) 2>&5
19730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19733 (eval $ac_try) 2>&5
19735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19736 test $ac_status = 0; }; }; then :
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19739 $as_echo "yes" >&6; }
19741 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
19745 $as_echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.
$ac_ext >&5
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749 $as_echo "no" >&6; }
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
19760 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19763 cat confdefs.h
- <<_ACEOF >conftest.c
19766 #include <linux/bio.h>
19772 int flags __attribute__ ((unused));
19773 flags = REQ_FAILFAST_MASK;
19782 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19783 echo "obj-m := conftest.o" >build
/Makefile
19785 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19786 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19788 (eval $ac_try) 2>&5
19790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19791 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19793 (eval $ac_try) 2>&5
19795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19796 test $ac_status = 0; }; }; then :
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799 $as_echo "yes" >&6; }
19801 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.
$ac_ext >&5
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
19820 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19823 cat confdefs.h
- <<_ACEOF >conftest.c
19826 #include <linux/bio.h>
19828 void wanted_end_io(struct bio *bio, int x) { return; }
19830 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
19844 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19845 echo "obj-m := conftest.o" >build
/Makefile
19847 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19848 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19850 (eval $ac_try) 2>&5
19852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19853 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19855 (eval $ac_try) 2>&5
19857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19858 test $ac_status = 0; }; }; then :
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861 $as_echo "yes" >&6; }
19863 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
19867 $as_echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.
$ac_ext >&5
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19871 $as_echo "no" >&6; }
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
19882 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19885 cat confdefs.h
- <<_ACEOF >conftest.c
19888 #include <linux/bio.h>
19894 int flags __attribute__ ((unused));
19895 flags = BIO_RW_SYNC;
19904 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19905 echo "obj-m := conftest.o" >build
/Makefile
19907 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19908 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19910 (eval $ac_try) 2>&5
19912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19913 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19915 (eval $ac_try) 2>&5
19917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19918 test $ac_status = 0; }; }; then :
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19921 $as_echo "yes" >&6; }
19923 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
19927 $as_echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19931 $as_echo "no" >&6; }
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
19942 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19945 cat confdefs.h
- <<_ACEOF >conftest.c
19948 #include <linux/bio.h>
19954 int flags __attribute__ ((unused));
19955 flags = BIO_RW_SYNCIO;
19964 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19965 echo "obj-m := conftest.o" >build
/Makefile
19967 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19968 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19970 (eval $ac_try) 2>&5
19972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19973 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19975 (eval $ac_try) 2>&5
19977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19978 test $ac_status = 0; }; }; then :
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19981 $as_echo "yes" >&6; }
19983 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
19987 $as_echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.
$ac_ext >&5
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
20002 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
20005 cat confdefs.h
- <<_ACEOF >conftest.c
20008 #include <linux/bio.h>
20014 int flags __attribute__ ((unused));
20024 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20025 echo "obj-m := conftest.o" >build
/Makefile
20027 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20028 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20030 (eval $ac_try) 2>&5
20032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20033 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20035 (eval $ac_try) 2>&5
20037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038 test $ac_status = 0; }; }; then :
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20041 $as_echo "yes" >&6; }
20043 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
20047 $as_echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.
$ac_ext >&5
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051 $as_echo "no" >&6; }
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
20062 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
20063 tmp_flags
="$EXTRA_KCFLAGS"
20064 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20067 cat confdefs.h
- <<_ACEOF >conftest.c
20070 #include <linux/blkdev.h>
20076 struct request *req = NULL;
20077 (void) blk_end_request(req, 0, 0);
20086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20087 echo "obj-m := conftest.o" >build
/Makefile
20089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20090 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20105 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.
$ac_ext >&5
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
20123 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
20126 cat confdefs.h
- <<_ACEOF >conftest.c
20129 #include <linux/module.h>
20130 #include <linux/blkdev.h>
20132 MODULE_LICENSE("CDDL");
20138 struct request *req = NULL;
20139 (void) blk_end_request(req, 0, 0);
20148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20149 echo "obj-m := conftest.o" >build
/Makefile
20151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20152 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20154 (eval $ac_try) 2>&5
20156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20159 (eval $ac_try) 2>&5
20161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20162 test $ac_status = 0; }; }; then :
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20168 $as_echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.
$ac_ext >&5
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20172 $as_echo "yes" >&6; }
20174 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
20183 EXTRA_KCFLAGS
="$tmp_flags"
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
20187 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
20188 tmp_flags
="$EXTRA_KCFLAGS"
20189 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20192 cat confdefs.h
- <<_ACEOF >conftest.c
20195 #include <linux/blkdev.h>
20201 struct request_queue *q = NULL;
20202 (void) blk_queue_flush(q, REQ_FLUSH);
20211 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20212 echo "obj-m := conftest.o" >build
/Makefile
20214 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20215 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20217 (eval $ac_try) 2>&5
20219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20222 (eval $ac_try) 2>&5
20224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20225 test $ac_status = 0; }; }; then :
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 $as_echo "yes" >&6; }
20230 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
20234 $as_echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.
$ac_ext >&5
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238 $as_echo "no" >&6; }
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
20248 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
20251 cat confdefs.h
- <<_ACEOF >conftest.c
20254 #include <linux/module.h>
20255 #include <linux/blkdev.h>
20257 MODULE_LICENSE("CDDL");
20263 struct request_queue *q = NULL;
20264 (void) blk_queue_flush(q, REQ_FLUSH);
20273 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20274 echo "obj-m := conftest.o" >build
/Makefile
20276 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20277 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20279 (eval $ac_try) 2>&5
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20284 (eval $ac_try) 2>&5
20286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287 test $ac_status = 0; }; }; then :
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290 $as_echo "no" >&6; }
20293 $as_echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.
$ac_ext >&5
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20297 $as_echo "yes" >&6; }
20299 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
20308 EXTRA_KCFLAGS
="$tmp_flags"
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
20312 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20313 tmp_flags
="$EXTRA_KCFLAGS"
20314 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20317 cat confdefs.h
- <<_ACEOF >conftest.c
20320 #include <linux/blkdev.h>
20326 struct request_queue *q = NULL;
20327 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20336 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20337 echo "obj-m := conftest.o" >build
/Makefile
20339 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20340 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20342 (eval $ac_try) 2>&5
20344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20345 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20347 (eval $ac_try) 2>&5
20349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20350 test $ac_status = 0; }; }; then :
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20353 $as_echo "yes" >&6; }
20355 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
20359 $as_echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.
$ac_ext >&5
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20363 $as_echo "no" >&6; }
20371 EXTRA_KCFLAGS
="$tmp_flags"
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
20375 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20376 tmp_flags
="$EXTRA_KCFLAGS"
20377 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20380 cat confdefs.h
- <<_ACEOF >conftest.c
20383 #include <linux/blkdev.h>
20389 struct request_queue *q = NULL;
20390 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20399 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20400 echo "obj-m := conftest.o" >build
/Makefile
20402 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20403 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20405 (eval $ac_try) 2>&5
20407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20408 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20410 (eval $ac_try) 2>&5
20412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20413 test $ac_status = 0; }; }; then :
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416 $as_echo "yes" >&6; }
20418 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
20422 $as_echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.
$ac_ext >&5
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426 $as_echo "no" >&6; }
20434 EXTRA_KCFLAGS
="$tmp_flags"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
20438 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20439 tmp_flags
="$EXTRA_KCFLAGS"
20440 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20443 cat confdefs.h
- <<_ACEOF >conftest.c
20446 #include <linux/blkdev.h>
20452 struct request_queue *q = NULL;
20453 unsigned short block_size = 1;
20454 (void) blk_queue_physical_block_size(q, block_size);
20463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20464 echo "obj-m := conftest.o" >build
/Makefile
20466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20467 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20469 (eval $ac_try) 2>&5
20471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20474 (eval $ac_try) 2>&5
20476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20477 test $ac_status = 0; }; }; then :
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480 $as_echo "yes" >&6; }
20482 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
20486 $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.
$ac_ext >&5
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20490 $as_echo "no" >&6; }
20498 EXTRA_KCFLAGS
="$tmp_flags"
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
20502 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20503 tmp_flags
="$EXTRA_KCFLAGS"
20504 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20507 cat confdefs.h
- <<_ACEOF >conftest.c
20510 #include <linux/blkdev.h>
20516 struct request_queue *q = NULL;
20517 unsigned int opt = 1;
20518 (void) blk_queue_io_opt(q, opt);
20527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20528 echo "obj-m := conftest.o" >build
/Makefile
20530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20531 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20533 (eval $ac_try) 2>&5
20535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20538 (eval $ac_try) 2>&5
20540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20541 test $ac_status = 0; }; }; then :
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20544 $as_echo "yes" >&6; }
20546 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
20550 $as_echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.
$ac_ext >&5
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20554 $as_echo "no" >&6; }
20562 EXTRA_KCFLAGS
="$tmp_flags"
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
20566 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20567 tmp_flags
="$EXTRA_KCFLAGS"
20568 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20571 cat confdefs.h
- <<_ACEOF >conftest.c
20574 #include <linux/blkdev.h>
20580 struct request_queue *q = NULL;
20581 (void) blk_queue_nonrot(q);
20590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20591 echo "obj-m := conftest.o" >build
/Makefile
20593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20594 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20596 (eval $ac_try) 2>&5
20598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20599 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20601 (eval $ac_try) 2>&5
20603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20604 test $ac_status = 0; }; }; then :
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20607 $as_echo "yes" >&6; }
20609 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
20613 $as_echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.
$ac_ext >&5
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20625 EXTRA_KCFLAGS
="$tmp_flags"
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
20629 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20630 tmp_flags
="$EXTRA_KCFLAGS"
20631 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20634 cat confdefs.h
- <<_ACEOF >conftest.c
20637 #include <linux/blkdev.h>
20643 struct request_queue *q = NULL;
20644 (void) blk_queue_discard(q);
20653 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20654 echo "obj-m := conftest.o" >build
/Makefile
20656 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20657 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20659 (eval $ac_try) 2>&5
20661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20662 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20664 (eval $ac_try) 2>&5
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; }; then :
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20670 $as_echo "yes" >&6; }
20672 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
20676 $as_echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.
$ac_ext >&5
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680 $as_echo "no" >&6; }
20688 EXTRA_KCFLAGS
="$tmp_flags"
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
20692 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20693 tmp_flags
="$EXTRA_KCFLAGS"
20694 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20697 cat confdefs.h
- <<_ACEOF >conftest.c
20700 #include <linux/blkdev.h>
20706 struct request_queue *q = NULL;
20707 (void) blk_fetch_request(q);
20716 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20717 echo "obj-m := conftest.o" >build
/Makefile
20719 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20720 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20727 (eval $ac_try) 2>&5
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }; }; then :
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733 $as_echo "yes" >&6; }
20735 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
20739 $as_echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.
$ac_ext >&5
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20751 EXTRA_KCFLAGS
="$tmp_flags"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
20755 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20756 tmp_flags
="$EXTRA_KCFLAGS"
20757 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20760 cat confdefs.h
- <<_ACEOF >conftest.c
20763 #include <linux/blkdev.h>
20769 struct request_queue *q = NULL;
20770 struct request *req = NULL;
20771 blk_requeue_request(q, req);
20780 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20781 echo "obj-m := conftest.o" >build
/Makefile
20783 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20784 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20786 (eval $ac_try) 2>&5
20788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20789 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20791 (eval $ac_try) 2>&5
20793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20794 test $ac_status = 0; }; }; then :
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797 $as_echo "yes" >&6; }
20799 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
20803 $as_echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.
$ac_ext >&5
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807 $as_echo "no" >&6; }
20815 EXTRA_KCFLAGS
="$tmp_flags"
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
20819 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20820 tmp_flags
="$EXTRA_KCFLAGS"
20821 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20824 cat confdefs.h
- <<_ACEOF >conftest.c
20827 #include <linux/blkdev.h>
20833 struct request *req = NULL;
20834 (void) blk_rq_bytes(req);
20843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20844 echo "obj-m := conftest.o" >build
/Makefile
20846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20847 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860 $as_echo "yes" >&6; }
20862 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.
$ac_ext >&5
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
20880 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20883 cat confdefs.h
- <<_ACEOF >conftest.c
20886 #include <linux/module.h>
20887 #include <linux/blkdev.h>
20889 MODULE_LICENSE("CDDL");
20895 struct request *req = NULL;
20896 (void) blk_rq_bytes(req);
20905 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20906 echo "obj-m := conftest.o" >build
/Makefile
20908 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20909 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20911 (eval $ac_try) 2>&5
20913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20914 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20916 (eval $ac_try) 2>&5
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }; }; then :
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922 $as_echo "no" >&6; }
20925 $as_echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.
$ac_ext >&5
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20929 $as_echo "yes" >&6; }
20931 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
20940 EXTRA_KCFLAGS
="$tmp_flags"
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
20944 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20945 tmp_flags
="$EXTRA_KCFLAGS"
20946 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20949 cat confdefs.h
- <<_ACEOF >conftest.c
20952 #include <linux/blkdev.h>
20958 struct request *req = NULL;
20959 (void) blk_rq_pos(req);
20968 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20969 echo "obj-m := conftest.o" >build
/Makefile
20971 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20972 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20974 (eval $ac_try) 2>&5
20976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20979 (eval $ac_try) 2>&5
20981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20982 test $ac_status = 0; }; }; then :
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985 $as_echo "yes" >&6; }
20987 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
20991 $as_echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.
$ac_ext >&5
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995 $as_echo "no" >&6; }
21003 EXTRA_KCFLAGS
="$tmp_flags"
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
21007 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
21008 tmp_flags
="$EXTRA_KCFLAGS"
21009 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
21012 cat confdefs.h
- <<_ACEOF >conftest.c
21015 #include <linux/blkdev.h>
21021 struct request *req = NULL;
21022 (void) blk_rq_sectors(req);
21031 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21032 echo "obj-m := conftest.o" >build
/Makefile
21034 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21035 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21037 (eval $ac_try) 2>&5
21039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21040 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21042 (eval $ac_try) 2>&5
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; }; }; then :
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21048 $as_echo "yes" >&6; }
21050 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
21054 $as_echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.
$ac_ext >&5
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058 $as_echo "no" >&6; }
21066 EXTRA_KCFLAGS
="$tmp_flags"
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
21070 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
21071 tmp_flags
="$EXTRA_KCFLAGS"
21072 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
21075 cat confdefs.h
- <<_ACEOF >conftest.c
21078 #include <linux/blkdev.h>
21084 struct gendisk *disk = NULL;
21085 (void) get_disk_ro(disk);
21094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21095 echo "obj-m := conftest.o" >build
/Makefile
21097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21098 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21100 (eval $ac_try) 2>&5
21102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21105 (eval $ac_try) 2>&5
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; }; then :
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21111 $as_echo "yes" >&6; }
21113 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
21117 $as_echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.
$ac_ext >&5
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21121 $as_echo "no" >&6; }
21129 EXTRA_KCFLAGS
="$tmp_flags"
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
21132 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
21136 cat confdefs.h
- <<_ACEOF >conftest.c
21139 #include <linux/genhd.h>
21145 get_gendisk(0, NULL);
21154 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21155 echo "obj-m := conftest.o" >build
/Makefile
21157 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21158 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21160 (eval $ac_try) 2>&5
21162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21163 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21165 (eval $ac_try) 2>&5
21167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21168 test $ac_status = 0; }; }; then :
21171 $as_echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.
$ac_ext >&5
21180 if test $rc -ne 0; then :
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183 $as_echo "no" >&6; }
21186 if test "x$enable_linux_builtin" != xyes
; then
21188 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
21189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21191 if test $rc -ne 0; then
21193 for file in block
/genhd.c
; do
21194 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
21195 "$LINUX/$file" 2>/dev
/null
21197 if test $rc -eq 0; then
21202 if test $export -eq 0; then :
21212 if test $rc -ne 0; then :
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21215 $as_echo "no" >&6; }
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21220 $as_echo "yes" >&6; }
21222 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
21231 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
21232 tmp_flags
="$EXTRA_KCFLAGS"
21233 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
21236 cat confdefs.h
- <<_ACEOF >conftest.c
21239 #include <linux/blkdev.h>
21245 struct request *req = NULL;
21246 (void) rq_is_sync(req);
21255 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21256 echo "obj-m := conftest.o" >build
/Makefile
21258 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21259 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21261 (eval $ac_try) 2>&5
21263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21264 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21266 (eval $ac_try) 2>&5
21268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21269 test $ac_status = 0; }; }; then :
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21272 $as_echo "yes" >&6; }
21274 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
21278 $as_echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.
$ac_ext >&5
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282 $as_echo "no" >&6; }
21290 EXTRA_KCFLAGS
="$tmp_flags"
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
21294 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21295 tmp_flags
="$EXTRA_KCFLAGS"
21296 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
21299 cat confdefs.h
- <<_ACEOF >conftest.c
21302 #include <linux/blkdev.h>
21308 struct bio_vec *bv;
21309 struct req_iterator iter;
21310 struct request *req = NULL;
21311 rq_for_each_segment(bv, req, iter) { }
21320 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21321 echo "obj-m := conftest.o" >build
/Makefile
21323 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21324 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21326 (eval $ac_try) 2>&5
21328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21329 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21331 (eval $ac_try) 2>&5
21333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21334 test $ac_status = 0; }; }; then :
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21337 $as_echo "yes" >&6; }
21339 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
21343 $as_echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.
$ac_ext >&5
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21347 $as_echo "no" >&6; }
21355 EXTRA_KCFLAGS
="$tmp_flags"
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
21359 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
21362 cat confdefs.h
- <<_ACEOF >conftest.c
21365 #include <linux/blkdev.h>
21371 struct queue_limits ql __attribute__ ((unused));
21373 ql.discard_granularity = 0;
21382 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21383 echo "obj-m := conftest.o" >build
/Makefile
21385 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21386 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21388 (eval $ac_try) 2>&5
21390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21391 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21393 (eval $ac_try) 2>&5
21395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21396 test $ac_status = 0; }; }; then :
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399 $as_echo "yes" >&6; }
21401 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
21405 $as_echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.
$ac_ext >&5
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21409 $as_echo "no" >&6; }
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
21419 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21422 cat confdefs.h
- <<_ACEOF >conftest.c
21425 #include <linux/fs.h>
21426 #include <linux/xattr.h>
21428 const struct xattr_handler xattr_test_handler = {
21434 const struct xattr_handler *xattr_handlers[] = {
21435 &xattr_test_handler,
21442 struct super_block sb __attribute__ ((unused));
21444 sb.s_xattr = xattr_handlers;
21453 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21454 echo "obj-m := conftest.o" >build
/Makefile
21456 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21457 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21459 (eval $ac_try) 2>&5
21461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21462 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21464 (eval $ac_try) 2>&5
21466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21467 test $ac_status = 0; }; }; then :
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21470 $as_echo "yes" >&6; }
21472 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
21476 $as_echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.
$ac_ext >&5
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21480 $as_echo "no" >&6; }
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
21491 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21494 cat confdefs.h
- <<_ACEOF >conftest.c
21497 #include <linux/xattr.h>
21503 int (*get)(struct dentry *dentry, const char *name,
21504 void *buffer, size_t size, int handler_flags) = NULL;
21505 struct xattr_handler xops __attribute__ ((unused));
21516 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21517 echo "obj-m := conftest.o" >build
/Makefile
21519 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21520 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21522 (eval $ac_try) 2>&5
21524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21525 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21527 (eval $ac_try) 2>&5
21529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21530 test $ac_status = 0; }; }; then :
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533 $as_echo "yes" >&6; }
21535 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
21539 $as_echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.
$ac_ext >&5
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 $as_echo "no" >&6; }
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
21554 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21557 cat confdefs.h
- <<_ACEOF >conftest.c
21560 #include <linux/xattr.h>
21566 int (*set)(struct dentry *dentry, const char *name,
21567 const void *buffer, size_t size, int flags,
21568 int handler_flags) = NULL;
21569 struct xattr_handler xops __attribute__ ((unused));
21580 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21581 echo "obj-m := conftest.o" >build
/Makefile
21583 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21584 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21586 (eval $ac_try) 2>&5
21588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21589 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21591 (eval $ac_try) 2>&5
21593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594 test $ac_status = 0; }; }; then :
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597 $as_echo "yes" >&6; }
21599 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
21603 $as_echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.
$ac_ext >&5
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21607 $as_echo "no" >&6; }
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
21618 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21622 cat confdefs.h
- <<_ACEOF >conftest.c
21625 #include <linux/fs.h>
21627 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21628 static struct super_operations sops __attribute__ ((unused)) = {
21629 .show_options = show_options,
21644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21645 echo "obj-m := conftest.o" >build
/Makefile
21647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21648 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21650 (eval $ac_try) 2>&5
21652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21653 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21655 (eval $ac_try) 2>&5
21657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21658 test $ac_status = 0; }; }; then :
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21663 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
21667 $as_echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.
$ac_ext >&5
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
21682 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21686 cat confdefs.h
- <<_ACEOF >conftest.c
21689 #include <linux/fs.h>
21691 int test_fsync(struct file *f, struct dentry *dentry, int x)
21694 static const struct file_operations
21695 fops __attribute__ ((unused)) = {
21696 .fsync = test_fsync,
21711 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21712 echo "obj-m := conftest.o" >build
/Makefile
21714 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21715 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21722 (eval $ac_try) 2>&5
21724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21725 test $ac_status = 0; }; }; then :
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
21728 $as_echo "dentry" >&6; }
21730 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
21734 $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.
$ac_ext >&5
21748 cat confdefs.h
- <<_ACEOF >conftest.c
21751 #include <linux/fs.h>
21753 int test_fsync(struct file *f, int x) { return 0; }
21755 static const struct file_operations
21756 fops __attribute__ ((unused)) = {
21757 .fsync = test_fsync,
21772 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21773 echo "obj-m := conftest.o" >build
/Makefile
21775 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21776 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21778 (eval $ac_try) 2>&5
21780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21781 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21783 (eval $ac_try) 2>&5
21785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21786 test $ac_status = 0; }; }; then :
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
21789 $as_echo "no dentry" >&6; }
21791 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
21795 $as_echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.
$ac_ext >&5
21809 cat confdefs.h
- <<_ACEOF >conftest.c
21812 #include <linux/fs.h>
21814 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21817 static const struct file_operations
21818 fops __attribute__ ((unused)) = {
21819 .fsync = test_fsync,
21834 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21835 echo "obj-m := conftest.o" >build
/Makefile
21837 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21838 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21840 (eval $ac_try) 2>&5
21842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21843 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21845 (eval $ac_try) 2>&5
21847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21848 test $ac_status = 0; }; }; then :
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
21851 $as_echo "range" >&6; }
21853 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
21857 $as_echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.
$ac_ext >&5
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
21871 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21874 cat confdefs.h
- <<_ACEOF >conftest.c
21877 #include <linux/fs.h>
21878 void evict_inode (struct inode * t) { return; }
21879 static struct super_operations sops __attribute__ ((unused)) = {
21880 .evict_inode = evict_inode,
21895 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21896 echo "obj-m := conftest.o" >build
/Makefile
21898 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21899 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901 (eval $ac_try) 2>&5
21903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21906 (eval $ac_try) 2>&5
21908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21909 test $ac_status = 0; }; }; then :
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21912 $as_echo "yes" >&6; }
21914 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
21918 $as_echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.
$ac_ext >&5
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21922 $as_echo "no" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
21933 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21936 cat confdefs.h
- <<_ACEOF >conftest.c
21939 #include <linux/fs.h>
21941 void dirty_inode(struct inode *a, int b) { return; }
21943 static const struct super_operations
21944 sops __attribute__ ((unused)) = {
21945 .dirty_inode = dirty_inode,
21960 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21961 echo "obj-m := conftest.o" >build
/Makefile
21963 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21964 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21966 (eval $ac_try) 2>&5
21968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21969 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21971 (eval $ac_try) 2>&5
21973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21974 test $ac_status = 0; }; }; then :
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21977 $as_echo "yes" >&6; }
21979 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
21983 $as_echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.
$ac_ext >&5
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
21998 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22001 cat confdefs.h
- <<_ACEOF >conftest.c
22004 #include <linux/fs.h>
22006 int nr_cached_objects(struct super_block *sb) { return 0; }
22008 static const struct super_operations
22009 sops __attribute__ ((unused)) = {
22010 .nr_cached_objects = nr_cached_objects,
22025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22026 echo "obj-m := conftest.o" >build
/Makefile
22028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22029 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22031 (eval $ac_try) 2>&5
22033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22034 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }; then :
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22042 $as_echo "yes" >&6; }
22044 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
22048 $as_echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.
$ac_ext >&5
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
22063 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22066 cat confdefs.h
- <<_ACEOF >conftest.c
22069 #include <linux/fs.h>
22071 void free_cached_objects(struct super_block *sb, int x)
22074 static const struct super_operations
22075 sops __attribute__ ((unused)) = {
22076 .free_cached_objects = free_cached_objects,
22091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22092 echo "obj-m := conftest.o" >build
/Makefile
22094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22095 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22102 (eval $ac_try) 2>&5
22104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22105 test $ac_status = 0; }; }; then :
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22108 $as_echo "yes" >&6; }
22110 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
22114 $as_echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.
$ac_ext >&5
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 $as_echo "no" >&6; }
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
22130 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22133 cat confdefs.h
- <<_ACEOF >conftest.c
22136 #include <linux/fs.h>
22138 long test_fallocate(struct file *file, int mode,
22139 loff_t offset, loff_t len) { return 0; }
22141 static const struct file_operations
22142 fops __attribute__ ((unused)) = {
22143 .fallocate = test_fallocate,
22158 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22159 echo "obj-m := conftest.o" >build
/Makefile
22161 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22162 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22164 (eval $ac_try) 2>&5
22166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22167 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22169 (eval $ac_try) 2>&5
22171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22172 test $ac_status = 0; }; }; then :
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175 $as_echo "yes" >&6; }
22177 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
22181 $as_echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.
$ac_ext >&5
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185 $as_echo "no" >&6; }
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
22196 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22199 cat confdefs.h
- <<_ACEOF >conftest.c
22202 #include <linux/fs.h>
22204 long test_fallocate(struct inode *inode, int mode,
22205 loff_t offset, loff_t len) { return 0; }
22207 static const struct inode_operations
22208 fops __attribute__ ((unused)) = {
22209 .fallocate = test_fallocate,
22224 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22225 echo "obj-m := conftest.o" >build
/Makefile
22227 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22228 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22230 (eval $ac_try) 2>&5
22232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22233 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22235 (eval $ac_try) 2>&5
22237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22238 test $ac_status = 0; }; }; then :
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22241 $as_echo "yes" >&6; }
22243 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
22247 $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.
$ac_ext >&5
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22251 $as_echo "no" >&6; }
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22263 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22266 cat confdefs.h
- <<_ACEOF >conftest.c
22269 #include <linux/fs.h>
22271 int mkdir(struct inode *inode, struct dentry *dentry,
22272 umode_t umode) { return 0; }
22274 static const struct inode_operations
22275 iops __attribute__ ((unused)) = {
22291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22292 echo "obj-m := conftest.o" >build
/Makefile
22294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22295 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22297 (eval $ac_try) 2>&5
22299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22300 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22302 (eval $ac_try) 2>&5
22304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22305 test $ac_status = 0; }; }; then :
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22308 $as_echo "yes" >&6; }
22310 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
22314 $as_echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.
$ac_ext >&5
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
22329 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
22332 cat confdefs.h
- <<_ACEOF >conftest.c
22335 #include <linux/fs.h>
22337 struct dentry *inode_lookup(struct inode *inode,
22338 struct dentry *dentry, struct nameidata *nidata)
22341 static const struct inode_operations iops
22342 __attribute__ ((unused)) = {
22343 .lookup = inode_lookup,
22358 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22359 echo "obj-m := conftest.o" >build
/Makefile
22361 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22362 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }; then :
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22375 $as_echo "yes" >&6; }
22377 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
22381 $as_echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.
$ac_ext >&5
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22385 $as_echo "no" >&6; }
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
22396 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
22399 cat confdefs.h
- <<_ACEOF >conftest.c
22402 #include <linux/fs.h>
22404 #ifdef HAVE_MKDIR_UMODE_T
22405 int inode_create(struct inode *inode ,struct dentry *dentry,
22406 umode_t umode, struct nameidata *nidata) { return 0; }
22408 int inode_create(struct inode *inode,struct dentry *dentry,
22409 int umode, struct nameidata * nidata) { return 0; }
22412 static const struct inode_operations
22413 iops __attribute__ ((unused)) = {
22414 .create = inode_create,
22429 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22430 echo "obj-m := conftest.o" >build
/Makefile
22432 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22433 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22435 (eval $ac_try) 2>&5
22437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22440 (eval $ac_try) 2>&5
22442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22443 test $ac_status = 0; }; }; then :
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22446 $as_echo "yes" >&6; }
22448 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
22452 $as_echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.
$ac_ext >&5
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22456 $as_echo "no" >&6; }
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
22467 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22470 cat confdefs.h
- <<_ACEOF >conftest.c
22473 #include <linux/fs.h>
22474 void truncate_range(struct inode *inode, loff_t start,
22475 loff_t end) { return; }
22476 static struct inode_operations iops __attribute__ ((unused)) = {
22477 .truncate_range = truncate_range,
22492 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22493 echo "obj-m := conftest.o" >build
/Makefile
22495 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22496 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22498 (eval $ac_try) 2>&5
22500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }; then :
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22509 $as_echo "yes" >&6; }
22511 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
22515 $as_echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.
$ac_ext >&5
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519 $as_echo "no" >&6; }
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
22530 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22533 cat confdefs.h
- <<_ACEOF >conftest.c
22536 #include <linux/dcache.h>
22537 struct vfsmount *d_automount(struct path *p) { return NULL; }
22538 struct dentry_operations dops __attribute__ ((unused)) = {
22539 .d_automount = d_automount,
22554 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22555 echo "obj-m := conftest.o" >build
/Makefile
22557 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22558 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; }; then :
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571 $as_echo "yes" >&6; }
22573 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
22577 $as_echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.
$ac_ext >&5
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22581 $as_echo "no" >&6; }
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
22592 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22595 cat confdefs.h
- <<_ACEOF >conftest.c
22598 #include <linux/exportfs.h>
22599 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22600 struct inode *parent) { return 0; }
22601 static struct export_operations eops __attribute__ ((unused))={
22602 .encode_fh = encode_fh,
22617 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22618 echo "obj-m := conftest.o" >build
/Makefile
22620 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22621 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }; then :
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22634 $as_echo "yes" >&6; }
22636 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.
$ac_ext >&5
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644 $as_echo "no" >&6; }
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
22655 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22658 cat confdefs.h
- <<_ACEOF >conftest.c
22661 #include <linux/exportfs.h>
22662 int commit_metadata(struct inode *inode) { return 0; }
22663 static struct export_operations eops __attribute__ ((unused))={
22664 .commit_metadata = commit_metadata,
22679 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22680 echo "obj-m := conftest.o" >build
/Makefile
22682 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22683 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685 (eval $ac_try) 2>&5
22687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }; then :
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696 $as_echo "yes" >&6; }
22698 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
22702 $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.
$ac_ext >&5
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706 $as_echo "no" >&6; }
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
22716 $as_echo_n "checking whether clear_inode() is available... " >&6; }
22720 cat confdefs.h
- <<_ACEOF >conftest.c
22723 #include <linux/fs.h>
22738 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22739 echo "obj-m := conftest.o" >build
/Makefile
22741 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22742 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }; then :
22755 $as_echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.
$ac_ext >&5
22764 if test $rc -ne 0; then :
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22767 $as_echo "no" >&6; }
22770 if test "x$enable_linux_builtin" != xyes
; then
22772 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22773 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22775 if test $rc -ne 0; then
22777 for file in fs
/inode.c
; do
22778 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
22779 "$LINUX/$file" 2>/dev
/null
22781 if test $rc -eq 0; then
22786 if test $export -eq 0; then :
22796 if test $rc -ne 0; then :
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22804 $as_echo "yes" >&6; }
22806 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22814 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22818 cat confdefs.h
- <<_ACEOF >conftest.c
22821 #include <linux/fs.h>
22827 insert_inode_locked(NULL);
22836 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22837 echo "obj-m := conftest.o" >build
/Makefile
22839 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22840 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842 (eval $ac_try) 2>&5
22844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22847 (eval $ac_try) 2>&5
22849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22850 test $ac_status = 0; }; }; then :
22853 $as_echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.
$ac_ext >&5
22862 if test $rc -ne 0; then :
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22868 if test "x$enable_linux_builtin" != xyes
; then
22870 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22871 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22873 if test $rc -ne 0; then
22875 for file in fs
/inode.c
; do
22876 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22877 "$LINUX/$file" 2>/dev
/null
22879 if test $rc -eq 0; then
22884 if test $export -eq 0; then :
22894 if test $rc -ne 0; then :
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22897 $as_echo "no" >&6; }
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22902 $as_echo "yes" >&6; }
22904 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22912 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22916 cat confdefs.h
- <<_ACEOF >conftest.c
22919 #include <linux/dcache.h>
22934 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22935 echo "obj-m := conftest.o" >build
/Makefile
22937 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22938 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }; then :
22951 $as_echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.
$ac_ext >&5
22960 if test $rc -ne 0; then :
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963 $as_echo "no" >&6; }
22966 if test "x$enable_linux_builtin" != xyes
; then
22968 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22969 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22971 if test $rc -ne 0; then
22973 for file in fs
/dcache.c
; do
22974 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22975 "$LINUX/$file" 2>/dev
/null
22977 if test $rc -eq 0; then
22982 if test $export -eq 0; then :
22992 if test $rc -ne 0; then :
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995 $as_echo "no" >&6; }
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000 $as_echo "yes" >&6; }
23002 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
23010 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
23014 cat confdefs.h
- <<_ACEOF >conftest.c
23017 #include <linux/dcache.h>
23023 d_obtain_alias(NULL);
23032 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23033 echo "obj-m := conftest.o" >build
/Makefile
23035 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23036 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23038 (eval $ac_try) 2>&5
23040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }; then :
23049 $as_echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.
$ac_ext >&5
23058 if test $rc -ne 0; then :
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23061 $as_echo "no" >&6; }
23064 if test "x$enable_linux_builtin" != xyes
; then
23066 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23067 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23069 if test $rc -ne 0; then
23071 for file in fs
/dcache.c
; do
23072 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
23073 "$LINUX/$file" 2>/dev
/null
23075 if test $rc -eq 0; then
23080 if test $export -eq 0; then :
23090 if test $rc -ne 0; then :
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23093 $as_echo "no" >&6; }
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23098 $as_echo "yes" >&6; }
23100 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
23108 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
23112 cat confdefs.h
- <<_ACEOF >conftest.c
23115 #include <linux/dcache.h>
23121 d_set_d_op(NULL, NULL);
23130 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23131 echo "obj-m := conftest.o" >build
/Makefile
23133 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23134 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136 (eval $ac_try) 2>&5
23138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23141 (eval $ac_try) 2>&5
23143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23144 test $ac_status = 0; }; }; then :
23147 $as_echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.
$ac_ext >&5
23156 if test $rc -ne 0; then :
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23159 $as_echo "no" >&6; }
23162 if test "x$enable_linux_builtin" != xyes
; then
23164 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
23165 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23167 if test $rc -ne 0; then
23169 for file in fs
/dcache.c
; do
23170 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
23171 "$LINUX/$file" 2>/dev
/null
23173 if test $rc -eq 0; then
23178 if test $export -eq 0; then :
23188 if test $rc -ne 0; then :
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23191 $as_echo "no" >&6; }
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23196 $as_echo "yes" >&6; }
23198 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
23207 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
23210 cat confdefs.h
- <<_ACEOF >conftest.c
23213 #include <linux/dcache.h>
23215 int revalidate (struct dentry *dentry,
23216 struct nameidata *nidata) { return 0; }
23218 static const struct dentry_operations
23219 dops __attribute__ ((unused)) = {
23220 .d_revalidate = revalidate,
23235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23236 echo "obj-m := conftest.o" >build
/Makefile
23238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23239 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241 (eval $ac_try) 2>&5
23243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23246 (eval $ac_try) 2>&5
23248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23249 test $ac_status = 0; }; }; then :
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23252 $as_echo "yes" >&6; }
23254 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
23258 $as_echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.
$ac_ext >&5
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23262 $as_echo "no" >&6; }
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
23273 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
23276 cat confdefs.h
- <<_ACEOF >conftest.c
23279 #include <linux/dcache.h>
23281 const struct dentry_operations test_d_op = {
23282 .d_revalidate = NULL,
23289 struct dentry d __attribute__ ((unused));
23291 d.d_op = &test_d_op;
23300 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23301 echo "obj-m := conftest.o" >build
/Makefile
23303 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23304 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23306 (eval $ac_try) 2>&5
23308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23311 (eval $ac_try) 2>&5
23313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314 test $ac_status = 0; }; }; then :
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23317 $as_echo "yes" >&6; }
23319 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
23323 $as_echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.
$ac_ext >&5
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23327 $as_echo "no" >&6; }
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
23337 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
23341 cat confdefs.h
- <<_ACEOF >conftest.c
23344 #include <linux/fs.h>
23350 check_disk_size_change(NULL, NULL);
23359 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23360 echo "obj-m := conftest.o" >build
/Makefile
23362 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23363 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23365 (eval $ac_try) 2>&5
23367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23370 (eval $ac_try) 2>&5
23372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373 test $ac_status = 0; }; }; then :
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.
$ac_ext >&5
23385 if test $rc -ne 0; then :
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23388 $as_echo "no" >&6; }
23391 if test "x$enable_linux_builtin" != xyes
; then
23393 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23394 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23396 if test $rc -ne 0; then
23398 for file in fs
/block_dev.c
; do
23399 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
23400 "$LINUX/$file" 2>/dev
/null
23402 if test $rc -eq 0; then
23407 if test $export -eq 0; then :
23417 if test $rc -ne 0; then :
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23425 $as_echo "yes" >&6; }
23427 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
23435 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23439 cat confdefs.h
- <<_ACEOF >conftest.c
23442 #include <linux/mm.h>
23448 truncate_setsize(NULL, 0);
23457 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23458 echo "obj-m := conftest.o" >build
/Makefile
23460 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23461 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }; then :
23474 $as_echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.
$ac_ext >&5
23483 if test $rc -ne 0; then :
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23486 $as_echo "no" >&6; }
23489 if test "x$enable_linux_builtin" != xyes
; then
23491 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23492 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23494 if test $rc -ne 0; then
23496 for file in mm
/truncate.c
; do
23497 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
23498 "$LINUX/$file" 2>/dev
/null
23500 if test $rc -eq 0; then
23505 if test $export -eq 0; then :
23515 if test $rc -ne 0; then :
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23518 $as_echo "no" >&6; }
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23523 $as_echo "yes" >&6; }
23525 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
23534 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23537 cat confdefs.h
- <<_ACEOF >conftest.c
23540 #include <linux/security.h>
23546 struct inode *ip __attribute__ ((unused)) = NULL;
23547 struct inode *dip __attribute__ ((unused)) = NULL;
23548 const struct qstr *str __attribute__ ((unused)) = NULL;
23549 char *name __attribute__ ((unused)) = NULL;
23550 void *value __attribute__ ((unused)) = NULL;
23551 size_t len __attribute__ ((unused)) = 0;
23553 security_inode_init_security(ip, dip, str, &name, &value, &len);
23562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23563 echo "obj-m := conftest.o" >build
/Makefile
23565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23566 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23568 (eval $ac_try) 2>&5
23570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23571 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }; then :
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23579 $as_echo "yes" >&6; }
23581 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23585 $as_echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.
$ac_ext >&5
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23589 $as_echo "no" >&6; }
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
23600 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23603 cat confdefs.h
- <<_ACEOF >conftest.c
23606 #include <linux/security.h>
23612 struct inode *ip __attribute__ ((unused)) = NULL;
23613 struct inode *dip __attribute__ ((unused)) = NULL;
23614 const struct qstr *str __attribute__ ((unused)) = NULL;
23615 initxattrs func __attribute__ ((unused)) = NULL;
23617 security_inode_init_security(ip, dip, str, func, NULL);
23626 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23627 echo "obj-m := conftest.o" >build
/Makefile
23629 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23630 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632 (eval $ac_try) 2>&5
23634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23637 (eval $ac_try) 2>&5
23639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23640 test $ac_status = 0; }; }; then :
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23643 $as_echo "yes" >&6; }
23645 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23649 $as_echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.
$ac_ext >&5
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
23663 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
23667 cat confdefs.h
- <<_ACEOF >conftest.c
23670 #include <linux/fs.h>
23676 mount_nodev(NULL, 0, NULL, NULL);
23685 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23686 echo "obj-m := conftest.o" >build
/Makefile
23688 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23689 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23691 (eval $ac_try) 2>&5
23693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23694 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23696 (eval $ac_try) 2>&5
23698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699 test $ac_status = 0; }; }; then :
23702 $as_echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.
$ac_ext >&5
23711 if test $rc -ne 0; then :
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23717 if test "x$enable_linux_builtin" != xyes
; then
23719 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23720 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23722 if test $rc -ne 0; then
23724 for file in fs
/super.c
; do
23725 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23726 "$LINUX/$file" 2>/dev
/null
23728 if test $rc -eq 0; then
23733 if test $export -eq 0; then :
23743 if test $rc -ne 0; then :
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23751 $as_echo "yes" >&6; }
23753 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23762 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23765 cat confdefs.h
- <<_ACEOF >conftest.c
23768 #include <linux/fs.h>
23770 int shrink(struct shrinker *s, struct shrink_control *sc)
23773 static const struct super_block
23774 sb __attribute__ ((unused)) = {
23775 .s_shrink.shrink = shrink,
23776 .s_shrink.seeks = DEFAULT_SEEKS,
23777 .s_shrink.batch = 0,
23792 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23793 echo "obj-m := conftest.o" >build
/Makefile
23795 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23796 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23798 (eval $ac_try) 2>&5
23800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23801 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23803 (eval $ac_try) 2>&5
23805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23806 test $ac_status = 0; }; }; then :
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23809 $as_echo "yes" >&6; }
23811 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23816 $as_echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.
$ac_ext >&5
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23831 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23834 cat confdefs.h
- <<_ACEOF >conftest.c
23837 #include <linux/fs.h>
23843 struct super_block sb __attribute__ ((unused));
23845 INIT_LIST_HEAD(&sb.s_instances);
23854 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23855 echo "obj-m := conftest.o" >build
/Makefile
23857 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23858 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860 (eval $ac_try) 2>&5
23862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }; then :
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23871 $as_echo "yes" >&6; }
23873 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23877 $as_echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.
$ac_ext >&5
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23881 $as_echo "no" >&6; }
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23891 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23894 cat confdefs.h
- <<_ACEOF >conftest.c
23897 #include <linux/fs.h>
23903 struct super_block sb __attribute__ ((unused));
23913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23914 echo "obj-m := conftest.o" >build
/Makefile
23916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23917 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }; then :
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23930 $as_echo "yes" >&6; }
23932 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23936 $as_echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.
$ac_ext >&5
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23940 $as_echo "no" >&6; }
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
23951 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23954 cat confdefs.h
- <<_ACEOF >conftest.c
23957 #include <linux/fs.h>
23963 struct super_block sb __attribute__ ((unused));
23973 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23974 echo "obj-m := conftest.o" >build
/Makefile
23976 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23977 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23984 (eval $ac_try) 2>&5
23986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23987 test $ac_status = 0; }; }; then :
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23990 $as_echo "yes" >&6; }
23992 $as_echo "#define HAVE_BDI 1" >>confdefs.h
23996 $as_echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.
$ac_ext >&5
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24000 $as_echo "no" >&6; }
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
24010 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
24014 cat confdefs.h
- <<_ACEOF >conftest.c
24017 #include <linux/backing-dev.h>
24023 bdi_setup_and_register(NULL, NULL, 0);
24032 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24033 echo "obj-m := conftest.o" >build
/Makefile
24035 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24036 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }; then :
24049 $as_echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.
$ac_ext >&5
24058 if test $rc -ne 0; then :
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24064 if test "x$enable_linux_builtin" != xyes
; then
24066 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24067 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24069 if test $rc -ne 0; then
24071 for file in mm
/backing-dev.c
; do
24072 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24073 "$LINUX/$file" 2>/dev
/null
24075 if test $rc -eq 0; then
24080 if test $export -eq 0; then :
24090 if test $rc -ne 0; then :
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093 $as_echo "no" >&6; }
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24098 $as_echo "yes" >&6; }
24100 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24109 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24112 cat confdefs.h
- <<_ACEOF >conftest.c
24115 #include <linux/fs.h>
24122 unsigned int link = 0;
24123 (void) set_nlink(&node, link);
24132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24133 echo "obj-m := conftest.o" >build
/Makefile
24135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24136 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }; then :
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24149 $as_echo "yes" >&6; }
24151 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24155 $as_echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.
$ac_ext >&5
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24159 $as_echo "no" >&6; }
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24170 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24171 tmp_flags
="$EXTRA_KCFLAGS"
24172 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24175 cat confdefs.h
- <<_ACEOF >conftest.c
24178 #include <linux/blkdev.h>
24179 #include <linux/elevator.h>
24186 struct request_queue *q = NULL;
24187 char *elevator = NULL;
24188 ret = elevator_change(q, elevator);
24197 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24198 echo "obj-m := conftest.o" >build
/Makefile
24200 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24201 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }; then :
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24214 $as_echo "yes" >&6; }
24216 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24220 $as_echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.
$ac_ext >&5
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224 $as_echo "no" >&6; }
24232 EXTRA_KCFLAGS
="$tmp_flags"
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24235 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24238 cat confdefs.h
- <<_ACEOF >conftest.c
24241 #include <linux/fs.h>
24247 struct file_system_type *type = NULL;
24248 int (*test)(struct super_block *,void *) = NULL;
24249 int (*set)(struct super_block *,void *) = NULL;
24252 (void) sget(type, test, set, flags, data);
24261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24262 echo "obj-m := conftest.o" >build
/Makefile
24264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24265 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }; then :
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278 $as_echo "yes" >&6; }
24280 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24284 $as_echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.
$ac_ext >&5
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24288 $as_echo "no" >&6; }
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24298 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24302 cat confdefs.h
- <<_ACEOF >conftest.c
24305 #include <linux/fs.h>
24311 struct file *fp __attribute__ ((unused)) = NULL;
24312 struct inode *ip __attribute__ ((unused)) = NULL;
24313 loff_t offset __attribute__ ((unused)) = 0;
24314 loff_t maxsize __attribute__ ((unused)) = 0;
24316 lseek_execute(fp, ip, offset, maxsize);
24325 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24326 echo "obj-m := conftest.o" >build
/Makefile
24328 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24329 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }; then :
24342 $as_echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.
$ac_ext >&5
24351 if test $rc -ne 0; then :
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24354 $as_echo "no" >&6; }
24357 if test "x$enable_linux_builtin" != xyes
; then
24359 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24360 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24362 if test $rc -ne 0; then
24364 for file in fs
/read_write.c
; do
24365 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24366 "$LINUX/$file" 2>/dev
/null
24368 if test $rc -eq 0; then
24373 if test $export -eq 0; then :
24383 if test $rc -ne 0; then :
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386 $as_echo "no" >&6; }
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24391 $as_echo "yes" >&6; }
24393 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24402 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24405 cat confdefs.h
- <<_ACEOF >conftest.c
24408 #include <linux/fs.h>
24409 int iterate(struct file *filp, struct dir_context * context)
24412 static const struct file_operations fops
24413 __attribute__ ((unused)) = {
24414 .iterate = iterate,
24429 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24430 echo "obj-m := conftest.o" >build
/Makefile
24432 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24433 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24435 (eval $ac_try) 2>&5
24437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24438 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24440 (eval $ac_try) 2>&5
24442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24443 test $ac_status = 0; }; }; then :
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24446 $as_echo "yes" >&6; }
24448 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24452 $as_echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.
$ac_ext >&5
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24456 $as_echo "no" >&6; }
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24459 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24462 cat confdefs.h
- <<_ACEOF >conftest.c
24465 #include <linux/fs.h>
24466 int readdir(struct file *filp, void *entry, filldir_t func)
24469 static const struct file_operations fops
24470 __attribute__ ((unused)) = {
24471 .readdir = readdir,
24486 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24487 echo "obj-m := conftest.o" >build
/Makefile
24489 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24490 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }; then :
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24503 $as_echo "yes" >&6; }
24505 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24509 $as_echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.
$ac_ext >&5
24512 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24530 if test "$LINUX_OBJ" != "$LINUX"; then :
24532 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
24538 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
24539 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
24540 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
24547 # Check whether --with-udevdir was given.
24548 if test "${with_udevdir+set}" = set; then :
24549 withval
=$with_udevdir; udevdir
=$withval
24551 udevdir
='${exec_prefix}/lib/udev'
24556 # Check whether --with-udevruledir was given.
24557 if test "${with_udevruledir+set}" = set; then :
24558 withval
=$with_udevruledir; udevruledir
=$withval
24560 udevruledir
='${udevdir}/rules.d'
24569 # Check whether --with-dracutdir was given.
24570 if test "${with_dracutdir+set}" = set; then :
24571 withval
=$with_dracutdir; dracutdir
=$withval
24573 dracutdir
='${exec_prefix}/lib/dracut'
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
24581 $as_echo_n "checking for target asm dir... " >&6; }
24582 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
24584 case $TARGET_ARCH in
24586 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
24589 TARGET_ASM_DIR
=asm-generic
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
24595 $as_echo "$TARGET_ASM_DIR" >&6; }
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
24599 $as_echo_n "checking for ioctl()... " >&6; }
24600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24601 /* end confdefs.h. */
24602 #include <unistd.h>
24605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24606 $EGREP "ioctl" >/dev
/null
2>&1; then :
24613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h. */
24615 #include <sys/ioctl.h>
24618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24619 $EGREP "ioctl" >/dev
/null
2>&1; then :
24626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24627 /* end confdefs.h. */
24628 #include <stropts.h>
24631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24632 $EGREP "ioctl" >/dev
/null
2>&1; then :
24640 if test $is_unistd = yes; then
24643 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
24647 if test $is_sys_ioctl = yes; then
24650 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
24652 elif test $is_stropts = yes; then
24654 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
24661 if test $result = no
; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24663 $as_echo "no" >&6; }
24664 as_fn_error $?
"*** Cannot locate ioctl() definition" "$LINENO" 5
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24667 $as_echo "yes" >&6; }
24673 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24674 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
24677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24680 *** zlib.h missing, zlib-devel package required
24681 See \`config.log' for more details" "$LINENO" 5 ; }
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
24687 $as_echo_n "checking for compress2 in -lz... " >&6; }
24688 if test "${ac_cv_lib_z_compress2+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24691 ac_check_lib_save_LIBS
=$LIBS
24693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24694 /* end confdefs.h. */
24696 /* Override any GCC internal prototype to avoid an error.
24697 Use char because int might match the return type of a GCC
24698 builtin and then its argument prototype would still apply. */
24706 return compress2 ();
24711 if ac_fn_c_try_link
"$LINENO"; then :
24712 ac_cv_lib_z_compress2
=yes
24714 ac_cv_lib_z_compress2
=no
24716 rm -f core conftest.err conftest.
$ac_objext \
24717 conftest
$ac_exeext conftest.
$ac_ext
24718 LIBS
=$ac_check_lib_save_LIBS
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
24721 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24722 if test "x$ac_cv_lib_z_compress2" = x
""yes; then :
24723 cat >>confdefs.h
<<_ACEOF
24724 #define HAVE_LIBZ 1
24730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24733 *** compress2() missing, zlib-devel package required
24734 See \`config.log' for more details" "$LINENO" 5 ; }
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24739 $as_echo_n "checking for uncompress in -lz... " >&6; }
24740 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 ac_check_lib_save_LIBS
=$LIBS
24745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24748 /* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24754 char uncompress ();
24758 return uncompress ();
24763 if ac_fn_c_try_link
"$LINENO"; then :
24764 ac_cv_lib_z_uncompress
=yes
24766 ac_cv_lib_z_uncompress
=no
24768 rm -f core conftest.err conftest.
$ac_objext \
24769 conftest
$ac_exeext conftest.
$ac_ext
24770 LIBS
=$ac_check_lib_save_LIBS
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24773 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24774 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then :
24775 cat >>confdefs.h
<<_ACEOF
24776 #define HAVE_LIBZ 1
24782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24785 *** uncompress() missing, zlib-devel package required
24786 See \`config.log' for more details" "$LINENO" 5 ; }
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
24791 $as_echo_n "checking for crc32 in -lz... " >&6; }
24792 if test "${ac_cv_lib_z_crc32+set}" = set; then :
24793 $as_echo_n "(cached) " >&6
24795 ac_check_lib_save_LIBS
=$LIBS
24797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24798 /* end confdefs.h. */
24800 /* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24815 if ac_fn_c_try_link
"$LINENO"; then :
24816 ac_cv_lib_z_crc32
=yes
24818 ac_cv_lib_z_crc32
=no
24820 rm -f core conftest.err conftest.
$ac_objext \
24821 conftest
$ac_exeext conftest.
$ac_ext
24822 LIBS
=$ac_check_lib_save_LIBS
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24825 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24826 if test "x$ac_cv_lib_z_crc32" = x
""yes; then :
24827 cat >>confdefs.h
<<_ACEOF
24828 #define HAVE_LIBZ 1
24834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24837 *** crc32() missing, zlib-devel package required
24838 See \`config.log' for more details" "$LINENO" 5 ; }
24845 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24851 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24852 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then :
24855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24858 *** uuid/uuid.h missing, libuuid-devel package required
24859 See \`config.log' for more details" "$LINENO" 5 ; }
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24865 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24866 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24869 ac_check_lib_save_LIBS
=$LIBS
24870 LIBS
="-luuid $LIBS"
24871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h. */
24874 /* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24880 char uuid_generate ();
24884 return uuid_generate ();
24889 if ac_fn_c_try_link
"$LINENO"; then :
24890 ac_cv_lib_uuid_uuid_generate
=yes
24892 ac_cv_lib_uuid_uuid_generate
=no
24894 rm -f core conftest.err conftest.
$ac_objext \
24895 conftest
$ac_exeext conftest.
$ac_ext
24896 LIBS
=$ac_check_lib_save_LIBS
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24899 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24900 if test "x$ac_cv_lib_uuid_uuid_generate" = x
""yes; then :
24901 cat >>confdefs.h
<<_ACEOF
24902 #define HAVE_LIBUUID 1
24905 LIBS
="-luuid $LIBS"
24908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24911 *** uuid_generate() missing, libuuid-devel package required
24912 See \`config.log' for more details" "$LINENO" 5 ; }
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24917 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24918 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24921 ac_check_lib_save_LIBS
=$LIBS
24922 LIBS
="-luuid $LIBS"
24923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24926 /* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24932 char uuid_is_null ();
24936 return uuid_is_null ();
24941 if ac_fn_c_try_link
"$LINENO"; then :
24942 ac_cv_lib_uuid_uuid_is_null
=yes
24944 ac_cv_lib_uuid_uuid_is_null
=no
24946 rm -f core conftest.err conftest.
$ac_objext \
24947 conftest
$ac_exeext conftest.
$ac_ext
24948 LIBS
=$ac_check_lib_save_LIBS
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24951 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24952 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then :
24953 cat >>confdefs.h
<<_ACEOF
24954 #define HAVE_LIBUUID 1
24957 LIBS
="-luuid $LIBS"
24960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24963 *** uuid_is_null() missing, libuuid-devel package required
24964 See \`config.log' for more details" "$LINENO" 5 ; }
24971 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24976 # Check whether --with-blkid was given.
24977 if test "${with_blkid+set}" = set; then :
24978 withval
=$with_blkid;
24985 if test "x$with_blkid" != xno
; then :
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24988 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24989 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24992 ac_check_lib_save_LIBS
=$LIBS
24993 LIBS
="-lblkid $LIBS"
24994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h. */
24997 /* Override any GCC internal prototype to avoid an error.
24998 Use char because int might match the return type of a GCC
24999 builtin and then its argument prototype would still apply. */
25003 char blkid_get_cache ();
25007 return blkid_get_cache ();
25012 if ac_fn_c_try_link
"$LINENO"; then :
25013 ac_cv_lib_blkid_blkid_get_cache
=yes
25015 ac_cv_lib_blkid_blkid_get_cache
=no
25017 rm -f core conftest.err conftest.
$ac_objext \
25018 conftest
$ac_exeext conftest.
$ac_ext
25019 LIBS
=$ac_check_lib_save_LIBS
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
25022 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
25023 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then :
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
25026 $as_echo_n "checking for blkid zfs support... " >&6; }
25029 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
25030 >/dev
/null
2>/dev
/null
25031 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
25032 dd of
=$ZFS_DEV bs
=1k count
=8 \
25033 seek
=132 conv
=notrunc
&>/dev
/null \
25034 >/dev
/null
2>/dev
/null
25036 saved_LDFLAGS
="$LDFLAGS"
25039 if test "$cross_compiling" = yes; then :
25040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25042 as_fn_error $?
"cannot run test program while cross compiling
25043 See \`config.log' for more details" "$LINENO" 5 ; }
25045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25049 #include <blkid/blkid.h>
25058 if (blkid_get_cache(&cache, NULL) < 0)
25061 value = blkid_get_tag_value(cache, "TYPE",
25064 blkid_put_cache(cache);
25068 if (strcmp(value, "zfs")) {
25070 blkid_put_cache(cache);
25075 blkid_put_cache(cache);
25081 if ac_fn_c_try_run
"$LINENO"; then :
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25085 $as_echo "yes" >&6; }
25089 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25096 $as_echo "no" >&6; }
25097 if test "x$with_blkid" != xcheck
; then :
25098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25100 as_fn_error $?
"--with-blkid given but unavailable
25101 See \`config.log' for more details" "$LINENO" 5 ; }
25105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25110 LDFLAGS
="$saved_LDFLAGS"
25114 if test "x$with_blkid" != xcheck
; then :
25115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25117 as_fn_error $?
"--with-blkid given but unavailable
25118 See \`config.log' for more details" "$LINENO" 5 ; }
25129 # Check whether --with-selinux was given.
25130 if test "${with_selinux+set}" = set; then :
25131 withval
=$with_selinux;
25138 if test "x$with_selinux" != xno
; then :
25140 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25141 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25144 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25145 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25148 ac_check_lib_save_LIBS
=$LIBS
25149 LIBS
="-lselinux $LIBS"
25150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25153 /* Override any GCC internal prototype to avoid an error.
25154 Use char because int might match the return type of a GCC
25155 builtin and then its argument prototype would still apply. */
25159 char is_selinux_enabled ();
25163 return is_selinux_enabled ();
25168 if ac_fn_c_try_link
"$LINENO"; then :
25169 ac_cv_lib_selinux_is_selinux_enabled
=yes
25171 ac_cv_lib_selinux_is_selinux_enabled
=no
25173 rm -f core conftest.err conftest.
$ac_objext \
25174 conftest
$ac_exeext conftest.
$ac_ext
25175 LIBS
=$ac_check_lib_save_LIBS
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25178 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25179 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
25181 LIBSELINUX
="-lselinux"
25184 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
25189 if test "x$with_selinux" != xcheck
; then :
25190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25192 as_fn_error $?
"--with-selinux given but unavailable
25193 See \`config.log' for more details" "$LINENO" 5 ; }
25202 if test "x$with_selinux" != xcheck
; then :
25203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25205 as_fn_error $?
"--with-selinux given but unavailable
25206 See \`config.log' for more details" "$LINENO" 5 ; }
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
25217 $as_echo_n "checking for selinux support... " >&6; }
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25219 $as_echo "no" >&6; }
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
25225 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
25227 saved_flags
="$CFLAGS"
25228 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
25230 if test "$cross_compiling" = yes; then :
25231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25233 as_fn_error $?
"cannot run test program while cross compiling
25234 See \`config.log' for more details" "$LINENO" 5 ; }
25236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25247 if ac_fn_c_try_run
"$LINENO"; then :
25249 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25251 $as_echo "yes" >&6; }
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25257 $as_echo "no" >&6; }
25260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25265 CFLAGS
="$saved_flags"
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
25272 $as_echo "Error!" >&6; }
25273 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
25274 user kernel|user|all|srpm" "$LINENO" 5 ;;
25277 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
25279 CONFIG_USER_FALSE
='#'
25281 CONFIG_USER_TRUE
='#'
25285 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
25286 test "x$enable_linux_builtin" != xyes
; then
25287 CONFIG_KERNEL_TRUE
=
25288 CONFIG_KERNEL_FALSE
='#'
25290 CONFIG_KERNEL_TRUE
='#'
25291 CONFIG_KERNEL_FALSE
=
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
25297 $as_echo_n "checking whether debugging is enabled... " >&6; }
25298 # Check whether --enable-debug was given.
25299 if test "${enable_debug+set}" = set; then :
25300 enableval
=$enable_debug;
25306 if test "x$enable_debug" = xyes
; then :
25308 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
25309 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
25310 DEBUG_CFLAGS
="-DDEBUG -Werror"
25311 DEBUG_STACKFLAGS
="-fstack-check"
25312 DEBUG_ZFS
="_with_debug"
25314 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
25319 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
25320 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
25321 DEBUG_CFLAGS
="-DNDEBUG"
25322 DEBUG_STACKFLAGS
=""
25323 DEBUG_ZFS
="_without_debug"
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
25331 $as_echo "$enable_debug" >&6; }
25334 # Check whether --enable-debug-dmu-tx was given.
25335 if test "${enable_debug_dmu_tx+set}" = set; then :
25336 enableval
=$enable_debug_dmu_tx;
25338 enable_debug_dmu_tx
=no
25342 if test "x$enable_debug_dmu_tx" = xyes
; then :
25344 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
25345 DEBUG_DMU_TX
="_with_debug_dmu_tx"
25347 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
25352 DEBUG_DMU_TX
="_without_debug_dmu_tx"
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
25358 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
25360 $as_echo "$enable_debug_dmu_tx" >&6; }
25363 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/fedora/Makefile rpm/fedora/zfs.spec rpm/fedora/zfs-kmod.spec rpm/fedora/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
25366 cat >confcache
<<\_ACEOF
25367 # This file is a shell script that caches the results of configure
25368 # tests run on this system so they can be shared between configure
25369 # scripts and configure runs, see configure's option --config-cache.
25370 # It is not useful on other systems. If it contains results you don't
25371 # want to keep, you may remove or edit it.
25373 # config.status only pays attention to the cache file if you give it
25374 # the --recheck option to rerun configure.
25376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25378 # following values.
25382 # The following way of writing the cache mishandles newlines in values,
25383 # but we know of no workaround that is simple, portable, and efficient.
25384 # So, we kill variables containing newlines.
25385 # Ultrix sh set writes to stderr and can't be redirected directly,
25386 # and sets the high bit in the cache file unless we assign to the vars.
25388 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val
=\$
$ac_var
25393 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25397 _ | IFS | as_nl
) ;; #(
25398 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25399 *) { eval $ac_var=; unset $ac_var;} ;;
25405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25406 *${as_nl}ac_space
=\
*)
25407 # `set' does not quote correctly, so add quotes: double-quote
25408 # substitution turns \\\\ into \\, and sed turns \\ into \.
25411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25414 # `set' quotes correctly as required by POSIX, so do not add quotes.
25415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25428 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25429 if test -w "$cache_file"; then
25430 test "x$cache_file" != "x/dev/null" &&
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25432 $as_echo "$as_me: updating cache $cache_file" >&6;}
25433 cat confcache
>$cache_file
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25441 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25442 # Let make expand exec_prefix.
25443 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25445 DEFS
=-DHAVE_CONFIG_H
25450 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25451 # 1. Remove the extension, and $U if already installed.
25452 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25453 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25455 # will be set to the directory where LIBOBJS objects are built.
25456 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25457 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25459 LIBOBJS
=$ac_libobjs
25461 LTLIBOBJS
=$ac_ltlibobjs
25464 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25465 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
25466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25468 if test -n "$EXEEXT"; then
25470 am__EXEEXT_FALSE
='#'
25472 am__EXEEXT_TRUE
='#'
25476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25477 as_fn_error $?
"conditional \"AMDEP\" was never defined.
25478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25481 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
25482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25484 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25485 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
25486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25488 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25489 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
25490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25492 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25493 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
25494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25497 : ${CONFIG_STATUS=./config.status}
25499 ac_clean_files_save
=$ac_clean_files
25500 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25506 # Generated by $as_me.
25507 # Run this file to recreate the current configuration.
25508 # Compiler output produced by configure, useful for debugging
25509 # configure, is in config.log if it exists.
25512 ac_cs_recheck=false
25515 SHELL=\${CONFIG_SHELL-$SHELL}
25518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25519 ## -------------------- ##
25520 ## M4sh Initialization. ##
25521 ## -------------------- ##
25523 # Be more Bourne compatible
25524 DUALCASE
=1; export DUALCASE
# for MKS sh
25525 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25529 # is contrary to our usage. Disable this feature.
25530 alias -g '${1+"$@"}'='"$@"'
25531 setopt NO_GLOB_SUBST
25533 case `(set -o) 2>/dev/null` in #(
25545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25546 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25549 # Prefer a ksh shell builtin over an external printf program on Solaris,
25550 # but without wasting forks for bash or zsh.
25551 if test -z "$BASH_VERSION$ZSH_VERSION" \
25552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25553 as_echo='print
-r --'
25554 as_echo_n='print
-rn --'
25555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25556 as_echo='printf %s
\n'
25557 as_echo_n='printf %s
'
25559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25560 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25561 as_echo_n='/usr
/ucb
/echo -n'
25563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25564 as_echo_n_body='eval
25568 expr "X$arg" : "X\\(.*\\)$as_nl";
25569 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25571 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25573 export as_echo_n_body
25574 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25576 export as_echo_body
25577 as_echo='sh
-c $as_echo_body as_echo
'
25580 # The user is always right.
25581 if test "${PATH_SEPARATOR+set}" != set; then
25583 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25584 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25591 # We need space, tab and new line, in precisely that order. Quoting is
25592 # there to prevent editors from complaining about space-tab.
25593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25594 # splitting by setting IFS to empty value.)
25597 # Find who we are. Look in the path if we contain no directory separator.
25599 *[\\/]* ) as_myself=$0 ;;
25600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25601 for as_dir in $PATH
25604 test -z "$as_dir" && as_dir=.
25605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25611 # We did not find ourselves, most probably we were run as `sh COMMAND'
25612 # in which case we are not to be found in the path.
25613 if test "x$as_myself" = x
; then
25616 if test ! -f "$as_myself"; then
25617 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25621 # Unset variables that we do not need and which cause bugs (e.g. in
25622 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25623 # suppresses any "Segmentation fault" message there. '((' could
25624 # trigger a bug in pdksh 5.2.14.
25625 for as_var
in BASH_ENV ENV MAIL MAILPATH
25626 do eval test x\
${$as_var+set} = xset \
25627 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25640 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25643 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25644 # ----------------------------------------
25645 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25646 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25647 # script with STATUS, using 1 if that was 0.
25650 as_status
=$1; test $as_status -eq 0 && as_status
=1
25652 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25653 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25655 $as_echo "$as_me: error: $2" >&2
25656 as_fn_exit
$as_status
25660 # as_fn_set_status STATUS
25661 # -----------------------
25662 # Set $? to STATUS, without forking.
25663 as_fn_set_status
()
25666 } # as_fn_set_status
25668 # as_fn_exit STATUS
25669 # -----------------
25670 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25674 as_fn_set_status
$1
25680 # Portably unset VAR.
25683 { eval $1=; unset $1;}
25685 as_unset
=as_fn_unset
25686 # as_fn_append VAR VALUE
25687 # ----------------------
25688 # Append the text in VALUE to the end of the definition contained in VAR. Take
25689 # advantage of any shell optimizations that allow amortized linear growth over
25690 # repeated appends, instead of the typical quadratic growth present in naive
25692 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25693 eval 'as_fn_append ()
25704 # as_fn_arith ARG...
25705 # ------------------
25706 # Perform arithmetic evaluation on the ARGs, and store the result in the
25707 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25708 # must be portable across $(()) and expr.
25709 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25710 eval 'as_fn_arith ()
25717 as_val
=`expr "$@" || test $? -eq 1`
25722 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25723 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25729 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25730 as_basename
=basename
25735 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25741 as_me
=`$as_basename -- "$0" ||
25742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25743 X"$0" : 'X\(//\)$' \| \
25744 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25746 sed '/^.*\/\([^/][^/]*\)\/*$/{
25760 # Avoid depending upon Character Ranges.
25761 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25762 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25763 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25764 as_cr_digits
='0123456789'
25765 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25767 ECHO_C
= ECHO_N
= ECHO_T
=
25768 case `echo -n x` in #(((((
25770 case `echo 'xy\c'` in
25771 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25773 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25780 rm -f conf$$ conf$$.exe conf$$.
file
25781 if test -d conf$$.dir
; then
25782 rm -f conf$$.dir
/conf$$.
file
25785 mkdir conf$$.dir
2>/dev
/null
25787 if (echo >conf$$.
file) 2>/dev
/null
; then
25788 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25790 # ... but there are two gotchas:
25791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25793 # In both cases, we have to default to `cp -p'.
25794 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25796 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25804 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25805 rmdir conf$$.dir
2>/dev
/null
25810 # Create "$as_dir" as a directory, including parents if necessary.
25815 -*) as_dir
=.
/$as_dir;;
25817 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25821 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25822 *) as_qdir
=$as_dir;;
25824 as_dirs
="'$as_qdir' $as_dirs"
25825 as_dir
=`$as_dirname -- "$as_dir" ||
25826 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25827 X"$as_dir" : 'X\(//\)[^/]' \| \
25828 X"$as_dir" : 'X\(//\)$' \| \
25829 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25830 $as_echo X"$as_dir" |
25831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25835 /^X\(\/\/\)[^/].*/{
25848 test -d "$as_dir" && break
25850 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25851 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
25855 if mkdir
-p .
2>/dev
/null
; then
25856 as_mkdir_p
='mkdir -p "$as_dir"'
25858 test -d .
/-p && rmdir .
/-p
25862 if test -x / >/dev
/null
2>&1; then
25863 as_test_x
='test -x'
25865 if ls -dL / >/dev
/null
2>&1; then
25872 if test -d "$1"; then
25878 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25879 ???[sx]*):;;*)false;;esac;fi
25883 as_executable_p
=$as_test_x
25885 # Sed expression to map a string onto a valid CPP name.
25886 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25888 # Sed expression to map a string onto a valid variable name.
25889 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25893 ## ----------------------------------- ##
25894 ## Main body of $CONFIG_STATUS script. ##
25895 ## ----------------------------------- ##
25897 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25900 # Save the log message, to keep $0 and so on meaningful, and to
25901 # report actual input values of CONFIG_FILES etc. instead of their
25902 # values after options handling.
25904 This file was extended by $as_me, which was
25905 generated by GNU Autoconf 2.67. Invocation command line was
25907 CONFIG_FILES = $CONFIG_FILES
25908 CONFIG_HEADERS = $CONFIG_HEADERS
25909 CONFIG_LINKS = $CONFIG_LINKS
25910 CONFIG_COMMANDS = $CONFIG_COMMANDS
25913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25918 case $ac_config_files in *"
25919 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25922 case $ac_config_headers in *"
25923 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25928 # Files that config.status was made for.
25929 config_files="$ac_config_files"
25930 config_headers="$ac_config_headers"
25931 config_commands="$ac_config_commands"
25935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25937 \`$as_me' instantiates files and other configuration actions
25938 from templates according to the current configuration. Unless the files
25939 and actions are specified as TAGs, all are instantiated by default.
25941 Usage: $0 [OPTION]... [TAG]...
25943 -h, --help print this help, then exit
25944 -V, --version print version number and configuration settings, then exit
25945 --config print configuration, then exit
25946 -q, --quiet, --silent
25947 do not print progress messages
25948 -d, --debug don't remove temporary files
25949 --recheck update $as_me by reconfiguring in the same conditions
25950 --file=FILE[:TEMPLATE]
25951 instantiate the configuration file FILE
25952 --header=FILE[:TEMPLATE]
25953 instantiate the configuration header FILE
25955 Configuration files:
25958 Configuration headers:
25961 Configuration commands:
25964 Report bugs to the package provider."
25967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25968 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25971 configured by $0, generated by GNU Autoconf 2.67,
25972 with options \\"\$ac_cs_config\\"
25974 Copyright (C) 2010 Free Software Foundation, Inc.
25975 This config.status script is free software; the Free Software Foundation
25976 gives unlimited permission to copy, distribute and modify it."
25983 test -n "\$AWK" || AWK=awk
25986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25987 # The default lists apply if the user does not specify any file.
25993 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25994 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25998 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26010 # Handling of the options.
26011 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26013 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26014 $as_echo "$ac_cs_version"; exit ;;
26015 --config |
--confi |
--conf |
--con |
--co |
--c )
26016 $as_echo "$ac_cs_config"; exit ;;
26017 --debug |
--debu |
--deb |
--de |
--d |
-d )
26019 --file |
--fil |
--fi |
--f )
26022 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26023 '') as_fn_error $?
"missing file argument" ;;
26025 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26026 ac_need_defaults
=false
;;
26027 --header |
--heade |
--head |
--hea )
26030 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26032 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26033 ac_need_defaults
=false
;;
26035 # Conflict between --help and --header
26036 as_fn_error $?
"ambiguous option: \`$1'
26037 Try \`$0 --help' for more information.";;
26038 --help |
--hel |
-h )
26039 $as_echo "$ac_cs_usage"; exit ;;
26040 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26041 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26044 # This is an error.
26045 -*) as_fn_error $?
"unrecognized option: \`$1'
26046 Try \`$0 --help' for more information." ;;
26048 *) as_fn_append ac_config_targets
" $1"
26049 ac_need_defaults
=false
;;
26055 ac_configure_extra_args
=
26057 if $ac_cs_silent; then
26059 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26064 if \$ac_cs_recheck; then
26065 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26068 CONFIG_SHELL='$SHELL'
26069 export CONFIG_SHELL
26074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26079 ## Running $as_me. ##
26085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26089 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26092 # The HP-UX ksh and POSIX shell print the target directory to stdout
26093 # if CDPATH is set.
26094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26096 sed_quote_subst='$sed_quote_subst'
26097 double_quote_subst='$double_quote_subst'
26098 delay_variable_subst='$delay_variable_subst'
26099 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26100 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26101 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26102 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26103 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26104 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26105 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26106 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26107 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26108 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26109 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26110 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26111 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26112 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26113 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26114 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26115 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26116 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26117 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26118 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26119 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26120 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26121 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26122 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26123 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26124 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26125 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26126 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26127 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26128 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26129 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26130 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26131 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26132 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26133 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26134 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26135 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26136 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26137 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26138 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26139 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26140 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26141 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26142 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26143 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26144 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26145 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26146 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26147 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26148 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26149 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26150 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26151 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26152 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26153 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26154 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26155 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26156 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26157 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26158 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26159 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26160 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26161 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26162 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26163 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26164 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26165 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26166 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26167 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26168 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26169 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26170 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26171 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26172 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26173 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26174 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26175 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26176 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26177 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26178 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26179 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26180 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26181 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26182 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26183 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26184 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26185 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26186 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26187 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26188 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26189 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26190 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26191 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26192 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26193 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26194 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26195 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26196 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26197 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26198 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26199 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26200 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26201 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26202 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26203 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26204 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26205 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26206 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26207 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26208 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26209 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26210 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26211 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26212 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26213 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26214 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26215 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26216 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26219 LTCFLAGS='$LTCFLAGS'
26220 compiler='$compiler_DEFAULT'
26222 # Quote evaled strings.
26234 deplibs_check_method \
26243 lt_cv_sys_global_symbol_pipe \
26244 lt_cv_sys_global_symbol_to_cdecl \
26245 lt_cv_sys_global_symbol_to_c_name_address \
26246 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26249 lt_prog_compiler_no_builtin_flag \
26250 lt_prog_compiler_wl \
26251 lt_prog_compiler_pic \
26252 lt_prog_compiler_static \
26253 lt_cv_prog_compiler_c_o \
26261 export_dynamic_flag_spec \
26262 whole_archive_flag_spec \
26263 compiler_needs_object \
26265 allow_undefined_flag \
26266 no_undefined_flag \
26267 hardcode_libdir_flag_spec \
26268 hardcode_libdir_flag_spec_ld \
26269 hardcode_libdir_separator \
26274 variables_saved_for_relink \
26276 library_names_spec \
26281 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26282 *[\\\\\\\`\\"\\\$]*)
26283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26291 # Double-quote double-evaled strings.
26292 for var in reload_cmds \
26293 old_postinstall_cmds \
26294 old_postuninstall_cmds \
26296 extract_expsyms_cmds \
26297 old_archive_from_new_cmds \
26298 old_archive_from_expsyms_cmds \
26300 archive_expsym_cmds \
26302 module_expsym_cmds \
26303 export_symbols_cmds \
26306 postuninstall_cmds \
26308 sys_lib_search_path_spec \
26309 sys_lib_dlsearch_path_spec; do
26310 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26311 *[\\\\\\\`\\"\\\$]*)
26312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26320 # Fix-up fallback echo if it was mangled by the above quoting rules.
26322 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26326 ac_aux_dir='$ac_aux_dir'
26327 xsi_shell='$xsi_shell'
26328 lt_shell_append='$lt_shell_append'
26330 # See if we are running on zsh, and set the options which allow our
26331 # commands through without removal of \ escapes INIT.
26332 if test -n "\${ZSH_VERSION+set}" ; then
26333 setopt NO_GLOB_SUBST
26339 TIMESTAMP='$TIMESTAMP'
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26350 # Handling of arguments.
26351 for ac_config_target
in $ac_config_targets
26353 case $ac_config_target in
26354 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
26355 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26356 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
26357 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26358 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
26359 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
26360 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
26361 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
26362 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
26363 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
26364 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
26365 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
26366 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
26367 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
26368 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
26369 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
26370 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
26371 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
26372 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
26373 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
26374 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
26375 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
26376 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
26377 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
26378 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
26379 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
26380 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
26381 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
26382 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
26383 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
26384 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
26385 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
26386 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
26387 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
26388 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
26389 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
26390 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
26391 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
26392 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
26393 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
26394 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
26395 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
26396 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
26397 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
26398 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
26399 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
26400 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
26401 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
26402 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
26403 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
26404 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
26405 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
26406 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
26407 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
26408 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
26409 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
26410 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
26411 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
26412 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
26413 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
26414 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
26415 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
26416 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
26417 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
26418 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
26419 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
26420 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
26421 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
26422 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
26423 "rpm/fedora/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/Makefile" ;;
26424 "rpm/fedora/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs.spec" ;;
26425 "rpm/fedora/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs-kmod.spec" ;;
26426 "rpm/fedora/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs-dkms.spec" ;;
26427 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
26428 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
26429 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
26430 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
26431 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
26432 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
26434 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
26439 # If the user did not use the arguments to specify the items to instantiate,
26440 # then the envvar interface is used. Set only those that are not.
26441 # We use the long form for the default assignment because of an extremely
26442 # bizarre bug on SunOS 4.1.3.
26443 if $ac_need_defaults; then
26444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26449 # Have a temporary directory for convenience. Make it in the build tree
26450 # simply because there is no reason against having it here, and in addition,
26451 # creating and moving files from /tmp can sometimes cause problems.
26452 # Hook for its removal unless debugging.
26453 # Note that there is a small window in which the directory will not be cleaned:
26454 # after its creation but before its name has been assigned to `$tmp'.
26458 trap 'exit_status=$?
26459 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26461 trap 'as_fn_exit 1' 1 2 13 15
26463 # Create a (secure) tmp directory for tmp files.
26466 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26467 test -n "$tmp" && test -d "$tmp"
26470 tmp
=.
/conf$$
-$RANDOM
26471 (umask 077 && mkdir
"$tmp")
26472 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
26474 # Set up the scripts for CONFIG_FILES section.
26475 # No need to generate them if there are no CONFIG_FILES.
26476 # This happens for instance with `./config.status config.h'.
26477 if test -n "$CONFIG_FILES"; then
26480 ac_cr
=`echo X | tr X '\015'`
26481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26482 # But we know of no other shell where ac_cr would be empty at this
26483 # point, so we can use a bashism as a fallback.
26484 if test "x$ac_cr" = x
; then
26485 eval ac_cr
=\$
\'\\r
\'
26487 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26491 ac_cs_awk_cr
=$ac_cr
26494 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26499 echo "cat >conf$$subs.awk <<_ACEOF" &&
26500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26502 } >conf$$subs.sh ||
26503 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26506 for ac_last_try in false false false false false :; do
26507 . ./conf$$subs.sh ||
26508 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26510 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26511 if test $ac_delim_n = $ac_delim_num; then
26513 elif $ac_last_try; then
26514 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26516 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26519 rm -f conf$$subs.sh
26521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26522 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26526 s/^/S["/; s
/!.
*/"]=/
26536 s/\(.\{148\}\)..*/\1/
26538 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26543 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26550 s/\(.\{148\}\)..*/\1/
26552 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26556 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26561 ' <conf$$subs.awk | sed '
26566 ' >>$CONFIG_STATUS || ac_write_fail=1
26567 rm -f conf$$subs.awk
26568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26570 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26571 for (key in S) S_is_set[key] = 1
26577 nfields = split(line, field, "@
")
26579 len = length(field[1])
26580 for (i = 2; i < nfields; i++) {
26582 keylen = length(key)
26583 if (S_is_set[key]) {
26585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26586 len += length(value) + length(field[++i])
26597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26598 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26599 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26602 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26603 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
26606 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26607 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
26608 # trailing colons and then remove the whole line if VPATH becomes empty
26609 # (actually we leave an empty line to preserve line numbers).
26610 if test "x
$srcdir" = x.; then
26611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26630 fi # test -n "$CONFIG_FILES"
26632 # Set up the scripts for CONFIG_HEADERS section.
26633 # No need to generate them if there are no CONFIG_HEADERS.
26634 # This happens for instance with `./config.status Makefile'.
26635 if test -n "$CONFIG_HEADERS"; then
26636 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26640 # Transform confdefs.h into an awk script `defines.awk', embedded as
26641 # here-document in config.status, that substitutes the proper values into
26642 # config.h.in to produce config.h.
26644 # Create a delimiter string that does not exist in confdefs.h, to ease
26645 # handling of long lines.
26647 for ac_last_try in false false :; do
26648 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26649 if test -z "$ac_t"; then
26651 elif $ac_last_try; then
26652 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
26654 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26658 # For the awk script, D is an array of macro values keyed by name,
26659 # likewise P contains macro parameters if any. Preserve backslash
26660 # newline sequences.
26662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26664 s/.\{148\}/&'"$ac_delim"'/g
26667 s/^[ ]*#[ ]*define[ ][ ]*/ /
26674 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26676 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26681 D["\
1"]=" \
3\\\\\\n
"\\/p
26683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26688 s/.\{148\}/&'"$ac_delim"'/g
26693 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26696 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26698 ' <confdefs.h | sed '
26699 s/'"$ac_delim"'/"\\\
26700 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26703 for (key in D) D_is_set[key] = 1
26706 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26708 split(line, arg, " ")
26709 if (arg[1] == "#") {
26713 defundef
= substr
(arg
[1], 2)
26716 split(mac1
, mac2
, "(") #)
26718 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26719 if (D_is_set
[macro
]) {
26720 # Preserve the white space surrounding the "#".
26721 print prefix
"define", macro P
[macro
] D
[macro
]
26724 # Replace #undef with comments. This is necessary, for example,
26725 # in the case of _POSIX_SOURCE, which is predefined and required
26726 # on some systems where configure will not decide to define it.
26727 if (defundef
== "undef") {
26728 print
"/*", prefix defundef
, macro
, "*/"
26736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26737 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
26738 fi # test -n "$CONFIG_HEADERS"
26741 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26746 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26748 case $ac_mode$ac_tag in
26750 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
26751 :[FH
]-) ac_tag
=-:-;;
26752 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26769 -) ac_f
="$tmp/stdin";;
26770 *) # Look for the file first in the build tree, then in the source tree
26771 # (if the path is not absolute). The absolute path cannot be DOS-style,
26772 # because $ac_f cannot contain `:'.
26776 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26778 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
26780 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26781 as_fn_append ac_file_inputs
" '$ac_f'"
26784 # Let's still pretend it is `configure' which instantiates (i.e., don't
26785 # use $as_me), people would be surprised to read:
26786 # /* config.h. Generated by config.status. */
26787 configure_input
='Generated from '`
26788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26790 if test x
"$ac_file" != x-
; then
26791 configure_input
="$ac_file. $configure_input"
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26793 $as_echo "$as_me: creating $ac_file" >&6;}
26795 # Neutralize special characters interpreted by sed in replacement strings.
26796 case $configure_input in #(
26797 *\
&* |
*\|
* |
*\\* )
26798 ac_sed_conf_input
=`$as_echo "$configure_input" |
26799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26800 *) ac_sed_conf_input
=$configure_input;;
26804 *:-:* |
*:-) cat >"$tmp/stdin" \
26805 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
26810 ac_dir
=`$as_dirname -- "$ac_file" ||
26811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26812 X"$ac_file" : 'X\(//\)[^/]' \| \
26813 X"$ac_file" : 'X\(//\)$' \| \
26814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26815 $as_echo X"$ac_file" |
26816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26820 /^X\(\/\/\)[^/].*/{
26833 as_dir
="$ac_dir"; as_fn_mkdir_p
26837 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26839 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26840 # A ".." for each directory in $ac_dir_suffix.
26841 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26842 case $ac_top_builddir_sub in
26843 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26844 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26847 ac_abs_top_builddir
=$ac_pwd
26848 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26849 # for backward compatibility:
26850 ac_top_builddir
=$ac_top_build_prefix
26853 .
) # We are building in place.
26855 ac_top_srcdir
=$ac_top_builddir_sub
26856 ac_abs_top_srcdir
=$ac_pwd ;;
26857 [\\/]* | ?
:[\\/]* ) # Absolute name.
26858 ac_srcdir
=$srcdir$ac_dir_suffix;
26859 ac_top_srcdir
=$srcdir
26860 ac_abs_top_srcdir
=$srcdir ;;
26861 *) # Relative name.
26862 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26863 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26864 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26866 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26876 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26877 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26879 ac_MKDIR_P
=$MKDIR_P
26881 [\\/$
]* | ?
:[\\/]* ) ;;
26882 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26887 # If the template does not know about datarootdir, expand it.
26888 # FIXME: This hack should be removed a few years after 2.60.
26889 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26900 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26901 *datarootdir
*) ac_datarootdir_seen
=yes;;
26902 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26904 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26907 ac_datarootdir_hack='
26908 s&@datadir@&$datadir&g
26909 s&@docdir@&$docdir&g
26910 s&@infodir@&$infodir&g
26911 s&@localedir@&$localedir&g
26912 s&@mandir@&$mandir&g
26913 s&\\\${datarootdir}&$datarootdir&g' ;;
26917 # Neutralize VPATH when `$srcdir' = `.'.
26918 # Shell code in configure.ac might set extrasub.
26919 # FIXME: do we really want to maintain this feature?
26920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26921 ac_sed_extra="$ac_vpsub
26924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26926 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26927 s|@configure_input@|
$ac_sed_conf_input|
;t t
26928 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26929 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26930 s
&@srcdir@
&$ac_srcdir&;t t
26931 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26932 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26933 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26934 s
&@builddir@
&$ac_builddir&;t t
26935 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26936 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26937 s
&@INSTALL@
&$ac_INSTALL&;t t
26938 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26939 $ac_datarootdir_hack
26941 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26942 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
26944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26948 which seems to be undefined. Please make sure it is defined" >&5
26949 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26950 which seems to be undefined. Please make sure it is defined" >&2;}
26954 -) cat "$tmp/out" && rm -f "$tmp/out";;
26955 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26963 if test x"$ac_file" != x-; then
26965 $as_echo "/* $configure_input */" \
26966 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26967 } >"$tmp/config.h" \
26968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26969 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26971 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26974 mv "$tmp/config.h" "$ac_file" \
26975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26978 $as_echo "/* $configure_input */" \
26979 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26980 || as_fn_error $? "could not create -" "$LINENO" 5
26982 # Compute "$ac_file"'s index
in $config_headers.
26985 for _am_header
in $config_headers :; do
26986 case $_am_header in
26987 $_am_arg |
$_am_arg:* )
26990 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26993 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26994 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26995 X"$_am_arg" : 'X\(//\)[^/]' \| \
26996 X"$_am_arg" : 'X\(//\)$' \| \
26997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26998 $as_echo X"$_am_arg" |
26999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27003 /^X\(\/\/\)[^/].*/{
27015 s/.*/./; q'`/stamp-h
$_am_stamp_count
27018 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27019 $as_echo "$as_me: executing $ac_file commands" >&6;}
27024 case $ac_file$ac_mode in
27026 (mv zfs_config.h zfs_config.h.tmp
&&
27027 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
27028 rm zfs_config.h.tmp
) ||
exit 1 ;;
27029 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27030 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27031 # are listed without --file. Let's play safe and only enable the eval
27032 # if we detect the quoting.
27033 case $CONFIG_FILES in
27034 *\'*) eval set x
"$CONFIG_FILES" ;;
27035 *) set x
$CONFIG_FILES ;;
27040 # Strip MF so we end up with the name of the file.
27041 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27042 # Check whether this is an Automake generated Makefile or not.
27043 # We used to match only the files named `Makefile.in', but
27044 # some people rename them; so instead we look at the file content.
27045 # Grep'ing the first line is not enough: some people post-process
27046 # each Makefile.in and add a new line on top of each file to say so.
27047 # Grep'ing the whole file is not good either: AIX grep has a line
27048 # limit of 2048, but all sed's we know have understand at least 4000.
27049 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27050 dirpart
=`$as_dirname -- "$mf" ||
27051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27052 X"$mf" : 'X\(//\)[^/]' \| \
27053 X"$mf" : 'X\(//\)$' \| \
27054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27060 /^X\(\/\/\)[^/].*/{
27076 # Extract the definition of DEPDIR, am__include, and am__quote
27077 # from the Makefile without running `make'.
27078 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27079 test -z "$DEPDIR" && continue
27080 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27081 test -z "am__include" && continue
27082 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27083 # When using ansi2knr, U may be empty or an underscore; expand it
27084 U
=`sed -n 's/^U = //p' < "$mf"`
27085 # Find all dependency output files, they are included files with
27086 # $(DEPDIR) in their names. We invoke sed twice because it is the
27087 # simplest approach to changing $(DEPDIR) to its actual value in the
27089 for file in `sed -n "
27090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27092 # Make sure the directory exists.
27093 test -f "$dirpart/$file" && continue
27094 fdir
=`$as_dirname -- "$file" ||
27095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27096 X"$file" : 'X\(//\)[^/]' \| \
27097 X"$file" : 'X\(//\)$' \| \
27098 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27099 $as_echo X"$file" |
27100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27104 /^X\(\/\/\)[^/].*/{
27117 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27118 # echo "creating $dirpart/$file"
27119 echo '# dummy' > "$dirpart/$file"
27126 # See if we are running on zsh, and set the options which allow our
27127 # commands through without removal of \ escapes.
27128 if test -n "${ZSH_VERSION+set}" ; then
27129 setopt NO_GLOB_SUBST
27132 cfgfile
="${ofile}T"
27133 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27136 cat <<_LT_EOF >> "$cfgfile"
27139 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27140 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27142 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27144 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27145 # 2006, 2007, 2008 Free Software Foundation, Inc.
27146 # Written by Gordon Matzigkeit, 1996
27148 # This file is part of GNU Libtool.
27150 # GNU Libtool is free software; you can redistribute it and/or
27151 # modify it under the terms of the GNU General Public License as
27152 # published by the Free Software Foundation; either version 2 of
27153 # the License, or (at your option) any later version.
27155 # As a special exception to the GNU General Public License,
27156 # if you distribute this file as part of a program or library that
27157 # is built using GNU Libtool, you may include this file under the
27158 # same distribution terms that you use for the rest of that program.
27160 # GNU Libtool is distributed in the hope that it will be useful,
27161 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27163 # GNU General Public License for more details.
27165 # You should have received a copy of the GNU General Public License
27166 # along with GNU Libtool; see the file COPYING. If not, a copy
27167 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27168 # obtained by writing to the Free Software Foundation, Inc.,
27169 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27172 # The names of the tagged configurations supported by this script.
27175 # ### BEGIN LIBTOOL CONFIG
27177 # Which release of libtool.m4 was used?
27178 macro_version=$macro_version
27179 macro_revision=$macro_revision
27181 # Whether or not to build shared libraries.
27182 build_libtool_libs=$enable_shared
27184 # Whether or not to build static libraries.
27185 build_old_libs=$enable_static
27187 # What type of objects to build.
27190 # Whether or not to optimize for fast installation.
27191 fast_install=$enable_fast_install
27194 host_alias=$host_alias
27198 # The build system.
27199 build_alias=$build_alias
27203 # A sed program that does not truncate output.
27206 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27207 Xsed="\$SED -e 1s/^X//"
27209 # A grep program that handles long lines.
27215 # A literal string matcher.
27218 # A BSD- or MS-compatible name lister.
27221 # Whether we need soft or hard links.
27224 # What is the maximum length of a command?
27225 max_cmd_len=$max_cmd_len
27227 # Object file suffix (normally "o").
27230 # Executable file suffix (normally "").
27233 # whether the shell understands "unset".
27236 # turn spaces into newlines.
27239 # turn newlines into spaces.
27242 # How to create reloadable object files.
27243 reload_flag=$lt_reload_flag
27244 reload_cmds=$lt_reload_cmds
27246 # An object symbol dumper.
27247 OBJDUMP=$lt_OBJDUMP
27249 # Method to check whether dependent libraries are shared objects.
27250 deplibs_check_method=$lt_deplibs_check_method
27252 # Command to use when deplibs_check_method == "file_magic".
27253 file_magic_cmd=$lt_file_magic_cmd
27257 AR_FLAGS=$lt_AR_FLAGS
27259 # A symbol stripping program.
27262 # Commands used to install an old-style archive.
27264 old_postinstall_cmds=$lt_old_postinstall_cmds
27265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27270 # LTCC compiler flags.
27271 LTCFLAGS=$lt_CFLAGS
27273 # Take the output of nm and produce a listing of raw symbols and C names.
27274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27276 # Transform the output of nm in a proper C declaration.
27277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27279 # Transform the output of nm in a C name address pair.
27280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27282 # Transform the output of nm in a C name address pair when lib prefix is needed.
27283 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27285 # The name of the directory that contains temporary libtool files.
27288 # Shell to use when invoking shell scripts.
27291 # An echo program that does not interpret backslashes.
27294 # Used to examine libraries when file_magic_cmd begins with "file".
27295 MAGIC_CMD=$MAGIC_CMD
27297 # Must we lock files when doing compilation?
27298 need_locks=$lt_need_locks
27300 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27301 DSYMUTIL=$lt_DSYMUTIL
27303 # Tool to change global to local symbols on Mac OS X.
27306 # Tool to manipulate fat objects and archives on Mac OS X.
27309 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27312 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27313 OTOOL64=$lt_OTOOL64
27315 # Old archive suffix (normally "a").
27318 # Shared library suffix (normally ".so").
27319 shrext_cmds=$lt_shrext_cmds
27321 # The commands to extract the exported symbol list from a shared archive.
27322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27324 # Variables whose values should be saved in libtool wrapper scripts and
27325 # restored at link time.
27326 variables_saved_for_relink=$lt_variables_saved_for_relink
27328 # Do we need the "lib" prefix for modules?
27329 need_lib_prefix=$need_lib_prefix
27331 # Do we need a version for libraries?
27332 need_version=$need_version
27334 # Library versioning type.
27335 version_type=$version_type
27337 # Shared library runtime path variable.
27338 runpath_var=$runpath_var
27340 # Shared library path variable.
27341 shlibpath_var=$shlibpath_var
27343 # Is shlibpath searched before the hard-coded library search path?
27344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27346 # Format of library name prefix.
27347 libname_spec=$lt_libname_spec
27349 # List of archive names. First name is the real one, the rest are links.
27350 # The last name is the one that the linker finds with -lNAME
27351 library_names_spec=$lt_library_names_spec
27353 # The coded name of the library, if different from the real name.
27354 soname_spec=$lt_soname_spec
27356 # Command to use after installation of a shared archive.
27357 postinstall_cmds=$lt_postinstall_cmds
27359 # Command to use after uninstallation of a shared archive.
27360 postuninstall_cmds=$lt_postuninstall_cmds
27362 # Commands used to finish a libtool library installation in a directory.
27363 finish_cmds=$lt_finish_cmds
27365 # As "finish_cmds", except a single script fragment to be evaled but
27367 finish_eval=$lt_finish_eval
27369 # Whether we should hardcode library paths into libraries.
27370 hardcode_into_libs=$hardcode_into_libs
27372 # Compile-time system search path for libraries.
27373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27375 # Run-time system search path for libraries.
27376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27378 # Whether dlopen is supported.
27379 dlopen_support=$enable_dlopen
27381 # Whether dlopen of programs is supported.
27382 dlopen_self=$enable_dlopen_self
27384 # Whether dlopen of statically linked programs is supported.
27385 dlopen_self_static=$enable_dlopen_self_static
27387 # Commands to strip libraries.
27388 old_striplib=$lt_old_striplib
27389 striplib=$lt_striplib
27392 # The linker used to build libraries.
27395 # Commands used to build an old-style archive.
27396 old_archive_cmds=$lt_old_archive_cmds
27398 # A language specific compiler.
27401 # Is the compiler the GNU compiler?
27404 # Compiler flag to turn off builtin functions.
27405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27407 # How to pass a linker flag through the compiler.
27408 wl=$lt_lt_prog_compiler_wl
27410 # Additional compiler flags for building library objects.
27411 pic_flag=$lt_lt_prog_compiler_pic
27413 # Compiler flag to prevent dynamic linking.
27414 link_static_flag=$lt_lt_prog_compiler_static
27416 # Does compiler simultaneously support -c and -o options?
27417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27419 # Whether or not to add -lc for building shared libraries.
27420 build_libtool_need_lc=$archive_cmds_need_lc
27422 # Whether or not to disallow shared libs when runtime libs are static.
27423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27425 # Compiler flag to allow reflexive dlopens.
27426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27428 # Compiler flag to generate shared objects directly from archives.
27429 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27431 # Whether the compiler copes with passing no objects directly.
27432 compiler_needs_object=$lt_compiler_needs_object
27434 # Create an old-style archive from a shared archive.
27435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27437 # Create a temporary old-style archive to link instead of a shared archive.
27438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27440 # Commands used to build a shared archive.
27441 archive_cmds=$lt_archive_cmds
27442 archive_expsym_cmds=$lt_archive_expsym_cmds
27444 # Commands used to build a loadable module if different from building
27445 # a shared archive.
27446 module_cmds=$lt_module_cmds
27447 module_expsym_cmds=$lt_module_expsym_cmds
27449 # Whether we are building with GNU ld or not.
27450 with_gnu_ld=$lt_with_gnu_ld
27452 # Flag that allows shared libraries with undefined symbols to be built.
27453 allow_undefined_flag=$lt_allow_undefined_flag
27455 # Flag that enforces no undefined symbols.
27456 no_undefined_flag=$lt_no_undefined_flag
27458 # Flag to hardcode \$libdir into a binary during linking.
27459 # This must work even if \$libdir does not exist
27460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27462 # If ld is used when linking, flag to hardcode \$libdir into a binary
27463 # during linking. This must work even if \$libdir does not exist.
27464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27466 # Whether we need a single "-rpath" flag with a separated argument.
27467 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27470 # DIR into the resulting binary.
27471 hardcode_direct=$hardcode_direct
27473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27474 # DIR into the resulting binary and the resulting library dependency is
27475 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27476 # library is relocated.
27477 hardcode_direct_absolute=$hardcode_direct_absolute
27479 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27480 # into the resulting binary.
27481 hardcode_minus_L=$hardcode_minus_L
27483 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27484 # into the resulting binary.
27485 hardcode_shlibpath_var=$hardcode_shlibpath_var
27487 # Set to "yes" if building a shared library automatically hardcodes DIR
27488 # into the library and all subsequent libraries and executables linked
27490 hardcode_automatic=$hardcode_automatic
27492 # Set to yes if linker adds runtime paths of dependent libraries
27493 # to runtime path list.
27494 inherit_rpath=$inherit_rpath
27496 # Whether libtool must link a program against all its dependency libraries.
27497 link_all_deplibs=$link_all_deplibs
27499 # Fix the shell variable \$srcfile for the compiler.
27500 fix_srcfile_path=$lt_fix_srcfile_path
27502 # Set to "yes" if exported symbols are required.
27503 always_export_symbols=$always_export_symbols
27505 # The commands to list exported symbols.
27506 export_symbols_cmds=$lt_export_symbols_cmds
27508 # Symbols that should not be listed in the preloaded symbols.
27509 exclude_expsyms=$lt_exclude_expsyms
27511 # Symbols that must always be exported.
27512 include_expsyms=$lt_include_expsyms
27514 # Commands necessary for linking programs (against libraries) with templates.
27515 prelink_cmds=$lt_prelink_cmds
27517 # Specify filename containing input files.
27518 file_list_spec=$lt_file_list_spec
27520 # How to hardcode a shared library path into an executable.
27521 hardcode_action=$hardcode_action
27523 # ### END LIBTOOL CONFIG
27529 cat <<\_LT_EOF
>> "$cfgfile"
27530 # AIX sometimes has problems with the GCC collect2 program. For some
27531 # reason, if we set the COLLECT_NAMES environment variable, the problems
27532 # vanish in a puff of smoke.
27533 if test "X${COLLECT_NAMES+set}" != Xset
; then
27535 export COLLECT_NAMES
27542 ltmain
="$ac_aux_dir/ltmain.sh"
27545 # We use sed instead of cat because bash on DJGPP gets confused if
27546 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27547 # text mode, it properly converts lines to CR/LF. This bash problem
27548 # is reportedly fixed, but why not run on old versions too?
27549 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27550 ||
(rm -f "$cfgfile"; exit 1)
27554 cat << \_LT_EOF
>> "$cfgfile"
27556 # func_dirname file append nondir_replacement
27557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27558 # otherwise set result to NONDIR_REPLACEMENT.
27562 */*) func_dirname_result
="${1%/*}${2}" ;;
27563 * ) func_dirname_result
="${3}" ;;
27567 # func_basename file
27570 func_basename_result
="${1##*/}"
27573 # func_dirname_and_basename file append nondir_replacement
27574 # perform func_basename and func_dirname in a single function
27576 # dirname: Compute the dirname of FILE. If nonempty,
27577 # add APPEND to the result, otherwise set result
27578 # to NONDIR_REPLACEMENT.
27579 # value returned in "$func_dirname_result"
27580 # basename: Compute filename of FILE.
27581 # value retuned in "$func_basename_result"
27582 # Implementation must be kept synchronized with func_dirname
27583 # and func_basename. For efficiency, we do not delegate to
27584 # those functions but instead duplicate the functionality here.
27585 func_dirname_and_basename
()
27588 */*) func_dirname_result
="${1%/*}${2}" ;;
27589 * ) func_dirname_result
="${3}" ;;
27591 func_basename_result
="${1##*/}"
27594 # func_stripname prefix suffix name
27595 # strip PREFIX and SUFFIX off of NAME.
27596 # PREFIX and SUFFIX must not contain globbing or regex special
27597 # characters, hashes, percent signs, but SUFFIX may contain a leading
27598 # dot (in which case that matches only a dot).
27601 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27602 # positional parameters, so assign one to ordinary parameter first.
27603 func_stripname_result
=${3}
27604 func_stripname_result
=${func_stripname_result#"${1}"}
27605 func_stripname_result
=${func_stripname_result%"${2}"}
27611 func_opt_split_opt
=${1%%=*}
27612 func_opt_split_arg
=${1#*=}
27619 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
27620 *) func_lo2o_result
=${1} ;;
27624 # func_xform libobj-or-source
27627 func_xform_result
=${1%.*}.lo
27630 # func_arith arithmetic-term...
27633 func_arith_result
=$
(( $
* ))
27637 # STRING may not start with a hyphen.
27640 func_len_result
=${#1}
27645 *) # Bourne compatible functions.
27646 cat << \_LT_EOF
>> "$cfgfile"
27648 # func_dirname file append nondir_replacement
27649 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27650 # otherwise set result to NONDIR_REPLACEMENT.
27653 # Extract subdirectory from the argument.
27654 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27655 if test "X$func_dirname_result" = "X${1}"; then
27656 func_dirname_result
="${3}"
27658 func_dirname_result
="$func_dirname_result${2}"
27662 # func_basename file
27665 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
27669 # func_stripname prefix suffix name
27670 # strip PREFIX and SUFFIX off of NAME.
27671 # PREFIX and SUFFIX must not contain globbing or regex special
27672 # characters, hashes, percent signs, but SUFFIX may contain a leading
27673 # dot (in which case that matches only a dot).
27674 # func_strip_suffix prefix name
27678 .
*) func_stripname_result
=`$ECHO "X${3}" \
27679 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27680 *) func_stripname_result
=`$ECHO "X${3}" \
27681 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27686 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
27687 my_sed_long_arg
='1s/^-[^=]*=//'
27692 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27693 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27699 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27702 # func_xform libobj-or-source
27705 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27708 # func_arith arithmetic-term...
27711 func_arith_result
=`expr "$@"`
27715 # STRING may not start with a hyphen.
27718 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27724 case $lt_shell_append in
27726 cat << \_LT_EOF
>> "$cfgfile"
27728 # func_append var value
27729 # Append VALUE to the end of shell variable VAR.
27737 cat << \_LT_EOF
>> "$cfgfile"
27739 # func_append var value
27740 # Append VALUE to the end of shell variable VAR.
27751 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27752 ||
(rm -f "$cfgfile"; exit 1)
27754 mv -f "$cfgfile" "$ofile" ||
27755 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27766 ac_clean_files
=$ac_clean_files_save
27768 test $ac_write_fail = 0 ||
27769 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27772 # configure is writing to config.log, and then calls config.status.
27773 # config.status does its own redirection, appending to config.log.
27774 # Unfortunately, on DOS this fails, as config.log is still kept open
27775 # by configure, so config.status won't be able to write to it; its
27776 # output is simply discarded. So we exec the FD to /dev/null,
27777 # effectively closing config.log, so it can be properly (re)opened and
27778 # appended to by config.status. When coming back to configure, we
27779 # need to make the FD available again.
27780 if test "$no_create" != yes; then
27782 ac_config_status_args
=
27783 test "$silent" = yes &&
27784 ac_config_status_args
="$ac_config_status_args --quiet"
27786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27789 # would make configure fail if this is the last instruction.
27790 $ac_cs_success || as_fn_exit
1
27792 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27794 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}