2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for zfs 0.7.11.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL
=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec
; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo
; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo
; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset
; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
638 for dir
in $PATH /usr
/ucb
; do
640 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho
; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL
=/bin
/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
679 SHELL
="$CONFIG_SHELL"
681 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string
=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev
/null
6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix
=/usr
/local
735 ac_config_libobj_dir
=.
741 SHELL
=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
745 PACKAGE_TARNAME
='zfs'
746 PACKAGE_VERSION
='0.7.11'
747 PACKAGE_STRING
='zfs 0.7.11'
750 # Factoring default headers for most tests.
751 ac_includes_default
="\
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
763 # ifdef HAVE_STDLIB_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
786 ac_subst_vars
='am__EXEEXT_FALSE
793 WANT_MMAP_LIBAIO_FALSE
794 WANT_MMAP_LIBAIO_TRUE
795 WANT_DEVNAME2DEVID_FALSE
796 WANT_DEVNAME2DEVID_TRUE
839 TARGET_ASM_GENERIC_FALSE
840 TARGET_ASM_GENERIC_TRUE
841 TARGET_ASM_I386_FALSE
843 TARGET_ASM_X86_64_FALSE
844 TARGET_ASM_X86_64_TRUE
847 NO_UNUSED_BUT_SET_VARIABLE
881 CODE_COVERAGE_LDFLAGS
883 CODE_COVERAGE_CXXFLAGS
885 CODE_COVERAGE_CPPFLAGS
889 CODE_COVERAGE_ENABLED
890 CODE_COVERAGE_ENABLED_FALSE
891 CODE_COVERAGE_ENABLED_TRUE
892 am__fastdepCCAS_FALSE
940 INSTALL_STRIP_PROGRAM
958 MAINTAINER_MODE_FALSE
1011 program_transform_name
1023 enable_option_checking
1024 enable_maintainer_mode
1026 enable_dependency_tracking
1034 enable_code_coverage
1037 enable_linux_builtin
1050 with_systemdpresetdir
1051 with_systemdmodulesloaddir
1058 ac_precious_vars
='build_alias
1071 # Initialize some variables set by options.
1073 ac_init_version
=false
1074 ac_unrecognized_opts
=
1075 ac_unrecognized_sep
=
1076 # The variables have the same names as the options, with
1077 # dashes changed to underlines.
1078 cache_file
=/dev
/null
1085 program_transform_name
=s
,x
,x
,
1093 # Installation directory options.
1094 # These are left unexpanded so users can "make install exec_prefix=/foo"
1095 # and all the variables that are supposed to be based on exec_prefix
1096 # by default will actually change.
1097 # Use braces instead of parens because sh, perl, etc. also accept them.
1098 # (The list follows the same order as the GNU Coding Standards.)
1099 bindir
='${exec_prefix}/bin'
1100 sbindir
='${exec_prefix}/sbin'
1101 libexecdir
='${exec_prefix}/libexec'
1102 datarootdir
='${prefix}/share'
1103 datadir
='${datarootdir}'
1104 sysconfdir
='${prefix}/etc'
1105 sharedstatedir
='${prefix}/com'
1106 localstatedir
='${prefix}/var'
1107 includedir
='${prefix}/include'
1108 oldincludedir
='/usr/include'
1109 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110 infodir
='${datarootdir}/info'
1115 libdir
='${exec_prefix}/lib'
1116 localedir
='${datarootdir}/locale'
1117 mandir
='${datarootdir}/man'
1123 # If the previous option needs an argument, assign it.
1124 if test -n "$ac_prev"; then
1125 eval $ac_prev=\
$ac_option
1131 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1137 case $ac_dashdash$ac_option in
1141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1144 bindir
=$ac_optarg ;;
1146 -build |
--build |
--buil |
--bui |
--bu)
1147 ac_prev
=build_alias
;;
1148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1149 build_alias
=$ac_optarg ;;
1151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1153 ac_prev
=cache_file
;;
1154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1156 cache_file
=$ac_optarg ;;
1158 --config-cache |
-C)
1159 cache_file
=config.cache
;;
1161 -datadir |
--datadir |
--datadi |
--datad)
1163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1164 datadir
=$ac_optarg ;;
1166 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1167 |
--dataroo |
--dataro |
--datar)
1168 ac_prev
=datarootdir
;;
1169 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1170 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1171 datarootdir
=$ac_optarg ;;
1173 -disable-* |
--disable-*)
1174 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig
=$ac_useropt
1180 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "enable_
$ac_useropt"
1185 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep
=', ';;
1188 eval enable_
$ac_useropt=no
;;
1190 -docdir |
--docdir |
--docdi |
--doc |
--do)
1192 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1193 docdir
=$ac_optarg ;;
1195 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1197 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1198 dvidir
=$ac_optarg ;;
1200 -enable-* |
--enable-*)
1201 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1204 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "enable_
$ac_useropt"
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval enable_
$ac_useropt=\
$ac_optarg ;;
1217 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1218 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1219 |
--exec |
--exe |
--ex)
1220 ac_prev
=exec_prefix
;;
1221 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1222 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1223 |
--exec=* |
--exe=* |
--ex=*)
1224 exec_prefix
=$ac_optarg ;;
1226 -gas |
--gas |
--ga |
--g)
1227 # Obsolete; use --with-gas.
1230 -help |
--help |
--hel |
--he |
-h)
1231 ac_init_help
=long
;;
1232 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1233 ac_init_help
=recursive
;;
1234 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1235 ac_init_help
=short
;;
1237 -host |
--host |
--hos |
--ho)
1238 ac_prev
=host_alias
;;
1239 -host=* |
--host=* |
--hos=* |
--ho=*)
1240 host_alias
=$ac_optarg ;;
1242 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1244 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1246 htmldir
=$ac_optarg ;;
1248 -includedir |
--includedir |
--includedi |
--included |
--include \
1249 |
--includ |
--inclu |
--incl |
--inc)
1250 ac_prev
=includedir
;;
1251 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1252 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1253 includedir
=$ac_optarg ;;
1255 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1257 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1258 infodir
=$ac_optarg ;;
1260 -libdir |
--libdir |
--libdi |
--libd)
1262 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1263 libdir
=$ac_optarg ;;
1265 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1266 |
--libexe |
--libex |
--libe)
1267 ac_prev
=libexecdir
;;
1268 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1269 |
--libexe=* |
--libex=* |
--libe=*)
1270 libexecdir
=$ac_optarg ;;
1272 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1273 ac_prev
=localedir
;;
1274 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1275 localedir
=$ac_optarg ;;
1277 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1278 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1279 ac_prev
=localstatedir
;;
1280 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1281 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1282 localstatedir
=$ac_optarg ;;
1284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1287 mandir
=$ac_optarg ;;
1289 -nfp |
--nfp |
--nf)
1290 # Obsolete; use --without-fp.
1293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1294 |
--no-cr |
--no-c |
-n)
1297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1303 |
--oldin |
--oldi |
--old |
--ol |
--o)
1304 ac_prev
=oldincludedir
;;
1305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1308 oldincludedir
=$ac_optarg ;;
1310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1313 prefix
=$ac_optarg ;;
1315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1316 |
--program-pre |
--program-pr |
--program-p)
1317 ac_prev
=program_prefix
;;
1318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1320 program_prefix
=$ac_optarg ;;
1322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1323 |
--program-suf |
--program-su |
--program-s)
1324 ac_prev
=program_suffix
;;
1325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1327 program_suffix
=$ac_optarg ;;
1329 -program-transform-name |
--program-transform-name \
1330 |
--program-transform-nam |
--program-transform-na \
1331 |
--program-transform-n |
--program-transform- \
1332 |
--program-transform |
--program-transfor \
1333 |
--program-transfo |
--program-transf \
1334 |
--program-trans |
--program-tran \
1335 |
--progr-tra |
--program-tr |
--program-t)
1336 ac_prev
=program_transform_name
;;
1337 -program-transform-name=* |
--program-transform-name=* \
1338 |
--program-transform-nam=* |
--program-transform-na=* \
1339 |
--program-transform-n=* |
--program-transform-=* \
1340 |
--program-transform=* |
--program-transfor=* \
1341 |
--program-transfo=* |
--program-transf=* \
1342 |
--program-trans=* |
--program-tran=* \
1343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1344 program_transform_name
=$ac_optarg ;;
1346 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1348 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1349 pdfdir
=$ac_optarg ;;
1351 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1353 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1357 |
-silent |
--silent |
--silen |
--sile |
--sil)
1360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1364 sbindir
=$ac_optarg ;;
1366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1370 ac_prev
=sharedstatedir
;;
1371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1375 sharedstatedir
=$ac_optarg ;;
1377 -site |
--site |
--sit)
1379 -site=* |
--site=* |
--sit=*)
1382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1385 srcdir
=$ac_optarg ;;
1387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1389 ac_prev
=sysconfdir
;;
1390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1392 sysconfdir
=$ac_optarg ;;
1394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1395 ac_prev
=target_alias
;;
1396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1397 target_alias
=$ac_optarg ;;
1399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1402 -version |
--version |
--versio |
--versi |
--vers |
-V)
1403 ac_init_version
=: ;;
1406 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1409 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1410 { (exit 1); exit 1; }; }
1411 ac_useropt_orig
=$ac_useropt
1412 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1417 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep
=', ';;
1420 eval with_
$ac_useropt=\
$ac_optarg ;;
1422 -without-* |
--without-*)
1423 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1426 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1427 { (exit 1); exit 1; }; }
1428 ac_useropt_orig
=$ac_useropt
1429 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1434 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435 ac_unrecognized_sep
=', ';;
1437 eval with_
$ac_useropt=no
;;
1440 # Obsolete; use --with-x.
1443 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1444 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1445 ac_prev
=x_includes
;;
1446 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1447 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1448 x_includes
=$ac_optarg ;;
1450 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1451 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1452 ac_prev
=x_libraries
;;
1453 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1454 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1455 x_libraries
=$ac_optarg ;;
1457 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1458 Try \`$0 --help' for more information." >&2
1459 { (exit 1); exit 1; }; }
1463 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1464 # Reject names that are not valid shell variable names.
1465 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1466 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1467 { (exit 1); exit 1; }; }
1468 eval $ac_envvar=\
$ac_optarg
1469 export $ac_envvar ;;
1472 # FIXME: should be removed in autoconf 3.0.
1473 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1475 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1476 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1482 if test -n "$ac_prev"; then
1483 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1484 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1485 { (exit 1); exit 1; }; }
1488 if test -n "$ac_unrecognized_opts"; then
1489 case $enable_option_checking in
1491 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1492 { (exit 1); exit 1; }; } ;;
1493 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1497 # Check all directory arguments for consistency.
1498 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499 datadir sysconfdir sharedstatedir localstatedir includedir \
1500 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1501 libdir localedir mandir
1503 eval ac_val
=\$
$ac_var
1504 # Remove trailing slashes.
1507 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1508 eval $ac_var=\
$ac_val;;
1510 # Be sure to have absolute directory names.
1512 [\\/$
]* | ?
:[\\/]* ) continue;;
1513 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1515 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1516 { (exit 1); exit 1; }; }
1519 # There might be people who depend on the old broken behavior: `$host'
1520 # used to hold the argument of --host etc.
1521 # FIXME: To remove some day.
1524 target
=$target_alias
1526 # FIXME: To remove some day.
1527 if test "x$host_alias" != x
; then
1528 if test "x$build_alias" = x
; then
1529 cross_compiling
=maybe
1530 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1531 If a cross compiler is detected then cross compile mode will be used." >&2
1532 elif test "x$build_alias" != "x$host_alias"; then
1538 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1540 test "$silent" = yes && exec 6>/dev
/null
1543 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1544 ac_ls_di
=`ls -di .` &&
1545 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1546 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1547 { (exit 1); exit 1; }; }
1548 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1549 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1550 { (exit 1); exit 1; }; }
1553 # Find the source files, if location was not specified.
1554 if test -z "$srcdir"; then
1555 ac_srcdir_defaulted
=yes
1556 # Try the directory containing this script, then the parent directory.
1557 ac_confdir
=`$as_dirname -- "$as_myself" ||
1558 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559 X"$as_myself" : 'X\(//\)[^/]' \| \
1560 X"$as_myself" : 'X\(//\)$' \| \
1561 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562 $as_echo X"$as_myself" |
1563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1585 ac_srcdir_defaulted
=no
1587 if test ! -r "$srcdir/$ac_unique_file"; then
1588 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1589 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1590 { (exit 1); exit 1; }; }
1592 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1595 { (exit 1); exit 1; }; }
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var
in $ac_precious_vars; do
1608 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1610 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures zfs 0.7.11 to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1684 --build=BUILD configure
for building on BUILD
[guessed
]
1685 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1686 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1690 if test -n "$ac_init_help"; then
1691 case $ac_init_help in
1692 short | recursive
) echo "Configuration of zfs 0.7.11:";;
1697 --disable-option-checking ignore unrecognized
--enable/--with options
1698 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1699 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1700 --enable-maintainer-mode enable make rules and dependencies not useful
1701 (and sometimes confusing
) to the casual installer
1702 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1703 --disable-silent-rules verbose build output (undo: `make V
=0')
1704 --disable-dependency-tracking speeds up one-time build
1705 --enable-dependency-tracking do not reject slow dependency extractors
1706 --enable-shared[=PKGS] build shared libraries [default=yes]
1707 --enable-static[=PKGS] build static libraries [default=yes]
1708 --enable-fast-install[=PKGS]
1709 optimize for fast installation [default=yes]
1710 --disable-libtool-lock avoid locking (might break parallel builds)
1711 --enable-code-coverage Whether to enable code coverage support
1712 --enable-linux-builtin Configure for builtin in-tree kernel modules
1714 --enable-systemd install systemd unit/preset files
1716 --enable-sysvinit install SysV init scripts default:, yes
1717 --enable-debug Enable assertion support [default=no]
1718 --enable-debuginfo Force generation of debuginfo [default=no]
1721 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1722 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1727 --with-spec=SPEC Spec files 'generic|redhat
'
1728 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1729 --with-linux=PATH Path to kernel source
1730 --with-linux-obj=PATH Path to kernel build objects
1731 --with-spl=PATH Path to spl source
1732 --with-spl-obj=PATH Path to spl build objects
1733 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1734 --with-qat=PATH Path to qat source
1735 --with-qat-obj=PATH Path to qat build objects
1736 --with-mounthelperdir=DIR
1737 install mount.zfs in dir [/sbin]
1738 --with-udevdir=DIR install udev helpers [default=check]
1739 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1740 --with-systemdunitdir=DIR
1741 install systemd unit files in dir
1742 [/usr/lib/systemd/system]
1743 --with-systemdpresetdir=DIR
1744 install systemd preset files in dir
1745 [/usr/lib/systemd/system-preset]
1746 --with-systemdmodulesloaddir=DIR
1747 install systemd module load files into dir
1748 [/usr/lib/modules-load.d]
1749 --with-dracutdir=DIR install dracut helpers [default=check]
1750 --with-tirpc use tirpc for xdr encoding [default=check]
1752 Some influential environment variables:
1753 CC C compiler command
1754 CFLAGS C compiler flags
1755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1756 nonstandard directory <lib dir>
1757 LIBS libraries to pass to the linker, e.g. -l<library>
1758 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1759 you have headers in a nonstandard directory <include dir>
1761 CCAS assembler compiler command (defaults to CC)
1762 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1764 Use these variables to override the choices made by `configure' or to
help
1765 it to
find libraries and programs with nonstandard names
/locations.
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1780 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1782 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1787 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1790 ac_abs_top_builddir
=$ac_pwd
1791 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir
=$ac_top_build_prefix
1796 .
) # We are building in place.
1798 ac_top_srcdir
=$ac_top_builddir_sub
1799 ac_abs_top_srcdir
=$ac_pwd ;;
1800 [\\/]* | ?
:[\\/]* ) # Absolute name.
1801 ac_srcdir
=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir
=$srcdir
1803 ac_abs_top_srcdir
=$srcdir ;;
1805 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1809 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1811 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1829 zfs configure
0.7.11
1830 generated by GNU Autoconf
2.63
1832 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1833 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1834 This configure
script is free software
; the Free Software Foundation
1835 gives unlimited permission to copy
, distribute and modify it.
1839 cat >config.log
<<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1843 It was created by zfs $as_me 0.7.11, which was
1844 generated by GNU Autoconf 2.63. Invocation command line was
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 $as_echo "PATH: $as_dir"
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_must_keep_next
=false
1910 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1911 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1912 |
-silent |
--silent |
--silen |
--sile |
--sil)
1915 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1920 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1921 if test $ac_must_keep_next = true
; then
1922 ac_must_keep_next
=false
# Got value, back to normal.
1925 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1926 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1927 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1928 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933 -* ) ac_must_keep_next
=true
;;
1936 ac_configure_args
="$ac_configure_args '$ac_arg'"
1941 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1942 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1960 # The following way of writing the cache mishandles newlines in values,
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973 *) $as_unset $ac_var ;;
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 $as_echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2015 for ac_var
in $ac_subst_files
2017 eval ac_val
=\$
$ac_var
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 for ac_signal
in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest
* confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h
<<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 cat >>confdefs.h
<<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 cat >>confdefs.h
<<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 cat >>confdefs.h
<<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 cat >>confdefs.h
<<_ACEOF
2075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084 ac_site_file1
=$CONFIG_SITE
2085 elif test "x$prefix" != xNONE
; then
2086 ac_site_file1
=$prefix/share
/config.site
2087 ac_site_file2
=$prefix/etc
/config.site
2089 ac_site_file1
=$ac_default_prefix/share
/config.site
2090 ac_site_file2
=$ac_default_prefix/etc
/config.site
2092 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2094 test "x$ac_site_file" = xNONE
&& continue
2095 if test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2111 *) .
"./$cache_file";;
2115 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 $as_echo "$as_me: creating cache $cache_file" >&6;}
2120 # Check that the precious variables saved in the cache have kept the same
2122 ac_cache_corrupted
=false
2123 for ac_var
in $ac_precious_vars; do
2124 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2125 eval ac_new_set
=\
$ac_env_${ac_var}_set
2126 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2127 eval ac_new_val
=\
$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2130 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted
=: ;;
2134 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted
=: ;;
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w
=`echo x $ac_old_val`
2142 ac_new_val_w
=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted
=:
2148 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\
$ac_old_val
2152 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2154 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2161 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg
=$ac_var=$ac_new_val ;;
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2166 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2170 if $ac_cache_corrupted; then
2171 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2176 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2177 { (exit 1); exit 1; }; }
2205 ac_cpp
='$CPP $CPPFLAGS'
2206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2212 ac_cpp
='$CPP $CPPFLAGS'
2213 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2222 for ac_prog
in gawk mawk nawk
awk
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy
$ac_prog; ac_word
=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_AWK+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir
=.
2239 for ac_exec_ext
in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_AWK
="$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$AWK"; then
2253 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2254 $as_echo "$AWK" >&6; }
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2261 test -n "$AWK" && break
2264 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2265 $as_echo_n "checking metadata... " >&6; }
2268 _zfs_ac_meta_type
="none"
2269 if test -f "$META"; then
2270 _zfs_ac_meta_type
="META file"
2272 ZFS_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2273 if test -n "$ZFS_META_NAME"; then
2275 cat >>confdefs.h
<<_ACEOF
2276 #define ZFS_META_NAME "$ZFS_META_NAME"
2282 ZFS_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2283 if test -n "$ZFS_META_VERSION"; then
2285 cat >>confdefs.h
<<_ACEOF
2286 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2292 ZFS_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2293 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2294 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2295 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2296 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2297 if test -n "${_release}"; then
2298 ZFS_META_RELEASE
=${_release}
2299 _zfs_ac_meta_type
="git describe"
2301 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2302 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2303 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2304 if test -n "${_release}"; then
2305 ZFS_META_RELEASE
=${_release}
2306 _zfs_ac_meta_type
="git describe"
2311 if test -n "$ZFS_META_RELEASE"; then
2313 cat >>confdefs.h
<<_ACEOF
2314 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2319 RELEASE
="$ZFS_META_RELEASE"
2323 ZFS_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2324 if test -n "$ZFS_META_LICENSE"; then
2326 cat >>confdefs.h
<<_ACEOF
2327 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2333 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2334 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2335 test -n "$ZFS_META_RELEASE" &&
2336 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2338 cat >>confdefs.h
<<_ACEOF
2339 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2345 ZFS_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2346 if test -n "$ZFS_META_DATA"; then
2348 cat >>confdefs.h
<<_ACEOF
2349 #define ZFS_META_DATA "$ZFS_META_DATA"
2355 ZFS_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2356 if test -n "$ZFS_META_AUTHOR"; then
2358 cat >>confdefs.h
<<_ACEOF
2359 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2366 ZFS_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2367 ZFS_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2368 ZFS_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2369 if test -n "$ZFS_META_LT_CURRENT" \
2370 -o -n "$ZFS_META_LT_REVISION" \
2371 -o -n "$ZFS_META_LT_AGE"; then
2372 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2373 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2374 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2376 cat >>confdefs.h
<<_ACEOF
2377 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2381 cat >>confdefs.h
<<_ACEOF
2382 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2386 cat >>confdefs.h
<<_ACEOF
2387 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2396 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
2397 $as_echo "$_zfs_ac_meta_type" >&6; }
2401 for ac_dir
in config
"$srcdir"/config
; do
2402 if test -f "$ac_dir/install-sh"; then
2404 ac_install_sh
="$ac_aux_dir/install-sh -c"
2406 elif test -f "$ac_dir/install.sh"; then
2408 ac_install_sh
="$ac_aux_dir/install.sh -c"
2410 elif test -f "$ac_dir/shtool"; then
2412 ac_install_sh
="$ac_aux_dir/shtool install -c"
2416 if test -z "$ac_aux_dir"; then
2417 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2418 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2419 { (exit 1); exit 1; }; }
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2434 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2436 { (exit 1); exit 1; }; }
2438 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2439 $as_echo_n "checking build system type... " >&6; }
2440 if test "${ac_cv_build+set}" = set; then
2441 $as_echo_n "(cached) " >&6
2443 ac_build_alias
=$build_alias
2444 test "x$ac_build_alias" = x
&&
2445 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2446 test "x$ac_build_alias" = x
&&
2447 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
2450 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
2456 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457 $as_echo "$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2460 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
2465 ac_save_IFS
=$IFS; IFS
='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if test "${ac_cv_host+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2483 if test "x$host_alias" = x
; then
2484 ac_cv_host
=$ac_cv_build
2486 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2489 { (exit 1); exit 1; }; }
2493 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2494 $as_echo "$ac_cv_host" >&6; }
2497 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
2502 ac_save_IFS
=$IFS; IFS
='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2515 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2516 $as_echo_n "checking target system type... " >&6; }
2517 if test "${ac_cv_target+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2520 if test "x$target_alias" = x
; then
2521 ac_cv_target
=$ac_cv_host
2523 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2525 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2526 { (exit 1); exit 1; }; }
2530 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2531 $as_echo "$ac_cv_target" >&6; }
2532 case $ac_cv_target in
2534 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2535 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2536 { (exit 1); exit 1; }; };;
2538 target
=$ac_cv_target
2539 ac_save_IFS
=$IFS; IFS
='-'
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2549 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552 # The aliases save the names the user supplied, while $host etc.
2553 # will get canonicalized.
2554 test -n "$target_alias" &&
2555 test "$program_prefix$program_suffix$program_transform_name" = \
2557 program_prefix
=${target_alias}-
2559 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2560 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2561 # Check whether --enable-maintainer-mode was given.
2562 if test "${enable_maintainer_mode+set}" = set; then
2563 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2565 USE_MAINTAINER_MODE
=no
2568 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2569 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2570 if test $USE_MAINTAINER_MODE = yes; then
2571 MAINTAINER_MODE_TRUE
=
2572 MAINTAINER_MODE_FALSE
='#'
2574 MAINTAINER_MODE_TRUE
='#'
2575 MAINTAINER_MODE_FALSE
=
2578 MAINT
=$MAINTAINER_MODE_TRUE
2581 # Check whether --enable-silent-rules was given.
2582 if test "${enable_silent_rules+set}" = set; then
2583 enableval
=$enable_silent_rules;
2586 case $enable_silent_rules in
2587 yes) AM_DEFAULT_VERBOSITY
=0;;
2588 no
) AM_DEFAULT_VERBOSITY
=1;;
2589 *) AM_DEFAULT_VERBOSITY
=0;;
2593 am__api_version='1.11'
2595 # Find a good install program. We prefer a C program (faster),
2596 # so one script is as good as another. But avoid the broken or
2597 # incompatible versions:
2598 # SysV /etc/install, /usr/sbin/install
2599 # SunOS /usr/etc/install
2600 # IRIX /sbin/install
2602 # AmigaOS /C/install, which installs bootblocks on floppy discs
2603 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606 # OS/2's system install, which has a completely different semantic
2607 # ./install, which can be erroneously created by make from ./install.sh.
2608 # Reject install programs that cannot install multiple files.
2609 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2610 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2611 if test -z "$INSTALL"; then
2612 if test "${ac_cv_path_install+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir
=.
2620 # Account for people who put trailing slashes in PATH elements.
2622 .
/ | .
// |
/cC
/* | \
2623 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2624 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2627 # OSF1 and SCO ODT 3.0 have their own names for install.
2628 # Don't use installbsd from OSF since it installs stuff as root
2630 for ac_prog
in ginstall scoinst
install; do
2631 for ac_exec_ext
in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2633 if test $ac_prog = install &&
2634 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2635 # AIX install. It has an incompatible calling convention.
2637 elif test $ac_prog = install &&
2638 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2639 # program-specific install script used by HP pwplus--don't use.
2642 rm -rf conftest.one conftest.two conftest.dir
2643 echo one
> conftest.one
2644 echo two
> conftest.two
2646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2647 test -s conftest.one
&& test -s conftest.two
&&
2648 test -s conftest.dir
/conftest.one
&&
2649 test -s conftest.dir
/conftest.two
2651 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2664 rm -rf conftest.one conftest.two conftest.dir
2667 if test "${ac_cv_path_install+set}" = set; then
2668 INSTALL
=$ac_cv_path_install
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for INSTALL within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 INSTALL
=$ac_install_sh
2677 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2678 $as_echo "$INSTALL" >&6; }
2680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681 # It thinks the first close brace ends the variable substitution.
2682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2686 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2688 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2689 $as_echo_n "checking whether build environment is sane... " >&6; }
2692 echo timestamp
> conftest.
file
2693 # Reject unsafe characters in $srcdir or the absolute working directory
2694 # name. Accept space and tab only in the latter.
2698 *[\\\"\
#\$\&\'\`$am_lf]*)
2699 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2700 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2701 { (exit 1); exit 1; }; };;
2704 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2705 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2706 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2707 { (exit 1); exit 1; }; };;
2710 # Do `set' in a subshell so we don't clobber the current shell's
2711 # arguments. Must try -L first in case configure is actually a
2712 # symlink; some systems play weird games with the mod time of symlinks
2713 # (eg FreeBSD returns the mod time of the symlink's containing
2716 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717 if test "$*" = "X"; then
2719 set X
`ls -t "$srcdir/configure" conftest.file`
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" >&5
2731 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" >&2;}
2733 { (exit 1); exit 1; }; }
2736 test "$2" = conftest.
file
2742 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2743 Check your system clock" >&5
2744 $as_echo "$as_me: error: newly created file is older than distributed files!
2745 Check your system clock" >&2;}
2746 { (exit 1); exit 1; }; }
2748 { $as_echo "$as_me:$LINENO: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 test "$program_prefix" != NONE
&&
2751 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE
&&
2754 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760 # expand $ac_aux_dir to an absolute path
2761 am_aux_dir
=`cd $ac_aux_dir && pwd`
2763 if test x
"${MISSING+set}" != xset
; then
2766 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2768 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --run true"; then
2773 am_missing_run
="$MISSING --run "
2776 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2780 if test x
"${install_sh}" != xset
; then
2783 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2785 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2789 # Installed binaries are usually stripped using `strip' when the user
2790 # run `make install-strip'. However `strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the `STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no
; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_STRIP+set}" = set; then
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir
=.
2810 for ac_exec_ext
in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 STRIP
=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2827 { $as_echo "$as_me:$LINENO: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$ac_cv_prog_STRIP"; then
2835 # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip
; ac_word
=$2
2837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_STRIP
="strip"
2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2867 { $as_echo "$as_me:$LINENO: result: no" >&5
2868 $as_echo "no" >&6; }
2871 if test "x$ac_ct_STRIP" = x
; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned
=yes ;;
2883 STRIP
="$ac_cv_prog_STRIP"
2887 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2889 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if test "${ac_cv_path_mkdir+set}" = set; then
2893 $as_echo_n "(cached) " >&6
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2896 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_prog
in mkdir gmkdir
; do
2901 for ac_exec_ext
in '' $ac_executable_extensions; do
2902 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P
="$ac_cv_path_mkdir -p"
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
2924 test -d .
/--version && rmdir .
/--version
2925 MKDIR_P
="$ac_install_sh -d"
2928 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2933 [\\/$
]* | ?
:[\\/]*) ;;
2934 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2937 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2940 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2941 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2942 $as_echo_n "(cached) " >&6
2944 cat >conftest.
make <<\_ACEOF
2947 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2952 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2954 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2958 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2959 { $as_echo "$as_me:$LINENO: result: yes" >&5
2960 $as_echo "yes" >&6; }
2963 { $as_echo "$as_me:$LINENO: result: no" >&5
2964 $as_echo "no" >&6; }
2965 SET_MAKE
="MAKE=${MAKE-make}"
2968 rm -rf .tst
2>/dev
/null
2969 mkdir .tst
2>/dev
/null
2970 if test -d .tst
; then
2975 rmdir .tst
2>/dev
/null
2977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2979 # is not polluted with repeated "-I."
2980 am__isrc
=' -I$(srcdir)'
2981 # test to see if srcdir already configured
2982 if test -f $srcdir/config.status
; then
2983 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2984 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2985 { (exit 1); exit 1; }; }
2989 # test whether we have cygpath
2990 if test -z "$CYGPATH_W"; then
2991 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2992 CYGPATH_W
='cygpath -w'
2999 # Define the identity of the package.
3004 cat >>confdefs.h
<<_ACEOF
3005 #define PACKAGE "$PACKAGE"
3009 cat >>confdefs.h
<<_ACEOF
3010 #define VERSION "$VERSION"
3013 # Some tools Automake needs.
3015 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3021 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3027 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3029 # We need awk for the "check" target. The system "awk" is bad on
3031 # Always define AMTAR for backward compatibility.
3033 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3035 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3041 ac_config_headers
="$ac_config_headers zfs_config.h"
3044 # Find a good install program. We prefer a C program (faster),
3045 # so one script is as good as another. But avoid the broken or
3046 # incompatible versions:
3047 # SysV /etc/install, /usr/sbin/install
3048 # SunOS /usr/etc/install
3049 # IRIX /sbin/install
3051 # AmigaOS /C/install, which installs bootblocks on floppy discs
3052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3055 # OS/2's system install, which has a completely different semantic
3056 # ./install, which can be erroneously created by make from ./install.sh.
3057 # Reject install programs that cannot install multiple files.
3058 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3060 if test -z "$INSTALL"; then
3061 if test "${ac_cv_path_install+set}" = set; then
3062 $as_echo_n "(cached) " >&6
3064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir
=.
3069 # Account for people who put trailing slashes in PATH elements.
3071 .
/ | .
// |
/cC
/* | \
3072 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3073 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3079 for ac_prog
in ginstall scoinst
install; do
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082 if test $ac_prog = install &&
3083 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3086 elif test $ac_prog = install &&
3087 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3091 rm -rf conftest.one conftest.two conftest.dir
3092 echo one
> conftest.one
3093 echo two
> conftest.two
3095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3096 test -s conftest.one
&& test -s conftest.two
&&
3097 test -s conftest.dir
/conftest.one
&&
3098 test -s conftest.dir
/conftest.two
3100 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3113 rm -rf conftest.one conftest.two conftest.dir
3116 if test "${ac_cv_path_install+set}" = set; then
3117 INSTALL
=$ac_cv_path_install
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for INSTALL within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 INSTALL
=$ac_install_sh
3126 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3127 $as_echo "$INSTALL" >&6; }
3129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3130 # It thinks the first close brace ends the variable substitution.
3131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3135 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3138 ac_cpp
='$CPP $CPPFLAGS'
3139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3144 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC
="$CC" # Let the user override the test.
3153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir
=.
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3181 if test -z "$ac_cv_prog_CC"; then
3183 # Extract the first word of "gcc", so it can be a program name with args.
3184 set dummy gcc
; ac_word
=$2
3185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_ac_ct_CC
="gcc"
3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3215 { $as_echo "$as_me:$LINENO: result: no" >&5
3216 $as_echo "no" >&6; }
3219 if test "x$ac_ct_CC" = x
; then
3222 case $cross_compiling:$ac_tool_warned in
3224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned
=yes ;;
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3237 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3275 if test -z "$CC"; then
3276 # Extract the first word of "cc", so it can be a program name with args.
3277 set dummy cc
; ac_word
=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC
="$CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3295 ac_prog_rejected
=yes
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test $ac_prog_rejected = yes; then
3307 # We found a bogon in the path, so make sure we never use it.
3308 set dummy
$ac_cv_prog_CC
3310 if test $# != 0; then
3311 # We chose a different compiler from the bogus one.
3312 # However, it has the same basename, so the bogon will be chosen
3313 # first if we set CC to just the basename; use the full file name.
3315 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3321 if test -n "$CC"; then
3322 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3325 { $as_echo "$as_me:$LINENO: result: no" >&5
3326 $as_echo "no" >&6; }
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 for ac_prog
in cl.exe
3335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_CC+set}" = set; then
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC
="$CC" # Let the user override the test.
3345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir
=.
3350 for ac_exec_ext
in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3367 { $as_echo "$as_me:$LINENO: result: no" >&5
3368 $as_echo "no" >&6; }
3372 test -n "$CC" && break
3375 if test -z "$CC"; then
3377 for ac_prog
in cl.exe
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy
$ac_prog; ac_word
=$2
3381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir
=.
3394 for ac_exec_ext
in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_ac_ct_CC
="$ac_prog"
3397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3407 if test -n "$ac_ct_CC"; then
3408 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3409 $as_echo "$ac_ct_CC" >&6; }
3411 { $as_echo "$as_me:$LINENO: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$ac_ct_CC" && break
3419 if test "x$ac_ct_CC" = x
; then
3422 case $cross_compiling:$ac_tool_warned in
3424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned
=yes ;;
3435 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3438 See \`config.log' for more details." >&5
3439 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3440 See \`config.log' for more details." >&2;}
3441 { (exit 1); exit 1; }; }; }
3443 # Provide some information about the compiler.
3444 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3447 { (ac_try
="$ac_compiler --version >&5"
3449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compiler --version >&5") 2>&5
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458 { (ac_try="$ac_compiler -v >&5"
3460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3461 *) ac_try_echo
=$ac_try;;
3463 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3464 $as_echo "$ac_try_echo") >&5
3465 (eval "$ac_compiler -v >&5") 2>&5
3467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }
3469 { (ac_try
="$ac_compiler -V >&5"
3471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475 $as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compiler -V >&5") 2>&5
3478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3501 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509 for ac_file in $ac_files
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518 if { (ac_try="$ac_link_default"
3520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3521 *) ac_try_echo
=$ac_try;;
3523 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525 (eval "$ac_link_default") 2>&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; then
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3534 for ac_file
in $ac_files ''
3536 test -f "$ac_file" ||
continue
3538 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3541 # We found the default executable, but exeext='' is most
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3547 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3559 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3565 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3566 $as_echo "$ac_file" >&6; }
3567 if test -z "$ac_file"; then
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.
$ac_ext >&5
3571 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3574 See \`config.log' for more details." >&5
3575 $as_echo "$as_me: error: C compiler cannot create executables
3576 See \`config.log' for more details." >&2;}
3577 { (exit 77); exit 77; }; }; }
3580 ac_exeext
=$ac_cv_exeext
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3585 $as_echo_n "checking whether the C compiler works... " >&6; }
3586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3587 # If not cross compiling, check that we can run a simple program.
3588 if test "$cross_compiling" != yes; then
3589 if { ac_try
='./$ac_file'
3590 { (case "(($ac_try" in
3591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_try") 2>&5
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3602 if test "$cross_compiling" = maybe; then
3605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3608 If you meant to cross compile
, use \
`--host'.
3609 See \`config.log
' for more details." >&5
3610 $as_echo "$as_me: error: cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \
`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }; }
3617 { $as_echo "$as_me:$LINENO: result: yes" >&5
3618 $as_echo "yes" >&6; }
3620 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3621 ac_clean_files=$ac_clean_files_save
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3629 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3630 $as_echo_n "checking for suffix of executables... " >&6; }
3631 if { (ac_try="$ac_link"
3633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3634 *) ac_try_echo
=$ac_try;;
3636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3637 $as_echo "$ac_try_echo") >&5
3638 (eval "$ac_link") 2>&5
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644 # work properly (i.e., refer to `conftest.exe'), while it won't with
3646 for ac_file
in conftest.exe conftest conftest.
*; do
3647 test -f "$ac_file" ||
continue
3649 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3650 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }; }
3665 rm -f conftest
$ac_cv_exeext
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3667 $as_echo "$ac_cv_exeext" >&6; }
3669 rm -f conftest.
$ac_ext
3670 EXEEXT
=$ac_cv_exeext
3672 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if test "${ac_cv_objext+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3677 cat >conftest.
$ac_ext <<_ACEOF
3680 cat confdefs.h
>>conftest.
$ac_ext
3681 cat >>conftest.
$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.o conftest.obj
3693 if { (ac_try
="$ac_compile"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>&5
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3719 See \
`config.log' for more details." >&5
3720 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3721 See \`config.log
' for more details." >&2;}
3722 { (exit 1); exit 1; }; }; }
3725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3728 $as_echo "$ac_cv_objext" >&6; }
3729 OBJEXT=$ac_cv_objext
3731 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3732 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761 $as_echo "$ac_try_echo") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3764 grep -v '^
*+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's
/^
/|
/' conftest.$ac_ext >&5
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3784 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if test "${ac_cv_prog_cc_g+set}" = set; then
3796 $as_echo_n "(cached) " >&6
3798 ac_save_c_werror_flag=$ac_c_werror_flag
3799 ac_c_werror_flag=yes
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3827 grep -v '^
*+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's
/^
/|
/' conftest.$ac_ext >&5
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863 $as_echo "$ac_try_echo") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3866 grep -v '^
*+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's
/^
/|
/' conftest.$ac_ext >&5
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3906 grep -v '^
*+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's
/^
/|
/' conftest.$ac_ext >&5
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3931 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3932 $as_echo "$ac_cv_prog_cc_g" >&6; }
3933 if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935 elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3942 if test "$GCC" = yes; then
3948 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950 if test "${ac_cv_prog_cc_c89+set}" = set; then
3951 $as_echo_n "(cached) " >&6
3953 ac_cv_prog_cc_c89=no
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3963 #include <sys/types.h>
3964 #include <sys/stat.h>
3965 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3966 struct buf
{ int x
; };
3967 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3968 static char
*e
(p
, i
)
3974 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3979 s
= g
(p
, va_arg
(v
,int
));
3984 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3985 function prototypes and stuff
, but not
'\xHH' hex character constants.
3986 These don
't provoke an error unfortunately, instead are silently treated
3987 as 'x
'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3989 array size at least. It's necessary to
write '\x00'==0 to get something
3990 that
's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3996 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 CC="$ac_save_CC $ac_arg"
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4026 grep -v '^
*+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 ac_cv_prog_cc_c89=$ac_arg
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's
/^
/|
/' conftest.$ac_ext >&5
4042 rm -f core conftest.err conftest.$ac_objext
4043 test "x$ac_cv_prog_cc_c89" != "xno" && break
4045 rm -f conftest.$ac_ext
4050 case "x$ac_cv_prog_cc_c89" in
4052 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;;
4055 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;;
4058 CC="$CC $ac_cv_prog_cc_c89"
4059 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4067 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 DEPDIR="${am__leading_dot}deps"
4071 ac_config_commands="$ac_config_commands depfiles"
4074 am_make=${MAKE-make}
4075 cat > confinc << 'END
'
4077 @echo this is the am__doit target
4080 # If we don't
find an include directive
, just comment out the code.
4081 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4082 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4086 # First try GNU make style include.
4087 echo "include confinc" > confmf
4088 # Ignore all kinds of additional output from `make'.
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target
*)
4096 # Now try BSD make style include.
4097 if test "$am__include" = "#"; then
4098 echo '.include "confinc"' > confmf
4099 case `$am_make -s -f confmf 2> /dev/null` in #(
4100 *the\ am__doit\ target
*)
4101 am__include
=.include
4109 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4110 $as_echo "$_am_result" >&6; }
4111 rm -f confinc confmf
4113 # Check whether --enable-dependency-tracking was given.
4114 if test "${enable_dependency_tracking+set}" = set; then
4115 enableval
=$enable_dependency_tracking;
4118 if test "x$enable_dependency_tracking" != xno
; then
4119 am_depcomp
="$ac_aux_dir/depcomp"
4122 if test "x$enable_dependency_tracking" != xno; then
4132 depcc
="$CC" am_compiler_list
=
4134 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 $as_echo_n "checking dependency style of $depcc... " >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4158 am_cv_CC_dependencies_compiler_type
=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4163 case " $depcc " in #(
4164 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4167 for depmode
in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4176 for i
in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4178 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4179 # Solaris 8's {/usr,}/bin/sh.
4180 touch sub
/conftst
$i.h
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4185 # mode. It turns out that the SunPro C++ compiler does not properly
4186 # handle `-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs
4188 am__obj
=sub
/conftest.
${OBJEXT-o}
4189 am__minus_obj
="-o $am__obj"
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false ||
continue
4196 # after this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested
4198 if test "x$enable_dependency_tracking" = xyes
; then
4204 msvisualcpp | msvcmsys
)
4205 # This compiler won't grok `-c -o', but also, the minuso test has
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj
=conftest.
${OBJEXT-o}
4213 if depmode
=$depmode \
4214 source=sub
/conftest.c object
=$am__obj \
4215 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4216 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4217 >/dev
/null
2>conftest.err
&&
4218 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4219 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4220 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4221 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type
=$depmode
4240 am_cv_CC_dependencies_compiler_type
=none
4244 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4252 am__fastdepCC_FALSE
='#'
4254 am__fastdepCC_TRUE
='#'
4255 am__fastdepCC_FALSE
=
4261 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4267 macro_version
='2.2.6b'
4268 macro_revision
='1.3017'
4282 ltmain
="$ac_aux_dir/ltmain.sh"
4284 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4286 if test "${ac_cv_path_SED+set}" = set; then
4287 $as_echo_n "(cached) " >&6
4289 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4290 for ac_i
in 1 2 3 4 5 6 7; do
4291 ac_script
="$ac_script$as_nl$ac_script"
4293 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4294 $as_unset ac_script || ac_script
=
4295 if test -z "$SED"; then
4296 ac_path_SED_found
=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir
=.
4303 for ac_prog
in sed gsed
; do
4304 for ac_exec_ext
in '' $ac_executable_extensions; do
4305 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4306 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4307 # Check for GNU ac_path_SED and select it if it is found.
4308 # Check for GNU $ac_path_SED
4309 case `"$ac_path_SED" --version 2>&1` in
4311 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4314 $as_echo_n 0123456789 >"conftest.in"
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo '' >> "conftest.nl"
4321 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4322 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4323 ac_count
=`expr $ac_count + 1`
4324 if test $ac_count -gt ${ac_path_SED_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_SED
="$ac_path_SED"
4327 ac_path_SED_max
=$ac_count
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4332 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4335 $ac_path_SED_found && break 3
4340 if test -z "$ac_cv_path_SED"; then
4341 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4342 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4343 { (exit 1); exit 1; }; }
4350 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4351 $as_echo "$ac_cv_path_SED" >&6; }
4352 SED
="$ac_cv_path_SED"
4355 test -z "$SED" && SED
=sed
4356 Xsed
="$SED -e 1s/^X//"
4368 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4370 if test "${ac_cv_path_GREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4373 if test -z "$GREP"; then
4374 ac_path_GREP_found
=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4377 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4380 test -z "$as_dir" && as_dir
=.
4381 for ac_prog
in grep ggrep
; do
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4385 # Check for GNU ac_path_GREP and select it if it is found.
4386 # Check for GNU $ac_path_GREP
4387 case `"$ac_path_GREP" --version 2>&1` in
4389 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4392 $as_echo_n 0123456789 >"conftest.in"
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'GREP' >> "conftest.nl"
4399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4400 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4401 ac_count
=`expr $ac_count + 1`
4402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_GREP
="$ac_path_GREP"
4405 ac_path_GREP_max
=$ac_count
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4410 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4413 $ac_path_GREP_found && break 3
4418 if test -z "$ac_cv_path_GREP"; then
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4424 ac_cv_path_GREP
=$GREP
4428 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4429 $as_echo "$ac_cv_path_GREP" >&6; }
4430 GREP
="$ac_cv_path_GREP"
4433 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4434 $as_echo_n "checking for egrep... " >&6; }
4435 if test "${ac_cv_path_EGREP+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4439 then ac_cv_path_EGREP
="$GREP -E"
4441 if test -z "$EGREP"; then
4442 ac_path_EGREP_found
=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4445 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4448 test -z "$as_dir" && as_dir
=.
4449 for ac_prog
in egrep; do
4450 for ac_exec_ext
in '' $ac_executable_extensions; do
4451 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4457 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4460 $as_echo_n 0123456789 >"conftest.in"
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4468 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4469 ac_count
=`expr $ac_count + 1`
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP
="$ac_path_EGREP"
4473 ac_path_EGREP_max
=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4478 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4481 $ac_path_EGREP_found && break 3
4486 if test -z "$ac_cv_path_EGREP"; then
4487 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4488 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4489 { (exit 1); exit 1; }; }
4492 ac_cv_path_EGREP
=$EGREP
4497 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4498 $as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP
="$ac_cv_path_EGREP"
4502 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4503 $as_echo_n "checking for fgrep... " >&6; }
4504 if test "${ac_cv_path_FGREP+set}" = set; then
4505 $as_echo_n "(cached) " >&6
4507 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4508 then ac_cv_path_FGREP
="$GREP -F"
4510 if test -z "$FGREP"; then
4511 ac_path_FGREP_found
=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4514 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4517 test -z "$as_dir" && as_dir
=.
4518 for ac_prog
in fgrep
; do
4519 for ac_exec_ext
in '' $ac_executable_extensions; do
4520 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4521 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4522 # Check for GNU ac_path_FGREP and select it if it is found.
4523 # Check for GNU $ac_path_FGREP
4524 case `"$ac_path_FGREP" --version 2>&1` in
4526 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4529 $as_echo_n 0123456789 >"conftest.in"
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'FGREP' >> "conftest.nl"
4536 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4537 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4538 ac_count
=`expr $ac_count + 1`
4539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_FGREP
="$ac_path_FGREP"
4542 ac_path_FGREP_max
=$ac_count
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4547 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4550 $ac_path_FGREP_found && break 3
4555 if test -z "$ac_cv_path_FGREP"; then
4556 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4557 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4558 { (exit 1); exit 1; }; }
4561 ac_cv_path_FGREP
=$FGREP
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4567 $as_echo "$ac_cv_path_FGREP" >&6; }
4568 FGREP
="$ac_cv_path_FGREP"
4571 test -z "$GREP" && GREP
=grep
4591 # Check whether --with-gnu-ld was given.
4592 if test "${with_gnu_ld+set}" = set; then
4593 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4599 if test "$GCC" = yes; then
4600 # Check if gcc -print-prog-name=ld gives a path.
4601 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4602 $as_echo_n "checking for ld used by $CC... " >&6; }
4605 # gcc leaves a trailing carriage return which upsets mingw
4606 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4608 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4611 # Accept absolute paths.
4613 re_direlt
='/[^/][^/]*/\.\./'
4614 # Canonicalize the pathname of ld
4615 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4616 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4617 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4619 test -z "$LD" && LD
="$ac_prog"
4622 # If it fails, then pretend we aren't using GCC.
4626 # If it is relative, then search for the first ld in PATH.
4630 elif test "$with_gnu_ld" = yes; then
4631 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4632 $as_echo_n "checking for GNU ld... " >&6; }
4634 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4635 $as_echo_n "checking for non-GNU ld... " >&6; }
4637 if test "${lt_cv_path_LD+set}" = set; then
4638 $as_echo_n "(cached) " >&6
4640 if test -z "$LD"; then
4641 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4642 for ac_dir
in $PATH; do
4644 test -z "$ac_dir" && ac_dir
=.
4645 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4646 lt_cv_path_LD
="$ac_dir/$ac_prog"
4647 # Check to see if the program is GNU ld. I'd rather use --version,
4648 # but apparently some variants of GNU ld only accept -v.
4649 # Break only if it was the GNU/non-GNU ld that we prefer.
4650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4651 *GNU
* |
*'with BFD'*)
4652 test "$with_gnu_ld" != no
&& break
4655 test "$with_gnu_ld" != yes && break
4662 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4667 if test -n "$LD"; then
4668 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4669 $as_echo "$LD" >&6; }
4671 { $as_echo "$as_me:$LINENO: result: no" >&5
4672 $as_echo "no" >&6; }
4674 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4675 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4676 { (exit 1); exit 1; }; }
4677 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683 case `$LD -v 2>&1 </dev/null` in
4684 *GNU
* |
*'with BFD'*)
4685 lt_cv_prog_gnu_ld
=yes
4688 lt_cv_prog_gnu_ld
=no
4692 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4693 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694 with_gnu_ld
=$lt_cv_prog_gnu_ld
4704 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4705 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4706 if test "${lt_cv_path_NM+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$NM"; then
4710 # Let the user override the test.
4713 lt_nm_to_check
="${ac_tool_prefix}nm"
4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715 lt_nm_to_check
="$lt_nm_to_check nm"
4717 for lt_tmp_nm
in $lt_nm_to_check; do
4718 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4719 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4721 test -z "$ac_dir" && ac_dir
=.
4722 tmp_nm
="$ac_dir/$lt_tmp_nm"
4723 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4724 # Check to see if the nm accepts a BSD-compat flag.
4725 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
4728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4729 */dev
/null
* |
*'Invalid file or object type'*)
4730 lt_cv_path_NM
="$tmp_nm -B"
4734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4736 lt_cv_path_NM
="$tmp_nm -p"
4740 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4741 continue # so that we can try to find one that supports BSD flags
4750 : ${lt_cv_path_NM=no}
4753 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4754 $as_echo "$lt_cv_path_NM" >&6; }
4755 if test "$lt_cv_path_NM" != "no"; then
4758 # Didn't find any BSD compatible name lister, look for dumpbin.
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4769 if test -n "$DUMPBIN"; then
4770 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir
=.
4777 for ac_exec_ext
in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 DUMPBIN
=$ac_cv_prog_DUMPBIN
4790 if test -n "$DUMPBIN"; then
4791 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4792 $as_echo "$DUMPBIN" >&6; }
4794 { $as_echo "$as_me:$LINENO: result: no" >&5
4795 $as_echo "no" >&6; }
4799 test -n "$DUMPBIN" && break
4802 if test -z "$DUMPBIN"; then
4803 ac_ct_DUMPBIN
=$DUMPBIN
4804 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy
$ac_prog; ac_word
=$2
4808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4813 if test -n "$ac_ct_DUMPBIN"; then
4814 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir
=.
4821 for ac_exec_ext
in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4834 if test -n "$ac_ct_DUMPBIN"; then
4835 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4836 $as_echo "$ac_ct_DUMPBIN" >&6; }
4838 { $as_echo "$as_me:$LINENO: result: no" >&5
4839 $as_echo "no" >&6; }
4843 test -n "$ac_ct_DUMPBIN" && break
4846 if test "x$ac_ct_DUMPBIN" = x
; then
4849 case $cross_compiling:$ac_tool_warned in
4851 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4853 ac_tool_warned
=yes ;;
4855 DUMPBIN
=$ac_ct_DUMPBIN
4860 if test "$DUMPBIN" != ":"; then
4864 test -z "$NM" && NM
=nm
4871 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4872 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4873 if test "${lt_cv_nm_interface+set}" = set; then
4874 $as_echo_n "(cached) " >&6
4876 lt_cv_nm_interface
="BSD nm"
4877 echo "int some_variable = 0;" > conftest.
$ac_ext
4878 (eval echo "\"\$as_me:4878: $ac_compile\"" >&5)
4879 (eval "$ac_compile" 2>conftest.err
)
4880 cat conftest.err
>&5
4881 (eval echo "\"\$as_me:4881: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4883 cat conftest.err
>&5
4884 (eval echo "\"\$as_me:4884: output\"" >&5)
4885 cat conftest.out
>&5
4886 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4887 lt_cv_nm_interface
="MS dumpbin"
4891 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4892 $as_echo "$lt_cv_nm_interface" >&6; }
4894 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4895 $as_echo_n "checking whether ln -s works... " >&6; }
4897 if test "$LN_S" = "ln -s"; then
4898 { $as_echo "$as_me:$LINENO: result: yes" >&5
4899 $as_echo "yes" >&6; }
4901 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4902 $as_echo "no, using $LN_S" >&6; }
4905 # find the maximum length of command line arguments
4906 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4907 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4908 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4916 # On DJGPP, this test can blow up pretty badly due to problems in libc
4917 # (any single argument exceeding 2000 bytes causes a buffer overrun
4918 # during glob expansion). Even if it were fixed, the result of this
4919 # check would be larger than it should be.
4920 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4924 # Under GNU Hurd, this test is not required because there is
4925 # no limit to the length of command line arguments.
4926 # Libtool will interpret -1 as no limit whatsoever
4927 lt_cv_sys_max_cmd_len
=-1;
4930 cygwin
* | mingw
* | cegcc
*)
4931 # On Win9x/ME, this test blows up -- it succeeds, but takes
4932 # about 5 minutes as the teststring grows exponentially.
4933 # Worse, since 9x/ME are not pre-emptively multitasking,
4934 # you end up with a "frozen" computer, even though with patience
4935 # the test eventually succeeds (with a max line length of 256k).
4936 # Instead, let's just punt: use the minimum linelength reported by
4937 # all of the supported platforms: 8192 (on NT/2K/XP).
4938 lt_cv_sys_max_cmd_len
=8192;
4942 # On AmigaOS with pdksh, this test takes hours, literally.
4943 # So we just punt and use a minimum line length of 8192.
4944 lt_cv_sys_max_cmd_len
=8192;
4947 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4948 # This has been around since 386BSD, at least. Likely further.
4949 if test -x /sbin
/sysctl
; then
4950 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4951 elif test -x /usr
/sbin
/sysctl
; then
4952 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4954 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4956 # And add a safety zone
4957 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4962 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4963 lt_cv_sys_max_cmd_len
=196608
4967 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4968 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4969 # nice to cause kernel panics so lets avoid the loop below.
4970 # First set a reasonable default.
4971 lt_cv_sys_max_cmd_len
=16384
4973 if test -x /sbin
/sysconfig
; then
4974 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4975 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4980 lt_cv_sys_max_cmd_len
=102400
4982 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4983 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4984 if test -n "$kargmax"; then
4985 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4987 lt_cv_sys_max_cmd_len
=32768
4991 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4992 if test -n "$lt_cv_sys_max_cmd_len"; then
4993 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4996 # Make teststring a little bigger before we do anything with it.
4997 # a 1K string should be a reasonable start.
4998 for i
in 1 2 3 4 5 6 7 8 ; do
4999 teststring
=$teststring$teststring
5001 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5002 # If test is not a shell built-in, we'll probably end up computing a
5003 # maximum length that is only half of the actual maximum length, but
5005 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5006 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
5007 test $i != 17 # 1/2 MB should be enough
5010 teststring
=$teststring$teststring
5012 # Only check the string length outside the loop.
5013 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5015 # Add a significant safety factor because C++ compilers can tack on
5016 # massive amounts of additional arguments before passing them to the
5017 # linker. It appears as though 1/2 is a usable value.
5018 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5025 if test -n $lt_cv_sys_max_cmd_len ; then
5026 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5027 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5029 { $as_echo "$as_me:$LINENO: result: none" >&5
5030 $as_echo "none" >&6; }
5032 max_cmd_len
=$lt_cv_sys_max_cmd_len
5043 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5044 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5045 # Try some XSI features
5048 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5050 && eval 'test $(( 1 + 1 )) -eq 2 \
5051 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5053 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5054 $as_echo "$xsi_shell" >&6; }
5057 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5058 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5060 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5062 && lt_shell_append=yes
5063 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5064 $as_echo "$lt_shell_append" >&6; }
5067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5077 # test EBCDIC or ASCII
5078 case `echo X|tr X '\101'` in
5079 A) # ASCII based system
5080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5081 lt_SP2NL='tr \040 \012'
5082 lt_NL2SP='tr \015\012 \040\040'
5084 *) # EBCDIC based system
5085 lt_SP2NL='tr \100 \n'
5086 lt_NL2SP='tr \r\n \100\100'
5098 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5099 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5100 if test "${lt_cv_ld_reload_flag+set}" = set; then
5101 $as_echo_n "(cached
) " >&6
5103 lt_cv_ld_reload_flag='-r'
5105 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5106 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5107 reload_flag=$lt_cv_ld_reload_flag
5108 case $reload_flag in
5110 *) reload_flag=" $reload_flag" ;;
5112 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5115 if test "$GCC" = yes; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5135 $as_echo_n "checking
for $ac_word...
" >&6; }
5136 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5137 $as_echo_n "(cached
) " >&6
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5150 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5159 OBJDUMP=$ac_cv_prog_OBJDUMP
5160 if test -n "$OBJDUMP"; then
5161 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5162 $as_echo "$OBJDUMP" >&6; }
5164 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5165 $as_echo "no
" >&6; }
5170 if test -z "$ac_cv_prog_OBJDUMP"; then
5171 ac_ct_OBJDUMP=$OBJDUMP
5172 # Extract the first word of "objdump
", so it can be a program name with args.
5173 set dummy objdump; ac_word=$2
5174 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5175 $as_echo_n "checking
for $ac_word...
" >&6; }
5176 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5177 $as_echo_n "(cached
) " >&6
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5190 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5199 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200 if test -n "$ac_ct_OBJDUMP"; then
5201 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5202 $as_echo "$ac_ct_OBJDUMP" >&6; }
5204 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5205 $as_echo "no
" >&6; }
5208 if test "x
$ac_ct_OBJDUMP" = x; then
5211 case $cross_compiling:$ac_tool_warned in
5213 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5214 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5215 ac_tool_warned=yes ;;
5217 OBJDUMP=$ac_ct_OBJDUMP
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5223 test -z "$OBJDUMP" && OBJDUMP=objdump
5233 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5234 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5235 if test "${lt_cv_deplibs_check_method+set}" = set; then
5236 $as_echo_n "(cached
) " >&6
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239 lt_cv_file_magic_test_file=
5240 lt_cv_deplibs_check_method='unknown'
5241 # Need to set the preceding variable on all platforms that support
5242 # interlibrary dependencies.
5243 # 'none' -- dependencies not supported.
5244 # `unknown' -- same as none, but documents that we really don't know.
5245 # 'pass_all' -- all dependencies passed with no checks.
5246 # 'test_compile' -- check by making test program.
5247 # 'file_magic [[regex]]' -- check by looking for files in library path
5248 # which responds to the $file_magic_cmd with a given extended regex.
5249 # If you have `file' or equivalent on your system and you're not sure
5250 # whether `pass_all' will *always* work, you probably want this one.
5254 lt_cv_deplibs_check_method=pass_all
5258 lt_cv_deplibs_check_method=pass_all
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5263 lt_cv_file_magic_cmd='/usr/bin/file -L'
5264 lt_cv_file_magic_test_file=/shlib/libc.so
5268 # func_win32_libid is a shell function defined in ltmain.sh
5269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5270 lt_cv_file_magic_cmd='func_win32_libid'
5274 # Base MSYS/MinGW do not provide the 'file' command needed by
5275 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5276 # unless we find 'file', for example because we are cross-compiling.
5277 if ( file / ) >/dev/null 2>&1; then
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5281 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5282 lt_cv_file_magic_cmd='$OBJDUMP -f'
5287 # use the weaker test based on 'objdump'. See mingw*.
5288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5289 lt_cv_file_magic_cmd='$OBJDUMP -f'
5292 darwin* | rhapsody*)
5293 lt_cv_deplibs_check_method=pass_all
5296 freebsd* | dragonfly*)
5297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5300 # Not sure whether the presence of OpenBSD here was a mistake.
5301 # Let's accept both of them until this is cleared up.
5302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5308 lt_cv_deplibs_check_method=pass_all
5313 lt_cv_deplibs_check_method=pass_all
5316 hpux10.20* | hpux11*)
5317 lt_cv_file_magic_cmd=/usr/bin/file
5320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5324 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]'
5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5339 irix5* | irix6* | nonstopux*)
5341 *-32|*"-32 ") libmagic=32-bit;;
5342 *-n32|*"-n32 ") libmagic=N32;;
5343 *-64|*"-64 ") libmagic=64-bit;;
5344 *) libmagic=never-match;;
5346 lt_cv_deplibs_check_method=pass_all
5349 # This must be Linux ELF.
5350 linux* | k*bsd*-gnu)
5351 lt_cv_deplibs_check_method=pass_all
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5364 lt_cv_file_magic_cmd=/usr/bin/file
5365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5369 lt_cv_deplibs_check_method=pass_all
5373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5380 osf3* | osf4* | osf5*)
5381 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5389 lt_cv_deplibs_check_method=pass_all
5392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5393 lt_cv_deplibs_check_method=pass_all
5397 case $host_vendor in
5399 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]'
5400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5403 lt_cv_deplibs_check_method=pass_all
5406 lt_cv_file_magic_cmd='/bin/file'
5407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5410 lt_cv_file_magic_cmd='/bin/file'
5411 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5412 lt_cv_file_magic_test_file=/lib/libc.so
5415 lt_cv_deplibs_check_method=pass_all
5418 lt_cv_deplibs_check_method=pass_all
5424 lt_cv_deplibs_check_method=pass_all
5429 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5430 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5431 file_magic_cmd=$lt_cv_file_magic_cmd
5432 deplibs_check_method=$lt_cv_deplibs_check_method
5433 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ar; ac_word=$2
5449 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5450 $as_echo_n "checking
for $ac_word...
" >&6; }
5451 if test "${ac_cv_prog_AR+set}" = set; then
5452 $as_echo_n "(cached
) " >&6
5454 if test -n "$AR"; then
5455 ac_cv_prog_AR="$AR" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_AR="${ac_tool_prefix}ar"
5465 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5475 if test -n "$AR"; then
5476 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5477 $as_echo "$AR" >&6; }
5479 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5480 $as_echo "no
" >&6; }
5485 if test -z "$ac_cv_prog_AR"; then
5487 # Extract the first word of "ar", so it can be a program name with args.
5488 set dummy ar; ac_word=$2
5489 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5490 $as_echo_n "checking
for $ac_word...
" >&6; }
5491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5492 $as_echo_n "(cached
) " >&6
5494 if test -n "$ac_ct_AR"; then
5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_AR="ar"
5505 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5515 if test -n "$ac_ct_AR"; then
5516 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5517 $as_echo "$ac_ct_AR" >&6; }
5519 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5520 $as_echo "no
" >&6; }
5523 if test "x
$ac_ct_AR" = x; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5529 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5530 ac_tool_warned=yes ;;
5538 test -z "$AR" && AR=ar
5539 test -z "$AR_FLAGS" && AR_FLAGS=cru
5551 if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}strip; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5555 $as_echo_n "checking
for $ac_word...
" >&6; }
5556 if test "${ac_cv_prog_STRIP+set}" = set; then
5557 $as_echo_n "(cached
) " >&6
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5570 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5579 STRIP=$ac_cv_prog_STRIP
5580 if test -n "$STRIP"; then
5581 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5582 $as_echo "$STRIP" >&6; }
5584 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5585 $as_echo "no
" >&6; }
5590 if test -z "$ac_cv_prog_STRIP"; then
5592 # Extract the first word of "strip
", so it can be a program name with args.
5593 set dummy strip; ac_word=$2
5594 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5595 $as_echo_n "checking
for $ac_word...
" >&6; }
5596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5597 $as_echo_n "(cached
) " >&6
5599 if test -n "$ac_ct_STRIP"; then
5600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_ac_ct_STRIP="strip
"
5610 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5620 if test -n "$ac_ct_STRIP"; then
5621 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5622 $as_echo "$ac_ct_STRIP" >&6; }
5624 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5625 $as_echo "no
" >&6; }
5628 if test "x
$ac_ct_STRIP" = x; then
5631 case $cross_compiling:$ac_tool_warned in
5633 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5634 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5635 ac_tool_warned=yes ;;
5640 STRIP="$ac_cv_prog_STRIP"
5643 test -z "$STRIP" && STRIP=:
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5654 $as_echo_n "checking
for $ac_word...
" >&6; }
5655 if test "${ac_cv_prog_RANLIB+set}" = set; then
5656 $as_echo_n "(cached
) " >&6
5658 if test -n "$RANLIB"; then
5659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5669 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5678 RANLIB=$ac_cv_prog_RANLIB
5679 if test -n "$RANLIB"; then
5680 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5681 $as_echo "$RANLIB" >&6; }
5683 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5684 $as_echo "no
" >&6; }
5689 if test -z "$ac_cv_prog_RANLIB"; then
5690 ac_ct_RANLIB=$RANLIB
5691 # Extract the first word of "ranlib
", so it can be a program name with args.
5692 set dummy ranlib; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5694 $as_echo_n "checking
for $ac_word...
" >&6; }
5695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5696 $as_echo_n "(cached
) " >&6
5698 if test -n "$ac_ct_RANLIB"; then
5699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5709 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5719 if test -n "$ac_ct_RANLIB"; then
5720 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5721 $as_echo "$ac_ct_RANLIB" >&6; }
5723 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5724 $as_echo "no
" >&6; }
5727 if test "x
$ac_ct_RANLIB" = x; then
5730 case $cross_compiling:$ac_tool_warned in
5732 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5733 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5734 ac_tool_warned=yes ;;
5736 RANLIB=$ac_ct_RANLIB
5739 RANLIB="$ac_cv_prog_RANLIB"
5742 test -z "$RANLIB" && RANLIB=:
5749 # Determine commands to create old-style static archives.
5750 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5751 old_postinstall_cmds='chmod 644 $oldlib'
5752 old_postuninstall_cmds=
5754 if test -n "$RANLIB"; then
5757 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5760 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5763 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5799 # If no C compiler was specified, use CC.
5802 # If no C compiler flags were specified, use CFLAGS.
5803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5805 # Allow CC to be a program name with arguments.
5809 # Check for command to grab the raw symbol name followed by C symbol from nm.
5810 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5811 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5813 $as_echo_n "(cached
) " >&6
5816 # These are sane defaults that work on at least a few old systems.
5817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5819 # Character class describing NM global symbol codes.
5820 symcode='[BCDEGRST]'
5822 # Regexp to match symbols that can be accessed directly from C.
5823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5825 # Define system-specific variables.
5830 cygwin* | mingw* | pw32* | cegcc*)
5831 symcode='[ABCDGISTW]'
5834 if test "$host_cpu" = ia64; then
5835 symcode='[ABCDEGRST]'
5839 symcode='[BCDEGRST]'
5842 symcode='[BCDEGQRST]'
5853 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5861 # If we're using GNU nm, then use its standard symbol codes.
5862 case `$NM -V 2>&1` in
5863 *GNU* | *'with BFD'*)
5864 symcode='[ABCDGIRSTW]' ;;
5867 # Transform an extracted symbol line into a proper C declaration.
5868 # Some systems (esp. on ia64) link data and code symbols differently,
5869 # so use this general approach.
5870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872 # Transform an extracted symbol line into symbol name and symbol address
5873 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5874 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'"
5876 # Handle CRLF in mingw tool chain
5880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5884 # Try without a prefix underscore, then with it.
5885 for ac_symprfx in "" "_
"; do
5887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5888 symxfrm="\\1 $ac_symprfx\\2 \\2"
5890 # Write the raw and C identifiers.
5891 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5892 # Fake it for dumpbin and say T for any non-static function
5893 # and D for any global variable.
5894 # Also find C++ and __fastcall symbols from MSVC++,
5895 # which start with @ or ?.
5896 lt_cv_sys_global_symbol_pipe="$AWK '"\
5897 " {last_section=section; section=\$ 3};"\
5898 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5899 " \$ 0!~/External *\|/{next};"\
5900 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5901 " {if(hide[section]) next};"\
5902 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5903 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5904 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5905 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5906 " ' prfx
=^
$ac_symprfx"
5908 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5911 # Check to see that the pipe works correctly.
5915 cat > conftest.$ac_ext <<_LT_EOF
5920 void nm_test_func(void);
5921 void nm_test_func(void){}
5925 int main(){nm_test_var='a';nm_test_func();return(0);}
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>&5
5931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5932 (exit $ac_status); }; then
5933 # Now try to grab the symbols.
5935 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5936 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5939 (exit $ac_status); } && test -s "$nlist"; then
5940 # Try sorting and uniquifying the output.
5941 if sort "$nlist" | uniq > "$nlist"T; then
5942 mv -f "$nlist"T "$nlist"
5947 # Make sure that we snagged all the symbols we need.
5948 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5949 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5950 cat <<_LT_EOF > conftest.$ac_ext
5956 # Now generate the symbol file.
5957 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5959 cat <<_LT_EOF >> conftest.$ac_ext
5961 /* The mapping between symbol names and symbols. */
5966 lt__PROGRAM__LTX_preloaded_symbols[] =
5968 { "@PROGRAM@
", (void *) 0 },
5970 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5971 cat <<\_LT_EOF >> conftest.$ac_ext
5975 /* This works around a problem in FreeBSD linker */
5976 #ifdef FREEBSD_WORKAROUND
5977 static const void *lt_preloaded_setup() {
5978 return lt__PROGRAM__LTX_preloaded_symbols;
5986 # Now try linking the two files.
5987 mv conftest.$ac_objext conftstm.$ac_objext
5988 lt_save_LIBS="$LIBS"
5989 lt_save_CFLAGS="$CFLAGS"
5990 LIBS="conftstm.
$ac_objext"
5991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>&5
5995 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5996 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5999 LIBS="$lt_save_LIBS"
6000 CFLAGS="$lt_save_CFLAGS"
6002 echo "cannot
find nm_test_func
in $nlist" >&5
6005 echo "cannot
find nm_test_var
in $nlist" >&5
6008 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6011 echo "$progname: failed program was
:" >&5
6012 cat conftest.$ac_ext >&5
6014 rm -rf conftest* conftst*
6016 # Do not use the global_symbol_pipe unless it works.
6017 if test "$pipe_works" = yes; then
6020 lt_cv_sys_global_symbol_pipe=
6026 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6027 lt_cv_sys_global_symbol_to_cdecl=
6029 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6030 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
6031 $as_echo "failed
" >&6; }
6033 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
6034 $as_echo "ok
" >&6; }
6059 # Check whether --enable-libtool-lock was given.
6060 if test "${enable_libtool_lock+set}" = set; then
6061 enableval=$enable_libtool_lock;
6064 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6066 # Some flags need to be propagated to the compiler or linker for good
6070 # Find out which ABI we are using.
6071 echo 'int i;' > conftest.$ac_ext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>&5
6075 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6076 (exit $ac_status); }; then
6077 case `/usr/bin/file conftest.$ac_objext` in
6089 # Find out which ABI we are using.
6090 echo '#line 6090 "configure
"' > conftest.$ac_ext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>&5
6094 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6095 (exit $ac_status); }; then
6096 if test "$lt_cv_prog_gnu_ld" = yes; then
6097 case `/usr/bin/file conftest.$ac_objext` in
6099 LD="${LD-ld} -melf32bsmip"
6102 LD="${LD-ld} -melf32bmipn32"
6105 LD="${LD-ld} -melf64bmip"
6109 case `/usr/bin/file conftest.$ac_objext` in
6125 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6126 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6127 # Find out which ABI we are using.
6128 echo 'int i;' > conftest.$ac_ext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6132 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6133 (exit $ac_status); }; then
6134 case `/usr/bin/file conftest.o` in
6137 x86_64-*kfreebsd*-gnu)
6138 LD="${LD-ld} -m elf_i386_fbsd
"
6141 LD="${LD-ld} -m elf_i386
"
6143 ppc64-*linux*|powerpc64-*linux*)
6144 LD="${LD-ld} -m elf32ppclinux
"
6147 LD="${LD-ld} -m elf_s390
"
6150 LD="${LD-ld} -m elf32_sparc
"
6156 x86_64-*kfreebsd*-gnu)
6157 LD="${LD-ld} -m elf_x86_64_fbsd
"
6160 LD="${LD-ld} -m elf_x86_64
"
6162 ppc*-*linux*|powerpc*-*linux*)
6163 LD="${LD-ld} -m elf64ppc
"
6165 s390*-*linux*|s390*-*tpf*)
6166 LD="${LD-ld} -m elf64_s390
"
6169 LD="${LD-ld} -m elf64_sparc
"
6179 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6180 SAVE_CFLAGS="$CFLAGS"
6181 CFLAGS="$CFLAGS -belf"
6182 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6183 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6184 if test "${lt_cv_cc_needs_belf+set}" = set; then
6185 $as_echo_n "(cached
) " >&6
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (ac_try="$ac_link"
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6215 $as_echo "$ac_try_echo") >&5
6216 (eval "$ac_link") 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest$ac_exeext && {
6226 test "$cross_compiling" = yes ||
6227 $as_test_x conftest$ac_exeext
6229 lt_cv_cc_needs_belf=yes
6231 $as_echo "$as_me: failed program was
:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 lt_cv_cc_needs_belf=no
6237 rm -rf conftest.dSYM
6238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6239 conftest$ac_exeext conftest.$ac_ext
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6251 CFLAGS="$SAVE_CFLAGS"
6255 # Find out which ABI we are using.
6256 echo 'int i;' > conftest.$ac_ext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>&5
6260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6261 (exit $ac_status); }; then
6262 case `/usr/bin/file conftest.o` in
6264 case $lt_cv_prog_gnu_ld in
6265 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6279 need_locks="$enable_libtool_lock"
6283 rhapsody* | darwin*)
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6288 $as_echo_n "checking
for $ac_word...
" >&6; }
6289 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6290 $as_echo_n "(cached
) " >&6
6292 if test -n "$DSYMUTIL"; then
6293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6303 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6313 if test -n "$DSYMUTIL"; then
6314 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6315 $as_echo "$DSYMUTIL" >&6; }
6317 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6318 $as_echo "no
" >&6; }
6323 if test -z "$ac_cv_prog_DSYMUTIL"; then
6324 ac_ct_DSYMUTIL=$DSYMUTIL
6325 # Extract the first word of "dsymutil
", so it can be a program name with args.
6326 set dummy dsymutil; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6328 $as_echo_n "checking
for $ac_word...
" >&6; }
6329 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6330 $as_echo_n "(cached
) " >&6
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6343 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6353 if test -n "$ac_ct_DSYMUTIL"; then
6354 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6355 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6357 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6358 $as_echo "no
" >&6; }
6361 if test "x
$ac_ct_DSYMUTIL" = x; then
6364 case $cross_compiling:$ac_tool_warned in
6366 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6367 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6368 ac_tool_warned=yes ;;
6370 DSYMUTIL=$ac_ct_DSYMUTIL
6373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6380 $as_echo_n "checking
for $ac_word...
" >&6; }
6381 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6382 $as_echo_n "(cached
) " >&6
6384 if test -n "$NMEDIT"; then
6385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6395 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6404 NMEDIT=$ac_cv_prog_NMEDIT
6405 if test -n "$NMEDIT"; then
6406 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6407 $as_echo "$NMEDIT" >&6; }
6409 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6410 $as_echo "no
" >&6; }
6415 if test -z "$ac_cv_prog_NMEDIT"; then
6416 ac_ct_NMEDIT=$NMEDIT
6417 # Extract the first word of "nmedit
", so it can be a program name with args.
6418 set dummy nmedit; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6420 $as_echo_n "checking
for $ac_word...
" >&6; }
6421 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6422 $as_echo_n "(cached
) " >&6
6424 if test -n "$ac_ct_NMEDIT"; then
6425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6435 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6445 if test -n "$ac_ct_NMEDIT"; then
6446 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6447 $as_echo "$ac_ct_NMEDIT" >&6; }
6449 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6450 $as_echo "no
" >&6; }
6453 if test "x
$ac_ct_NMEDIT" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6459 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6460 ac_tool_warned=yes ;;
6462 NMEDIT=$ac_ct_NMEDIT
6465 NMEDIT="$ac_cv_prog_NMEDIT"
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6472 $as_echo_n "checking
for $ac_word...
" >&6; }
6473 if test "${ac_cv_prog_LIPO+set}" = set; then
6474 $as_echo_n "(cached
) " >&6
6476 if test -n "$LIPO"; then
6477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6487 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6496 LIPO=$ac_cv_prog_LIPO
6497 if test -n "$LIPO"; then
6498 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6499 $as_echo "$LIPO" >&6; }
6501 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6502 $as_echo "no
" >&6; }
6507 if test -z "$ac_cv_prog_LIPO"; then
6509 # Extract the first word of "lipo
", so it can be a program name with args.
6510 set dummy lipo; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6512 $as_echo_n "checking
for $ac_word...
" >&6; }
6513 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6514 $as_echo_n "(cached
) " >&6
6516 if test -n "$ac_ct_LIPO"; then
6517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_LIPO="lipo
"
6527 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6536 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6537 if test -n "$ac_ct_LIPO"; then
6538 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6539 $as_echo "$ac_ct_LIPO" >&6; }
6541 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6542 $as_echo "no
" >&6; }
6545 if test "x
$ac_ct_LIPO" = x; then
6548 case $cross_compiling:$ac_tool_warned in
6550 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6551 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6552 ac_tool_warned=yes ;;
6557 LIPO="$ac_cv_prog_LIPO"
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6564 $as_echo_n "checking
for $ac_word...
" >&6; }
6565 if test "${ac_cv_prog_OTOOL+set}" = set; then
6566 $as_echo_n "(cached
) " >&6
6568 if test -n "$OTOOL"; then
6569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6579 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6588 OTOOL=$ac_cv_prog_OTOOL
6589 if test -n "$OTOOL"; then
6590 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6591 $as_echo "$OTOOL" >&6; }
6593 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6594 $as_echo "no
" >&6; }
6599 if test -z "$ac_cv_prog_OTOOL"; then
6601 # Extract the first word of "otool
", so it can be a program name with args.
6602 set dummy otool; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6604 $as_echo_n "checking
for $ac_word...
" >&6; }
6605 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6606 $as_echo_n "(cached
) " >&6
6608 if test -n "$ac_ct_OTOOL"; then
6609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL="otool
"
6619 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6629 if test -n "$ac_ct_OTOOL"; then
6630 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6631 $as_echo "$ac_ct_OTOOL" >&6; }
6633 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6634 $as_echo "no
" >&6; }
6637 if test "x
$ac_ct_OTOOL" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6643 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6644 ac_tool_warned=yes ;;
6649 OTOOL="$ac_cv_prog_OTOOL"
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6655 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6656 $as_echo_n "checking
for $ac_word...
" >&6; }
6657 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6658 $as_echo_n "(cached
) " >&6
6660 if test -n "$OTOOL64"; then
6661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6671 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6680 OTOOL64=$ac_cv_prog_OTOOL64
6681 if test -n "$OTOOL64"; then
6682 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6683 $as_echo "$OTOOL64" >&6; }
6685 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6686 $as_echo "no
" >&6; }
6691 if test -z "$ac_cv_prog_OTOOL64"; then
6692 ac_ct_OTOOL64=$OTOOL64
6693 # Extract the first word of "otool64
", so it can be a program name with args.
6694 set dummy otool64; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6696 $as_echo_n "checking
for $ac_word...
" >&6; }
6697 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6698 $as_echo_n "(cached
) " >&6
6700 if test -n "$ac_ct_OTOOL64"; then
6701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6711 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6720 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6721 if test -n "$ac_ct_OTOOL64"; then
6722 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6723 $as_echo "$ac_ct_OTOOL64" >&6; }
6725 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6726 $as_echo "no
" >&6; }
6729 if test "x
$ac_ct_OTOOL64" = x; then
6732 case $cross_compiling:$ac_tool_warned in
6734 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6735 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6736 ac_tool_warned=yes ;;
6738 OTOOL64=$ac_ct_OTOOL64
6741 OTOOL64="$ac_cv_prog_OTOOL64"
6770 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6771 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6772 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6773 $as_echo_n "(cached
) " >&6
6775 lt_cv_apple_cc_single_mod=no
6776 if test -z "${LT_MULTI_MODULE}"; then
6777 # By default we will add the -single_module flag. You can override
6778 # by either setting the environment variable LT_MULTI_MODULE
6779 # non-empty at configure time, or by adding -multi_module to the
6781 rm -rf libconftest.dylib*
6782 echo "int foo
(void
){return 1;}" > conftest.c
6783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6784 -dynamiclib -Wl,-single_module conftest.c
" >&5
6785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6789 lt_cv_apple_cc_single_mod=yes
6791 cat conftest.err >&5
6793 rm -rf libconftest.dylib*
6797 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6798 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6799 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6800 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6801 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6802 $as_echo_n "(cached
) " >&6
6804 lt_cv_ld_exported_symbols_list=no
6805 save_LDFLAGS=$LDFLAGS
6806 echo "_main
" > conftest.sym
6807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (ac_try="$ac_link"
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6830 $as_echo "$ac_try_echo") >&5
6831 (eval "$ac_link") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest$ac_exeext && {
6841 test "$cross_compiling" = yes ||
6842 $as_test_x conftest$ac_exeext
6844 lt_cv_ld_exported_symbols_list=yes
6846 $as_echo "$as_me: failed program was
:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 lt_cv_ld_exported_symbols_list=no
6852 rm -rf conftest.dSYM
6853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6854 conftest$ac_exeext conftest.$ac_ext
6855 LDFLAGS="$save_LDFLAGS"
6858 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6861 rhapsody* | darwin1.[012])
6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6864 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6865 darwin*) # darwin 5.x on
6866 # if running on 10.5 or later, the deployment target defaults
6867 # to the OS version, if on x86, and 10.4, the deployment
6868 # target defaults to 10.4. Don't you love it?
6869 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6870 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6871 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6879 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6880 _lt_dar_single_mod='$single_module'
6882 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6883 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6885 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6887 if test "$DSYMUTIL" != ":"; then
6888 _lt_dsymutil='~$DSYMUTIL $lib || :'
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6901 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6902 # On Suns, sometimes $CPP names a directory.
6903 if test -n "$CPP" && test -d "$CPP"; then
6906 if test -z "$CPP"; then
6907 if test "${ac_cv_prog_CPP+set}" = set; then
6908 $as_echo_n "(cached
) " >&6
6910 # Double quotes because CPP needs to be expanded
6911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6914 for ac_c_preproc_warn_flag in '' yes
6916 # Use a header file that comes with gcc, so configuring glibc
6917 # with a fresh cross-compiler works.
6918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 # <limits.h> exists even on freestanding compilers.
6920 # On the NeXT, cc -E runs the code through the compiler's parser,
6921 # not just through cpp. "Syntax error
" is here to catch this case.
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6929 # include <limits.h>
6931 # include <assert.h>
6935 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6941 $as_echo "$ac_try_echo") >&5
6942 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6944 grep -v '^ *+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6948 (exit $ac_status); } >/dev/null && {
6949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6954 $as_echo "$as_me: failed program was
:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 # Broken: fails on valid input.
6961 rm -f conftest.err conftest.$ac_ext
6963 # OK, works on sane cases. Now check whether nonexistent headers
6964 # can be detected and how.
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <ac_nonexistent.h>
6973 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6978 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6979 $as_echo "$ac_try_echo") >&5
6980 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6982 grep -v '^ *+' conftest.er1 >conftest.err
6984 cat conftest.err >&5
6985 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6988 test ! -s conftest.err
6990 # Broken: success on invalid input.
6993 $as_echo "$as_me: failed program was
:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 # Passes both tests.
7001 rm -f conftest.err conftest.$ac_ext
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then
7018 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
7019 $as_echo "$CPP" >&6; }
7021 for ac_c_preproc_warn_flag in '' yes
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error
" is here to catch this case.
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 # include <limits.h>
7038 # include <assert.h>
7042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7055 (exit $ac_status); } >/dev/null && {
7056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7061 $as_echo "$as_me: failed program was
:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 # Broken: fails on valid input.
7068 rm -f conftest.err conftest.$ac_ext
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <ac_nonexistent.h>
7080 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7086 $as_echo "$ac_try_echo") >&5
7087 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7093 (exit $ac_status); } >/dev/null && {
7094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7097 # Broken: success on invalid input.
7100 $as_echo "$as_me: failed program was
:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 # Passes both tests.
7108 rm -f conftest.err conftest.$ac_ext
7111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7112 rm -f conftest.err conftest.$ac_ext
7113 if $ac_preproc_ok; then
7116 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7118 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7119 See \`config.log' for more details.
" >&5
7120 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7121 See \
`config.log' for more details." >&2;}
7122 { (exit 1); exit 1; }; }; }
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7133 $as_echo_n "checking for ANSI C header files... " >&6; }
7134 if test "${ac_cv_header_stdc+set}" = set; then
7135 $as_echo_n "(cached) " >&6
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7156 rm -f conftest.$ac_objext
7157 if { (ac_try="$ac_compile"
7159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7160 *) ac_try_echo
=$ac_try;;
7162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.
$ac_objext; then
7174 ac_cv_header_stdc
=yes
7176 $as_echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.
$ac_ext >&5
7179 ac_cv_header_stdc
=no
7182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 if test $ac_cv_header_stdc = yes; then
7185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7186 cat >conftest.
$ac_ext <<_ACEOF
7189 cat confdefs.h
>>conftest.
$ac_ext
7190 cat >>conftest.
$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "memchr" >/dev
/null
2>&1; then
7199 ac_cv_header_stdc
=no
7205 if test $ac_cv_header_stdc = yes; then
7206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7217 $EGREP "free" >/dev
/null
2>&1; then
7220 ac_cv_header_stdc
=no
7226 if test $ac_cv_header_stdc = yes; then
7227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7228 if test "$cross_compiling" = yes; then
7231 cat >conftest.
$ac_ext <<_ACEOF
7234 cat confdefs.h
>>conftest.
$ac_ext
7235 cat >>conftest.
$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7239 #if ((' ' & 0x0FF) == 0x020)
7240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7243 # define ISLOWER(c) \
7244 (('a' <= (c) && (c) <= 'i') \
7245 || ('j' <= (c) && (c) <= 'r') \
7246 || ('s' <= (c) && (c) <= 'z'))
7247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7255 for (i = 0; i < 256; i++)
7256 if (XOR (islower (i), ISLOWER (i))
7257 || toupper (i) != TOUPPER (i))
7262 rm -f conftest
$ac_exeext
7263 if { (ac_try
="$ac_link"
7265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_link") 2>&5
7272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7274 { (case "(($ac_try" in
7275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7276 *) ac_try_echo
=$ac_try;;
7278 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280 (eval "$ac_try") 2>&5
7282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7286 $as_echo "$as_me: program exited with status $ac_status" >&5
7287 $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.
$ac_ext >&5
7291 ac_cv_header_stdc
=no
7293 rm -rf conftest.dSYM
7294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7301 $as_echo "$ac_cv_header_stdc" >&6; }
7302 if test $ac_cv_header_stdc = yes; then
7304 cat >>confdefs.h
<<\_ACEOF
7305 #define STDC_HEADERS 1
7310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7320 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7321 inttypes.h stdint.h unistd.h
7323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7325 $as_echo_n "checking for $ac_header... " >&6; }
7326 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 $as_echo_n "(cached) " >&6
7329 cat >conftest.
$ac_ext <<_ACEOF
7332 cat confdefs.h
>>conftest.
$ac_ext
7333 cat >>conftest.
$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7337 #include <$ac_header>
7339 rm -f conftest.
$ac_objext
7340 if { (ac_try
="$ac_compile"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 eval "$as_ac_Header=yes"
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 eval "$as_ac_Header=no"
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 ac_res=`eval 'as_val=${'$as_ac_Header'}
7368 $as_echo "$as_val"'`
7369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7370 $as_echo "$ac_res" >&6; }
7371 as_val=`eval 'as_val=${'$as_ac_Header'}
7372 $as_echo "$as_val"'`
7373 if test "x$as_val" = x""yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7384 for ac_header in dlfcn.h
7386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7388 $as_echo_n "checking for $ac_header... " >&6; }
7389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7400 #include <$ac_header>
7402 rm -f conftest.$ac_objext
7403 if { (ac_try="$ac_compile"
7405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7406 *) ac_try_echo
=$ac_try;;
7408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7409 $as_echo "$ac_try_echo") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1
>conftest.err
7414 cat conftest.err
>&5
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.
$ac_objext; then
7420 eval "$as_ac_Header=yes"
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 eval "$as_ac_Header=no"
7428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7430 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7431 $as_echo "$as_val"'`
7432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7433 $as_echo "$ac_res" >&6; }
7434 as_val
=`eval 'as_val=${'$as_ac_Header'}
7435 $as_echo "$as_val"'`
7436 if test "x$as_val" = x
""yes; then
7437 cat >>confdefs.h
<<_ACEOF
7438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 # Check whether --enable-shared was given.
7458 if test "${enable_shared+set}" = set; then
7459 enableval
=$enable_shared; p
=${PACKAGE-default}
7461 yes) enable_shared
=yes ;;
7462 no
) enable_shared
=no
;;
7465 # Look at the argument we got. We use all the common list separators.
7466 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7467 for pkg
in $enableval; do
7469 if test "X$pkg" = "X$p"; then
7488 # Check whether --enable-static was given.
7489 if test "${enable_static+set}" = set; then
7490 enableval
=$enable_static; p
=${PACKAGE-default}
7492 yes) enable_static
=yes ;;
7493 no
) enable_static
=no
;;
7496 # Look at the argument we got. We use all the common list separators.
7497 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7498 for pkg
in $enableval; do
7500 if test "X$pkg" = "X$p"; then
7520 # Check whether --with-pic was given.
7521 if test "${with_pic+set}" = set; then
7522 withval
=$with_pic; pic_mode
="$withval"
7528 test -z "$pic_mode" && pic_mode
=default
7536 # Check whether --enable-fast-install was given.
7537 if test "${enable_fast_install+set}" = set; then
7538 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7540 yes) enable_fast_install
=yes ;;
7541 no
) enable_fast_install
=no
;;
7543 enable_fast_install
=no
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7546 for pkg
in $enableval; do
7548 if test "X$pkg" = "X$p"; then
7549 enable_fast_install
=yes
7556 enable_fast_install
=yes
7569 # This can be used to rebuild libtool when needed
7570 LIBTOOL_DEPS
="$ltmain"
7572 # Always use our own libtool.
7573 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7599 test -z "$LN_S" && LN_S
="ln -s"
7614 if test -n "${ZSH_VERSION+set}" ; then
7615 setopt NO_GLOB_SUBST
7618 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7619 $as_echo_n "checking for objdir... " >&6; }
7620 if test "${lt_cv_objdir+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7623 rm -f .libs
2>/dev
/null
7624 mkdir .libs
2>/dev
/null
7625 if test -d .libs
; then
7628 # MS-DOS does not allow filenames that begin with a dot.
7631 rmdir .libs
2>/dev
/null
7633 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7634 $as_echo "$lt_cv_objdir" >&6; }
7635 objdir
=$lt_cv_objdir
7641 cat >>confdefs.h
<<_ACEOF
7642 #define LT_OBJDIR "$lt_cv_objdir/"
7663 # AIX sometimes has problems with the GCC collect2 program. For some
7664 # reason, if we set the COLLECT_NAMES environment variable, the problems
7665 # vanish in a puff of smoke.
7666 if test "X${COLLECT_NAMES+set}" != Xset
; then
7668 export COLLECT_NAMES
7673 # Sed substitution that helps us do robust quoting. It backslashifies
7674 # metacharacters that are still active within double-quoted strings.
7675 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7677 # Same as above, but do not quote variable references.
7678 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7680 # Sed substitution to delay expansion of an escaped shell variable in a
7681 # double_quote_subst'ed string.
7682 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7684 # Sed substitution to delay expansion of an escaped single quote.
7685 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7687 # Sed substitution to avoid accidental globbing in evaled expressions
7688 no_glob_subst
='s/\*/\\\*/g'
7692 can_build_shared
=yes
7694 # All known linkers require a `.a' archive for static linking (except MSVC,
7695 # which needs '.lib').
7698 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7701 old_CFLAGS
="$CFLAGS"
7703 # Set sane defaults for various variables
7704 test -z "$CC" && CC
=cc
7705 test -z "$LTCC" && LTCC
=$CC
7706 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7707 test -z "$LD" && LD
=ld
7708 test -z "$ac_objext" && ac_objext
=o
7710 for cc_temp
in $compiler""; do
7712 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7713 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7718 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7721 # Only perform the check for file, if the check method requires it
7722 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7723 case $deplibs_check_method in
7725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7726 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7727 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7733 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7736 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7737 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7738 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7739 for ac_dir
in $ac_dummy; do
7741 test -z "$ac_dir" && ac_dir
=.
7742 if test -f $ac_dir/${ac_tool_prefix}file; then
7743 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7744 if test -n "$file_magic_test_file"; then
7745 case $deplibs_check_method in
7747 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7748 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7749 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7750 $EGREP "$file_magic_regex" > /dev
/null
; then
7755 *** Warning: the command libtool uses to detect shared libraries,
7756 *** $file_magic_cmd, produces output that libtool cannot recognize.
7757 *** The result is that libtool may fail to recognize shared libraries
7758 *** as such. This will affect the creation of libtool libraries that
7759 *** depend on shared libraries, but programs linked with such libtool
7760 *** libraries will work regardless of this problem. Nevertheless, you
7761 *** may want to report the problem to your system manager and/or to
7762 *** bug-libtool@gnu.org
7772 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7777 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7778 if test -n "$MAGIC_CMD"; then
7779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7780 $as_echo "$MAGIC_CMD" >&6; }
7782 { $as_echo "$as_me:$LINENO: result: no" >&5
7783 $as_echo "no" >&6; }
7790 if test -z "$lt_cv_path_MAGIC_CMD"; then
7791 if test -n "$ac_tool_prefix"; then
7792 { $as_echo "$as_me:$LINENO: checking for file" >&5
7793 $as_echo_n "checking for file... " >&6; }
7794 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7799 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7802 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7803 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7804 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7805 for ac_dir
in $ac_dummy; do
7807 test -z "$ac_dir" && ac_dir
=.
7808 if test -f $ac_dir/file; then
7809 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7810 if test -n "$file_magic_test_file"; then
7811 case $deplibs_check_method in
7813 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7814 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7815 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7816 $EGREP "$file_magic_regex" > /dev
/null
; then
7821 *** Warning: the command libtool uses to detect shared libraries,
7822 *** $file_magic_cmd, produces output that libtool cannot recognize.
7823 *** The result is that libtool may fail to recognize shared libraries
7824 *** as such. This will affect the creation of libtool libraries that
7825 *** depend on shared libraries, but programs linked with such libtool
7826 *** libraries will work regardless of this problem. Nevertheless, you
7827 *** may want to report the problem to your system manager and/or to
7828 *** bug-libtool@gnu.org
7838 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7843 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7844 if test -n "$MAGIC_CMD"; then
7845 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7846 $as_echo "$MAGIC_CMD" >&6; }
7848 { $as_echo "$as_me:$LINENO: result: no" >&5
7849 $as_echo "no" >&6; }
7862 # Use C for the default configuration in the libtool script
7866 ac_cpp
='$CPP $CPPFLAGS'
7867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7872 # Source file extension for C test sources.
7875 # Object file extension for compiled C test sources.
7879 # Code to be used in simple compile tests
7880 lt_simple_compile_test_code
="int some_variable = 0;"
7882 # Code to be used in simple link tests
7883 lt_simple_link_test_code
='int main(){return(0);}'
7891 # If no C compiler was specified, use CC.
7894 # If no C compiler flags were specified, use CFLAGS.
7895 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7897 # Allow CC to be a program name with arguments.
7900 # Save the default compiler, since it gets overwritten when the other
7901 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7902 compiler_DEFAULT
=$CC
7904 # save warnings/boilerplate of simple test code
7905 ac_outfile
=conftest.
$ac_objext
7906 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7907 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7908 _lt_compiler_boilerplate
=`cat conftest.err`
7911 ac_outfile
=conftest.
$ac_objext
7912 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7913 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7914 _lt_linker_boilerplate
=`cat conftest.err`
7919 ## There is no encapsulation within the following macros, do not change
7920 ## the running order or otherwise move them around unless you know exactly
7921 ## what you are doing...
7922 if test -n "$compiler"; then
7924 lt_prog_compiler_no_builtin_flag
=
7926 if test "$GCC" = yes; then
7927 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7929 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7930 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7931 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7934 lt_cv_prog_compiler_rtti_exceptions
=no
7935 ac_outfile
=conftest.
$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7937 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 # The option is referenced via a variable to avoid confusing sed.
7943 lt_compile
=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>conftest.err
)
7950 cat conftest.err
>&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s "$ac_outfile"; then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings other than the usual output.
7955 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7957 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7958 lt_cv_prog_compiler_rtti_exceptions
=yes
7964 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7965 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7967 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7968 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7980 lt_prog_compiler_wl
=
7981 lt_prog_compiler_pic
=
7982 lt_prog_compiler_static
=
7984 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7987 if test "$GCC" = yes; then
7988 lt_prog_compiler_wl
='-Wl,'
7989 lt_prog_compiler_static
='-static'
7993 # All AIX code is PIC.
7994 if test "$host_cpu" = ia64
; then
7995 # AIX 5 now supports IA64 processor
7996 lt_prog_compiler_static
='-Bstatic'
8003 # see comment about AmigaOS4 .so support
8004 lt_prog_compiler_pic
='-fPIC'
8007 # FIXME: we need at least 68020 code to build shared libraries, but
8008 # adding the `-m68020' flag to GCC prevents building anything better,
8010 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8015 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8016 # PIC is the default for these OSes.
8019 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8020 # This hack is so that the source file can tell whether it is being
8021 # built for inclusion in a dll (and should export symbols for example).
8022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8023 # (--disable-auto-import) libraries
8024 lt_prog_compiler_pic
='-DDLL_EXPORT'
8027 darwin
* | rhapsody
*)
8028 # PIC is the default on this platform
8029 # Common symbols not allowed in MH_DYLIB files
8030 lt_prog_compiler_pic
='-fno-common'
8034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8036 # sets the default TLS model and affects inlining.
8042 lt_prog_compiler_pic
='-fPIC'
8048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8049 # Instead, we relocate shared libraries at runtime.
8053 # Just because we use GCC doesn't mean we suddenly get shared libraries
8054 # on systems that don't support them.
8055 lt_prog_compiler_can_build_shared
=no
8060 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 lt_prog_compiler_pic
='-fPIC -shared'
8066 if test -d /usr
/nec
; then
8067 lt_prog_compiler_pic
=-Kconform_pic
8072 lt_prog_compiler_pic
='-fPIC'
8076 # PORTME Check for flag to pass linker flags through the system compiler.
8079 lt_prog_compiler_wl
='-Wl,'
8080 if test "$host_cpu" = ia64
; then
8081 # AIX 5 now supports IA64 processor
8082 lt_prog_compiler_static
='-Bstatic'
8084 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8088 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8089 # This hack is so that the source file can tell whether it is being
8090 # built for inclusion in a dll (and should export symbols for example).
8091 lt_prog_compiler_pic
='-DDLL_EXPORT'
8094 hpux9
* | hpux10
* | hpux11
*)
8095 lt_prog_compiler_wl
='-Wl,'
8096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8103 lt_prog_compiler_pic
='+Z'
8106 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8107 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8110 irix5
* | irix6
* | nonstopux
*)
8111 lt_prog_compiler_wl
='-Wl,'
8112 # PIC (with -KPIC) is the default.
8113 lt_prog_compiler_static
='-non_shared'
8116 linux
* | k
*bsd
*-gnu)
8117 case $cc_basename in
8118 # old Intel for x86_64 which still supported -KPIC.
8120 lt_prog_compiler_wl
='-Wl,'
8121 lt_prog_compiler_pic
='-KPIC'
8122 lt_prog_compiler_static
='-static'
8124 # icc used to be incompatible with GCC.
8125 # ICC 10 doesn't accept -KPIC any more.
8127 lt_prog_compiler_wl
='-Wl,'
8128 lt_prog_compiler_pic
='-fPIC'
8129 lt_prog_compiler_static
='-static'
8131 # Lahey Fortran 8.1.
8133 lt_prog_compiler_wl
='-Wl,'
8134 lt_prog_compiler_pic
='--shared'
8135 lt_prog_compiler_static
='--static'
8137 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8138 # Portland Group compilers (*not* the Pentium gcc compiler,
8139 # which looks to be a dead project)
8140 lt_prog_compiler_wl
='-Wl,'
8141 lt_prog_compiler_pic
='-fpic'
8142 lt_prog_compiler_static
='-Bstatic'
8145 lt_prog_compiler_wl
='-Wl,'
8146 # All Alpha code is PIC.
8147 lt_prog_compiler_static
='-non_shared'
8150 # IBM XL C 8.0/Fortran 10.1 on PPC
8151 lt_prog_compiler_wl
='-Wl,'
8152 lt_prog_compiler_pic
='-qpic'
8153 lt_prog_compiler_static
='-qstaticlink'
8156 case `$CC -V 2>&1 | sed 5q` in
8159 lt_prog_compiler_pic
='-KPIC'
8160 lt_prog_compiler_static
='-Bstatic'
8161 lt_prog_compiler_wl
='-Wl,'
8164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8165 lt_prog_compiler_pic
='-KPIC'
8166 lt_prog_compiler_static
='-Bstatic'
8167 lt_prog_compiler_wl
=''
8175 lt_prog_compiler_pic
='-KPIC'
8176 lt_prog_compiler_static
='-Bstatic'
8180 # QNX uses GNU C++, but need to define -shared option too, otherwise
8182 lt_prog_compiler_pic
='-fPIC -shared'
8185 osf3
* | osf4
* | osf5
*)
8186 lt_prog_compiler_wl
='-Wl,'
8187 # All OSF/1 code is PIC.
8188 lt_prog_compiler_static
='-non_shared'
8192 lt_prog_compiler_static
='-non_shared'
8196 lt_prog_compiler_pic
='-KPIC'
8197 lt_prog_compiler_static
='-Bstatic'
8198 case $cc_basename in
8200 lt_prog_compiler_wl
='-Qoption ld ';;
8202 lt_prog_compiler_wl
='-Wl,';;
8207 lt_prog_compiler_wl
='-Qoption ld '
8208 lt_prog_compiler_pic
='-PIC'
8209 lt_prog_compiler_static
='-Bstatic'
8212 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8213 lt_prog_compiler_wl
='-Wl,'
8214 lt_prog_compiler_pic
='-KPIC'
8215 lt_prog_compiler_static
='-Bstatic'
8219 if test -d /usr
/nec
;then
8220 lt_prog_compiler_pic
='-Kconform_pic'
8221 lt_prog_compiler_static
='-Bstatic'
8225 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8226 lt_prog_compiler_wl
='-Wl,'
8227 lt_prog_compiler_pic
='-KPIC'
8228 lt_prog_compiler_static
='-Bstatic'
8232 lt_prog_compiler_wl
='-Wl,'
8233 lt_prog_compiler_can_build_shared
=no
8237 lt_prog_compiler_pic
='-pic'
8238 lt_prog_compiler_static
='-Bstatic'
8242 lt_prog_compiler_can_build_shared
=no
8248 # For platforms which do not support PIC, -DPIC is meaningless:
8250 lt_prog_compiler_pic
=
8253 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8256 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8257 $as_echo "$lt_prog_compiler_pic" >&6; }
8265 # Check to make sure the PIC flag actually works.
8267 if test -n "$lt_prog_compiler_pic"; then
8268 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8270 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8273 lt_cv_prog_compiler_pic_works
=no
8274 ac_outfile
=conftest.
$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8276 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile
=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>conftest.err
)
8289 cat conftest.err
>&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
8294 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8295 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8296 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8297 lt_cv_prog_compiler_pic_works
=yes
8303 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8304 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8306 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8307 case $lt_prog_compiler_pic in
8309 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8312 lt_prog_compiler_pic
=
8313 lt_prog_compiler_can_build_shared
=no
8324 # Check to make sure the static flag actually works.
8326 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8327 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8328 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8329 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8330 $as_echo_n "(cached) " >&6
8332 lt_cv_prog_compiler_static_works
=no
8333 save_LDFLAGS
="$LDFLAGS"
8334 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8335 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8336 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8337 # The linker can only warn and ignore the option if not recognized
8338 # So say no if there are warnings
8339 if test -s conftest.err
; then
8340 # Append any errors to the config.log.
8341 cat conftest.err
1>&5
8342 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8343 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8344 if diff conftest.exp conftest.er2
>/dev
/null
; then
8345 lt_cv_prog_compiler_static_works
=yes
8348 lt_cv_prog_compiler_static_works
=yes
8352 LDFLAGS
="$save_LDFLAGS"
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8356 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8358 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8361 lt_prog_compiler_static
=
8370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8371 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8372 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8373 $as_echo_n "(cached) " >&6
8375 lt_cv_prog_compiler_c_o
=no
8376 $RM -r conftest
2>/dev
/null
8380 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8382 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8383 # Insert the option either (1) after the last *FLAGS variable, or
8384 # (2) before a word containing "conftest.", or (3) at the end.
8385 # Note that $ac_compile itself does not contain backslashes and begins
8386 # with a dollar sign (not a hyphen), so the echo should work correctly.
8387 lt_compile
=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
8391 (eval echo "\"\$as_me:8391: $lt_compile\"" >&5)
8392 (eval "$lt_compile" 2>out
/conftest.err
)
8394 cat out
/conftest.err
>&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8398 # The compiler can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
8400 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8401 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8402 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8403 lt_cv_prog_compiler_c_o
=yes
8408 # SGI C++ compiler will create directory out/ii_files/ for
8409 # template instantiation
8410 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8411 $RM out
/* && rmdir out
8417 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8418 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8427 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8430 lt_cv_prog_compiler_c_o
=no
8431 $RM -r conftest
2>/dev
/null
8435 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8437 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 lt_compile
=`echo "$ac_compile" | $SED \
8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445 -e 's:$: $lt_compiler_flag:'`
8446 (eval echo "\"\$as_me:8446: $lt_compile\"" >&5)
8447 (eval "$lt_compile" 2>out
/conftest.err
)
8449 cat out
/conftest.err
>&5
8450 echo "$as_me:8450: \$? = $ac_status" >&5
8451 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings
8455 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8456 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8457 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8458 lt_cv_prog_compiler_c_o
=yes
8463 # SGI C++ compiler will create directory out/ii_files/ for
8464 # template instantiation
8465 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8466 $RM out
/* && rmdir out
8472 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8478 hard_links
="nottested"
8479 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8480 # do not overwrite the value of need_locks provided by the user
8481 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8482 $as_echo_n "checking if we can lock with hard links... " >&6; }
8485 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8487 ln conftest.a conftest.b
2>&5 || hard_links
=no
8488 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8489 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8490 $as_echo "$hard_links" >&6; }
8491 if test "$hard_links" = no
; then
8492 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8493 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8505 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8506 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8509 allow_undefined_flag
=
8510 always_export_symbols
=no
8512 archive_expsym_cmds
=
8513 compiler_needs_object
=no
8514 enable_shared_with_static_runtimes
=no
8515 export_dynamic_flag_spec
=
8516 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8517 hardcode_automatic
=no
8519 hardcode_direct_absolute
=no
8520 hardcode_libdir_flag_spec
=
8521 hardcode_libdir_flag_spec_ld
=
8522 hardcode_libdir_separator
=
8524 hardcode_shlibpath_var
=unsupported
8526 link_all_deplibs
=unknown
8529 old_archive_from_new_cmds
=
8530 old_archive_from_expsyms_cmds
=
8531 thread_safe_flag_spec
=
8532 whole_archive_flag_spec
=
8533 # include_expsyms should be a list of space-separated symbols to be *always*
8534 # included in the symbol list
8536 # exclude_expsyms can be an extended regexp of symbols to exclude
8537 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8538 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8539 # as well as any symbol that contains `d'.
8540 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8541 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8542 # platforms (ab)use it in PIC code, but their linkers get confused if
8543 # the symbol is explicitly referenced. Since portable code cannot
8544 # rely on this symbol name, it's probably fine to never include it in
8545 # preloaded symbol tables.
8546 # Exclude shared library initialization/finalization symbols.
8547 extract_expsyms_cmds
=
8550 cygwin
* | mingw
* | pw32
* | cegcc
*)
8551 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8552 # When not using gcc, we currently assume that we are using
8553 # Microsoft Visual C++.
8554 if test "$GCC" != yes; then
8559 # we just hope/assume this is gcc and not c89 (= MSVC++)
8568 if test "$with_gnu_ld" = yes; then
8569 # If archive_cmds runs LD, not CC, wlarc should be empty
8572 # Set some defaults for GNU ld with shared library support. These
8573 # are reset later if shared libraries are not supported. Putting them
8574 # here allows them to be overridden if necessary.
8575 runpath_var
=LD_RUN_PATH
8576 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8577 export_dynamic_flag_spec
='${wl}--export-dynamic'
8578 # ancient GNU ld didn't support --whole-archive et. al.
8579 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8580 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8582 whole_archive_flag_spec
=
8584 supports_anon_versioning
=no
8585 case `$LD -v 2>&1` in
8586 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8587 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8588 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8589 *\
2.11.
*) ;; # other 2.11 versions
8590 *) supports_anon_versioning
=yes ;;
8593 # See if GNU ld supports shared libraries.
8596 # On AIX/PPC, the GNU linker is very broken
8597 if test "$host_cpu" != ia64
; then
8601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8602 *** to be unable to reliably create shared libraries on AIX.
8603 *** Therefore, libtool is disabling shared libraries support. If you
8604 *** really care for shared libraries, you may want to modify your PATH
8605 *** so that a non-GNU linker is found, and then restart.
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds
=''
8619 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)'
8620 hardcode_libdir_flag_spec
='-L$libdir'
8621 hardcode_minus_L
=yes
8627 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8628 allow_undefined_flag
=unsupported
8629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
8631 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8637 cygwin
* | mingw
* | pw32
* | cegcc
*)
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec
='-L$libdir'
8641 allow_undefined_flag
=unsupported
8642 always_export_symbols
=no
8643 enable_shared_with_static_runtimes
=yes
8644 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8646 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8647 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648 # If the export-symbols file already is a .def file (1st line
8649 # is EXPORTS), use it as is; otherwise, prepend...
8650 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651 cp $export_symbols $output_objdir/$soname.def;
8653 echo EXPORTS > $output_objdir/$soname.def;
8654 cat $export_symbols >> $output_objdir/$soname.def;
8656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8664 hardcode_shlibpath_var
=no
8665 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8666 export_dynamic_flag_spec
='${wl}-E'
8667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8668 # Instead, shared libraries are loaded at an image base (0x10000000 by
8669 # default) and relocated if they conflict, which is a slow very memory
8670 # consuming and fragmenting process. To avoid this, we pick a random,
8671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8673 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8674 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'
8677 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8679 if test "$host_os" = linux-dietlibc
; then
8680 case $cc_basename in
8681 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8684 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8685 && test "$tmp_diet" = no
8688 tmp_sharedflag
='-shared'
8689 case $cc_basename,$host_cpu in
8690 pgcc
*) # Portland Group C compiler
8691 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'
8692 tmp_addflag
=' $pic_flag'
8694 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8695 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'
8696 tmp_addflag
=' $pic_flag -Mnomain' ;;
8697 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8698 tmp_addflag
=' -i_dynamic' ;;
8699 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8700 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8701 ifc
* | ifort
*) # Intel Fortran compiler
8702 tmp_addflag
=' -nofor_main' ;;
8703 lf95
*) # Lahey Fortran 8.1
8704 whole_archive_flag_spec
=
8705 tmp_sharedflag
='--shared' ;;
8706 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8707 tmp_sharedflag
='-qmkshrobj'
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ C
*) # Sun C 5.9
8712 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'
8713 compiler_needs_object
=yes
8714 tmp_sharedflag
='-G' ;;
8715 *Sun\ F
*) # Sun Fortran 8.3
8716 tmp_sharedflag
='-G' ;;
8718 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 if test "x$supports_anon_versioning" = xyes
; then
8721 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8723 echo "local: *; };" >> $output_objdir/$libname.ver~
8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8727 case $cc_basename in
8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8730 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8731 hardcode_libdir_flag_spec
=
8732 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8733 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8734 if test "x$supports_anon_versioning" = xyes
; then
8735 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8737 echo "local: *; };" >> $output_objdir/$libname.ver~
8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8748 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8749 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8752 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8758 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8763 *** create shared libraries on Solaris systems. Therefore, libtool
8764 *** is disabling shared libraries support. We urge you to upgrade GNU
8765 *** binutils to release 2.9.1 or newer. Another option is to modify
8766 *** your PATH or compiler configuration so that the native linker is
8767 *** used, and then restart.
8770 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8771 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8779 case `$LD -v 2>&1` in
8780 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8785 *** reliably create shared libraries on SCO systems. Therefore, libtool
8786 *** is disabling shared libraries support. We urge you to upgrade GNU
8787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8788 *** your PATH or compiler configuration so that the native linker is
8789 *** used, and then restart.
8794 # For security reasons, it is highly recommended that you always
8795 # use absolute paths for naming shared libraries, and exclude the
8796 # DT_RUNPATH tag from executables and libraries. But doing so
8797 # requires that you compile everything twice, which is a pain.
8798 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8799 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8800 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_shlibpath_var
=no
8817 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8818 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8826 if test "$ld_shlibs" = no
; then
8828 hardcode_libdir_flag_spec
=
8829 export_dynamic_flag_spec
=
8830 whole_archive_flag_spec
=
8833 # PORTME fill in a description of your system's linker (not GNU ld)
8836 allow_undefined_flag
=unsupported
8837 always_export_symbols
=yes
8838 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'
8839 # Note: this linker hardcodes the directories in LIBPATH if there
8840 # are no directories specified by -L.
8841 hardcode_minus_L
=yes
8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8843 # Neither direct hardcoding nor static linking is supported with a
8845 hardcode_direct
=unsupported
8850 if test "$host_cpu" = ia64
; then
8851 # On IA64, the linker does run time linking by default, so we don't
8852 # have to do anything special.
8853 aix_use_runtimelinking
=no
8854 exp_sym_flag
='-Bexport'
8857 # If we're using GNU nm, then we don't want the "-C" option.
8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8859 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8860 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'
8862 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'
8864 aix_use_runtimelinking
=no
8866 # Test if we are trying to use run time linking or normal
8867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8868 # need to do runtime linking.
8869 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8870 for ld_flag
in $LDFLAGS; do
8871 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8872 aix_use_runtimelinking
=yes
8879 exp_sym_flag
='-bexport'
8880 no_entry_flag
='-bnoentry'
8883 # When large executables or shared objects are built, AIX ld can
8884 # have problems creating the table of contents. If linking a library
8885 # or program results in "error TOC overflow" add -mminimal-toc to
8886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8891 hardcode_direct_absolute
=yes
8892 hardcode_libdir_separator
=':'
8893 link_all_deplibs
=yes
8894 file_list_spec
='${wl}-f,'
8896 if test "$GCC" = yes; then
8897 case $host_os in aix4.
[012]|aix4.
[012].
*)
8898 # We only want to do this on AIX 4.2 and lower, the check
8899 # below for broken collect2 doesn't work under 4.3+
8900 collect2name
=`${CC} -print-prog-name=collect2`
8901 if test -f "$collect2name" &&
8902 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8904 # We have reworked collect2
8907 # We have old collect2
8908 hardcode_direct
=unsupported
8909 # It fails to find uninstalled libraries when the uninstalled
8910 # path is not listed in the libpath. Setting hardcode_minus_L
8911 # to unsupported forces relinking
8912 hardcode_minus_L
=yes
8913 hardcode_libdir_flag_spec
='-L$libdir'
8914 hardcode_libdir_separator
=
8918 shared_flag
='-shared'
8919 if test "$aix_use_runtimelinking" = yes; then
8920 shared_flag
="$shared_flag "'${wl}-G'
8924 if test "$host_cpu" = ia64
; then
8925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926 # chokes on -Wl,-G. The following line is correct:
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag
='${wl}-G'
8932 shared_flag
='${wl}-bM:SRE'
8937 export_dynamic_flag_spec
='${wl}-bexpall'
8938 # It seems that -bexpall does not export symbols beginning with
8939 # underscore (_), so it is better to generate a list of symbols to export.
8940 always_export_symbols
=yes
8941 if test "$aix_use_runtimelinking" = yes; then
8942 # Warning - without using the other runtime loading flags (-brtl),
8943 # -berok will link without error, but may produce a broken library.
8944 allow_undefined_flag
='-berok'
8945 # Determine the default libpath from the value encoded in an
8947 cat >conftest.
$ac_ext <<_ACEOF
8950 cat confdefs.h
>>conftest.
$ac_ext
8951 cat >>conftest.
$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8962 rm -f conftest.
$ac_objext conftest
$ac_exeext
8963 if { (ac_try
="$ac_link"
8965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_link") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext && {
8980 test "$cross_compiling" = yes ||
8981 $as_test_x conftest$ac_exeext
8984 lt_aix_libpath_sed='
8985 /Import File Strings/,/^$/ {
8991 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8992 # Check for a 64-bit object if we didn't find anything.
8993 if test -z "$aix_libpath"; then
8994 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8997 $as_echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9003 rm -rf conftest.dSYM
9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005 conftest$ac_exeext conftest.$ac_ext
9006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9009 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"
9011 if test "$host_cpu" = ia64; then
9012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9013 allow_undefined_flag="-z nodefs"
9014 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"
9016 # Determine the default libpath from the value encoded in an
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9037 *) ac_try_echo
=$ac_try;;
9039 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1
>conftest.err
9045 cat conftest.err
>&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest
$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest
$ac_exeext
9055 lt_aix_libpath_sed
='
9056 /Import File Strings/,/^$/ {
9062 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 # Check for a 64-bit object if we didn't find anything.
9064 if test -z "$aix_libpath"; then
9065 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.
$ac_ext >&5
9074 rm -rf conftest.dSYM
9075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9076 conftest
$ac_exeext conftest.
$ac_ext
9077 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9079 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9080 # Warning - without using the other run time loading flags,
9081 # -berok will link without error, but may produce a broken library.
9082 no_undefined_flag
=' ${wl}-bernotok'
9083 allow_undefined_flag
=' ${wl}-berok'
9084 # Exported symbols can be pulled into shared objects from archives
9085 whole_archive_flag_spec
='$convenience'
9086 archive_cmds_need_lc
=yes
9087 # This is similar to how AIX traditionally builds its shared libraries.
9088 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'
9096 # see comment about AmigaOS4 .so support
9097 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds
=''
9101 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)'
9102 hardcode_libdir_flag_spec
='-L$libdir'
9103 hardcode_minus_L
=yes
9109 export_dynamic_flag_spec
=-rdynamic
9112 cygwin
* | mingw
* | pw32
* | cegcc
*)
9113 # When not using gcc, we currently assume that we are using
9114 # Microsoft Visual C++.
9115 # hardcode_libdir_flag_spec is actually meaningless, as there is
9116 # no search path for DLLs.
9117 hardcode_libdir_flag_spec
=' '
9118 allow_undefined_flag
=unsupported
9119 # Tell ltmain to make .lib files, not .a files.
9121 # Tell ltmain to make .dll files, not .so files.
9123 # FIXME: Setting linknames here is a bad hack.
9124 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9125 # The linker will automatically build a .lib file if we build a DLL.
9126 old_archive_from_new_cmds
='true'
9127 # FIXME: Should let the user specify the lib program.
9128 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9129 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9130 enable_shared_with_static_runtimes
=yes
9133 darwin
* | rhapsody
*)
9136 archive_cmds_need_lc
=no
9138 hardcode_automatic
=yes
9139 hardcode_shlibpath_var
=unsupported
9140 whole_archive_flag_spec
=''
9141 link_all_deplibs
=yes
9142 allow_undefined_flag
="$_lt_dar_allow_undefined"
9143 case $cc_basename in
9144 ifort
*) _lt_dar_can_shared
=yes ;;
9145 *) _lt_dar_can_shared
=$GCC ;;
9147 if test "$_lt_dar_can_shared" = "yes"; then
9148 output_verbose_link_cmd
=echo
9149 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9150 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9151 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}"
9152 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}"
9161 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_libdir_flag_spec
='-L$libdir'
9163 hardcode_shlibpath_var
=no
9170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9171 # support. Future versions do this automatically, but an explicit c++rt0.o
9172 # does not break anything, and helps significantly (at the cost of a little
9175 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9176 hardcode_libdir_flag_spec
='-R$libdir'
9178 hardcode_shlibpath_var
=no
9181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9183 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185 hardcode_minus_L
=yes
9186 hardcode_shlibpath_var
=no
9189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9190 freebsd
* | dragonfly
*)
9191 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9192 hardcode_libdir_flag_spec
='-R$libdir'
9194 hardcode_shlibpath_var
=no
9198 if test "$GCC" = yes; then
9199 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'
9201 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'
9203 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9204 hardcode_libdir_separator
=:
9207 # hardcode_minus_L: Not really in the search PATH,
9208 # but as the default location of the library.
9209 hardcode_minus_L
=yes
9210 export_dynamic_flag_spec
='${wl}-E'
9214 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9215 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9219 if test "$with_gnu_ld" = no
; then
9220 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9221 hardcode_libdir_flag_spec_ld
='+b $libdir'
9222 hardcode_libdir_separator
=:
9224 hardcode_direct_absolute
=yes
9225 export_dynamic_flag_spec
='${wl}-E'
9226 # hardcode_minus_L: Not really in the search PATH,
9227 # but as the default location of the library.
9228 hardcode_minus_L
=yes
9233 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9236 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9248 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9258 if test "$with_gnu_ld" = no
; then
9259 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_separator
=:
9265 hardcode_shlibpath_var
=no
9269 hardcode_direct_absolute
=yes
9270 export_dynamic_flag_spec
='${wl}-E'
9272 # hardcode_minus_L: Not really in the search PATH,
9273 # but as the default location of the library.
9274 hardcode_minus_L
=yes
9280 irix5
* | irix6
* | nonstopux
*)
9281 if test "$GCC" = yes; then
9282 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'
9283 # Try to use the -exported_symbol ld option, if it does not
9284 # work, assume that -exports_file does not work either and
9285 # implicitly export all symbols.
9286 save_LDFLAGS
="$LDFLAGS"
9287 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat >conftest.
$ac_ext <<_ACEOF
9291 rm -f conftest.
$ac_objext conftest
$ac_exeext
9292 if { (ac_try
="$ac_link"
9294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9298 $as_echo "$ac_try_echo") >&5
9299 (eval "$ac_link") 2>conftest.er1
9301 grep -v '^ *+' conftest.er1 >conftest.err
9303 cat conftest.err >&5
9304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext && {
9309 test "$cross_compiling" = yes ||
9310 $as_test_x conftest$ac_exeext
9312 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'
9315 $as_echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9321 rm -rf conftest.dSYM
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LDFLAGS="$save_LDFLAGS"
9326 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'
9327 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'
9329 archive_cmds_need_lc='no'
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 hardcode_libdir_separator=:
9333 link_all_deplibs=yes
9337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9342 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_shlibpath_var=no
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9359 if test -f /usr/libexec/ld.so; then
9361 hardcode_shlibpath_var=no
9362 hardcode_direct_absolute=yes
9363 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367 export_dynamic_flag_spec='${wl}-E'
9370 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9388 allow_undefined_flag=unsupported
9389 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'
9390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9394 if test "$GCC" = yes; then
9395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9396 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'
9398 allow_undefined_flag=' -expect_unresolved \*'
9399 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'
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 hardcode_libdir_separator=:
9406 osf4* | osf5*) # as osf3* with the addition of -msym flag
9407 if test "$GCC" = yes; then
9408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9409 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'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9412 allow_undefined_flag=' -expect_unresolved \*'
9413 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'
9414 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~
9415 $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'
9417 # Both c and cxx compiler support -rpath directly
9418 hardcode_libdir_flag_spec='-rpath $libdir'
9420 archive_cmds_need_lc='no'
9421 hardcode_libdir_separator=:
9425 no_undefined_flag=' -z defs'
9426 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9430 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9432 case `$CC -V 2>&1` in
9435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9441 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9443 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9447 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9450 solaris2.[0-5] | solaris2.[0-5].*) ;;
9452 # The compiler driver will combine and reorder linker options,
9453 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9454 # but is careful enough not to reorder.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
9456 if test "$GCC" = yes; then
9457 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9459 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9463 link_all_deplibs
=yes
9467 if test "x$host_vendor" = xsequent
; then
9468 # Use $CC to link under sequent, because it throws in some extra .o
9469 # files that make .init and .fini sections work.
9470 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec
='-L$libdir'
9476 hardcode_minus_L
=yes
9477 hardcode_shlibpath_var
=no
9481 case $host_vendor in
9483 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_direct
=yes # is this really true???
9487 ## LD is ld it makes a PLAMLIB
9488 ## CC just makes a GrossModule.
9489 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9490 reload_cmds
='$CC -r -o $output$reload_objs'
9494 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9498 runpath_var
='LD_RUN_PATH'
9499 hardcode_shlibpath_var
=no
9503 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var
=no
9505 export_dynamic_flag_spec
='-Bexport'
9509 if test -d /usr
/nec
; then
9510 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var
=no
9512 runpath_var
=LD_RUN_PATH
9513 hardcode_runpath_var
=yes
9518 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9519 no_undefined_flag
='${wl}-z,text'
9520 archive_cmds_need_lc
=no
9521 hardcode_shlibpath_var
=no
9522 runpath_var
='LD_RUN_PATH'
9524 if test "$GCC" = yes; then
9525 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 sysv5
* | sco3.2v5
* | sco5v6
*)
9534 # Note: We can NOT use -z defs as we might desire, because we do not
9535 # link with -lc, and that would cause any symbols used from libc to
9536 # always be unresolved, which means just about no library would
9537 # ever link correctly. If we're not using GNU ld we use -z text
9538 # though, which does catch some bad symbols but isn't as heavy-handed
9540 no_undefined_flag
='${wl}-z,text'
9541 allow_undefined_flag
='${wl}-z,nodefs'
9542 archive_cmds_need_lc
=no
9543 hardcode_shlibpath_var
=no
9544 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9545 hardcode_libdir_separator
=':'
9546 link_all_deplibs
=yes
9547 export_dynamic_flag_spec
='${wl}-Bexport'
9548 runpath_var
='LD_RUN_PATH'
9550 if test "$GCC" = yes; then
9551 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec
='-L$libdir'
9562 hardcode_shlibpath_var
=no
9570 if test x
$host_vendor = xsni
; then
9572 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9573 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9579 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9580 $as_echo "$ld_shlibs" >&6; }
9581 test "$ld_shlibs" = no
&& can_build_shared
=no
9583 with_gnu_ld
=$with_gnu_ld
9600 # Do we need to explicitly link libc?
9602 case "x$archive_cmds_need_lc" in
9604 # Assume -lc should be added
9605 archive_cmds_need_lc
=yes
9607 if test "$enable_shared" = yes && test "$GCC" = yes; then
9608 case $archive_cmds in
9610 # FIXME: we may have to deal with multi-command sequences.
9613 # Test whether the compiler implicitly links with -lc since on some
9614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9615 # to ld, don't add -lc before -lgcc.
9616 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9617 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9619 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>&5
9624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } 2>conftest.err
; then
9628 libobjs
=conftest.
$ac_objext
9630 wl
=$lt_prog_compiler_wl
9631 pic_flag
=$lt_prog_compiler_pic
9637 lt_save_allow_undefined_flag
=$allow_undefined_flag
9638 allow_undefined_flag
=
9639 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9640 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }
9645 archive_cmds_need_lc
=no
9647 archive_cmds_need_lc
=yes
9649 allow_undefined_flag
=$lt_save_allow_undefined_flag
9651 cat conftest.err
1>&5
9654 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9655 $as_echo "$archive_cmds_need_lc" >&6; }
9818 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9821 if test "$GCC" = yes; then
9823 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg
="/^libraries:/" ;;
9826 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9827 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9828 # if the path contains ";" then we assume it to be the separator
9829 # otherwise default to the standard path separator (i.e. ":") - it is
9830 # assumed that no part of a normal pathname contains ";" but that should
9831 # okay in the real world where ";" in dirpaths is itself problematic.
9832 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9834 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9836 # Ok, now we have the path, separated by spaces, we can step through it
9837 # and add multilib dir if necessary.
9838 lt_tmp_lt_search_path_spec
=
9839 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9840 for lt_sys_path
in $lt_search_path_spec; do
9841 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9842 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9844 test -d "$lt_sys_path" && \
9845 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9848 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9849 BEGIN {RS=" "; FS="/|\n";} {
9852 for (lt_i = NF; lt_i > 0; lt_i--) {
9853 if ($lt_i != "" && $lt_i != ".") {
9854 if ($lt_i == "..") {
9857 if (lt_count == 0) {
9858 lt_foo="/" $lt_i lt_foo;
9865 if (lt_foo != "") { lt_freq[lt_foo]++; }
9866 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9868 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9870 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9873 libname_spec
='lib$name'
9881 shlibpath_overrides_runpath
=unknown
9883 dynamic_linker
="$host_os ld.so"
9884 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9885 need_lib_prefix
=unknown
9886 hardcode_into_libs
=no
9888 # when you set need_version to no, make sure it does not cause -set_version
9889 # flags to be left without arguments
9890 need_version
=unknown
9895 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9896 shlibpath_var
=LIBPATH
9898 # AIX 3 has no versioning support, so we append a major version to the name.
9899 soname_spec
='${libname}${release}${shared_ext}$major'
9906 hardcode_into_libs
=yes
9907 if test "$host_cpu" = ia64
; then
9908 # AIX 5 supports IA64
9909 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910 shlibpath_var
=LD_LIBRARY_PATH
9912 # With GCC up to 2.95.x, collect2 would create an import file
9913 # for dependence libraries. The import file would start with
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
9916 # development snapshots of GCC prior to 3.0.
9918 aix4 | aix4.
[01] | aix4.
[01].
*)
9919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
9931 if test "$aix_use_runtimelinking" = yes; then
9932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933 # instead of lib<name>.a to let people know that these are not
9934 # typical AIX shared libraries.
9935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
9939 library_names_spec
='${libname}${release}.a $libname.a'
9940 soname_spec
='${libname}${release}${shared_ext}$major'
9942 shlibpath_var
=LIBPATH
9949 # Since July 2007 AmigaOS4 officially supports .so libraries.
9950 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954 library_names_spec
='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956 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'
9962 library_names_spec
='${libname}${shared_ext}'
9963 dynamic_linker
="$host_os ld.so"
9964 shlibpath_var
=LIBRARY_PATH
9970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec
='${libname}${release}${shared_ext}$major'
9972 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9973 shlibpath_var
=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9975 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9976 # the default ld.so.conf also contains /usr/contrib/lib and
9977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9978 # libtool to hard-code these into programs
9981 cygwin
* | mingw
* | pw32
* | cegcc
*)
9982 version_type
=windows
9987 case $GCC,$host_os in
9988 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9989 library_names_spec
='$libname.dll.a'
9990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9991 postinstall_cmds
='base_file=`basename \${file}`~
9992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9993 dldir=$destdir/`dirname \$dlpath`~
9994 test -d \$dldir || mkdir -p \$dldir~
9995 $install_prog $dir/$dlname \$dldir/$dlname~
9996 chmod a+x \$dldir/$dlname~
9997 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9998 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10000 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10001 dlpath=$dir/\$dldll~
10003 shlibpath_overrides_runpath
=yes
10007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10008 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10012 # MinGW DLLs use traditional 'lib' prefix
10013 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10015 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10016 # It is most probably a Windows format PATH printed by
10017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10018 # path with ; separators, and with drive letters. We can handle the
10019 # drive letters (cygwin fileutils understands them), so leave them,
10020 # especially as we might pass files found there to a mingw objdump,
10021 # which wouldn't understand a cygwinified path. Ahh.
10022 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10024 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10028 # pw32 DLLs use 'pw' prefix rather than 'lib'
10029 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10038 dynamic_linker
='Win32 ld.exe'
10039 # FIXME: first we should search . and the directory the executable is in
10043 darwin
* | rhapsody
*)
10044 dynamic_linker
="$host_os dyld"
10045 version_type
=darwin
10048 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049 soname_spec
='${libname}${release}${major}$shared_ext'
10050 shlibpath_overrides_runpath
=yes
10051 shlibpath_var
=DYLD_LIBRARY_PATH
10052 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10054 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10055 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10063 soname_spec
='${libname}${release}${shared_ext}$major'
10064 shlibpath_var
=LD_LIBRARY_PATH
10071 freebsd
* | dragonfly
*)
10072 # DragonFly does not have aout. When/if they implement a new
10073 # versioning mechanism, adjust this.
10074 if test -x /usr
/bin
/objformat
; then
10075 objformat
=`/usr/bin/objformat`
10078 freebsd
[123]*) objformat
=aout
;;
10079 *) objformat
=elf
;;
10082 version_type
=freebsd-
$objformat
10083 case $version_type in
10085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10090 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10094 shlibpath_var
=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath
=yes
10099 freebsd3.
[01]* | freebsdelf3.
[01]*)
10100 shlibpath_overrides_runpath
=yes
10101 hardcode_into_libs
=yes
10103 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10104 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10105 shlibpath_overrides_runpath
=no
10106 hardcode_into_libs
=yes
10108 *) # from 4.6 on, and DragonFly
10109 shlibpath_overrides_runpath
=yes
10110 hardcode_into_libs
=yes
10119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10120 soname_spec
='${libname}${release}${shared_ext}$major'
10121 shlibpath_var
=LD_LIBRARY_PATH
10122 hardcode_into_libs
=yes
10125 hpux9
* | hpux10
* | hpux11
*)
10126 # Give a soname corresponding to the major version so that dld.sl refuses to
10127 # link against other versions.
10134 hardcode_into_libs
=yes
10135 dynamic_linker
="$host_os dld.so"
10136 shlibpath_var
=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec
='${libname}${release}${shared_ext}$major'
10140 if test "X$HPUX_IA64_MODE" = X32
; then
10141 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10143 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10145 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10149 hardcode_into_libs
=yes
10150 dynamic_linker
="$host_os dld.sl"
10151 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10152 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec
='${libname}${release}${shared_ext}$major'
10155 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10156 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10160 dynamic_linker
="$host_os dld.sl"
10161 shlibpath_var
=SHLIB_PATH
10162 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec
='${libname}${release}${shared_ext}$major'
10167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10168 postinstall_cmds
='chmod 555 $lib'
10175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10176 soname_spec
='${libname}${release}${shared_ext}$major'
10177 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10178 shlibpath_var
=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath
=no
10180 hardcode_into_libs
=yes
10183 irix5
* | irix6
* | nonstopux
*)
10185 nonstopux
*) version_type
=nonstopux
;;
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10195 soname_spec
='${libname}${release}${shared_ext}$major'
10196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 irix5
* | nonstopux
*)
10199 libsuff
= shlibsuff
=
10202 case $LD in # libtool.m4 will add one of these switches to LD
10203 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10204 libsuff
= shlibsuff
= libmagic
=32-bit;;
10205 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10206 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10207 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10208 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10209 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10213 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10214 shlibpath_overrides_runpath
=no
10215 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10216 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10217 hardcode_into_libs
=yes
10220 # No shared lib support for Linux oldld, aout, or coff.
10221 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10225 # This must be Linux ELF.
10226 linux
* | k
*bsd
*-gnu)
10230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec
='${libname}${release}${shared_ext}$major'
10232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10233 shlibpath_var
=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath
=no
10235 # Some binutils ld are patched to set DT_RUNPATH
10236 save_LDFLAGS
=$LDFLAGS
10237 save_libdir
=$libdir
10238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10240 cat >conftest.
$ac_ext <<_ACEOF
10243 cat confdefs.h
>>conftest.
$ac_ext
10244 cat >>conftest.
$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10255 rm -f conftest.
$ac_objext conftest
$ac_exeext
10256 if { (ac_try
="$ac_link"
10257 case "(($ac_try" in
10258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10276 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10277 shlibpath_overrides_runpath=yes
10281 $as_echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10287 rm -rf conftest.dSYM
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LDFLAGS=$save_LDFLAGS
10291 libdir=$save_libdir
10293 # This implies no fast_install, which is unacceptable.
10294 # Some rework will be needed to allow for fast_install
10295 # before this can be enabled.
10296 hardcode_into_libs=yes
10298 # Add ABI-specific directories to the system library path.
10299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10301 # Append ld.so.conf contents to the search path
10302 if test -f /etc/ld.so.conf; then
10303 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' ' '`
10304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10307 # We used to test for /lib/ld.so.1 and disable shared libraries on
10308 # powerpc, because MkLinux only supported shared libraries with the
10309 # GNU dynamic linker. Since this was broken with cross compilers,
10310 # most powerpc-linux boxes support dynamic linking these days and
10311 # people can always --disable-shared, the test was removed, and we
10312 # assume the GNU/Linux dynamic linker is in use.
10313 dynamic_linker='GNU/Linux ld.so'
10320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 dynamic_linker='NetBSD (a.out) ld.so'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 dynamic_linker='NetBSD ld.elf_so'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 dynamic_linker='ldqnx.so'
10355 sys_lib_dlsearch_path_spec="/usr/lib"
10357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10360 *) need_version=no ;;
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10367 openbsd2.[89] | openbsd2.[89].*)
10368 shlibpath_overrides_runpath=no
10371 shlibpath_overrides_runpath=yes
10375 shlibpath_overrides_runpath=yes
10380 libname_spec='$name'
10383 library_names_spec='$libname${shared_ext} $libname.a'
10384 dynamic_linker='OS/2 ld.exe'
10385 shlibpath_var=LIBPATH
10388 osf3* | osf4* | osf5*)
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 # ldd complains unless libraries are executable
10413 postinstall_cmds='chmod +x $lib'
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 if test "$with_gnu_ld" = yes; then
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_vendor in
10435 shlibpath_overrides_runpath=no
10437 runpath_var=LD_RUN_PATH
10445 shlibpath_overrides_runpath=no
10446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10452 if test -d /usr/nec ;then
10454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10455 soname_spec='$libname${shared_ext}.$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10461 version_type=freebsd-elf
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 hardcode_into_libs=yes
10469 if test "$with_gnu_ld" = yes; then
10470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10479 sys_lib_dlsearch_path_spec='/usr/lib'
10483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10504 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10505 $as_echo "$dynamic_linker" >&6; }
10506 test "$dynamic_linker" = no && can_build_shared=no
10508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10509 if test "$GCC" = yes; then
10510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10513 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10516 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10606 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10607 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10609 if test -n "$hardcode_libdir_flag_spec" ||
10610 test -n "$runpath_var" ||
10611 test "X$hardcode_automatic" = "Xyes" ; then
10613 # We can hardcode non-existent directories.
10614 if test "$hardcode_direct" != no &&
10615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10616 # have to relink, otherwise we might link with an installed library
10617 # when we should be linking with a yet-to-be-installed one
10618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10619 test "$hardcode_minus_L" != no; then
10620 # Linking always hardcodes the temporary library directory.
10621 hardcode_action=relink
10623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10624 hardcode_action=immediate
10627 # We cannot hardcode anything, or else we can only hardcode existing
10629 hardcode_action=unsupported
10631 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10632 $as_echo "$hardcode_action" >&6; }
10634 if test "$hardcode_action" = relink ||
10635 test "$inherit_rpath" = yes; then
10636 # Fast installation is not supported
10637 enable_fast_install=no
10638 elif test "$shlibpath_overrides_runpath" = yes ||
10639 test "$enable_shared" = no; then
10640 # Fast installation is not necessary
10641 enable_fast_install=needless
10649 if test "x$enable_dlopen" != xyes; then
10650 enable_dlopen=unknown
10651 enable_dlopen_self=unknown
10652 enable_dlopen_self_static=unknown
10659 lt_cv_dlopen="load_add_on"
10661 lt_cv_dlopen_self=yes
10664 mingw* | pw32* | cegcc*)
10665 lt_cv_dlopen="LoadLibrary"
10670 lt_cv_dlopen="dlopen"
10675 # if libdl is installed we need to link against it
10676 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10677 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10679 $as_echo_n "(cached) " >&6
10681 ac_check_lib_save_LIBS=$LIBS
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10709 *) ac_try_echo
=$ac_try;;
10711 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713 (eval "$ac_link") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1
>conftest.err
10717 cat conftest.err
>&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest
$ac_exeext && {
10723 test "$cross_compiling" = yes ||
10724 $as_test_x conftest
$ac_exeext
10726 ac_cv_lib_dl_dlopen
=yes
10728 $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.
$ac_ext >&5
10731 ac_cv_lib_dl_dlopen
=no
10734 rm -rf conftest.dSYM
10735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10736 conftest
$ac_exeext conftest.
$ac_ext
10737 LIBS
=$ac_check_lib_save_LIBS
10739 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10740 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10741 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10742 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10745 lt_cv_dlopen
="dyld"
10747 lt_cv_dlopen_self
=yes
10754 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10755 $as_echo_n "checking for shl_load... " >&6; }
10756 if test "${ac_cv_func_shl_load+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10759 cat >conftest.
$ac_ext <<_ACEOF
10762 cat confdefs.h
>>conftest.
$ac_ext
10763 cat >>conftest.
$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10767 #define shl_load innocuous_shl_load
10769 /* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char shl_load (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
10775 # include <limits.h>
10777 # include <assert.h>
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10789 /* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792 #if defined __stub_shl_load || defined __stub___shl_load
10799 return shl_load ();
10804 rm -f conftest.
$ac_objext conftest
$ac_exeext
10805 if { (ac_try
="$ac_link"
10806 case "(($ac_try" in
10807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811 $as_echo "$ac_try_echo") >&5
10812 (eval "$ac_link") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext && {
10822 test "$cross_compiling" = yes ||
10823 $as_test_x conftest$ac_exeext
10825 ac_cv_func_shl_load=yes
10827 $as_echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_func_shl_load=no
10833 rm -rf conftest.dSYM
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10838 $as_echo "$ac_cv_func_shl_load" >&6; }
10839 if test "x$ac_cv_func_shl_load" = x""yes; then
10840 lt_cv_dlopen="shl_load"
10842 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10843 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10845 $as_echo_n "(cached) " >&6
10847 ac_check_lib_save_LIBS=$LIBS
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10866 return shl_load ();
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10875 *) ac_try_echo
=$ac_try;;
10877 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1
>conftest.err
10883 cat conftest.err
>&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest
$ac_exeext && {
10889 test "$cross_compiling" = yes ||
10890 $as_test_x conftest
$ac_exeext
10892 ac_cv_lib_dld_shl_load
=yes
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.
$ac_ext >&5
10897 ac_cv_lib_dld_shl_load
=no
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10902 conftest
$ac_exeext conftest.
$ac_ext
10903 LIBS
=$ac_check_lib_save_LIBS
10905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10906 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10907 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10908 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10910 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10911 $as_echo_n "checking for dlopen... " >&6; }
10912 if test "${ac_cv_func_dlopen+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10915 cat >conftest.
$ac_ext <<_ACEOF
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923 #define dlopen innocuous_dlopen
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char dlopen (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10931 # include <limits.h>
10933 # include <assert.h>
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10945 /* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948 #if defined __stub_dlopen || defined __stub___dlopen
10960 rm -f conftest.
$ac_objext conftest
$ac_exeext
10961 if { (ac_try
="$ac_link"
10962 case "(($ac_try" in
10963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10981 ac_cv_func_dlopen=yes
10983 $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_cv_func_dlopen=no
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10994 $as_echo "$ac_cv_func_dlopen" >&6; }
10995 if test "x$ac_cv_func_dlopen" = x""yes; then
10996 lt_cv_dlopen="dlopen"
10998 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11001 $as_echo_n "(cached) " >&6
11003 ac_check_lib_save_LIBS=$LIBS
11005 cat >conftest.$ac_ext <<_ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11031 *) ac_try_echo
=$ac_try;;
11033 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11034 $as_echo "$ac_try_echo") >&5
11035 (eval "$ac_link") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1
>conftest.err
11039 cat conftest.err
>&5
11040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest
$ac_exeext && {
11045 test "$cross_compiling" = yes ||
11046 $as_test_x conftest
$ac_exeext
11048 ac_cv_lib_dl_dlopen
=yes
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 ac_cv_lib_dl_dlopen
=no
11056 rm -rf conftest.dSYM
11057 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11058 conftest
$ac_exeext conftest.
$ac_ext
11059 LIBS
=$ac_check_lib_save_LIBS
11061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11063 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11064 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11066 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11069 $as_echo_n "(cached) " >&6
11071 ac_check_lib_save_LIBS
=$LIBS
11072 LIBS
="-lsvld $LIBS"
11073 cat >conftest.
$ac_ext <<_ACEOF
11076 cat confdefs.h
>>conftest.
$ac_ext
11077 cat >>conftest.
$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11095 rm -f conftest.
$ac_objext conftest
$ac_exeext
11096 if { (ac_try
="$ac_link"
11097 case "(($ac_try" in
11098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_link") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest$ac_exeext && {
11113 test "$cross_compiling" = yes ||
11114 $as_test_x conftest$ac_exeext
11116 ac_cv_lib_svld_dlopen=yes
11118 $as_echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_lib_svld_dlopen=no
11124 rm -rf conftest.dSYM
11125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11130 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11131 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11134 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11135 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11136 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11137 $as_echo_n "(cached) " >&6
11139 ac_check_lib_save_LIBS=$LIBS
11141 cat >conftest.$ac_ext <<_ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11158 return dld_link ();
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11167 *) ac_try_echo
=$ac_try;;
11169 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11170 $as_echo "$ac_try_echo") >&5
11171 (eval "$ac_link") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest
$ac_exeext && {
11181 test "$cross_compiling" = yes ||
11182 $as_test_x conftest
$ac_exeext
11184 ac_cv_lib_dld_dld_link
=yes
11186 $as_echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.
$ac_ext >&5
11189 ac_cv_lib_dld_dld_link
=no
11192 rm -rf conftest.dSYM
11193 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11194 conftest
$ac_exeext conftest.
$ac_ext
11195 LIBS
=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11199 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11200 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11221 if test "x$lt_cv_dlopen" != xno
; then
11227 case $lt_cv_dlopen in
11229 save_CPPFLAGS
="$CPPFLAGS"
11230 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11232 save_LDFLAGS
="$LDFLAGS"
11233 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11236 LIBS
="$lt_cv_dlopen_libs $LIBS"
11238 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11239 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11240 if test "${lt_cv_dlopen_self+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self
=cross
11246 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11247 lt_status
=$lt_dlunknown
11248 cat > conftest.
$ac_ext <<_LT_EOF
11249 #line 11249 "configure"
11250 #include "confdefs.h"
11259 # define LT_DLGLOBAL RTLD_GLOBAL
11262 # define LT_DLGLOBAL DL_GLOBAL
11264 # define LT_DLGLOBAL 0
11268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270 #ifndef LT_DLLAZY_OR_NOW
11272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11275 # define LT_DLLAZY_OR_NOW DL_LAZY
11278 # define LT_DLLAZY_OR_NOW RTLD_NOW
11281 # define LT_DLLAZY_OR_NOW DL_NOW
11283 # define LT_DLLAZY_OR_NOW 0
11290 void fnord() { int i=42;}
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11313 (.
/conftest
; exit; ) >&5 2>/dev
/null
11315 case x
$lt_status in
11316 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11317 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11318 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11321 # compilation failed
11322 lt_cv_dlopen_self
=no
11329 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11330 $as_echo "$lt_cv_dlopen_self" >&6; }
11332 if test "x$lt_cv_dlopen_self" = xyes
; then
11333 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11334 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11335 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11336 if test "${lt_cv_dlopen_self_static+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11339 if test "$cross_compiling" = yes; then :
11340 lt_cv_dlopen_self_static
=cross
11342 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11343 lt_status
=$lt_dlunknown
11344 cat > conftest.
$ac_ext <<_LT_EOF
11345 #line 11345 "configure"
11346 #include "confdefs.h"
11355 # define LT_DLGLOBAL RTLD_GLOBAL
11358 # define LT_DLGLOBAL DL_GLOBAL
11360 # define LT_DLGLOBAL 0
11364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11365 find out it does not work in some platform. */
11366 #ifndef LT_DLLAZY_OR_NOW
11368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11371 # define LT_DLLAZY_OR_NOW DL_LAZY
11374 # define LT_DLLAZY_OR_NOW RTLD_NOW
11377 # define LT_DLLAZY_OR_NOW DL_NOW
11379 # define LT_DLLAZY_OR_NOW 0
11386 void fnord() { int i=42;}
11389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11390 int status = $lt_dlunknown;
11394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11396 /* dlclose (self); */
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11409 (.
/conftest
; exit; ) >&5 2>/dev
/null
11411 case x
$lt_status in
11412 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11413 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11414 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11417 # compilation failed
11418 lt_cv_dlopen_self_static
=no
11425 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11429 CPPFLAGS
="$save_CPPFLAGS"
11430 LDFLAGS
="$save_LDFLAGS"
11435 case $lt_cv_dlopen_self in
11436 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11437 *) enable_dlopen_self
=unknown
;;
11440 case $lt_cv_dlopen_self_static in
11441 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11442 *) enable_dlopen_self_static
=unknown
;;
11464 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11467 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11468 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11469 { $as_echo "$as_me:$LINENO: result: yes" >&5
11470 $as_echo "yes" >&6; }
11472 # FIXME - insert some real tests, host_os isn't really good enough
11475 if test -n "$STRIP" ; then
11476 striplib
="$STRIP -x"
11477 old_striplib
="$STRIP -S"
11478 { $as_echo "$as_me:$LINENO: result: yes" >&5
11479 $as_echo "yes" >&6; }
11481 { $as_echo "$as_me:$LINENO: result: no" >&5
11482 $as_echo "no" >&6; }
11486 { $as_echo "$as_me:$LINENO: result: no" >&5
11487 $as_echo "no" >&6; }
11503 # Report which library types will actually be built
11504 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11506 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11507 $as_echo "$can_build_shared" >&6; }
11509 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11510 $as_echo_n "checking whether to build shared libraries... " >&6; }
11511 test "$can_build_shared" = "no" && enable_shared
=no
11513 # On AIX, shared libraries and static libraries use the same namespace, and
11514 # are all built from PIC.
11517 test "$enable_shared" = yes && enable_static
=no
11518 if test -n "$RANLIB"; then
11519 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11520 postinstall_cmds
='$RANLIB $lib'
11525 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11526 test "$enable_shared" = yes && enable_static
=no
11530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11531 $as_echo "$enable_shared" >&6; }
11533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11534 $as_echo_n "checking whether to build static libraries... " >&6; }
11535 # Make sure either enable_shared or enable_static is yes.
11536 test "$enable_shared" = yes || enable_static
=yes
11537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11538 $as_echo "$enable_static" >&6; }
11545 ac_cpp
='$CPP $CPPFLAGS'
11546 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11564 ac_config_commands
="$ac_config_commands libtool"
11569 # Only expand once:
11572 # By default we simply use the C compiler to build assembly code.
11574 test "${CCAS+set}" = set || CCAS
=$CC
11575 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11579 depcc
="$CCAS" am_compiler_list
=
11581 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11582 $as_echo_n "checking dependency style of $depcc... " >&6; }
11583 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11584 $as_echo_n "(cached) " >&6
11586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11587 # We make a subdir and do the tests there. Otherwise we can end up
11588 # making bogus files that we don't know about and never remove. For
11589 # instance it was reported that on HP-UX the gcc test will end up
11590 # making a dummy file named `D' -- because `-MD' means `put the output
11593 # Copy depcomp to subdir because otherwise we won't find it if we're
11594 # using a relative directory.
11595 cp "$am_depcomp" conftest.dir
11597 # We will build objects and dependencies in a subdirectory because
11598 # it helps to detect inapplicable dependency modes. For instance
11599 # both Tru64's cc and ICC support -MD to output dependencies as a
11600 # side effect of compilation, but ICC will put the dependencies in
11601 # the current directory while Tru64 will put them in the object
11605 am_cv_CCAS_dependencies_compiler_type
=none
11606 if test "$am_compiler_list" = ""; then
11607 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11609 am__universal
=false
11612 for depmode
in $am_compiler_list; do
11613 # Setup a source with many dependencies, because some compilers
11614 # like to wrap large dependency lists on column 80 (with \), and
11615 # we should not choose a depcomp mode which is confused by this.
11617 # We need to recreate these files for each test, as the compiler may
11618 # overwrite some of them when testing with obscure command lines.
11619 # This happens at least with the AIX C compiler.
11621 for i
in 1 2 3 4 5 6; do
11622 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11624 # Solaris 8's {/usr,}/bin/sh.
11625 touch sub
/conftst
$i.h
11627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11630 # mode. It turns out that the SunPro C++ compiler does not properly
11631 # handle `-M -o', and we need to detect this. Also, some Intel
11632 # versions had trouble with output in subdirs
11633 am__obj
=sub
/conftest.
${OBJEXT-o}
11634 am__minus_obj
="-o $am__obj"
11637 # This depmode causes a compiler race in universal mode.
11638 test "$am__universal" = false ||
continue
11641 # after this tag, mechanisms are not by side-effect, so they'll
11642 # only be used when explicitly requested
11643 if test "x$enable_dependency_tracking" = xyes
; then
11649 msvisualcpp | msvcmsys
)
11650 # This compiler won't grok `-c -o', but also, the minuso test has
11651 # not run yet. These depmodes are late enough in the game, and
11652 # so weak that their functioning should not be impacted.
11653 am__obj
=conftest.
${OBJEXT-o}
11658 if depmode
=$depmode \
11659 source=sub
/conftest.c object
=$am__obj \
11660 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11661 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11662 >/dev
/null
2>conftest.err
&&
11663 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11664 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11665 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11666 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11667 # icc doesn't choke on unknown options, it will just issue warnings
11668 # or remarks (even with -Werror). So we grep stderr for any message
11669 # that says an option was ignored or not supported.
11670 # When given -MP, icc 7.0 and 7.1 complain thusly:
11671 # icc: Command line warning: ignoring option '-M'; no argument required
11672 # The diagnosis changed in icc 8.0:
11673 # icc: Command line remark: option '-MP' not supported
11674 if (grep 'ignoring option' conftest.err ||
11675 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11676 am_cv_CCAS_dependencies_compiler_type
=$depmode
11683 rm -rf conftest.dir
11685 am_cv_CCAS_dependencies_compiler_type
=none
11689 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11690 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11691 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11694 test "x$enable_dependency_tracking" != xno \
11695 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11696 am__fastdepCCAS_TRUE
=
11697 am__fastdepCCAS_FALSE
='#'
11699 am__fastdepCCAS_TRUE
='#'
11700 am__fastdepCCAS_FALSE
=
11704 if test "x$CC" != xcc
; then
11705 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11706 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11708 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11709 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11711 set dummy
$CC; ac_cc
=`$as_echo "$2" |
11712 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11713 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11714 $as_echo_n "(cached) " >&6
11716 cat >conftest.
$ac_ext <<_ACEOF
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11731 # Make sure it works both with $CC and with simple cc.
11732 # We do the test twice because some compilers refuse to overwrite an
11733 # existing .o file with -o, though they will create one.
11734 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11736 if { (case "(($ac_try" in
11737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742 (eval "$ac_try") 2>&5
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11748 *) ac_try_echo
=$ac_try;;
11750 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11751 $as_echo "$ac_try_echo") >&5
11752 (eval "$ac_try") 2>&5
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); };
11757 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
11758 if test "x$CC" != xcc
; then
11759 # Test first that cc exists at all.
11760 if { ac_try
='cc -c conftest.$ac_ext >&5'
11761 { (case "(($ac_try" in
11762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766 $as_echo "$ac_try_echo") >&5
11767 (eval "$ac_try") 2>&5
11769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11773 if { (case "(($ac_try" in
11774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11775 *) ac_try_echo
=$ac_try;;
11777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_try") 2>&5
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
11784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11788 $as_echo "$ac_try_echo") >&5
11789 (eval "$ac_try") 2>&5
11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); };
11797 # cc exists but doesn't like -o.
11798 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11805 rm -f core conftest*
11808 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11809 { $as_echo "$as_me:$LINENO: result: yes" >&5
11810 $as_echo "yes" >&6; }
11812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813 $as_echo "no" >&6; }
11815 cat >>confdefs.h <<\_ACEOF
11816 #define NO_MINUS_C_MINUS_O 1
11821 # FIXME: we rely on the cache variable name because
11822 # there is no other way.
11824 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11825 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11826 if test "$am_t" != yes; then
11827 # Losing compiler, so override with the script.
11828 # FIXME: It is wrong to rewrite CC.
11829 # But if we don't then we get into trouble of one sort or another.
11830 # A longer-term fix would be to have automake use am__CC in this case,
11831 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11832 CC="$am_aux_dir/compile $CC"
11839 # allow to override gcov location
11841 # Check whether --with-gcov was given.
11842 if test "${with_gcov+set}" = set; then
11843 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
11845 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
11849 { $as_echo "$as_me:$LINENO: checking whether to build with code coverage support" >&5
11850 $as_echo_n "checking whether to build with code coverage support... " >&6; }
11851 # Check whether --enable-code-coverage was given.
11852 if test "${enable_code_coverage+set}" = set; then
11853 enableval=$enable_code_coverage;
11855 enable_code_coverage=no
11859 if test x$enable_code_coverage = xyes; then
11860 CODE_COVERAGE_ENABLED_TRUE=
11861 CODE_COVERAGE_ENABLED_FALSE='#'
11863 CODE_COVERAGE_ENABLED_TRUE='#'
11864 CODE_COVERAGE_ENABLED_FALSE=
11867 CODE_COVERAGE_ENABLED=$enable_code_coverage
11869 { $as_echo "$as_me:$LINENO: result: $enable_code_coverage" >&5
11870 $as_echo "$enable_code_coverage" >&6; }
11872 if test "$enable_code_coverage" = "yes" ; then
11875 if test -n "$ac_tool_prefix"; then
11876 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11877 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if test "${ac_cv_prog_GCOV+set}" = set; then
11881 $as_echo_n "(cached) " >&6
11883 if test -n "$GCOV"; then
11884 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 GCOV=$ac_cv_prog_GCOV
11904 if test -n "$GCOV"; then
11905 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
11906 $as_echo "$GCOV" >&6; }
11908 { $as_echo "$as_me:$LINENO: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test -z "$ac_cv_prog_GCOV"; then
11916 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11917 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if test "${ac_cv_prog_ac_ct_GCOV+set}" = set; then
11921 $as_echo_n "(cached) " >&6
11923 if test -n "$ac_ct_GCOV"; then
11924 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
11944 if test -n "$ac_ct_GCOV"; then
11945 { $as_echo "$as_me:$LINENO: result: $ac_ct_GCOV" >&5
11946 $as_echo "$ac_ct_GCOV" >&6; }
11948 { $as_echo "$as_me:$LINENO: result: no" >&5
11949 $as_echo "no" >&6; }
11952 if test "x$ac_ct_GCOV" = x; then
11955 case $cross_compiling:$ac_tool_warned in
11957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11959 ac_tool_warned=yes ;;
11964 GCOV="$ac_cv_prog_GCOV"
11967 if test "X$GCOV" = "X:"; then
11968 { { $as_echo "$as_me:$LINENO: error: gcov is needed to do coverage" >&5
11969 $as_echo "$as_me: error: gcov is needed to do coverage" >&2;}
11970 { (exit 1); exit 1; }; }
11975 if test "$GCC" = "no" ; then
11977 { { $as_echo "$as_me:$LINENO: error: not compiling with gcc, which is required for gcov code coverage" >&5
11978 $as_echo "$as_me: error: not compiling with gcc, which is required for gcov code coverage" >&2;}
11979 { (exit 1); exit 1; }; }
11984 # Extract the first word of "lcov", so it can be a program name with args.
11985 set dummy lcov; ac_word=$2
11986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_prog_LCOV+set}" = set; then
11989 $as_echo_n "(cached) " >&6
11991 if test -n "$LCOV"; then
11992 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_prog_LCOV="lcov"
12002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 LCOV=$ac_cv_prog_LCOV
12012 if test -n "$LCOV"; then
12013 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12014 $as_echo "$LCOV" >&6; }
12016 { $as_echo "$as_me:$LINENO: result: no" >&5
12017 $as_echo "no" >&6; }
12021 # Extract the first word of "genhtml", so it can be a program name with args.
12022 set dummy genhtml; ac_word=$2
12023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if test "${ac_cv_prog_GENHTML+set}" = set; then
12026 $as_echo_n "(cached) " >&6
12028 if test -n "$GENHTML"; then
12029 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_prog_GENHTML="genhtml"
12039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 GENHTML=$ac_cv_prog_GENHTML
12049 if test -n "$GENHTML"; then
12050 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12051 $as_echo "$GENHTML" >&6; }
12053 { $as_echo "$as_me:$LINENO: result: no" >&5
12054 $as_echo "no" >&6; }
12059 if test -z "$LCOV" ; then
12061 { { $as_echo "$as_me:$LINENO: error: To enable code coverage reporting you must have lcov installed" >&5
12062 $as_echo "$as_me: error: To enable code coverage reporting you must have lcov installed" >&2;}
12063 { (exit 1); exit 1; }; }
12068 if test -z "$GENHTML" ; then
12070 { { $as_echo "$as_me:$LINENO: error: Could not find genhtml from the lcov package" >&5
12071 $as_echo "$as_me: error: Could not find genhtml from the lcov package" >&2;}
12072 { (exit 1); exit 1; }; }
12077 CODE_COVERAGE_CPPFLAGS=""
12078 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12079 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12080 CODE_COVERAGE_LIBS="-lgcov"
12081 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
12089 CODE_COVERAGE_RULES_CHECK='
12090 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
12091 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
12093 CODE_COVERAGE_RULES_CAPTURE='
12094 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
12095 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
12096 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
12097 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
12098 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
12100 CODE_COVERAGE_RULES_CLEAN='
12101 clean: code-coverage-clean
12102 distclean: code-coverage-clean
12103 code-coverage-clean:
12104 -$(LCOV) --directory $(top_builddir) -z
12105 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12106 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
12111 CODE_COVERAGE_RULES_CHECK='
12112 @echo "Need to reconfigure with --enable-code-coverage"
12114 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
12115 CODE_COVERAGE_RULES_CLEAN=''
12120 CODE_COVERAGE_RULES='
12124 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
12125 # Multiple directories may be specified, separated by whitespace.
12126 # (Default: $(top_builddir))
12127 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
12128 # by lcov for code coverage. (Default:
12129 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
12130 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
12131 # reports to be created. (Default:
12132 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
12133 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
12134 # set to 0 to disable it and leave empty to stay with the default.
12136 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
12137 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12138 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
12139 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12140 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
12141 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
12142 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12143 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
12144 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12145 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
12146 # lcov instance. (Default: empty)
12147 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
12148 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12149 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
12150 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12151 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
12152 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12153 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
12155 # The generated report will be titled using the $(PACKAGE_NAME) and
12156 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
12157 # use the git-version-gen script, available online.
12159 # Optional variables
12160 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
12161 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
12162 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
12163 CODE_COVERAGE_BRANCH_COVERAGE ?=
12164 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12165 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12166 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12167 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
12168 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12169 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12170 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
12171 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12172 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
12173 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12174 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12175 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12176 CODE_COVERAGE_IGNORE_PATTERN ?=
12179 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12181 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
12182 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
12183 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
12184 $(CODE_COVERAGE_OUTPUT_FILE);
12185 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
12186 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
12187 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
12188 $(CODE_COVERAGE_IGNORE_PATTERN);
12189 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
12190 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
12191 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
12192 code_coverage_quiet = $(code_coverage_quiet_$(V))
12193 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
12194 code_coverage_quiet_0 = --quiet
12196 # sanitizes the test-name: replaces with underscores: dashes and dots
12197 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
12199 # Use recursive makes in order to ignore errors during check
12200 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
12202 # Capture code coverage data
12203 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
12205 # Hook rule executed before code-coverage-capture, overridable by the user
12206 code-coverage-capture-hook:
12208 '"$CODE_COVERAGE_RULES_CLEAN"'
12210 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
12211 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
12213 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
12221 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
12222 $as_echo_n "checking zfs author... " >&6; }
12223 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
12224 $as_echo "$ZFS_META_AUTHOR" >&6; }
12226 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
12227 $as_echo_n "checking zfs license... " >&6; }
12228 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
12229 $as_echo "$ZFS_META_LICENSE" >&6; }
12233 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
12234 $as_echo_n "checking linux distribution... " >&6; }
12235 if test -f /etc/toss-release ; then
12237 elif test -f /etc/fedora-release ; then
12239 elif test -f /etc/redhat-release ; then
12241 elif test -f /etc/gentoo-release ; then
12243 elif test -f /etc/arch-release ; then
12245 elif test -f /etc/SuSE-release ; then
12247 elif test -f /etc/slackware-version ; then
12249 elif test -f /etc/lunar.release ; then
12251 elif test -f /etc/lsb-release ; then
12253 elif test -f /etc/debian_version ; then
12255 elif test -f /etc/alpine-release ; then
12260 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
12261 $as_echo "$VENDOR" >&6; }
12264 { $as_echo "$as_me:$LINENO: checking default package type" >&5
12265 $as_echo_n "checking default package type... " >&6; }
12267 toss) DEFAULT_PACKAGE=rpm ;;
12268 redhat) DEFAULT_PACKAGE=rpm ;;
12269 fedora) DEFAULT_PACKAGE=rpm ;;
12270 gentoo) DEFAULT_PACKAGE=tgz ;;
12271 alpine) DEFAULT_PACKAGE=tgz ;;
12272 arch) DEFAULT_PACKAGE=tgz ;;
12273 sles) DEFAULT_PACKAGE=rpm ;;
12274 slackware) DEFAULT_PACKAGE=tgz ;;
12275 lunar) DEFAULT_PACKAGE=tgz ;;
12276 ubuntu) DEFAULT_PACKAGE=deb ;;
12277 debian) DEFAULT_PACKAGE=deb ;;
12278 *) DEFAULT_PACKAGE=rpm ;;
12280 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
12281 $as_echo "$DEFAULT_PACKAGE" >&6; }
12284 DEFAULT_INIT_DIR=$sysconfdir/init.d
12285 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
12286 $as_echo_n "checking default init directory... " >&6; }
12287 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
12288 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12291 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
12292 $as_echo_n "checking default init script type... " >&6; }
12294 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12295 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12296 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12297 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12298 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
12299 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12300 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12301 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12302 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12303 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12304 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12305 *) DEFAULT_INIT_SCRIPT=lsb ;;
12307 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
12308 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12311 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
12312 $as_echo_n "checking default init config direectory... " >&6; }
12314 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12315 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12316 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12317 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12318 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12319 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12320 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12321 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12322 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12324 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
12325 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12328 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
12329 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12330 if test -d /usr/share/initramfs-tools ; then
12331 DEFINE_INITRAMFS='--define "_initramfs 1"'
12332 { $as_echo "$as_me:$LINENO: result: yes" >&5
12333 $as_echo "yes" >&6; }
12335 DEFINE_INITRAMFS=''
12336 { $as_echo "$as_me:$LINENO: result: no" >&5
12337 $as_echo "no" >&6; }
12345 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
12346 $as_echo_n "checking whether $RPM is available... " >&6; }
12347 if tmp=$($RPM --version 2>/dev/null); then
12349 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12351 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
12352 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12357 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
12358 $as_echo "$HAVE_RPM" >&6; }
12363 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
12364 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12365 if tmp=$($RPMBUILD --version 2>/dev/null); then
12367 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12369 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12370 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12375 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
12376 $as_echo "$HAVE_RPMBUILD" >&6; }
12381 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
12384 RPM_DEFINE_UTIL=' --define "_initconfdir $(DEFAULT_INITCONF_DIR)"'
12386 if test -n "$dracutdir" ; then
12388 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)"'
12392 if test -n "$udevdir" ; then
12394 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevdir)"'
12398 if test -n "$udevruledir" ; then
12400 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevruledir)"'
12404 RPM_DEFINE_UTIL+=' $(DEFINE_INITRAMFS)'
12405 RPM_DEFINE_UTIL+=' $(DEFINE_SYSTEMD)'
12407 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12408 RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
12412 if test "$DEFAULT_PACKAGE" = "deb"; then
12414 MULTIARCH_LIBDIR="lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
12415 RPM_DEFINE_UTIL+=' --define "_lib $(MULTIARCH_LIBDIR)"'
12421 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12426 RPM_SPEC_DIR="rpm/generic"
12428 # Check whether --with-spec was given.
12429 if test "${with_spec+set}" = set; then
12430 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12434 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
12435 $as_echo_n "checking whether spec files are available... " >&6; }
12436 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12437 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12459 DPKGBUILD=dpkg-buildpackage
12461 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
12462 $as_echo_n "checking whether $DPKG is available... " >&6; }
12463 if tmp=$($DPKG --version 2>/dev/null); then
12465 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12467 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12468 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12473 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
12474 $as_echo "$HAVE_DPKG" >&6; }
12479 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
12480 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12481 if tmp=$($DPKGBUILD --version 2>/dev/null); then
12483 DPKGBUILD_VERSION=$(echo $tmp | \
12484 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12486 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12487 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12492 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
12493 $as_echo "$HAVE_DPKGBUILD" >&6; }
12509 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
12510 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12511 if tmp=$($ALIEN --version 2>/dev/null); then
12513 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12515 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12516 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12521 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
12522 $as_echo "$HAVE_ALIEN" >&6; }
12535 # Check whether --with-config was given.
12536 if test "${with_config+set}" = set; then
12537 withval=$with_config; ZFS_CONFIG="$withval"
12540 # Check whether --enable-linux-builtin was given.
12541 if test "${enable_linux_builtin+set}" = set; then
12542 enableval=$enable_linux_builtin;
12544 enable_linux_builtin=no
12548 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
12549 $as_echo_n "checking zfs config... " >&6; }
12550 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
12551 $as_echo "$ZFS_CONFIG" >&6; };
12556 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
12557 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12559 saved_flags="$CFLAGS"
12560 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12581 *) ac_try_echo
=$ac_try;;
12583 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12587 grep -v '^ *+' conftest.er1
>conftest.err
12589 cat conftest.err
>&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.
$ac_objext; then
12596 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12597 { $as_echo "$as_me:$LINENO: result: yes" >&5
12598 $as_echo "yes" >&6; }
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12605 NO_UNUSED_BUT_SET_VARIABLE
=
12606 { $as_echo "$as_me:$LINENO: result: no" >&5
12607 $as_echo "no" >&6; }
12611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12613 CFLAGS
="$saved_flags"
12617 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
12618 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12620 saved_flags
="$CFLAGS"
12621 CFLAGS
="$CFLAGS -Wbool-compare"
12623 cat >conftest.
$ac_ext <<_ACEOF
12626 cat confdefs.h
>>conftest.
$ac_ext
12627 cat >>conftest.
$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12638 rm -f conftest.
$ac_objext
12639 if { (ac_try
="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645 $as_echo "$ac_try_echo") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12657 NO_BOOL_COMPARE=-Wno-bool-compare
12658 { $as_echo "$as_me:$LINENO: result: yes" >&5
12659 $as_echo "yes" >&6; }
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 CFLAGS="$saved_flags"
12678 case "$host_cpu" in
12679 x86_64 | x86 | i686)
12681 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12682 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12693 __asm__ __volatile__("xorps %xmm0, %xmm1");
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12701 *) ac_try_echo
=$ac_try;;
12703 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705 (eval "$ac_link") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1
>conftest.err
12709 cat conftest.err
>&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest
$ac_exeext && {
12715 test "$cross_compiling" = yes ||
12716 $as_test_x conftest
$ac_exeext
12720 cat >>confdefs.h
<<\_ACEOF
12724 { $as_echo "$as_me:$LINENO: result: yes" >&5
12725 $as_echo "yes" >&6; }
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.
$ac_ext >&5
12732 { $as_echo "$as_me:$LINENO: result: no" >&5
12733 $as_echo "no" >&6; }
12737 rm -rf conftest.dSYM
12738 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12739 conftest
$ac_exeext conftest.
$ac_ext
12742 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12743 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12754 __asm__ __volatile__("pxor %xmm0, %xmm1");
12758 rm -f conftest.
$ac_objext conftest
$ac_exeext
12759 if { (ac_try
="$ac_link"
12760 case "(($ac_try" in
12761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765 $as_echo "$ac_try_echo") >&5
12766 (eval "$ac_link") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest$ac_exeext && {
12776 test "$cross_compiling" = yes ||
12777 $as_test_x conftest$ac_exeext
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_SSE2 1
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786 $as_echo "yes" >&6; }
12789 $as_echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794 $as_echo "no" >&6; }
12798 rm -rf conftest.dSYM
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12803 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12804 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12816 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12824 *) ac_try_echo
=$ac_try;;
12826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12830 grep -v '^ *+' conftest.er1
>conftest.err
12832 cat conftest.err
>&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest
$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest
$ac_exeext
12843 cat >>confdefs.h
<<\_ACEOF
12844 #define HAVE_SSE3 1
12847 { $as_echo "$as_me:$LINENO: result: yes" >&5
12848 $as_echo "yes" >&6; }
12851 $as_echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.
$ac_ext >&5
12855 { $as_echo "$as_me:$LINENO: result: no" >&5
12856 $as_echo "no" >&6; }
12860 rm -rf conftest.dSYM
12861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12862 conftest
$ac_exeext conftest.
$ac_ext
12865 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12866 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12868 cat >conftest.
$ac_ext <<_ACEOF
12871 cat confdefs.h
>>conftest.
$ac_ext
12872 cat >>conftest.
$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12877 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12881 rm -f conftest.
$ac_objext conftest
$ac_exeext
12882 if { (ac_try
="$ac_link"
12883 case "(($ac_try" in
12884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888 $as_echo "$ac_try_echo") >&5
12889 (eval "$ac_link") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && {
12896 test -z "$ac_c_werror_flag" ||
12897 test ! -s conftest.err
12898 } && test -s conftest$ac_exeext && {
12899 test "$cross_compiling" = yes ||
12900 $as_test_x conftest$ac_exeext
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_SSSE3 1
12908 { $as_echo "$as_me:$LINENO: result: yes" >&5
12909 $as_echo "yes" >&6; }
12912 $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12916 { $as_echo "$as_me:$LINENO: result: no" >&5
12917 $as_echo "no" >&6; }
12921 rm -rf conftest.dSYM
12922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
12926 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.1" >&5
12927 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12938 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12946 *) ac_try_echo
=$ac_try;;
12948 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_link") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1
>conftest.err
12954 cat conftest.err
>&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest
$ac_exeext && {
12960 test "$cross_compiling" = yes ||
12961 $as_test_x conftest
$ac_exeext
12965 cat >>confdefs.h
<<\_ACEOF
12966 #define HAVE_SSE4_1 1
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970 $as_echo "yes" >&6; }
12973 $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.
$ac_ext >&5
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978 $as_echo "no" >&6; }
12982 rm -rf conftest.dSYM
12983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12984 conftest
$ac_exeext conftest.
$ac_ext
12987 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.2" >&5
12988 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
12990 cat >conftest.
$ac_ext <<_ACEOF
12993 cat confdefs.h
>>conftest.
$ac_ext
12994 cat >>conftest.
$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12999 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13003 rm -f conftest.
$ac_objext conftest
$ac_exeext
13004 if { (ac_try
="$ac_link"
13005 case "(($ac_try" in
13006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_link") 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest$ac_exeext && {
13021 test "$cross_compiling" = yes ||
13022 $as_test_x conftest$ac_exeext
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_SSE4_2 1
13030 { $as_echo "$as_me:$LINENO: result: yes" >&5
13031 $as_echo "yes" >&6; }
13034 $as_echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13043 rm -rf conftest.dSYM
13044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13045 conftest$ac_exeext conftest.$ac_ext
13048 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
13049 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13061 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13069 *) ac_try_echo
=$ac_try;;
13071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13072 $as_echo "$ac_try_echo") >&5
13073 (eval "$ac_link") 2>conftest.er1
13075 grep -v '^ *+' conftest.er1
>conftest.err
13077 cat conftest.err
>&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } && {
13080 test -z "$ac_c_werror_flag" ||
13081 test ! -s conftest.err
13082 } && test -s conftest
$ac_exeext && {
13083 test "$cross_compiling" = yes ||
13084 $as_test_x conftest
$ac_exeext
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088 $as_echo "yes" >&6; }
13090 cat >>confdefs.h
<<\_ACEOF
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.
$ac_ext >&5
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101 $as_echo "no" >&6; }
13105 rm -rf conftest.dSYM
13106 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13107 conftest
$ac_exeext conftest.
$ac_ext
13110 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
13111 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13113 cat >conftest.
$ac_ext <<_ACEOF
13116 cat confdefs.h
>>conftest.
$ac_ext
13117 cat >>conftest.
$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13123 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13127 rm -f conftest.
$ac_objext conftest
$ac_exeext
13128 if { (ac_try
="$ac_link"
13129 case "(($ac_try" in
13130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134 $as_echo "$ac_try_echo") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest$ac_exeext && {
13145 test "$cross_compiling" = yes ||
13146 $as_test_x conftest$ac_exeext
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150 $as_echo "yes" >&6; }
13152 cat >>confdefs.h <<\_ACEOF
13153 #define HAVE_AVX2 1
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13162 { $as_echo "$as_me:$LINENO: result: no" >&5
13163 $as_echo "no" >&6; }
13167 rm -rf conftest.dSYM
13168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13169 conftest$ac_exeext conftest.$ac_ext
13172 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
13173 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13185 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (ac_try="$ac_link"
13191 case "(($ac_try" in
13192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13193 *) ac_try_echo
=$ac_try;;
13195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13196 $as_echo "$ac_try_echo") >&5
13197 (eval "$ac_link") 2>conftest.er1
13199 grep -v '^ *+' conftest.er1
>conftest.err
13201 cat conftest.err
>&5
13202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && {
13204 test -z "$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 } && test -s conftest
$ac_exeext && {
13207 test "$cross_compiling" = yes ||
13208 $as_test_x conftest
$ac_exeext
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212 $as_echo "yes" >&6; }
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define HAVE_AVX512F 1
13220 $as_echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.
$ac_ext >&5
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225 $as_echo "no" >&6; }
13229 rm -rf conftest.dSYM
13230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13231 conftest
$ac_exeext conftest.
$ac_ext
13234 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
13235 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13237 cat >conftest.
$ac_ext <<_ACEOF
13240 cat confdefs.h
>>conftest.
$ac_ext
13241 cat >>conftest.
$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13247 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13251 rm -f conftest.
$ac_objext conftest
$ac_exeext
13252 if { (ac_try
="$ac_link"
13253 case "(($ac_try" in
13254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258 $as_echo "$ac_try_echo") >&5
13259 (eval "$ac_link") 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } && {
13266 test -z "$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13268 } && test -s conftest$ac_exeext && {
13269 test "$cross_compiling" = yes ||
13270 $as_test_x conftest$ac_exeext
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_AVX512CD 1
13282 $as_echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13286 { $as_echo "$as_me:$LINENO: result: no" >&5
13287 $as_echo "no" >&6; }
13291 rm -rf conftest.dSYM
13292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
13296 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
13297 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13309 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13317 *) ac_try_echo
=$ac_try;;
13319 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13320 $as_echo "$ac_try_echo") >&5
13321 (eval "$ac_link") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1
>conftest.err
13325 cat conftest.err
>&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && {
13328 test -z "$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13330 } && test -s conftest
$ac_exeext && {
13331 test "$cross_compiling" = yes ||
13332 $as_test_x conftest
$ac_exeext
13335 { $as_echo "$as_me:$LINENO: result: yes" >&5
13336 $as_echo "yes" >&6; }
13338 cat >>confdefs.h
<<\_ACEOF
13339 #define HAVE_AVX512DQ 1
13344 $as_echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.
$ac_ext >&5
13348 { $as_echo "$as_me:$LINENO: result: no" >&5
13349 $as_echo "no" >&6; }
13353 rm -rf conftest.dSYM
13354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13355 conftest
$ac_exeext conftest.
$ac_ext
13358 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
13359 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13361 cat >conftest.
$ac_ext <<_ACEOF
13364 cat confdefs.h
>>conftest.
$ac_ext
13365 cat >>conftest.
$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13371 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13375 rm -f conftest.
$ac_objext conftest
$ac_exeext
13376 if { (ac_try
="$ac_link"
13377 case "(($ac_try" in
13378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_link") 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } && {
13390 test -z "$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 } && test -s conftest$ac_exeext && {
13393 test "$cross_compiling" = yes ||
13394 $as_test_x conftest$ac_exeext
13397 { $as_echo "$as_me:$LINENO: result: yes" >&5
13398 $as_echo "yes" >&6; }
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_AVX512BW 1
13406 $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13410 { $as_echo "$as_me:$LINENO: result: no" >&5
13411 $as_echo "no" >&6; }
13415 rm -rf conftest.dSYM
13416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext conftest.$ac_ext
13420 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
13421 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13433 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13441 *) ac_try_echo
=$ac_try;;
13443 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13444 $as_echo "$ac_try_echo") >&5
13445 (eval "$ac_link") 2>conftest.er1
13447 grep -v '^ *+' conftest.er1
>conftest.err
13449 cat conftest.err
>&5
13450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest
$ac_exeext && {
13455 test "$cross_compiling" = yes ||
13456 $as_test_x conftest
$ac_exeext
13459 { $as_echo "$as_me:$LINENO: result: yes" >&5
13460 $as_echo "yes" >&6; }
13462 cat >>confdefs.h
<<\_ACEOF
13463 #define HAVE_AVX512IFMA 1
13468 $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.
$ac_ext >&5
13472 { $as_echo "$as_me:$LINENO: result: no" >&5
13473 $as_echo "no" >&6; }
13477 rm -rf conftest.dSYM
13478 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13479 conftest
$ac_exeext conftest.
$ac_ext
13482 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13483 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13485 cat >conftest.
$ac_ext <<_ACEOF
13488 cat confdefs.h
>>conftest.
$ac_ext
13489 cat >>conftest.
$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13495 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13499 rm -f conftest.
$ac_objext conftest
$ac_exeext
13500 if { (ac_try
="$ac_link"
13501 case "(($ac_try" in
13502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_link") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext && {
13517 test "$cross_compiling" = yes ||
13518 $as_test_x conftest$ac_exeext
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522 $as_echo "yes" >&6; }
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_AVX512VBMI 1
13530 $as_echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535 $as_echo "no" >&6; }
13539 rm -rf conftest.dSYM
13540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13541 conftest$ac_exeext conftest.$ac_ext
13544 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13545 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13557 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13565 *) ac_try_echo
=$ac_try;;
13567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13571 grep -v '^ *+' conftest.er1
>conftest.err
13573 cat conftest.err
>&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest
$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest
$ac_exeext
13583 { $as_echo "$as_me:$LINENO: result: yes" >&5
13584 $as_echo "yes" >&6; }
13586 cat >>confdefs.h
<<\_ACEOF
13587 #define HAVE_AVX512PF 1
13592 $as_echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.
$ac_ext >&5
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597 $as_echo "no" >&6; }
13601 rm -rf conftest.dSYM
13602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13603 conftest
$ac_exeext conftest.
$ac_ext
13606 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13607 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13609 cat >conftest.
$ac_ext <<_ACEOF
13612 cat confdefs.h
>>conftest.
$ac_ext
13613 cat >>conftest.
$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13619 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13623 rm -f conftest.
$ac_objext conftest
$ac_exeext
13624 if { (ac_try
="$ac_link"
13625 case "(($ac_try" in
13626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631 (eval "$ac_link") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext && {
13641 test "$cross_compiling" = yes ||
13642 $as_test_x conftest$ac_exeext
13645 { $as_echo "$as_me:$LINENO: result: yes" >&5
13646 $as_echo "yes" >&6; }
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_AVX512ER 1
13654 $as_echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659 $as_echo "no" >&6; }
13663 rm -rf conftest.dSYM
13664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665 conftest$ac_exeext conftest.$ac_ext
13668 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VL" >&5
13669 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13681 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13689 *) ac_try_echo
=$ac_try;;
13691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13692 $as_echo "$ac_try_echo") >&5
13693 (eval "$ac_link") 2>conftest.er1
13695 grep -v '^ *+' conftest.er1
>conftest.err
13697 cat conftest.err
>&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest
$ac_exeext && {
13703 test "$cross_compiling" = yes ||
13704 $as_test_x conftest
$ac_exeext
13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
13708 $as_echo "yes" >&6; }
13710 cat >>confdefs.h
<<\_ACEOF
13711 #define HAVE_AVX512VL 1
13716 $as_echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.
$ac_ext >&5
13720 { $as_echo "$as_me:$LINENO: result: no" >&5
13721 $as_echo "no" >&6; }
13725 rm -rf conftest.dSYM
13726 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13727 conftest
$ac_exeext conftest.
$ac_ext
13733 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13734 $as_echo_n "checking for target asm dir... " >&6; }
13735 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13737 case $TARGET_ARCH in
13739 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13742 TARGET_ASM_DIR
=asm-generic
13747 if test $TARGET_ASM_DIR = asm-x86_64
; then
13748 TARGET_ASM_X86_64_TRUE
=
13749 TARGET_ASM_X86_64_FALSE
='#'
13751 TARGET_ASM_X86_64_TRUE
='#'
13752 TARGET_ASM_X86_64_FALSE
=
13755 if test $TARGET_ASM_DIR = asm-i386
; then
13756 TARGET_ASM_I386_TRUE
=
13757 TARGET_ASM_I386_FALSE
='#'
13759 TARGET_ASM_I386_TRUE
='#'
13760 TARGET_ASM_I386_FALSE
=
13763 if test $TARGET_ASM_DIR = asm-generic
; then
13764 TARGET_ASM_GENERIC_TRUE
=
13765 TARGET_ASM_GENERIC_FALSE
='#'
13767 TARGET_ASM_GENERIC_TRUE
='#'
13768 TARGET_ASM_GENERIC_FALSE
=
13771 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13772 $as_echo "$TARGET_ASM_DIR" >&6; }
13776 case "$ZFS_CONFIG" in
13780 # Check whether --with-linux was given.
13781 if test "${with_linux+set}" = set; then
13782 withval
=$with_linux; kernelsrc
="$withval"
13787 # Check whether --with-linux-obj was given.
13788 if test "${with_linux_obj+set}" = set; then
13789 withval
=$with_linux_obj; kernelbuild
="$withval"
13793 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
13794 $as_echo_n "checking kernel source directory... " >&6; }
13795 if test -z "$kernelsrc"; then
13797 if test -e "/lib/modules/$(uname -r)/source"; then
13799 headersdir
="/lib/modules/$(uname -r)/source"
13800 sourcelink
=$
(readlink
-f "$headersdir")
13802 elif test -e "/lib/modules/$(uname -r)/build"; then
13804 headersdir
="/lib/modules/$(uname -r)/build"
13805 sourcelink
=$
(readlink
-f "$headersdir")
13809 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13811 2>/dev
/null |
grep -v obj |
tail -1)
13816 if test -n "$sourcelink" && test -e ${sourcelink}; then
13818 kernelsrc
=`readlink -f ${sourcelink}`
13822 kernelsrc
="Not found"
13829 if test "$kernelsrc" = "NONE"; then
13840 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13841 $as_echo "$kernelsrc" >&6; }
13842 if test ! -d "$kernelsrc"; then
13844 { { $as_echo "$as_me:$LINENO: error:
13845 *** Please make sure the kernel devel package for your distribution
13846 *** is installed and then try again. If that fails, you can specify the
13847 *** location of the kernel source with the '--with-linux=PATH' option." >&5
13848 $as_echo "$as_me: error:
13849 *** Please make sure the kernel devel package for your distribution
13850 *** is installed and then try again. If that fails, you can specify the
13851 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
13852 { (exit 1); exit 1; }; }
13857 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
13858 $as_echo_n "checking kernel build directory... " >&6; }
13859 if test -z "$kernelbuild"; then
13861 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then
13863 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13865 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
13867 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13869 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
13871 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13873 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
13875 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13879 kernelbuild
=${kernelsrc}
13886 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
13887 $as_echo "$kernelbuild" >&6; }
13889 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
13890 $as_echo_n "checking kernel source version... " >&6; }
13891 utsrelease1
=$kernelbuild/include
/linux
/version.h
13892 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13893 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13894 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
13896 utsrelease
=linux
/version.h
13898 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
13900 utsrelease
=linux
/utsrelease.h
13902 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
13904 utsrelease
=generated
/utsrelease.h
13909 if test "$utsrelease"; then
13911 kernsrcver
=`(echo "#include <$utsrelease>";
13912 echo "kernsrcver=UTS_RELEASE") |
13913 cpp -I $kernelbuild/include |
13914 grep "^kernsrcver=" | cut -d \" -f 2`
13916 if test -z "$kernsrcver"; then
13918 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13919 $as_echo "Not found" >&6; }
13920 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
13921 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
13922 { (exit 1); exit 1; }; }
13929 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13930 $as_echo "Not found" >&6; }
13931 if test "x$enable_linux_builtin" != xyes
; then
13932 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
13933 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
13934 { (exit 1); exit 1; }; }
13936 { { $as_echo "$as_me:$LINENO: error:
13937 *** Cannot find UTS_RELEASE definition.
13938 *** Please run 'make prepare' inside the kernel source tree." >&5
13939 $as_echo "$as_me: error:
13940 *** Cannot find UTS_RELEASE definition.
13941 *** Please run 'make prepare' inside the kernel source tree." >&2;}
13942 { (exit 1); exit 1; }; }
13948 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13949 $as_echo "$kernsrcver" >&6; }
13952 LINUX_OBJ
=${kernelbuild}
13953 LINUX_VERSION
=${kernsrcver}
13960 modpost
=$LINUX/scripts
/Makefile.modpost
13961 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
13962 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13963 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
13965 if grep -q Modules.symvers
$modpost; then
13967 LINUX_SYMBOLS
=Modules.symvers
13971 LINUX_SYMBOLS
=Module.symvers
13976 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
13978 { { $as_echo "$as_me:$LINENO: error:
13979 *** Please make sure the kernel devel package for your distribution
13980 *** is installed. If you are building with a custom kernel, make sure the
13981 *** kernel is configured, built, and the '--with-linux=PATH' configure
13982 *** option refers to the location of the kernel source." >&5
13983 $as_echo "$as_me: error:
13984 *** Please make sure the kernel devel package for your distribution
13985 *** is installed. If you are building with a custom kernel, make sure the
13986 *** kernel is configured, built, and the '--with-linux=PATH' configure
13987 *** option refers to the location of the kernel source." >&2;}
13988 { (exit 1); exit 1; }; }
13999 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14000 $as_echo "$LINUX_SYMBOLS" >&6; }
14006 # Check whether --with-spl was given.
14007 if test "${with_spl+set}" = set; then
14008 withval
=$with_spl; if test "$withval" = "yes"; then
14009 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
14010 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
14011 { (exit 1); exit 1; }; }
14020 # Check whether --with-spl-obj was given.
14021 if test "${with_spl_obj+set}" = set; then
14022 withval
=$with_spl_obj; splbuild
="$withval"
14027 # Check whether --with-spl-timeout was given.
14028 if test "${with_spl_timeout+set}" = set; then
14029 withval
=$with_spl_timeout; timeout
="$withval"
14035 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
14036 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
14037 splsrc2
="/usr/local/src/spl-${VERSION}"
14038 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
14039 splsrc4
="/usr/src/spl-${VERSION}"
14043 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
14044 $as_echo_n "checking spl source directory... " >&6; }
14045 if test -z "${splsrc}"; then
14055 if test -e "${splsrc0}/spl.release.in"; then
14059 elif test -e "${splsrc1}/spl.release.in"; then
14063 elif test -e "${splsrc2}/spl.release.in"; then
14067 elif test -e "${splsrc3}/spl.release.in"; then
14069 splsrc
=$
(readlink
-f "${splsrc3}")
14071 elif test -e "${splsrc4}/spl.release.in" ; then
14075 elif test -e "${splsrc5}/spl.release.in"; then
14077 splsrc
=$
(readlink
-f "${splsrc5}")
14079 elif test -e "${splsrc6}/spl.release.in" ; then
14092 all_spl_sources
="$withval",
14093 if test "$splsrc" = "NONE"; then
14104 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
14105 $as_echo "$splsrc" >&6; }
14106 if test ! -e "$splsrc/spl.release.in"; then
14108 { { $as_echo "$as_me:$LINENO: error:
14109 *** Please make sure the kmod spl devel package for your distribution
14110 *** is installed then try again. If that fails you can specify the
14111 *** location of the spl source with the '--with-spl=PATH' option.
14112 *** The spl version must match the version of ZFS you are building,
14113 *** ${VERSION}. Failed to find spl.release.in in the following:
14114 $all_spl_sources" >&5
14115 $as_echo "$as_me: error:
14116 *** Please make sure the kmod spl devel package for your distribution
14117 *** is installed then try again. If that fails you can specify the
14118 *** location of the spl source with the '--with-spl=PATH' option.
14119 *** The spl version must match the version of ZFS you are building,
14120 *** ${VERSION}. Failed to find spl.release.in in the following:
14121 $all_spl_sources" >&2;}
14122 { (exit 1); exit 1; }; }
14127 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
14128 $as_echo_n "checking spl build directory... " >&6; }
14130 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
14134 if test -z "$splbuild"; then
14136 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
14138 splbuild
="${splsrc}/${LINUX_VERSION}"
14140 elif test -e "${splsrc}/spl_config.h" ; then
14142 splbuild
="${splsrc}"
14144 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then
14146 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
14150 splbuild
="Not found"
14157 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
14164 timeout
=$
((timeout-1
))
14170 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
14171 $as_echo "$splbuild" >&6; }
14172 if ! test -e "$splbuild/spl_config.h"; then
14174 { { $as_echo "$as_me:$LINENO: error:
14175 *** Please make sure the kmod spl devel <kernel> package for your
14176 *** distribution is installed then try again. If that fails you
14177 *** can specify the location of the spl objects with the
14178 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14179 *** any of the following:
14180 $all_spl_config_locs" >&5
14181 $as_echo "$as_me: error:
14182 *** Please make sure the kmod spl devel <kernel> package for your
14183 *** distribution is installed then try again. If that fails you
14184 *** can specify the location of the spl objects with the
14185 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14186 *** any of the following:
14187 $all_spl_config_locs" >&2;}
14188 { (exit 1); exit 1; }; }
14193 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
14194 $as_echo_n "checking spl source version... " >&6; }
14195 if test -r $splbuild/spl_config.h
&&
14196 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
14199 splsrcver
=`(echo "#include <spl_config.h>";
14200 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14202 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
14207 if test -z "$splsrcver"; then
14209 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14210 $as_echo "Not found" >&6; }
14211 { { $as_echo "$as_me:$LINENO: error:
14212 *** Cannot determine the version of the spl source.
14213 *** Please prepare the spl source before running this script" >&5
14214 $as_echo "$as_me: error:
14215 *** Cannot determine the version of the spl source.
14216 *** Please prepare the spl source before running this script" >&2;}
14217 { (exit 1); exit 1; }; }
14222 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
14223 $as_echo "$splsrcver" >&6; }
14226 SPL_OBJ
=${splbuild}
14227 SPL_VERSION
=${splsrcver}
14233 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
14234 $as_echo_n "checking spl file name for module symbols... " >&6; }
14238 if test -r $SPL_OBJ/Module.symvers
; then
14240 SPL_SYMBOLS
=Module.symvers
14242 elif test -r $SPL_OBJ/Modules.symvers
; then
14244 SPL_SYMBOLS
=Modules.symvers
14246 elif test -r $SPL_OBJ/module
/Module.symvers
; then
14248 SPL_SYMBOLS
=Module.symvers
14250 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
14252 SPL_SYMBOLS
=Modules.symvers
14257 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then
14264 timeout
=$
((timeout-1
))
14270 if test "$SPL_SYMBOLS" = NONE
; then
14272 SPL_SYMBOLS
=$LINUX_SYMBOLS
14277 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
14278 $as_echo "$SPL_SYMBOLS" >&6; }
14283 # Check whether --with-qat was given.
14284 if test "${with_qat+set}" = set; then
14285 withval
=$with_qat; if test "$withval" = "yes"; then
14286 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
14287 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
14288 { (exit 1); exit 1; }; }
14297 # Check whether --with-qat-obj was given.
14298 if test "${with_qat_obj+set}" = set; then
14299 withval
=$with_qat_obj; qatbuild
="$withval"
14303 if test ! -z "${qatsrc}"; then
14305 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
14306 $as_echo_n "checking qat source directory... " >&6; }
14307 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
14308 $as_echo "$qatsrc" >&6; }
14309 QAT_SRC
="${qatsrc}/quickassist"
14310 if test ! -e "$QAT_SRC/include/cpa.h"; then
14312 { { $as_echo "$as_me:$LINENO: error:
14313 *** Please make sure the qat driver package is installed
14314 *** and specify the location of the qat source with the
14315 *** '--with-qat=PATH' option then try again. Failed to
14317 ${QAT_SRC}/include" >&5
14318 $as_echo "$as_me: error:
14319 *** Please make sure the qat driver package is installed
14320 *** and specify the location of the qat source with the
14321 *** '--with-qat=PATH' option then try again. Failed to
14323 ${QAT_SRC}/include" >&2;}
14324 { (exit 1); exit 1; }; }
14332 if test ! -z "${qatsrc}"; then
14334 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
14335 $as_echo_n "checking qat build directory... " >&6; }
14336 if test -z "$qatbuild"; then
14338 qatbuild
="${qatsrc}/build"
14343 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
14344 $as_echo "$qatbuild" >&6; }
14345 QAT_OBJ
=${qatbuild}
14346 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
14348 { { $as_echo "$as_me:$LINENO: error:
14349 *** Please make sure the qat driver is installed then try again.
14350 *** Failed to find icp_qa_al.ko or qat_api.ko in:
14352 $as_echo "$as_me: error:
14353 *** Please make sure the qat driver is installed then try again.
14354 *** Failed to find icp_qa_al.ko or qat_api.ko in:
14356 { (exit 1); exit 1; }; }
14365 cat >>confdefs.h
<<\_ACEOF
14373 if test ! -z "${qatsrc}"; then
14375 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
14376 $as_echo_n "checking qat file for module symbols... " >&6; }
14377 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
14379 if test -r $QAT_SYMBOLS; then
14381 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
14382 $as_echo "$QAT_SYMBOLS" >&6; }
14387 { { $as_echo "$as_me:$LINENO: error:
14388 *** Please make sure the qat driver is installed then try again.
14389 *** Failed to find Module.symvers in:
14391 $as_echo "$as_me: error:
14392 *** Please make sure the qat driver is installed then try again.
14393 *** Failed to find Module.symvers in:
14394 $QAT_SYMBOLS" >&2;}
14395 { (exit 1); exit 1; }; }
14404 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
14405 $as_echo_n "checking whether modules can be built... " >&6; }
14408 cat confdefs.h
- <<_ACEOF >conftest.c
14411 cat confdefs.h
>>conftest.
$ac_ext
14412 cat >>conftest.
$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14428 cat - <<_ACEOF >conftest.h
14433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14434 echo "obj-m := conftest.o" >build
/Makefile
14436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14437 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14449 { $as_echo "$as_me:$LINENO: result: yes" >&5
14450 $as_echo "yes" >&6; }
14453 $as_echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.
$ac_ext >&5
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14458 if test "x$enable_linux_builtin" != xyes
; then
14459 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
14460 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
14461 { (exit 1); exit 1; }; }
14463 { { $as_echo "$as_me:$LINENO: error:
14464 *** Unable to build an empty module.
14465 *** Please run 'make scripts' inside the kernel source tree." >&5
14466 $as_echo "$as_me: error:
14467 *** Unable to build an empty module.
14468 *** Please run 'make scripts' inside the kernel source tree." >&2;}
14469 { (exit 1); exit 1; }; }
14481 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
14482 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14485 cat confdefs.h
- <<_ACEOF >conftest.c
14488 cat confdefs.h
>>conftest.
$ac_ext
14489 cat >>conftest.
$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14493 #undef __ASSEMBLY__
14494 #include <asm/frame.h>
14500 #if !defined(FRAME_BEGIN)
14512 cat - <<_ACEOF >conftest.h
14517 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14518 echo "obj-m := conftest.o" >build
/Makefile
14520 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14521 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14533 { $as_echo "$as_me:$LINENO: result: yes" >&5
14534 $as_echo "yes" >&6; }
14536 cat >>confdefs.h
<<\_ACEOF
14537 #define HAVE_KERNEL_OBJTOOL 1
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.
$ac_ext >&5
14545 { $as_echo "$as_me:$LINENO: result: no" >&5
14546 $as_echo "no" >&6; }
14557 if test "x$cross_compiling" != xyes
; then
14559 if test "$cross_compiling" = yes; then
14560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14562 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14563 See \`config.log' for more details." >&5
14564 $as_echo "$as_me: error: cannot run test program while cross compiling
14565 See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }; }
14568 cat >conftest.
$ac_ext <<_ACEOF
14572 cat confdefs.h
>>conftest.
$ac_ext
14573 cat >>conftest.
$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14576 #include "$LINUX/include/linux/license.h"
14582 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14589 rm -f conftest
$ac_exeext
14590 if { (ac_try
="$ac_link"
14591 case "(($ac_try" in
14592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14596 $as_echo "$ac_try_echo") >&5
14597 (eval "$ac_link") 2>&5
14599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14603 *) ac_try_echo
=$ac_try;;
14605 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607 (eval "$ac_try") 2>&5
14609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14613 cat >>confdefs.h
<<\_ACEOF
14614 #define ZFS_IS_GPL_COMPATIBLE 1
14619 $as_echo "$as_me: program exited with status $ac_status" >&5
14620 $as_echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.
$ac_ext >&5
14623 ( exit $ac_status )
14627 rm -rf conftest.dSYM
14628 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14637 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
14638 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14641 cat confdefs.h
- <<_ACEOF >conftest.c
14644 cat confdefs.h
>>conftest.
$ac_ext
14645 cat >>conftest.
$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14649 #include <linux/module.h>
14655 #if (THREAD_SIZE < 16384)
14656 #error "THREAD_SIZE is less than 16K"
14667 cat - <<_ACEOF >conftest.h
14672 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14673 echo "obj-m := conftest.o" >build
/Makefile
14675 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14676 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14688 { $as_echo "$as_me:$LINENO: result: yes" >&5
14689 $as_echo "yes" >&6; }
14691 cat >>confdefs.h
<<\_ACEOF
14692 #define HAVE_LARGE_STACKS 1
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14713 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14714 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14717 cat confdefs.h
- <<_ACEOF >conftest.c
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14725 #include <linux/module.h>
14731 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14732 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14743 cat - <<_ACEOF >conftest.h
14748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14749 echo "obj-m := conftest.o" >build
/Makefile
14751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14764 { $as_echo "$as_me:$LINENO: result: yes" >&5
14765 $as_echo "yes" >&6; }
14767 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
14768 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14769 tmp_flags
="$EXTRA_KCFLAGS"
14772 cat confdefs.h
- <<_ACEOF >conftest.c
14775 cat confdefs.h
>>conftest.
$ac_ext
14776 cat >>conftest.
$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14780 #include <linux/module.h>
14781 #include <linux/mutex.h>
14783 MODULE_LICENSE("$ZFS_META_LICENSE");
14793 mutex_unlock(&lock);
14803 cat - <<_ACEOF >conftest.h
14808 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14809 echo "obj-m := conftest.o" >build
/Makefile
14811 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14812 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825 $as_echo "no" >&6; }
14828 $as_echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.
$ac_ext >&5
14831 { $as_echo "$as_me:$LINENO: result: yes" >&5
14832 $as_echo "yes" >&6; }
14833 { { $as_echo "$as_me:$LINENO: error:
14834 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14835 *** with the CDDL license and will prevent the module linking stage
14836 *** from succeeding. You must rebuild your kernel without this
14837 *** option enabled." >&5
14838 $as_echo "$as_me: error:
14839 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14840 *** with the CDDL license and will prevent the module linking stage
14841 *** from succeeding. You must rebuild your kernel without this
14842 *** option enabled." >&2;}
14843 { (exit 1); exit 1; }; }
14852 EXTRA_KCFLAGS
="$tmp_flags"
14856 $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.
$ac_ext >&5
14859 { $as_echo "$as_me:$LINENO: result: no" >&5
14860 $as_echo "no" >&6; }
14874 tmp_flags
="$EXTRA_KCFLAGS"
14875 EXTRA_KCFLAGS
="-I\$(src)"
14877 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
14878 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14881 cat confdefs.h
- <<_ACEOF >conftest.c
14884 cat confdefs.h
>>conftest.
$ac_ext
14885 cat >>conftest.
$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14889 #include <linux/module.h>
14890 MODULE_LICENSE(ZFS_META_LICENSE);
14892 #define CREATE_TRACE_POINTS
14893 #include "conftest.h"
14899 trace_zfs_autoconf_event_one(1UL);
14900 trace_zfs_autoconf_event_two(2UL);
14910 cat - <<_ACEOF >conftest.h
14912 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14913 #define _CONFTEST_H
14915 #undef TRACE_SYSTEM
14916 #define TRACE_SYSTEM zfs
14917 #include <linux/tracepoint.h>
14919 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14920 TP_PROTO(unsigned long i),
14923 __field(unsigned long, i)
14928 TP_printk("i = %lu", __entry->i)
14931 #define DEFINE_AUTOCONF_EVENT(name) \
14932 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14933 TP_PROTO(unsigned long i), \
14935 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14936 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14938 #endif /* _CONFTEST_H */
14940 #undef TRACE_INCLUDE_PATH
14941 #define TRACE_INCLUDE_PATH .
14942 #define TRACE_INCLUDE_FILE conftest
14943 #include <trace/define_trace.h>
14948 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14949 echo "obj-m := conftest.o" >build
/Makefile
14951 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14952 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14964 { $as_echo "$as_me:$LINENO: result: yes" >&5
14965 $as_echo "yes" >&6; }
14967 cat >>confdefs.h
<<\_ACEOF
14968 #define HAVE_DECLARE_EVENT_CLASS 1
14973 $as_echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.
$ac_ext >&5
14976 { $as_echo "$as_me:$LINENO: result: no" >&5
14977 $as_echo "no" >&6; }
14986 EXTRA_KCFLAGS
="$tmp_flags"
14989 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14990 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14993 cat confdefs.h
- <<_ACEOF >conftest.c
14996 cat confdefs.h
>>conftest.
$ac_ext
14997 cat >>conftest.
$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15001 #include <linux/sched.h>
15007 current->bio_tail = (struct bio **) NULL;
15017 cat - <<_ACEOF >conftest.h
15022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15023 echo "obj-m := conftest.o" >build
/Makefile
15025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15038 { $as_echo "$as_me:$LINENO: result: yes" >&5
15039 $as_echo "yes" >&6; }
15041 cat >>confdefs.h
<<\_ACEOF
15042 #define HAVE_CURRENT_BIO_TAIL 1
15047 $as_echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.
$ac_ext >&5
15050 { $as_echo "$as_me:$LINENO: result: no" >&5
15051 $as_echo "no" >&6; }
15052 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
15053 $as_echo_n "checking whether current->bio_list exists... " >&6; }
15056 cat confdefs.h
- <<_ACEOF >conftest.c
15059 cat confdefs.h
>>conftest.
$ac_ext
15060 cat >>conftest.
$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15064 #include <linux/sched.h>
15070 current->bio_list = (struct bio_list *) NULL;
15080 cat - <<_ACEOF >conftest.h
15085 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15086 echo "obj-m := conftest.o" >build
/Makefile
15088 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15089 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15101 { $as_echo "$as_me:$LINENO: result: yes" >&5
15102 $as_echo "yes" >&6; }
15104 cat >>confdefs.h
<<\_ACEOF
15105 #define HAVE_CURRENT_BIO_LIST 1
15110 $as_echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.
$ac_ext >&5
15113 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
15114 https://github.com/zfsonlinux/zfs/issues/new" >&5
15115 $as_echo "$as_me: error: no - Please file a bug report at
15116 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
15117 { (exit 1); exit 1; }; }
15136 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
15137 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
15140 cat confdefs.h
- <<_ACEOF >conftest.c
15143 cat confdefs.h
>>conftest.
$ac_ext
15144 cat >>conftest.
$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15148 #include <linux/fs.h>
15149 #include <linux/user_namespace.h>
15155 struct super_block super;
15156 super.s_user_ns = (struct user_namespace *)NULL;
15166 cat - <<_ACEOF >conftest.h
15171 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15172 echo "obj-m := conftest.o" >build
/Makefile
15174 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15175 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15187 { $as_echo "$as_me:$LINENO: result: yes" >&5
15188 $as_echo "yes" >&6; }
15190 cat >>confdefs.h
<<\_ACEOF
15191 #define HAVE_SUPER_USER_NS 1
15196 $as_echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.
$ac_ext >&5
15199 { $as_echo "$as_me:$LINENO: result: no" >&5
15200 $as_echo "no" >&6; }
15211 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
15212 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
15215 cat confdefs.h
- <<_ACEOF >conftest.c
15218 cat confdefs.h
>>conftest.
$ac_ext
15219 cat >>conftest.
$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15223 #include <linux/bio.h>
15230 struct bio *bio = NULL;
15231 blk_qc = submit_bio(bio);
15241 cat - <<_ACEOF >conftest.h
15246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15247 echo "obj-m := conftest.o" >build
/Makefile
15249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15262 { $as_echo "$as_me:$LINENO: result: yes" >&5
15263 $as_echo "yes" >&6; }
15265 cat >>confdefs.h
<<\_ACEOF
15266 #define HAVE_1ARG_SUBMIT_BIO 1
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.
$ac_ext >&5
15274 { $as_echo "$as_me:$LINENO: result: no" >&5
15275 $as_echo "no" >&6; }
15286 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
15287 $as_echo_n "checking whether bops->check_events() exists... " >&6; }
15288 tmp_flags
="$EXTRA_KCFLAGS"
15289 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15292 cat confdefs.h
- <<_ACEOF >conftest.c
15295 cat confdefs.h
>>conftest.
$ac_ext
15296 cat >>conftest.
$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15300 #include <linux/blkdev.h>
15302 unsigned int blk_check_events(struct gendisk *disk,
15303 unsigned int clearing) { return (0); }
15305 static const struct block_device_operations
15306 bops __attribute__ ((unused)) = {
15307 .check_events = blk_check_events,
15323 cat - <<_ACEOF >conftest.h
15328 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15329 echo "obj-m := conftest.o" >build
/Makefile
15331 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15332 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15344 { $as_echo "$as_me:$LINENO: result: yes" >&5
15345 $as_echo "yes" >&6; }
15347 cat >>confdefs.h
<<\_ACEOF
15348 #define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
15353 $as_echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.
$ac_ext >&5
15356 { $as_echo "$as_me:$LINENO: result: no" >&5
15357 $as_echo "no" >&6; }
15366 EXTRA_KCFLAGS
="$tmp_flags"
15369 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
15370 $as_echo_n "checking whether bops->release() is void... " >&6; }
15371 tmp_flags
="$EXTRA_KCFLAGS"
15372 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15375 cat confdefs.h
- <<_ACEOF >conftest.c
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15383 #include <linux/blkdev.h>
15385 void blk_release(struct gendisk *g, fmode_t mode) { return; }
15387 static const struct block_device_operations
15388 bops __attribute__ ((unused)) = {
15390 .release = blk_release,
15392 .compat_ioctl = NULL,
15408 cat - <<_ACEOF >conftest.h
15413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15414 echo "obj-m := conftest.o" >build
/Makefile
15416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15429 { $as_echo "$as_me:$LINENO: result: void" >&5
15430 $as_echo "void" >&6; }
15432 cat >>confdefs.h
<<\_ACEOF
15433 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.
$ac_ext >&5
15441 { $as_echo "$as_me:$LINENO: result: int" >&5
15442 $as_echo "int" >&6; }
15451 EXTRA_KCFLAGS
="$tmp_flags"
15453 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15454 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15457 cat confdefs.h
- <<_ACEOF >conftest.c
15460 cat confdefs.h
>>conftest.
$ac_ext
15461 cat >>conftest.
$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15465 #include <linux/types.h>
15471 fmode_t *ptr __attribute__ ((unused));
15481 cat - <<_ACEOF >conftest.h
15486 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15487 echo "obj-m := conftest.o" >build
/Makefile
15489 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15490 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15502 { $as_echo "$as_me:$LINENO: result: yes" >&5
15503 $as_echo "yes" >&6; }
15505 cat >>confdefs.h
<<\_ACEOF
15506 #define HAVE_FMODE_T 1
15511 $as_echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.
$ac_ext >&5
15514 { $as_echo "$as_me:$LINENO: result: no" >&5
15515 $as_echo "no" >&6; }
15526 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15527 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
15530 cat confdefs.h
- <<_ACEOF >conftest.c
15533 cat confdefs.h
>>conftest.
$ac_ext
15534 cat >>conftest.
$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15538 #include <linux/fs.h>
15544 struct block_device *bdev = NULL;
15545 (void) blkdev_get(bdev, 0, NULL);
15555 cat - <<_ACEOF >conftest.h
15560 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15561 echo "obj-m := conftest.o" >build
/Makefile
15563 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15564 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15576 { $as_echo "$as_me:$LINENO: result: yes" >&5
15577 $as_echo "yes" >&6; }
15579 cat >>confdefs.h
<<\_ACEOF
15580 #define HAVE_3ARG_BLKDEV_GET 1
15585 $as_echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.
$ac_ext >&5
15588 { $as_echo "$as_me:$LINENO: result: no" >&5
15589 $as_echo "no" >&6; }
15599 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15600 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15604 cat confdefs.h
- <<_ACEOF >conftest.c
15607 cat confdefs.h
>>conftest.
$ac_ext
15608 cat >>conftest.
$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15612 #include <linux/fs.h>
15618 blkdev_get_by_path(NULL, 0, NULL);
15628 cat - <<_ACEOF >conftest.h
15633 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15634 echo "obj-m := conftest.o" >build
/Makefile
15636 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15637 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15650 $as_echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.
$ac_ext >&5
15660 if test $rc -ne 0; then :
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15666 if test "x$enable_linux_builtin" != xyes
; then
15668 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15669 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15671 if test $rc -ne 0; then
15673 for file in fs
/block_dev.c
; do
15674 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15675 "$LINUX/$file" 2>/dev
/null
15677 if test $rc -eq 0; then
15682 if test $export -eq 0; then :
15692 if test $rc -ne 0; then :
15694 { $as_echo "$as_me:$LINENO: result: no" >&5
15695 $as_echo "no" >&6; }
15699 { $as_echo "$as_me:$LINENO: result: yes" >&5
15700 $as_echo "yes" >&6; }
15702 cat >>confdefs.h
<<\_ACEOF
15703 #define HAVE_BLKDEV_GET_BY_PATH 1
15711 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15712 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15716 cat confdefs.h
- <<_ACEOF >conftest.c
15719 cat confdefs.h
>>conftest.
$ac_ext
15720 cat >>conftest.
$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15724 #include <linux/fs.h>
15730 open_bdev_exclusive(NULL, 0, NULL);
15740 cat - <<_ACEOF >conftest.h
15745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15746 echo "obj-m := conftest.o" >build
/Makefile
15748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15749 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15762 $as_echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.
$ac_ext >&5
15772 if test $rc -ne 0; then :
15774 { $as_echo "$as_me:$LINENO: result: no" >&5
15775 $as_echo "no" >&6; }
15778 if test "x$enable_linux_builtin" != xyes
; then
15780 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15781 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15783 if test $rc -ne 0; then
15785 for file in fs
/block_dev.c
; do
15786 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15787 "$LINUX/$file" 2>/dev
/null
15789 if test $rc -eq 0; then
15794 if test $export -eq 0; then :
15804 if test $rc -ne 0; then :
15806 { $as_echo "$as_me:$LINENO: result: no" >&5
15807 $as_echo "no" >&6; }
15811 { $as_echo "$as_me:$LINENO: result: yes" >&5
15812 $as_echo "yes" >&6; }
15814 cat >>confdefs.h
<<\_ACEOF
15815 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15823 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15824 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15828 cat confdefs.h
- <<_ACEOF >conftest.c
15831 cat confdefs.h
>>conftest.
$ac_ext
15832 cat >>conftest.
$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15836 #include <linux/fs.h>
15852 cat - <<_ACEOF >conftest.h
15857 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15858 echo "obj-m := conftest.o" >build
/Makefile
15860 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15861 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15874 $as_echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15884 if test $rc -ne 0; then :
15886 { $as_echo "$as_me:$LINENO: result: no" >&5
15887 $as_echo "no" >&6; }
15888 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15889 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15893 cat confdefs.h
- <<_ACEOF >conftest.c
15896 cat confdefs.h
>>conftest.
$ac_ext
15897 cat >>conftest.
$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15901 #include <linux/fs.h>
15907 lookup_bdev(NULL, FMODE_READ);
15917 cat - <<_ACEOF >conftest.h
15922 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15923 echo "obj-m := conftest.o" >build
/Makefile
15925 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15926 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.
$ac_ext >&5
15949 if test $rc -ne 0; then :
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
15952 $as_echo "no" >&6; }
15955 if test "x$enable_linux_builtin" != xyes
; then
15957 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15958 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15960 if test $rc -ne 0; then
15962 for file in fs
/block_dev.c
; do
15963 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15964 "$LINUX/$file" 2>/dev
/null
15966 if test $rc -eq 0; then
15971 if test $export -eq 0; then :
15981 if test $rc -ne 0; then :
15983 { $as_echo "$as_me:$LINENO: result: no" >&5
15984 $as_echo "no" >&6; }
15988 { $as_echo "$as_me:$LINENO: result: yes" >&5
15989 $as_echo "yes" >&6; }
15991 cat >>confdefs.h
<<\_ACEOF
15992 #define HAVE_2ARGS_LOOKUP_BDEV 1
16001 if test "x$enable_linux_builtin" != xyes
; then
16003 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16004 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16006 if test $rc -ne 0; then
16008 for file in fs
/block_dev.c
; do
16009 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16010 "$LINUX/$file" 2>/dev
/null
16012 if test $rc -eq 0; then
16017 if test $export -eq 0; then :
16027 if test $rc -ne 0; then :
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030 $as_echo "no" >&6; }
16031 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
16032 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
16036 cat confdefs.h
- <<_ACEOF >conftest.c
16039 cat confdefs.h
>>conftest.
$ac_ext
16040 cat >>conftest.
$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16044 #include <linux/fs.h>
16050 lookup_bdev(NULL, FMODE_READ);
16060 cat - <<_ACEOF >conftest.h
16065 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16066 echo "obj-m := conftest.o" >build
/Makefile
16068 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16069 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.
$ac_ext >&5
16092 if test $rc -ne 0; then :
16094 { $as_echo "$as_me:$LINENO: result: no" >&5
16095 $as_echo "no" >&6; }
16098 if test "x$enable_linux_builtin" != xyes
; then
16100 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16101 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16103 if test $rc -ne 0; then
16105 for file in fs
/block_dev.c
; do
16106 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16107 "$LINUX/$file" 2>/dev
/null
16109 if test $rc -eq 0; then
16114 if test $export -eq 0; then :
16124 if test $rc -ne 0; then :
16126 { $as_echo "$as_me:$LINENO: result: no" >&5
16127 $as_echo "no" >&6; }
16131 { $as_echo "$as_me:$LINENO: result: yes" >&5
16132 $as_echo "yes" >&6; }
16134 cat >>confdefs.h
<<\_ACEOF
16135 #define HAVE_2ARGS_LOOKUP_BDEV 1
16145 { $as_echo "$as_me:$LINENO: result: yes" >&5
16146 $as_echo "yes" >&6; }
16148 cat >>confdefs.h
<<\_ACEOF
16149 #define HAVE_1ARG_LOOKUP_BDEV 1
16158 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16159 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16162 cat confdefs.h
- <<_ACEOF >conftest.c
16165 cat confdefs.h
>>conftest.
$ac_ext
16166 cat >>conftest.
$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16170 #include <linux/buffer_head.h>
16176 struct block_device *bdev = NULL;
16177 invalidate_bdev(bdev);
16187 cat - <<_ACEOF >conftest.h
16192 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16193 echo "obj-m := conftest.o" >build
/Makefile
16195 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16196 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16208 { $as_echo "$as_me:$LINENO: result: yes" >&5
16209 $as_echo "yes" >&6; }
16211 cat >>confdefs.h
<<\_ACEOF
16212 #define HAVE_1ARG_INVALIDATE_BDEV 1
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.
$ac_ext >&5
16220 { $as_echo "$as_me:$LINENO: result: no" >&5
16221 $as_echo "no" >&6; }
16232 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16233 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16234 tmp_flags
="$EXTRA_KCFLAGS"
16235 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16238 cat confdefs.h
- <<_ACEOF >conftest.c
16241 cat confdefs.h
>>conftest.
$ac_ext
16242 cat >>conftest.
$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16246 #include <linux/blkdev.h>
16252 struct block_device *bdev = NULL;
16253 bdev_logical_block_size(bdev);
16263 cat - <<_ACEOF >conftest.h
16268 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16269 echo "obj-m := conftest.o" >build
/Makefile
16271 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16272 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16284 { $as_echo "$as_me:$LINENO: result: yes" >&5
16285 $as_echo "yes" >&6; }
16287 cat >>confdefs.h
<<\_ACEOF
16288 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 { $as_echo "$as_me:$LINENO: result: no" >&5
16297 $as_echo "no" >&6; }
16306 EXTRA_KCFLAGS
="$tmp_flags"
16309 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
16310 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
16311 tmp_flags
="$EXTRA_KCFLAGS"
16312 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16315 cat confdefs.h
- <<_ACEOF >conftest.c
16318 cat confdefs.h
>>conftest.
$ac_ext
16319 cat >>conftest.
$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16323 #include <linux/blkdev.h>
16329 struct block_device *bdev = NULL;
16330 bdev_physical_block_size(bdev);
16340 cat - <<_ACEOF >conftest.h
16345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16346 echo "obj-m := conftest.o" >build
/Makefile
16348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16349 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16361 { $as_echo "$as_me:$LINENO: result: yes" >&5
16362 $as_echo "yes" >&6; }
16364 cat >>confdefs.h
<<\_ACEOF
16365 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
16370 $as_echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.
$ac_ext >&5
16373 { $as_echo "$as_me:$LINENO: result: no" >&5
16374 $as_echo "no" >&6; }
16383 EXTRA_KCFLAGS
="$tmp_flags"
16386 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
16387 $as_echo_n "checking whether bio has bi_iter... " >&6; }
16390 cat confdefs.h
- <<_ACEOF >conftest.c
16393 cat confdefs.h
>>conftest.
$ac_ext
16394 cat >>conftest.
$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16398 #include <linux/bio.h>
16405 bio.bi_iter.bi_sector = 0;
16415 cat - <<_ACEOF >conftest.h
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 conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16436 { $as_echo "$as_me:$LINENO: result: yes" >&5
16437 $as_echo "yes" >&6; }
16439 cat >>confdefs.h
<<\_ACEOF
16440 #define HAVE_BIO_BVEC_ITER 1
16445 $as_echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.
$ac_ext >&5
16448 { $as_echo "$as_me:$LINENO: result: no" >&5
16449 $as_echo "no" >&6; }
16460 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16461 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16464 cat confdefs.h
- <<_ACEOF >conftest.c
16467 cat confdefs.h
>>conftest.
$ac_ext
16468 cat >>conftest.
$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16472 #include <linux/bio.h>
16478 int flags __attribute__ ((unused));
16479 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16480 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16481 (1 << BIO_RW_FAILFAST_DRIVER));
16491 cat - <<_ACEOF >conftest.h
16496 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16497 echo "obj-m := conftest.o" >build
/Makefile
16499 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16500 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16512 { $as_echo "$as_me:$LINENO: result: yes" >&5
16513 $as_echo "yes" >&6; }
16515 cat >>confdefs.h
<<\_ACEOF
16516 #define HAVE_BIO_RW_FAILFAST_DTD 1
16521 $as_echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.
$ac_ext >&5
16524 { $as_echo "$as_me:$LINENO: result: no" >&5
16525 $as_echo "no" >&6; }
16536 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16537 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
16540 cat confdefs.h
- <<_ACEOF >conftest.c
16543 cat confdefs.h
>>conftest.
$ac_ext
16544 cat >>conftest.
$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16548 #include <linux/bio.h>
16549 #include <linux/fs.h>
16555 struct block_device *bdev = NULL;
16556 struct bio *bio = NULL;
16557 bio_set_dev(bio, bdev);
16567 cat - <<_ACEOF >conftest.h
16572 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16573 echo "obj-m := conftest.o" >build
/Makefile
16575 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16576 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16588 { $as_echo "$as_me:$LINENO: result: yes" >&5
16589 $as_echo "yes" >&6; }
16591 cat >>confdefs.h
<<\_ACEOF
16592 #define HAVE_BIO_SET_DEV 1
16597 $as_echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.
$ac_ext >&5
16600 { $as_echo "$as_me:$LINENO: result: no" >&5
16601 $as_echo "no" >&6; }
16612 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16613 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16616 cat confdefs.h
- <<_ACEOF >conftest.c
16619 cat confdefs.h
>>conftest.
$ac_ext
16620 cat >>conftest.
$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16624 #include <linux/bio.h>
16630 int flags __attribute__ ((unused));
16631 flags = REQ_FAILFAST_MASK;
16641 cat - <<_ACEOF >conftest.h
16646 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16647 echo "obj-m := conftest.o" >build
/Makefile
16649 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16650 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16662 { $as_echo "$as_me:$LINENO: result: yes" >&5
16663 $as_echo "yes" >&6; }
16665 cat >>confdefs.h
<<\_ACEOF
16666 #define HAVE_REQ_FAILFAST_MASK 1
16671 $as_echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.
$ac_ext >&5
16674 { $as_echo "$as_me:$LINENO: result: no" >&5
16675 $as_echo "no" >&6; }
16686 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16687 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16690 cat confdefs.h
- <<_ACEOF >conftest.c
16693 cat confdefs.h
>>conftest.
$ac_ext
16694 cat >>conftest.
$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16698 #include <linux/blk_types.h>
16704 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16714 cat - <<_ACEOF >conftest.h
16719 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16720 echo "obj-m := conftest.o" >build
/Makefile
16722 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16723 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16735 { $as_echo "$as_me:$LINENO: result: yes" >&5
16736 $as_echo "yes" >&6; }
16738 cat >>confdefs.h
<<\_ACEOF
16739 #define HAVE_REQ_OP_DISCARD 1
16744 $as_echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.
$ac_ext >&5
16747 { $as_echo "$as_me:$LINENO: result: no" >&5
16748 $as_echo "no" >&6; }
16759 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16760 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16763 cat confdefs.h
- <<_ACEOF >conftest.c
16766 cat confdefs.h
>>conftest.
$ac_ext
16767 cat >>conftest.
$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16771 #include <linux/blk_types.h>
16777 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16787 cat - <<_ACEOF >conftest.h
16792 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16793 echo "obj-m := conftest.o" >build
/Makefile
16795 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16796 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16808 { $as_echo "$as_me:$LINENO: result: yes" >&5
16809 $as_echo "yes" >&6; }
16811 cat >>confdefs.h
<<\_ACEOF
16812 #define HAVE_REQ_OP_SECURE_ERASE 1
16817 $as_echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.
$ac_ext >&5
16820 { $as_echo "$as_me:$LINENO: result: no" >&5
16821 $as_echo "no" >&6; }
16832 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16833 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16836 cat confdefs.h
- <<_ACEOF >conftest.c
16839 cat confdefs.h
>>conftest.
$ac_ext
16840 cat >>conftest.
$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16844 #include <linux/blk_types.h>
16850 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16860 cat - <<_ACEOF >conftest.h
16865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16866 echo "obj-m := conftest.o" >build
/Makefile
16868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16881 { $as_echo "$as_me:$LINENO: result: yes" >&5
16882 $as_echo "yes" >&6; }
16884 cat >>confdefs.h
<<\_ACEOF
16885 #define HAVE_REQ_OP_FLUSH 1
16890 $as_echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.
$ac_ext >&5
16893 { $as_echo "$as_me:$LINENO: result: no" >&5
16894 $as_echo "no" >&6; }
16905 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16906 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16909 cat confdefs.h
- <<_ACEOF >conftest.c
16912 cat confdefs.h
>>conftest.
$ac_ext
16913 cat >>conftest.
$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16917 #include <linux/bio.h>
16923 struct bio bio __attribute__ ((unused));
16934 cat - <<_ACEOF >conftest.h
16939 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16940 echo "obj-m := conftest.o" >build
/Makefile
16942 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16943 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16955 { $as_echo "$as_me:$LINENO: result: yes" >&5
16956 $as_echo "yes" >&6; }
16958 cat >>confdefs.h
<<\_ACEOF
16959 #define HAVE_BIO_BI_OPF 1
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.
$ac_ext >&5
16967 { $as_echo "$as_me:$LINENO: result: no" >&5
16968 $as_echo "no" >&6; }
16979 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16980 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16983 cat confdefs.h
- <<_ACEOF >conftest.c
16986 cat confdefs.h
>>conftest.
$ac_ext
16987 cat >>conftest.
$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16991 #include <linux/bio.h>
16993 void wanted_end_io(struct bio *bio) { return; }
16995 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
17010 cat - <<_ACEOF >conftest.h
17015 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17016 echo "obj-m := conftest.o" >build
/Makefile
17018 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17019 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17031 { $as_echo "$as_me:$LINENO: result: yes" >&5
17032 $as_echo "yes" >&6; }
17034 cat >>confdefs.h
<<\_ACEOF
17035 #define HAVE_1ARG_BIO_END_IO_T 1
17040 $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.
$ac_ext >&5
17043 { $as_echo "$as_me:$LINENO: result: no" >&5
17044 $as_echo "no" >&6; }
17055 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
17056 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
17059 cat confdefs.h
- <<_ACEOF >conftest.c
17062 cat confdefs.h
>>conftest.
$ac_ext
17063 cat >>conftest.
$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17067 #include <linux/bio.h>
17073 struct bio bio __attribute__ ((unused));
17074 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
17076 bio.bi_status = status;
17086 cat - <<_ACEOF >conftest.h
17091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17092 echo "obj-m := conftest.o" >build
/Makefile
17094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17095 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17107 { $as_echo "$as_me:$LINENO: result: yes" >&5
17108 $as_echo "yes" >&6; }
17110 cat >>confdefs.h
<<\_ACEOF
17111 #define HAVE_BIO_BI_STATUS 1
17116 $as_echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.
$ac_ext >&5
17119 { $as_echo "$as_me:$LINENO: result: no" >&5
17120 $as_echo "no" >&6; }
17131 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
17132 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
17135 cat confdefs.h
- <<_ACEOF >conftest.c
17138 cat confdefs.h
>>conftest.
$ac_ext
17139 cat >>conftest.
$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17143 #include <linux/bio.h>
17149 int flags __attribute__ ((unused));
17150 flags = BIO_RW_BARRIER;
17160 cat - <<_ACEOF >conftest.h
17165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17166 echo "obj-m := conftest.o" >build
/Makefile
17168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17181 { $as_echo "$as_me:$LINENO: result: yes" >&5
17182 $as_echo "yes" >&6; }
17184 cat >>confdefs.h
<<\_ACEOF
17185 #define HAVE_BIO_RW_BARRIER 1
17190 $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.
$ac_ext >&5
17193 { $as_echo "$as_me:$LINENO: result: no" >&5
17194 $as_echo "no" >&6; }
17205 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
17206 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
17209 cat confdefs.h
- <<_ACEOF >conftest.c
17212 cat confdefs.h
>>conftest.
$ac_ext
17213 cat >>conftest.
$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17217 #include <linux/bio.h>
17223 int flags __attribute__ ((unused));
17224 flags = BIO_RW_DISCARD;
17234 cat - <<_ACEOF >conftest.h
17239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17240 echo "obj-m := conftest.o" >build
/Makefile
17242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17255 { $as_echo "$as_me:$LINENO: result: yes" >&5
17256 $as_echo "yes" >&6; }
17258 cat >>confdefs.h
<<\_ACEOF
17259 #define HAVE_BIO_RW_DISCARD 1
17264 $as_echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.
$ac_ext >&5
17267 { $as_echo "$as_me:$LINENO: result: no" >&5
17268 $as_echo "no" >&6; }
17279 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
17280 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
17283 cat confdefs.h
- <<_ACEOF >conftest.c
17286 cat confdefs.h
>>conftest.
$ac_ext
17287 cat >>conftest.
$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17291 #include <linux/blkdev.h>
17297 struct request_queue q;
17298 struct backing_dev_info bdi;
17299 q.backing_dev_info = &bdi;
17309 cat - <<_ACEOF >conftest.h
17314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17315 echo "obj-m := conftest.o" >build
/Makefile
17317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17330 { $as_echo "$as_me:$LINENO: result: yes" >&5
17331 $as_echo "yes" >&6; }
17333 cat >>confdefs.h
<<\_ACEOF
17334 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
17339 $as_echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17342 { $as_echo "$as_me:$LINENO: result: no" >&5
17343 $as_echo "no" >&6; }
17354 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
17355 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
17358 cat confdefs.h
- <<_ACEOF >conftest.c
17361 cat confdefs.h
>>conftest.
$ac_ext
17362 cat >>conftest.
$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17366 #include <linux/kernel.h>
17367 #include <linux/blkdev.h>
17373 struct request_queue *q = NULL;
17374 blk_queue_flag_clear(0, q);
17384 cat - <<_ACEOF >conftest.h
17389 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17390 echo "obj-m := conftest.o" >build
/Makefile
17392 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17393 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17406 { $as_echo "$as_me:$LINENO: result: yes" >&5
17407 $as_echo "yes" >&6; }
17409 cat >>confdefs.h
<<\_ACEOF
17410 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
17415 $as_echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.
$ac_ext >&5
17418 { $as_echo "$as_me:$LINENO: result: no" >&5
17419 $as_echo "no" >&6; }
17430 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
17431 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
17434 cat confdefs.h
- <<_ACEOF >conftest.c
17437 cat confdefs.h
>>conftest.
$ac_ext
17438 cat >>conftest.
$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17442 #include <linux/kernel.h>
17443 #include <linux/blkdev.h>
17449 struct request_queue *q = NULL;
17450 blk_queue_flag_set(0, q);
17460 cat - <<_ACEOF >conftest.h
17465 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17466 echo "obj-m := conftest.o" >build
/Makefile
17468 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17469 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17481 { $as_echo "$as_me:$LINENO: result: yes" >&5
17482 $as_echo "yes" >&6; }
17484 cat >>confdefs.h
<<\_ACEOF
17485 #define HAVE_BLK_QUEUE_FLAG_SET 1
17490 $as_echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.
$ac_ext >&5
17493 { $as_echo "$as_me:$LINENO: result: no" >&5
17494 $as_echo "no" >&6; }
17505 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
17506 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
17507 tmp_flags
="$EXTRA_KCFLAGS"
17508 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17511 cat confdefs.h
- <<_ACEOF >conftest.c
17514 cat confdefs.h
>>conftest.
$ac_ext
17515 cat >>conftest.
$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17519 #include <linux/blkdev.h>
17525 struct request_queue *q = NULL;
17526 (void) blk_queue_flush(q, REQ_FLUSH);
17536 cat - <<_ACEOF >conftest.h
17541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17542 echo "obj-m := conftest.o" >build
/Makefile
17544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17557 { $as_echo "$as_me:$LINENO: result: yes" >&5
17558 $as_echo "yes" >&6; }
17560 cat >>confdefs.h
<<\_ACEOF
17561 #define HAVE_BLK_QUEUE_FLUSH 1
17565 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
17566 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
17569 cat confdefs.h
- <<_ACEOF >conftest.c
17572 cat confdefs.h
>>conftest.
$ac_ext
17573 cat >>conftest.
$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17577 #include <linux/module.h>
17578 #include <linux/blkdev.h>
17580 MODULE_LICENSE("$ZFS_META_LICENSE");
17586 struct request_queue *q = NULL;
17587 (void) blk_queue_flush(q, REQ_FLUSH);
17597 cat - <<_ACEOF >conftest.h
17602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17603 echo "obj-m := conftest.o" >build
/Makefile
17605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17618 { $as_echo "$as_me:$LINENO: result: no" >&5
17619 $as_echo "no" >&6; }
17622 $as_echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.
$ac_ext >&5
17625 { $as_echo "$as_me:$LINENO: result: yes" >&5
17626 $as_echo "yes" >&6; }
17628 cat >>confdefs.h
<<\_ACEOF
17629 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17642 $as_echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.
$ac_ext >&5
17645 { $as_echo "$as_me:$LINENO: result: no" >&5
17646 $as_echo "no" >&6; }
17656 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17657 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
17660 cat confdefs.h
- <<_ACEOF >conftest.c
17663 cat confdefs.h
>>conftest.
$ac_ext
17664 cat >>conftest.
$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17668 #include <linux/kernel.h>
17669 #include <linux/blkdev.h>
17676 struct request_queue *q = NULL;
17677 blk_queue_write_cache(q, true, true);
17687 cat - <<_ACEOF >conftest.h
17692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17693 echo "obj-m := conftest.o" >build
/Makefile
17695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
17709 $as_echo "yes" >&6; }
17711 cat >>confdefs.h
<<\_ACEOF
17712 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
17716 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17717 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
17720 cat confdefs.h
- <<_ACEOF >conftest.c
17723 cat confdefs.h
>>conftest.
$ac_ext
17724 cat >>conftest.
$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17728 #include <linux/kernel.h>
17729 #include <linux/module.h>
17730 #include <linux/blkdev.h>
17732 MODULE_LICENSE("$ZFS_META_LICENSE");
17738 struct request_queue *q = NULL;
17739 blk_queue_write_cache(q, true, true);
17749 cat - <<_ACEOF >conftest.h
17754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17755 echo "obj-m := conftest.o" >build
/Makefile
17757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17770 { $as_echo "$as_me:$LINENO: result: no" >&5
17771 $as_echo "no" >&6; }
17774 $as_echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.
$ac_ext >&5
17777 { $as_echo "$as_me:$LINENO: result: yes" >&5
17778 $as_echo "yes" >&6; }
17780 cat >>confdefs.h
<<\_ACEOF
17781 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17794 $as_echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.
$ac_ext >&5
17797 { $as_echo "$as_me:$LINENO: result: no" >&5
17798 $as_echo "no" >&6; }
17808 EXTRA_KCFLAGS
="$tmp_flags"
17811 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17812 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17813 tmp_flags
="$EXTRA_KCFLAGS"
17814 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17817 cat confdefs.h
- <<_ACEOF >conftest.c
17820 cat confdefs.h
>>conftest.
$ac_ext
17821 cat >>conftest.
$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17825 #include <linux/blkdev.h>
17831 struct request_queue *q = NULL;
17832 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
17842 cat - <<_ACEOF >conftest.h
17847 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17848 echo "obj-m := conftest.o" >build
/Makefile
17850 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17851 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17863 { $as_echo "$as_me:$LINENO: result: yes" >&5
17864 $as_echo "yes" >&6; }
17866 cat >>confdefs.h
<<\_ACEOF
17867 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.
$ac_ext >&5
17875 { $as_echo "$as_me:$LINENO: result: no" >&5
17876 $as_echo "no" >&6; }
17885 EXTRA_KCFLAGS
="$tmp_flags"
17888 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17889 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17890 tmp_flags
="$EXTRA_KCFLAGS"
17891 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17894 cat confdefs.h
- <<_ACEOF >conftest.c
17897 cat confdefs.h
>>conftest.
$ac_ext
17898 cat >>conftest.
$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17902 #include <linux/blkdev.h>
17908 struct request_queue *q = NULL;
17909 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
17919 cat - <<_ACEOF >conftest.h
17924 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17925 echo "obj-m := conftest.o" >build
/Makefile
17927 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17928 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17940 { $as_echo "$as_me:$LINENO: result: yes" >&5
17941 $as_echo "yes" >&6; }
17943 cat >>confdefs.h
<<\_ACEOF
17944 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17949 $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.
$ac_ext >&5
17952 { $as_echo "$as_me:$LINENO: result: no" >&5
17953 $as_echo "no" >&6; }
17962 EXTRA_KCFLAGS
="$tmp_flags"
17965 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17966 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17967 tmp_flags
="$EXTRA_KCFLAGS"
17968 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17971 cat confdefs.h
- <<_ACEOF >conftest.c
17974 cat confdefs.h
>>conftest.
$ac_ext
17975 cat >>conftest.
$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17979 #include <linux/blkdev.h>
17985 extern enum bio_rw_flags rw;
17987 rw = BIO_RW_UNPLUG;
17997 cat - <<_ACEOF >conftest.h
18002 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18003 echo "obj-m := conftest.o" >build
/Makefile
18005 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18006 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18018 { $as_echo "$as_me:$LINENO: result: yes" >&5
18019 $as_echo "yes" >&6; }
18021 cat >>confdefs.h
<<\_ACEOF
18022 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
18027 $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.
$ac_ext >&5
18030 { $as_echo "$as_me:$LINENO: result: no" >&5
18031 $as_echo "no" >&6; }
18040 EXTRA_KCFLAGS
="$tmp_flags"
18043 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
18044 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
18045 tmp_flags
="$EXTRA_KCFLAGS"
18046 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
18049 cat confdefs.h
- <<_ACEOF >conftest.c
18052 cat confdefs.h
>>conftest.
$ac_ext
18053 cat >>conftest.
$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18057 #include <linux/blkdev.h>
18063 struct blk_plug plug;
18065 blk_start_plug(&plug);
18066 blk_finish_plug(&plug);
18076 cat - <<_ACEOF >conftest.h
18081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18082 echo "obj-m := conftest.o" >build
/Makefile
18084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18085 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18097 { $as_echo "$as_me:$LINENO: result: yes" >&5
18098 $as_echo "yes" >&6; }
18100 cat >>confdefs.h
<<\_ACEOF
18101 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
18106 $as_echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.
$ac_ext >&5
18109 { $as_echo "$as_me:$LINENO: result: no" >&5
18110 $as_echo "no" >&6; }
18119 EXTRA_KCFLAGS
="$tmp_flags"
18121 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
18122 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
18126 cat confdefs.h
- <<_ACEOF >conftest.c
18129 cat confdefs.h
>>conftest.
$ac_ext
18130 cat >>conftest.
$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18134 #include <linux/genhd.h>
18140 struct gendisk *disk = NULL;
18141 (void) get_disk_and_module(disk);
18151 cat - <<_ACEOF >conftest.h
18156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18157 echo "obj-m := conftest.o" >build
/Makefile
18159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18173 $as_echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.
$ac_ext >&5
18183 if test $rc -ne 0; then :
18185 { $as_echo "$as_me:$LINENO: result: no" >&5
18186 $as_echo "no" >&6; }
18189 if test "x$enable_linux_builtin" != xyes
; then
18191 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
18192 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18194 if test $rc -ne 0; then
18196 for file in block
/genhd.c
; do
18197 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
18198 "$LINUX/$file" 2>/dev
/null
18200 if test $rc -eq 0; then
18205 if test $export -eq 0; then :
18215 if test $rc -ne 0; then :
18217 { $as_echo "$as_me:$LINENO: result: no" >&5
18218 $as_echo "no" >&6; }
18222 { $as_echo "$as_me:$LINENO: result: yes" >&5
18223 $as_echo "yes" >&6; }
18225 cat >>confdefs.h
<<\_ACEOF
18226 #define HAVE_GET_DISK_AND_MODULE 1
18235 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18236 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18237 tmp_flags
="$EXTRA_KCFLAGS"
18238 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
18241 cat confdefs.h
- <<_ACEOF >conftest.c
18244 cat confdefs.h
>>conftest.
$ac_ext
18245 cat >>conftest.
$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18249 #include <linux/blkdev.h>
18255 struct gendisk *disk = NULL;
18256 (void) get_disk_ro(disk);
18266 cat - <<_ACEOF >conftest.h
18271 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18272 echo "obj-m := conftest.o" >build
/Makefile
18274 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18275 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18287 { $as_echo "$as_me:$LINENO: result: yes" >&5
18288 $as_echo "yes" >&6; }
18290 cat >>confdefs.h
<<\_ACEOF
18291 #define HAVE_GET_DISK_RO 1
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.
$ac_ext >&5
18299 { $as_echo "$as_me:$LINENO: result: no" >&5
18300 $as_echo "no" >&6; }
18309 EXTRA_KCFLAGS
="$tmp_flags"
18311 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
18312 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
18316 cat confdefs.h
- <<_ACEOF >conftest.c
18319 cat confdefs.h
>>conftest.
$ac_ext
18320 cat >>conftest.
$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18324 #include <linux/genhd.h>
18330 get_gendisk(0, NULL);
18340 cat - <<_ACEOF >conftest.h
18345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18346 echo "obj-m := conftest.o" >build
/Makefile
18348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18349 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18372 if test $rc -ne 0; then :
18374 { $as_echo "$as_me:$LINENO: result: no" >&5
18375 $as_echo "no" >&6; }
18378 if test "x$enable_linux_builtin" != xyes
; then
18380 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
18381 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18383 if test $rc -ne 0; then
18385 for file in block
/genhd.c
; do
18386 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
18387 "$LINUX/$file" 2>/dev
/null
18389 if test $rc -eq 0; then
18394 if test $export -eq 0; then :
18404 if test $rc -ne 0; then :
18406 { $as_echo "$as_me:$LINENO: result: no" >&5
18407 $as_echo "no" >&6; }
18411 { $as_echo "$as_me:$LINENO: result: yes" >&5
18412 $as_echo "yes" >&6; }
18414 cat >>confdefs.h
<<\_ACEOF
18415 #define HAVE_GET_GENDISK 1
18424 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
18425 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
18428 cat confdefs.h
- <<_ACEOF >conftest.c
18431 cat confdefs.h
>>conftest.
$ac_ext
18432 cat >>conftest.
$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18436 #include <linux/bio.h>
18442 struct bio *bio __attribute__ ((unused)) = NULL;
18444 bio_set_op_attrs(bio, 0, 0);
18454 cat - <<_ACEOF >conftest.h
18459 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18460 echo "obj-m := conftest.o" >build
/Makefile
18462 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18463 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18475 { $as_echo "$as_me:$LINENO: result: yes" >&5
18476 $as_echo "yes" >&6; }
18478 cat >>confdefs.h
<<\_ACEOF
18479 #define HAVE_BIO_SET_OP_ATTRS 1
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.
$ac_ext >&5
18487 { $as_echo "$as_me:$LINENO: result: no" >&5
18488 $as_echo "no" >&6; }
18499 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
18500 $as_echo_n "checking whether generic_readlink is global... " >&6; }
18503 cat confdefs.h
- <<_ACEOF >conftest.c
18506 cat confdefs.h
>>conftest.
$ac_ext
18507 cat >>conftest.
$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18511 #include <linux/fs.h>
18517 int i __attribute__ ((unused));
18519 i = generic_readlink(NULL, NULL, 0);
18529 cat - <<_ACEOF >conftest.h
18534 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18535 echo "obj-m := conftest.o" >build
/Makefile
18537 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18538 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18550 { $as_echo "$as_me:$LINENO: result: yes" >&5
18551 $as_echo "yes" >&6; }
18553 cat >>confdefs.h
<<\_ACEOF
18554 #define HAVE_GENERIC_READLINK 1
18559 $as_echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.
$ac_ext >&5
18562 { $as_echo "$as_me:$LINENO: result: no" >&5
18563 $as_echo "no" >&6; }
18574 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
18575 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
18578 cat confdefs.h
- <<_ACEOF >conftest.c
18581 cat confdefs.h
>>conftest.
$ac_ext
18582 cat >>conftest.
$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18586 #include <linux/blkdev.h>
18592 struct queue_limits ql __attribute__ ((unused));
18594 ql.discard_granularity = 0;
18604 cat - <<_ACEOF >conftest.h
18609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18610 echo "obj-m := conftest.o" >build
/Makefile
18612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18625 { $as_echo "$as_me:$LINENO: result: yes" >&5
18626 $as_echo "yes" >&6; }
18628 cat >>confdefs.h
<<\_ACEOF
18629 #define HAVE_DISCARD_GRANULARITY 1
18634 $as_echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.
$ac_ext >&5
18637 { $as_echo "$as_me:$LINENO: result: no" >&5
18638 $as_echo "no" >&6; }
18649 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
18650 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
18653 cat confdefs.h
- <<_ACEOF >conftest.c
18656 cat confdefs.h
>>conftest.
$ac_ext
18657 cat >>conftest.
$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18661 #include <linux/fs.h>
18662 #include <linux/xattr.h>
18664 const struct xattr_handler xattr_test_handler = {
18670 const struct xattr_handler *xattr_handlers[] = {
18671 &xattr_test_handler,
18674 const struct super_block sb __attribute__ ((unused)) = {
18675 .s_xattr = xattr_handlers,
18691 cat - <<_ACEOF >conftest.h
18696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18697 echo "obj-m := conftest.o" >build
/Makefile
18699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18700 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18712 { $as_echo "$as_me:$LINENO: result: yes" >&5
18713 $as_echo "yes" >&6; }
18715 cat >>confdefs.h
<<\_ACEOF
18716 #define HAVE_CONST_XATTR_HANDLER 1
18721 $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.
$ac_ext >&5
18724 { $as_echo "$as_me:$LINENO: result: no" >&5
18725 $as_echo "no" >&6; }
18736 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18737 $as_echo_n "checking whether xattr_handler has name... " >&6; }
18740 cat confdefs.h
- <<_ACEOF >conftest.c
18743 cat confdefs.h
>>conftest.
$ac_ext
18744 cat >>conftest.
$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18748 #include <linux/xattr.h>
18750 static const struct xattr_handler
18751 xops __attribute__ ((unused)) = {
18752 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18768 cat - <<_ACEOF >conftest.h
18773 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18774 echo "obj-m := conftest.o" >build
/Makefile
18776 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18777 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18789 { $as_echo "$as_me:$LINENO: result: yes" >&5
18790 $as_echo "yes" >&6; }
18792 cat >>confdefs.h
<<\_ACEOF
18793 #define HAVE_XATTR_HANDLER_NAME 1
18798 $as_echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.
$ac_ext >&5
18801 { $as_echo "$as_me:$LINENO: result: no" >&5
18802 $as_echo "no" >&6; }
18813 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18814 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
18817 cat confdefs.h
- <<_ACEOF >conftest.c
18820 cat confdefs.h
>>conftest.
$ac_ext
18821 cat >>conftest.
$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18825 #include <linux/xattr.h>
18827 int get(const struct xattr_handler *handler,
18828 struct dentry *dentry, struct inode *inode,
18829 const char *name, void *buffer, size_t size) { return 0; }
18830 static const struct xattr_handler
18831 xops __attribute__ ((unused)) = {
18848 cat - <<_ACEOF >conftest.h
18853 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18854 echo "obj-m := conftest.o" >build
/Makefile
18856 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18857 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18869 { $as_echo "$as_me:$LINENO: result: yes" >&5
18870 $as_echo "yes" >&6; }
18872 cat >>confdefs.h
<<\_ACEOF
18873 #define HAVE_XATTR_GET_DENTRY_INODE 1
18878 $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.
$ac_ext >&5
18881 { $as_echo "$as_me:$LINENO: result: no" >&5
18882 $as_echo "no" >&6; }
18883 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18884 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
18887 cat confdefs.h
- <<_ACEOF >conftest.c
18890 cat confdefs.h
>>conftest.
$ac_ext
18891 cat >>conftest.
$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18895 #include <linux/xattr.h>
18897 int get(const struct xattr_handler *handler,
18898 struct dentry *dentry, const char *name,
18899 void *buffer, size_t size) { return 0; }
18900 static const struct xattr_handler
18901 xops __attribute__ ((unused)) = {
18918 cat - <<_ACEOF >conftest.h
18923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18924 echo "obj-m := conftest.o" >build
/Makefile
18926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18927 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18939 { $as_echo "$as_me:$LINENO: result: yes" >&5
18940 $as_echo "yes" >&6; }
18942 cat >>confdefs.h
<<\_ACEOF
18943 #define HAVE_XATTR_GET_HANDLER 1
18948 $as_echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 { $as_echo "$as_me:$LINENO: result: no" >&5
18952 $as_echo "no" >&6; }
18953 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18954 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18957 cat confdefs.h
- <<_ACEOF >conftest.c
18960 cat confdefs.h
>>conftest.
$ac_ext
18961 cat >>conftest.
$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18965 #include <linux/xattr.h>
18967 int get(struct dentry *dentry, const char *name,
18968 void *buffer, size_t size, int handler_flags)
18970 static const struct xattr_handler
18971 xops __attribute__ ((unused)) = {
18988 cat - <<_ACEOF >conftest.h
18993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18994 echo "obj-m := conftest.o" >build
/Makefile
18996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19009 { $as_echo "$as_me:$LINENO: result: yes" >&5
19010 $as_echo "yes" >&6; }
19012 cat >>confdefs.h
<<\_ACEOF
19013 #define HAVE_XATTR_GET_DENTRY 1
19018 $as_echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.
$ac_ext >&5
19021 { $as_echo "$as_me:$LINENO: result: no" >&5
19022 $as_echo "no" >&6; }
19023 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
19024 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
19027 cat confdefs.h
- <<_ACEOF >conftest.c
19030 cat confdefs.h
>>conftest.
$ac_ext
19031 cat >>conftest.
$ac_ext <<_ACEOF
19032 /* end confdefs.h. */
19035 #include <linux/xattr.h>
19037 int get(struct inode *ip, const char *name,
19038 void *buffer, size_t size) { return 0; }
19039 static const struct xattr_handler
19040 xops __attribute__ ((unused)) = {
19057 cat - <<_ACEOF >conftest.h
19062 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19063 echo "obj-m := conftest.o" >build
/Makefile
19065 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19066 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19078 { $as_echo "$as_me:$LINENO: result: yes" >&5
19079 $as_echo "yes" >&6; }
19081 cat >>confdefs.h
<<\_ACEOF
19082 #define HAVE_XATTR_GET_INODE 1
19087 $as_echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.
$ac_ext >&5
19090 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19091 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19092 { (exit 1); exit 1; }; }
19127 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
19128 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
19131 cat confdefs.h
- <<_ACEOF >conftest.c
19134 cat confdefs.h
>>conftest.
$ac_ext
19135 cat >>conftest.
$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19139 #include <linux/xattr.h>
19141 int set(const struct xattr_handler *handler,
19142 struct dentry *dentry, struct inode *inode,
19143 const char *name, const void *buffer,
19144 size_t size, int flags)
19146 static const struct xattr_handler
19147 xops __attribute__ ((unused)) = {
19164 cat - <<_ACEOF >conftest.h
19169 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19170 echo "obj-m := conftest.o" >build
/Makefile
19172 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19173 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19185 { $as_echo "$as_me:$LINENO: result: yes" >&5
19186 $as_echo "yes" >&6; }
19188 cat >>confdefs.h
<<\_ACEOF
19189 #define HAVE_XATTR_SET_DENTRY_INODE 1
19194 $as_echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.
$ac_ext >&5
19197 { $as_echo "$as_me:$LINENO: result: no" >&5
19198 $as_echo "no" >&6; }
19199 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
19200 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
19203 cat confdefs.h
- <<_ACEOF >conftest.c
19206 cat confdefs.h
>>conftest.
$ac_ext
19207 cat >>conftest.
$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19211 #include <linux/xattr.h>
19213 int set(const struct xattr_handler *handler,
19214 struct dentry *dentry, const char *name,
19215 const void *buffer, size_t size, int flags)
19217 static const struct xattr_handler
19218 xops __attribute__ ((unused)) = {
19235 cat - <<_ACEOF >conftest.h
19240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19241 echo "obj-m := conftest.o" >build
/Makefile
19243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19244 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19256 { $as_echo "$as_me:$LINENO: result: yes" >&5
19257 $as_echo "yes" >&6; }
19259 cat >>confdefs.h
<<\_ACEOF
19260 #define HAVE_XATTR_SET_HANDLER 1
19265 $as_echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.
$ac_ext >&5
19268 { $as_echo "$as_me:$LINENO: result: no" >&5
19269 $as_echo "no" >&6; }
19270 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19271 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19274 cat confdefs.h
- <<_ACEOF >conftest.c
19277 cat confdefs.h
>>conftest.
$ac_ext
19278 cat >>conftest.
$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19282 #include <linux/xattr.h>
19284 int set(struct dentry *dentry, const char *name,
19285 const void *buffer, size_t size, int flags,
19286 int handler_flags) { return 0; }
19287 static const struct xattr_handler
19288 xops __attribute__ ((unused)) = {
19305 cat - <<_ACEOF >conftest.h
19310 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19311 echo "obj-m := conftest.o" >build
/Makefile
19313 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19314 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19326 { $as_echo "$as_me:$LINENO: result: yes" >&5
19327 $as_echo "yes" >&6; }
19329 cat >>confdefs.h
<<\_ACEOF
19330 #define HAVE_XATTR_SET_DENTRY 1
19335 $as_echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.
$ac_ext >&5
19338 { $as_echo "$as_me:$LINENO: result: no" >&5
19339 $as_echo "no" >&6; }
19340 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
19341 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
19344 cat confdefs.h
- <<_ACEOF >conftest.c
19347 cat confdefs.h
>>conftest.
$ac_ext
19348 cat >>conftest.
$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19352 #include <linux/xattr.h>
19354 int set(struct inode *ip, const char *name,
19355 const void *buffer, size_t size, int flags)
19357 static const struct xattr_handler
19358 xops __attribute__ ((unused)) = {
19375 cat - <<_ACEOF >conftest.h
19380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19381 echo "obj-m := conftest.o" >build
/Makefile
19383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19396 { $as_echo "$as_me:$LINENO: result: yes" >&5
19397 $as_echo "yes" >&6; }
19399 cat >>confdefs.h
<<\_ACEOF
19400 #define HAVE_XATTR_SET_INODE 1
19405 $as_echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.
$ac_ext >&5
19408 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19409 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19410 { (exit 1); exit 1; }; }
19445 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
19446 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
19449 cat confdefs.h
- <<_ACEOF >conftest.c
19452 cat confdefs.h
>>conftest.
$ac_ext
19453 cat >>conftest.
$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19457 #include <linux/xattr.h>
19459 bool list(struct dentry *dentry) { return 0; }
19460 static const struct xattr_handler
19461 xops __attribute__ ((unused)) = {
19478 cat - <<_ACEOF >conftest.h
19483 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19484 echo "obj-m := conftest.o" >build
/Makefile
19486 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19487 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19499 { $as_echo "$as_me:$LINENO: result: yes" >&5
19500 $as_echo "yes" >&6; }
19502 cat >>confdefs.h
<<\_ACEOF
19503 #define HAVE_XATTR_LIST_SIMPLE 1
19508 $as_echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.
$ac_ext >&5
19511 { $as_echo "$as_me:$LINENO: result: no" >&5
19512 $as_echo "no" >&6; }
19513 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
19514 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
19517 cat confdefs.h
- <<_ACEOF >conftest.c
19520 cat confdefs.h
>>conftest.
$ac_ext
19521 cat >>conftest.
$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19525 #include <linux/xattr.h>
19527 size_t list(const struct xattr_handler *handler,
19528 struct dentry *dentry, char *list, size_t list_size,
19529 const char *name, size_t name_len) { return 0; }
19530 static const struct xattr_handler
19531 xops __attribute__ ((unused)) = {
19548 cat - <<_ACEOF >conftest.h
19553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19554 echo "obj-m := conftest.o" >build
/Makefile
19556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19557 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19569 { $as_echo "$as_me:$LINENO: result: yes" >&5
19570 $as_echo "yes" >&6; }
19572 cat >>confdefs.h
<<\_ACEOF
19573 #define HAVE_XATTR_LIST_HANDLER 1
19578 $as_echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.
$ac_ext >&5
19581 { $as_echo "$as_me:$LINENO: result: no" >&5
19582 $as_echo "no" >&6; }
19583 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
19584 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
19587 cat confdefs.h
- <<_ACEOF >conftest.c
19590 cat confdefs.h
>>conftest.
$ac_ext
19591 cat >>conftest.
$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19595 #include <linux/xattr.h>
19597 size_t list(struct dentry *dentry,
19598 char *list, size_t list_size,
19599 const char *name, size_t name_len,
19600 int handler_flags) { return 0; }
19601 static const struct xattr_handler
19602 xops __attribute__ ((unused)) = {
19619 cat - <<_ACEOF >conftest.h
19624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19625 echo "obj-m := conftest.o" >build
/Makefile
19627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19640 { $as_echo "$as_me:$LINENO: result: yes" >&5
19641 $as_echo "yes" >&6; }
19643 cat >>confdefs.h
<<\_ACEOF
19644 #define HAVE_XATTR_LIST_DENTRY 1
19649 $as_echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.
$ac_ext >&5
19652 { $as_echo "$as_me:$LINENO: result: no" >&5
19653 $as_echo "no" >&6; }
19654 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
19655 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
19658 cat confdefs.h
- <<_ACEOF >conftest.c
19661 cat confdefs.h
>>conftest.
$ac_ext
19662 cat >>conftest.
$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19666 #include <linux/xattr.h>
19668 size_t list(struct inode *ip, char *lst,
19669 size_t list_size, const char *name,
19670 size_t name_len) { return 0; }
19671 static const struct xattr_handler
19672 xops __attribute__ ((unused)) = {
19689 cat - <<_ACEOF >conftest.h
19694 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19695 echo "obj-m := conftest.o" >build
/Makefile
19697 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19698 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19710 { $as_echo "$as_me:$LINENO: result: yes" >&5
19711 $as_echo "yes" >&6; }
19713 cat >>confdefs.h
<<\_ACEOF
19714 #define HAVE_XATTR_LIST_INODE 1
19719 $as_echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.
$ac_ext >&5
19722 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19723 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19724 { (exit 1); exit 1; }; }
19759 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19760 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19763 cat confdefs.h
- <<_ACEOF >conftest.c
19766 cat confdefs.h
>>conftest.
$ac_ext
19767 cat >>conftest.
$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19771 #include <linux/fs.h>
19777 struct inode *ip = NULL;
19778 (void) inode_owner_or_capable(ip);
19788 cat - <<_ACEOF >conftest.h
19793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19794 echo "obj-m := conftest.o" >build
/Makefile
19796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19809 { $as_echo "$as_me:$LINENO: result: yes" >&5
19810 $as_echo "yes" >&6; }
19812 cat >>confdefs.h
<<\_ACEOF
19813 #define HAVE_INODE_OWNER_OR_CAPABLE 1
19818 $as_echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.
$ac_ext >&5
19821 { $as_echo "$as_me:$LINENO: result: no" >&5
19822 $as_echo "no" >&6; }
19823 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19824 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
19827 cat confdefs.h
- <<_ACEOF >conftest.c
19830 cat confdefs.h
>>conftest.
$ac_ext
19831 cat >>conftest.
$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19835 #include <linux/fs.h>
19836 #include <linux/sched.h>
19842 struct inode *ip = NULL;
19843 (void) is_owner_or_cap(ip);
19853 cat - <<_ACEOF >conftest.h
19858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19859 echo "obj-m := conftest.o" >build
/Makefile
19861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19862 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19874 { $as_echo "$as_me:$LINENO: result: yes" >&5
19875 $as_echo "yes" >&6; }
19877 cat >>confdefs.h
<<\_ACEOF
19878 #define HAVE_IS_OWNER_OR_CAP 1
19883 $as_echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.
$ac_ext >&5
19886 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19887 https://github.com/zfsonlinux/zfs/issues/new" >&5
19888 $as_echo "$as_me: error: no - Please file a bug report at
19889 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19890 { (exit 1); exit 1; }; }
19909 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19910 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19913 cat confdefs.h
- <<_ACEOF >conftest.c
19916 cat confdefs.h
>>conftest.
$ac_ext
19917 cat >>conftest.
$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19921 #include <linux/cred.h>
19922 #include <linux/fs.h>
19923 #include <linux/posix_acl_xattr.h>
19929 posix_acl_from_xattr(&init_user_ns, NULL, 0);
19939 cat - <<_ACEOF >conftest.h
19944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19945 echo "obj-m := conftest.o" >build
/Makefile
19947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19960 { $as_echo "$as_me:$LINENO: result: yes" >&5
19961 $as_echo "yes" >&6; }
19963 cat >>confdefs.h
<<\_ACEOF
19964 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19969 $as_echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.
$ac_ext >&5
19972 { $as_echo "$as_me:$LINENO: result: no" >&5
19973 $as_echo "no" >&6; }
19984 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19985 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
19988 cat confdefs.h
- <<_ACEOF >conftest.c
19991 cat confdefs.h
>>conftest.
$ac_ext
19992 cat >>conftest.
$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19996 #include <linux/cred.h>
19997 #include <linux/fs.h>
19998 #include <linux/posix_acl.h>
20004 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20005 posix_acl_release(tmp);
20015 cat - <<_ACEOF >conftest.h
20020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20021 echo "obj-m := conftest.o" >build
/Makefile
20023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20036 { $as_echo "$as_me:$LINENO: result: yes" >&5
20037 $as_echo "yes" >&6; }
20039 cat >>confdefs.h
<<\_ACEOF
20040 #define HAVE_POSIX_ACL_RELEASE 1
20044 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
20045 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
20048 cat confdefs.h
- <<_ACEOF >conftest.c
20051 cat confdefs.h
>>conftest.
$ac_ext
20052 cat >>conftest.
$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20056 #include <linux/module.h>
20057 #include <linux/cred.h>
20058 #include <linux/fs.h>
20059 #include <linux/posix_acl.h>
20061 MODULE_LICENSE("$ZFS_META_LICENSE");
20067 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20068 posix_acl_release(tmp);
20078 cat - <<_ACEOF >conftest.h
20083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20084 echo "obj-m := conftest.o" >build
/Makefile
20086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20087 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20099 { $as_echo "$as_me:$LINENO: result: no" >&5
20100 $as_echo "no" >&6; }
20103 $as_echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.
$ac_ext >&5
20106 { $as_echo "$as_me:$LINENO: result: yes" >&5
20107 $as_echo "yes" >&6; }
20109 cat >>confdefs.h
<<\_ACEOF
20110 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
20123 $as_echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.
$ac_ext >&5
20126 { $as_echo "$as_me:$LINENO: result: no" >&5
20127 $as_echo "no" >&6; }
20138 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
20139 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
20142 cat confdefs.h
- <<_ACEOF >conftest.c
20145 cat confdefs.h
>>conftest.
$ac_ext
20146 cat >>conftest.
$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20150 #include <linux/module.h>
20151 #include <linux/cred.h>
20152 #include <linux/fs.h>
20153 #include <linux/posix_acl.h>
20155 MODULE_LICENSE("$ZFS_META_LICENSE");
20161 struct inode *ip = NULL;
20162 struct posix_acl *acl = posix_acl_alloc(1, 0);
20163 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
20164 forget_cached_acl(ip, ACL_TYPE_ACCESS);
20174 cat - <<_ACEOF >conftest.h
20179 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20180 echo "obj-m := conftest.o" >build
/Makefile
20182 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20183 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20195 { $as_echo "$as_me:$LINENO: result: yes" >&5
20196 $as_echo "yes" >&6; }
20198 cat >>confdefs.h
<<\_ACEOF
20199 #define HAVE_SET_CACHED_ACL_USABLE 1
20204 $as_echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.
$ac_ext >&5
20207 { $as_echo "$as_me:$LINENO: result: no" >&5
20208 $as_echo "no" >&6; }
20219 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
20220 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
20223 cat confdefs.h
- <<_ACEOF >conftest.c
20226 cat confdefs.h
>>conftest.
$ac_ext
20227 cat >>conftest.
$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20231 #include <linux/fs.h>
20232 #include <linux/posix_acl.h>
20238 posix_acl_chmod(NULL, 0, 0)
20248 cat - <<_ACEOF >conftest.h
20253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20254 echo "obj-m := conftest.o" >build
/Makefile
20256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
20270 $as_echo "yes" >&6; }
20272 cat >>confdefs.h
<<\_ACEOF
20273 #define HAVE_POSIX_ACL_CHMOD 1
20278 $as_echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.
$ac_ext >&5
20281 { $as_echo "$as_me:$LINENO: result: no" >&5
20282 $as_echo "no" >&6; }
20292 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
20293 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
20296 cat confdefs.h
- <<_ACEOF >conftest.c
20299 cat confdefs.h
>>conftest.
$ac_ext
20300 cat >>conftest.
$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20304 #include <linux/fs.h>
20305 #include <linux/posix_acl.h>
20311 __posix_acl_chmod(NULL, 0, 0)
20321 cat - <<_ACEOF >conftest.h
20326 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20327 echo "obj-m := conftest.o" >build
/Makefile
20329 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20330 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20342 { $as_echo "$as_me:$LINENO: result: yes" >&5
20343 $as_echo "yes" >&6; }
20345 cat >>confdefs.h
<<\_ACEOF
20346 #define HAVE___POSIX_ACL_CHMOD 1
20351 $as_echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.
$ac_ext >&5
20354 { $as_echo "$as_me:$LINENO: result: no" >&5
20355 $as_echo "no" >&6; }
20366 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
20367 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
20370 cat confdefs.h
- <<_ACEOF >conftest.c
20373 cat confdefs.h
>>conftest.
$ac_ext
20374 cat >>conftest.
$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20378 #include <linux/fs.h>
20379 #include <linux/posix_acl.h>
20386 posix_acl_equiv_mode(NULL,&tmp);
20396 cat - <<_ACEOF >conftest.h
20401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20402 echo "obj-m := conftest.o" >build
/Makefile
20404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20417 { $as_echo "$as_me:$LINENO: result: yes" >&5
20418 $as_echo "yes" >&6; }
20420 cat >>confdefs.h
<<\_ACEOF
20421 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.
$ac_ext >&5
20429 { $as_echo "$as_me:$LINENO: result: no" >&5
20430 $as_echo "no" >&6; }
20441 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
20442 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
20445 cat confdefs.h
- <<_ACEOF >conftest.c
20448 cat confdefs.h
>>conftest.
$ac_ext
20449 cat >>conftest.
$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20453 #include <linux/fs.h>
20454 #include <linux/posix_acl.h>
20460 struct user_namespace *user_ns = NULL;
20461 const struct posix_acl *acl = NULL;
20464 error = posix_acl_valid(user_ns, acl);
20474 cat - <<_ACEOF >conftest.h
20479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20480 echo "obj-m := conftest.o" >build
/Makefile
20482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20495 { $as_echo "$as_me:$LINENO: result: yes" >&5
20496 $as_echo "yes" >&6; }
20498 cat >>confdefs.h
<<\_ACEOF
20499 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
20504 $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.
$ac_ext >&5
20507 { $as_echo "$as_me:$LINENO: result: no" >&5
20508 $as_echo "no" >&6; }
20519 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
20520 $as_echo_n "checking whether iops->permission() exists... " >&6; }
20523 cat confdefs.h
- <<_ACEOF >conftest.c
20526 cat confdefs.h
>>conftest.
$ac_ext
20527 cat >>conftest.
$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20531 #include <linux/fs.h>
20533 int permission_fn(struct inode *inode, int mask) { return 0; }
20535 static const struct inode_operations
20536 iops __attribute__ ((unused)) = {
20537 .permission = permission_fn,
20553 cat - <<_ACEOF >conftest.h
20558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20559 echo "obj-m := conftest.o" >build
/Makefile
20561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20574 { $as_echo "$as_me:$LINENO: result: yes" >&5
20575 $as_echo "yes" >&6; }
20577 cat >>confdefs.h
<<\_ACEOF
20578 #define HAVE_PERMISSION 1
20583 $as_echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.
$ac_ext >&5
20586 { $as_echo "$as_me:$LINENO: result: no" >&5
20587 $as_echo "no" >&6; }
20598 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
20599 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
20602 cat confdefs.h
- <<_ACEOF >conftest.c
20605 cat confdefs.h
>>conftest.
$ac_ext
20606 cat >>conftest.
$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20610 #include <linux/fs.h>
20611 #include <linux/sched.h>
20613 int permission_fn(struct inode *inode, int mask,
20614 struct nameidata *nd) { return 0; }
20616 static const struct inode_operations
20617 iops __attribute__ ((unused)) = {
20618 .permission = permission_fn,
20634 cat - <<_ACEOF >conftest.h
20639 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20640 echo "obj-m := conftest.o" >build
/Makefile
20642 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20643 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20655 { $as_echo "$as_me:$LINENO: result: yes" >&5
20656 $as_echo "yes" >&6; }
20658 cat >>confdefs.h
<<\_ACEOF
20659 #define HAVE_PERMISSION 1
20663 cat >>confdefs.h
<<\_ACEOF
20664 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.
$ac_ext >&5
20672 { $as_echo "$as_me:$LINENO: result: no" >&5
20673 $as_echo "no" >&6; }
20684 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
20685 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
20688 cat confdefs.h
- <<_ACEOF >conftest.c
20691 cat confdefs.h
>>conftest.
$ac_ext
20692 cat >>conftest.
$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20696 #include <linux/fs.h>
20698 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20700 static const struct inode_operations
20701 iops __attribute__ ((unused)) = {
20702 .check_acl = check_acl_fn,
20718 cat - <<_ACEOF >conftest.h
20723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20724 echo "obj-m := conftest.o" >build
/Makefile
20726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20739 { $as_echo "$as_me:$LINENO: result: yes" >&5
20740 $as_echo "yes" >&6; }
20742 cat >>confdefs.h
<<\_ACEOF
20743 #define HAVE_CHECK_ACL 1
20748 $as_echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.
$ac_ext >&5
20751 { $as_echo "$as_me:$LINENO: result: no" >&5
20752 $as_echo "no" >&6; }
20763 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20764 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
20767 cat confdefs.h
- <<_ACEOF >conftest.c
20770 cat confdefs.h
>>conftest.
$ac_ext
20771 cat >>conftest.
$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20775 #include <linux/fs.h>
20777 int check_acl_fn(struct inode *inode, int mask,
20778 unsigned int flags) { return 0; }
20780 static const struct inode_operations
20781 iops __attribute__ ((unused)) = {
20782 .check_acl = check_acl_fn,
20798 cat - <<_ACEOF >conftest.h
20803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20804 echo "obj-m := conftest.o" >build
/Makefile
20806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20819 { $as_echo "$as_me:$LINENO: result: yes" >&5
20820 $as_echo "yes" >&6; }
20822 cat >>confdefs.h
<<\_ACEOF
20823 #define HAVE_CHECK_ACL 1
20827 cat >>confdefs.h
<<\_ACEOF
20828 #define HAVE_CHECK_ACL_WITH_FLAGS 1
20833 $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.
$ac_ext >&5
20836 { $as_echo "$as_me:$LINENO: result: no" >&5
20837 $as_echo "no" >&6; }
20848 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20849 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
20852 cat confdefs.h
- <<_ACEOF >conftest.c
20855 cat confdefs.h
>>conftest.
$ac_ext
20856 cat >>conftest.
$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20860 #include <linux/fs.h>
20862 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20865 static const struct inode_operations
20866 iops __attribute__ ((unused)) = {
20867 .get_acl = get_acl_fn,
20883 cat - <<_ACEOF >conftest.h
20888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20889 echo "obj-m := conftest.o" >build
/Makefile
20891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20892 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20904 { $as_echo "$as_me:$LINENO: result: yes" >&5
20905 $as_echo "yes" >&6; }
20907 cat >>confdefs.h
<<\_ACEOF
20908 #define HAVE_GET_ACL 1
20913 $as_echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.
$ac_ext >&5
20916 { $as_echo "$as_me:$LINENO: result: no" >&5
20917 $as_echo "no" >&6; }
20928 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20929 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
20932 cat confdefs.h
- <<_ACEOF >conftest.c
20935 cat confdefs.h
>>conftest.
$ac_ext
20936 cat >>conftest.
$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20940 #include <linux/fs.h>
20942 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20945 static const struct inode_operations
20946 iops __attribute__ ((unused)) = {
20947 .set_acl = set_acl_fn,
20963 cat - <<_ACEOF >conftest.h
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 conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20984 { $as_echo "$as_me:$LINENO: result: yes" >&5
20985 $as_echo "yes" >&6; }
20987 cat >>confdefs.h
<<\_ACEOF
20988 #define HAVE_SET_ACL 1
20993 $as_echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.
$ac_ext >&5
20996 { $as_echo "$as_me:$LINENO: result: no" >&5
20997 $as_echo "no" >&6; }
21009 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
21010 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
21013 cat confdefs.h
- <<_ACEOF >conftest.c
21016 cat confdefs.h
>>conftest.
$ac_ext
21017 cat >>conftest.
$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21021 #include <linux/fs.h>
21024 const struct path *p, struct kstat *k,
21025 u32 request_mask, unsigned int query_flags)
21028 static const struct inode_operations
21029 iops __attribute__ ((unused)) = {
21030 .getattr = test_getattr,
21046 cat - <<_ACEOF >conftest.h
21051 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21052 echo "obj-m := conftest.o" >build
/Makefile
21054 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21055 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21067 { $as_echo "$as_me:$LINENO: result: yes" >&5
21068 $as_echo "yes" >&6; }
21070 cat >>confdefs.h
<<\_ACEOF
21071 #define HAVE_PATH_IOPS_GETATTR 1
21076 $as_echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.
$ac_ext >&5
21079 { $as_echo "$as_me:$LINENO: result: no" >&5
21080 $as_echo "no" >&6; }
21091 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
21092 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
21095 cat confdefs.h
- <<_ACEOF >conftest.c
21098 cat confdefs.h
>>conftest.
$ac_ext
21099 cat >>conftest.
$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21103 #include <linux/fs.h>
21106 struct vfsmount *mnt, struct dentry *d,
21110 static const struct inode_operations
21111 iops __attribute__ ((unused)) = {
21112 .getattr = test_getattr,
21128 cat - <<_ACEOF >conftest.h
21133 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21134 echo "obj-m := conftest.o" >build
/Makefile
21136 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21137 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21149 { $as_echo "$as_me:$LINENO: result: yes" >&5
21150 $as_echo "yes" >&6; }
21152 cat >>confdefs.h
<<\_ACEOF
21153 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
21158 $as_echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.
$ac_ext >&5
21161 { $as_echo "$as_me:$LINENO: result: no" >&5
21162 $as_echo "no" >&6; }
21174 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
21175 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
21178 cat confdefs.h
- <<_ACEOF >conftest.c
21181 cat confdefs.h
>>conftest.
$ac_ext
21182 cat >>conftest.
$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21186 #include <linux/fs.h>
21192 struct inode inode;
21193 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
21203 cat - <<_ACEOF >conftest.h
21208 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21209 echo "obj-m := conftest.o" >build
/Makefile
21211 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21212 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21224 { $as_echo "$as_me:$LINENO: result: yes" >&5
21225 $as_echo "yes" >&6; }
21227 cat >>confdefs.h
<<\_ACEOF
21228 #define HAVE_INODE_SET_FLAGS 1
21233 $as_echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.
$ac_ext >&5
21236 { $as_echo "$as_me:$LINENO: result: no" >&5
21237 $as_echo "no" >&6; }
21248 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
21249 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
21252 cat confdefs.h
- <<_ACEOF >conftest.c
21255 cat confdefs.h
>>conftest.
$ac_ext
21256 cat >>conftest.
$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21260 #include <linux/iversion.h>
21266 struct inode inode;
21267 inode_set_iversion(&inode, 1);
21277 cat - <<_ACEOF >conftest.h
21282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21283 echo "obj-m := conftest.o" >build
/Makefile
21285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21298 { $as_echo "$as_me:$LINENO: result: yes" >&5
21299 $as_echo "yes" >&6; }
21301 cat >>confdefs.h
<<\_ACEOF
21302 #define HAVE_INODE_SET_IVERSION 1
21307 $as_echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.
$ac_ext >&5
21310 { $as_echo "$as_me:$LINENO: result: no" >&5
21311 $as_echo "no" >&6; }
21322 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
21323 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
21326 cat confdefs.h
- <<_ACEOF >conftest.c
21329 cat confdefs.h
>>conftest.
$ac_ext
21330 cat >>conftest.
$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21334 #include <linux/fs.h>
21340 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
21350 cat - <<_ACEOF >conftest.h
21355 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21356 echo "obj-m := conftest.o" >build
/Makefile
21358 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21359 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21371 { $as_echo "$as_me:$LINENO: result: yes" >&5
21372 $as_echo "yes" >&6; }
21374 cat >>confdefs.h
<<\_ACEOF
21375 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
21380 $as_echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.
$ac_ext >&5
21383 { $as_echo "$as_me:$LINENO: result: no" >&5
21384 $as_echo "no" >&6; }
21395 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21396 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21400 cat confdefs.h
- <<_ACEOF >conftest.c
21403 cat confdefs.h
>>conftest.
$ac_ext
21404 cat >>conftest.
$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21408 #include <linux/fs.h>
21410 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21411 static struct super_operations sops __attribute__ ((unused)) = {
21412 .show_options = show_options,
21428 cat - <<_ACEOF >conftest.h
21433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21434 echo "obj-m := conftest.o" >build
/Makefile
21436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21437 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21449 { $as_echo "$as_me:$LINENO: result: yes" >&5
21450 $as_echo "yes" >&6; }
21452 cat >>confdefs.h
<<\_ACEOF
21453 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21458 $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.
$ac_ext >&5
21461 { $as_echo "$as_me:$LINENO: result: no" >&5
21462 $as_echo "no" >&6; }
21473 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
21474 $as_echo_n "checking whether file_inode() is available... " >&6; }
21477 cat confdefs.h
- <<_ACEOF >conftest.c
21480 cat confdefs.h
>>conftest.
$ac_ext
21481 cat >>conftest.
$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21485 #include <linux/fs.h>
21491 struct file *f = NULL;
21502 cat - <<_ACEOF >conftest.h
21507 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21508 echo "obj-m := conftest.o" >build
/Makefile
21510 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21511 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
21523 { $as_echo "$as_me:$LINENO: result: yes" >&5
21524 $as_echo "yes" >&6; }
21526 cat >>confdefs.h
<<\_ACEOF
21527 #define HAVE_FILE_INODE 1
21532 $as_echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.
$ac_ext >&5
21535 { $as_echo "$as_me:$LINENO: result: no" >&5
21536 $as_echo "no" >&6; }
21547 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
21548 $as_echo_n "checking whether file_dentry() is available... " >&6; }
21551 cat confdefs.h
- <<_ACEOF >conftest.c
21554 cat confdefs.h
>>conftest.
$ac_ext
21555 cat >>conftest.
$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21559 #include <linux/fs.h>
21565 struct file *f = NULL;
21576 cat - <<_ACEOF >conftest.h
21581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21582 echo "obj-m := conftest.o" >build
/Makefile
21584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21597 { $as_echo "$as_me:$LINENO: result: yes" >&5
21598 $as_echo "yes" >&6; }
21600 cat >>confdefs.h
<<\_ACEOF
21601 #define HAVE_FILE_DENTRY 1
21606 $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.
$ac_ext >&5
21609 { $as_echo "$as_me:$LINENO: result: no" >&5
21610 $as_echo "no" >&6; }
21621 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21622 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21626 cat confdefs.h
- <<_ACEOF >conftest.c
21629 cat confdefs.h
>>conftest.
$ac_ext
21630 cat >>conftest.
$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21634 #include <linux/fs.h>
21636 int test_fsync(struct file *f, struct dentry *dentry, int x)
21639 static const struct file_operations
21640 fops __attribute__ ((unused)) = {
21641 .fsync = test_fsync,
21657 cat - <<_ACEOF >conftest.h
21662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21663 echo "obj-m := conftest.o" >build
/Makefile
21665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21678 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21679 $as_echo "dentry" >&6; }
21681 cat >>confdefs.h
<<\_ACEOF
21682 #define HAVE_FSYNC_WITH_DENTRY 1
21687 $as_echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.
$ac_ext >&5
21702 cat confdefs.h
- <<_ACEOF >conftest.c
21705 cat confdefs.h
>>conftest.
$ac_ext
21706 cat >>conftest.
$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21710 #include <linux/fs.h>
21712 int test_fsync(struct file *f, int x) { return 0; }
21714 static const struct file_operations
21715 fops __attribute__ ((unused)) = {
21716 .fsync = test_fsync,
21732 cat - <<_ACEOF >conftest.h
21737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21738 echo "obj-m := conftest.o" >build
/Makefile
21740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21753 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21754 $as_echo "no dentry" >&6; }
21756 cat >>confdefs.h
<<\_ACEOF
21757 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.
$ac_ext >&5
21777 cat confdefs.h
- <<_ACEOF >conftest.c
21780 cat confdefs.h
>>conftest.
$ac_ext
21781 cat >>conftest.
$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21785 #include <linux/fs.h>
21787 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21790 static const struct file_operations
21791 fops __attribute__ ((unused)) = {
21792 .fsync = test_fsync,
21808 cat - <<_ACEOF >conftest.h
21813 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21814 echo "obj-m := conftest.o" >build
/Makefile
21816 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21817 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21829 { $as_echo "$as_me:$LINENO: result: range" >&5
21830 $as_echo "range" >&6; }
21832 cat >>confdefs.h
<<\_ACEOF
21833 #define HAVE_FSYNC_RANGE 1
21838 $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.
$ac_ext >&5
21852 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21853 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21856 cat confdefs.h
- <<_ACEOF >conftest.c
21859 cat confdefs.h
>>conftest.
$ac_ext
21860 cat >>conftest.
$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21864 #include <linux/fs.h>
21865 void evict_inode (struct inode * t) { return; }
21866 static struct super_operations sops __attribute__ ((unused)) = {
21867 .evict_inode = evict_inode,
21883 cat - <<_ACEOF >conftest.h
21888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21889 echo "obj-m := conftest.o" >build
/Makefile
21891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21892 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21904 { $as_echo "$as_me:$LINENO: result: yes" >&5
21905 $as_echo "yes" >&6; }
21907 cat >>confdefs.h
<<\_ACEOF
21908 #define HAVE_EVICT_INODE 1
21913 $as_echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.
$ac_ext >&5
21916 { $as_echo "$as_me:$LINENO: result: no" >&5
21917 $as_echo "no" >&6; }
21928 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21929 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21932 cat confdefs.h
- <<_ACEOF >conftest.c
21935 cat confdefs.h
>>conftest.
$ac_ext
21936 cat >>conftest.
$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21940 #include <linux/fs.h>
21942 void dirty_inode(struct inode *a, int b) { return; }
21944 static const struct super_operations
21945 sops __attribute__ ((unused)) = {
21946 .dirty_inode = dirty_inode,
21962 cat - <<_ACEOF >conftest.h
21967 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21968 echo "obj-m := conftest.o" >build
/Makefile
21970 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21971 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
21983 { $as_echo "$as_me:$LINENO: result: yes" >&5
21984 $as_echo "yes" >&6; }
21986 cat >>confdefs.h
<<\_ACEOF
21987 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
21992 $as_echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.
$ac_ext >&5
21995 { $as_echo "$as_me:$LINENO: result: no" >&5
21996 $as_echo "no" >&6; }
22007 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22008 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22011 cat confdefs.h
- <<_ACEOF >conftest.c
22014 cat confdefs.h
>>conftest.
$ac_ext
22015 cat >>conftest.
$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22019 #include <linux/fs.h>
22021 int nr_cached_objects(struct super_block *sb) { return 0; }
22023 static const struct super_operations
22024 sops __attribute__ ((unused)) = {
22025 .nr_cached_objects = nr_cached_objects,
22041 cat - <<_ACEOF >conftest.h
22046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22047 echo "obj-m := conftest.o" >build
/Makefile
22049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22062 { $as_echo "$as_me:$LINENO: result: yes" >&5
22063 $as_echo "yes" >&6; }
22065 cat >>confdefs.h
<<\_ACEOF
22066 #define HAVE_NR_CACHED_OBJECTS 1
22071 $as_echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.
$ac_ext >&5
22074 { $as_echo "$as_me:$LINENO: result: no" >&5
22075 $as_echo "no" >&6; }
22086 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22087 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22090 cat confdefs.h
- <<_ACEOF >conftest.c
22093 cat confdefs.h
>>conftest.
$ac_ext
22094 cat >>conftest.
$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22098 #include <linux/fs.h>
22100 void free_cached_objects(struct super_block *sb, int x)
22103 static const struct super_operations
22104 sops __attribute__ ((unused)) = {
22105 .free_cached_objects = free_cached_objects,
22121 cat - <<_ACEOF >conftest.h
22126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22127 echo "obj-m := conftest.o" >build
/Makefile
22129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22142 { $as_echo "$as_me:$LINENO: result: yes" >&5
22143 $as_echo "yes" >&6; }
22145 cat >>confdefs.h
<<\_ACEOF
22146 #define HAVE_FREE_CACHED_OBJECTS 1
22151 $as_echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.
$ac_ext >&5
22154 { $as_echo "$as_me:$LINENO: result: no" >&5
22155 $as_echo "no" >&6; }
22167 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22168 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22171 cat confdefs.h
- <<_ACEOF >conftest.c
22174 cat confdefs.h
>>conftest.
$ac_ext
22175 cat >>conftest.
$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22179 #include <linux/fs.h>
22181 long test_fallocate(struct file *file, int mode,
22182 loff_t offset, loff_t len) { return 0; }
22184 static const struct file_operations
22185 fops __attribute__ ((unused)) = {
22186 .fallocate = test_fallocate,
22202 cat - <<_ACEOF >conftest.h
22207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22208 echo "obj-m := conftest.o" >build
/Makefile
22210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22223 { $as_echo "$as_me:$LINENO: result: yes" >&5
22224 $as_echo "yes" >&6; }
22226 cat >>confdefs.h
<<\_ACEOF
22227 #define HAVE_FILE_FALLOCATE 1
22232 $as_echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.
$ac_ext >&5
22235 { $as_echo "$as_me:$LINENO: result: no" >&5
22236 $as_echo "no" >&6; }
22247 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22248 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22251 cat confdefs.h
- <<_ACEOF >conftest.c
22254 cat confdefs.h
>>conftest.
$ac_ext
22255 cat >>conftest.
$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22259 #include <linux/fs.h>
22261 long test_fallocate(struct inode *inode, int mode,
22262 loff_t offset, loff_t len) { return 0; }
22264 static const struct inode_operations
22265 fops __attribute__ ((unused)) = {
22266 .fallocate = test_fallocate,
22282 cat - <<_ACEOF >conftest.h
22287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22288 echo "obj-m := conftest.o" >build
/Makefile
22290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22303 { $as_echo "$as_me:$LINENO: result: yes" >&5
22304 $as_echo "yes" >&6; }
22306 cat >>confdefs.h
<<\_ACEOF
22307 #define HAVE_INODE_FALLOCATE 1
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.
$ac_ext >&5
22315 { $as_echo "$as_me:$LINENO: result: no" >&5
22316 $as_echo "no" >&6; }
22328 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
22329 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
22332 cat confdefs.h
- <<_ACEOF >conftest.c
22335 cat confdefs.h
>>conftest.
$ac_ext
22336 cat >>conftest.
$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22340 #include <linux/fs.h>
22342 static const struct file_operations
22343 fops __attribute__ ((unused)) = {
22360 cat - <<_ACEOF >conftest.h
22365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22366 echo "obj-m := conftest.o" >build
/Makefile
22368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22381 { $as_echo "$as_me:$LINENO: result: yes" >&5
22382 $as_echo "yes" >&6; }
22384 cat >>confdefs.h
<<\_ACEOF
22385 #define HAVE_FILE_AIO_FSYNC 1
22390 $as_echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.
$ac_ext >&5
22393 { $as_echo "$as_me:$LINENO: result: no" >&5
22394 $as_echo "no" >&6; }
22405 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22406 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22409 cat confdefs.h
- <<_ACEOF >conftest.c
22412 cat confdefs.h
>>conftest.
$ac_ext
22413 cat >>conftest.
$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22417 #include <linux/fs.h>
22419 int mkdir(struct inode *inode, struct dentry *dentry,
22420 umode_t umode) { return 0; }
22422 static const struct inode_operations
22423 iops __attribute__ ((unused)) = {
22440 cat - <<_ACEOF >conftest.h
22445 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22446 echo "obj-m := conftest.o" >build
/Makefile
22448 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22449 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22461 { $as_echo "$as_me:$LINENO: result: yes" >&5
22462 $as_echo "yes" >&6; }
22464 cat >>confdefs.h
<<\_ACEOF
22465 #define HAVE_MKDIR_UMODE_T 1
22470 $as_echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.
$ac_ext >&5
22473 { $as_echo "$as_me:$LINENO: result: no" >&5
22474 $as_echo "no" >&6; }
22485 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22486 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
22489 cat confdefs.h
- <<_ACEOF >conftest.c
22492 cat confdefs.h
>>conftest.
$ac_ext
22493 cat >>conftest.
$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22497 #include <linux/fs.h>
22498 #include <linux/sched.h>
22500 struct dentry *inode_lookup(struct inode *inode,
22501 struct dentry *dentry, struct nameidata *nidata)
22504 static const struct inode_operations iops
22505 __attribute__ ((unused)) = {
22506 .lookup = inode_lookup,
22522 cat - <<_ACEOF >conftest.h
22527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22528 echo "obj-m := conftest.o" >build
/Makefile
22530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22543 { $as_echo "$as_me:$LINENO: result: yes" >&5
22544 $as_echo "yes" >&6; }
22546 cat >>confdefs.h
<<\_ACEOF
22547 #define HAVE_LOOKUP_NAMEIDATA 1
22552 $as_echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.
$ac_ext >&5
22555 { $as_echo "$as_me:$LINENO: result: no" >&5
22556 $as_echo "no" >&6; }
22567 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22568 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
22571 cat confdefs.h
- <<_ACEOF >conftest.c
22574 cat confdefs.h
>>conftest.
$ac_ext
22575 cat >>conftest.
$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22579 #include <linux/fs.h>
22580 #include <linux/sched.h>
22582 #ifdef HAVE_MKDIR_UMODE_T
22583 int inode_create(struct inode *inode ,struct dentry *dentry,
22584 umode_t umode, struct nameidata *nidata) { return 0; }
22586 int inode_create(struct inode *inode,struct dentry *dentry,
22587 int umode, struct nameidata * nidata) { return 0; }
22590 static const struct inode_operations
22591 iops __attribute__ ((unused)) = {
22592 .create = inode_create,
22608 cat - <<_ACEOF >conftest.h
22613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22614 echo "obj-m := conftest.o" >build
/Makefile
22616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22629 { $as_echo "$as_me:$LINENO: result: yes" >&5
22630 $as_echo "yes" >&6; }
22632 cat >>confdefs.h
<<\_ACEOF
22633 #define HAVE_CREATE_NAMEIDATA 1
22638 $as_echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.
$ac_ext >&5
22641 { $as_echo "$as_me:$LINENO: result: no" >&5
22642 $as_echo "no" >&6; }
22653 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
22654 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
22657 cat confdefs.h
- <<_ACEOF >conftest.c
22660 cat confdefs.h
>>conftest.
$ac_ext
22661 cat >>conftest.
$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22665 #include <linux/fs.h>
22666 const char *get_link(struct dentry *de, struct inode *ip,
22667 struct delayed_call *done) { return "symlink"; }
22668 static struct inode_operations
22669 iops __attribute__ ((unused)) = {
22670 .get_link = get_link,
22686 cat - <<_ACEOF >conftest.h
22691 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22692 echo "obj-m := conftest.o" >build
/Makefile
22694 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22695 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
22707 { $as_echo "$as_me:$LINENO: result: yes" >&5
22708 $as_echo "yes" >&6; }
22710 cat >>confdefs.h
<<\_ACEOF
22711 #define HAVE_GET_LINK_DELAYED 1
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.
$ac_ext >&5
22719 { $as_echo "$as_me:$LINENO: result: no" >&5
22720 $as_echo "no" >&6; }
22721 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
22722 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
22725 cat confdefs.h
- <<_ACEOF >conftest.c
22728 cat confdefs.h
>>conftest.
$ac_ext
22729 cat >>conftest.
$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22733 #include <linux/fs.h>
22734 const char *get_link(struct dentry *de, struct
22735 inode *ip, void **cookie) { return "symlink"; }
22736 static struct inode_operations
22737 iops __attribute__ ((unused)) = {
22738 .get_link = get_link,
22754 cat - <<_ACEOF >conftest.h
22759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22760 echo "obj-m := conftest.o" >build
/Makefile
22762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765 (eval $ac_try) 2>&5
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22770 (eval $ac_try) 2>&5
22772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
22775 { $as_echo "$as_me:$LINENO: result: yes" >&5
22776 $as_echo "yes" >&6; }
22778 cat >>confdefs.h
<<\_ACEOF
22779 #define HAVE_GET_LINK_COOKIE 1
22784 $as_echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.
$ac_ext >&5
22787 { $as_echo "$as_me:$LINENO: result: no" >&5
22788 $as_echo "no" >&6; }
22790 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22791 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
22794 cat confdefs.h
- <<_ACEOF >conftest.c
22797 cat confdefs.h
>>conftest.
$ac_ext
22798 cat >>conftest.
$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22802 #include <linux/fs.h>
22803 const char *follow_link(struct dentry *de,
22804 void **cookie) { return "symlink"; }
22805 static struct inode_operations
22806 iops __attribute__ ((unused)) = {
22807 .follow_link = follow_link,
22823 cat - <<_ACEOF >conftest.h
22828 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22829 echo "obj-m := conftest.o" >build
/Makefile
22831 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22832 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22844 { $as_echo "$as_me:$LINENO: result: yes" >&5
22845 $as_echo "yes" >&6; }
22847 cat >>confdefs.h
<<\_ACEOF
22848 #define HAVE_FOLLOW_LINK_COOKIE 1
22853 $as_echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.
$ac_ext >&5
22856 { $as_echo "$as_me:$LINENO: result: no" >&5
22857 $as_echo "no" >&6; }
22858 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22859 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
22862 cat confdefs.h
- <<_ACEOF >conftest.c
22865 cat confdefs.h
>>conftest.
$ac_ext
22866 cat >>conftest.
$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22870 #include <linux/fs.h>
22871 void *follow_link(struct dentry *de, struct
22872 nameidata *nd) { return (void *)NULL; }
22873 static struct inode_operations
22874 iops __attribute__ ((unused)) = {
22875 .follow_link = follow_link,
22891 cat - <<_ACEOF >conftest.h
22896 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22897 echo "obj-m := conftest.o" >build
/Makefile
22899 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22900 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22912 { $as_echo "$as_me:$LINENO: result: yes" >&5
22913 $as_echo "yes" >&6; }
22915 cat >>confdefs.h
<<\_ACEOF
22916 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
22921 $as_echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.
$ac_ext >&5
22924 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22925 $as_echo "$as_me: error: no; please file a bug report" >&2;}
22926 { (exit 1); exit 1; }; }
22964 cat confdefs.h
- <<_ACEOF >conftest.c
22967 cat confdefs.h
>>conftest.
$ac_ext
22968 cat >>conftest.
$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22972 #if !defined(HAVE_GET_LINK_DELAYED)
22973 #error "Expecting get_link() delayed done"
22989 cat - <<_ACEOF >conftest.h
22994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22995 echo "obj-m := conftest.o" >build
/Makefile
22997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23011 cat >>confdefs.h
<<\_ACEOF
23012 #define HAVE_PUT_LINK_DELAYED 1
23017 $as_echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.
$ac_ext >&5
23020 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
23021 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
23024 cat confdefs.h
- <<_ACEOF >conftest.c
23027 cat confdefs.h
>>conftest.
$ac_ext
23028 cat >>conftest.
$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23032 #include <linux/fs.h>
23033 void put_link(struct inode *ip, void *cookie)
23035 static struct inode_operations
23036 iops __attribute__ ((unused)) = {
23037 .put_link = put_link,
23053 cat - <<_ACEOF >conftest.h
23058 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23059 echo "obj-m := conftest.o" >build
/Makefile
23061 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23062 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23074 { $as_echo "$as_me:$LINENO: result: yes" >&5
23075 $as_echo "yes" >&6; }
23077 cat >>confdefs.h
<<\_ACEOF
23078 #define HAVE_PUT_LINK_COOKIE 1
23083 $as_echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.
$ac_ext >&5
23086 { $as_echo "$as_me:$LINENO: result: no" >&5
23087 $as_echo "no" >&6; }
23088 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
23089 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
23092 cat confdefs.h
- <<_ACEOF >conftest.c
23095 cat confdefs.h
>>conftest.
$ac_ext
23096 cat >>conftest.
$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23100 #include <linux/fs.h>
23101 void put_link(struct dentry *de, struct
23102 nameidata *nd, void *ptr) { return; }
23103 static struct inode_operations
23104 iops __attribute__ ((unused)) = {
23105 .put_link = put_link,
23121 cat - <<_ACEOF >conftest.h
23126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23127 echo "obj-m := conftest.o" >build
/Makefile
23129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23142 { $as_echo "$as_me:$LINENO: result: yes" >&5
23143 $as_echo "yes" >&6; }
23145 cat >>confdefs.h
<<\_ACEOF
23146 #define HAVE_PUT_LINK_NAMEIDATA 1
23151 $as_echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.
$ac_ext >&5
23154 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
23155 $as_echo "$as_me: error: no; please file a bug report" >&2;}
23156 { (exit 1); exit 1; }; }
23183 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
23184 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
23187 cat confdefs.h
- <<_ACEOF >conftest.c
23190 cat confdefs.h
>>conftest.
$ac_ext
23191 cat >>conftest.
$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23195 #include <linux/fs.h>
23196 int tmpfile(struct inode *inode, struct dentry *dentry,
23197 umode_t mode) { return 0; }
23198 static struct inode_operations
23199 iops __attribute__ ((unused)) = {
23200 .tmpfile = tmpfile,
23216 cat - <<_ACEOF >conftest.h
23221 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23222 echo "obj-m := conftest.o" >build
/Makefile
23224 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23225 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23237 { $as_echo "$as_me:$LINENO: result: yes" >&5
23238 $as_echo "yes" >&6; }
23240 cat >>confdefs.h
<<\_ACEOF
23241 #define HAVE_TMPFILE 1
23246 $as_echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.
$ac_ext >&5
23249 { $as_echo "$as_me:$LINENO: result: no" >&5
23250 $as_echo "no" >&6; }
23261 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23262 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23265 cat confdefs.h
- <<_ACEOF >conftest.c
23268 cat confdefs.h
>>conftest.
$ac_ext
23269 cat >>conftest.
$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23273 #include <linux/fs.h>
23274 void truncate_range(struct inode *inode, loff_t start,
23275 loff_t end) { return; }
23276 static struct inode_operations iops __attribute__ ((unused)) = {
23277 .truncate_range = truncate_range,
23293 cat - <<_ACEOF >conftest.h
23298 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23299 echo "obj-m := conftest.o" >build
/Makefile
23301 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23302 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23314 { $as_echo "$as_me:$LINENO: result: yes" >&5
23315 $as_echo "yes" >&6; }
23317 cat >>confdefs.h
<<\_ACEOF
23318 #define HAVE_INODE_TRUNCATE_RANGE 1
23323 $as_echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.
$ac_ext >&5
23326 { $as_echo "$as_me:$LINENO: result: no" >&5
23327 $as_echo "no" >&6; }
23338 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
23339 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
23342 cat confdefs.h
- <<_ACEOF >conftest.c
23345 cat confdefs.h
>>conftest.
$ac_ext
23346 cat >>conftest.
$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23350 #include <linux/dcache.h>
23351 struct vfsmount *d_automount(struct path *p) { return NULL; }
23352 struct dentry_operations dops __attribute__ ((unused)) = {
23353 .d_automount = d_automount,
23369 cat - <<_ACEOF >conftest.h
23374 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23375 echo "obj-m := conftest.o" >build
/Makefile
23377 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23378 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23390 { $as_echo "$as_me:$LINENO: result: yes" >&5
23391 $as_echo "yes" >&6; }
23393 cat >>confdefs.h
<<\_ACEOF
23394 #define HAVE_AUTOMOUNT 1
23399 $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.
$ac_ext >&5
23402 { $as_echo "$as_me:$LINENO: result: no" >&5
23403 $as_echo "no" >&6; }
23414 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23415 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23418 cat confdefs.h
- <<_ACEOF >conftest.c
23421 cat confdefs.h
>>conftest.
$ac_ext
23422 cat >>conftest.
$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23426 #include <linux/exportfs.h>
23427 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23428 struct inode *parent) { return 0; }
23429 static struct export_operations eops __attribute__ ((unused))={
23430 .encode_fh = encode_fh,
23446 cat - <<_ACEOF >conftest.h
23451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23452 echo "obj-m := conftest.o" >build
/Makefile
23454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23455 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23467 { $as_echo "$as_me:$LINENO: result: yes" >&5
23468 $as_echo "yes" >&6; }
23470 cat >>confdefs.h
<<\_ACEOF
23471 #define HAVE_ENCODE_FH_WITH_INODE 1
23476 $as_echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.
$ac_ext >&5
23479 { $as_echo "$as_me:$LINENO: result: no" >&5
23480 $as_echo "no" >&6; }
23491 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
23492 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
23495 cat confdefs.h
- <<_ACEOF >conftest.c
23498 cat confdefs.h
>>conftest.
$ac_ext
23499 cat >>conftest.
$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23503 #include <linux/exportfs.h>
23504 int commit_metadata(struct inode *inode) { return 0; }
23505 static struct export_operations eops __attribute__ ((unused))={
23506 .commit_metadata = commit_metadata,
23522 cat - <<_ACEOF >conftest.h
23527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23528 echo "obj-m := conftest.o" >build
/Makefile
23530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23543 { $as_echo "$as_me:$LINENO: result: yes" >&5
23544 $as_echo "yes" >&6; }
23546 cat >>confdefs.h
<<\_ACEOF
23547 #define HAVE_COMMIT_METADATA 1
23552 $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.
$ac_ext >&5
23555 { $as_echo "$as_me:$LINENO: result: no" >&5
23556 $as_echo "no" >&6; }
23566 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
23567 $as_echo_n "checking whether clear_inode() is available... " >&6; }
23571 cat confdefs.h
- <<_ACEOF >conftest.c
23574 cat confdefs.h
>>conftest.
$ac_ext
23575 cat >>conftest.
$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23579 #include <linux/fs.h>
23595 cat - <<_ACEOF >conftest.h
23600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23601 echo "obj-m := conftest.o" >build
/Makefile
23603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23617 $as_echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.
$ac_ext >&5
23627 if test $rc -ne 0; then :
23629 { $as_echo "$as_me:$LINENO: result: no" >&5
23630 $as_echo "no" >&6; }
23633 if test "x$enable_linux_builtin" != xyes
; then
23635 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
23636 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23638 if test $rc -ne 0; then
23640 for file in fs
/inode.c
; do
23641 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
23642 "$LINUX/$file" 2>/dev
/null
23644 if test $rc -eq 0; then
23649 if test $export -eq 0; then :
23659 if test $rc -ne 0; then :
23661 { $as_echo "$as_me:$LINENO: result: no" >&5
23662 $as_echo "no" >&6; }
23666 { $as_echo "$as_me:$LINENO: result: yes" >&5
23667 $as_echo "yes" >&6; }
23669 cat >>confdefs.h
<<\_ACEOF
23670 #define HAVE_CLEAR_INODE 1
23678 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
23679 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
23683 cat confdefs.h
- <<_ACEOF >conftest.c
23686 cat confdefs.h
>>conftest.
$ac_ext
23687 cat >>conftest.
$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23691 #include <linux/fs.h>
23697 struct dentry *dentry = NULL;
23698 struct iattr *attr = NULL;
23701 error = setattr_prepare(dentry, attr);
23711 cat - <<_ACEOF >conftest.h
23716 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23717 echo "obj-m := conftest.o" >build
/Makefile
23719 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23720 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23733 $as_echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.
$ac_ext >&5
23743 if test $rc -ne 0; then :
23745 { $as_echo "$as_me:$LINENO: result: no" >&5
23746 $as_echo "no" >&6; }
23749 if test "x$enable_linux_builtin" != xyes
; then
23751 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
23752 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23754 if test $rc -ne 0; then
23756 for file in fs
/attr.c
; do
23757 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
23758 "$LINUX/$file" 2>/dev
/null
23760 if test $rc -eq 0; then
23765 if test $export -eq 0; then :
23775 if test $rc -ne 0; then :
23777 { $as_echo "$as_me:$LINENO: result: no" >&5
23778 $as_echo "no" >&6; }
23782 { $as_echo "$as_me:$LINENO: result: yes" >&5
23783 $as_echo "yes" >&6; }
23785 cat >>confdefs.h
<<\_ACEOF
23786 #define HAVE_SETATTR_PREPARE 1
23794 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23795 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23799 cat confdefs.h
- <<_ACEOF >conftest.c
23802 cat confdefs.h
>>conftest.
$ac_ext
23803 cat >>conftest.
$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23807 #include <linux/fs.h>
23813 insert_inode_locked(NULL);
23823 cat - <<_ACEOF >conftest.h
23828 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23829 echo "obj-m := conftest.o" >build
/Makefile
23831 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23832 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23845 $as_echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.
$ac_ext >&5
23855 if test $rc -ne 0; then :
23857 { $as_echo "$as_me:$LINENO: result: no" >&5
23858 $as_echo "no" >&6; }
23861 if test "x$enable_linux_builtin" != xyes
; then
23863 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23864 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23866 if test $rc -ne 0; then
23868 for file in fs
/inode.c
; do
23869 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23870 "$LINUX/$file" 2>/dev
/null
23872 if test $rc -eq 0; then
23877 if test $export -eq 0; then :
23887 if test $rc -ne 0; then :
23889 { $as_echo "$as_me:$LINENO: result: no" >&5
23890 $as_echo "no" >&6; }
23894 { $as_echo "$as_me:$LINENO: result: yes" >&5
23895 $as_echo "yes" >&6; }
23897 cat >>confdefs.h
<<\_ACEOF
23898 #define HAVE_INSERT_INODE_LOCKED 1
23906 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23907 $as_echo_n "checking whether d_make_root() is available... " >&6; }
23911 cat confdefs.h
- <<_ACEOF >conftest.c
23914 cat confdefs.h
>>conftest.
$ac_ext
23915 cat >>conftest.
$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23919 #include <linux/dcache.h>
23935 cat - <<_ACEOF >conftest.h
23940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23941 echo "obj-m := conftest.o" >build
/Makefile
23943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23944 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; }; then
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.
$ac_ext >&5
23967 if test $rc -ne 0; then :
23969 { $as_echo "$as_me:$LINENO: result: no" >&5
23970 $as_echo "no" >&6; }
23973 if test "x$enable_linux_builtin" != xyes
; then
23975 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23976 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23978 if test $rc -ne 0; then
23980 for file in fs
/dcache.c
; do
23981 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23982 "$LINUX/$file" 2>/dev
/null
23984 if test $rc -eq 0; then
23989 if test $export -eq 0; then :
23999 if test $rc -ne 0; then :
24001 { $as_echo "$as_me:$LINENO: result: no" >&5
24002 $as_echo "no" >&6; }
24006 { $as_echo "$as_me:$LINENO: result: yes" >&5
24007 $as_echo "yes" >&6; }
24009 cat >>confdefs.h
<<\_ACEOF
24010 #define HAVE_D_MAKE_ROOT 1
24018 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24019 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24023 cat confdefs.h
- <<_ACEOF >conftest.c
24026 cat confdefs.h
>>conftest.
$ac_ext
24027 cat >>conftest.
$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24031 #include <linux/dcache.h>
24037 d_obtain_alias(NULL);
24047 cat - <<_ACEOF >conftest.h
24052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24053 echo "obj-m := conftest.o" >build
/Makefile
24055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24056 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24069 $as_echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.
$ac_ext >&5
24079 if test $rc -ne 0; then :
24081 { $as_echo "$as_me:$LINENO: result: no" >&5
24082 $as_echo "no" >&6; }
24085 if test "x$enable_linux_builtin" != xyes
; then
24087 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
24088 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24090 if test $rc -ne 0; then
24092 for file in fs
/dcache.c
; do
24093 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24094 "$LINUX/$file" 2>/dev
/null
24096 if test $rc -eq 0; then
24101 if test $export -eq 0; then :
24111 if test $rc -ne 0; then :
24113 { $as_echo "$as_me:$LINENO: result: no" >&5
24114 $as_echo "no" >&6; }
24118 { $as_echo "$as_me:$LINENO: result: yes" >&5
24119 $as_echo "yes" >&6; }
24121 cat >>confdefs.h
<<\_ACEOF
24122 #define HAVE_D_OBTAIN_ALIAS 1
24130 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
24131 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
24135 cat confdefs.h
- <<_ACEOF >conftest.c
24138 cat confdefs.h
>>conftest.
$ac_ext
24139 cat >>conftest.
$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24143 #include <linux/dcache.h>
24149 struct inode *ip = NULL;
24150 d_prune_aliases(ip);
24160 cat - <<_ACEOF >conftest.h
24165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24166 echo "obj-m := conftest.o" >build
/Makefile
24168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24182 $as_echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.
$ac_ext >&5
24192 if test $rc -ne 0; then :
24194 { $as_echo "$as_me:$LINENO: result: no" >&5
24195 $as_echo "no" >&6; }
24198 if test "x$enable_linux_builtin" != xyes
; then
24200 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
24201 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24203 if test $rc -ne 0; then
24205 for file in fs
/dcache.c
; do
24206 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
24207 "$LINUX/$file" 2>/dev
/null
24209 if test $rc -eq 0; then
24214 if test $export -eq 0; then :
24224 if test $rc -ne 0; then :
24226 { $as_echo "$as_me:$LINENO: result: no" >&5
24227 $as_echo "no" >&6; }
24231 { $as_echo "$as_me:$LINENO: result: yes" >&5
24232 $as_echo "yes" >&6; }
24234 cat >>confdefs.h
<<\_ACEOF
24235 #define HAVE_D_PRUNE_ALIASES 1
24243 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
24244 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
24248 cat confdefs.h
- <<_ACEOF >conftest.c
24251 cat confdefs.h
>>conftest.
$ac_ext
24252 cat >>conftest.
$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24256 #include <linux/dcache.h>
24262 d_set_d_op(NULL, NULL);
24272 cat - <<_ACEOF >conftest.h
24277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24278 echo "obj-m := conftest.o" >build
/Makefile
24280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24281 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283 (eval $ac_try) 2>&5
24285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288 (eval $ac_try) 2>&5
24290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; }; then
24294 $as_echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.
$ac_ext >&5
24304 if test $rc -ne 0; then :
24306 { $as_echo "$as_me:$LINENO: result: no" >&5
24307 $as_echo "no" >&6; }
24310 if test "x$enable_linux_builtin" != xyes
; then
24312 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
24313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24315 if test $rc -ne 0; then
24317 for file in fs
/dcache.c
; do
24318 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
24319 "$LINUX/$file" 2>/dev
/null
24321 if test $rc -eq 0; then
24326 if test $export -eq 0; then :
24336 if test $rc -ne 0; then :
24338 { $as_echo "$as_me:$LINENO: result: no" >&5
24339 $as_echo "no" >&6; }
24343 { $as_echo "$as_me:$LINENO: result: yes" >&5
24344 $as_echo "yes" >&6; }
24346 cat >>confdefs.h
<<\_ACEOF
24347 #define HAVE_D_SET_D_OP 1
24356 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
24357 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
24360 cat confdefs.h
- <<_ACEOF >conftest.c
24363 cat confdefs.h
>>conftest.
$ac_ext
24364 cat >>conftest.
$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24368 #include <linux/dcache.h>
24369 #include <linux/sched.h>
24371 int revalidate (struct dentry *dentry,
24372 struct nameidata *nidata) { return 0; }
24374 static const struct dentry_operations
24375 dops __attribute__ ((unused)) = {
24376 .d_revalidate = revalidate,
24392 cat - <<_ACEOF >conftest.h
24397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24398 echo "obj-m := conftest.o" >build
/Makefile
24400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24413 { $as_echo "$as_me:$LINENO: result: yes" >&5
24414 $as_echo "yes" >&6; }
24416 cat >>confdefs.h
<<\_ACEOF
24417 #define HAVE_D_REVALIDATE_NAMEIDATA 1
24422 $as_echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.
$ac_ext >&5
24425 { $as_echo "$as_me:$LINENO: result: no" >&5
24426 $as_echo "no" >&6; }
24437 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
24438 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
24441 cat confdefs.h
- <<_ACEOF >conftest.c
24444 cat confdefs.h
>>conftest.
$ac_ext
24445 cat >>conftest.
$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24449 #include <linux/dcache.h>
24451 const struct dentry_operations test_d_op = {
24452 .d_revalidate = NULL,
24459 struct dentry d __attribute__ ((unused));
24461 d.d_op = &test_d_op;
24471 cat - <<_ACEOF >conftest.h
24476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24477 echo "obj-m := conftest.o" >build
/Makefile
24479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
24492 { $as_echo "$as_me:$LINENO: result: yes" >&5
24493 $as_echo "yes" >&6; }
24495 cat >>confdefs.h
<<\_ACEOF
24496 #define HAVE_CONST_DENTRY_OPERATIONS 1
24501 $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.
$ac_ext >&5
24504 { $as_echo "$as_me:$LINENO: result: no" >&5
24505 $as_echo "no" >&6; }
24515 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24516 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
24520 cat confdefs.h
- <<_ACEOF >conftest.c
24523 cat confdefs.h
>>conftest.
$ac_ext
24524 cat >>conftest.
$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24528 #include <linux/mm.h>
24534 truncate_setsize(NULL, 0);
24544 cat - <<_ACEOF >conftest.h
24549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24550 echo "obj-m := conftest.o" >build
/Makefile
24552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560 (eval $ac_try) 2>&5
24562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.
$ac_ext >&5
24576 if test $rc -ne 0; then :
24578 { $as_echo "$as_me:$LINENO: result: no" >&5
24579 $as_echo "no" >&6; }
24582 if test "x$enable_linux_builtin" != xyes
; then
24584 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
24585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24587 if test $rc -ne 0; then
24589 for file in mm
/truncate.c
; do
24590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
24591 "$LINUX/$file" 2>/dev
/null
24593 if test $rc -eq 0; then
24598 if test $export -eq 0; then :
24608 if test $rc -ne 0; then :
24610 { $as_echo "$as_me:$LINENO: result: no" >&5
24611 $as_echo "no" >&6; }
24615 { $as_echo "$as_me:$LINENO: result: yes" >&5
24616 $as_echo "yes" >&6; }
24618 cat >>confdefs.h
<<\_ACEOF
24619 #define HAVE_TRUNCATE_SETSIZE 1
24628 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
24629 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
24632 cat confdefs.h
- <<_ACEOF >conftest.c
24635 cat confdefs.h
>>conftest.
$ac_ext
24636 cat >>conftest.
$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24640 #include <linux/security.h>
24646 struct inode *ip __attribute__ ((unused)) = NULL;
24647 struct inode *dip __attribute__ ((unused)) = NULL;
24648 const struct qstr *str __attribute__ ((unused)) = NULL;
24649 char *name __attribute__ ((unused)) = NULL;
24650 void *value __attribute__ ((unused)) = NULL;
24651 size_t len __attribute__ ((unused)) = 0;
24653 security_inode_init_security(ip, dip, str, &name, &value, &len);
24663 cat - <<_ACEOF >conftest.h
24668 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24669 echo "obj-m := conftest.o" >build
/Makefile
24671 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24672 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24684 { $as_echo "$as_me:$LINENO: result: yes" >&5
24685 $as_echo "yes" >&6; }
24687 cat >>confdefs.h
<<\_ACEOF
24688 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24693 $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.
$ac_ext >&5
24696 { $as_echo "$as_me:$LINENO: result: no" >&5
24697 $as_echo "no" >&6; }
24708 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
24709 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
24712 cat confdefs.h
- <<_ACEOF >conftest.c
24715 cat confdefs.h
>>conftest.
$ac_ext
24716 cat >>conftest.
$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24720 #include <linux/security.h>
24726 struct inode *ip __attribute__ ((unused)) = NULL;
24727 struct inode *dip __attribute__ ((unused)) = NULL;
24728 const struct qstr *str __attribute__ ((unused)) = NULL;
24729 initxattrs func __attribute__ ((unused)) = NULL;
24731 security_inode_init_security(ip, dip, str, func, NULL);
24741 cat - <<_ACEOF >conftest.h
24746 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24747 echo "obj-m := conftest.o" >build
/Makefile
24749 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24750 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24762 { $as_echo "$as_me:$LINENO: result: yes" >&5
24763 $as_echo "yes" >&6; }
24765 cat >>confdefs.h
<<\_ACEOF
24766 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
24771 $as_echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.
$ac_ext >&5
24774 { $as_echo "$as_me:$LINENO: result: no" >&5
24775 $as_echo "no" >&6; }
24786 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
24787 $as_echo_n "checking whether fst->mount() exists... " >&6; }
24790 cat confdefs.h
- <<_ACEOF >conftest.c
24793 cat confdefs.h
>>conftest.
$ac_ext
24794 cat >>conftest.
$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24798 #include <linux/fs.h>
24800 static struct dentry *
24801 mount(struct file_system_type *fs_type, int flags,
24802 const char *osname, void *data) {
24803 struct dentry *d = NULL;
24807 static struct file_system_type fst __attribute__ ((unused)) = {
24824 cat - <<_ACEOF >conftest.h
24829 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24830 echo "obj-m := conftest.o" >build
/Makefile
24832 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24833 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24845 { $as_echo "$as_me:$LINENO: result: yes" >&5
24846 $as_echo "yes" >&6; }
24848 cat >>confdefs.h
<<\_ACEOF
24849 #define HAVE_FST_MOUNT 1
24854 $as_echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.
$ac_ext >&5
24857 { $as_echo "$as_me:$LINENO: result: no" >&5
24858 $as_echo "no" >&6; }
24869 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24870 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
24873 cat confdefs.h
- <<_ACEOF >conftest.c
24876 cat confdefs.h
>>conftest.
$ac_ext
24877 cat >>conftest.
$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24881 #include <linux/fs.h>
24883 int shrink(struct shrinker *s, struct shrink_control *sc)
24886 static const struct super_block
24887 sb __attribute__ ((unused)) = {
24888 .s_shrink.shrink = shrink,
24889 .s_shrink.seeks = DEFAULT_SEEKS,
24890 .s_shrink.batch = 0,
24906 cat - <<_ACEOF >conftest.h
24911 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24912 echo "obj-m := conftest.o" >build
/Makefile
24914 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24915 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24927 { $as_echo "$as_me:$LINENO: result: yes" >&5
24928 $as_echo "yes" >&6; }
24930 cat >>confdefs.h
<<\_ACEOF
24931 #define HAVE_SHRINK 1
24937 $as_echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.
$ac_ext >&5
24940 { $as_echo "$as_me:$LINENO: result: no" >&5
24941 $as_echo "no" >&6; }
24952 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24953 $as_echo_n "checking whether shrink_control has nid... " >&6; }
24956 cat confdefs.h
- <<_ACEOF >conftest.c
24959 cat confdefs.h
>>conftest.
$ac_ext
24960 cat >>conftest.
$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24964 #include <linux/fs.h>
24970 struct shrink_control sc __attribute__ ((unused));
24971 unsigned long scnidsize __attribute__ ((unused)) =
24982 cat - <<_ACEOF >conftest.h
24987 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24988 echo "obj-m := conftest.o" >build
/Makefile
24990 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24991 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
25000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
25003 { $as_echo "$as_me:$LINENO: result: yes" >&5
25004 $as_echo "yes" >&6; }
25006 cat >>confdefs.h
<<\_ACEOF
25007 #define SHRINK_CONTROL_HAS_NID 1
25012 $as_echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.
$ac_ext >&5
25015 { $as_echo "$as_me:$LINENO: result: no" >&5
25016 $as_echo "no" >&6; }
25027 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
25028 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
25031 cat confdefs.h
- <<_ACEOF >conftest.c
25034 cat confdefs.h
>>conftest.
$ac_ext
25035 cat >>conftest.
$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25039 #include <linux/fs.h>
25045 struct super_block sb __attribute__ ((unused));
25047 INIT_LIST_HEAD(&sb.s_instances);
25057 cat - <<_ACEOF >conftest.h
25062 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25063 echo "obj-m := conftest.o" >build
/Makefile
25065 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25066 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25078 { $as_echo "$as_me:$LINENO: result: yes" >&5
25079 $as_echo "yes" >&6; }
25081 cat >>confdefs.h
<<\_ACEOF
25082 #define HAVE_S_INSTANCES_LIST_HEAD 1
25087 $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.
$ac_ext >&5
25090 { $as_echo "$as_me:$LINENO: result: no" >&5
25091 $as_echo "no" >&6; }
25101 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
25102 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
25105 cat confdefs.h
- <<_ACEOF >conftest.c
25108 cat confdefs.h
>>conftest.
$ac_ext
25109 cat >>conftest.
$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25113 #include <linux/fs.h>
25119 struct super_block sb __attribute__ ((unused));
25130 cat - <<_ACEOF >conftest.h
25135 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25136 echo "obj-m := conftest.o" >build
/Makefile
25138 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25139 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25151 { $as_echo "$as_me:$LINENO: result: yes" >&5
25152 $as_echo "yes" >&6; }
25154 cat >>confdefs.h
<<\_ACEOF
25155 #define HAVE_S_D_OP 1
25160 $as_echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.
$ac_ext >&5
25163 { $as_echo "$as_me:$LINENO: result: no" >&5
25164 $as_echo "no" >&6; }
25175 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
25176 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
25180 cat confdefs.h
- <<_ACEOF >conftest.c
25183 cat confdefs.h
>>conftest.
$ac_ext
25184 cat >>conftest.
$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25188 #include <linux/fs.h>
25189 struct super_block sb;
25195 char *name = "bdi";
25196 atomic_long_t zfs_bdi_seq;
25197 int error __attribute__((unused)) =
25198 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
25208 cat - <<_ACEOF >conftest.h
25213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25214 echo "obj-m := conftest.o" >build
/Makefile
25216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25217 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25230 $as_echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.
$ac_ext >&5
25240 if test $rc -ne 0; then :
25242 { $as_echo "$as_me:$LINENO: result: no" >&5
25243 $as_echo "no" >&6; }
25244 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25245 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25249 cat confdefs.h
- <<_ACEOF >conftest.c
25252 cat confdefs.h
>>conftest.
$ac_ext
25253 cat >>conftest.
$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25257 #include <linux/backing-dev.h>
25258 struct backing_dev_info bdi;
25264 char *name = "bdi";
25265 int error __attribute__((unused)) =
25266 bdi_setup_and_register(&bdi, name);
25276 cat - <<_ACEOF >conftest.h
25281 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25282 echo "obj-m := conftest.o" >build
/Makefile
25284 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25285 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292 (eval $ac_try) 2>&5
25294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; }; then
25298 $as_echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.
$ac_ext >&5
25308 if test $rc -ne 0; then :
25310 { $as_echo "$as_me:$LINENO: result: no" >&5
25311 $as_echo "no" >&6; }
25312 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25313 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25317 cat confdefs.h
- <<_ACEOF >conftest.c
25320 cat confdefs.h
>>conftest.
$ac_ext
25321 cat >>conftest.
$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25325 #include <linux/backing-dev.h>
25326 struct backing_dev_info bdi;
25332 char *name = "bdi";
25333 unsigned int cap = BDI_CAP_MAP_COPY;
25334 int error __attribute__((unused)) =
25335 bdi_setup_and_register(&bdi, name, cap);
25345 cat - <<_ACEOF >conftest.h
25350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25351 echo "obj-m := conftest.o" >build
/Makefile
25353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; }; then
25367 $as_echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.
$ac_ext >&5
25377 if test $rc -ne 0; then :
25379 { $as_echo "$as_me:$LINENO: result: no" >&5
25380 $as_echo "no" >&6; }
25383 if test "x$enable_linux_builtin" != xyes
; then
25385 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25386 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25388 if test $rc -ne 0; then
25390 for file in mm
/backing-dev.c
; do
25391 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25392 "$LINUX/$file" 2>/dev
/null
25394 if test $rc -eq 0; then
25399 if test $export -eq 0; then :
25409 if test $rc -ne 0; then :
25411 { $as_echo "$as_me:$LINENO: result: no" >&5
25412 $as_echo "no" >&6; }
25416 { $as_echo "$as_me:$LINENO: result: yes" >&5
25417 $as_echo "yes" >&6; }
25419 cat >>confdefs.h
<<\_ACEOF
25420 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25429 if test "x$enable_linux_builtin" != xyes
; then
25431 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25434 if test $rc -ne 0; then
25436 for file in mm
/backing-dev.c
; do
25437 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25438 "$LINUX/$file" 2>/dev
/null
25440 if test $rc -eq 0; then
25445 if test $export -eq 0; then :
25455 if test $rc -ne 0; then :
25457 { $as_echo "$as_me:$LINENO: result: no" >&5
25458 $as_echo "no" >&6; }
25459 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25460 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25464 cat confdefs.h
- <<_ACEOF >conftest.c
25467 cat confdefs.h
>>conftest.
$ac_ext
25468 cat >>conftest.
$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25472 #include <linux/backing-dev.h>
25473 struct backing_dev_info bdi;
25479 char *name = "bdi";
25480 unsigned int cap = BDI_CAP_MAP_COPY;
25481 int error __attribute__((unused)) =
25482 bdi_setup_and_register(&bdi, name, cap);
25492 cat - <<_ACEOF >conftest.h
25497 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25498 echo "obj-m := conftest.o" >build
/Makefile
25500 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25501 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.
$ac_ext >&5
25524 if test $rc -ne 0; then :
25526 { $as_echo "$as_me:$LINENO: result: no" >&5
25527 $as_echo "no" >&6; }
25530 if test "x$enable_linux_builtin" != xyes
; then
25532 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25535 if test $rc -ne 0; then
25537 for file in mm
/backing-dev.c
; do
25538 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25539 "$LINUX/$file" 2>/dev
/null
25541 if test $rc -eq 0; then
25546 if test $export -eq 0; then :
25556 if test $rc -ne 0; then :
25558 { $as_echo "$as_me:$LINENO: result: no" >&5
25559 $as_echo "no" >&6; }
25563 { $as_echo "$as_me:$LINENO: result: yes" >&5
25564 $as_echo "yes" >&6; }
25566 cat >>confdefs.h
<<\_ACEOF
25567 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25577 { $as_echo "$as_me:$LINENO: result: yes" >&5
25578 $as_echo "yes" >&6; }
25580 cat >>confdefs.h
<<\_ACEOF
25581 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25590 if test "x$enable_linux_builtin" != xyes
; then
25592 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
25593 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25595 if test $rc -ne 0; then
25597 for file in fs
/super.c
; do
25598 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
25599 "$LINUX/$file" 2>/dev
/null
25601 if test $rc -eq 0; then
25606 if test $export -eq 0; then :
25616 if test $rc -ne 0; then :
25618 { $as_echo "$as_me:$LINENO: result: no" >&5
25619 $as_echo "no" >&6; }
25620 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25621 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25625 cat confdefs.h
- <<_ACEOF >conftest.c
25628 cat confdefs.h
>>conftest.
$ac_ext
25629 cat >>conftest.
$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25633 #include <linux/backing-dev.h>
25634 struct backing_dev_info bdi;
25640 char *name = "bdi";
25641 int error __attribute__((unused)) =
25642 bdi_setup_and_register(&bdi, name);
25652 cat - <<_ACEOF >conftest.h
25657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25658 echo "obj-m := conftest.o" >build
/Makefile
25660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25674 $as_echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.
$ac_ext >&5
25684 if test $rc -ne 0; then :
25686 { $as_echo "$as_me:$LINENO: result: no" >&5
25687 $as_echo "no" >&6; }
25688 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25689 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25693 cat confdefs.h
- <<_ACEOF >conftest.c
25696 cat confdefs.h
>>conftest.
$ac_ext
25697 cat >>conftest.
$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25701 #include <linux/backing-dev.h>
25702 struct backing_dev_info bdi;
25708 char *name = "bdi";
25709 unsigned int cap = BDI_CAP_MAP_COPY;
25710 int error __attribute__((unused)) =
25711 bdi_setup_and_register(&bdi, name, cap);
25721 cat - <<_ACEOF >conftest.h
25726 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25727 echo "obj-m := conftest.o" >build
/Makefile
25729 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25730 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25732 (eval $ac_try) 2>&5
25734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25743 $as_echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.
$ac_ext >&5
25753 if test $rc -ne 0; then :
25755 { $as_echo "$as_me:$LINENO: result: no" >&5
25756 $as_echo "no" >&6; }
25759 if test "x$enable_linux_builtin" != xyes
; then
25761 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25762 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25764 if test $rc -ne 0; then
25766 for file in mm
/backing-dev.c
; do
25767 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25768 "$LINUX/$file" 2>/dev
/null
25770 if test $rc -eq 0; then
25775 if test $export -eq 0; then :
25785 if test $rc -ne 0; then :
25787 { $as_echo "$as_me:$LINENO: result: no" >&5
25788 $as_echo "no" >&6; }
25792 { $as_echo "$as_me:$LINENO: result: yes" >&5
25793 $as_echo "yes" >&6; }
25795 cat >>confdefs.h
<<\_ACEOF
25796 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25805 if test "x$enable_linux_builtin" != xyes
; then
25807 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25810 if test $rc -ne 0; then
25812 for file in mm
/backing-dev.c
; do
25813 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25814 "$LINUX/$file" 2>/dev
/null
25816 if test $rc -eq 0; then
25821 if test $export -eq 0; then :
25831 if test $rc -ne 0; then :
25833 { $as_echo "$as_me:$LINENO: result: no" >&5
25834 $as_echo "no" >&6; }
25835 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25836 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25840 cat confdefs.h
- <<_ACEOF >conftest.c
25843 cat confdefs.h
>>conftest.
$ac_ext
25844 cat >>conftest.
$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25848 #include <linux/backing-dev.h>
25849 struct backing_dev_info bdi;
25855 char *name = "bdi";
25856 unsigned int cap = BDI_CAP_MAP_COPY;
25857 int error __attribute__((unused)) =
25858 bdi_setup_and_register(&bdi, name, cap);
25868 cat - <<_ACEOF >conftest.h
25873 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25874 echo "obj-m := conftest.o" >build
/Makefile
25876 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25877 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25890 $as_echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.
$ac_ext >&5
25900 if test $rc -ne 0; then :
25902 { $as_echo "$as_me:$LINENO: result: no" >&5
25903 $as_echo "no" >&6; }
25906 if test "x$enable_linux_builtin" != xyes
; then
25908 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25911 if test $rc -ne 0; then
25913 for file in mm
/backing-dev.c
; do
25914 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25915 "$LINUX/$file" 2>/dev
/null
25917 if test $rc -eq 0; then
25922 if test $export -eq 0; then :
25932 if test $rc -ne 0; then :
25934 { $as_echo "$as_me:$LINENO: result: no" >&5
25935 $as_echo "no" >&6; }
25939 { $as_echo "$as_me:$LINENO: result: yes" >&5
25940 $as_echo "yes" >&6; }
25942 cat >>confdefs.h
<<\_ACEOF
25943 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25953 { $as_echo "$as_me:$LINENO: result: yes" >&5
25954 $as_echo "yes" >&6; }
25956 cat >>confdefs.h
<<\_ACEOF
25957 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25967 { $as_echo "$as_me:$LINENO: result: yes" >&5
25968 $as_echo "yes" >&6; }
25970 cat >>confdefs.h
<<\_ACEOF
25971 #define HAVE_SUPER_SETUP_BDI_NAME 1
25980 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25981 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25984 cat confdefs.h
- <<_ACEOF >conftest.c
25987 cat confdefs.h
>>conftest.
$ac_ext
25988 cat >>conftest.
$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25992 #include <linux/fs.h>
25999 unsigned int link = 0;
26000 (void) set_nlink(&node, link);
26010 cat - <<_ACEOF >conftest.h
26015 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26016 echo "obj-m := conftest.o" >build
/Makefile
26018 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26019 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26031 { $as_echo "$as_me:$LINENO: result: yes" >&5
26032 $as_echo "yes" >&6; }
26034 cat >>confdefs.h
<<\_ACEOF
26035 #define HAVE_SET_NLINK 1
26040 $as_echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.
$ac_ext >&5
26043 { $as_echo "$as_me:$LINENO: result: no" >&5
26044 $as_echo "no" >&6; }
26055 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
26056 $as_echo_n "checking whether elevator_change() is available... " >&6; }
26057 tmp_flags
="$EXTRA_KCFLAGS"
26058 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26061 cat confdefs.h
- <<_ACEOF >conftest.c
26064 cat confdefs.h
>>conftest.
$ac_ext
26065 cat >>conftest.
$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26069 #include <linux/blkdev.h>
26070 #include <linux/elevator.h>
26077 struct request_queue *q = NULL;
26078 char *elevator = NULL;
26079 ret = elevator_change(q, elevator);
26089 cat - <<_ACEOF >conftest.h
26094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26095 echo "obj-m := conftest.o" >build
/Makefile
26097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26110 { $as_echo "$as_me:$LINENO: result: yes" >&5
26111 $as_echo "yes" >&6; }
26113 cat >>confdefs.h
<<\_ACEOF
26114 #define HAVE_ELEVATOR_CHANGE 1
26119 $as_echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.
$ac_ext >&5
26122 { $as_echo "$as_me:$LINENO: result: no" >&5
26123 $as_echo "no" >&6; }
26132 EXTRA_KCFLAGS
="$tmp_flags"
26134 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
26135 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
26138 cat confdefs.h
- <<_ACEOF >conftest.c
26141 cat confdefs.h
>>conftest.
$ac_ext
26142 cat >>conftest.
$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26146 #include <linux/fs.h>
26152 struct file_system_type *type = NULL;
26153 int (*test)(struct super_block *,void *) = NULL;
26154 int (*set)(struct super_block *,void *) = NULL;
26157 (void) sget(type, test, set, flags, data);
26167 cat - <<_ACEOF >conftest.h
26172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26173 echo "obj-m := conftest.o" >build
/Makefile
26175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183 (eval $ac_try) 2>&5
26185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); }; }; then
26188 { $as_echo "$as_me:$LINENO: result: yes" >&5
26189 $as_echo "yes" >&6; }
26191 cat >>confdefs.h
<<\_ACEOF
26192 #define HAVE_5ARG_SGET 1
26197 $as_echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.
$ac_ext >&5
26200 { $as_echo "$as_me:$LINENO: result: no" >&5
26201 $as_echo "no" >&6; }
26211 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
26212 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
26216 cat confdefs.h
- <<_ACEOF >conftest.c
26219 cat confdefs.h
>>conftest.
$ac_ext
26220 cat >>conftest.
$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26224 #include <linux/fs.h>
26230 struct file *fp __attribute__ ((unused)) = NULL;
26231 struct inode *ip __attribute__ ((unused)) = NULL;
26232 loff_t offset __attribute__ ((unused)) = 0;
26233 loff_t maxsize __attribute__ ((unused)) = 0;
26235 lseek_execute(fp, ip, offset, maxsize);
26245 cat - <<_ACEOF >conftest.h
26250 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26251 echo "obj-m := conftest.o" >build
/Makefile
26253 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26254 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26267 $as_echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.
$ac_ext >&5
26277 if test $rc -ne 0; then :
26279 { $as_echo "$as_me:$LINENO: result: no" >&5
26280 $as_echo "no" >&6; }
26283 if test "x$enable_linux_builtin" != xyes
; then
26285 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
26286 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26288 if test $rc -ne 0; then
26290 for file in fs
/read_write.c
; do
26291 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
26292 "$LINUX/$file" 2>/dev
/null
26294 if test $rc -eq 0; then
26299 if test $export -eq 0; then :
26309 if test $rc -ne 0; then :
26311 { $as_echo "$as_me:$LINENO: result: no" >&5
26312 $as_echo "no" >&6; }
26316 { $as_echo "$as_me:$LINENO: result: yes" >&5
26317 $as_echo "yes" >&6; }
26319 cat >>confdefs.h
<<\_ACEOF
26320 #define HAVE_LSEEK_EXECUTE 1
26329 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
26330 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
26333 cat confdefs.h
- <<_ACEOF >conftest.c
26336 cat confdefs.h
>>conftest.
$ac_ext
26337 cat >>conftest.
$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26341 #include <linux/fs.h>
26342 int iterate(struct file *filp, struct dir_context * context)
26345 static const struct file_operations fops
26346 __attribute__ ((unused)) = {
26347 .iterate_shared = iterate,
26363 cat - <<_ACEOF >conftest.h
26368 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26369 echo "obj-m := conftest.o" >build
/Makefile
26371 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26372 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; }; then
26384 { $as_echo "$as_me:$LINENO: result: yes" >&5
26385 $as_echo "yes" >&6; }
26387 cat >>confdefs.h
<<\_ACEOF
26388 #define HAVE_VFS_ITERATE_SHARED 1
26393 $as_echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.
$ac_ext >&5
26396 { $as_echo "$as_me:$LINENO: result: no" >&5
26397 $as_echo "no" >&6; }
26399 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
26400 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
26403 cat confdefs.h
- <<_ACEOF >conftest.c
26406 cat confdefs.h
>>conftest.
$ac_ext
26407 cat >>conftest.
$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26411 #include <linux/fs.h>
26412 int iterate(struct file *filp,
26413 struct dir_context *context) { return 0; }
26415 static const struct file_operations fops
26416 __attribute__ ((unused)) = {
26417 .iterate = iterate,
26420 #if defined(FMODE_KABI_ITERATE)
26421 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
26437 cat - <<_ACEOF >conftest.h
26442 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26443 echo "obj-m := conftest.o" >build
/Makefile
26445 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26446 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26458 { $as_echo "$as_me:$LINENO: result: yes" >&5
26459 $as_echo "yes" >&6; }
26461 cat >>confdefs.h
<<\_ACEOF
26462 #define HAVE_VFS_ITERATE 1
26467 $as_echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.
$ac_ext >&5
26470 { $as_echo "$as_me:$LINENO: result: no" >&5
26471 $as_echo "no" >&6; }
26473 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
26474 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
26477 cat confdefs.h
- <<_ACEOF >conftest.c
26480 cat confdefs.h
>>conftest.
$ac_ext
26481 cat >>conftest.
$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26485 #include <linux/fs.h>
26486 int readdir(struct file *filp, void *entry,
26487 filldir_t func) { return 0; }
26489 static const struct file_operations fops
26490 __attribute__ ((unused)) = {
26491 .readdir = readdir,
26507 cat - <<_ACEOF >conftest.h
26512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26513 echo "obj-m := conftest.o" >build
/Makefile
26515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26528 { $as_echo "$as_me:$LINENO: result: yes" >&5
26529 $as_echo "yes" >&6; }
26531 cat >>confdefs.h
<<\_ACEOF
26532 #define HAVE_VFS_READDIR 1
26537 $as_echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.
$ac_ext >&5
26540 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
26541 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
26542 { (exit 1); exit 1; }; }
26568 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
26569 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
26572 cat confdefs.h
- <<_ACEOF >conftest.c
26575 cat confdefs.h
>>conftest.
$ac_ext
26576 cat >>conftest.
$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26580 #include <linux/fs.h>
26582 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
26584 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
26587 static const struct file_operations
26588 fops __attribute__ ((unused)) = {
26589 .read_iter = test_read,
26590 .write_iter = test_write,
26606 cat - <<_ACEOF >conftest.h
26611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26612 echo "obj-m := conftest.o" >build
/Makefile
26614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26627 { $as_echo "$as_me:$LINENO: result: yes" >&5
26628 $as_echo "yes" >&6; }
26630 cat >>confdefs.h
<<\_ACEOF
26631 #define HAVE_VFS_RW_ITERATE 1
26635 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
26636 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
26639 cat confdefs.h
- <<_ACEOF >conftest.c
26642 cat confdefs.h
>>conftest.
$ac_ext
26643 cat >>conftest.
$ac_ext <<_ACEOF
26644 /* end confdefs.h. */
26647 #include <linux/fs.h>
26653 ssize_t ret __attribute__ ((unused));
26654 struct file *filp = NULL;
26655 char __user *rbuf = NULL;
26656 const char __user *wbuf = NULL;
26660 ret = new_sync_read(filp, rbuf, len, &ppos);
26661 ret = new_sync_write(filp, wbuf, len, &ppos);
26671 cat - <<_ACEOF >conftest.h
26676 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26677 echo "obj-m := conftest.o" >build
/Makefile
26679 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26680 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26692 { $as_echo "$as_me:$LINENO: result: yes" >&5
26693 $as_echo "yes" >&6; }
26695 cat >>confdefs.h
<<\_ACEOF
26696 #define HAVE_NEW_SYNC_READ 1
26701 $as_echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.
$ac_ext >&5
26704 { $as_echo "$as_me:$LINENO: result: no" >&5
26705 $as_echo "no" >&6; }
26717 $as_echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.
$ac_ext >&5
26720 { $as_echo "$as_me:$LINENO: result: no" >&5
26721 $as_echo "no" >&6; }
26731 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
26732 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
26735 cat confdefs.h
- <<_ACEOF >conftest.c
26738 cat confdefs.h
>>conftest.
$ac_ext
26739 cat >>conftest.
$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26743 #include <linux/fs.h>
26750 struct kiocb *iocb = NULL;
26751 struct iov_iter *iov = NULL;
26752 generic_write_checks(iocb, iov);
26762 cat - <<_ACEOF >conftest.h
26767 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26768 echo "obj-m := conftest.o" >build
/Makefile
26770 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26771 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26783 { $as_echo "$as_me:$LINENO: result: yes" >&5
26784 $as_echo "yes" >&6; }
26786 cat >>confdefs.h
<<\_ACEOF
26787 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26792 $as_echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.
$ac_ext >&5
26795 { $as_echo "$as_me:$LINENO: result: no" >&5
26796 $as_echo "no" >&6; }
26807 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26808 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26811 cat confdefs.h
- <<_ACEOF >conftest.c
26814 cat confdefs.h
>>conftest.
$ac_ext
26815 cat >>conftest.
$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26819 #include <linux/pagemap.h>
26826 kmap_atomic(&page);
26836 cat - <<_ACEOF >conftest.h
26841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26842 echo "obj-m := conftest.o" >build
/Makefile
26844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26857 { $as_echo "$as_me:$LINENO: result: yes" >&5
26858 $as_echo "yes" >&6; }
26860 cat >>confdefs.h
<<\_ACEOF
26861 #define HAVE_1ARG_KMAP_ATOMIC 1
26866 $as_echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.
$ac_ext >&5
26869 { $as_echo "$as_me:$LINENO: result: no" >&5
26870 $as_echo "no" >&6; }
26881 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26882 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
26885 cat confdefs.h
- <<_ACEOF >conftest.c
26888 cat confdefs.h
>>conftest.
$ac_ext
26889 cat >>conftest.
$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26893 #include <linux/namei.h>
26899 struct path *p = NULL;
26900 follow_down_one(p);
26910 cat - <<_ACEOF >conftest.h
26915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26916 echo "obj-m := conftest.o" >build
/Makefile
26918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26931 { $as_echo "$as_me:$LINENO: result: yes" >&5
26932 $as_echo "yes" >&6; }
26934 cat >>confdefs.h
<<\_ACEOF
26935 #define HAVE_FOLLOW_DOWN_ONE 1
26940 $as_echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.
$ac_ext >&5
26943 { $as_echo "$as_me:$LINENO: result: no" >&5
26944 $as_echo "no" >&6; }
26955 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26956 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26959 cat confdefs.h
- <<_ACEOF >conftest.c
26962 cat confdefs.h
>>conftest.
$ac_ext
26963 cat >>conftest.
$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26967 #include <linux/blkdev.h>
26969 int make_request(struct request_queue *q, struct bio *bio)
26978 blk_queue_make_request(NULL, &make_request);
26988 cat - <<_ACEOF >conftest.h
26993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26994 echo "obj-m := conftest.o" >build
/Makefile
26996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27009 { $as_echo "$as_me:$LINENO: result: yes" >&5
27010 $as_echo "yes" >&6; }
27012 cat >>confdefs.h
<<\_ACEOF
27013 #define MAKE_REQUEST_FN_RET int
27017 cat >>confdefs.h
<<\_ACEOF
27018 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
27023 $as_echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.
$ac_ext >&5
27026 { $as_echo "$as_me:$LINENO: result: no" >&5
27027 $as_echo "no" >&6; }
27028 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
27029 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
27032 cat confdefs.h
- <<_ACEOF >conftest.c
27035 cat confdefs.h
>>conftest.
$ac_ext
27036 cat >>conftest.
$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27040 #include <linux/blkdev.h>
27042 void make_request(struct request_queue *q, struct bio *bio)
27051 blk_queue_make_request(NULL, &make_request);
27061 cat - <<_ACEOF >conftest.h
27066 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27067 echo "obj-m := conftest.o" >build
/Makefile
27069 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27070 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; }; then
27082 { $as_echo "$as_me:$LINENO: result: yes" >&5
27083 $as_echo "yes" >&6; }
27085 cat >>confdefs.h
<<\_ACEOF
27086 #define MAKE_REQUEST_FN_RET void
27091 $as_echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.
$ac_ext >&5
27094 { $as_echo "$as_me:$LINENO: result: no" >&5
27095 $as_echo "no" >&6; }
27096 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
27097 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
27100 cat confdefs.h
- <<_ACEOF >conftest.c
27103 cat confdefs.h
>>conftest.
$ac_ext
27104 cat >>conftest.
$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27108 #include <linux/blkdev.h>
27110 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
27112 return (BLK_QC_T_NONE);
27119 blk_queue_make_request(NULL, &make_request);
27129 cat - <<_ACEOF >conftest.h
27134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27135 echo "obj-m := conftest.o" >build
/Makefile
27137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
27150 { $as_echo "$as_me:$LINENO: result: yes" >&5
27151 $as_echo "yes" >&6; }
27153 cat >>confdefs.h
<<\_ACEOF
27154 #define MAKE_REQUEST_FN_RET blk_qc_t
27158 cat >>confdefs.h
<<\_ACEOF
27159 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
27164 $as_echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.
$ac_ext >&5
27167 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
27168 https://github.com/zfsonlinux/zfs/issues/new" >&5
27169 $as_echo "$as_me: error: no - Please file a bug report at
27170 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
27171 { (exit 1); exit 1; }; }
27198 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
27199 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
27203 cat confdefs.h
- <<_ACEOF >conftest.c
27206 cat confdefs.h
>>conftest.
$ac_ext
27207 cat >>conftest.
$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27211 #include <linux/bio.h>
27213 void (*generic_start_io_acct_f)(int, unsigned long,
27214 struct hd_struct *) = &generic_start_io_acct;
27215 void (*generic_end_io_acct_f)(int, struct hd_struct *,
27216 unsigned long) = &generic_end_io_acct;
27222 generic_start_io_acct(0, 0, NULL);
27223 generic_end_io_acct(0, NULL, 0);
27233 cat - <<_ACEOF >conftest.h
27238 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27239 echo "obj-m := conftest.o" >build
/Makefile
27241 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27242 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
27255 $as_echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.
$ac_ext >&5
27265 if test $rc -ne 0; then :
27267 { $as_echo "$as_me:$LINENO: result: no" >&5
27268 $as_echo "no" >&6; }
27271 if test "x$enable_linux_builtin" != xyes
; then
27273 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27276 if test $rc -ne 0; then
27278 for file in block
/bio.c
; do
27279 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27280 "$LINUX/$file" 2>/dev
/null
27282 if test $rc -eq 0; then
27287 if test $export -eq 0; then :
27297 if test $rc -ne 0; then :
27299 { $as_echo "$as_me:$LINENO: result: no" >&5
27300 $as_echo "no" >&6; }
27304 { $as_echo "$as_me:$LINENO: result: yes" >&5
27305 $as_echo "yes" >&6; }
27307 cat >>confdefs.h
<<\_ACEOF
27308 #define HAVE_GENERIC_IO_ACCT_3ARG 1
27317 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
27318 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
27322 cat confdefs.h
- <<_ACEOF >conftest.c
27325 cat confdefs.h
>>conftest.
$ac_ext
27326 cat >>conftest.
$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27330 #include <linux/bio.h>
27332 void (*generic_start_io_acct_f)(struct request_queue *, int,
27333 unsigned long, struct hd_struct *) = &generic_start_io_acct;
27334 void (*generic_end_io_acct_f)(struct request_queue *, int,
27335 struct hd_struct *, unsigned long) = &generic_end_io_acct;
27341 generic_start_io_acct(NULL, 0, 0, NULL);
27342 generic_end_io_acct(NULL, 0, NULL, 0);
27352 cat - <<_ACEOF >conftest.h
27357 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27358 echo "obj-m := conftest.o" >build
/Makefile
27360 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27361 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27374 $as_echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.
$ac_ext >&5
27384 if test $rc -ne 0; then :
27386 { $as_echo "$as_me:$LINENO: result: no" >&5
27387 $as_echo "no" >&6; }
27390 if test "x$enable_linux_builtin" != xyes
; then
27392 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27393 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27395 if test $rc -ne 0; then
27397 for file in block
/bio.c
; do
27398 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27399 "$LINUX/$file" 2>/dev
/null
27401 if test $rc -eq 0; then
27406 if test $export -eq 0; then :
27416 if test $rc -ne 0; then :
27418 { $as_echo "$as_me:$LINENO: result: no" >&5
27419 $as_echo "no" >&6; }
27423 { $as_echo "$as_me:$LINENO: result: yes" >&5
27424 $as_echo "yes" >&6; }
27426 cat >>confdefs.h
<<\_ACEOF
27427 #define HAVE_GENERIC_IO_ACCT_4ARG 1
27436 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
27437 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
27440 cat confdefs.h
- <<_ACEOF >conftest.c
27443 cat confdefs.h
>>conftest.
$ac_ext
27444 cat >>conftest.
$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27448 #include <linux/kernel.h>
27449 #include <asm/fpu/api.h>
27455 __kernel_fpu_begin();
27465 cat - <<_ACEOF >conftest.h
27470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27471 echo "obj-m := conftest.o" >build
/Makefile
27473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27486 { $as_echo "$as_me:$LINENO: result: yes" >&5
27487 $as_echo "yes" >&6; }
27489 cat >>confdefs.h
<<\_ACEOF
27490 #define HAVE_FPU_API_H 1
27495 $as_echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.
$ac_ext >&5
27498 { $as_echo "$as_me:$LINENO: result: no" >&5
27499 $as_echo "no" >&6; }
27510 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
27511 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
27514 cat confdefs.h
- <<_ACEOF >conftest.c
27517 cat confdefs.h
>>conftest.
$ac_ext
27518 cat >>conftest.
$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27522 #include <linux/fs.h>
27528 struct inode *ip = NULL;
27529 (void) i_uid_read(ip);
27539 cat - <<_ACEOF >conftest.h
27544 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27545 echo "obj-m := conftest.o" >build
/Makefile
27547 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27548 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27560 { $as_echo "$as_me:$LINENO: result: yes" >&5
27561 $as_echo "yes" >&6; }
27563 cat >>confdefs.h
<<\_ACEOF
27564 #define HAVE_KUID_HELPERS 1
27569 $as_echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.
$ac_ext >&5
27572 { $as_echo "$as_me:$LINENO: result: no" >&5
27573 $as_echo "no" >&6; }
27584 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
27585 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
27588 cat confdefs.h
- <<_ACEOF >conftest.c
27591 cat confdefs.h
>>conftest.
$ac_ext
27592 cat >>conftest.
$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27596 #include <linux/module.h>
27597 #include <linux/moduleparam.h>
27599 int param_get(char *b, const struct kernel_param *kp)
27604 int param_set(const char *b, const struct kernel_param *kp)
27609 module_param_call(p, param_set, param_get, NULL, 0644);
27624 cat - <<_ACEOF >conftest.h
27629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27630 echo "obj-m := conftest.o" >build
/Makefile
27632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640 (eval $ac_try) 2>&5
27642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; }; then
27645 { $as_echo "$as_me:$LINENO: result: yes" >&5
27646 $as_echo "yes" >&6; }
27648 cat >>confdefs.h
<<\_ACEOF
27649 #define MODULE_PARAM_CALL_CONST 1
27654 $as_echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.
$ac_ext >&5
27657 { $as_echo "$as_me:$LINENO: result: no" >&5
27658 $as_echo "no" >&6; }
27669 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
27670 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
27673 cat confdefs.h
- <<_ACEOF >conftest.c
27676 cat confdefs.h
>>conftest.
$ac_ext
27677 cat >>conftest.
$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27681 #include <linux/fs.h>
27682 int rename_fn(struct inode *sip, struct dentry *sdp,
27683 struct inode *tip, struct dentry *tdp,
27684 unsigned int flags) { return 0; }
27686 static const struct inode_operations
27687 iops __attribute__ ((unused)) = {
27688 .rename = rename_fn,
27704 cat - <<_ACEOF >conftest.h
27709 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27710 echo "obj-m := conftest.o" >build
/Makefile
27712 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27713 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27725 { $as_echo "$as_me:$LINENO: result: yes" >&5
27726 $as_echo "yes" >&6; }
27728 cat >>confdefs.h
<<\_ACEOF
27729 #define HAVE_RENAME_WANTS_FLAGS 1
27734 $as_echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.
$ac_ext >&5
27737 { $as_echo "$as_me:$LINENO: result: no" >&5
27738 $as_echo "no" >&6; }
27749 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27750 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27753 cat confdefs.h
- <<_ACEOF >conftest.c
27756 cat confdefs.h
>>conftest.
$ac_ext
27757 cat >>conftest.
$ac_ext <<_ACEOF
27758 /* end confdefs.h. */
27761 #include <linux/fs.h>
27762 #include <linux/xattr.h>
27764 static const struct inode_operations
27765 iops __attribute__ ((unused)) = {
27766 .setxattr = generic_setxattr
27782 cat - <<_ACEOF >conftest.h
27787 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27788 echo "obj-m := conftest.o" >build
/Makefile
27790 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27791 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27803 { $as_echo "$as_me:$LINENO: result: yes" >&5
27804 $as_echo "yes" >&6; }
27806 cat >>confdefs.h
<<\_ACEOF
27807 #define HAVE_GENERIC_SETXATTR 1
27812 $as_echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.
$ac_ext >&5
27815 { $as_echo "$as_me:$LINENO: result: no" >&5
27816 $as_echo "no" >&6; }
27826 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27827 $as_echo_n "checking whether current_time() exists... " >&6; }
27831 cat confdefs.h
- <<_ACEOF >conftest.c
27834 cat confdefs.h
>>conftest.
$ac_ext
27835 cat >>conftest.
$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27839 #include <linux/fs.h>
27845 struct inode ip __attribute__ ((unused));
27846 ip.i_atime = current_time(&ip);
27856 cat - <<_ACEOF >conftest.h
27861 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27862 echo "obj-m := conftest.o" >build
/Makefile
27864 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27865 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27878 $as_echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.
$ac_ext >&5
27888 if test $rc -ne 0; then :
27890 { $as_echo "$as_me:$LINENO: result: no" >&5
27891 $as_echo "no" >&6; }
27894 if test "x$enable_linux_builtin" != xyes
; then
27896 grep -q -E '[[:space:]]current_time[[:space:]]' \
27897 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27899 if test $rc -ne 0; then
27901 for file in fs
/inode.c
; do
27902 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27903 "$LINUX/$file" 2>/dev
/null
27905 if test $rc -eq 0; then
27910 if test $export -eq 0; then :
27920 if test $rc -ne 0; then :
27922 { $as_echo "$as_me:$LINENO: result: no" >&5
27923 $as_echo "no" >&6; }
27927 { $as_echo "$as_me:$LINENO: result: yes" >&5
27928 $as_echo "yes" >&6; }
27930 cat >>confdefs.h
<<\_ACEOF
27931 #define HAVE_CURRENT_TIME 1
27941 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
27942 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
27945 cat confdefs.h
- <<_ACEOF >conftest.c
27948 cat confdefs.h
>>conftest.
$ac_ext
27949 cat >>conftest.
$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27953 #include <linux/mm.h>
27954 #include <linux/vmstat.h>
27960 (void) global_node_page_state(0);
27970 cat - <<_ACEOF >conftest.h
27975 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27976 echo "obj-m := conftest.o" >build
/Makefile
27978 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27979 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27991 { $as_echo "$as_me:$LINENO: result: yes" >&5
27992 $as_echo "yes" >&6; }
27994 cat >>confdefs.h
<<\_ACEOF
27995 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
28000 $as_echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.
$ac_ext >&5
28003 { $as_echo "$as_me:$LINENO: result: no" >&5
28004 $as_echo "no" >&6; }
28015 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
28016 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
28019 cat confdefs.h
- <<_ACEOF >conftest.c
28022 cat confdefs.h
>>conftest.
$ac_ext
28023 cat >>conftest.
$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28027 #include <linux/mm.h>
28028 #include <linux/vmstat.h>
28034 (void) global_zone_page_state(0);
28044 cat - <<_ACEOF >conftest.h
28049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28050 echo "obj-m := conftest.o" >build
/Makefile
28052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28065 { $as_echo "$as_me:$LINENO: result: yes" >&5
28066 $as_echo "yes" >&6; }
28068 cat >>confdefs.h
<<\_ACEOF
28069 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
28074 $as_echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.
$ac_ext >&5
28077 { $as_echo "$as_me:$LINENO: result: no" >&5
28078 $as_echo "no" >&6; }
28090 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
28091 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
28092 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28099 { $as_echo "$as_me:$LINENO: result: yes" >&5
28100 $as_echo "yes" >&6; }
28102 cat >>confdefs.h
<<\_ACEOF
28103 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
28106 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES
=1
28110 { $as_echo "$as_me:$LINENO: result: no" >&5
28111 $as_echo "no" >&6; }
28117 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
28118 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
28119 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28126 { $as_echo "$as_me:$LINENO: result: yes" >&5
28127 $as_echo "yes" >&6; }
28129 cat >>confdefs.h
<<\_ACEOF
28130 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
28133 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON
=1
28137 { $as_echo "$as_me:$LINENO: result: no" >&5
28138 $as_echo "no" >&6; }
28144 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
28145 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
28146 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28153 { $as_echo "$as_me:$LINENO: result: yes" >&5
28154 $as_echo "yes" >&6; }
28156 cat >>confdefs.h
<<\_ACEOF
28157 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
28160 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE
=1
28164 { $as_echo "$as_me:$LINENO: result: no" >&5
28165 $as_echo "no" >&6; }
28171 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28172 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28173 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
28180 { $as_echo "$as_me:$LINENO: result: yes" >&5
28181 $as_echo "yes" >&6; }
28183 cat >>confdefs.h
<<\_ACEOF
28184 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28187 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE
=1
28191 { $as_echo "$as_me:$LINENO: result: no" >&5
28192 $as_echo "no" >&6; }
28199 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
28200 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
28201 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28208 { $as_echo "$as_me:$LINENO: result: yes" >&5
28209 $as_echo "yes" >&6; }
28211 cat >>confdefs.h
<<\_ACEOF
28212 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
28215 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES
=1
28219 { $as_echo "$as_me:$LINENO: result: no" >&5
28220 $as_echo "no" >&6; }
28226 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
28227 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
28228 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28235 { $as_echo "$as_me:$LINENO: result: yes" >&5
28236 $as_echo "yes" >&6; }
28238 cat >>confdefs.h
<<\_ACEOF
28239 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
28242 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON
=1
28246 { $as_echo "$as_me:$LINENO: result: no" >&5
28247 $as_echo "no" >&6; }
28253 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
28254 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
28255 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; }; then
28262 { $as_echo "$as_me:$LINENO: result: yes" >&5
28263 $as_echo "yes" >&6; }
28265 cat >>confdefs.h
<<\_ACEOF
28266 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
28269 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE
=1
28273 { $as_echo "$as_me:$LINENO: result: no" >&5
28274 $as_echo "no" >&6; }
28280 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28281 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28282 if { ac_try
='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28289 { $as_echo "$as_me:$LINENO: result: yes" >&5
28290 $as_echo "yes" >&6; }
28292 cat >>confdefs.h
<<\_ACEOF
28293 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28296 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE
=1
28300 { $as_echo "$as_me:$LINENO: result: no" >&5
28301 $as_echo "no" >&6; }
28308 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
28309 $as_echo_n "checking global_page_state enums are sane... " >&6; }
28312 enum_check_a
="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
28313 enum_check_b
="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
28314 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28317 { $as_echo "$as_me:$LINENO: result: no" >&5
28318 $as_echo "no" >&6; }
28319 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28320 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28321 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28322 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28323 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28325 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28326 See \`config.log' for more details." >&5
28327 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28328 See \`config.log' for more details." >&2;}
28329 { (exit 1); exit 1; }; }; }
28334 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28337 { $as_echo "$as_me:$LINENO: result: no" >&5
28338 $as_echo "no" >&6; }
28339 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28340 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28341 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28342 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28343 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28345 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28346 See \`config.log' for more details." >&5
28347 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28348 See \`config.log' for more details." >&2;}
28349 { (exit 1); exit 1; }; }; }
28356 enum_check_a
="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
28357 enum_check_b
="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
28358 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28361 { $as_echo "$as_me:$LINENO: result: no" >&5
28362 $as_echo "no" >&6; }
28363 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28364 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28365 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28366 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28369 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28370 See \`config.log' for more details." >&5
28371 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28372 See \`config.log' for more details." >&2;}
28373 { (exit 1); exit 1; }; }; }
28378 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28381 { $as_echo "$as_me:$LINENO: result: no" >&5
28382 $as_echo "no" >&6; }
28383 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28384 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28385 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28386 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28389 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28390 See \`config.log' for more details." >&5
28391 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28392 See \`config.log' for more details." >&2;}
28393 { (exit 1); exit 1; }; }; }
28400 enum_check_a
="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
28401 enum_check_b
="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
28402 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28405 { $as_echo "$as_me:$LINENO: result: no" >&5
28406 $as_echo "no" >&6; }
28407 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28408 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28409 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28410 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28413 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28414 See \`config.log' for more details." >&5
28415 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28416 See \`config.log' for more details." >&2;}
28417 { (exit 1); exit 1; }; }; }
28422 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28425 { $as_echo "$as_me:$LINENO: result: no" >&5
28426 $as_echo "no" >&6; }
28427 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28428 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28429 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28430 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28433 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28434 See \`config.log' for more details." >&5
28435 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28436 See \`config.log' for more details." >&2;}
28437 { (exit 1); exit 1; }; }; }
28444 enum_check_a
="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28445 enum_check_b
="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28446 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28449 { $as_echo "$as_me:$LINENO: result: no" >&5
28450 $as_echo "no" >&6; }
28451 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28452 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28453 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28454 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28457 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28458 See \`config.log' for more details." >&5
28459 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28460 See \`config.log' for more details." >&2;}
28461 { (exit 1); exit 1; }; }; }
28466 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28469 { $as_echo "$as_me:$LINENO: result: no" >&5
28470 $as_echo "no" >&6; }
28471 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28472 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28473 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28474 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28475 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28477 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28478 See \`config.log' for more details." >&5
28479 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28480 See \`config.log' for more details." >&2;}
28481 { (exit 1); exit 1; }; }; }
28488 { $as_echo "$as_me:$LINENO: result: yes" >&5
28489 $as_echo "yes" >&6; }
28493 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
28494 $as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
28497 cat confdefs.h
- <<_ACEOF >conftest.c
28500 cat confdefs.h
>>conftest.
$ac_ext
28501 cat >>conftest.
$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28505 #include <linux/backing-dev.h>
28506 #include <linux/refcount.h>
28507 #include <linux/posix_acl.h>
28513 struct posix_acl acl;
28514 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
28524 cat - <<_ACEOF >conftest.h
28529 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28530 echo "obj-m := conftest.o" >build
/Makefile
28532 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28533 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28545 { $as_echo "$as_me:$LINENO: result: yes" >&5
28546 $as_echo "yes" >&6; }
28548 cat >>confdefs.h
<<\_ACEOF
28549 #define HAVE_ACL_REFCOUNT 1
28554 $as_echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.
$ac_ext >&5
28557 { $as_echo "$as_me:$LINENO: result: no" >&5
28558 $as_echo "no" >&6; }
28570 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
28571 $as_echo_n "checking whether ns_capable exists... " >&6; }
28574 cat confdefs.h
- <<_ACEOF >conftest.c
28577 cat confdefs.h
>>conftest.
$ac_ext
28578 cat >>conftest.
$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28582 #include <linux/capability.h>
28588 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
28598 cat - <<_ACEOF >conftest.h
28603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28604 echo "obj-m := conftest.o" >build
/Makefile
28606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28619 { $as_echo "$as_me:$LINENO: result: yes" >&5
28620 $as_echo "yes" >&6; }
28622 cat >>confdefs.h
<<\_ACEOF
28623 #define HAVE_NS_CAPABLE 1
28628 $as_echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.
$ac_ext >&5
28631 { $as_echo "$as_me:$LINENO: result: no" >&5
28632 $as_echo "no" >&6; }
28643 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
28644 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
28647 cat confdefs.h
- <<_ACEOF >conftest.c
28650 cat confdefs.h
>>conftest.
$ac_ext
28651 cat >>conftest.
$ac_ext <<_ACEOF
28652 /* end confdefs.h. */
28655 #include <linux/cred.h>
28662 cr.user_ns = (struct user_namespace *)NULL;
28672 cat - <<_ACEOF >conftest.h
28677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28678 echo "obj-m := conftest.o" >build
/Makefile
28680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28693 { $as_echo "$as_me:$LINENO: result: yes" >&5
28694 $as_echo "yes" >&6; }
28696 cat >>confdefs.h
<<\_ACEOF
28697 #define HAVE_CRED_USER_NS 1
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.
$ac_ext >&5
28705 { $as_echo "$as_me:$LINENO: result: no" >&5
28706 $as_echo "no" >&6; }
28717 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
28718 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
28721 cat confdefs.h
- <<_ACEOF >conftest.c
28724 cat confdefs.h
>>conftest.
$ac_ext
28725 cat >>conftest.
$ac_ext <<_ACEOF
28726 /* end confdefs.h. */
28729 #include <linux/uidgid.h>
28735 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
28736 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
28746 cat - <<_ACEOF >conftest.h
28751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28752 echo "obj-m := conftest.o" >build
/Makefile
28754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28767 { $as_echo "$as_me:$LINENO: result: yes" >&5
28768 $as_echo "yes" >&6; }
28770 cat >>confdefs.h
<<\_ACEOF
28771 #define HAVE_KUID_HAS_MAPPING 1
28776 $as_echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.
$ac_ext >&5
28779 { $as_echo "$as_me:$LINENO: result: no" >&5
28780 $as_echo "no" >&6; }
28792 if test "$LINUX_OBJ" != "$LINUX"; then
28794 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
28801 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
28802 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
28803 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
28804 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
28805 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
28806 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
28813 # Check whether --with-mounthelperdir was given.
28814 if test "${with_mounthelperdir+set}" = set; then
28815 withval
=$with_mounthelperdir; mounthelperdir
=$withval
28817 mounthelperdir
=/sbin
28824 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
28825 $as_echo_n "checking for udev directories... " >&6; }
28827 # Check whether --with-udevdir was given.
28828 if test "${with_udevdir+set}" = set; then
28829 withval
=$with_udevdir; udevdir
=$withval
28835 if test "x$udevdir" = xcheck
; then
28838 path2
=/usr
/lib
/udev
28841 if test -d "$path1"; then
28845 if test -d "$path2"; then
28859 # Check whether --with-udevruledir was given.
28860 if test "${with_udevruledir+set}" = set; then
28861 withval
=$with_udevruledir; udevruledir
=$withval
28863 udevruledir
="${udevdir}/rules.d"
28869 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
28870 $as_echo "$udevdir;$udevruledir" >&6; }
28873 # Check whether --enable-systemd was given.
28874 if test "${enable_systemd+set}" = set; then
28875 enableval
=$enable_systemd; enable_systemd
=$enableval
28877 enable_systemd
=check
28882 # Check whether --with-systemdunitdir was given.
28883 if test "${with_systemdunitdir+set}" = set; then
28884 withval
=$with_systemdunitdir; systemdunitdir
=$withval
28886 systemdunitdir
=/usr
/lib
/systemd
/system
28891 # Check whether --with-systemdpresetdir was given.
28892 if test "${with_systemdpresetdir+set}" = set; then
28893 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
28895 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
28900 # Check whether --with-systemdmodulesloaddir was given.
28901 if test "${with_systemdmodulesloaddir+set}" = set; then
28902 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
28904 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
28908 if test "x$enable_systemd" = xcheck
; then
28910 if systemctl
--version >/dev
/null
2>&1; then
28920 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
28921 $as_echo_n "checking for systemd support... " >&6; }
28922 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
28923 $as_echo "$enable_systemd" >&6; }
28925 if test "x$enable_systemd" = xyes
; then
28927 ZFS_INIT_SYSTEMD
=systemd
28928 ZFS_MODULE_LOAD
=modules-load.d
28929 DEFINE_SYSTEMD
='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
28930 modulesloaddir
=$systemdmodulesloaddir
28934 DEFINE_SYSTEMD
='--without systemd'
28947 # Check whether --enable-sysvinit was given.
28948 if test "${enable_sysvinit+set}" = set; then
28949 enableval
=$enable_sysvinit;
28951 enable_sysvinit
=yes
28955 if test "x$enable_sysvinit" = xyes
; then
28956 ZFS_INIT_SYSV
=init.d
28963 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
28964 $as_echo_n "checking for dracut directory... " >&6; }
28966 # Check whether --with-dracutdir was given.
28967 if test "${with_dracutdir+set}" = set; then
28968 withval
=$with_dracutdir; dracutdir
=$withval
28974 if test "x$dracutdir" = xcheck
; then
28976 path1
=/usr
/share
/dracut
28977 path2
=/usr
/lib
/dracut
28980 if test -d "$path1"; then
28984 if test -d "$path2"; then
28987 dracutdir
="$default"
28998 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
28999 $as_echo "$dracutdir" >&6; }
29004 if test "${ac_cv_header_zlib_h+set}" = set; then
29005 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29006 $as_echo_n "checking for zlib.h... " >&6; }
29007 if test "${ac_cv_header_zlib_h+set}" = set; then
29008 $as_echo_n "(cached) " >&6
29010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29011 $as_echo "$ac_cv_header_zlib_h" >&6; }
29013 # Is the header compilable?
29014 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29015 $as_echo_n "checking zlib.h usability... " >&6; }
29016 cat >conftest.
$ac_ext <<_ACEOF
29019 cat confdefs.h
>>conftest.
$ac_ext
29020 cat >>conftest.
$ac_ext <<_ACEOF
29021 /* end confdefs.h. */
29022 $ac_includes_default
29025 rm -f conftest.
$ac_objext
29026 if { (ac_try
="$ac_compile"
29027 case "(($ac_try" in
29028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29032 $as_echo "$ac_try_echo") >&5
29033 (eval "$ac_compile") 2>conftest.er1
29035 grep -v '^ *+' conftest.er1 >conftest.err
29037 cat conftest.err >&5
29038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } && {
29040 test -z "$ac_c_werror_flag" ||
29041 test ! -s conftest.err
29042 } && test -s conftest.$ac_objext; then
29043 ac_header_compiler=yes
29045 $as_echo "$as_me: failed program was:" >&5
29046 sed 's/^/| /' conftest.$ac_ext >&5
29048 ac_header_compiler=no
29051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29052 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29053 $as_echo "$ac_header_compiler" >&6; }
29055 # Is the header present?
29056 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29057 $as_echo_n "checking zlib.h presence... " >&6; }
29058 cat >conftest.$ac_ext <<_ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29066 if { (ac_try="$ac_cpp conftest.$ac_ext"
29067 case "(($ac_try" in
29068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29069 *) ac_try_echo
=$ac_try;;
29071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29072 $as_echo "$ac_try_echo") >&5
29073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29075 grep -v '^ *+' conftest.er1
>conftest.err
29077 cat conftest.err
>&5
29078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } >/dev
/null
&& {
29080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29083 ac_header_preproc
=yes
29085 $as_echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.
$ac_ext >&5
29088 ac_header_preproc
=no
29091 rm -f conftest.err conftest.
$ac_ext
29092 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29093 $as_echo "$ac_header_preproc" >&6; }
29095 # So? What about this header?
29096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29098 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29099 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29100 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29101 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29102 ac_header_preproc
=yes
29105 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29106 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29107 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29108 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29109 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29110 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29111 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29112 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29113 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29114 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29115 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29116 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29120 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29121 $as_echo_n "checking for zlib.h... " >&6; }
29122 if test "${ac_cv_header_zlib_h+set}" = set; then
29123 $as_echo_n "(cached) " >&6
29125 ac_cv_header_zlib_h
=$ac_header_preproc
29127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29128 $as_echo "$ac_cv_header_zlib_h" >&6; }
29131 if test "x$ac_cv_header_zlib_h" = x
""yes; then
29134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29136 { { $as_echo "$as_me:$LINENO: error:
29137 *** zlib.h missing, zlib-devel package required
29138 See \`config.log' for more details." >&5
29139 $as_echo "$as_me: error:
29140 *** zlib.h missing, zlib-devel package required
29141 See \`config.log' for more details." >&2;}
29142 { (exit 1); exit 1; }; }; }
29147 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29148 $as_echo_n "checking for library containing compress2... " >&6; }
29149 if test "${ac_cv_search_compress2+set}" = set; then
29150 $as_echo_n "(cached) " >&6
29152 ac_func_search_save_LIBS
=$LIBS
29153 cat >conftest.
$ac_ext <<_ACEOF
29156 cat confdefs.h
>>conftest.
$ac_ext
29157 cat >>conftest.
$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29160 /* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29170 return compress2 ();
29175 for ac_lib
in '' z
; do
29176 if test -z "$ac_lib"; then
29177 ac_res
="none required"
29180 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29182 rm -f conftest.
$ac_objext conftest
$ac_exeext
29183 if { (ac_try
="$ac_link"
29184 case "(($ac_try" in
29185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29189 $as_echo "$ac_try_echo") >&5
29190 (eval "$ac_link") 2>conftest.er1
29192 grep -v '^ *+' conftest.er1 >conftest.err
29194 cat conftest.err >&5
29195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && {
29197 test -z "$ac_c_werror_flag" ||
29198 test ! -s conftest.err
29199 } && test -s conftest$ac_exeext && {
29200 test "$cross_compiling" = yes ||
29201 $as_test_x conftest$ac_exeext
29203 ac_cv_search_compress2=$ac_res
29205 $as_echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29211 rm -rf conftest.dSYM
29212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29214 if test "${ac_cv_search_compress2+set}" = set; then
29218 if test "${ac_cv_search_compress2+set}" = set; then
29221 ac_cv_search_compress2=no
29223 rm conftest.$ac_ext
29224 LIBS=$ac_func_search_save_LIBS
29226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29227 $as_echo "$ac_cv_search_compress2" >&6; }
29228 ac_res=$ac_cv_search_compress2
29229 if test "$ac_res" != no; then
29230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29235 { { $as_echo "$as_me:$LINENO: error
:
29236 *** compress2
() missing
, zlib-devel package required
29237 See \
`config.log' for more details." >&5
29238 $as_echo "$as_me: error:
29239 *** compress2() missing, zlib-devel package required
29240 See \`config.log
' for more details." >&2;}
29241 { (exit 1); exit 1; }; }; }
29245 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29246 $as_echo_n "checking for library containing uncompress... " >&6; }
29247 if test "${ac_cv_search_uncompress+set}" = set; then
29248 $as_echo_n "(cached) " >&6
29250 ac_func_search_save_LIBS=$LIBS
29251 cat >conftest.$ac_ext <<_ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29258 /* Override any GCC internal prototype to avoid an error.
29259 Use char because int might match the return type of a GCC
29260 builtin and then its argument prototype would still apply. */
29264 char uncompress ();
29268 return uncompress ();
29273 for ac_lib in '' z; do
29274 if test -z "$ac_lib"; then
29275 ac_res="none required"
29278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29287 $as_echo "$ac_try_echo") >&5
29288 (eval "$ac_link") 2>conftest.er1
29290 grep -v '^
*+' conftest.er1 >conftest.err
29292 cat conftest.err >&5
29293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } && {
29295 test -z "$ac_c_werror_flag" ||
29296 test ! -s conftest.err
29297 } && test -s conftest$ac_exeext && {
29298 test "$cross_compiling" = yes ||
29299 $as_test_x conftest$ac_exeext
29301 ac_cv_search_uncompress=$ac_res
29303 $as_echo "$as_me: failed program was:" >&5
29304 sed 's
/^
/|
/' conftest.$ac_ext >&5
29309 rm -rf conftest.dSYM
29310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29312 if test "${ac_cv_search_uncompress+set}" = set; then
29316 if test "${ac_cv_search_uncompress+set}" = set; then
29319 ac_cv_search_uncompress=no
29321 rm conftest.$ac_ext
29322 LIBS=$ac_func_search_save_LIBS
29324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29325 $as_echo "$ac_cv_search_uncompress" >&6; }
29326 ac_res=$ac_cv_search_uncompress
29327 if test "$ac_res" != no; then
29328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29332 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
29333 { { $as_echo "$as_me:$LINENO: error:
29334 *** uncompress() missing, zlib-devel package required
29335 See \`config.log
' for more details." >&5
29336 $as_echo "$as_me: error:
29337 *** uncompress() missing, zlib-devel package required
29338 See \`config.log' for more details.
" >&2;}
29339 { (exit 1); exit 1; }; }; }
29343 { $as_echo "$as_me:$LINENO: checking
for library containing crc32
" >&5
29344 $as_echo_n "checking
for library containing crc32...
" >&6; }
29345 if test "${ac_cv_search_crc32+set}" = set; then
29346 $as_echo_n "(cached
) " >&6
29348 ac_func_search_save_LIBS=$LIBS
29349 cat >conftest.$ac_ext <<_ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29356 /* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29371 for ac_lib in '' z; do
29372 if test -z "$ac_lib"; then
29373 ac_res="none required
"
29376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379 if { (ac_try="$ac_link"
29380 case "(($ac_try" in
29381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382 *) ac_try_echo=$ac_try;;
29384 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29385 $as_echo "$ac_try_echo") >&5
29386 (eval "$ac_link") 2>conftest.er1
29388 grep -v '^ *+' conftest.er1 >conftest.err
29390 cat conftest.err >&5
29391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29392 (exit $ac_status); } && {
29393 test -z "$ac_c_werror_flag" ||
29394 test ! -s conftest.err
29395 } && test -s conftest$ac_exeext && {
29396 test "$cross_compiling" = yes ||
29397 $as_test_x conftest$ac_exeext
29399 ac_cv_search_crc32=$ac_res
29401 $as_echo "$as_me: failed program was
:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29407 rm -rf conftest.dSYM
29408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29410 if test "${ac_cv_search_crc32+set}" = set; then
29414 if test "${ac_cv_search_crc32+set}" = set; then
29417 ac_cv_search_crc32=no
29419 rm conftest.$ac_ext
29420 LIBS=$ac_func_search_save_LIBS
29422 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_crc32" >&5
29423 $as_echo "$ac_cv_search_crc32" >&6; }
29424 ac_res=$ac_cv_search_crc32
29425 if test "$ac_res" != no; then
29426 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
29429 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
29430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29431 { { $as_echo "$as_me:$LINENO: error:
29432 *** crc32() missing, zlib-devel package required
29433 See \`config.log' for more details.
" >&5
29434 $as_echo "$as_me: error
:
29435 *** crc32
() missing
, zlib-devel package required
29436 See \
`config.log' for more details." >&2;}
29437 { (exit 1); exit 1; }; }; }
29444 cat >>confdefs.h <<\_ACEOF
29445 #define HAVE_ZLIB 1
29452 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29453 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29454 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29455 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29456 $as_echo_n "(cached) " >&6
29458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29459 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29461 # Is the header compilable?
29462 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
29463 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
29464 cat >conftest.$ac_ext <<_ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470 $ac_includes_default
29471 #include <uuid/uuid.h>
29473 rm -f conftest.$ac_objext
29474 if { (ac_try="$ac_compile"
29475 case "(($ac_try" in
29476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29477 *) ac_try_echo
=$ac_try;;
29479 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29480 $as_echo "$ac_try_echo") >&5
29481 (eval "$ac_compile") 2>conftest.er1
29483 grep -v '^ *+' conftest.er1
>conftest.err
29485 cat conftest.err
>&5
29486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest.
$ac_objext; then
29491 ac_header_compiler
=yes
29493 $as_echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.
$ac_ext >&5
29496 ac_header_compiler
=no
29499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501 $as_echo "$ac_header_compiler" >&6; }
29503 # Is the header present?
29504 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
29505 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
29506 cat >conftest.
$ac_ext <<_ACEOF
29509 cat confdefs.h
>>conftest.
$ac_ext
29510 cat >>conftest.
$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 #include <uuid/uuid.h>
29514 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29515 case "(($ac_try" in
29516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29520 $as_echo "$ac_try_echo") >&5
29521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29523 grep -v '^ *+' conftest.er1 >conftest.err
29525 cat conftest.err >&5
29526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } >/dev/null && {
29528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29529 test ! -s conftest.err
29531 ac_header_preproc=yes
29533 $as_echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29536 ac_header_preproc=no
29539 rm -f conftest.err conftest.$ac_ext
29540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29541 $as_echo "$ac_header_preproc" >&6; }
29543 # So? What about this header?
29544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29546 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
29547 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29548 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
29549 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
29550 ac_header_preproc=yes
29553 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
29554 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
29555 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
29556 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
29557 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
29558 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
29559 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
29560 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
29561 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
29562 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
29563 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
29564 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
29568 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29569 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29570 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29571 $as_echo_n "(cached) " >&6
29573 ac_cv_header_uuid_uuid_h=$ac_header_preproc
29575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29576 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29579 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
29582 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29584 { { $as_echo "$as_me:$LINENO: error
:
29585 *** uuid
/uuid.h missing
, libuuid-devel package required
29586 See \
`config.log' for more details." >&5
29587 $as_echo "$as_me: error:
29588 *** uuid/uuid.h missing, libuuid-devel package required
29589 See \`config.log
' for more details." >&2;}
29590 { (exit 1); exit 1; }; }; }
29595 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
29596 $as_echo_n "checking for library containing uuid_generate... " >&6; }
29597 if test "${ac_cv_search_uuid_generate+set}" = set; then
29598 $as_echo_n "(cached) " >&6
29600 ac_func_search_save_LIBS=$LIBS
29601 cat >conftest.$ac_ext <<_ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29608 /* Override any GCC internal prototype to avoid an error.
29609 Use char because int might match the return type of a GCC
29610 builtin and then its argument prototype would still apply. */
29614 char uuid_generate ();
29618 return uuid_generate ();
29623 for ac_lib in '' uuid; do
29624 if test -z "$ac_lib"; then
29625 ac_res="none required"
29628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29630 rm -f conftest.$ac_objext conftest$ac_exeext
29631 if { (ac_try="$ac_link"
29632 case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29637 $as_echo "$ac_try_echo") >&5
29638 (eval "$ac_link") 2>conftest.er1
29640 grep -v '^
*+' conftest.er1 >conftest.err
29642 cat conftest.err >&5
29643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } && {
29645 test -z "$ac_c_werror_flag" ||
29646 test ! -s conftest.err
29647 } && test -s conftest$ac_exeext && {
29648 test "$cross_compiling" = yes ||
29649 $as_test_x conftest$ac_exeext
29651 ac_cv_search_uuid_generate=$ac_res
29653 $as_echo "$as_me: failed program was:" >&5
29654 sed 's
/^
/|
/' conftest.$ac_ext >&5
29659 rm -rf conftest.dSYM
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29662 if test "${ac_cv_search_uuid_generate+set}" = set; then
29666 if test "${ac_cv_search_uuid_generate+set}" = set; then
29669 ac_cv_search_uuid_generate=no
29671 rm conftest.$ac_ext
29672 LIBS=$ac_func_search_save_LIBS
29674 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
29675 $as_echo "$ac_cv_search_uuid_generate" >&6; }
29676 ac_res=$ac_cv_search_uuid_generate
29677 if test "$ac_res" != no; then
29678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29681 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29682 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
29683 { { $as_echo "$as_me:$LINENO: error:
29684 *** uuid_generate() missing, libuuid-devel package required
29685 See \`config.log
' for more details." >&5
29686 $as_echo "$as_me: error:
29687 *** uuid_generate() missing, libuuid-devel package required
29688 See \`config.log' for more details.
" >&2;}
29689 { (exit 1); exit 1; }; }; }
29693 { $as_echo "$as_me:$LINENO: checking
for library containing uuid_is_null
" >&5
29694 $as_echo_n "checking
for library containing uuid_is_null...
" >&6; }
29695 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29696 $as_echo_n "(cached
) " >&6
29698 ac_func_search_save_LIBS=$LIBS
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29706 /* Override any GCC internal prototype to avoid an error.
29707 Use char because int might match the return type of a GCC
29708 builtin and then its argument prototype would still apply. */
29712 char uuid_is_null ();
29716 return uuid_is_null ();
29721 for ac_lib in '' uuid; do
29722 if test -z "$ac_lib"; then
29723 ac_res="none required
"
29726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29734 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29735 $as_echo "$ac_try_echo") >&5
29736 (eval "$ac_link") 2>conftest.er1
29738 grep -v '^ *+' conftest.er1 >conftest.err
29740 cat conftest.err >&5
29741 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29742 (exit $ac_status); } && {
29743 test -z "$ac_c_werror_flag" ||
29744 test ! -s conftest.err
29745 } && test -s conftest$ac_exeext && {
29746 test "$cross_compiling" = yes ||
29747 $as_test_x conftest$ac_exeext
29749 ac_cv_search_uuid_is_null=$ac_res
29751 $as_echo "$as_me: failed program was
:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29757 rm -rf conftest.dSYM
29758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29760 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29764 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29767 ac_cv_search_uuid_is_null=no
29769 rm conftest.$ac_ext
29770 LIBS=$ac_func_search_save_LIBS
29772 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_uuid_is_null" >&5
29773 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
29774 ac_res=$ac_cv_search_uuid_is_null
29775 if test "$ac_res" != no; then
29776 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
29779 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
29780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29781 { { $as_echo "$as_me:$LINENO: error:
29782 *** uuid_is_null() missing, libuuid-devel package required
29783 See \`config.log' for more details.
" >&5
29784 $as_echo "$as_me: error
:
29785 *** uuid_is_null
() missing
, libuuid-devel package required
29786 See \
`config.log' for more details." >&2;}
29787 { (exit 1); exit 1; }; }; }
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_LIBUUID 1
29801 # Check whether --with-tirpc was given.
29802 if test "${with_tirpc+set}" = set; then
29803 withval=$with_tirpc;
29812 if test "x$with_tirpc" != xno; then
29813 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
29814 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
29815 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
29816 $as_echo_n "(cached) " >&6
29818 ac_check_lib_save_LIBS=$LIBS
29819 LIBS="-ltirpc $LIBS"
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29827 /* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29833 char xdrmem_create ();
29837 return xdrmem_create ();
29842 rm -f conftest.$ac_objext conftest$ac_exeext
29843 if { (ac_try="$ac_link"
29844 case "(($ac_try" in
29845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29846 *) ac_try_echo
=$ac_try;;
29848 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29849 $as_echo "$ac_try_echo") >&5
29850 (eval "$ac_link") 2>conftest.er1
29852 grep -v '^ *+' conftest.er1
>conftest.err
29854 cat conftest.err
>&5
29855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest
$ac_exeext && {
29860 test "$cross_compiling" = yes ||
29861 $as_test_x conftest
$ac_exeext
29863 ac_cv_lib_tirpc_xdrmem_create
=yes
29865 $as_echo "$as_me: failed program was:" >&5
29866 sed 's/^/| /' conftest.
$ac_ext >&5
29868 ac_cv_lib_tirpc_xdrmem_create
=no
29871 rm -rf conftest.dSYM
29872 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29873 conftest
$ac_exeext conftest.
$ac_ext
29874 LIBS
=$ac_check_lib_save_LIBS
29876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
29877 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
29878 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x
""yes; then
29881 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
29884 cat >>confdefs.h
<<\_ACEOF
29885 #define HAVE_LIBTIRPC 1
29890 if test "x$with_tirpc" != xcheck
; then
29891 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29893 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
29894 See \`config.log' for more details." >&5
29895 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
29896 See \`config.log' for more details." >&2;}
29897 { (exit 1); exit 1; }; }; }
29899 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
29900 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
29901 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29902 $as_echo_n "(cached) " >&6
29904 ac_func_search_save_LIBS
=$LIBS
29905 cat >conftest.
$ac_ext <<_ACEOF
29908 cat confdefs.h
>>conftest.
$ac_ext
29909 cat >>conftest.
$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29912 /* Override any GCC internal prototype to avoid an error.
29913 Use char because int might match the return type of a GCC
29914 builtin and then its argument prototype would still apply. */
29918 char xdrmem_create ();
29922 return xdrmem_create ();
29927 for ac_lib
in '' tirpc
; do
29928 if test -z "$ac_lib"; then
29929 ac_res
="none required"
29932 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29934 rm -f conftest.
$ac_objext conftest
$ac_exeext
29935 if { (ac_try
="$ac_link"
29936 case "(($ac_try" in
29937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29941 $as_echo "$ac_try_echo") >&5
29942 (eval "$ac_link") 2>conftest.er1
29944 grep -v '^ *+' conftest.er1 >conftest.err
29946 cat conftest.err >&5
29947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && {
29949 test -z "$ac_c_werror_flag" ||
29950 test ! -s conftest.err
29951 } && test -s conftest$ac_exeext && {
29952 test "$cross_compiling" = yes ||
29953 $as_test_x conftest$ac_exeext
29955 ac_cv_search_xdrmem_create=$ac_res
29957 $as_echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29963 rm -rf conftest.dSYM
29964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29970 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29973 ac_cv_search_xdrmem_create=no
29975 rm conftest.$ac_ext
29976 LIBS=$ac_func_search_save_LIBS
29978 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
29979 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
29980 ac_res=$ac_cv_search_xdrmem_create
29981 if test "$ac_res" != no; then
29982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29988 { { $as_echo "$as_me:$LINENO: error
: xdrmem_create
() requires tirpc or libc
29989 See \
`config.log' for more details." >&5
29990 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
29991 See \`config.log
' for more details." >&2;}
29992 { (exit 1); exit 1; }; }; }
29999 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30000 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30001 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30002 $as_echo_n "(cached) " >&6
30004 ac_func_search_save_LIBS=$LIBS
30005 cat >conftest.$ac_ext <<_ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30012 /* Override any GCC internal prototype to avoid an error.
30013 Use char because int might match the return type of a GCC
30014 builtin and then its argument prototype would still apply. */
30018 char xdrmem_create ();
30022 return xdrmem_create ();
30027 for ac_lib in '' tirpc; do
30028 if test -z "$ac_lib"; then
30029 ac_res="none required"
30032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30034 rm -f conftest.$ac_objext conftest$ac_exeext
30035 if { (ac_try="$ac_link"
30036 case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30041 $as_echo "$ac_try_echo") >&5
30042 (eval "$ac_link") 2>conftest.er1
30044 grep -v '^
*+' conftest.er1 >conftest.err
30046 cat conftest.err >&5
30047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } && {
30049 test -z "$ac_c_werror_flag" ||
30050 test ! -s conftest.err
30051 } && test -s conftest$ac_exeext && {
30052 test "$cross_compiling" = yes ||
30053 $as_test_x conftest$ac_exeext
30055 ac_cv_search_xdrmem_create=$ac_res
30057 $as_echo "$as_me: failed program was:" >&5
30058 sed 's
/^
/|
/' conftest.$ac_ext >&5
30063 rm -rf conftest.dSYM
30064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30066 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30070 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30073 ac_cv_search_xdrmem_create=no
30075 rm conftest.$ac_ext
30076 LIBS=$ac_func_search_save_LIBS
30078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30079 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30080 ac_res=$ac_cv_search_xdrmem_create
30081 if test "$ac_res" != no; then
30082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30087 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
30088 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30089 See \`config.log
' for more details." >&5
30090 $as_echo "$as_me: error: xdrmem_create() requires libc
30091 See \`config.log' for more details.
" >&2;}
30092 { (exit 1); exit 1; }; }; }
30102 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30103 { $as_echo "$as_me:$LINENO: checking
for blkid
/blkid.h
" >&5
30104 $as_echo_n "checking
for blkid
/blkid.h...
" >&6; }
30105 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30106 $as_echo_n "(cached
) " >&6
30108 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_blkid_blkid_h" >&5
30109 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30111 # Is the header compilable?
30112 { $as_echo "$as_me:$LINENO: checking blkid
/blkid.h usability
" >&5
30113 $as_echo_n "checking blkid
/blkid.h usability...
" >&6; }
30114 cat >conftest.$ac_ext <<_ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h. */
30120 $ac_includes_default
30121 #include <blkid/blkid.h>
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30130 $as_echo "$ac_try_echo") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30133 grep -v '^ *+' conftest.er1 >conftest.err
30135 cat conftest.err >&5
30136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30137 (exit $ac_status); } && {
30138 test -z "$ac_c_werror_flag" ||
30139 test ! -s conftest.err
30140 } && test -s conftest.$ac_objext; then
30141 ac_header_compiler=yes
30143 $as_echo "$as_me: failed program was
:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30146 ac_header_compiler=no
30149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
30151 $as_echo "$ac_header_compiler" >&6; }
30153 # Is the header present?
30154 { $as_echo "$as_me:$LINENO: checking blkid
/blkid.h presence
" >&5
30155 $as_echo_n "checking blkid
/blkid.h presence...
" >&6; }
30156 cat >conftest.$ac_ext <<_ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <blkid/blkid.h>
30164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30170 $as_echo "$ac_try_echo") >&5
30171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
30173 grep -v '^ *+' conftest.er1 >conftest.err
30175 cat conftest.err >&5
30176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30177 (exit $ac_status); } >/dev/null && {
30178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30179 test ! -s conftest.err
30181 ac_header_preproc=yes
30183 $as_echo "$as_me: failed program was
:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30186 ac_header_preproc=no
30189 rm -f conftest.err conftest.$ac_ext
30190 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
30191 $as_echo "$ac_header_preproc" >&6; }
30193 # So? What about this header?
30194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30196 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
30197 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
30198 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: proceeding with the compiler
's result" >&5
30199 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result
" >&2;}
30200 ac_header_preproc=yes
30203 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: present but cannot be compiled
" >&5
30204 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: present but cannot be compiled
" >&2;}
30205 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: check
for missing prerequisite headers?
" >&5
30206 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: check
for missing prerequisite headers?
" >&2;}
30207 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: see the Autoconf documentation
" >&5
30208 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: see the Autoconf documentation
" >&2;}
30209 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: section
\"Present But Cannot Be Compiled
\"" >&5
30210 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
30211 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: proceeding with the preprocessor
's result" >&5
30212 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result
" >&2;}
30213 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: in the future
, the compiler will take precedence
" >&5
30214 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: in the future
, the compiler will take precedence
" >&2;}
30218 { $as_echo "$as_me:$LINENO: checking
for blkid
/blkid.h
" >&5
30219 $as_echo_n "checking
for blkid
/blkid.h...
" >&6; }
30220 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30221 $as_echo_n "(cached
) " >&6
30223 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30225 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_blkid_blkid_h" >&5
30226 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30229 if test "x
$ac_cv_header_blkid_blkid_h" = x""yes; then
30232 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
30233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30234 { { $as_echo "$as_me:$LINENO: error:
30235 *** blkid.h missing, libblkid-devel package required
30236 See \`config.log' for more details.
" >&5
30237 $as_echo "$as_me: error
:
30238 *** blkid.h missing
, libblkid-devel package required
30239 See \
`config.log' for more details." >&2;}
30240 { (exit 1); exit 1; }; }; }
30248 cat >>confdefs.h <<\_ACEOF
30249 #define HAVE_LIBBLKID 1
30256 if test "${ac_cv_header_libudev_h+set}" = set; then
30257 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30258 $as_echo_n "checking for libudev.h... " >&6; }
30259 if test "${ac_cv_header_libudev_h+set}" = set; then
30260 $as_echo_n "(cached) " >&6
30262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30263 $as_echo "$ac_cv_header_libudev_h" >&6; }
30265 # Is the header compilable?
30266 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
30267 $as_echo_n "checking libudev.h usability... " >&6; }
30268 cat >conftest.$ac_ext <<_ACEOF
30271 cat confdefs.h >>conftest.$ac_ext
30272 cat >>conftest.$ac_ext <<_ACEOF
30273 /* end confdefs.h. */
30274 $ac_includes_default
30275 #include <libudev.h>
30277 rm -f conftest.$ac_objext
30278 if { (ac_try="$ac_compile"
30279 case "(($ac_try" in
30280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30281 *) ac_try_echo
=$ac_try;;
30283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30284 $as_echo "$ac_try_echo") >&5
30285 (eval "$ac_compile") 2>conftest.er1
30287 grep -v '^ *+' conftest.er1
>conftest.err
30289 cat conftest.err
>&5
30290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } && {
30292 test -z "$ac_c_werror_flag" ||
30293 test ! -s conftest.err
30294 } && test -s conftest.
$ac_objext; then
30295 ac_header_compiler
=yes
30297 $as_echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.
$ac_ext >&5
30300 ac_header_compiler
=no
30303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30305 $as_echo "$ac_header_compiler" >&6; }
30307 # Is the header present?
30308 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
30309 $as_echo_n "checking libudev.h presence... " >&6; }
30310 cat >conftest.
$ac_ext <<_ACEOF
30313 cat confdefs.h
>>conftest.
$ac_ext
30314 cat >>conftest.
$ac_ext <<_ACEOF
30315 /* end confdefs.h. */
30316 #include <libudev.h>
30318 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30319 case "(($ac_try" in
30320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30324 $as_echo "$ac_try_echo") >&5
30325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30327 grep -v '^ *+' conftest.er1 >conftest.err
30329 cat conftest.err >&5
30330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } >/dev/null && {
30332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30333 test ! -s conftest.err
30335 ac_header_preproc=yes
30337 $as_echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30340 ac_header_preproc=no
30343 rm -f conftest.err conftest.$ac_ext
30344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30345 $as_echo "$ac_header_preproc" >&6; }
30347 # So? What about this header?
30348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30350 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30351 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30352 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
30353 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
30354 ac_header_preproc=yes
30357 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
30358 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
30359 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
30360 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
30361 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
30362 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
30363 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
30364 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30365 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
30366 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
30367 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
30368 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
30372 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30373 $as_echo_n "checking for libudev.h... " >&6; }
30374 if test "${ac_cv_header_libudev_h+set}" = set; then
30375 $as_echo_n "(cached) " >&6
30377 ac_cv_header_libudev_h=$ac_header_preproc
30379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30380 $as_echo "$ac_cv_header_libudev_h" >&6; }
30383 if test "x$ac_cv_header_libudev_h" = x""yes; then
30389 cat >>confdefs.h <<\_ACEOF
30390 #define HAVE_LIBUDEV 1
30402 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
30403 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
30404 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30405 $as_echo_n "(cached) " >&6
30407 ac_func_search_save_LIBS=$LIBS
30408 cat >conftest.$ac_ext <<_ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h. */
30415 /* Override any GCC internal prototype to avoid an error.
30416 Use char because int might match the return type of a GCC
30417 builtin and then its argument prototype would still apply. */
30421 char udev_device_get_is_initialized ();
30425 return udev_device_get_is_initialized ();
30430 for ac_lib in '' udev; do
30431 if test -z "$ac_lib"; then
30432 ac_res="none required"
30435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438 if { (ac_try="$ac_link"
30439 case "(($ac_try" in
30440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30441 *) ac_try_echo
=$ac_try;;
30443 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30444 $as_echo "$ac_try_echo") >&5
30445 (eval "$ac_link") 2>conftest.er1
30447 grep -v '^ *+' conftest.er1
>conftest.err
30449 cat conftest.err
>&5
30450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } && {
30452 test -z "$ac_c_werror_flag" ||
30453 test ! -s conftest.err
30454 } && test -s conftest
$ac_exeext && {
30455 test "$cross_compiling" = yes ||
30456 $as_test_x conftest
$ac_exeext
30458 ac_cv_search_udev_device_get_is_initialized
=$ac_res
30460 $as_echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.
$ac_ext >&5
30466 rm -rf conftest.dSYM
30467 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30469 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30473 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30476 ac_cv_search_udev_device_get_is_initialized
=no
30478 rm conftest.
$ac_ext
30479 LIBS
=$ac_func_search_save_LIBS
30481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
30482 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
30483 ac_res
=$ac_cv_search_udev_device_get_is_initialized
30484 if test "$ac_res" != no
; then
30485 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30488 cat >>confdefs.h
<<\_ACEOF
30489 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
30497 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
30498 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30500 saved_flags
="$CFLAGS"
30501 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
30503 cat >conftest.
$ac_ext <<_ACEOF
30506 cat confdefs.h
>>conftest.
$ac_ext
30507 cat >>conftest.
$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30518 rm -f conftest.
$ac_objext
30519 if { (ac_try
="$ac_compile"
30520 case "(($ac_try" in
30521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30525 $as_echo "$ac_try_echo") >&5
30526 (eval "$ac_compile") 2>conftest.er1
30528 grep -v '^ *+' conftest.er1 >conftest.err
30530 cat conftest.err >&5
30531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } && {
30533 test -z "$ac_c_werror_flag" ||
30534 test ! -s conftest.err
30535 } && test -s conftest.$ac_objext; then
30537 FRAME_LARGER_THAN=-Wframe-larger-than=1024
30538 { $as_echo "$as_me:$LINENO: result: yes" >&5
30539 $as_echo "yes" >&6; }
30542 $as_echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30547 { $as_echo "$as_me:$LINENO: result: no" >&5
30548 $as_echo "no" >&6; }
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30554 CFLAGS="$saved_flags"
30560 if test "${ac_cv_header_libaio_h+set}" = set; then
30561 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30562 $as_echo_n "checking for libaio.h... " >&6; }
30563 if test "${ac_cv_header_libaio_h+set}" = set; then
30564 $as_echo_n "(cached) " >&6
30566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30567 $as_echo "$ac_cv_header_libaio_h" >&6; }
30569 # Is the header compilable?
30570 { $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
30571 $as_echo_n "checking libaio.h usability... " >&6; }
30572 cat >conftest.$ac_ext <<_ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30578 $ac_includes_default
30579 #include <libaio.h>
30581 rm -f conftest.$ac_objext
30582 if { (ac_try="$ac_compile"
30583 case "(($ac_try" in
30584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30585 *) ac_try_echo
=$ac_try;;
30587 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30588 $as_echo "$ac_try_echo") >&5
30589 (eval "$ac_compile") 2>conftest.er1
30591 grep -v '^ *+' conftest.er1
>conftest.err
30593 cat conftest.err
>&5
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } && {
30596 test -z "$ac_c_werror_flag" ||
30597 test ! -s conftest.err
30598 } && test -s conftest.
$ac_objext; then
30599 ac_header_compiler
=yes
30601 $as_echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.
$ac_ext >&5
30604 ac_header_compiler
=no
30607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30609 $as_echo "$ac_header_compiler" >&6; }
30611 # Is the header present?
30612 { $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
30613 $as_echo_n "checking libaio.h presence... " >&6; }
30614 cat >conftest.
$ac_ext <<_ACEOF
30617 cat confdefs.h
>>conftest.
$ac_ext
30618 cat >>conftest.
$ac_ext <<_ACEOF
30619 /* end confdefs.h. */
30620 #include <libaio.h>
30622 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30623 case "(($ac_try" in
30624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30628 $as_echo "$ac_try_echo") >&5
30629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30631 grep -v '^ *+' conftest.er1 >conftest.err
30633 cat conftest.err >&5
30634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } >/dev/null && {
30636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30637 test ! -s conftest.err
30639 ac_header_preproc=yes
30641 $as_echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30644 ac_header_preproc=no
30647 rm -f conftest.err conftest.$ac_ext
30648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30649 $as_echo "$ac_header_preproc" >&6; }
30651 # So? What about this header?
30652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30654 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30655 $as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30656 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
30657 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
30658 ac_header_preproc=yes
30661 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
30662 $as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
30663 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
30664 $as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
30665 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
30666 $as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
30667 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
30668 $as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
30669 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
30670 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
30671 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
30672 $as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
30676 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30677 $as_echo_n "checking for libaio.h... " >&6; }
30678 if test "${ac_cv_header_libaio_h+set}" = set; then
30679 $as_echo_n "(cached) " >&6
30681 ac_cv_header_libaio_h=$ac_header_preproc
30683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30684 $as_echo "$ac_cv_header_libaio_h" >&6; }
30687 if test "x$ac_cv_header_libaio_h" = x""yes; then
30693 cat >>confdefs.h <<\_ACEOF
30694 #define HAVE_LIBAIO 1
30707 if test "x$runstatedir" = x; then
30708 runstatedir='${localstatedir}/run'
30713 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
30714 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
30715 cat >conftest.$ac_ext <<_ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30722 #include <sys/sysmacros.h>
30735 rm -f conftest.$ac_objext
30736 if { (ac_try="$ac_compile"
30737 case "(($ac_try" in
30738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30739 *) ac_try_echo
=$ac_try;;
30741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30742 $as_echo "$ac_try_echo") >&5
30743 (eval "$ac_compile") 2>conftest.er1
30745 grep -v '^ *+' conftest.er1
>conftest.err
30747 cat conftest.err
>&5
30748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } && {
30750 test -z "$ac_c_werror_flag" ||
30751 test ! -s conftest.err
30752 } && test -s conftest.
$ac_objext; then
30754 { $as_echo "$as_me:$LINENO: result: yes" >&5
30755 $as_echo "yes" >&6; }
30757 cat >>confdefs.h
<<\_ACEOF
30758 #define HAVE_MAKEDEV_IN_SYSMACROS 1
30763 $as_echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.
$ac_ext >&5
30767 { $as_echo "$as_me:$LINENO: result: no" >&5
30768 $as_echo "no" >&6; }
30772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30775 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
30776 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
30777 cat >conftest.
$ac_ext <<_ACEOF
30780 cat confdefs.h
>>conftest.
$ac_ext
30781 cat >>conftest.
$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30784 #include <sys/mkdev.h>
30797 rm -f conftest.
$ac_objext
30798 if { (ac_try
="$ac_compile"
30799 case "(($ac_try" in
30800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30801 *) ac_try_echo=$ac_try;;
30803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30804 $as_echo "$ac_try_echo") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30807 grep -v '^ *+' conftest.er1 >conftest.err
30809 cat conftest.err >&5
30810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_c_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30816 { $as_echo "$as_me:$LINENO: result: yes" >&5
30817 $as_echo "yes" >&6; }
30819 cat >>confdefs.h <<\_ACEOF
30820 #define HAVE_MAKEDEV_IN_MKDEV 1
30825 $as_echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30829 { $as_echo "$as_me:$LINENO: result: no" >&5
30830 $as_echo "no" >&6; }
30834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
30838 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
30840 saved_flags="$CFLAGS"
30841 CFLAGS="$CFLAGS -Wno-format-truncation"
30843 cat >conftest.$ac_ext <<_ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h. */
30858 rm -f conftest.$ac_objext
30859 if { (ac_try="$ac_compile"
30860 case "(($ac_try" in
30861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30862 *) ac_try_echo
=$ac_try;;
30864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30865 $as_echo "$ac_try_echo") >&5
30866 (eval "$ac_compile") 2>conftest.er1
30868 grep -v '^ *+' conftest.er1
>conftest.err
30870 cat conftest.err
>&5
30871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } && {
30873 test -z "$ac_c_werror_flag" ||
30874 test ! -s conftest.err
30875 } && test -s conftest.
$ac_objext; then
30877 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
30878 { $as_echo "$as_me:$LINENO: result: yes" >&5
30879 $as_echo "yes" >&6; }
30882 $as_echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.
$ac_ext >&5
30886 NO_FORMAT_TRUNCATION
=
30887 { $as_echo "$as_me:$LINENO: result: no" >&5
30888 $as_echo "no" >&6; }
30892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30894 CFLAGS
="$saved_flags"
30899 ZONENAME
="echo global"
30906 for ac_func
in mlockall
30908 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30910 $as_echo_n "checking for $ac_func... " >&6; }
30911 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30912 $as_echo_n "(cached) " >&6
30914 cat >conftest.
$ac_ext <<_ACEOF
30917 cat confdefs.h
>>conftest.
$ac_ext
30918 cat >>conftest.
$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922 #define $ac_func innocuous_$ac_func
30924 /* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30930 # include <limits.h>
30932 # include <assert.h>
30937 /* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30944 /* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947 #if defined __stub_$ac_func || defined __stub___$ac_func
30954 return $ac_func ();
30959 rm -f conftest.
$ac_objext conftest
$ac_exeext
30960 if { (ac_try
="$ac_link"
30961 case "(($ac_try" in
30962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30966 $as_echo "$ac_try_echo") >&5
30967 (eval "$ac_link") 2>conftest.er1
30969 grep -v '^ *+' conftest.er1 >conftest.err
30971 cat conftest.err >&5
30972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } && {
30974 test -z "$ac_c_werror_flag" ||
30975 test ! -s conftest.err
30976 } && test -s conftest$ac_exeext && {
30977 test "$cross_compiling" = yes ||
30978 $as_test_x conftest$ac_exeext
30980 eval "$as_ac_var=yes"
30982 $as_echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30985 eval "$as_ac_var=no"
30988 rm -rf conftest.dSYM
30989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30990 conftest$ac_exeext conftest.$ac_ext
30992 ac_res=`eval 'as_val=${'$as_ac_var'}
30993 $as_echo "$as_val"'`
30994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30995 $as_echo "$ac_res" >&6; }
30996 as_val=`eval 'as_val=${'$as_ac_var'}
30997 $as_echo "$as_val"'`
30998 if test "x$as_val" = x""yes; then
30999 cat >>confdefs.h <<_ACEOF
31000 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31010 # Check whether --with-mounthelperdir was given.
31011 if test "${with_mounthelperdir+set}" = set; then
31012 withval=$with_mounthelperdir; mounthelperdir=$withval
31014 mounthelperdir=/sbin
31021 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
31022 $as_echo_n "checking for udev directories... " >&6; }
31024 # Check whether --with-udevdir was given.
31025 if test "${with_udevdir+set}" = set; then
31026 withval=$with_udevdir; udevdir=$withval
31032 if test "x$udevdir" = xcheck; then
31035 path2=/usr/lib/udev
31038 if test -d "$path1"; then
31042 if test -d "$path2"; then
31056 # Check whether --with-udevruledir was given.
31057 if test "${with_udevruledir+set}" = set; then
31058 withval=$with_udevruledir; udevruledir=$withval
31060 udevruledir="${udevdir}/rules.d"
31066 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
31067 $as_echo "$udevdir;$udevruledir" >&6; }
31070 # Check whether --enable-systemd was given.
31071 if test "${enable_systemd+set}" = set; then
31072 enableval=$enable_systemd; enable_systemd=$enableval
31074 enable_systemd=check
31079 # Check whether --with-systemdunitdir was given.
31080 if test "${with_systemdunitdir+set}" = set; then
31081 withval=$with_systemdunitdir; systemdunitdir=$withval
31083 systemdunitdir=/usr/lib/systemd/system
31088 # Check whether --with-systemdpresetdir was given.
31089 if test "${with_systemdpresetdir+set}" = set; then
31090 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31092 systemdpresetdir=/usr/lib/systemd/system-preset
31097 # Check whether --with-systemdmodulesloaddir was given.
31098 if test "${with_systemdmodulesloaddir+set}" = set; then
31099 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31101 systemdmodulesloaddir=/usr/lib/modules-load.d
31105 if test "x$enable_systemd" = xcheck; then
31107 if systemctl --version >/dev/null 2>&1; then
31117 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
31118 $as_echo_n "checking for systemd support... " >&6; }
31119 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
31120 $as_echo "$enable_systemd" >&6; }
31122 if test "x$enable_systemd" = xyes; then
31124 ZFS_INIT_SYSTEMD=systemd
31125 ZFS_MODULE_LOAD=modules-load.d
31126 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
31127 modulesloaddir=$systemdmodulesloaddir
31131 DEFINE_SYSTEMD='--without systemd'
31144 # Check whether --enable-sysvinit was given.
31145 if test "${enable_sysvinit+set}" = set; then
31146 enableval=$enable_sysvinit;
31148 enable_sysvinit=yes
31152 if test "x$enable_sysvinit" = xyes; then
31153 ZFS_INIT_SYSV=init.d
31160 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
31161 $as_echo_n "checking for dracut directory... " >&6; }
31163 # Check whether --with-dracutdir was given.
31164 if test "${with_dracutdir+set}" = set; then
31165 withval=$with_dracutdir; dracutdir=$withval
31171 if test "x$dracutdir" = xcheck; then
31173 path1=/usr/share/dracut
31174 path2=/usr/lib/dracut
31177 if test -d "$path1"; then
31181 if test -d "$path2"; then
31184 dracutdir="$default"
31195 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
31196 $as_echo "$dracutdir" >&6; }
31201 if test "${ac_cv_header_zlib_h+set}" = set; then
31202 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31203 $as_echo_n "checking for zlib.h... " >&6; }
31204 if test "${ac_cv_header_zlib_h+set}" = set; then
31205 $as_echo_n "(cached) " >&6
31207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31208 $as_echo "$ac_cv_header_zlib_h" >&6; }
31210 # Is the header compilable?
31211 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
31212 $as_echo_n "checking zlib.h usability... " >&6; }
31213 cat >conftest.$ac_ext <<_ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 $ac_includes_default
31222 rm -f conftest.$ac_objext
31223 if { (ac_try="$ac_compile"
31224 case "(($ac_try" in
31225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31226 *) ac_try_echo
=$ac_try;;
31228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31229 $as_echo "$ac_try_echo") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31232 grep -v '^ *+' conftest.er1
>conftest.err
31234 cat conftest.err
>&5
31235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } && {
31237 test -z "$ac_c_werror_flag" ||
31238 test ! -s conftest.err
31239 } && test -s conftest.
$ac_objext; then
31240 ac_header_compiler
=yes
31242 $as_echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.
$ac_ext >&5
31245 ac_header_compiler
=no
31248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31250 $as_echo "$ac_header_compiler" >&6; }
31252 # Is the header present?
31253 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
31254 $as_echo_n "checking zlib.h presence... " >&6; }
31255 cat >conftest.
$ac_ext <<_ACEOF
31258 cat confdefs.h
>>conftest.
$ac_ext
31259 cat >>conftest.
$ac_ext <<_ACEOF
31260 /* end confdefs.h. */
31263 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31264 case "(($ac_try" in
31265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269 $as_echo "$ac_try_echo") >&5
31270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31272 grep -v '^ *+' conftest.er1 >conftest.err
31274 cat conftest.err >&5
31275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } >/dev/null && {
31277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278 test ! -s conftest.err
31280 ac_header_preproc=yes
31282 $as_echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31285 ac_header_preproc=no
31288 rm -f conftest.err conftest.$ac_ext
31289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31290 $as_echo "$ac_header_preproc" >&6; }
31292 # So? What about this header?
31293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31295 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31296 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31297 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31298 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31299 ac_header_preproc=yes
31302 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31303 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31304 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31305 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31306 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31307 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31308 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31309 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31310 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31311 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31312 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31313 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31317 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31318 $as_echo_n "checking for zlib.h... " >&6; }
31319 if test "${ac_cv_header_zlib_h+set}" = set; then
31320 $as_echo_n "(cached) " >&6
31322 ac_cv_header_zlib_h=$ac_header_preproc
31324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31325 $as_echo "$ac_cv_header_zlib_h" >&6; }
31328 if test "x$ac_cv_header_zlib_h" = x""yes; then
31331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31333 { { $as_echo "$as_me:$LINENO: error
:
31334 *** zlib.h missing
, zlib-devel package required
31335 See \
`config.log' for more details." >&5
31336 $as_echo "$as_me: error:
31337 *** zlib.h missing, zlib-devel package required
31338 See \`config.log
' for more details." >&2;}
31339 { (exit 1); exit 1; }; }; }
31344 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
31345 $as_echo_n "checking for library containing compress2... " >&6; }
31346 if test "${ac_cv_search_compress2+set}" = set; then
31347 $as_echo_n "(cached) " >&6
31349 ac_func_search_save_LIBS=$LIBS
31350 cat >conftest.$ac_ext <<_ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h. */
31357 /* Override any GCC internal prototype to avoid an error.
31358 Use char because int might match the return type of a GCC
31359 builtin and then its argument prototype would still apply. */
31367 return compress2 ();
31372 for ac_lib in '' z; do
31373 if test -z "$ac_lib"; then
31374 ac_res="none required"
31377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31379 rm -f conftest.$ac_objext conftest$ac_exeext
31380 if { (ac_try="$ac_link"
31381 case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386 $as_echo "$ac_try_echo") >&5
31387 (eval "$ac_link") 2>conftest.er1
31389 grep -v '^
*+' conftest.er1 >conftest.err
31391 cat conftest.err >&5
31392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && {
31394 test -z "$ac_c_werror_flag" ||
31395 test ! -s conftest.err
31396 } && test -s conftest$ac_exeext && {
31397 test "$cross_compiling" = yes ||
31398 $as_test_x conftest$ac_exeext
31400 ac_cv_search_compress2=$ac_res
31402 $as_echo "$as_me: failed program was:" >&5
31403 sed 's
/^
/|
/' conftest.$ac_ext >&5
31408 rm -rf conftest.dSYM
31409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31411 if test "${ac_cv_search_compress2+set}" = set; then
31415 if test "${ac_cv_search_compress2+set}" = set; then
31418 ac_cv_search_compress2=no
31420 rm conftest.$ac_ext
31421 LIBS=$ac_func_search_save_LIBS
31423 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
31424 $as_echo "$ac_cv_search_compress2" >&6; }
31425 ac_res=$ac_cv_search_compress2
31426 if test "$ac_res" != no; then
31427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31431 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
31432 { { $as_echo "$as_me:$LINENO: error:
31433 *** compress2() missing, zlib-devel package required
31434 See \`config.log
' for more details." >&5
31435 $as_echo "$as_me: error:
31436 *** compress2() missing, zlib-devel package required
31437 See \`config.log' for more details.
" >&2;}
31438 { (exit 1); exit 1; }; }; }
31442 { $as_echo "$as_me:$LINENO: checking
for library containing
uncompress" >&5
31443 $as_echo_n "checking
for library containing
uncompress...
" >&6; }
31444 if test "${ac_cv_search_uncompress+set}" = set; then
31445 $as_echo_n "(cached
) " >&6
31447 ac_func_search_save_LIBS=$LIBS
31448 cat >conftest.$ac_ext <<_ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31455 /* Override any GCC internal prototype to avoid an error.
31456 Use char because int might match the return type of a GCC
31457 builtin and then its argument prototype would still apply. */
31461 char uncompress ();
31465 return uncompress ();
31470 for ac_lib in '' z; do
31471 if test -z "$ac_lib"; then
31472 ac_res="none required
"
31475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31477 rm -f conftest.$ac_objext conftest$ac_exeext
31478 if { (ac_try="$ac_link"
31479 case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31484 $as_echo "$ac_try_echo") >&5
31485 (eval "$ac_link") 2>conftest.er1
31487 grep -v '^ *+' conftest.er1 >conftest.err
31489 cat conftest.err >&5
31490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31491 (exit $ac_status); } && {
31492 test -z "$ac_c_werror_flag" ||
31493 test ! -s conftest.err
31494 } && test -s conftest$ac_exeext && {
31495 test "$cross_compiling" = yes ||
31496 $as_test_x conftest$ac_exeext
31498 ac_cv_search_uncompress=$ac_res
31500 $as_echo "$as_me: failed program was
:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31506 rm -rf conftest.dSYM
31507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31509 if test "${ac_cv_search_uncompress+set}" = set; then
31513 if test "${ac_cv_search_uncompress+set}" = set; then
31516 ac_cv_search_uncompress=no
31518 rm conftest.$ac_ext
31519 LIBS=$ac_func_search_save_LIBS
31521 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_uncompress" >&5
31522 $as_echo "$ac_cv_search_uncompress" >&6; }
31523 ac_res=$ac_cv_search_uncompress
31524 if test "$ac_res" != no; then
31525 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
31528 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
31529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31530 { { $as_echo "$as_me:$LINENO: error:
31531 *** uncompress() missing, zlib-devel package required
31532 See \`config.log' for more details.
" >&5
31533 $as_echo "$as_me: error
:
31534 *** uncompress() missing
, zlib-devel package required
31535 See \
`config.log' for more details." >&2;}
31536 { (exit 1); exit 1; }; }; }
31540 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
31541 $as_echo_n "checking for library containing crc32... " >&6; }
31542 if test "${ac_cv_search_crc32+set}" = set; then
31543 $as_echo_n "(cached) " >&6
31545 ac_func_search_save_LIBS=$LIBS
31546 cat >conftest.$ac_ext <<_ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h. */
31553 /* Override any GCC internal prototype to avoid an error.
31554 Use char because int might match the return type of a GCC
31555 builtin and then its argument prototype would still apply. */
31568 for ac_lib in '' z; do
31569 if test -z "$ac_lib"; then
31570 ac_res="none required"
31573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576 if { (ac_try="$ac_link"
31577 case "(($ac_try" in
31578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31579 *) ac_try_echo
=$ac_try;;
31581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31582 $as_echo "$ac_try_echo") >&5
31583 (eval "$ac_link") 2>conftest.er1
31585 grep -v '^ *+' conftest.er1
>conftest.err
31587 cat conftest.err
>&5
31588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } && {
31590 test -z "$ac_c_werror_flag" ||
31591 test ! -s conftest.err
31592 } && test -s conftest
$ac_exeext && {
31593 test "$cross_compiling" = yes ||
31594 $as_test_x conftest
$ac_exeext
31596 ac_cv_search_crc32
=$ac_res
31598 $as_echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.
$ac_ext >&5
31604 rm -rf conftest.dSYM
31605 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31607 if test "${ac_cv_search_crc32+set}" = set; then
31611 if test "${ac_cv_search_crc32+set}" = set; then
31614 ac_cv_search_crc32
=no
31616 rm conftest.
$ac_ext
31617 LIBS
=$ac_func_search_save_LIBS
31619 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
31620 $as_echo "$ac_cv_search_crc32" >&6; }
31621 ac_res
=$ac_cv_search_crc32
31622 if test "$ac_res" != no
; then
31623 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31628 { { $as_echo "$as_me:$LINENO: error:
31629 *** crc32() missing, zlib-devel package required
31630 See \`config.log' for more details." >&5
31631 $as_echo "$as_me: error:
31632 *** crc32() missing, zlib-devel package required
31633 See \`config.log' for more details." >&2;}
31634 { (exit 1); exit 1; }; }; }
31641 cat >>confdefs.h
<<\_ACEOF
31642 #define HAVE_ZLIB 1
31649 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31650 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31651 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31652 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31653 $as_echo_n "(cached) " >&6
31655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31656 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31658 # Is the header compilable?
31659 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
31660 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
31661 cat >conftest.
$ac_ext <<_ACEOF
31664 cat confdefs.h
>>conftest.
$ac_ext
31665 cat >>conftest.
$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 $ac_includes_default
31668 #include <uuid/uuid.h>
31670 rm -f conftest.
$ac_objext
31671 if { (ac_try
="$ac_compile"
31672 case "(($ac_try" in
31673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31677 $as_echo "$ac_try_echo") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31680 grep -v '^ *+' conftest.er1 >conftest.err
31682 cat conftest.err >&5
31683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } && {
31685 test -z "$ac_c_werror_flag" ||
31686 test ! -s conftest.err
31687 } && test -s conftest.$ac_objext; then
31688 ac_header_compiler=yes
31690 $as_echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31693 ac_header_compiler=no
31696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31698 $as_echo "$ac_header_compiler" >&6; }
31700 # Is the header present?
31701 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
31702 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
31703 cat >conftest.$ac_ext <<_ACEOF
31706 cat confdefs.h >>conftest.$ac_ext
31707 cat >>conftest.$ac_ext <<_ACEOF
31708 /* end confdefs.h. */
31709 #include <uuid/uuid.h>
31711 if { (ac_try="$ac_cpp conftest.$ac_ext"
31712 case "(($ac_try" in
31713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31714 *) ac_try_echo
=$ac_try;;
31716 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
31717 $as_echo "$ac_try_echo") >&5
31718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31720 grep -v '^ *+' conftest.er1
>conftest.err
31722 cat conftest.err
>&5
31723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } >/dev
/null
&& {
31725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31726 test ! -s conftest.err
31728 ac_header_preproc
=yes
31730 $as_echo "$as_me: failed program was:" >&5
31731 sed 's/^/| /' conftest.
$ac_ext >&5
31733 ac_header_preproc
=no
31736 rm -f conftest.err conftest.
$ac_ext
31737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31738 $as_echo "$ac_header_preproc" >&6; }
31740 # So? What about this header?
31741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31743 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
31744 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31745 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
31746 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
31747 ac_header_preproc
=yes
31750 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
31751 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
31752 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
31753 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
31754 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
31755 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
31756 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
31757 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
31758 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
31759 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
31760 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
31761 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
31765 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31766 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31767 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31768 $as_echo_n "(cached) " >&6
31770 ac_cv_header_uuid_uuid_h
=$ac_header_preproc
31772 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31773 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31776 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then
31779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31781 { { $as_echo "$as_me:$LINENO: error:
31782 *** uuid/uuid.h missing, libuuid-devel package required
31783 See \`config.log' for more details." >&5
31784 $as_echo "$as_me: error:
31785 *** uuid/uuid.h missing, libuuid-devel package required
31786 See \`config.log' for more details." >&2;}
31787 { (exit 1); exit 1; }; }; }
31792 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
31793 $as_echo_n "checking for library containing uuid_generate... " >&6; }
31794 if test "${ac_cv_search_uuid_generate+set}" = set; then
31795 $as_echo_n "(cached) " >&6
31797 ac_func_search_save_LIBS
=$LIBS
31798 cat >conftest.
$ac_ext <<_ACEOF
31801 cat confdefs.h
>>conftest.
$ac_ext
31802 cat >>conftest.
$ac_ext <<_ACEOF
31803 /* end confdefs.h. */
31805 /* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31811 char uuid_generate ();
31815 return uuid_generate ();
31820 for ac_lib
in '' uuid
; do
31821 if test -z "$ac_lib"; then
31822 ac_res
="none required"
31825 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31827 rm -f conftest.
$ac_objext conftest
$ac_exeext
31828 if { (ac_try
="$ac_link"
31829 case "(($ac_try" in
31830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31834 $as_echo "$ac_try_echo") >&5
31835 (eval "$ac_link") 2>conftest.er1
31837 grep -v '^ *+' conftest.er1 >conftest.err
31839 cat conftest.err >&5
31840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && {
31842 test -z "$ac_c_werror_flag" ||
31843 test ! -s conftest.err
31844 } && test -s conftest$ac_exeext && {
31845 test "$cross_compiling" = yes ||
31846 $as_test_x conftest$ac_exeext
31848 ac_cv_search_uuid_generate=$ac_res
31850 $as_echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31856 rm -rf conftest.dSYM
31857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31859 if test "${ac_cv_search_uuid_generate+set}" = set; then
31863 if test "${ac_cv_search_uuid_generate+set}" = set; then
31866 ac_cv_search_uuid_generate=no
31868 rm conftest.$ac_ext
31869 LIBS=$ac_func_search_save_LIBS
31871 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
31872 $as_echo "$ac_cv_search_uuid_generate" >&6; }
31873 ac_res=$ac_cv_search_uuid_generate
31874 if test "$ac_res" != no; then
31875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31880 { { $as_echo "$as_me:$LINENO: error
:
31881 *** uuid_generate
() missing
, libuuid-devel package required
31882 See \
`config.log' for more details." >&5
31883 $as_echo "$as_me: error:
31884 *** uuid_generate() missing, libuuid-devel package required
31885 See \`config.log
' for more details." >&2;}
31886 { (exit 1); exit 1; }; }; }
31890 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
31891 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
31892 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31893 $as_echo_n "(cached) " >&6
31895 ac_func_search_save_LIBS=$LIBS
31896 cat >conftest.$ac_ext <<_ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h. */
31903 /* Override any GCC internal prototype to avoid an error.
31904 Use char because int might match the return type of a GCC
31905 builtin and then its argument prototype would still apply. */
31909 char uuid_is_null ();
31913 return uuid_is_null ();
31918 for ac_lib in '' uuid; do
31919 if test -z "$ac_lib"; then
31920 ac_res="none required"
31923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926 if { (ac_try="$ac_link"
31927 case "(($ac_try" in
31928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929 *) ac_try_echo=$ac_try;;
31931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31932 $as_echo "$ac_try_echo") >&5
31933 (eval "$ac_link") 2>conftest.er1
31935 grep -v '^
*+' conftest.er1 >conftest.err
31937 cat conftest.err >&5
31938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } && {
31940 test -z "$ac_c_werror_flag" ||
31941 test ! -s conftest.err
31942 } && test -s conftest$ac_exeext && {
31943 test "$cross_compiling" = yes ||
31944 $as_test_x conftest$ac_exeext
31946 ac_cv_search_uuid_is_null=$ac_res
31948 $as_echo "$as_me: failed program was:" >&5
31949 sed 's
/^
/|
/' conftest.$ac_ext >&5
31954 rm -rf conftest.dSYM
31955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31957 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31961 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31964 ac_cv_search_uuid_is_null=no
31966 rm conftest.$ac_ext
31967 LIBS=$ac_func_search_save_LIBS
31969 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
31970 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
31971 ac_res=$ac_cv_search_uuid_is_null
31972 if test "$ac_res" != no; then
31973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31977 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
31978 { { $as_echo "$as_me:$LINENO: error:
31979 *** uuid_is_null() missing, libuuid-devel package required
31980 See \`config.log
' for more details." >&5
31981 $as_echo "$as_me: error:
31982 *** uuid_is_null() missing, libuuid-devel package required
31983 See \`config.log' for more details.
" >&2;}
31984 { (exit 1); exit 1; }; }; }
31991 cat >>confdefs.h <<\_ACEOF
31992 #define HAVE_LIBUUID 1
31998 # Check whether --with-tirpc was given.
31999 if test "${with_tirpc+set}" = set; then
32000 withval=$with_tirpc;
32009 if test "x
$with_tirpc" != xno; then
32010 { $as_echo "$as_me:$LINENO: checking
for xdrmem_create
in -ltirpc" >&5
32011 $as_echo_n "checking
for xdrmem_create
in -ltirpc...
" >&6; }
32012 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
32013 $as_echo_n "(cached
) " >&6
32015 ac_check_lib_save_LIBS=$LIBS
32016 LIBS="-ltirpc $LIBS"
32017 cat >conftest.$ac_ext <<_ACEOF
32020 cat confdefs.h >>conftest.$ac_ext
32021 cat >>conftest.$ac_ext <<_ACEOF
32022 /* end confdefs.h. */
32024 /* Override any GCC internal prototype to avoid an error.
32025 Use char because int might match the return type of a GCC
32026 builtin and then its argument prototype would still apply. */
32030 char xdrmem_create ();
32034 return xdrmem_create ();
32039 rm -f conftest.$ac_objext conftest$ac_exeext
32040 if { (ac_try="$ac_link"
32041 case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32045 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32046 $as_echo "$ac_try_echo") >&5
32047 (eval "$ac_link") 2>conftest.er1
32049 grep -v '^ *+' conftest.er1 >conftest.err
32051 cat conftest.err >&5
32052 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32053 (exit $ac_status); } && {
32054 test -z "$ac_c_werror_flag" ||
32055 test ! -s conftest.err
32056 } && test -s conftest$ac_exeext && {
32057 test "$cross_compiling" = yes ||
32058 $as_test_x conftest$ac_exeext
32060 ac_cv_lib_tirpc_xdrmem_create=yes
32062 $as_echo "$as_me: failed program was
:" >&5
32063 sed 's/^/| /' conftest.$ac_ext >&5
32065 ac_cv_lib_tirpc_xdrmem_create=no
32068 rm -rf conftest.dSYM
32069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32070 conftest$ac_exeext conftest.$ac_ext
32071 LIBS=$ac_check_lib_save_LIBS
32073 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tirpc_xdrmem_create" >&5
32074 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
32075 if test "x
$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
32078 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
32081 cat >>confdefs.h <<\_ACEOF
32082 #define HAVE_LIBTIRPC 1
32087 if test "x
$with_tirpc" != xcheck; then
32088 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
32089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32090 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
32091 See \`config.log' for more details.
" >&5
32092 $as_echo "$as_me: error
: --with-tirpc was given
, but
test for tirpc failed
32093 See \
`config.log' for more details." >&2;}
32094 { (exit 1); exit 1; }; }; }
32096 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32097 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32098 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32099 $as_echo_n "(cached) " >&6
32101 ac_func_search_save_LIBS=$LIBS
32102 cat >conftest.$ac_ext <<_ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32109 /* Override any GCC internal prototype to avoid an error.
32110 Use char because int might match the return type of a GCC
32111 builtin and then its argument prototype would still apply. */
32115 char xdrmem_create ();
32119 return xdrmem_create ();
32124 for ac_lib in '' tirpc; do
32125 if test -z "$ac_lib"; then
32126 ac_res="none required"
32129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32131 rm -f conftest.$ac_objext conftest$ac_exeext
32132 if { (ac_try="$ac_link"
32133 case "(($ac_try" in
32134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32135 *) ac_try_echo
=$ac_try;;
32137 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
32138 $as_echo "$ac_try_echo") >&5
32139 (eval "$ac_link") 2>conftest.er1
32141 grep -v '^ *+' conftest.er1
>conftest.err
32143 cat conftest.err
>&5
32144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } && {
32146 test -z "$ac_c_werror_flag" ||
32147 test ! -s conftest.err
32148 } && test -s conftest
$ac_exeext && {
32149 test "$cross_compiling" = yes ||
32150 $as_test_x conftest
$ac_exeext
32152 ac_cv_search_xdrmem_create
=$ac_res
32154 $as_echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.
$ac_ext >&5
32160 rm -rf conftest.dSYM
32161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32163 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32167 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32170 ac_cv_search_xdrmem_create
=no
32172 rm conftest.
$ac_ext
32173 LIBS
=$ac_func_search_save_LIBS
32175 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32176 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32177 ac_res
=$ac_cv_search_xdrmem_create
32178 if test "$ac_res" != no
; then
32179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32185 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
32186 See \`config.log' for more details." >&5
32187 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
32188 See \`config.log' for more details." >&2;}
32189 { (exit 1); exit 1; }; }; }
32196 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32197 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32198 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32199 $as_echo_n "(cached) " >&6
32201 ac_func_search_save_LIBS
=$LIBS
32202 cat >conftest.
$ac_ext <<_ACEOF
32205 cat confdefs.h
>>conftest.
$ac_ext
32206 cat >>conftest.
$ac_ext <<_ACEOF
32207 /* end confdefs.h. */
32209 /* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32215 char xdrmem_create ();
32219 return xdrmem_create ();
32224 for ac_lib
in '' tirpc
; do
32225 if test -z "$ac_lib"; then
32226 ac_res
="none required"
32229 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32231 rm -f conftest.
$ac_objext conftest
$ac_exeext
32232 if { (ac_try
="$ac_link"
32233 case "(($ac_try" in
32234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32238 $as_echo "$ac_try_echo") >&5
32239 (eval "$ac_link") 2>conftest.er1
32241 grep -v '^ *+' conftest.er1 >conftest.err
32243 cat conftest.err >&5
32244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } && {
32246 test -z "$ac_c_werror_flag" ||
32247 test ! -s conftest.err
32248 } && test -s conftest$ac_exeext && {
32249 test "$cross_compiling" = yes ||
32250 $as_test_x conftest$ac_exeext
32252 ac_cv_search_xdrmem_create=$ac_res
32254 $as_echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.$ac_ext >&5
32260 rm -rf conftest.dSYM
32261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32263 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32267 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32270 ac_cv_search_xdrmem_create=no
32272 rm conftest.$ac_ext
32273 LIBS=$ac_func_search_save_LIBS
32275 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32276 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32277 ac_res=$ac_cv_search_xdrmem_create
32278 if test "$ac_res" != no; then
32279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32283 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32285 { { $as_echo "$as_me:$LINENO: error
: xdrmem_create
() requires libc
32286 See \
`config.log' for more details." >&5
32287 $as_echo "$as_me: error: xdrmem_create() requires libc
32288 See \`config.log
' for more details." >&2;}
32289 { (exit 1); exit 1; }; }; }
32299 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32300 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32301 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32302 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32303 $as_echo_n "(cached) " >&6
32305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32306 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32308 # Is the header compilable?
32309 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
32310 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
32311 cat >conftest.$ac_ext <<_ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32317 $ac_includes_default
32318 #include <blkid/blkid.h>
32320 rm -f conftest.$ac_objext
32321 if { (ac_try="$ac_compile"
32322 case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32327 $as_echo "$ac_try_echo") >&5
32328 (eval "$ac_compile") 2>conftest.er1
32330 grep -v '^
*+' conftest.er1 >conftest.err
32332 cat conftest.err >&5
32333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } && {
32335 test -z "$ac_c_werror_flag" ||
32336 test ! -s conftest.err
32337 } && test -s conftest.$ac_objext; then
32338 ac_header_compiler=yes
32340 $as_echo "$as_me: failed program was:" >&5
32341 sed 's
/^
/|
/' conftest.$ac_ext >&5
32343 ac_header_compiler=no
32346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32348 $as_echo "$ac_header_compiler" >&6; }
32350 # Is the header present?
32351 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
32352 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
32353 cat >conftest.$ac_ext <<_ACEOF
32356 cat confdefs.h >>conftest.$ac_ext
32357 cat >>conftest.$ac_ext <<_ACEOF
32358 /* end confdefs.h. */
32359 #include <blkid/blkid.h>
32361 if { (ac_try="$ac_cpp conftest.$ac_ext"
32362 case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32367 $as_echo "$ac_try_echo") >&5
32368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32370 grep -v '^
*+' conftest.er1 >conftest.err
32372 cat conftest.err >&5
32373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } >/dev/null && {
32375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32376 test ! -s conftest.err
32378 ac_header_preproc=yes
32380 $as_echo "$as_me: failed program was:" >&5
32381 sed 's
/^
/|
/' conftest.$ac_ext >&5
32383 ac_header_preproc=no
32386 rm -f conftest.err conftest.$ac_ext
32387 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32388 $as_echo "$ac_header_preproc" >&6; }
32390 # So? What about this header?
32391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32393 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32394 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32395 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result
" >&5
32396 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: proceeding with the compiler
's result" >&2;}
32397 ac_header_preproc=yes
32400 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
32401 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
32402 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
32403 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
32404 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
32405 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
32406 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
32407 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32408 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result
" >&5
32409 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: proceeding with the preprocessor
's result" >&2;}
32410 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
32411 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
32415 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32416 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32417 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32418 $as_echo_n "(cached) " >&6
32420 ac_cv_header_blkid_blkid_h=$ac_header_preproc
32422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32423 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32426 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
32429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32430 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
32431 { { $as_echo "$as_me:$LINENO: error:
32432 *** blkid.h missing, libblkid-devel package required
32433 See \`config.log
' for more details." >&5
32434 $as_echo "$as_me: error:
32435 *** blkid.h missing, libblkid-devel package required
32436 See \`config.log' for more details.
" >&2;}
32437 { (exit 1); exit 1; }; }; }
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_LIBBLKID 1
32453 if test "${ac_cv_header_libudev_h+set}" = set; then
32454 { $as_echo "$as_me:$LINENO: checking
for libudev.h
" >&5
32455 $as_echo_n "checking
for libudev.h...
" >&6; }
32456 if test "${ac_cv_header_libudev_h+set}" = set; then
32457 $as_echo_n "(cached
) " >&6
32459 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libudev_h" >&5
32460 $as_echo "$ac_cv_header_libudev_h" >&6; }
32462 # Is the header compilable?
32463 { $as_echo "$as_me:$LINENO: checking libudev.h usability
" >&5
32464 $as_echo_n "checking libudev.h usability...
" >&6; }
32465 cat >conftest.$ac_ext <<_ACEOF
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h. */
32471 $ac_includes_default
32472 #include <libudev.h>
32474 rm -f conftest.$ac_objext
32475 if { (ac_try="$ac_compile"
32476 case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32481 $as_echo "$ac_try_echo") >&5
32482 (eval "$ac_compile") 2>conftest.er1
32484 grep -v '^ *+' conftest.er1 >conftest.err
32486 cat conftest.err >&5
32487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32488 (exit $ac_status); } && {
32489 test -z "$ac_c_werror_flag" ||
32490 test ! -s conftest.err
32491 } && test -s conftest.$ac_objext; then
32492 ac_header_compiler=yes
32494 $as_echo "$as_me: failed program was
:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32497 ac_header_compiler=no
32500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32502 $as_echo "$ac_header_compiler" >&6; }
32504 # Is the header present?
32505 { $as_echo "$as_me:$LINENO: checking libudev.h presence
" >&5
32506 $as_echo_n "checking libudev.h presence...
" >&6; }
32507 cat >conftest.$ac_ext <<_ACEOF
32510 cat confdefs.h >>conftest.$ac_ext
32511 cat >>conftest.$ac_ext <<_ACEOF
32512 /* end confdefs.h. */
32513 #include <libudev.h>
32515 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32516 case "(($ac_try" in
32517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 *) ac_try_echo=$ac_try;;
32520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32521 $as_echo "$ac_try_echo") >&5
32522 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32524 grep -v '^ *+' conftest.er1 >conftest.err
32526 cat conftest.err >&5
32527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32528 (exit $ac_status); } >/dev/null && {
32529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32530 test ! -s conftest.err
32532 ac_header_preproc=yes
32534 $as_echo "$as_me: failed program was
:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ac_header_preproc=no
32540 rm -f conftest.err conftest.$ac_ext
32541 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32542 $as_echo "$ac_header_preproc" >&6; }
32544 # So? What about this header?
32545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32547 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32548 $as_echo "$as_me: WARNING
: libudev.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32549 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: proceeding with the compiler
's result" >&5
32550 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result
" >&2;}
32551 ac_header_preproc=yes
32554 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: present but cannot be compiled
" >&5
32555 $as_echo "$as_me: WARNING
: libudev.h
: present but cannot be compiled
" >&2;}
32556 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: check
for missing prerequisite headers?
" >&5
32557 $as_echo "$as_me: WARNING
: libudev.h
: check
for missing prerequisite headers?
" >&2;}
32558 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: see the Autoconf documentation
" >&5
32559 $as_echo "$as_me: WARNING
: libudev.h
: see the Autoconf documentation
" >&2;}
32560 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32561 $as_echo "$as_me: WARNING
: libudev.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32562 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: proceeding with the preprocessor
's result" >&5
32563 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result
" >&2;}
32564 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: in the future
, the compiler will take precedence
" >&5
32565 $as_echo "$as_me: WARNING
: libudev.h
: in the future
, the compiler will take precedence
" >&2;}
32569 { $as_echo "$as_me:$LINENO: checking
for libudev.h
" >&5
32570 $as_echo_n "checking
for libudev.h...
" >&6; }
32571 if test "${ac_cv_header_libudev_h+set}" = set; then
32572 $as_echo_n "(cached
) " >&6
32574 ac_cv_header_libudev_h=$ac_header_preproc
32576 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libudev_h" >&5
32577 $as_echo "$ac_cv_header_libudev_h" >&6; }
32580 if test "x
$ac_cv_header_libudev_h" = x""yes; then
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_LIBUDEV 1
32599 { $as_echo "$as_me:$LINENO: checking
for library containing udev_device_get_is_initialized
" >&5
32600 $as_echo_n "checking
for library containing udev_device_get_is_initialized...
" >&6; }
32601 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32602 $as_echo_n "(cached
) " >&6
32604 ac_func_search_save_LIBS=$LIBS
32605 cat >conftest.$ac_ext <<_ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32618 char udev_device_get_is_initialized ();
32622 return udev_device_get_is_initialized ();
32627 for ac_lib in '' udev; do
32628 if test -z "$ac_lib"; then
32629 ac_res="none required
"
32632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (ac_try="$ac_link"
32636 case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32641 $as_echo "$ac_try_echo") >&5
32642 (eval "$ac_link") 2>conftest.er1
32644 grep -v '^ *+' conftest.er1 >conftest.err
32646 cat conftest.err >&5
32647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32648 (exit $ac_status); } && {
32649 test -z "$ac_c_werror_flag" ||
32650 test ! -s conftest.err
32651 } && test -s conftest$ac_exeext && {
32652 test "$cross_compiling" = yes ||
32653 $as_test_x conftest$ac_exeext
32655 ac_cv_search_udev_device_get_is_initialized=$ac_res
32657 $as_echo "$as_me: failed program was
:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32663 rm -rf conftest.dSYM
32664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32666 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32670 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32673 ac_cv_search_udev_device_get_is_initialized=no
32675 rm conftest.$ac_ext
32676 LIBS=$ac_func_search_save_LIBS
32678 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_udev_device_get_is_initialized" >&5
32679 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
32680 ac_res=$ac_cv_search_udev_device_get_is_initialized
32681 if test "$ac_res" != no; then
32682 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
32685 cat >>confdefs.h <<\_ACEOF
32686 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
32694 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
32695 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
32697 saved_flags="$CFLAGS"
32698 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
32700 cat >conftest.$ac_ext <<_ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h. */
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32722 $as_echo "$ac_try_echo") >&5
32723 (eval "$ac_compile") 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32729 (exit $ac_status); } && {
32730 test -z "$ac_c_werror_flag" ||
32731 test ! -s conftest.err
32732 } && test -s conftest.$ac_objext; then
32734 FRAME_LARGER_THAN=-Wframe-larger-than=1024
32735 { $as_echo "$as_me:$LINENO: result
: yes" >&5
32736 $as_echo "yes" >&6; }
32739 $as_echo "$as_me: failed program was
:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32744 { $as_echo "$as_me:$LINENO: result
: no
" >&5
32745 $as_echo "no
" >&6; }
32749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32751 CFLAGS="$saved_flags"
32757 if test "${ac_cv_header_libaio_h+set}" = set; then
32758 { $as_echo "$as_me:$LINENO: checking
for libaio.h
" >&5
32759 $as_echo_n "checking
for libaio.h...
" >&6; }
32760 if test "${ac_cv_header_libaio_h+set}" = set; then
32761 $as_echo_n "(cached
) " >&6
32763 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libaio_h" >&5
32764 $as_echo "$ac_cv_header_libaio_h" >&6; }
32766 # Is the header compilable?
32767 { $as_echo "$as_me:$LINENO: checking libaio.h usability
" >&5
32768 $as_echo_n "checking libaio.h usability...
" >&6; }
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32775 $ac_includes_default
32776 #include <libaio.h>
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32784 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32785 $as_echo "$ac_try_echo") >&5
32786 (eval "$ac_compile") 2>conftest.er1
32788 grep -v '^ *+' conftest.er1 >conftest.err
32790 cat conftest.err >&5
32791 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32792 (exit $ac_status); } && {
32793 test -z "$ac_c_werror_flag" ||
32794 test ! -s conftest.err
32795 } && test -s conftest.$ac_objext; then
32796 ac_header_compiler=yes
32798 $as_echo "$as_me: failed program was
:" >&5
32799 sed 's/^/| /' conftest.$ac_ext >&5
32801 ac_header_compiler=no
32804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32805 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
32806 $as_echo "$ac_header_compiler" >&6; }
32808 # Is the header present?
32809 { $as_echo "$as_me:$LINENO: checking libaio.h presence
" >&5
32810 $as_echo_n "checking libaio.h presence...
" >&6; }
32811 cat >conftest.$ac_ext <<_ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 #include <libaio.h>
32819 if { (ac_try="$ac_cpp conftest.
$ac_ext"
32820 case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32825 $as_echo "$ac_try_echo") >&5
32826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
32828 grep -v '^ *+' conftest.er1 >conftest.err
32830 cat conftest.err >&5
32831 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32832 (exit $ac_status); } >/dev/null && {
32833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32834 test ! -s conftest.err
32836 ac_header_preproc=yes
32838 $as_echo "$as_me: failed program was
:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32841 ac_header_preproc=no
32844 rm -f conftest.err conftest.$ac_ext
32845 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
32846 $as_echo "$ac_header_preproc" >&6; }
32848 # So? What about this header?
32849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32851 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
32852 $as_echo "$as_me: WARNING
: libaio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
32853 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: proceeding with the compiler
's result" >&5
32854 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result
" >&2;}
32855 ac_header_preproc=yes
32858 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: present but cannot be compiled
" >&5
32859 $as_echo "$as_me: WARNING
: libaio.h
: present but cannot be compiled
" >&2;}
32860 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: check
for missing prerequisite headers?
" >&5
32861 $as_echo "$as_me: WARNING
: libaio.h
: check
for missing prerequisite headers?
" >&2;}
32862 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: see the Autoconf documentation
" >&5
32863 $as_echo "$as_me: WARNING
: libaio.h
: see the Autoconf documentation
" >&2;}
32864 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
32865 $as_echo "$as_me: WARNING
: libaio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
32866 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: proceeding with the preprocessor
's result" >&5
32867 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result
" >&2;}
32868 { $as_echo "$as_me:$LINENO: WARNING
: libaio.h
: in the future
, the compiler will take precedence
" >&5
32869 $as_echo "$as_me: WARNING
: libaio.h
: in the future
, the compiler will take precedence
" >&2;}
32873 { $as_echo "$as_me:$LINENO: checking
for libaio.h
" >&5
32874 $as_echo_n "checking
for libaio.h...
" >&6; }
32875 if test "${ac_cv_header_libaio_h+set}" = set; then
32876 $as_echo_n "(cached
) " >&6
32878 ac_cv_header_libaio_h=$ac_header_preproc
32880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libaio_h" >&5
32881 $as_echo "$ac_cv_header_libaio_h" >&6; }
32884 if test "x
$ac_cv_header_libaio_h" = x""yes; then
32890 cat >>confdefs.h <<\_ACEOF
32891 #define HAVE_LIBAIO 1
32904 if test "x
$runstatedir" = x; then
32905 runstatedir='${localstatedir}/run'
32910 { $as_echo "$as_me:$LINENO: checking makedev
() is declared
in sys
/sysmacros.h
" >&5
32911 $as_echo_n "checking makedev
() is declared
in sys
/sysmacros.h...
" >&6; }
32912 cat >conftest.$ac_ext <<_ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h. */
32919 #include <sys/sysmacros.h>
32932 rm -f conftest.$ac_objext
32933 if { (ac_try="$ac_compile"
32934 case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
32939 $as_echo "$ac_try_echo") >&5
32940 (eval "$ac_compile") 2>conftest.er1
32942 grep -v '^ *+' conftest.er1 >conftest.err
32944 cat conftest.err >&5
32945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32946 (exit $ac_status); } && {
32947 test -z "$ac_c_werror_flag" ||
32948 test ! -s conftest.err
32949 } && test -s conftest.$ac_objext; then
32951 { $as_echo "$as_me:$LINENO: result
: yes" >&5
32952 $as_echo "yes" >&6; }
32954 cat >>confdefs.h <<\_ACEOF
32955 #define HAVE_MAKEDEV_IN_SYSMACROS 1
32960 $as_echo "$as_me: failed program was
:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32964 { $as_echo "$as_me:$LINENO: result
: no
" >&5
32965 $as_echo "no
" >&6; }
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32972 { $as_echo "$as_me:$LINENO: checking makedev
() is declared
in sys
/mkdev.h
" >&5
32973 $as_echo_n "checking makedev
() is declared
in sys
/mkdev.h...
" >&6; }
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32981 #include <sys/mkdev.h>
32994 rm -f conftest.$ac_objext
32995 if { (ac_try="$ac_compile"
32996 case "(($ac_try" in
32997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998 *) ac_try_echo=$ac_try;;
33000 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33001 $as_echo "$ac_try_echo") >&5
33002 (eval "$ac_compile") 2>conftest.er1
33004 grep -v '^ *+' conftest.er1 >conftest.err
33006 cat conftest.err >&5
33007 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33008 (exit $ac_status); } && {
33009 test -z "$ac_c_werror_flag" ||
33010 test ! -s conftest.err
33011 } && test -s conftest.$ac_objext; then
33013 { $as_echo "$as_me:$LINENO: result
: yes" >&5
33014 $as_echo "yes" >&6; }
33016 cat >>confdefs.h <<\_ACEOF
33017 #define HAVE_MAKEDEV_IN_MKDEV 1
33022 $as_echo "$as_me: failed program was
:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33026 { $as_echo "$as_me:$LINENO: result
: no
" >&5
33027 $as_echo "no
" >&6; }
33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33034 { $as_echo "$as_me:$LINENO: checking
for -Wno-format-truncation support
" >&5
33035 $as_echo_n "checking
for -Wno-format-truncation support...
" >&6; }
33037 saved_flags="$CFLAGS"
33038 CFLAGS="$CFLAGS -Wno-format-truncation"
33040 cat >conftest.$ac_ext <<_ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h. */
33055 rm -f conftest.$ac_objext
33056 if { (ac_try="$ac_compile"
33057 case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33062 $as_echo "$ac_try_echo") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33065 grep -v '^ *+' conftest.er1 >conftest.err
33067 cat conftest.err >&5
33068 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest.$ac_objext; then
33074 NO_FORMAT_TRUNCATION=-Wno-format-truncation
33075 { $as_echo "$as_me:$LINENO: result
: yes" >&5
33076 $as_echo "yes" >&6; }
33079 $as_echo "$as_me: failed program was
:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33083 NO_FORMAT_TRUNCATION=
33084 { $as_echo "$as_me:$LINENO: result
: no
" >&5
33085 $as_echo "no
" >&6; }
33089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33091 CFLAGS="$saved_flags"
33096 ZONENAME="echo global
"
33103 for ac_func in mlockall
33105 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
33106 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
33107 $as_echo_n "checking
for $ac_func...
" >&6; }
33108 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
33109 $as_echo_n "(cached
) " >&6
33111 cat >conftest.$ac_ext <<_ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33119 #define $ac_func innocuous_$ac_func
33121 /* System header to define __stub macros and hopefully few prototypes,
33122 which can conflict with char $ac_func (); below.
33123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33124 <limits.h> exists even on freestanding compilers. */
33127 # include <limits.h>
33129 # include <assert.h>
33134 /* Override any GCC internal prototype to avoid an error.
33135 Use char because int might match the return type of a GCC
33136 builtin and then its argument prototype would still apply. */
33141 /* The GNU C library defines this for functions which it implements
33142 to always fail with ENOSYS. Some functions are actually named
33143 something starting with __ and the normal name is an alias. */
33144 #if defined __stub_$ac_func || defined __stub___$ac_func
33151 return $ac_func ();
33156 rm -f conftest.$ac_objext conftest$ac_exeext
33157 if { (ac_try="$ac_link"
33158 case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
33163 $as_echo "$ac_try_echo") >&5
33164 (eval "$ac_link") 2>conftest.er1
33166 grep -v '^ *+' conftest.er1 >conftest.err
33168 cat conftest.err >&5
33169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33170 (exit $ac_status); } && {
33171 test -z "$ac_c_werror_flag" ||
33172 test ! -s conftest.err
33173 } && test -s conftest$ac_exeext && {
33174 test "$cross_compiling" = yes ||
33175 $as_test_x conftest$ac_exeext
33177 eval "$as_ac_var=yes"
33179 $as_echo "$as_me: failed program was
:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 eval "$as_ac_var=no
"
33185 rm -rf conftest.dSYM
33186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33187 conftest$ac_exeext conftest.$ac_ext
33189 ac_res=`eval 'as_val=${'$as_ac_var'}
33190 $as_echo "$as_val"'`
33191 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
33192 $as_echo "$ac_res" >&6; }
33193 as_val=`eval 'as_val=${'$as_ac_var'}
33194 $as_echo "$as_val"'`
33195 if test "x
$as_val" = x""yes; then
33196 cat >>confdefs.h <<_ACEOF
33197 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
33207 # Check whether --with-linux was given.
33208 if test "${with_linux+set}" = set; then
33209 withval=$with_linux; kernelsrc="$withval"
33214 # Check whether --with-linux-obj was given.
33215 if test "${with_linux_obj+set}" = set; then
33216 withval=$with_linux_obj; kernelbuild="$withval"
33220 { $as_echo "$as_me:$LINENO: checking kernel
source directory
" >&5
33221 $as_echo_n "checking kernel
source directory...
" >&6; }
33222 if test -z "$kernelsrc"; then
33224 if test -e "/lib
/modules
/$
(uname
-r)/source"; then
33226 headersdir="/lib
/modules
/$
(uname
-r)/source"
33227 sourcelink=$(readlink -f "$headersdir")
33229 elif test -e "/lib
/modules
/$
(uname
-r)/build
"; then
33231 headersdir="/lib
/modules
/$
(uname
-r)/build
"
33232 sourcelink=$(readlink -f "$headersdir")
33236 sourcelink=$(ls -1d /usr/src/kernels/* \
33238 2>/dev/null | grep -v obj | tail -1)
33243 if test -n "$sourcelink" && test -e ${sourcelink}; then
33245 kernelsrc=`readlink -f ${sourcelink}`
33249 kernelsrc="Not found
"
33256 if test "$kernelsrc" = "NONE
"; then
33267 { $as_echo "$as_me:$LINENO: result
: $kernelsrc" >&5
33268 $as_echo "$kernelsrc" >&6; }
33269 if test ! -d "$kernelsrc"; then
33271 { { $as_echo "$as_me:$LINENO: error
:
33272 *** Please
make sure the kernel devel package
for your distribution
33273 *** is installed and
then try again. If that fails
, you can specify the
33274 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&5
33275 $as_echo "$as_me: error
:
33276 *** Please
make sure the kernel devel package
for your distribution
33277 *** is installed and
then try again. If that fails
, you can specify the
33278 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&2;}
33279 { (exit 1); exit 1; }; }
33284 { $as_echo "$as_me:$LINENO: checking kernel build directory
" >&5
33285 $as_echo_n "checking kernel build directory...
" >&6; }
33286 if test -z "$kernelbuild"; then
33288 if test x$withlinux != xyes -a -e "/lib
/modules
/$
(uname
-r)/build
"; then
33290 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
33292 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
33294 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
33296 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
33298 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
33300 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
33302 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
33306 kernelbuild=${kernelsrc}
33313 { $as_echo "$as_me:$LINENO: result
: $kernelbuild" >&5
33314 $as_echo "$kernelbuild" >&6; }
33316 { $as_echo "$as_me:$LINENO: checking kernel
source version
" >&5
33317 $as_echo_n "checking kernel
source version...
" >&6; }
33318 utsrelease1=$kernelbuild/include/linux/version.h
33319 utsrelease2=$kernelbuild/include/linux/utsrelease.h
33320 utsrelease3=$kernelbuild/include/generated/utsrelease.h
33321 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
33323 utsrelease=linux/version.h
33325 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
33327 utsrelease=linux/utsrelease.h
33329 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
33331 utsrelease=generated/utsrelease.h
33336 if test "$utsrelease"; then
33338 kernsrcver=`(echo "#include <$utsrelease>";
33339 echo "kernsrcver=UTS_RELEASE") |
33340 cpp
-I $kernelbuild/include |
33341 grep "^kernsrcver=" | cut
-d \" -f 2`
33343 if test -z "$kernsrcver"; then
33345 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33346 $as_echo "Not found" >&6; }
33347 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
33348 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
33349 { (exit 1); exit 1; }; }
33356 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33357 $as_echo "Not found" >&6; }
33358 if test "x$enable_linux_builtin" != xyes; then
33359 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
33360 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
33361 { (exit 1); exit 1; }; }
33363 { { $as_echo "$as_me:$LINENO: error:
33364 *** Cannot find UTS_RELEASE definition.
33365 *** Please run 'make prepare' inside the kernel source tree." >&5
33366 $as_echo "$as_me: error:
33367 *** Cannot find UTS_RELEASE definition.
33368 *** Please run 'make prepare' inside the kernel source tree." >&2;}
33369 { (exit 1); exit 1; }; }
33375 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
33376 $as_echo "$kernsrcver" >&6; }
33379 LINUX_OBJ=${kernelbuild}
33380 LINUX_VERSION=${kernsrcver}
33387 modpost=$LINUX/scripts/Makefile.modpost
33388 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
33389 $as_echo_n "checking kernel file name for module symbols... " >&6; }
33390 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
33392 if grep -q Modules.symvers $modpost; then
33394 LINUX_SYMBOLS=Modules.symvers
33398 LINUX_SYMBOLS=Module.symvers
33403 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
33405 { { $as_echo "$as_me:$LINENO: error:
33406 *** Please make sure the kernel devel package for your distribution
33407 *** is installed. If you are building with a custom kernel, make sure the
33408 *** kernel is configured, built, and the '--with-linux=PATH' configure
33409 *** option refers to the location of the kernel source." >&5
33410 $as_echo "$as_me: error:
33411 *** Please make sure the kernel devel package for your distribution
33412 *** is installed. If you are building with a custom kernel, make sure the
33413 *** kernel is configured, built, and the '--with-linux=PATH' configure
33414 *** option refers to the location of the kernel source." >&2;}
33415 { (exit 1); exit 1; }; }
33426 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
33427 $as_echo "$LINUX_SYMBOLS" >&6; }
33433 # Check whether --with-spl was given.
33434 if test "${with_spl+set}" = set; then
33435 withval=$with_spl; if test "$withval" = "yes"; then
33436 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
33437 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
33438 { (exit 1); exit 1; }; }
33447 # Check whether --with-spl-obj was given.
33448 if test "${with_spl_obj+set}" = set; then
33449 withval=$with_spl_obj; splbuild="$withval"
33454 # Check whether --with-spl-timeout was given.
33455 if test "${with_spl_timeout+set}" = set; then
33456 withval=$with_spl_timeout; timeout="$withval"
33462 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
33463 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
33464 splsrc2="/usr/local/src/spl-${VERSION}"
33465 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
33466 splsrc4="/usr/src/spl-${VERSION}"
33470 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
33471 $as_echo_n "checking spl source directory... " >&6; }
33472 if test -z "${splsrc}"; then
33482 if test -e "${splsrc0}/spl.release.in"; then
33486 elif test -e "${splsrc1}/spl.release.in"; then
33490 elif test -e "${splsrc2}/spl.release.in"; then
33494 elif test -e "${splsrc3}/spl.release.in"; then
33496 splsrc=$(readlink -f "${splsrc3}")
33498 elif test -e "${splsrc4}/spl.release.in" ; then
33502 elif test -e "${splsrc5}/spl.release.in"; then
33504 splsrc=$(readlink -f "${splsrc5}")
33506 elif test -e "${splsrc6}/spl.release.in" ; then
33519 all_spl_sources="$withval",
33520 if test "$splsrc" = "NONE"; then
33531 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
33532 $as_echo "$splsrc" >&6; }
33533 if test ! -e "$splsrc/spl.release.in"; then
33535 { { $as_echo "$as_me:$LINENO: error:
33536 *** Please make sure the kmod spl devel package for your distribution
33537 *** is installed then try again. If that fails you can specify the
33538 *** location of the spl source with the '--with-spl=PATH' option.
33539 *** The spl version must match the version of ZFS you are building,
33540 *** ${VERSION}. Failed to find spl.release.in in the following:
33541 $all_spl_sources" >&5
33542 $as_echo "$as_me: error:
33543 *** Please make sure the kmod spl devel package for your distribution
33544 *** is installed then try again. If that fails you can specify the
33545 *** location of the spl source with the '--with-spl=PATH' option.
33546 *** The spl version must match the version of ZFS you are building,
33547 *** ${VERSION}. Failed to find spl.release.in in the following:
33548 $all_spl_sources" >&2;}
33549 { (exit 1); exit 1; }; }
33554 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
33555 $as_echo_n "checking spl build directory... " >&6; }
33557 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
33561 if test -z "$splbuild"; then
33563 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
33565 splbuild="${splsrc}/${LINUX_VERSION}"
33567 elif test -e "${splsrc}/spl_config.h" ; then
33569 splbuild="${splsrc}"
33571 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
33573 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
33577 splbuild="Not found"
33584 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
33591 timeout=$((timeout-1))
33597 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
33598 $as_echo "$splbuild" >&6; }
33599 if ! test -e "$splbuild/spl_config.h"; then
33601 { { $as_echo "$as_me:$LINENO: error:
33602 *** Please make sure the kmod spl devel <kernel> package for your
33603 *** distribution is installed then try again. If that fails you
33604 *** can specify the location of the spl objects with the
33605 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33606 *** any of the following:
33607 $all_spl_config_locs" >&5
33608 $as_echo "$as_me: error:
33609 *** Please make sure the kmod spl devel <kernel> package for your
33610 *** distribution is installed then try again. If that fails you
33611 *** can specify the location of the spl objects with the
33612 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33613 *** any of the following:
33614 $all_spl_config_locs" >&2;}
33615 { (exit 1); exit 1; }; }
33620 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
33621 $as_echo_n "checking spl source version... " >&6; }
33622 if test -r $splbuild/spl_config.h &&
33623 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
33626 splsrcver=`(echo "#include <spl_config.h>";
33627 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
33629 grep "^splsrcver=" |
tr -d \" | cut
-d= -f2`
33634 if test -z "$splsrcver"; then
33636 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33637 $as_echo "Not found" >&6; }
33638 { { $as_echo "$as_me:$LINENO: error:
33639 *** Cannot determine the version of the spl source.
33640 *** Please prepare the spl source before running this script" >&5
33641 $as_echo "$as_me: error:
33642 *** Cannot determine the version of the spl source.
33643 *** Please prepare the spl source before running this script" >&2;}
33644 { (exit 1); exit 1; }; }
33649 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
33650 $as_echo "$splsrcver" >&6; }
33653 SPL_OBJ=${splbuild}
33654 SPL_VERSION=${splsrcver}
33660 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
33661 $as_echo_n "checking spl file name for module symbols... " >&6; }
33665 if test -r $SPL_OBJ/Module.symvers; then
33667 SPL_SYMBOLS=Module.symvers
33669 elif test -r $SPL_OBJ/Modules.symvers; then
33671 SPL_SYMBOLS=Modules.symvers
33673 elif test -r $SPL_OBJ/module/Module.symvers; then
33675 SPL_SYMBOLS=Module.symvers
33677 elif test -r $SPL_OBJ/module/Modules.symvers; then
33679 SPL_SYMBOLS=Modules.symvers
33684 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
33691 timeout=$((timeout-1))
33697 if test "$SPL_SYMBOLS" = NONE; then
33699 SPL_SYMBOLS=$LINUX_SYMBOLS
33704 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
33705 $as_echo "$SPL_SYMBOLS" >&6; }
33710 # Check whether --with-qat was given.
33711 if test "${with_qat+set}" = set; then
33712 withval=$with_qat; if test "$withval" = "yes"; then
33713 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
33714 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
33715 { (exit 1); exit 1; }; }
33724 # Check whether --with-qat-obj was given.
33725 if test "${with_qat_obj+set}" = set; then
33726 withval=$with_qat_obj; qatbuild="$withval"
33730 if test ! -z "${qatsrc}"; then
33732 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
33733 $as_echo_n "checking qat source directory... " >&6; }
33734 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
33735 $as_echo "$qatsrc" >&6; }
33736 QAT_SRC="${qatsrc}/quickassist"
33737 if test ! -e "$QAT_SRC/include/cpa.h"; then
33739 { { $as_echo "$as_me:$LINENO: error:
33740 *** Please make sure the qat driver package is installed
33741 *** and specify the location of the qat source with the
33742 *** '--with-qat=PATH' option then try again. Failed to
33744 ${QAT_SRC}/include" >&5
33745 $as_echo "$as_me: error:
33746 *** Please make sure the qat driver package is installed
33747 *** and specify the location of the qat source with the
33748 *** '--with-qat=PATH' option then try again. Failed to
33750 ${QAT_SRC}/include" >&2;}
33751 { (exit 1); exit 1; }; }
33759 if test ! -z "${qatsrc}"; then
33761 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
33762 $as_echo_n "checking qat build directory... " >&6; }
33763 if test -z "$qatbuild"; then
33765 qatbuild="${qatsrc}/build"
33770 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
33771 $as_echo "$qatbuild" >&6; }
33772 QAT_OBJ=${qatbuild}
33773 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
33775 { { $as_echo "$as_me:$LINENO: error:
33776 *** Please make sure the qat driver is installed then try again.
33777 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33779 $as_echo "$as_me: error:
33780 *** Please make sure the qat driver is installed then try again.
33781 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33783 { (exit 1); exit 1; }; }
33792 cat >>confdefs.h <<\_ACEOF
33800 if test ! -z "${qatsrc}"; then
33802 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
33803 $as_echo_n "checking qat file for module symbols... " >&6; }
33804 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
33806 if test -r $QAT_SYMBOLS; then
33808 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
33809 $as_echo "$QAT_SYMBOLS" >&6; }
33814 { { $as_echo "$as_me:$LINENO: error:
33815 *** Please make sure the qat driver is installed then try again.
33816 *** Failed to find Module.symvers in:
33818 $as_echo "$as_me: error:
33819 *** Please make sure the qat driver is installed then try again.
33820 *** Failed to find Module.symvers in:
33821 $QAT_SYMBOLS" >&2;}
33822 { (exit 1); exit 1; }; }
33831 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
33832 $as_echo_n "checking whether modules can be built... " >&6; }
33835 cat confdefs.h - <<_ACEOF >conftest.c
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33855 cat - <<_ACEOF >conftest.h
33860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33861 echo "obj-m := conftest.o" >build/Makefile
33863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33876 { $as_echo "$as_me:$LINENO: result: yes" >&5
33877 $as_echo "yes" >&6; }
33880 $as_echo "$as_me: failed program was:" >&5
33881 sed 's/^/| /' conftest.$ac_ext >&5
33883 { $as_echo "$as_me:$LINENO: result: no" >&5
33884 $as_echo "no" >&6; }
33885 if test "x$enable_linux_builtin" != xyes; then
33886 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
33887 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
33888 { (exit 1); exit 1; }; }
33890 { { $as_echo "$as_me:$LINENO: error:
33891 *** Unable to build an empty module.
33892 *** Please run 'make scripts' inside the kernel source tree." >&5
33893 $as_echo "$as_me: error:
33894 *** Unable to build an empty module.
33895 *** Please run 'make scripts' inside the kernel source tree." >&2;}
33896 { (exit 1); exit 1; }; }
33908 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
33909 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
33912 cat confdefs.h - <<_ACEOF >conftest.c
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33920 #undef __ASSEMBLY__
33921 #include <asm/frame.h>
33927 #if !defined(FRAME_BEGIN)
33939 cat - <<_ACEOF >conftest.h
33944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33945 echo "obj-m := conftest.o" >build/Makefile
33947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
33952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33960 { $as_echo "$as_me:$LINENO: result: yes" >&5
33961 $as_echo "yes" >&6; }
33963 cat >>confdefs.h <<\_ACEOF
33964 #define HAVE_KERNEL_OBJTOOL 1
33969 $as_echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33972 { $as_echo "$as_me:$LINENO: result: no" >&5
33973 $as_echo "no" >&6; }
33984 if test "x$cross_compiling" != xyes; then
33986 if test "$cross_compiling" = yes; then
33987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33989 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
33990 See \
`config.log' for more details." >&5
33991 $as_echo "$as_me: error: cannot run test program while cross compiling
33992 See \`config.log
' for more details." >&2;}
33993 { (exit 1); exit 1; }; }; }
33995 cat >conftest.$ac_ext <<_ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34003 #include "$LINUX/include/linux/license.h"
34009 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
34016 rm -f conftest$ac_exeext
34017 if { (ac_try="$ac_link"
34018 case "(($ac_try" in
34019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020 *) ac_try_echo=$ac_try;;
34022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34023 $as_echo "$ac_try_echo") >&5
34024 (eval "$ac_link") 2>&5
34026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
34028 { (case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34033 $as_echo "$ac_try_echo") >&5
34034 (eval "$ac_try") 2>&5
34036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; }; then
34040 cat >>confdefs.h <<\_ACEOF
34041 #define ZFS_IS_GPL_COMPATIBLE 1
34046 $as_echo "$as_me: program exited with status $ac_status" >&5
34047 $as_echo "$as_me: failed program was:" >&5
34048 sed 's
/^
/|
/' conftest.$ac_ext >&5
34050 ( exit $ac_status )
34054 rm -rf conftest.dSYM
34055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34064 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
34065 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
34068 cat confdefs.h - <<_ACEOF >conftest.c
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h. */
34076 #include <linux/module.h>
34082 #if (THREAD_SIZE < 16384)
34083 #error "THREAD_SIZE is less than 16K"
34094 cat - <<_ACEOF >conftest.h
34099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34100 echo "obj-m := conftest.o" >build/Makefile
34102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34103 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34115 { $as_echo "$as_me:$LINENO: result: yes" >&5
34116 $as_echo "yes" >&6; }
34118 cat >>confdefs.h <<\_ACEOF
34119 #define HAVE_LARGE_STACKS 1
34124 $as_echo "$as_me: failed program was:" >&5
34125 sed 's
/^
/|
/' conftest.$ac_ext >&5
34127 { $as_echo "$as_me:$LINENO: result: no" >&5
34128 $as_echo "no" >&6; }
34140 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
34141 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
34144 cat confdefs.h - <<_ACEOF >conftest.c
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h. */
34152 #include <linux/module.h>
34158 #ifndef CONFIG_DEBUG_LOCK_ALLOC
34159 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
34170 cat - <<_ACEOF >conftest.h
34175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34176 echo "obj-m := conftest.o" >build/Makefile
34178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34179 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181 (eval $ac_try) 2>&5
34183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; }; then
34191 { $as_echo "$as_me:$LINENO: result: yes" >&5
34192 $as_echo "yes" >&6; }
34194 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
34195 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
34196 tmp_flags="$EXTRA_KCFLAGS"
34199 cat confdefs.h - <<_ACEOF >conftest.c
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34207 #include <linux/module.h>
34208 #include <linux/mutex.h>
34210 MODULE_LICENSE("$ZFS_META_LICENSE");
34220 mutex_unlock(&lock);
34230 cat - <<_ACEOF >conftest.h
34235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34236 echo "obj-m := conftest.o" >build/Makefile
34238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34239 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34251 { $as_echo "$as_me:$LINENO: result: no" >&5
34252 $as_echo "no" >&6; }
34255 $as_echo "$as_me: failed program was:" >&5
34256 sed 's
/^
/|
/' conftest.$ac_ext >&5
34258 { $as_echo "$as_me:$LINENO: result: yes" >&5
34259 $as_echo "yes" >&6; }
34260 { { $as_echo "$as_me:$LINENO: error:
34261 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34262 *** with the CDDL license and will prevent the module linking stage
34263 *** from succeeding. You must rebuild your kernel without this
34264 *** option enabled." >&5
34265 $as_echo "$as_me: error:
34266 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34267 *** with the CDDL license and will prevent the module linking stage
34268 *** from succeeding. You must rebuild your kernel without this
34269 *** option enabled." >&2;}
34270 { (exit 1); exit 1; }; }
34279 EXTRA_KCFLAGS="$tmp_flags"
34283 $as_echo "$as_me: failed program was:" >&5
34284 sed 's
/^
/|
/' conftest.$ac_ext >&5
34286 { $as_echo "$as_me:$LINENO: result: no" >&5
34287 $as_echo "no" >&6; }
34301 tmp_flags="$EXTRA_KCFLAGS"
34302 EXTRA_KCFLAGS="-I\$(src)"
34304 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
34305 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
34308 cat confdefs.h - <<_ACEOF >conftest.c
34311 cat confdefs.h >>conftest.$ac_ext
34312 cat >>conftest.$ac_ext <<_ACEOF
34313 /* end confdefs.h. */
34316 #include <linux/module.h>
34317 MODULE_LICENSE(ZFS_META_LICENSE);
34319 #define CREATE_TRACE_POINTS
34320 #include "conftest.h"
34326 trace_zfs_autoconf_event_one(1UL);
34327 trace_zfs_autoconf_event_two(2UL);
34337 cat - <<_ACEOF >conftest.h
34339 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
34340 #define _CONFTEST_H
34342 #undef TRACE_SYSTEM
34343 #define TRACE_SYSTEM zfs
34344 #include <linux/tracepoint.h>
34346 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
34347 TP_PROTO(unsigned long i),
34350 __field(unsigned long, i)
34355 TP_printk("i = %lu", __entry->i)
34358 #define DEFINE_AUTOCONF_EVENT(name) \
34359 DEFINE_EVENT(zfs_autoconf_event_class, name, \
34360 TP_PROTO(unsigned long i), \
34362 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
34363 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
34365 #endif /* _CONFTEST_H */
34367 #undef TRACE_INCLUDE_PATH
34368 #define TRACE_INCLUDE_PATH .
34369 #define TRACE_INCLUDE_FILE conftest
34370 #include <trace/define_trace.h>
34375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34376 echo "obj-m := conftest.o" >build/Makefile
34378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34379 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 (eval $ac_try) 2>&5
34388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; }; then
34391 { $as_echo "$as_me:$LINENO: result: yes" >&5
34392 $as_echo "yes" >&6; }
34394 cat >>confdefs.h <<\_ACEOF
34395 #define HAVE_DECLARE_EVENT_CLASS 1
34400 $as_echo "$as_me: failed program was:" >&5
34401 sed 's
/^
/|
/' conftest.$ac_ext >&5
34403 { $as_echo "$as_me:$LINENO: result: no" >&5
34404 $as_echo "no" >&6; }
34413 EXTRA_KCFLAGS="$tmp_flags"
34416 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
34417 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
34420 cat confdefs.h - <<_ACEOF >conftest.c
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h. */
34428 #include <linux/sched.h>
34434 current->bio_tail = (struct bio **) NULL;
34444 cat - <<_ACEOF >conftest.h
34449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34450 echo "obj-m := conftest.o" >build/Makefile
34452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34453 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
34465 { $as_echo "$as_me:$LINENO: result: yes" >&5
34466 $as_echo "yes" >&6; }
34468 cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_CURRENT_BIO_TAIL 1
34474 $as_echo "$as_me: failed program was:" >&5
34475 sed 's
/^
/|
/' conftest.$ac_ext >&5
34477 { $as_echo "$as_me:$LINENO: result: no" >&5
34478 $as_echo "no" >&6; }
34479 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
34480 $as_echo_n "checking whether current->bio_list exists... " >&6; }
34483 cat confdefs.h - <<_ACEOF >conftest.c
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h. */
34491 #include <linux/sched.h>
34497 current->bio_list = (struct bio_list *) NULL;
34507 cat - <<_ACEOF >conftest.h
34512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34513 echo "obj-m := conftest.o" >build/Makefile
34515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34516 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523 (eval $ac_try) 2>&5
34525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); }; }; then
34528 { $as_echo "$as_me:$LINENO: result: yes" >&5
34529 $as_echo "yes" >&6; }
34531 cat >>confdefs.h <<\_ACEOF
34532 #define HAVE_CURRENT_BIO_LIST 1
34537 $as_echo "$as_me: failed program was:" >&5
34538 sed 's
/^
/|
/' conftest.$ac_ext >&5
34540 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
34541 https://github.com/zfsonlinux/zfs/issues/new" >&5
34542 $as_echo "$as_me: error: no - Please file a bug report at
34543 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
34544 { (exit 1); exit 1; }; }
34563 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
34564 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
34567 cat confdefs.h - <<_ACEOF >conftest.c
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34575 #include <linux/fs.h>
34576 #include <linux/user_namespace.h>
34582 struct super_block super;
34583 super.s_user_ns = (struct user_namespace *)NULL;
34593 cat - <<_ACEOF >conftest.h
34598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34599 echo "obj-m := conftest.o" >build/Makefile
34601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34602 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604 (eval $ac_try) 2>&5
34606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34609 (eval $ac_try) 2>&5
34611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); }; }; then
34614 { $as_echo "$as_me:$LINENO: result: yes" >&5
34615 $as_echo "yes" >&6; }
34617 cat >>confdefs.h <<\_ACEOF
34618 #define HAVE_SUPER_USER_NS 1
34623 $as_echo "$as_me: failed program was:" >&5
34624 sed 's
/^
/|
/' conftest.$ac_ext >&5
34626 { $as_echo "$as_me:$LINENO: result: no" >&5
34627 $as_echo "no" >&6; }
34638 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
34639 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
34642 cat confdefs.h - <<_ACEOF >conftest.c
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h. */
34650 #include <linux/bio.h>
34657 struct bio *bio = NULL;
34658 blk_qc = submit_bio(bio);
34668 cat - <<_ACEOF >conftest.h
34673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34674 echo "obj-m := conftest.o" >build/Makefile
34676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34677 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; }; then
34689 { $as_echo "$as_me:$LINENO: result: yes" >&5
34690 $as_echo "yes" >&6; }
34692 cat >>confdefs.h <<\_ACEOF
34693 #define HAVE_1ARG_SUBMIT_BIO 1
34698 $as_echo "$as_me: failed program was:" >&5
34699 sed 's
/^
/|
/' conftest.$ac_ext >&5
34701 { $as_echo "$as_me:$LINENO: result: no" >&5
34702 $as_echo "no" >&6; }
34713 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
34714 $as_echo_n "checking whether bops->check_events() exists... " >&6; }
34715 tmp_flags="$EXTRA_KCFLAGS"
34716 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34719 cat confdefs.h - <<_ACEOF >conftest.c
34722 cat confdefs.h >>conftest.$ac_ext
34723 cat >>conftest.$ac_ext <<_ACEOF
34724 /* end confdefs.h. */
34727 #include <linux/blkdev.h>
34729 unsigned int blk_check_events(struct gendisk *disk,
34730 unsigned int clearing) { return (0); }
34732 static const struct block_device_operations
34733 bops __attribute__ ((unused)) = {
34734 .check_events = blk_check_events,
34750 cat - <<_ACEOF >conftest.h
34755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34756 echo "obj-m := conftest.o" >build/Makefile
34758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34759 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
34771 { $as_echo "$as_me:$LINENO: result: yes" >&5
34772 $as_echo "yes" >&6; }
34774 cat >>confdefs.h <<\_ACEOF
34775 #define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
34780 $as_echo "$as_me: failed program was:" >&5
34781 sed 's
/^
/|
/' conftest.$ac_ext >&5
34783 { $as_echo "$as_me:$LINENO: result: no" >&5
34784 $as_echo "no" >&6; }
34793 EXTRA_KCFLAGS="$tmp_flags"
34796 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
34797 $as_echo_n "checking whether bops->release() is void... " >&6; }
34798 tmp_flags="$EXTRA_KCFLAGS"
34799 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34802 cat confdefs.h - <<_ACEOF >conftest.c
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34810 #include <linux/blkdev.h>
34812 void blk_release(struct gendisk *g, fmode_t mode) { return; }
34814 static const struct block_device_operations
34815 bops __attribute__ ((unused)) = {
34817 .release = blk_release,
34819 .compat_ioctl = NULL,
34835 cat - <<_ACEOF >conftest.h
34840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34841 echo "obj-m := conftest.o" >build/Makefile
34843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34844 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34856 { $as_echo "$as_me:$LINENO: result: void" >&5
34857 $as_echo "void" >&6; }
34859 cat >>confdefs.h <<\_ACEOF
34860 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
34865 $as_echo "$as_me: failed program was:" >&5
34866 sed 's
/^
/|
/' conftest.$ac_ext >&5
34868 { $as_echo "$as_me:$LINENO: result: int" >&5
34869 $as_echo "int" >&6; }
34878 EXTRA_KCFLAGS="$tmp_flags"
34880 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
34881 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
34884 cat confdefs.h - <<_ACEOF >conftest.c
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34892 #include <linux/types.h>
34898 fmode_t *ptr __attribute__ ((unused));
34908 cat - <<_ACEOF >conftest.h
34913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34914 echo "obj-m := conftest.o" >build/Makefile
34916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34917 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34929 { $as_echo "$as_me:$LINENO: result: yes" >&5
34930 $as_echo "yes" >&6; }
34932 cat >>confdefs.h <<\_ACEOF
34933 #define HAVE_FMODE_T 1
34938 $as_echo "$as_me: failed program was:" >&5
34939 sed 's
/^
/|
/' conftest.$ac_ext >&5
34941 { $as_echo "$as_me:$LINENO: result: no" >&5
34942 $as_echo "no" >&6; }
34953 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
34954 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
34957 cat confdefs.h - <<_ACEOF >conftest.c
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h. */
34965 #include <linux/fs.h>
34971 struct block_device *bdev = NULL;
34972 (void) blkdev_get(bdev, 0, NULL);
34982 cat - <<_ACEOF >conftest.h
34987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34988 echo "obj-m := conftest.o" >build/Makefile
34990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34991 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
35000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
35003 { $as_echo "$as_me:$LINENO: result: yes" >&5
35004 $as_echo "yes" >&6; }
35006 cat >>confdefs.h <<\_ACEOF
35007 #define HAVE_3ARG_BLKDEV_GET 1
35012 $as_echo "$as_me: failed program was:" >&5
35013 sed 's
/^
/|
/' conftest.$ac_ext >&5
35015 { $as_echo "$as_me:$LINENO: result: no" >&5
35016 $as_echo "no" >&6; }
35026 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
35027 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
35031 cat confdefs.h - <<_ACEOF >conftest.c
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h. */
35039 #include <linux/fs.h>
35045 blkdev_get_by_path(NULL, 0, NULL);
35055 cat - <<_ACEOF >conftest.h
35060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35061 echo "obj-m := conftest.o" >build/Makefile
35063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35064 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066 (eval $ac_try) 2>&5
35068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35071 (eval $ac_try) 2>&5
35073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); }; }; then
35077 $as_echo "$as_me: failed program was:" >&5
35078 sed 's
/^
/|
/' conftest.$ac_ext >&5
35087 if test $rc -ne 0; then :
35089 { $as_echo "$as_me:$LINENO: result: no" >&5
35090 $as_echo "no" >&6; }
35093 if test "x$enable_linux_builtin" != xyes; then
35095 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
35096 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35098 if test $rc -ne 0; then
35100 for file in fs/block_dev.c; do
35101 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
35102 "$LINUX/$file" 2>/dev/null
35104 if test $rc -eq 0; then
35109 if test $export -eq 0; then :
35119 if test $rc -ne 0; then :
35121 { $as_echo "$as_me:$LINENO: result: no" >&5
35122 $as_echo "no" >&6; }
35126 { $as_echo "$as_me:$LINENO: result: yes" >&5
35127 $as_echo "yes" >&6; }
35129 cat >>confdefs.h <<\_ACEOF
35130 #define HAVE_BLKDEV_GET_BY_PATH 1
35138 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
35139 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
35143 cat confdefs.h - <<_ACEOF >conftest.c
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h. */
35151 #include <linux/fs.h>
35157 open_bdev_exclusive(NULL, 0, NULL);
35167 cat - <<_ACEOF >conftest.h
35172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35173 echo "obj-m := conftest.o" >build/Makefile
35175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35176 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35178 (eval $ac_try) 2>&5
35180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
35189 $as_echo "$as_me: failed program was:" >&5
35190 sed 's
/^
/|
/' conftest.$ac_ext >&5
35199 if test $rc -ne 0; then :
35201 { $as_echo "$as_me:$LINENO: result: no" >&5
35202 $as_echo "no" >&6; }
35205 if test "x$enable_linux_builtin" != xyes; then
35207 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
35208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35210 if test $rc -ne 0; then
35212 for file in fs/block_dev.c; do
35213 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
35214 "$LINUX/$file" 2>/dev/null
35216 if test $rc -eq 0; then
35221 if test $export -eq 0; then :
35231 if test $rc -ne 0; then :
35233 { $as_echo "$as_me:$LINENO: result: no" >&5
35234 $as_echo "no" >&6; }
35238 { $as_echo "$as_me:$LINENO: result: yes" >&5
35239 $as_echo "yes" >&6; }
35241 cat >>confdefs.h <<\_ACEOF
35242 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
35250 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
35251 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
35255 cat confdefs.h - <<_ACEOF >conftest.c
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35263 #include <linux/fs.h>
35279 cat - <<_ACEOF >conftest.h
35284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35285 echo "obj-m := conftest.o" >build/Makefile
35287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35288 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35301 $as_echo "$as_me: failed program was:" >&5
35302 sed 's
/^
/|
/' conftest.$ac_ext >&5
35311 if test $rc -ne 0; then :
35313 { $as_echo "$as_me:$LINENO: result: no" >&5
35314 $as_echo "no" >&6; }
35315 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35316 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35320 cat confdefs.h - <<_ACEOF >conftest.c
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35328 #include <linux/fs.h>
35334 lookup_bdev(NULL, FMODE_READ);
35344 cat - <<_ACEOF >conftest.h
35349 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35350 echo "obj-m := conftest.o" >build/Makefile
35352 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35353 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35366 $as_echo "$as_me: failed program was:" >&5
35367 sed 's
/^
/|
/' conftest.$ac_ext >&5
35376 if test $rc -ne 0; then :
35378 { $as_echo "$as_me:$LINENO: result: no" >&5
35379 $as_echo "no" >&6; }
35382 if test "x$enable_linux_builtin" != xyes; then
35384 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
35385 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35387 if test $rc -ne 0; then
35389 for file in fs/block_dev.c; do
35390 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35391 "$LINUX/$file" 2>/dev/null
35393 if test $rc -eq 0; then
35398 if test $export -eq 0; then :
35408 if test $rc -ne 0; then :
35410 { $as_echo "$as_me:$LINENO: result: no" >&5
35411 $as_echo "no" >&6; }
35415 { $as_echo "$as_me:$LINENO: result: yes" >&5
35416 $as_echo "yes" >&6; }
35418 cat >>confdefs.h <<\_ACEOF
35419 #define HAVE_2ARGS_LOOKUP_BDEV 1
35428 if test "x$enable_linux_builtin" != xyes; then
35430 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
35431 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35433 if test $rc -ne 0; then
35435 for file in fs/block_dev.c; do
35436 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35437 "$LINUX/$file" 2>/dev/null
35439 if test $rc -eq 0; then
35444 if test $export -eq 0; then :
35454 if test $rc -ne 0; then :
35456 { $as_echo "$as_me:$LINENO: result: no" >&5
35457 $as_echo "no" >&6; }
35458 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35459 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35463 cat confdefs.h - <<_ACEOF >conftest.c
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h. */
35471 #include <linux/fs.h>
35477 lookup_bdev(NULL, FMODE_READ);
35487 cat - <<_ACEOF >conftest.h
35492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35493 echo "obj-m := conftest.o" >build/Makefile
35495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35496 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503 (eval $ac_try) 2>&5
35505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; }; then
35509 $as_echo "$as_me: failed program was:" >&5
35510 sed 's
/^
/|
/' conftest.$ac_ext >&5
35519 if test $rc -ne 0; then :
35521 { $as_echo "$as_me:$LINENO: result: no" >&5
35522 $as_echo "no" >&6; }
35525 if test "x$enable_linux_builtin" != xyes; then
35527 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
35528 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35530 if test $rc -ne 0; then
35532 for file in fs/block_dev.c; do
35533 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35534 "$LINUX/$file" 2>/dev/null
35536 if test $rc -eq 0; then
35541 if test $export -eq 0; then :
35551 if test $rc -ne 0; then :
35553 { $as_echo "$as_me:$LINENO: result: no" >&5
35554 $as_echo "no" >&6; }
35558 { $as_echo "$as_me:$LINENO: result: yes" >&5
35559 $as_echo "yes" >&6; }
35561 cat >>confdefs.h <<\_ACEOF
35562 #define HAVE_2ARGS_LOOKUP_BDEV 1
35572 { $as_echo "$as_me:$LINENO: result: yes" >&5
35573 $as_echo "yes" >&6; }
35575 cat >>confdefs.h <<\_ACEOF
35576 #define HAVE_1ARG_LOOKUP_BDEV 1
35585 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
35586 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
35589 cat confdefs.h - <<_ACEOF >conftest.c
35592 cat confdefs.h >>conftest.$ac_ext
35593 cat >>conftest.$ac_ext <<_ACEOF
35594 /* end confdefs.h. */
35597 #include <linux/buffer_head.h>
35603 struct block_device *bdev = NULL;
35604 invalidate_bdev(bdev);
35614 cat - <<_ACEOF >conftest.h
35619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35620 echo "obj-m := conftest.o" >build/Makefile
35622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35623 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
35635 { $as_echo "$as_me:$LINENO: result: yes" >&5
35636 $as_echo "yes" >&6; }
35638 cat >>confdefs.h <<\_ACEOF
35639 #define HAVE_1ARG_INVALIDATE_BDEV 1
35644 $as_echo "$as_me: failed program was:" >&5
35645 sed 's
/^
/|
/' conftest.$ac_ext >&5
35647 { $as_echo "$as_me:$LINENO: result: no" >&5
35648 $as_echo "no" >&6; }
35659 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
35660 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
35661 tmp_flags="$EXTRA_KCFLAGS"
35662 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35665 cat confdefs.h - <<_ACEOF >conftest.c
35668 cat confdefs.h >>conftest.$ac_ext
35669 cat >>conftest.$ac_ext <<_ACEOF
35670 /* end confdefs.h. */
35673 #include <linux/blkdev.h>
35679 struct block_device *bdev = NULL;
35680 bdev_logical_block_size(bdev);
35690 cat - <<_ACEOF >conftest.h
35695 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35696 echo "obj-m := conftest.o" >build/Makefile
35698 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35699 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35711 { $as_echo "$as_me:$LINENO: result: yes" >&5
35712 $as_echo "yes" >&6; }
35714 cat >>confdefs.h <<\_ACEOF
35715 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
35720 $as_echo "$as_me: failed program was:" >&5
35721 sed 's
/^
/|
/' conftest.$ac_ext >&5
35723 { $as_echo "$as_me:$LINENO: result: no" >&5
35724 $as_echo "no" >&6; }
35733 EXTRA_KCFLAGS="$tmp_flags"
35736 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
35737 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
35738 tmp_flags="$EXTRA_KCFLAGS"
35739 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35742 cat confdefs.h - <<_ACEOF >conftest.c
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h. */
35750 #include <linux/blkdev.h>
35756 struct block_device *bdev = NULL;
35757 bdev_physical_block_size(bdev);
35767 cat - <<_ACEOF >conftest.h
35772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35773 echo "obj-m := conftest.o" >build/Makefile
35775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35776 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35783 (eval $ac_try) 2>&5
35785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); }; }; then
35788 { $as_echo "$as_me:$LINENO: result: yes" >&5
35789 $as_echo "yes" >&6; }
35791 cat >>confdefs.h <<\_ACEOF
35792 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
35797 $as_echo "$as_me: failed program was:" >&5
35798 sed 's
/^
/|
/' conftest.$ac_ext >&5
35800 { $as_echo "$as_me:$LINENO: result: no" >&5
35801 $as_echo "no" >&6; }
35810 EXTRA_KCFLAGS="$tmp_flags"
35813 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
35814 $as_echo_n "checking whether bio has bi_iter... " >&6; }
35817 cat confdefs.h - <<_ACEOF >conftest.c
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h. */
35825 #include <linux/bio.h>
35832 bio.bi_iter.bi_sector = 0;
35842 cat - <<_ACEOF >conftest.h
35847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35848 echo "obj-m := conftest.o" >build/Makefile
35850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35851 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35863 { $as_echo "$as_me:$LINENO: result: yes" >&5
35864 $as_echo "yes" >&6; }
35866 cat >>confdefs.h <<\_ACEOF
35867 #define HAVE_BIO_BVEC_ITER 1
35872 $as_echo "$as_me: failed program was:" >&5
35873 sed 's
/^
/|
/' conftest.$ac_ext >&5
35875 { $as_echo "$as_me:$LINENO: result: no" >&5
35876 $as_echo "no" >&6; }
35887 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
35888 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
35891 cat confdefs.h - <<_ACEOF >conftest.c
35894 cat confdefs.h >>conftest.$ac_ext
35895 cat >>conftest.$ac_ext <<_ACEOF
35896 /* end confdefs.h. */
35899 #include <linux/bio.h>
35905 int flags __attribute__ ((unused));
35906 flags = ((1 << BIO_RW_FAILFAST_DEV) |
35907 (1 << BIO_RW_FAILFAST_TRANSPORT) |
35908 (1 << BIO_RW_FAILFAST_DRIVER));
35918 cat - <<_ACEOF >conftest.h
35923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35924 echo "obj-m := conftest.o" >build/Makefile
35926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35927 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929 (eval $ac_try) 2>&5
35931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35939 { $as_echo "$as_me:$LINENO: result: yes" >&5
35940 $as_echo "yes" >&6; }
35942 cat >>confdefs.h <<\_ACEOF
35943 #define HAVE_BIO_RW_FAILFAST_DTD 1
35948 $as_echo "$as_me: failed program was:" >&5
35949 sed 's
/^
/|
/' conftest.$ac_ext >&5
35951 { $as_echo "$as_me:$LINENO: result: no" >&5
35952 $as_echo "no" >&6; }
35963 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
35964 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
35967 cat confdefs.h - <<_ACEOF >conftest.c
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h. */
35975 #include <linux/bio.h>
35976 #include <linux/fs.h>
35982 struct block_device *bdev = NULL;
35983 struct bio *bio = NULL;
35984 bio_set_dev(bio, bdev);
35994 cat - <<_ACEOF >conftest.h
35999 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36000 echo "obj-m := conftest.o" >build/Makefile
36002 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36003 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010 (eval $ac_try) 2>&5
36012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
36015 { $as_echo "$as_me:$LINENO: result: yes" >&5
36016 $as_echo "yes" >&6; }
36018 cat >>confdefs.h <<\_ACEOF
36019 #define HAVE_BIO_SET_DEV 1
36024 $as_echo "$as_me: failed program was:" >&5
36025 sed 's
/^
/|
/' conftest.$ac_ext >&5
36027 { $as_echo "$as_me:$LINENO: result: no" >&5
36028 $as_echo "no" >&6; }
36039 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
36040 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
36043 cat confdefs.h - <<_ACEOF >conftest.c
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36051 #include <linux/bio.h>
36057 int flags __attribute__ ((unused));
36058 flags = REQ_FAILFAST_MASK;
36068 cat - <<_ACEOF >conftest.h
36073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36074 echo "obj-m := conftest.o" >build/Makefile
36076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36077 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36084 (eval $ac_try) 2>&5
36086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); }; }; then
36089 { $as_echo "$as_me:$LINENO: result: yes" >&5
36090 $as_echo "yes" >&6; }
36092 cat >>confdefs.h <<\_ACEOF
36093 #define HAVE_REQ_FAILFAST_MASK 1
36098 $as_echo "$as_me: failed program was:" >&5
36099 sed 's
/^
/|
/' conftest.$ac_ext >&5
36101 { $as_echo "$as_me:$LINENO: result: no" >&5
36102 $as_echo "no" >&6; }
36113 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
36114 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
36117 cat confdefs.h - <<_ACEOF >conftest.c
36120 cat confdefs.h >>conftest.$ac_ext
36121 cat >>conftest.$ac_ext <<_ACEOF
36122 /* end confdefs.h. */
36125 #include <linux/blk_types.h>
36131 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
36141 cat - <<_ACEOF >conftest.h
36146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36147 echo "obj-m := conftest.o" >build/Makefile
36149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36150 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36152 (eval $ac_try) 2>&5
36154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; }; then
36162 { $as_echo "$as_me:$LINENO: result: yes" >&5
36163 $as_echo "yes" >&6; }
36165 cat >>confdefs.h <<\_ACEOF
36166 #define HAVE_REQ_OP_DISCARD 1
36171 $as_echo "$as_me: failed program was:" >&5
36172 sed 's
/^
/|
/' conftest.$ac_ext >&5
36174 { $as_echo "$as_me:$LINENO: result: no" >&5
36175 $as_echo "no" >&6; }
36186 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
36187 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
36190 cat confdefs.h - <<_ACEOF >conftest.c
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h. */
36198 #include <linux/blk_types.h>
36204 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
36214 cat - <<_ACEOF >conftest.h
36219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36220 echo "obj-m := conftest.o" >build/Makefile
36222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36223 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
36235 { $as_echo "$as_me:$LINENO: result: yes" >&5
36236 $as_echo "yes" >&6; }
36238 cat >>confdefs.h <<\_ACEOF
36239 #define HAVE_REQ_OP_SECURE_ERASE 1
36244 $as_echo "$as_me: failed program was:" >&5
36245 sed 's
/^
/|
/' conftest.$ac_ext >&5
36247 { $as_echo "$as_me:$LINENO: result: no" >&5
36248 $as_echo "no" >&6; }
36259 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
36260 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
36263 cat confdefs.h - <<_ACEOF >conftest.c
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36271 #include <linux/blk_types.h>
36277 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
36287 cat - <<_ACEOF >conftest.h
36292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36293 echo "obj-m := conftest.o" >build/Makefile
36295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36296 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298 (eval $ac_try) 2>&5
36300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
36308 { $as_echo "$as_me:$LINENO: result: yes" >&5
36309 $as_echo "yes" >&6; }
36311 cat >>confdefs.h <<\_ACEOF
36312 #define HAVE_REQ_OP_FLUSH 1
36317 $as_echo "$as_me: failed program was:" >&5
36318 sed 's
/^
/|
/' conftest.$ac_ext >&5
36320 { $as_echo "$as_me:$LINENO: result: no" >&5
36321 $as_echo "no" >&6; }
36332 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
36333 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
36336 cat confdefs.h - <<_ACEOF >conftest.c
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36344 #include <linux/bio.h>
36350 struct bio bio __attribute__ ((unused));
36361 cat - <<_ACEOF >conftest.h
36366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36367 echo "obj-m := conftest.o" >build/Makefile
36369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36370 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377 (eval $ac_try) 2>&5
36379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); }; }; then
36382 { $as_echo "$as_me:$LINENO: result: yes" >&5
36383 $as_echo "yes" >&6; }
36385 cat >>confdefs.h <<\_ACEOF
36386 #define HAVE_BIO_BI_OPF 1
36391 $as_echo "$as_me: failed program was:" >&5
36392 sed 's
/^
/|
/' conftest.$ac_ext >&5
36394 { $as_echo "$as_me:$LINENO: result: no" >&5
36395 $as_echo "no" >&6; }
36406 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
36407 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
36410 cat confdefs.h - <<_ACEOF >conftest.c
36413 cat confdefs.h >>conftest.$ac_ext
36414 cat >>conftest.$ac_ext <<_ACEOF
36415 /* end confdefs.h. */
36418 #include <linux/bio.h>
36420 void wanted_end_io(struct bio *bio) { return; }
36422 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
36437 cat - <<_ACEOF >conftest.h
36442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36443 echo "obj-m := conftest.o" >build/Makefile
36445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36446 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; }; then
36458 { $as_echo "$as_me:$LINENO: result: yes" >&5
36459 $as_echo "yes" >&6; }
36461 cat >>confdefs.h <<\_ACEOF
36462 #define HAVE_1ARG_BIO_END_IO_T 1
36467 $as_echo "$as_me: failed program was:" >&5
36468 sed 's
/^
/|
/' conftest.$ac_ext >&5
36470 { $as_echo "$as_me:$LINENO: result: no" >&5
36471 $as_echo "no" >&6; }
36482 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
36483 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
36486 cat confdefs.h - <<_ACEOF >conftest.c
36489 cat confdefs.h >>conftest.$ac_ext
36490 cat >>conftest.$ac_ext <<_ACEOF
36491 /* end confdefs.h. */
36494 #include <linux/bio.h>
36500 struct bio bio __attribute__ ((unused));
36501 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
36503 bio.bi_status = status;
36513 cat - <<_ACEOF >conftest.h
36518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36519 echo "obj-m := conftest.o" >build/Makefile
36521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36522 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; }; then
36534 { $as_echo "$as_me:$LINENO: result: yes" >&5
36535 $as_echo "yes" >&6; }
36537 cat >>confdefs.h <<\_ACEOF
36538 #define HAVE_BIO_BI_STATUS 1
36543 $as_echo "$as_me: failed program was:" >&5
36544 sed 's
/^
/|
/' conftest.$ac_ext >&5
36546 { $as_echo "$as_me:$LINENO: result: no" >&5
36547 $as_echo "no" >&6; }
36558 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
36559 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
36562 cat confdefs.h - <<_ACEOF >conftest.c
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h. */
36570 #include <linux/bio.h>
36576 int flags __attribute__ ((unused));
36577 flags = BIO_RW_BARRIER;
36587 cat - <<_ACEOF >conftest.h
36592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36593 echo "obj-m := conftest.o" >build/Makefile
36595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36596 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36598 (eval $ac_try) 2>&5
36600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36603 (eval $ac_try) 2>&5
36605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; }; then
36608 { $as_echo "$as_me:$LINENO: result: yes" >&5
36609 $as_echo "yes" >&6; }
36611 cat >>confdefs.h <<\_ACEOF
36612 #define HAVE_BIO_RW_BARRIER 1
36617 $as_echo "$as_me: failed program was:" >&5
36618 sed 's
/^
/|
/' conftest.$ac_ext >&5
36620 { $as_echo "$as_me:$LINENO: result: no" >&5
36621 $as_echo "no" >&6; }
36632 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
36633 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
36636 cat confdefs.h - <<_ACEOF >conftest.c
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h. */
36644 #include <linux/bio.h>
36650 int flags __attribute__ ((unused));
36651 flags = BIO_RW_DISCARD;
36661 cat - <<_ACEOF >conftest.h
36666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36667 echo "obj-m := conftest.o" >build/Makefile
36669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36670 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677 (eval $ac_try) 2>&5
36679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); }; }; then
36682 { $as_echo "$as_me:$LINENO: result: yes" >&5
36683 $as_echo "yes" >&6; }
36685 cat >>confdefs.h <<\_ACEOF
36686 #define HAVE_BIO_RW_DISCARD 1
36691 $as_echo "$as_me: failed program was:" >&5
36692 sed 's
/^
/|
/' conftest.$ac_ext >&5
36694 { $as_echo "$as_me:$LINENO: result: no" >&5
36695 $as_echo "no" >&6; }
36706 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
36707 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
36710 cat confdefs.h - <<_ACEOF >conftest.c
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h. */
36718 #include <linux/blkdev.h>
36724 struct request_queue q;
36725 struct backing_dev_info bdi;
36726 q.backing_dev_info = &bdi;
36736 cat - <<_ACEOF >conftest.h
36741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36742 echo "obj-m := conftest.o" >build/Makefile
36744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36745 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36757 { $as_echo "$as_me:$LINENO: result: yes" >&5
36758 $as_echo "yes" >&6; }
36760 cat >>confdefs.h <<\_ACEOF
36761 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
36766 $as_echo "$as_me: failed program was:" >&5
36767 sed 's
/^
/|
/' conftest.$ac_ext >&5
36769 { $as_echo "$as_me:$LINENO: result: no" >&5
36770 $as_echo "no" >&6; }
36781 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
36782 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
36785 cat confdefs.h - <<_ACEOF >conftest.c
36788 cat confdefs.h >>conftest.$ac_ext
36789 cat >>conftest.$ac_ext <<_ACEOF
36790 /* end confdefs.h. */
36793 #include <linux/kernel.h>
36794 #include <linux/blkdev.h>
36800 struct request_queue *q = NULL;
36801 blk_queue_flag_clear(0, q);
36811 cat - <<_ACEOF >conftest.h
36816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36817 echo "obj-m := conftest.o" >build/Makefile
36819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36820 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827 (eval $ac_try) 2>&5
36829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); }; }; then
36833 { $as_echo "$as_me:$LINENO: result: yes" >&5
36834 $as_echo "yes" >&6; }
36836 cat >>confdefs.h <<\_ACEOF
36837 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
36842 $as_echo "$as_me: failed program was:" >&5
36843 sed 's
/^
/|
/' conftest.$ac_ext >&5
36845 { $as_echo "$as_me:$LINENO: result: no" >&5
36846 $as_echo "no" >&6; }
36857 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
36858 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
36861 cat confdefs.h - <<_ACEOF >conftest.c
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h. */
36869 #include <linux/kernel.h>
36870 #include <linux/blkdev.h>
36876 struct request_queue *q = NULL;
36877 blk_queue_flag_set(0, q);
36887 cat - <<_ACEOF >conftest.h
36892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36893 echo "obj-m := conftest.o" >build/Makefile
36895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36896 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903 (eval $ac_try) 2>&5
36905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
36908 { $as_echo "$as_me:$LINENO: result: yes" >&5
36909 $as_echo "yes" >&6; }
36911 cat >>confdefs.h <<\_ACEOF
36912 #define HAVE_BLK_QUEUE_FLAG_SET 1
36917 $as_echo "$as_me: failed program was:" >&5
36918 sed 's
/^
/|
/' conftest.$ac_ext >&5
36920 { $as_echo "$as_me:$LINENO: result: no" >&5
36921 $as_echo "no" >&6; }
36932 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
36933 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
36934 tmp_flags="$EXTRA_KCFLAGS"
36935 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
36938 cat confdefs.h - <<_ACEOF >conftest.c
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h. */
36946 #include <linux/blkdev.h>
36952 struct request_queue *q = NULL;
36953 (void) blk_queue_flush(q, REQ_FLUSH);
36963 cat - <<_ACEOF >conftest.h
36968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36969 echo "obj-m := conftest.o" >build/Makefile
36971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36972 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979 (eval $ac_try) 2>&5
36981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; }; then
36984 { $as_echo "$as_me:$LINENO: result: yes" >&5
36985 $as_echo "yes" >&6; }
36987 cat >>confdefs.h <<\_ACEOF
36988 #define HAVE_BLK_QUEUE_FLUSH 1
36992 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
36993 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
36996 cat confdefs.h - <<_ACEOF >conftest.c
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h. */
37004 #include <linux/module.h>
37005 #include <linux/blkdev.h>
37007 MODULE_LICENSE("$ZFS_META_LICENSE");
37013 struct request_queue *q = NULL;
37014 (void) blk_queue_flush(q, REQ_FLUSH);
37024 cat - <<_ACEOF >conftest.h
37029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37030 echo "obj-m := conftest.o" >build/Makefile
37032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37033 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; }; then
37045 { $as_echo "$as_me:$LINENO: result: no" >&5
37046 $as_echo "no" >&6; }
37049 $as_echo "$as_me: failed program was:" >&5
37050 sed 's
/^
/|
/' conftest.$ac_ext >&5
37052 { $as_echo "$as_me:$LINENO: result: yes" >&5
37053 $as_echo "yes" >&6; }
37055 cat >>confdefs.h <<\_ACEOF
37056 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
37069 $as_echo "$as_me: failed program was:" >&5
37070 sed 's
/^
/|
/' conftest.$ac_ext >&5
37072 { $as_echo "$as_me:$LINENO: result: no" >&5
37073 $as_echo "no" >&6; }
37083 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
37084 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
37087 cat confdefs.h - <<_ACEOF >conftest.c
37090 cat confdefs.h >>conftest.$ac_ext
37091 cat >>conftest.$ac_ext <<_ACEOF
37092 /* end confdefs.h. */
37095 #include <linux/kernel.h>
37096 #include <linux/blkdev.h>
37103 struct request_queue *q = NULL;
37104 blk_queue_write_cache(q, true, true);
37114 cat - <<_ACEOF >conftest.h
37119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37120 echo "obj-m := conftest.o" >build/Makefile
37122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37123 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130 (eval $ac_try) 2>&5
37132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; }; then
37135 { $as_echo "$as_me:$LINENO: result: yes" >&5
37136 $as_echo "yes" >&6; }
37138 cat >>confdefs.h <<\_ACEOF
37139 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
37143 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
37144 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
37147 cat confdefs.h - <<_ACEOF >conftest.c
37150 cat confdefs.h >>conftest.$ac_ext
37151 cat >>conftest.$ac_ext <<_ACEOF
37152 /* end confdefs.h. */
37155 #include <linux/kernel.h>
37156 #include <linux/module.h>
37157 #include <linux/blkdev.h>
37159 MODULE_LICENSE("$ZFS_META_LICENSE");
37165 struct request_queue *q = NULL;
37166 blk_queue_write_cache(q, true, true);
37176 cat - <<_ACEOF >conftest.h
37181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37182 echo "obj-m := conftest.o" >build/Makefile
37184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37185 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37187 (eval $ac_try) 2>&5
37189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37192 (eval $ac_try) 2>&5
37194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195 (exit $ac_status); }; }; then
37197 { $as_echo "$as_me:$LINENO: result: no" >&5
37198 $as_echo "no" >&6; }
37201 $as_echo "$as_me: failed program was:" >&5
37202 sed 's
/^
/|
/' conftest.$ac_ext >&5
37204 { $as_echo "$as_me:$LINENO: result: yes" >&5
37205 $as_echo "yes" >&6; }
37207 cat >>confdefs.h <<\_ACEOF
37208 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
37221 $as_echo "$as_me: failed program was:" >&5
37222 sed 's
/^
/|
/' conftest.$ac_ext >&5
37224 { $as_echo "$as_me:$LINENO: result: no" >&5
37225 $as_echo "no" >&6; }
37235 EXTRA_KCFLAGS="$tmp_flags"
37238 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
37239 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
37240 tmp_flags="$EXTRA_KCFLAGS"
37241 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37244 cat confdefs.h - <<_ACEOF >conftest.c
37247 cat confdefs.h >>conftest.$ac_ext
37248 cat >>conftest.$ac_ext <<_ACEOF
37249 /* end confdefs.h. */
37252 #include <linux/blkdev.h>
37258 struct request_queue *q = NULL;
37259 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
37269 cat - <<_ACEOF >conftest.h
37274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37275 echo "obj-m := conftest.o" >build/Makefile
37277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37278 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280 (eval $ac_try) 2>&5
37282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
37290 { $as_echo "$as_me:$LINENO: result: yes" >&5
37291 $as_echo "yes" >&6; }
37293 cat >>confdefs.h <<\_ACEOF
37294 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
37299 $as_echo "$as_me: failed program was:" >&5
37300 sed 's
/^
/|
/' conftest.$ac_ext >&5
37302 { $as_echo "$as_me:$LINENO: result: no" >&5
37303 $as_echo "no" >&6; }
37312 EXTRA_KCFLAGS="$tmp_flags"
37315 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
37316 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
37317 tmp_flags="$EXTRA_KCFLAGS"
37318 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37321 cat confdefs.h - <<_ACEOF >conftest.c
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h. */
37329 #include <linux/blkdev.h>
37335 struct request_queue *q = NULL;
37336 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
37346 cat - <<_ACEOF >conftest.h
37351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37352 echo "obj-m := conftest.o" >build/Makefile
37354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37355 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37362 (eval $ac_try) 2>&5
37364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); }; }; then
37367 { $as_echo "$as_me:$LINENO: result: yes" >&5
37368 $as_echo "yes" >&6; }
37370 cat >>confdefs.h <<\_ACEOF
37371 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
37376 $as_echo "$as_me: failed program was:" >&5
37377 sed 's
/^
/|
/' conftest.$ac_ext >&5
37379 { $as_echo "$as_me:$LINENO: result: no" >&5
37380 $as_echo "no" >&6; }
37389 EXTRA_KCFLAGS="$tmp_flags"
37392 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
37393 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
37394 tmp_flags="$EXTRA_KCFLAGS"
37395 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37398 cat confdefs.h - <<_ACEOF >conftest.c
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h. */
37406 #include <linux/blkdev.h>
37412 extern enum bio_rw_flags rw;
37414 rw = BIO_RW_UNPLUG;
37424 cat - <<_ACEOF >conftest.h
37429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37430 echo "obj-m := conftest.o" >build/Makefile
37432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37433 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435 (eval $ac_try) 2>&5
37437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; }; then
37445 { $as_echo "$as_me:$LINENO: result: yes" >&5
37446 $as_echo "yes" >&6; }
37448 cat >>confdefs.h <<\_ACEOF
37449 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
37454 $as_echo "$as_me: failed program was:" >&5
37455 sed 's
/^
/|
/' conftest.$ac_ext >&5
37457 { $as_echo "$as_me:$LINENO: result: no" >&5
37458 $as_echo "no" >&6; }
37467 EXTRA_KCFLAGS="$tmp_flags"
37470 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
37471 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
37472 tmp_flags="$EXTRA_KCFLAGS"
37473 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37476 cat confdefs.h - <<_ACEOF >conftest.c
37479 cat confdefs.h >>conftest.$ac_ext
37480 cat >>conftest.$ac_ext <<_ACEOF
37481 /* end confdefs.h. */
37484 #include <linux/blkdev.h>
37490 struct blk_plug plug;
37492 blk_start_plug(&plug);
37493 blk_finish_plug(&plug);
37503 cat - <<_ACEOF >conftest.h
37508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37509 echo "obj-m := conftest.o" >build/Makefile
37511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37512 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37519 (eval $ac_try) 2>&5
37521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; }; then
37524 { $as_echo "$as_me:$LINENO: result: yes" >&5
37525 $as_echo "yes" >&6; }
37527 cat >>confdefs.h <<\_ACEOF
37528 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
37533 $as_echo "$as_me: failed program was:" >&5
37534 sed 's
/^
/|
/' conftest.$ac_ext >&5
37536 { $as_echo "$as_me:$LINENO: result: no" >&5
37537 $as_echo "no" >&6; }
37546 EXTRA_KCFLAGS="$tmp_flags"
37548 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
37549 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
37553 cat confdefs.h - <<_ACEOF >conftest.c
37556 cat confdefs.h >>conftest.$ac_ext
37557 cat >>conftest.$ac_ext <<_ACEOF
37558 /* end confdefs.h. */
37561 #include <linux/genhd.h>
37567 struct gendisk *disk = NULL;
37568 (void) get_disk_and_module(disk);
37578 cat - <<_ACEOF >conftest.h
37583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37584 echo "obj-m := conftest.o" >build/Makefile
37586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37587 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37594 (eval $ac_try) 2>&5
37596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
37600 $as_echo "$as_me: failed program was:" >&5
37601 sed 's
/^
/|
/' conftest.$ac_ext >&5
37610 if test $rc -ne 0; then :
37612 { $as_echo "$as_me:$LINENO: result: no" >&5
37613 $as_echo "no" >&6; }
37616 if test "x$enable_linux_builtin" != xyes; then
37618 grep -q -E '[[:space
:]]get_disk_and_module
[[:space
:]]' \
37619 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37621 if test $rc -ne 0; then
37623 for file in block/genhd.c; do
37624 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
37625 "$LINUX/$file" 2>/dev/null
37627 if test $rc -eq 0; then
37632 if test $export -eq 0; then :
37642 if test $rc -ne 0; then :
37644 { $as_echo "$as_me:$LINENO: result: no" >&5
37645 $as_echo "no" >&6; }
37649 { $as_echo "$as_me:$LINENO: result: yes" >&5
37650 $as_echo "yes" >&6; }
37652 cat >>confdefs.h <<\_ACEOF
37653 #define HAVE_GET_DISK_AND_MODULE 1
37662 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
37663 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
37664 tmp_flags="$EXTRA_KCFLAGS"
37665 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37668 cat confdefs.h - <<_ACEOF >conftest.c
37671 cat confdefs.h >>conftest.$ac_ext
37672 cat >>conftest.$ac_ext <<_ACEOF
37673 /* end confdefs.h. */
37676 #include <linux/blkdev.h>
37682 struct gendisk *disk = NULL;
37683 (void) get_disk_ro(disk);
37693 cat - <<_ACEOF >conftest.h
37698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37699 echo "obj-m := conftest.o" >build/Makefile
37701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37702 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37704 (eval $ac_try) 2>&5
37706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; }; then
37714 { $as_echo "$as_me:$LINENO: result: yes" >&5
37715 $as_echo "yes" >&6; }
37717 cat >>confdefs.h <<\_ACEOF
37718 #define HAVE_GET_DISK_RO 1
37723 $as_echo "$as_me: failed program was:" >&5
37724 sed 's
/^
/|
/' conftest.$ac_ext >&5
37726 { $as_echo "$as_me:$LINENO: result: no" >&5
37727 $as_echo "no" >&6; }
37736 EXTRA_KCFLAGS="$tmp_flags"
37738 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
37739 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
37743 cat confdefs.h - <<_ACEOF >conftest.c
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h. */
37751 #include <linux/genhd.h>
37757 get_gendisk(0, NULL);
37767 cat - <<_ACEOF >conftest.h
37772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37773 echo "obj-m := conftest.o" >build/Makefile
37775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37776 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37778 (eval $ac_try) 2>&5
37780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783 (eval $ac_try) 2>&5
37785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; }; then
37789 $as_echo "$as_me: failed program was:" >&5
37790 sed 's
/^
/|
/' conftest.$ac_ext >&5
37799 if test $rc -ne 0; then :
37801 { $as_echo "$as_me:$LINENO: result: no" >&5
37802 $as_echo "no" >&6; }
37805 if test "x$enable_linux_builtin" != xyes; then
37807 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
37808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37810 if test $rc -ne 0; then
37812 for file in block/genhd.c; do
37813 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
37814 "$LINUX/$file" 2>/dev/null
37816 if test $rc -eq 0; then
37821 if test $export -eq 0; then :
37831 if test $rc -ne 0; then :
37833 { $as_echo "$as_me:$LINENO: result: no" >&5
37834 $as_echo "no" >&6; }
37838 { $as_echo "$as_me:$LINENO: result: yes" >&5
37839 $as_echo "yes" >&6; }
37841 cat >>confdefs.h <<\_ACEOF
37842 #define HAVE_GET_GENDISK 1
37851 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
37852 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
37855 cat confdefs.h - <<_ACEOF >conftest.c
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37863 #include <linux/bio.h>
37869 struct bio *bio __attribute__ ((unused)) = NULL;
37871 bio_set_op_attrs(bio, 0, 0);
37881 cat - <<_ACEOF >conftest.h
37886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37887 echo "obj-m := conftest.o" >build/Makefile
37889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37890 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897 (eval $ac_try) 2>&5
37899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; }; then
37902 { $as_echo "$as_me:$LINENO: result: yes" >&5
37903 $as_echo "yes" >&6; }
37905 cat >>confdefs.h <<\_ACEOF
37906 #define HAVE_BIO_SET_OP_ATTRS 1
37911 $as_echo "$as_me: failed program was:" >&5
37912 sed 's
/^
/|
/' conftest.$ac_ext >&5
37914 { $as_echo "$as_me:$LINENO: result: no" >&5
37915 $as_echo "no" >&6; }
37926 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
37927 $as_echo_n "checking whether generic_readlink is global... " >&6; }
37930 cat confdefs.h - <<_ACEOF >conftest.c
37933 cat confdefs.h >>conftest.$ac_ext
37934 cat >>conftest.$ac_ext <<_ACEOF
37935 /* end confdefs.h. */
37938 #include <linux/fs.h>
37944 int i __attribute__ ((unused));
37946 i = generic_readlink(NULL, NULL, 0);
37956 cat - <<_ACEOF >conftest.h
37961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37962 echo "obj-m := conftest.o" >build/Makefile
37964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37965 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37972 (eval $ac_try) 2>&5
37974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; }; then
37977 { $as_echo "$as_me:$LINENO: result: yes" >&5
37978 $as_echo "yes" >&6; }
37980 cat >>confdefs.h <<\_ACEOF
37981 #define HAVE_GENERIC_READLINK 1
37986 $as_echo "$as_me: failed program was:" >&5
37987 sed 's
/^
/|
/' conftest.$ac_ext >&5
37989 { $as_echo "$as_me:$LINENO: result: no" >&5
37990 $as_echo "no" >&6; }
38001 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
38002 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
38005 cat confdefs.h - <<_ACEOF >conftest.c
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38013 #include <linux/blkdev.h>
38019 struct queue_limits ql __attribute__ ((unused));
38021 ql.discard_granularity = 0;
38031 cat - <<_ACEOF >conftest.h
38036 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38037 echo "obj-m := conftest.o" >build/Makefile
38039 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38040 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38042 (eval $ac_try) 2>&5
38044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047 (eval $ac_try) 2>&5
38049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; }; then
38052 { $as_echo "$as_me:$LINENO: result: yes" >&5
38053 $as_echo "yes" >&6; }
38055 cat >>confdefs.h <<\_ACEOF
38056 #define HAVE_DISCARD_GRANULARITY 1
38061 $as_echo "$as_me: failed program was:" >&5
38062 sed 's
/^
/|
/' conftest.$ac_ext >&5
38064 { $as_echo "$as_me:$LINENO: result: no" >&5
38065 $as_echo "no" >&6; }
38076 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
38077 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
38080 cat confdefs.h - <<_ACEOF >conftest.c
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h. */
38088 #include <linux/fs.h>
38089 #include <linux/xattr.h>
38091 const struct xattr_handler xattr_test_handler = {
38097 const struct xattr_handler *xattr_handlers[] = {
38098 &xattr_test_handler,
38101 const struct super_block sb __attribute__ ((unused)) = {
38102 .s_xattr = xattr_handlers,
38118 cat - <<_ACEOF >conftest.h
38123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38124 echo "obj-m := conftest.o" >build/Makefile
38126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38127 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129 (eval $ac_try) 2>&5
38131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134 (eval $ac_try) 2>&5
38136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; }; then
38139 { $as_echo "$as_me:$LINENO: result: yes" >&5
38140 $as_echo "yes" >&6; }
38142 cat >>confdefs.h <<\_ACEOF
38143 #define HAVE_CONST_XATTR_HANDLER 1
38148 $as_echo "$as_me: failed program was:" >&5
38149 sed 's
/^
/|
/' conftest.$ac_ext >&5
38151 { $as_echo "$as_me:$LINENO: result: no" >&5
38152 $as_echo "no" >&6; }
38163 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
38164 $as_echo_n "checking whether xattr_handler has name... " >&6; }
38167 cat confdefs.h - <<_ACEOF >conftest.c
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h. */
38175 #include <linux/xattr.h>
38177 static const struct xattr_handler
38178 xops __attribute__ ((unused)) = {
38179 .name = XATTR_NAME_POSIX_ACL_ACCESS,
38195 cat - <<_ACEOF >conftest.h
38200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38201 echo "obj-m := conftest.o" >build/Makefile
38203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38204 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38211 (eval $ac_try) 2>&5
38213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); }; }; then
38216 { $as_echo "$as_me:$LINENO: result: yes" >&5
38217 $as_echo "yes" >&6; }
38219 cat >>confdefs.h <<\_ACEOF
38220 #define HAVE_XATTR_HANDLER_NAME 1
38225 $as_echo "$as_me: failed program was:" >&5
38226 sed 's
/^
/|
/' conftest.$ac_ext >&5
38228 { $as_echo "$as_me:$LINENO: result: no" >&5
38229 $as_echo "no" >&6; }
38240 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
38241 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
38244 cat confdefs.h - <<_ACEOF >conftest.c
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h. */
38252 #include <linux/xattr.h>
38254 int get(const struct xattr_handler *handler,
38255 struct dentry *dentry, struct inode *inode,
38256 const char *name, void *buffer, size_t size) { return 0; }
38257 static const struct xattr_handler
38258 xops __attribute__ ((unused)) = {
38275 cat - <<_ACEOF >conftest.h
38280 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38281 echo "obj-m := conftest.o" >build/Makefile
38283 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38284 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286 (eval $ac_try) 2>&5
38288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
38296 { $as_echo "$as_me:$LINENO: result: yes" >&5
38297 $as_echo "yes" >&6; }
38299 cat >>confdefs.h <<\_ACEOF
38300 #define HAVE_XATTR_GET_DENTRY_INODE 1
38305 $as_echo "$as_me: failed program was:" >&5
38306 sed 's
/^
/|
/' conftest.$ac_ext >&5
38308 { $as_echo "$as_me:$LINENO: result: no" >&5
38309 $as_echo "no" >&6; }
38310 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
38311 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
38314 cat confdefs.h - <<_ACEOF >conftest.c
38317 cat confdefs.h >>conftest.$ac_ext
38318 cat >>conftest.$ac_ext <<_ACEOF
38319 /* end confdefs.h. */
38322 #include <linux/xattr.h>
38324 int get(const struct xattr_handler *handler,
38325 struct dentry *dentry, const char *name,
38326 void *buffer, size_t size) { return 0; }
38327 static const struct xattr_handler
38328 xops __attribute__ ((unused)) = {
38345 cat - <<_ACEOF >conftest.h
38350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38351 echo "obj-m := conftest.o" >build/Makefile
38353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38354 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356 (eval $ac_try) 2>&5
38358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; }; then
38366 { $as_echo "$as_me:$LINENO: result: yes" >&5
38367 $as_echo "yes" >&6; }
38369 cat >>confdefs.h <<\_ACEOF
38370 #define HAVE_XATTR_GET_HANDLER 1
38375 $as_echo "$as_me: failed program was:" >&5
38376 sed 's
/^
/|
/' conftest.$ac_ext >&5
38378 { $as_echo "$as_me:$LINENO: result: no" >&5
38379 $as_echo "no" >&6; }
38380 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
38381 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
38384 cat confdefs.h - <<_ACEOF >conftest.c
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h. */
38392 #include <linux/xattr.h>
38394 int get(struct dentry *dentry, const char *name,
38395 void *buffer, size_t size, int handler_flags)
38397 static const struct xattr_handler
38398 xops __attribute__ ((unused)) = {
38415 cat - <<_ACEOF >conftest.h
38420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38421 echo "obj-m := conftest.o" >build/Makefile
38423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38424 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38426 (eval $ac_try) 2>&5
38428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431 (eval $ac_try) 2>&5
38433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); }; }; then
38436 { $as_echo "$as_me:$LINENO: result: yes" >&5
38437 $as_echo "yes" >&6; }
38439 cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_XATTR_GET_DENTRY 1
38445 $as_echo "$as_me: failed program was:" >&5
38446 sed 's
/^
/|
/' conftest.$ac_ext >&5
38448 { $as_echo "$as_me:$LINENO: result: no" >&5
38449 $as_echo "no" >&6; }
38450 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
38451 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
38454 cat confdefs.h - <<_ACEOF >conftest.c
38457 cat confdefs.h >>conftest.$ac_ext
38458 cat >>conftest.$ac_ext <<_ACEOF
38459 /* end confdefs.h. */
38462 #include <linux/xattr.h>
38464 int get(struct inode *ip, const char *name,
38465 void *buffer, size_t size) { return 0; }
38466 static const struct xattr_handler
38467 xops __attribute__ ((unused)) = {
38484 cat - <<_ACEOF >conftest.h
38489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38490 echo "obj-m := conftest.o" >build/Makefile
38492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38493 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495 (eval $ac_try) 2>&5
38497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38500 (eval $ac_try) 2>&5
38502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); }; }; then
38505 { $as_echo "$as_me:$LINENO: result: yes" >&5
38506 $as_echo "yes" >&6; }
38508 cat >>confdefs.h <<\_ACEOF
38509 #define HAVE_XATTR_GET_INODE 1
38514 $as_echo "$as_me: failed program was:" >&5
38515 sed 's
/^
/|
/' conftest.$ac_ext >&5
38517 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38518 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38519 { (exit 1); exit 1; }; }
38554 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
38555 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
38558 cat confdefs.h - <<_ACEOF >conftest.c
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h. */
38566 #include <linux/xattr.h>
38568 int set(const struct xattr_handler *handler,
38569 struct dentry *dentry, struct inode *inode,
38570 const char *name, const void *buffer,
38571 size_t size, int flags)
38573 static const struct xattr_handler
38574 xops __attribute__ ((unused)) = {
38591 cat - <<_ACEOF >conftest.h
38596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38597 echo "obj-m := conftest.o" >build/Makefile
38599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38600 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602 (eval $ac_try) 2>&5
38604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607 (eval $ac_try) 2>&5
38609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; }; then
38612 { $as_echo "$as_me:$LINENO: result: yes" >&5
38613 $as_echo "yes" >&6; }
38615 cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_XATTR_SET_DENTRY_INODE 1
38621 $as_echo "$as_me: failed program was:" >&5
38622 sed 's
/^
/|
/' conftest.$ac_ext >&5
38624 { $as_echo "$as_me:$LINENO: result: no" >&5
38625 $as_echo "no" >&6; }
38626 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
38627 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
38630 cat confdefs.h - <<_ACEOF >conftest.c
38633 cat confdefs.h >>conftest.$ac_ext
38634 cat >>conftest.$ac_ext <<_ACEOF
38635 /* end confdefs.h. */
38638 #include <linux/xattr.h>
38640 int set(const struct xattr_handler *handler,
38641 struct dentry *dentry, const char *name,
38642 const void *buffer, size_t size, int flags)
38644 static const struct xattr_handler
38645 xops __attribute__ ((unused)) = {
38662 cat - <<_ACEOF >conftest.h
38667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38668 echo "obj-m := conftest.o" >build/Makefile
38670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38671 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38673 (eval $ac_try) 2>&5
38675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
38683 { $as_echo "$as_me:$LINENO: result: yes" >&5
38684 $as_echo "yes" >&6; }
38686 cat >>confdefs.h <<\_ACEOF
38687 #define HAVE_XATTR_SET_HANDLER 1
38692 $as_echo "$as_me: failed program was:" >&5
38693 sed 's
/^
/|
/' conftest.$ac_ext >&5
38695 { $as_echo "$as_me:$LINENO: result: no" >&5
38696 $as_echo "no" >&6; }
38697 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
38698 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
38701 cat confdefs.h - <<_ACEOF >conftest.c
38704 cat confdefs.h >>conftest.$ac_ext
38705 cat >>conftest.$ac_ext <<_ACEOF
38706 /* end confdefs.h. */
38709 #include <linux/xattr.h>
38711 int set(struct dentry *dentry, const char *name,
38712 const void *buffer, size_t size, int flags,
38713 int handler_flags) { return 0; }
38714 static const struct xattr_handler
38715 xops __attribute__ ((unused)) = {
38732 cat - <<_ACEOF >conftest.h
38737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38738 echo "obj-m := conftest.o" >build/Makefile
38740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38741 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38753 { $as_echo "$as_me:$LINENO: result: yes" >&5
38754 $as_echo "yes" >&6; }
38756 cat >>confdefs.h <<\_ACEOF
38757 #define HAVE_XATTR_SET_DENTRY 1
38762 $as_echo "$as_me: failed program was:" >&5
38763 sed 's
/^
/|
/' conftest.$ac_ext >&5
38765 { $as_echo "$as_me:$LINENO: result: no" >&5
38766 $as_echo "no" >&6; }
38767 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
38768 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
38771 cat confdefs.h - <<_ACEOF >conftest.c
38774 cat confdefs.h >>conftest.$ac_ext
38775 cat >>conftest.$ac_ext <<_ACEOF
38776 /* end confdefs.h. */
38779 #include <linux/xattr.h>
38781 int set(struct inode *ip, const char *name,
38782 const void *buffer, size_t size, int flags)
38784 static const struct xattr_handler
38785 xops __attribute__ ((unused)) = {
38802 cat - <<_ACEOF >conftest.h
38807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38808 echo "obj-m := conftest.o" >build/Makefile
38810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38811 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38813 (eval $ac_try) 2>&5
38815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818 (eval $ac_try) 2>&5
38820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); }; }; then
38823 { $as_echo "$as_me:$LINENO: result: yes" >&5
38824 $as_echo "yes" >&6; }
38826 cat >>confdefs.h <<\_ACEOF
38827 #define HAVE_XATTR_SET_INODE 1
38832 $as_echo "$as_me: failed program was:" >&5
38833 sed 's
/^
/|
/' conftest.$ac_ext >&5
38835 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38836 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38837 { (exit 1); exit 1; }; }
38872 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
38873 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
38876 cat confdefs.h - <<_ACEOF >conftest.c
38879 cat confdefs.h >>conftest.$ac_ext
38880 cat >>conftest.$ac_ext <<_ACEOF
38881 /* end confdefs.h. */
38884 #include <linux/xattr.h>
38886 bool list(struct dentry *dentry) { return 0; }
38887 static const struct xattr_handler
38888 xops __attribute__ ((unused)) = {
38905 cat - <<_ACEOF >conftest.h
38910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38911 echo "obj-m := conftest.o" >build/Makefile
38913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38914 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916 (eval $ac_try) 2>&5
38918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921 (eval $ac_try) 2>&5
38923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; }; then
38926 { $as_echo "$as_me:$LINENO: result: yes" >&5
38927 $as_echo "yes" >&6; }
38929 cat >>confdefs.h <<\_ACEOF
38930 #define HAVE_XATTR_LIST_SIMPLE 1
38935 $as_echo "$as_me: failed program was:" >&5
38936 sed 's
/^
/|
/' conftest.$ac_ext >&5
38938 { $as_echo "$as_me:$LINENO: result: no" >&5
38939 $as_echo "no" >&6; }
38940 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
38941 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
38944 cat confdefs.h - <<_ACEOF >conftest.c
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h. */
38952 #include <linux/xattr.h>
38954 size_t list(const struct xattr_handler *handler,
38955 struct dentry *dentry, char *list, size_t list_size,
38956 const char *name, size_t name_len) { return 0; }
38957 static const struct xattr_handler
38958 xops __attribute__ ((unused)) = {
38975 cat - <<_ACEOF >conftest.h
38980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38981 echo "obj-m := conftest.o" >build/Makefile
38983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38984 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38986 (eval $ac_try) 2>&5
38988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38991 (eval $ac_try) 2>&5
38993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994 (exit $ac_status); }; }; then
38996 { $as_echo "$as_me:$LINENO: result: yes" >&5
38997 $as_echo "yes" >&6; }
38999 cat >>confdefs.h <<\_ACEOF
39000 #define HAVE_XATTR_LIST_HANDLER 1
39005 $as_echo "$as_me: failed program was:" >&5
39006 sed 's
/^
/|
/' conftest.$ac_ext >&5
39008 { $as_echo "$as_me:$LINENO: result: no" >&5
39009 $as_echo "no" >&6; }
39010 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
39011 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
39014 cat confdefs.h - <<_ACEOF >conftest.c
39017 cat confdefs.h >>conftest.$ac_ext
39018 cat >>conftest.$ac_ext <<_ACEOF
39019 /* end confdefs.h. */
39022 #include <linux/xattr.h>
39024 size_t list(struct dentry *dentry,
39025 char *list, size_t list_size,
39026 const char *name, size_t name_len,
39027 int handler_flags) { return 0; }
39028 static const struct xattr_handler
39029 xops __attribute__ ((unused)) = {
39046 cat - <<_ACEOF >conftest.h
39051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39052 echo "obj-m := conftest.o" >build/Makefile
39054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39055 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062 (eval $ac_try) 2>&5
39064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; }; then
39067 { $as_echo "$as_me:$LINENO: result: yes" >&5
39068 $as_echo "yes" >&6; }
39070 cat >>confdefs.h <<\_ACEOF
39071 #define HAVE_XATTR_LIST_DENTRY 1
39076 $as_echo "$as_me: failed program was:" >&5
39077 sed 's
/^
/|
/' conftest.$ac_ext >&5
39079 { $as_echo "$as_me:$LINENO: result: no" >&5
39080 $as_echo "no" >&6; }
39081 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
39082 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
39085 cat confdefs.h - <<_ACEOF >conftest.c
39088 cat confdefs.h >>conftest.$ac_ext
39089 cat >>conftest.$ac_ext <<_ACEOF
39090 /* end confdefs.h. */
39093 #include <linux/xattr.h>
39095 size_t list(struct inode *ip, char *lst,
39096 size_t list_size, const char *name,
39097 size_t name_len) { return 0; }
39098 static const struct xattr_handler
39099 xops __attribute__ ((unused)) = {
39116 cat - <<_ACEOF >conftest.h
39121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39122 echo "obj-m := conftest.o" >build/Makefile
39124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39125 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 (eval $ac_try) 2>&5
39129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132 (eval $ac_try) 2>&5
39134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; }; then
39137 { $as_echo "$as_me:$LINENO: result: yes" >&5
39138 $as_echo "yes" >&6; }
39140 cat >>confdefs.h <<\_ACEOF
39141 #define HAVE_XATTR_LIST_INODE 1
39146 $as_echo "$as_me: failed program was:" >&5
39147 sed 's
/^
/|
/' conftest.$ac_ext >&5
39149 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
39150 $as_echo "$as_me: error: no; please file a bug report" >&2;}
39151 { (exit 1); exit 1; }; }
39186 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
39187 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
39190 cat confdefs.h - <<_ACEOF >conftest.c
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h. */
39198 #include <linux/fs.h>
39204 struct inode *ip = NULL;
39205 (void) inode_owner_or_capable(ip);
39215 cat - <<_ACEOF >conftest.h
39220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39221 echo "obj-m := conftest.o" >build/Makefile
39223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39224 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39226 (eval $ac_try) 2>&5
39228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39236 { $as_echo "$as_me:$LINENO: result: yes" >&5
39237 $as_echo "yes" >&6; }
39239 cat >>confdefs.h <<\_ACEOF
39240 #define HAVE_INODE_OWNER_OR_CAPABLE 1
39245 $as_echo "$as_me: failed program was:" >&5
39246 sed 's
/^
/|
/' conftest.$ac_ext >&5
39248 { $as_echo "$as_me:$LINENO: result: no" >&5
39249 $as_echo "no" >&6; }
39250 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
39251 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
39254 cat confdefs.h - <<_ACEOF >conftest.c
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h. */
39262 #include <linux/fs.h>
39263 #include <linux/sched.h>
39269 struct inode *ip = NULL;
39270 (void) is_owner_or_cap(ip);
39280 cat - <<_ACEOF >conftest.h
39285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39286 echo "obj-m := conftest.o" >build/Makefile
39288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39289 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296 (eval $ac_try) 2>&5
39298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; }; then
39301 { $as_echo "$as_me:$LINENO: result: yes" >&5
39302 $as_echo "yes" >&6; }
39304 cat >>confdefs.h <<\_ACEOF
39305 #define HAVE_IS_OWNER_OR_CAP 1
39310 $as_echo "$as_me: failed program was:" >&5
39311 sed 's
/^
/|
/' conftest.$ac_ext >&5
39313 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
39314 https://github.com/zfsonlinux/zfs/issues/new" >&5
39315 $as_echo "$as_me: error: no - Please file a bug report at
39316 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
39317 { (exit 1); exit 1; }; }
39336 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
39337 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
39340 cat confdefs.h - <<_ACEOF >conftest.c
39343 cat confdefs.h >>conftest.$ac_ext
39344 cat >>conftest.$ac_ext <<_ACEOF
39345 /* end confdefs.h. */
39348 #include <linux/cred.h>
39349 #include <linux/fs.h>
39350 #include <linux/posix_acl_xattr.h>
39356 posix_acl_from_xattr(&init_user_ns, NULL, 0);
39366 cat - <<_ACEOF >conftest.h
39371 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39372 echo "obj-m := conftest.o" >build/Makefile
39374 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39375 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377 (eval $ac_try) 2>&5
39379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39387 { $as_echo "$as_me:$LINENO: result: yes" >&5
39388 $as_echo "yes" >&6; }
39390 cat >>confdefs.h <<\_ACEOF
39391 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
39396 $as_echo "$as_me: failed program was:" >&5
39397 sed 's
/^
/|
/' conftest.$ac_ext >&5
39399 { $as_echo "$as_me:$LINENO: result: no" >&5
39400 $as_echo "no" >&6; }
39411 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
39412 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
39415 cat confdefs.h - <<_ACEOF >conftest.c
39418 cat confdefs.h >>conftest.$ac_ext
39419 cat >>conftest.$ac_ext <<_ACEOF
39420 /* end confdefs.h. */
39423 #include <linux/cred.h>
39424 #include <linux/fs.h>
39425 #include <linux/posix_acl.h>
39431 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39432 posix_acl_release(tmp);
39442 cat - <<_ACEOF >conftest.h
39447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39448 echo "obj-m := conftest.o" >build/Makefile
39450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39451 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39453 (eval $ac_try) 2>&5
39455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39458 (eval $ac_try) 2>&5
39460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); }; }; then
39463 { $as_echo "$as_me:$LINENO: result: yes" >&5
39464 $as_echo "yes" >&6; }
39466 cat >>confdefs.h <<\_ACEOF
39467 #define HAVE_POSIX_ACL_RELEASE 1
39471 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
39472 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
39475 cat confdefs.h - <<_ACEOF >conftest.c
39478 cat confdefs.h >>conftest.$ac_ext
39479 cat >>conftest.$ac_ext <<_ACEOF
39480 /* end confdefs.h. */
39483 #include <linux/module.h>
39484 #include <linux/cred.h>
39485 #include <linux/fs.h>
39486 #include <linux/posix_acl.h>
39488 MODULE_LICENSE("$ZFS_META_LICENSE");
39494 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39495 posix_acl_release(tmp);
39505 cat - <<_ACEOF >conftest.h
39510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39511 echo "obj-m := conftest.o" >build/Makefile
39513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39514 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39521 (eval $ac_try) 2>&5
39523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
39526 { $as_echo "$as_me:$LINENO: result: no" >&5
39527 $as_echo "no" >&6; }
39530 $as_echo "$as_me: failed program was:" >&5
39531 sed 's
/^
/|
/' conftest.$ac_ext >&5
39533 { $as_echo "$as_me:$LINENO: result: yes" >&5
39534 $as_echo "yes" >&6; }
39536 cat >>confdefs.h <<\_ACEOF
39537 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
39550 $as_echo "$as_me: failed program was:" >&5
39551 sed 's
/^
/|
/' conftest.$ac_ext >&5
39553 { $as_echo "$as_me:$LINENO: result: no" >&5
39554 $as_echo "no" >&6; }
39565 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
39566 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
39569 cat confdefs.h - <<_ACEOF >conftest.c
39572 cat confdefs.h >>conftest.$ac_ext
39573 cat >>conftest.$ac_ext <<_ACEOF
39574 /* end confdefs.h. */
39577 #include <linux/module.h>
39578 #include <linux/cred.h>
39579 #include <linux/fs.h>
39580 #include <linux/posix_acl.h>
39582 MODULE_LICENSE("$ZFS_META_LICENSE");
39588 struct inode *ip = NULL;
39589 struct posix_acl *acl = posix_acl_alloc(1, 0);
39590 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
39591 forget_cached_acl(ip, ACL_TYPE_ACCESS);
39601 cat - <<_ACEOF >conftest.h
39606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39607 echo "obj-m := conftest.o" >build/Makefile
39609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39610 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 (eval $ac_try) 2>&5
39614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39617 (eval $ac_try) 2>&5
39619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); }; }; then
39622 { $as_echo "$as_me:$LINENO: result: yes" >&5
39623 $as_echo "yes" >&6; }
39625 cat >>confdefs.h <<\_ACEOF
39626 #define HAVE_SET_CACHED_ACL_USABLE 1
39631 $as_echo "$as_me: failed program was:" >&5
39632 sed 's
/^
/|
/' conftest.$ac_ext >&5
39634 { $as_echo "$as_me:$LINENO: result: no" >&5
39635 $as_echo "no" >&6; }
39646 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
39647 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
39650 cat confdefs.h - <<_ACEOF >conftest.c
39653 cat confdefs.h >>conftest.$ac_ext
39654 cat >>conftest.$ac_ext <<_ACEOF
39655 /* end confdefs.h. */
39658 #include <linux/fs.h>
39659 #include <linux/posix_acl.h>
39665 posix_acl_chmod(NULL, 0, 0)
39675 cat - <<_ACEOF >conftest.h
39680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39681 echo "obj-m := conftest.o" >build/Makefile
39683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39684 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39686 (eval $ac_try) 2>&5
39688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; }; then
39696 { $as_echo "$as_me:$LINENO: result: yes" >&5
39697 $as_echo "yes" >&6; }
39699 cat >>confdefs.h <<\_ACEOF
39700 #define HAVE_POSIX_ACL_CHMOD 1
39705 $as_echo "$as_me: failed program was:" >&5
39706 sed 's
/^
/|
/' conftest.$ac_ext >&5
39708 { $as_echo "$as_me:$LINENO: result: no" >&5
39709 $as_echo "no" >&6; }
39719 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
39720 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
39723 cat confdefs.h - <<_ACEOF >conftest.c
39726 cat confdefs.h >>conftest.$ac_ext
39727 cat >>conftest.$ac_ext <<_ACEOF
39728 /* end confdefs.h. */
39731 #include <linux/fs.h>
39732 #include <linux/posix_acl.h>
39738 __posix_acl_chmod(NULL, 0, 0)
39748 cat - <<_ACEOF >conftest.h
39753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39754 echo "obj-m := conftest.o" >build/Makefile
39756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39757 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759 (eval $ac_try) 2>&5
39761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39764 (eval $ac_try) 2>&5
39766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); }; }; then
39769 { $as_echo "$as_me:$LINENO: result: yes" >&5
39770 $as_echo "yes" >&6; }
39772 cat >>confdefs.h <<\_ACEOF
39773 #define HAVE___POSIX_ACL_CHMOD 1
39778 $as_echo "$as_me: failed program was:" >&5
39779 sed 's
/^
/|
/' conftest.$ac_ext >&5
39781 { $as_echo "$as_me:$LINENO: result: no" >&5
39782 $as_echo "no" >&6; }
39793 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
39794 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
39797 cat confdefs.h - <<_ACEOF >conftest.c
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39805 #include <linux/fs.h>
39806 #include <linux/posix_acl.h>
39813 posix_acl_equiv_mode(NULL,&tmp);
39823 cat - <<_ACEOF >conftest.h
39828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39829 echo "obj-m := conftest.o" >build/Makefile
39831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39832 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39834 (eval $ac_try) 2>&5
39836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839 (eval $ac_try) 2>&5
39841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; }; then
39844 { $as_echo "$as_me:$LINENO: result: yes" >&5
39845 $as_echo "yes" >&6; }
39847 cat >>confdefs.h <<\_ACEOF
39848 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
39853 $as_echo "$as_me: failed program was:" >&5
39854 sed 's
/^
/|
/' conftest.$ac_ext >&5
39856 { $as_echo "$as_me:$LINENO: result: no" >&5
39857 $as_echo "no" >&6; }
39868 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
39869 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
39872 cat confdefs.h - <<_ACEOF >conftest.c
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h. */
39880 #include <linux/fs.h>
39881 #include <linux/posix_acl.h>
39887 struct user_namespace *user_ns = NULL;
39888 const struct posix_acl *acl = NULL;
39891 error = posix_acl_valid(user_ns, acl);
39901 cat - <<_ACEOF >conftest.h
39906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39907 echo "obj-m := conftest.o" >build/Makefile
39909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39910 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912 (eval $ac_try) 2>&5
39914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39922 { $as_echo "$as_me:$LINENO: result: yes" >&5
39923 $as_echo "yes" >&6; }
39925 cat >>confdefs.h <<\_ACEOF
39926 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
39931 $as_echo "$as_me: failed program was:" >&5
39932 sed 's
/^
/|
/' conftest.$ac_ext >&5
39934 { $as_echo "$as_me:$LINENO: result: no" >&5
39935 $as_echo "no" >&6; }
39946 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
39947 $as_echo_n "checking whether iops->permission() exists... " >&6; }
39950 cat confdefs.h - <<_ACEOF >conftest.c
39953 cat confdefs.h >>conftest.$ac_ext
39954 cat >>conftest.$ac_ext <<_ACEOF
39955 /* end confdefs.h. */
39958 #include <linux/fs.h>
39960 int permission_fn(struct inode *inode, int mask) { return 0; }
39962 static const struct inode_operations
39963 iops __attribute__ ((unused)) = {
39964 .permission = permission_fn,
39980 cat - <<_ACEOF >conftest.h
39985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39986 echo "obj-m := conftest.o" >build/Makefile
39988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39989 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; }; then
40001 { $as_echo "$as_me:$LINENO: result: yes" >&5
40002 $as_echo "yes" >&6; }
40004 cat >>confdefs.h <<\_ACEOF
40005 #define HAVE_PERMISSION 1
40010 $as_echo "$as_me: failed program was:" >&5
40011 sed 's
/^
/|
/' conftest.$ac_ext >&5
40013 { $as_echo "$as_me:$LINENO: result: no" >&5
40014 $as_echo "no" >&6; }
40025 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
40026 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
40029 cat confdefs.h - <<_ACEOF >conftest.c
40032 cat confdefs.h >>conftest.$ac_ext
40033 cat >>conftest.$ac_ext <<_ACEOF
40034 /* end confdefs.h. */
40037 #include <linux/fs.h>
40038 #include <linux/sched.h>
40040 int permission_fn(struct inode *inode, int mask,
40041 struct nameidata *nd) { return 0; }
40043 static const struct inode_operations
40044 iops __attribute__ ((unused)) = {
40045 .permission = permission_fn,
40061 cat - <<_ACEOF >conftest.h
40066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40067 echo "obj-m := conftest.o" >build/Makefile
40069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40070 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40072 (eval $ac_try) 2>&5
40074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40077 (eval $ac_try) 2>&5
40079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); }; }; then
40082 { $as_echo "$as_me:$LINENO: result: yes" >&5
40083 $as_echo "yes" >&6; }
40085 cat >>confdefs.h <<\_ACEOF
40086 #define HAVE_PERMISSION 1
40090 cat >>confdefs.h <<\_ACEOF
40091 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
40096 $as_echo "$as_me: failed program was:" >&5
40097 sed 's
/^
/|
/' conftest.$ac_ext >&5
40099 { $as_echo "$as_me:$LINENO: result: no" >&5
40100 $as_echo "no" >&6; }
40111 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
40112 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
40115 cat confdefs.h - <<_ACEOF >conftest.c
40118 cat confdefs.h >>conftest.$ac_ext
40119 cat >>conftest.$ac_ext <<_ACEOF
40120 /* end confdefs.h. */
40123 #include <linux/fs.h>
40125 int check_acl_fn(struct inode *inode, int mask) { return 0; }
40127 static const struct inode_operations
40128 iops __attribute__ ((unused)) = {
40129 .check_acl = check_acl_fn,
40145 cat - <<_ACEOF >conftest.h
40150 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40151 echo "obj-m := conftest.o" >build/Makefile
40153 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40154 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40161 (eval $ac_try) 2>&5
40163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); }; }; then
40166 { $as_echo "$as_me:$LINENO: result: yes" >&5
40167 $as_echo "yes" >&6; }
40169 cat >>confdefs.h <<\_ACEOF
40170 #define HAVE_CHECK_ACL 1
40175 $as_echo "$as_me: failed program was:" >&5
40176 sed 's
/^
/|
/' conftest.$ac_ext >&5
40178 { $as_echo "$as_me:$LINENO: result: no" >&5
40179 $as_echo "no" >&6; }
40190 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
40191 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
40194 cat confdefs.h - <<_ACEOF >conftest.c
40197 cat confdefs.h >>conftest.$ac_ext
40198 cat >>conftest.$ac_ext <<_ACEOF
40199 /* end confdefs.h. */
40202 #include <linux/fs.h>
40204 int check_acl_fn(struct inode *inode, int mask,
40205 unsigned int flags) { return 0; }
40207 static const struct inode_operations
40208 iops __attribute__ ((unused)) = {
40209 .check_acl = check_acl_fn,
40225 cat - <<_ACEOF >conftest.h
40230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40231 echo "obj-m := conftest.o" >build/Makefile
40233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40234 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 (eval $ac_try) 2>&5
40243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40246 { $as_echo "$as_me:$LINENO: result: yes" >&5
40247 $as_echo "yes" >&6; }
40249 cat >>confdefs.h <<\_ACEOF
40250 #define HAVE_CHECK_ACL 1
40254 cat >>confdefs.h <<\_ACEOF
40255 #define HAVE_CHECK_ACL_WITH_FLAGS 1
40260 $as_echo "$as_me: failed program was:" >&5
40261 sed 's
/^
/|
/' conftest.$ac_ext >&5
40263 { $as_echo "$as_me:$LINENO: result: no" >&5
40264 $as_echo "no" >&6; }
40275 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
40276 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
40279 cat confdefs.h - <<_ACEOF >conftest.c
40282 cat confdefs.h >>conftest.$ac_ext
40283 cat >>conftest.$ac_ext <<_ACEOF
40284 /* end confdefs.h. */
40287 #include <linux/fs.h>
40289 struct posix_acl *get_acl_fn(struct inode *inode, int type)
40292 static const struct inode_operations
40293 iops __attribute__ ((unused)) = {
40294 .get_acl = get_acl_fn,
40310 cat - <<_ACEOF >conftest.h
40315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40316 echo "obj-m := conftest.o" >build/Makefile
40318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40319 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; }; then
40331 { $as_echo "$as_me:$LINENO: result: yes" >&5
40332 $as_echo "yes" >&6; }
40334 cat >>confdefs.h <<\_ACEOF
40335 #define HAVE_GET_ACL 1
40340 $as_echo "$as_me: failed program was:" >&5
40341 sed 's
/^
/|
/' conftest.$ac_ext >&5
40343 { $as_echo "$as_me:$LINENO: result: no" >&5
40344 $as_echo "no" >&6; }
40355 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
40356 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
40359 cat confdefs.h - <<_ACEOF >conftest.c
40362 cat confdefs.h >>conftest.$ac_ext
40363 cat >>conftest.$ac_ext <<_ACEOF
40364 /* end confdefs.h. */
40367 #include <linux/fs.h>
40369 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
40372 static const struct inode_operations
40373 iops __attribute__ ((unused)) = {
40374 .set_acl = set_acl_fn,
40390 cat - <<_ACEOF >conftest.h
40395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40396 echo "obj-m := conftest.o" >build/Makefile
40398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40399 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40406 (eval $ac_try) 2>&5
40408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
40411 { $as_echo "$as_me:$LINENO: result: yes" >&5
40412 $as_echo "yes" >&6; }
40414 cat >>confdefs.h <<\_ACEOF
40415 #define HAVE_SET_ACL 1
40420 $as_echo "$as_me: failed program was:" >&5
40421 sed 's
/^
/|
/' conftest.$ac_ext >&5
40423 { $as_echo "$as_me:$LINENO: result: no" >&5
40424 $as_echo "no" >&6; }
40436 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
40437 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
40440 cat confdefs.h - <<_ACEOF >conftest.c
40443 cat confdefs.h >>conftest.$ac_ext
40444 cat >>conftest.$ac_ext <<_ACEOF
40445 /* end confdefs.h. */
40448 #include <linux/fs.h>
40451 const struct path *p, struct kstat *k,
40452 u32 request_mask, unsigned int query_flags)
40455 static const struct inode_operations
40456 iops __attribute__ ((unused)) = {
40457 .getattr = test_getattr,
40473 cat - <<_ACEOF >conftest.h
40478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40479 echo "obj-m := conftest.o" >build/Makefile
40481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40482 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40484 (eval $ac_try) 2>&5
40486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40489 (eval $ac_try) 2>&5
40491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); }; }; then
40494 { $as_echo "$as_me:$LINENO: result: yes" >&5
40495 $as_echo "yes" >&6; }
40497 cat >>confdefs.h <<\_ACEOF
40498 #define HAVE_PATH_IOPS_GETATTR 1
40503 $as_echo "$as_me: failed program was:" >&5
40504 sed 's
/^
/|
/' conftest.$ac_ext >&5
40506 { $as_echo "$as_me:$LINENO: result: no" >&5
40507 $as_echo "no" >&6; }
40518 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
40519 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
40522 cat confdefs.h - <<_ACEOF >conftest.c
40525 cat confdefs.h >>conftest.$ac_ext
40526 cat >>conftest.$ac_ext <<_ACEOF
40527 /* end confdefs.h. */
40530 #include <linux/fs.h>
40533 struct vfsmount *mnt, struct dentry *d,
40537 static const struct inode_operations
40538 iops __attribute__ ((unused)) = {
40539 .getattr = test_getattr,
40555 cat - <<_ACEOF >conftest.h
40560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40561 echo "obj-m := conftest.o" >build/Makefile
40563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40564 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40566 (eval $ac_try) 2>&5
40568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; }; then
40576 { $as_echo "$as_me:$LINENO: result: yes" >&5
40577 $as_echo "yes" >&6; }
40579 cat >>confdefs.h <<\_ACEOF
40580 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
40585 $as_echo "$as_me: failed program was:" >&5
40586 sed 's
/^
/|
/' conftest.$ac_ext >&5
40588 { $as_echo "$as_me:$LINENO: result: no" >&5
40589 $as_echo "no" >&6; }
40601 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
40602 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
40605 cat confdefs.h - <<_ACEOF >conftest.c
40608 cat confdefs.h >>conftest.$ac_ext
40609 cat >>conftest.$ac_ext <<_ACEOF
40610 /* end confdefs.h. */
40613 #include <linux/fs.h>
40619 struct inode inode;
40620 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
40630 cat - <<_ACEOF >conftest.h
40635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40636 echo "obj-m := conftest.o" >build/Makefile
40638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40639 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
40643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
40651 { $as_echo "$as_me:$LINENO: result: yes" >&5
40652 $as_echo "yes" >&6; }
40654 cat >>confdefs.h <<\_ACEOF
40655 #define HAVE_INODE_SET_FLAGS 1
40660 $as_echo "$as_me: failed program was:" >&5
40661 sed 's
/^
/|
/' conftest.$ac_ext >&5
40663 { $as_echo "$as_me:$LINENO: result: no" >&5
40664 $as_echo "no" >&6; }
40675 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
40676 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
40679 cat confdefs.h - <<_ACEOF >conftest.c
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h. */
40687 #include <linux/iversion.h>
40693 struct inode inode;
40694 inode_set_iversion(&inode, 1);
40704 cat - <<_ACEOF >conftest.h
40709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40710 echo "obj-m := conftest.o" >build/Makefile
40712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40713 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40715 (eval $ac_try) 2>&5
40717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40720 (eval $ac_try) 2>&5
40722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); }; }; then
40725 { $as_echo "$as_me:$LINENO: result: yes" >&5
40726 $as_echo "yes" >&6; }
40728 cat >>confdefs.h <<\_ACEOF
40729 #define HAVE_INODE_SET_IVERSION 1
40734 $as_echo "$as_me: failed program was:" >&5
40735 sed 's
/^
/|
/' conftest.$ac_ext >&5
40737 { $as_echo "$as_me:$LINENO: result: no" >&5
40738 $as_echo "no" >&6; }
40749 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
40750 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
40753 cat confdefs.h - <<_ACEOF >conftest.c
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h. */
40761 #include <linux/fs.h>
40767 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
40777 cat - <<_ACEOF >conftest.h
40782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40783 echo "obj-m := conftest.o" >build/Makefile
40785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40786 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788 (eval $ac_try) 2>&5
40790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40793 (eval $ac_try) 2>&5
40795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); }; }; then
40798 { $as_echo "$as_me:$LINENO: result: yes" >&5
40799 $as_echo "yes" >&6; }
40801 cat >>confdefs.h <<\_ACEOF
40802 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
40807 $as_echo "$as_me: failed program was:" >&5
40808 sed 's
/^
/|
/' conftest.$ac_ext >&5
40810 { $as_echo "$as_me:$LINENO: result: no" >&5
40811 $as_echo "no" >&6; }
40822 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
40823 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
40827 cat confdefs.h - <<_ACEOF >conftest.c
40830 cat confdefs.h >>conftest.$ac_ext
40831 cat >>conftest.$ac_ext <<_ACEOF
40832 /* end confdefs.h. */
40835 #include <linux/fs.h>
40837 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
40838 static struct super_operations sops __attribute__ ((unused)) = {
40839 .show_options = show_options,
40855 cat - <<_ACEOF >conftest.h
40860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40861 echo "obj-m := conftest.o" >build/Makefile
40863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40864 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
40868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871 (eval $ac_try) 2>&5
40873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; }; then
40876 { $as_echo "$as_me:$LINENO: result: yes" >&5
40877 $as_echo "yes" >&6; }
40879 cat >>confdefs.h <<\_ACEOF
40880 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
40885 $as_echo "$as_me: failed program was:" >&5
40886 sed 's
/^
/|
/' conftest.$ac_ext >&5
40888 { $as_echo "$as_me:$LINENO: result: no" >&5
40889 $as_echo "no" >&6; }
40900 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
40901 $as_echo_n "checking whether file_inode() is available... " >&6; }
40904 cat confdefs.h - <<_ACEOF >conftest.c
40907 cat confdefs.h >>conftest.$ac_ext
40908 cat >>conftest.$ac_ext <<_ACEOF
40909 /* end confdefs.h. */
40912 #include <linux/fs.h>
40918 struct file *f = NULL;
40929 cat - <<_ACEOF >conftest.h
40934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40935 echo "obj-m := conftest.o" >build/Makefile
40937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40938 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40940 (eval $ac_try) 2>&5
40942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945 (eval $ac_try) 2>&5
40947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; }; then
40950 { $as_echo "$as_me:$LINENO: result: yes" >&5
40951 $as_echo "yes" >&6; }
40953 cat >>confdefs.h <<\_ACEOF
40954 #define HAVE_FILE_INODE 1
40959 $as_echo "$as_me: failed program was:" >&5
40960 sed 's
/^
/|
/' conftest.$ac_ext >&5
40962 { $as_echo "$as_me:$LINENO: result: no" >&5
40963 $as_echo "no" >&6; }
40974 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
40975 $as_echo_n "checking whether file_dentry() is available... " >&6; }
40978 cat confdefs.h - <<_ACEOF >conftest.c
40981 cat confdefs.h >>conftest.$ac_ext
40982 cat >>conftest.$ac_ext <<_ACEOF
40983 /* end confdefs.h. */
40986 #include <linux/fs.h>
40992 struct file *f = NULL;
41003 cat - <<_ACEOF >conftest.h
41008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41009 echo "obj-m := conftest.o" >build/Makefile
41011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41012 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014 (eval $ac_try) 2>&5
41016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019 (eval $ac_try) 2>&5
41021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; }; then
41024 { $as_echo "$as_me:$LINENO: result: yes" >&5
41025 $as_echo "yes" >&6; }
41027 cat >>confdefs.h <<\_ACEOF
41028 #define HAVE_FILE_DENTRY 1
41033 $as_echo "$as_me: failed program was:" >&5
41034 sed 's
/^
/|
/' conftest.$ac_ext >&5
41036 { $as_echo "$as_me:$LINENO: result: no" >&5
41037 $as_echo "no" >&6; }
41048 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
41049 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
41053 cat confdefs.h - <<_ACEOF >conftest.c
41056 cat confdefs.h >>conftest.$ac_ext
41057 cat >>conftest.$ac_ext <<_ACEOF
41058 /* end confdefs.h. */
41061 #include <linux/fs.h>
41063 int test_fsync(struct file *f, struct dentry *dentry, int x)
41066 static const struct file_operations
41067 fops __attribute__ ((unused)) = {
41068 .fsync = test_fsync,
41084 cat - <<_ACEOF >conftest.h
41089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41090 echo "obj-m := conftest.o" >build/Makefile
41092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41093 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41095 (eval $ac_try) 2>&5
41097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41100 (eval $ac_try) 2>&5
41102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); }; }; then
41105 { $as_echo "$as_me:$LINENO: result: dentry" >&5
41106 $as_echo "dentry" >&6; }
41108 cat >>confdefs.h <<\_ACEOF
41109 #define HAVE_FSYNC_WITH_DENTRY 1
41114 $as_echo "$as_me: failed program was:" >&5
41115 sed 's
/^
/|
/' conftest.$ac_ext >&5
41129 cat confdefs.h - <<_ACEOF >conftest.c
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h. */
41137 #include <linux/fs.h>
41139 int test_fsync(struct file *f, int x) { return 0; }
41141 static const struct file_operations
41142 fops __attribute__ ((unused)) = {
41143 .fsync = test_fsync,
41159 cat - <<_ACEOF >conftest.h
41164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41165 echo "obj-m := conftest.o" >build/Makefile
41167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41168 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41170 (eval $ac_try) 2>&5
41172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175 (eval $ac_try) 2>&5
41177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); }; }; then
41180 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
41181 $as_echo "no dentry" >&6; }
41183 cat >>confdefs.h <<\_ACEOF
41184 #define HAVE_FSYNC_WITHOUT_DENTRY 1
41189 $as_echo "$as_me: failed program was:" >&5
41190 sed 's
/^
/|
/' conftest.$ac_ext >&5
41204 cat confdefs.h - <<_ACEOF >conftest.c
41207 cat confdefs.h >>conftest.$ac_ext
41208 cat >>conftest.$ac_ext <<_ACEOF
41209 /* end confdefs.h. */
41212 #include <linux/fs.h>
41214 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
41217 static const struct file_operations
41218 fops __attribute__ ((unused)) = {
41219 .fsync = test_fsync,
41235 cat - <<_ACEOF >conftest.h
41240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41241 echo "obj-m := conftest.o" >build/Makefile
41243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41244 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246 (eval $ac_try) 2>&5
41248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41256 { $as_echo "$as_me:$LINENO: result: range" >&5
41257 $as_echo "range" >&6; }
41259 cat >>confdefs.h <<\_ACEOF
41260 #define HAVE_FSYNC_RANGE 1
41265 $as_echo "$as_me: failed program was:" >&5
41266 sed 's
/^
/|
/' conftest.$ac_ext >&5
41279 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
41280 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
41283 cat confdefs.h - <<_ACEOF >conftest.c
41286 cat confdefs.h >>conftest.$ac_ext
41287 cat >>conftest.$ac_ext <<_ACEOF
41288 /* end confdefs.h. */
41291 #include <linux/fs.h>
41292 void evict_inode (struct inode * t) { return; }
41293 static struct super_operations sops __attribute__ ((unused)) = {
41294 .evict_inode = evict_inode,
41310 cat - <<_ACEOF >conftest.h
41315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41316 echo "obj-m := conftest.o" >build/Makefile
41318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41319 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41321 (eval $ac_try) 2>&5
41323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41326 (eval $ac_try) 2>&5
41328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); }; }; then
41331 { $as_echo "$as_me:$LINENO: result: yes" >&5
41332 $as_echo "yes" >&6; }
41334 cat >>confdefs.h <<\_ACEOF
41335 #define HAVE_EVICT_INODE 1
41340 $as_echo "$as_me: failed program was:" >&5
41341 sed 's
/^
/|
/' conftest.$ac_ext >&5
41343 { $as_echo "$as_me:$LINENO: result: no" >&5
41344 $as_echo "no" >&6; }
41355 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
41356 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
41359 cat confdefs.h - <<_ACEOF >conftest.c
41362 cat confdefs.h >>conftest.$ac_ext
41363 cat >>conftest.$ac_ext <<_ACEOF
41364 /* end confdefs.h. */
41367 #include <linux/fs.h>
41369 void dirty_inode(struct inode *a, int b) { return; }
41371 static const struct super_operations
41372 sops __attribute__ ((unused)) = {
41373 .dirty_inode = dirty_inode,
41389 cat - <<_ACEOF >conftest.h
41394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41395 echo "obj-m := conftest.o" >build/Makefile
41397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41398 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41400 (eval $ac_try) 2>&5
41402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41405 (eval $ac_try) 2>&5
41407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408 (exit $ac_status); }; }; then
41410 { $as_echo "$as_me:$LINENO: result: yes" >&5
41411 $as_echo "yes" >&6; }
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
41419 $as_echo "$as_me: failed program was:" >&5
41420 sed 's
/^
/|
/' conftest.$ac_ext >&5
41422 { $as_echo "$as_me:$LINENO: result: no" >&5
41423 $as_echo "no" >&6; }
41434 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
41435 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
41438 cat confdefs.h - <<_ACEOF >conftest.c
41441 cat confdefs.h >>conftest.$ac_ext
41442 cat >>conftest.$ac_ext <<_ACEOF
41443 /* end confdefs.h. */
41446 #include <linux/fs.h>
41448 int nr_cached_objects(struct super_block *sb) { return 0; }
41450 static const struct super_operations
41451 sops __attribute__ ((unused)) = {
41452 .nr_cached_objects = nr_cached_objects,
41468 cat - <<_ACEOF >conftest.h
41473 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41474 echo "obj-m := conftest.o" >build/Makefile
41476 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41477 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41489 { $as_echo "$as_me:$LINENO: result: yes" >&5
41490 $as_echo "yes" >&6; }
41492 cat >>confdefs.h <<\_ACEOF
41493 #define HAVE_NR_CACHED_OBJECTS 1
41498 $as_echo "$as_me: failed program was:" >&5
41499 sed 's
/^
/|
/' conftest.$ac_ext >&5
41501 { $as_echo "$as_me:$LINENO: result: no" >&5
41502 $as_echo "no" >&6; }
41513 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
41514 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
41517 cat confdefs.h - <<_ACEOF >conftest.c
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h. */
41525 #include <linux/fs.h>
41527 void free_cached_objects(struct super_block *sb, int x)
41530 static const struct super_operations
41531 sops __attribute__ ((unused)) = {
41532 .free_cached_objects = free_cached_objects,
41548 cat - <<_ACEOF >conftest.h
41553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41554 echo "obj-m := conftest.o" >build/Makefile
41556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41557 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; }; then
41569 { $as_echo "$as_me:$LINENO: result: yes" >&5
41570 $as_echo "yes" >&6; }
41572 cat >>confdefs.h <<\_ACEOF
41573 #define HAVE_FREE_CACHED_OBJECTS 1
41578 $as_echo "$as_me: failed program was:" >&5
41579 sed 's
/^
/|
/' conftest.$ac_ext >&5
41581 { $as_echo "$as_me:$LINENO: result: no" >&5
41582 $as_echo "no" >&6; }
41594 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
41595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
41598 cat confdefs.h - <<_ACEOF >conftest.c
41601 cat confdefs.h >>conftest.$ac_ext
41602 cat >>conftest.$ac_ext <<_ACEOF
41603 /* end confdefs.h. */
41606 #include <linux/fs.h>
41608 long test_fallocate(struct file *file, int mode,
41609 loff_t offset, loff_t len) { return 0; }
41611 static const struct file_operations
41612 fops __attribute__ ((unused)) = {
41613 .fallocate = test_fallocate,
41629 cat - <<_ACEOF >conftest.h
41634 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41635 echo "obj-m := conftest.o" >build/Makefile
41637 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41638 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640 (eval $ac_try) 2>&5
41642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41645 (eval $ac_try) 2>&5
41647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); }; }; then
41650 { $as_echo "$as_me:$LINENO: result: yes" >&5
41651 $as_echo "yes" >&6; }
41653 cat >>confdefs.h <<\_ACEOF
41654 #define HAVE_FILE_FALLOCATE 1
41659 $as_echo "$as_me: failed program was:" >&5
41660 sed 's
/^
/|
/' conftest.$ac_ext >&5
41662 { $as_echo "$as_me:$LINENO: result: no" >&5
41663 $as_echo "no" >&6; }
41674 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
41675 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
41678 cat confdefs.h - <<_ACEOF >conftest.c
41681 cat confdefs.h >>conftest.$ac_ext
41682 cat >>conftest.$ac_ext <<_ACEOF
41683 /* end confdefs.h. */
41686 #include <linux/fs.h>
41688 long test_fallocate(struct inode *inode, int mode,
41689 loff_t offset, loff_t len) { return 0; }
41691 static const struct inode_operations
41692 fops __attribute__ ((unused)) = {
41693 .fallocate = test_fallocate,
41709 cat - <<_ACEOF >conftest.h
41714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41715 echo "obj-m := conftest.o" >build/Makefile
41717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41718 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41720 (eval $ac_try) 2>&5
41722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
41730 { $as_echo "$as_me:$LINENO: result: yes" >&5
41731 $as_echo "yes" >&6; }
41733 cat >>confdefs.h <<\_ACEOF
41734 #define HAVE_INODE_FALLOCATE 1
41739 $as_echo "$as_me: failed program was:" >&5
41740 sed 's
/^
/|
/' conftest.$ac_ext >&5
41742 { $as_echo "$as_me:$LINENO: result: no" >&5
41743 $as_echo "no" >&6; }
41755 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
41756 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
41759 cat confdefs.h - <<_ACEOF >conftest.c
41762 cat confdefs.h >>conftest.$ac_ext
41763 cat >>conftest.$ac_ext <<_ACEOF
41764 /* end confdefs.h. */
41767 #include <linux/fs.h>
41769 static const struct file_operations
41770 fops __attribute__ ((unused)) = {
41787 cat - <<_ACEOF >conftest.h
41792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41793 echo "obj-m := conftest.o" >build/Makefile
41795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41796 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41798 (eval $ac_try) 2>&5
41800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41803 (eval $ac_try) 2>&5
41805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41806 (exit $ac_status); }; }; then
41808 { $as_echo "$as_me:$LINENO: result: yes" >&5
41809 $as_echo "yes" >&6; }
41811 cat >>confdefs.h <<\_ACEOF
41812 #define HAVE_FILE_AIO_FSYNC 1
41817 $as_echo "$as_me: failed program was:" >&5
41818 sed 's
/^
/|
/' conftest.$ac_ext >&5
41820 { $as_echo "$as_me:$LINENO: result: no" >&5
41821 $as_echo "no" >&6; }
41832 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
41833 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
41836 cat confdefs.h - <<_ACEOF >conftest.c
41839 cat confdefs.h >>conftest.$ac_ext
41840 cat >>conftest.$ac_ext <<_ACEOF
41841 /* end confdefs.h. */
41844 #include <linux/fs.h>
41846 int mkdir(struct inode *inode, struct dentry *dentry,
41847 umode_t umode) { return 0; }
41849 static const struct inode_operations
41850 iops __attribute__ ((unused)) = {
41867 cat - <<_ACEOF >conftest.h
41872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41873 echo "obj-m := conftest.o" >build/Makefile
41875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41876 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41878 (eval $ac_try) 2>&5
41880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41883 (eval $ac_try) 2>&5
41885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41886 (exit $ac_status); }; }; then
41888 { $as_echo "$as_me:$LINENO: result: yes" >&5
41889 $as_echo "yes" >&6; }
41891 cat >>confdefs.h <<\_ACEOF
41892 #define HAVE_MKDIR_UMODE_T 1
41897 $as_echo "$as_me: failed program was:" >&5
41898 sed 's
/^
/|
/' conftest.$ac_ext >&5
41900 { $as_echo "$as_me:$LINENO: result: no" >&5
41901 $as_echo "no" >&6; }
41912 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
41913 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
41916 cat confdefs.h - <<_ACEOF >conftest.c
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h. */
41924 #include <linux/fs.h>
41925 #include <linux/sched.h>
41927 struct dentry *inode_lookup(struct inode *inode,
41928 struct dentry *dentry, struct nameidata *nidata)
41931 static const struct inode_operations iops
41932 __attribute__ ((unused)) = {
41933 .lookup = inode_lookup,
41949 cat - <<_ACEOF >conftest.h
41954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41955 echo "obj-m := conftest.o" >build/Makefile
41957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41958 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41960 (eval $ac_try) 2>&5
41962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965 (eval $ac_try) 2>&5
41967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; }; then
41970 { $as_echo "$as_me:$LINENO: result: yes" >&5
41971 $as_echo "yes" >&6; }
41973 cat >>confdefs.h <<\_ACEOF
41974 #define HAVE_LOOKUP_NAMEIDATA 1
41979 $as_echo "$as_me: failed program was:" >&5
41980 sed 's
/^
/|
/' conftest.$ac_ext >&5
41982 { $as_echo "$as_me:$LINENO: result: no" >&5
41983 $as_echo "no" >&6; }
41994 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
41995 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
41998 cat confdefs.h - <<_ACEOF >conftest.c
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42006 #include <linux/fs.h>
42007 #include <linux/sched.h>
42009 #ifdef HAVE_MKDIR_UMODE_T
42010 int inode_create(struct inode *inode ,struct dentry *dentry,
42011 umode_t umode, struct nameidata *nidata) { return 0; }
42013 int inode_create(struct inode *inode,struct dentry *dentry,
42014 int umode, struct nameidata * nidata) { return 0; }
42017 static const struct inode_operations
42018 iops __attribute__ ((unused)) = {
42019 .create = inode_create,
42035 cat - <<_ACEOF >conftest.h
42040 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42041 echo "obj-m := conftest.o" >build/Makefile
42043 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42044 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046 (eval $ac_try) 2>&5
42048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42051 (eval $ac_try) 2>&5
42053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); }; }; then
42056 { $as_echo "$as_me:$LINENO: result: yes" >&5
42057 $as_echo "yes" >&6; }
42059 cat >>confdefs.h <<\_ACEOF
42060 #define HAVE_CREATE_NAMEIDATA 1
42065 $as_echo "$as_me: failed program was:" >&5
42066 sed 's
/^
/|
/' conftest.$ac_ext >&5
42068 { $as_echo "$as_me:$LINENO: result: no" >&5
42069 $as_echo "no" >&6; }
42080 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
42081 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
42084 cat confdefs.h - <<_ACEOF >conftest.c
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h. */
42092 #include <linux/fs.h>
42093 const char *get_link(struct dentry *de, struct inode *ip,
42094 struct delayed_call *done) { return "symlink"; }
42095 static struct inode_operations
42096 iops __attribute__ ((unused)) = {
42097 .get_link = get_link,
42113 cat - <<_ACEOF >conftest.h
42118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42119 echo "obj-m := conftest.o" >build/Makefile
42121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42122 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42124 (eval $ac_try) 2>&5
42126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42129 (eval $ac_try) 2>&5
42131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132 (exit $ac_status); }; }; then
42134 { $as_echo "$as_me:$LINENO: result: yes" >&5
42135 $as_echo "yes" >&6; }
42137 cat >>confdefs.h <<\_ACEOF
42138 #define HAVE_GET_LINK_DELAYED 1
42143 $as_echo "$as_me: failed program was:" >&5
42144 sed 's
/^
/|
/' conftest.$ac_ext >&5
42146 { $as_echo "$as_me:$LINENO: result: no" >&5
42147 $as_echo "no" >&6; }
42148 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
42149 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
42152 cat confdefs.h - <<_ACEOF >conftest.c
42155 cat confdefs.h >>conftest.$ac_ext
42156 cat >>conftest.$ac_ext <<_ACEOF
42157 /* end confdefs.h. */
42160 #include <linux/fs.h>
42161 const char *get_link(struct dentry *de, struct
42162 inode *ip, void **cookie) { return "symlink"; }
42163 static struct inode_operations
42164 iops __attribute__ ((unused)) = {
42165 .get_link = get_link,
42181 cat - <<_ACEOF >conftest.h
42186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42187 echo "obj-m := conftest.o" >build/Makefile
42189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42190 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42192 (eval $ac_try) 2>&5
42194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42197 (eval $ac_try) 2>&5
42199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; }; then
42202 { $as_echo "$as_me:$LINENO: result: yes" >&5
42203 $as_echo "yes" >&6; }
42205 cat >>confdefs.h <<\_ACEOF
42206 #define HAVE_GET_LINK_COOKIE 1
42211 $as_echo "$as_me: failed program was:" >&5
42212 sed 's
/^
/|
/' conftest.$ac_ext >&5
42214 { $as_echo "$as_me:$LINENO: result: no" >&5
42215 $as_echo "no" >&6; }
42217 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
42218 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
42221 cat confdefs.h - <<_ACEOF >conftest.c
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h. */
42229 #include <linux/fs.h>
42230 const char *follow_link(struct dentry *de,
42231 void **cookie) { return "symlink"; }
42232 static struct inode_operations
42233 iops __attribute__ ((unused)) = {
42234 .follow_link = follow_link,
42250 cat - <<_ACEOF >conftest.h
42255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42256 echo "obj-m := conftest.o" >build/Makefile
42258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42259 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42261 (eval $ac_try) 2>&5
42263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42266 (eval $ac_try) 2>&5
42268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); }; }; then
42271 { $as_echo "$as_me:$LINENO: result: yes" >&5
42272 $as_echo "yes" >&6; }
42274 cat >>confdefs.h <<\_ACEOF
42275 #define HAVE_FOLLOW_LINK_COOKIE 1
42280 $as_echo "$as_me: failed program was:" >&5
42281 sed 's
/^
/|
/' conftest.$ac_ext >&5
42283 { $as_echo "$as_me:$LINENO: result: no" >&5
42284 $as_echo "no" >&6; }
42285 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
42286 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
42289 cat confdefs.h - <<_ACEOF >conftest.c
42292 cat confdefs.h >>conftest.$ac_ext
42293 cat >>conftest.$ac_ext <<_ACEOF
42294 /* end confdefs.h. */
42297 #include <linux/fs.h>
42298 void *follow_link(struct dentry *de, struct
42299 nameidata *nd) { return (void *)NULL; }
42300 static struct inode_operations
42301 iops __attribute__ ((unused)) = {
42302 .follow_link = follow_link,
42318 cat - <<_ACEOF >conftest.h
42323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42324 echo "obj-m := conftest.o" >build/Makefile
42326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42327 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329 (eval $ac_try) 2>&5
42331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42334 (eval $ac_try) 2>&5
42336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42337 (exit $ac_status); }; }; then
42339 { $as_echo "$as_me:$LINENO: result: yes" >&5
42340 $as_echo "yes" >&6; }
42342 cat >>confdefs.h <<\_ACEOF
42343 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
42348 $as_echo "$as_me: failed program was:" >&5
42349 sed 's
/^
/|
/' conftest.$ac_ext >&5
42351 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42352 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42353 { (exit 1); exit 1; }; }
42391 cat confdefs.h - <<_ACEOF >conftest.c
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h. */
42399 #if !defined(HAVE_GET_LINK_DELAYED)
42400 #error "Expecting get_link() delayed done"
42416 cat - <<_ACEOF >conftest.h
42421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42422 echo "obj-m := conftest.o" >build/Makefile
42424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42425 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427 (eval $ac_try) 2>&5
42429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42432 (eval $ac_try) 2>&5
42434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); }; }; then
42438 cat >>confdefs.h <<\_ACEOF
42439 #define HAVE_PUT_LINK_DELAYED 1
42444 $as_echo "$as_me: failed program was:" >&5
42445 sed 's
/^
/|
/' conftest.$ac_ext >&5
42447 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
42448 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
42451 cat confdefs.h - <<_ACEOF >conftest.c
42454 cat confdefs.h >>conftest.$ac_ext
42455 cat >>conftest.$ac_ext <<_ACEOF
42456 /* end confdefs.h. */
42459 #include <linux/fs.h>
42460 void put_link(struct inode *ip, void *cookie)
42462 static struct inode_operations
42463 iops __attribute__ ((unused)) = {
42464 .put_link = put_link,
42480 cat - <<_ACEOF >conftest.h
42485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42486 echo "obj-m := conftest.o" >build/Makefile
42488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42489 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491 (eval $ac_try) 2>&5
42493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42496 (eval $ac_try) 2>&5
42498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; }; then
42501 { $as_echo "$as_me:$LINENO: result: yes" >&5
42502 $as_echo "yes" >&6; }
42504 cat >>confdefs.h <<\_ACEOF
42505 #define HAVE_PUT_LINK_COOKIE 1
42510 $as_echo "$as_me: failed program was:" >&5
42511 sed 's
/^
/|
/' conftest.$ac_ext >&5
42513 { $as_echo "$as_me:$LINENO: result: no" >&5
42514 $as_echo "no" >&6; }
42515 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
42516 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
42519 cat confdefs.h - <<_ACEOF >conftest.c
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h. */
42527 #include <linux/fs.h>
42528 void put_link(struct dentry *de, struct
42529 nameidata *nd, void *ptr) { return; }
42530 static struct inode_operations
42531 iops __attribute__ ((unused)) = {
42532 .put_link = put_link,
42548 cat - <<_ACEOF >conftest.h
42553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42554 echo "obj-m := conftest.o" >build/Makefile
42556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42557 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564 (eval $ac_try) 2>&5
42566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
42569 { $as_echo "$as_me:$LINENO: result: yes" >&5
42570 $as_echo "yes" >&6; }
42572 cat >>confdefs.h <<\_ACEOF
42573 #define HAVE_PUT_LINK_NAMEIDATA 1
42578 $as_echo "$as_me: failed program was:" >&5
42579 sed 's
/^
/|
/' conftest.$ac_ext >&5
42581 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42582 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42583 { (exit 1); exit 1; }; }
42610 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
42611 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
42614 cat confdefs.h - <<_ACEOF >conftest.c
42617 cat confdefs.h >>conftest.$ac_ext
42618 cat >>conftest.$ac_ext <<_ACEOF
42619 /* end confdefs.h. */
42622 #include <linux/fs.h>
42623 int tmpfile(struct inode *inode, struct dentry *dentry,
42624 umode_t mode) { return 0; }
42625 static struct inode_operations
42626 iops __attribute__ ((unused)) = {
42627 .tmpfile = tmpfile,
42643 cat - <<_ACEOF >conftest.h
42648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42649 echo "obj-m := conftest.o" >build/Makefile
42651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42652 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654 (eval $ac_try) 2>&5
42656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42659 (eval $ac_try) 2>&5
42661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; }; then
42664 { $as_echo "$as_me:$LINENO: result: yes" >&5
42665 $as_echo "yes" >&6; }
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_TMPFILE 1
42673 $as_echo "$as_me: failed program was:" >&5
42674 sed 's
/^
/|
/' conftest.$ac_ext >&5
42676 { $as_echo "$as_me:$LINENO: result: no" >&5
42677 $as_echo "no" >&6; }
42688 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
42689 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
42692 cat confdefs.h - <<_ACEOF >conftest.c
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h. */
42700 #include <linux/fs.h>
42701 void truncate_range(struct inode *inode, loff_t start,
42702 loff_t end) { return; }
42703 static struct inode_operations iops __attribute__ ((unused)) = {
42704 .truncate_range = truncate_range,
42720 cat - <<_ACEOF >conftest.h
42725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42726 echo "obj-m := conftest.o" >build/Makefile
42728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42729 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42731 (eval $ac_try) 2>&5
42733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42736 (eval $ac_try) 2>&5
42738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); }; }; then
42741 { $as_echo "$as_me:$LINENO: result: yes" >&5
42742 $as_echo "yes" >&6; }
42744 cat >>confdefs.h <<\_ACEOF
42745 #define HAVE_INODE_TRUNCATE_RANGE 1
42750 $as_echo "$as_me: failed program was:" >&5
42751 sed 's
/^
/|
/' conftest.$ac_ext >&5
42753 { $as_echo "$as_me:$LINENO: result: no" >&5
42754 $as_echo "no" >&6; }
42765 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
42766 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
42769 cat confdefs.h - <<_ACEOF >conftest.c
42772 cat confdefs.h >>conftest.$ac_ext
42773 cat >>conftest.$ac_ext <<_ACEOF
42774 /* end confdefs.h. */
42777 #include <linux/dcache.h>
42778 struct vfsmount *d_automount(struct path *p) { return NULL; }
42779 struct dentry_operations dops __attribute__ ((unused)) = {
42780 .d_automount = d_automount,
42796 cat - <<_ACEOF >conftest.h
42801 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42802 echo "obj-m := conftest.o" >build/Makefile
42804 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42805 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42807 (eval $ac_try) 2>&5
42809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42812 (eval $ac_try) 2>&5
42814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815 (exit $ac_status); }; }; then
42817 { $as_echo "$as_me:$LINENO: result: yes" >&5
42818 $as_echo "yes" >&6; }
42820 cat >>confdefs.h <<\_ACEOF
42821 #define HAVE_AUTOMOUNT 1
42826 $as_echo "$as_me: failed program was:" >&5
42827 sed 's
/^
/|
/' conftest.$ac_ext >&5
42829 { $as_echo "$as_me:$LINENO: result: no" >&5
42830 $as_echo "no" >&6; }
42841 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
42842 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
42845 cat confdefs.h - <<_ACEOF >conftest.c
42848 cat confdefs.h >>conftest.$ac_ext
42849 cat >>conftest.$ac_ext <<_ACEOF
42850 /* end confdefs.h. */
42853 #include <linux/exportfs.h>
42854 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
42855 struct inode *parent) { return 0; }
42856 static struct export_operations eops __attribute__ ((unused))={
42857 .encode_fh = encode_fh,
42873 cat - <<_ACEOF >conftest.h
42878 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42879 echo "obj-m := conftest.o" >build/Makefile
42881 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42882 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42884 (eval $ac_try) 2>&5
42886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42889 (eval $ac_try) 2>&5
42891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); }; }; then
42894 { $as_echo "$as_me:$LINENO: result: yes" >&5
42895 $as_echo "yes" >&6; }
42897 cat >>confdefs.h <<\_ACEOF
42898 #define HAVE_ENCODE_FH_WITH_INODE 1
42903 $as_echo "$as_me: failed program was:" >&5
42904 sed 's
/^
/|
/' conftest.$ac_ext >&5
42906 { $as_echo "$as_me:$LINENO: result: no" >&5
42907 $as_echo "no" >&6; }
42918 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
42919 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
42922 cat confdefs.h - <<_ACEOF >conftest.c
42925 cat confdefs.h >>conftest.$ac_ext
42926 cat >>conftest.$ac_ext <<_ACEOF
42927 /* end confdefs.h. */
42930 #include <linux/exportfs.h>
42931 int commit_metadata(struct inode *inode) { return 0; }
42932 static struct export_operations eops __attribute__ ((unused))={
42933 .commit_metadata = commit_metadata,
42949 cat - <<_ACEOF >conftest.h
42954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42955 echo "obj-m := conftest.o" >build/Makefile
42957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42958 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42960 (eval $ac_try) 2>&5
42962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42965 (eval $ac_try) 2>&5
42967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); }; }; then
42970 { $as_echo "$as_me:$LINENO: result: yes" >&5
42971 $as_echo "yes" >&6; }
42973 cat >>confdefs.h <<\_ACEOF
42974 #define HAVE_COMMIT_METADATA 1
42979 $as_echo "$as_me: failed program was:" >&5
42980 sed 's
/^
/|
/' conftest.$ac_ext >&5
42982 { $as_echo "$as_me:$LINENO: result: no" >&5
42983 $as_echo "no" >&6; }
42993 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
42994 $as_echo_n "checking whether clear_inode() is available... " >&6; }
42998 cat confdefs.h - <<_ACEOF >conftest.c
43001 cat confdefs.h >>conftest.$ac_ext
43002 cat >>conftest.$ac_ext <<_ACEOF
43003 /* end confdefs.h. */
43006 #include <linux/fs.h>
43022 cat - <<_ACEOF >conftest.h
43027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43028 echo "obj-m := conftest.o" >build/Makefile
43030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43031 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43033 (eval $ac_try) 2>&5
43035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038 (eval $ac_try) 2>&5
43040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; }; then
43044 $as_echo "$as_me: failed program was:" >&5
43045 sed 's
/^
/|
/' conftest.$ac_ext >&5
43054 if test $rc -ne 0; then :
43056 { $as_echo "$as_me:$LINENO: result: no" >&5
43057 $as_echo "no" >&6; }
43060 if test "x$enable_linux_builtin" != xyes; then
43062 grep -q -E '[[:space
:]]clear_inode
[[:space
:]]' \
43063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43065 if test $rc -ne 0; then
43067 for file in fs/inode.c; do
43068 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
43069 "$LINUX/$file" 2>/dev/null
43071 if test $rc -eq 0; then
43076 if test $export -eq 0; then :
43086 if test $rc -ne 0; then :
43088 { $as_echo "$as_me:$LINENO: result: no" >&5
43089 $as_echo "no" >&6; }
43093 { $as_echo "$as_me:$LINENO: result: yes" >&5
43094 $as_echo "yes" >&6; }
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_CLEAR_INODE 1
43105 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
43106 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
43110 cat confdefs.h - <<_ACEOF >conftest.c
43113 cat confdefs.h >>conftest.$ac_ext
43114 cat >>conftest.$ac_ext <<_ACEOF
43115 /* end confdefs.h. */
43118 #include <linux/fs.h>
43124 struct dentry *dentry = NULL;
43125 struct iattr *attr = NULL;
43128 error = setattr_prepare(dentry, attr);
43138 cat - <<_ACEOF >conftest.h
43143 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43144 echo "obj-m := conftest.o" >build/Makefile
43146 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43147 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149 (eval $ac_try) 2>&5
43151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43154 (eval $ac_try) 2>&5
43156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; }; then
43160 $as_echo "$as_me: failed program was:" >&5
43161 sed 's
/^
/|
/' conftest.$ac_ext >&5
43170 if test $rc -ne 0; then :
43172 { $as_echo "$as_me:$LINENO: result: no" >&5
43173 $as_echo "no" >&6; }
43176 if test "x$enable_linux_builtin" != xyes; then
43178 grep -q -E '[[:space
:]]setattr_prepare
[[:space
:]]' \
43179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43181 if test $rc -ne 0; then
43183 for file in fs/attr.c; do
43184 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
43185 "$LINUX/$file" 2>/dev/null
43187 if test $rc -eq 0; then
43192 if test $export -eq 0; then :
43202 if test $rc -ne 0; then :
43204 { $as_echo "$as_me:$LINENO: result: no" >&5
43205 $as_echo "no" >&6; }
43209 { $as_echo "$as_me:$LINENO: result: yes" >&5
43210 $as_echo "yes" >&6; }
43212 cat >>confdefs.h <<\_ACEOF
43213 #define HAVE_SETATTR_PREPARE 1
43221 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
43222 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
43226 cat confdefs.h - <<_ACEOF >conftest.c
43229 cat confdefs.h >>conftest.$ac_ext
43230 cat >>conftest.$ac_ext <<_ACEOF
43231 /* end confdefs.h. */
43234 #include <linux/fs.h>
43240 insert_inode_locked(NULL);
43250 cat - <<_ACEOF >conftest.h
43255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43256 echo "obj-m := conftest.o" >build/Makefile
43258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43259 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43261 (eval $ac_try) 2>&5
43263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266 (eval $ac_try) 2>&5
43268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269 (exit $ac_status); }; }; then
43272 $as_echo "$as_me: failed program was:" >&5
43273 sed 's
/^
/|
/' conftest.$ac_ext >&5
43282 if test $rc -ne 0; then :
43284 { $as_echo "$as_me:$LINENO: result: no" >&5
43285 $as_echo "no" >&6; }
43288 if test "x$enable_linux_builtin" != xyes; then
43290 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
43291 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43293 if test $rc -ne 0; then
43295 for file in fs/inode.c; do
43296 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
43297 "$LINUX/$file" 2>/dev/null
43299 if test $rc -eq 0; then
43304 if test $export -eq 0; then :
43314 if test $rc -ne 0; then :
43316 { $as_echo "$as_me:$LINENO: result: no" >&5
43317 $as_echo "no" >&6; }
43321 { $as_echo "$as_me:$LINENO: result: yes" >&5
43322 $as_echo "yes" >&6; }
43324 cat >>confdefs.h <<\_ACEOF
43325 #define HAVE_INSERT_INODE_LOCKED 1
43333 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
43334 $as_echo_n "checking whether d_make_root() is available... " >&6; }
43338 cat confdefs.h - <<_ACEOF >conftest.c
43341 cat confdefs.h >>conftest.$ac_ext
43342 cat >>conftest.$ac_ext <<_ACEOF
43343 /* end confdefs.h. */
43346 #include <linux/dcache.h>
43362 cat - <<_ACEOF >conftest.h
43367 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43368 echo "obj-m := conftest.o" >build/Makefile
43370 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43371 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43373 (eval $ac_try) 2>&5
43375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
43384 $as_echo "$as_me: failed program was:" >&5
43385 sed 's
/^
/|
/' conftest.$ac_ext >&5
43394 if test $rc -ne 0; then :
43396 { $as_echo "$as_me:$LINENO: result: no" >&5
43397 $as_echo "no" >&6; }
43400 if test "x$enable_linux_builtin" != xyes; then
43402 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
43403 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43405 if test $rc -ne 0; then
43407 for file in fs/dcache.c; do
43408 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
43409 "$LINUX/$file" 2>/dev/null
43411 if test $rc -eq 0; then
43416 if test $export -eq 0; then :
43426 if test $rc -ne 0; then :
43428 { $as_echo "$as_me:$LINENO: result: no" >&5
43429 $as_echo "no" >&6; }
43433 { $as_echo "$as_me:$LINENO: result: yes" >&5
43434 $as_echo "yes" >&6; }
43436 cat >>confdefs.h <<\_ACEOF
43437 #define HAVE_D_MAKE_ROOT 1
43445 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
43446 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
43450 cat confdefs.h - <<_ACEOF >conftest.c
43453 cat confdefs.h >>conftest.$ac_ext
43454 cat >>conftest.$ac_ext <<_ACEOF
43455 /* end confdefs.h. */
43458 #include <linux/dcache.h>
43464 d_obtain_alias(NULL);
43474 cat - <<_ACEOF >conftest.h
43479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43480 echo "obj-m := conftest.o" >build/Makefile
43482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43483 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485 (eval $ac_try) 2>&5
43487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 (eval $ac_try) 2>&5
43492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; }; then
43496 $as_echo "$as_me: failed program was:" >&5
43497 sed 's
/^
/|
/' conftest.$ac_ext >&5
43506 if test $rc -ne 0; then :
43508 { $as_echo "$as_me:$LINENO: result: no" >&5
43509 $as_echo "no" >&6; }
43512 if test "x$enable_linux_builtin" != xyes; then
43514 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
43515 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43517 if test $rc -ne 0; then
43519 for file in fs/dcache.c; do
43520 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
43521 "$LINUX/$file" 2>/dev/null
43523 if test $rc -eq 0; then
43528 if test $export -eq 0; then :
43538 if test $rc -ne 0; then :
43540 { $as_echo "$as_me:$LINENO: result: no" >&5
43541 $as_echo "no" >&6; }
43545 { $as_echo "$as_me:$LINENO: result: yes" >&5
43546 $as_echo "yes" >&6; }
43548 cat >>confdefs.h <<\_ACEOF
43549 #define HAVE_D_OBTAIN_ALIAS 1
43557 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
43558 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
43562 cat confdefs.h - <<_ACEOF >conftest.c
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h. */
43570 #include <linux/dcache.h>
43576 struct inode *ip = NULL;
43577 d_prune_aliases(ip);
43587 cat - <<_ACEOF >conftest.h
43592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43593 echo "obj-m := conftest.o" >build/Makefile
43595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43596 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598 (eval $ac_try) 2>&5
43600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43603 (eval $ac_try) 2>&5
43605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); }; }; then
43609 $as_echo "$as_me: failed program was:" >&5
43610 sed 's
/^
/|
/' conftest.$ac_ext >&5
43619 if test $rc -ne 0; then :
43621 { $as_echo "$as_me:$LINENO: result: no" >&5
43622 $as_echo "no" >&6; }
43625 if test "x$enable_linux_builtin" != xyes; then
43627 grep -q -E '[[:space
:]]d_prune_aliases
[[:space
:]]' \
43628 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43630 if test $rc -ne 0; then
43632 for file in fs/dcache.c; do
43633 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
43634 "$LINUX/$file" 2>/dev/null
43636 if test $rc -eq 0; then
43641 if test $export -eq 0; then :
43651 if test $rc -ne 0; then :
43653 { $as_echo "$as_me:$LINENO: result: no" >&5
43654 $as_echo "no" >&6; }
43658 { $as_echo "$as_me:$LINENO: result: yes" >&5
43659 $as_echo "yes" >&6; }
43661 cat >>confdefs.h <<\_ACEOF
43662 #define HAVE_D_PRUNE_ALIASES 1
43670 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
43671 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
43675 cat confdefs.h - <<_ACEOF >conftest.c
43678 cat confdefs.h >>conftest.$ac_ext
43679 cat >>conftest.$ac_ext <<_ACEOF
43680 /* end confdefs.h. */
43683 #include <linux/dcache.h>
43689 d_set_d_op(NULL, NULL);
43699 cat - <<_ACEOF >conftest.h
43704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43705 echo "obj-m := conftest.o" >build/Makefile
43707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43708 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43710 (eval $ac_try) 2>&5
43712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43715 (eval $ac_try) 2>&5
43717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; }; then
43721 $as_echo "$as_me: failed program was:" >&5
43722 sed 's
/^
/|
/' conftest.$ac_ext >&5
43731 if test $rc -ne 0; then :
43733 { $as_echo "$as_me:$LINENO: result: no" >&5
43734 $as_echo "no" >&6; }
43737 if test "x$enable_linux_builtin" != xyes; then
43739 grep -q -E '[[:space
:]]d_set_d_op
[[:space
:]]' \
43740 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43742 if test $rc -ne 0; then
43744 for file in fs/dcache.c; do
43745 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
43746 "$LINUX/$file" 2>/dev/null
43748 if test $rc -eq 0; then
43753 if test $export -eq 0; then :
43763 if test $rc -ne 0; then :
43765 { $as_echo "$as_me:$LINENO: result: no" >&5
43766 $as_echo "no" >&6; }
43770 { $as_echo "$as_me:$LINENO: result: yes" >&5
43771 $as_echo "yes" >&6; }
43773 cat >>confdefs.h <<\_ACEOF
43774 #define HAVE_D_SET_D_OP 1
43783 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
43784 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
43787 cat confdefs.h - <<_ACEOF >conftest.c
43790 cat confdefs.h >>conftest.$ac_ext
43791 cat >>conftest.$ac_ext <<_ACEOF
43792 /* end confdefs.h. */
43795 #include <linux/dcache.h>
43796 #include <linux/sched.h>
43798 int revalidate (struct dentry *dentry,
43799 struct nameidata *nidata) { return 0; }
43801 static const struct dentry_operations
43802 dops __attribute__ ((unused)) = {
43803 .d_revalidate = revalidate,
43819 cat - <<_ACEOF >conftest.h
43824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43825 echo "obj-m := conftest.o" >build/Makefile
43827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43828 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43830 (eval $ac_try) 2>&5
43832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835 (eval $ac_try) 2>&5
43837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); }; }; then
43840 { $as_echo "$as_me:$LINENO: result: yes" >&5
43841 $as_echo "yes" >&6; }
43843 cat >>confdefs.h <<\_ACEOF
43844 #define HAVE_D_REVALIDATE_NAMEIDATA 1
43849 $as_echo "$as_me: failed program was:" >&5
43850 sed 's
/^
/|
/' conftest.$ac_ext >&5
43852 { $as_echo "$as_me:$LINENO: result: no" >&5
43853 $as_echo "no" >&6; }
43864 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
43865 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
43868 cat confdefs.h - <<_ACEOF >conftest.c
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h. */
43876 #include <linux/dcache.h>
43878 const struct dentry_operations test_d_op = {
43879 .d_revalidate = NULL,
43886 struct dentry d __attribute__ ((unused));
43888 d.d_op = &test_d_op;
43898 cat - <<_ACEOF >conftest.h
43903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43904 echo "obj-m := conftest.o" >build/Makefile
43906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43907 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43909 (eval $ac_try) 2>&5
43911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43914 (eval $ac_try) 2>&5
43916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); }; }; then
43919 { $as_echo "$as_me:$LINENO: result: yes" >&5
43920 $as_echo "yes" >&6; }
43922 cat >>confdefs.h <<\_ACEOF
43923 #define HAVE_CONST_DENTRY_OPERATIONS 1
43928 $as_echo "$as_me: failed program was:" >&5
43929 sed 's
/^
/|
/' conftest.$ac_ext >&5
43931 { $as_echo "$as_me:$LINENO: result: no" >&5
43932 $as_echo "no" >&6; }
43942 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
43943 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
43947 cat confdefs.h - <<_ACEOF >conftest.c
43950 cat confdefs.h >>conftest.$ac_ext
43951 cat >>conftest.$ac_ext <<_ACEOF
43952 /* end confdefs.h. */
43955 #include <linux/mm.h>
43961 truncate_setsize(NULL, 0);
43971 cat - <<_ACEOF >conftest.h
43976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43977 echo "obj-m := conftest.o" >build/Makefile
43979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43980 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982 (eval $ac_try) 2>&5
43984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43987 (eval $ac_try) 2>&5
43989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43990 (exit $ac_status); }; }; then
43993 $as_echo "$as_me: failed program was:" >&5
43994 sed 's
/^
/|
/' conftest.$ac_ext >&5
44003 if test $rc -ne 0; then :
44005 { $as_echo "$as_me:$LINENO: result: no" >&5
44006 $as_echo "no" >&6; }
44009 if test "x$enable_linux_builtin" != xyes; then
44011 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
44012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44014 if test $rc -ne 0; then
44016 for file in mm/truncate.c; do
44017 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
44018 "$LINUX/$file" 2>/dev/null
44020 if test $rc -eq 0; then
44025 if test $export -eq 0; then :
44035 if test $rc -ne 0; then :
44037 { $as_echo "$as_me:$LINENO: result: no" >&5
44038 $as_echo "no" >&6; }
44042 { $as_echo "$as_me:$LINENO: result: yes" >&5
44043 $as_echo "yes" >&6; }
44045 cat >>confdefs.h <<\_ACEOF
44046 #define HAVE_TRUNCATE_SETSIZE 1
44055 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
44056 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
44059 cat confdefs.h - <<_ACEOF >conftest.c
44062 cat confdefs.h >>conftest.$ac_ext
44063 cat >>conftest.$ac_ext <<_ACEOF
44064 /* end confdefs.h. */
44067 #include <linux/security.h>
44073 struct inode *ip __attribute__ ((unused)) = NULL;
44074 struct inode *dip __attribute__ ((unused)) = NULL;
44075 const struct qstr *str __attribute__ ((unused)) = NULL;
44076 char *name __attribute__ ((unused)) = NULL;
44077 void *value __attribute__ ((unused)) = NULL;
44078 size_t len __attribute__ ((unused)) = 0;
44080 security_inode_init_security(ip, dip, str, &name, &value, &len);
44090 cat - <<_ACEOF >conftest.h
44095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44096 echo "obj-m := conftest.o" >build/Makefile
44098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44099 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44101 (eval $ac_try) 2>&5
44103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44106 (eval $ac_try) 2>&5
44108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); }; }; then
44111 { $as_echo "$as_me:$LINENO: result: yes" >&5
44112 $as_echo "yes" >&6; }
44114 cat >>confdefs.h <<\_ACEOF
44115 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
44120 $as_echo "$as_me: failed program was:" >&5
44121 sed 's
/^
/|
/' conftest.$ac_ext >&5
44123 { $as_echo "$as_me:$LINENO: result: no" >&5
44124 $as_echo "no" >&6; }
44135 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
44136 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
44139 cat confdefs.h - <<_ACEOF >conftest.c
44142 cat confdefs.h >>conftest.$ac_ext
44143 cat >>conftest.$ac_ext <<_ACEOF
44144 /* end confdefs.h. */
44147 #include <linux/security.h>
44153 struct inode *ip __attribute__ ((unused)) = NULL;
44154 struct inode *dip __attribute__ ((unused)) = NULL;
44155 const struct qstr *str __attribute__ ((unused)) = NULL;
44156 initxattrs func __attribute__ ((unused)) = NULL;
44158 security_inode_init_security(ip, dip, str, func, NULL);
44168 cat - <<_ACEOF >conftest.h
44173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44174 echo "obj-m := conftest.o" >build/Makefile
44176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44177 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179 (eval $ac_try) 2>&5
44181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44184 (eval $ac_try) 2>&5
44186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44187 (exit $ac_status); }; }; then
44189 { $as_echo "$as_me:$LINENO: result: yes" >&5
44190 $as_echo "yes" >&6; }
44192 cat >>confdefs.h <<\_ACEOF
44193 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
44198 $as_echo "$as_me: failed program was:" >&5
44199 sed 's
/^
/|
/' conftest.$ac_ext >&5
44201 { $as_echo "$as_me:$LINENO: result: no" >&5
44202 $as_echo "no" >&6; }
44213 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
44214 $as_echo_n "checking whether fst->mount() exists... " >&6; }
44217 cat confdefs.h - <<_ACEOF >conftest.c
44220 cat confdefs.h >>conftest.$ac_ext
44221 cat >>conftest.$ac_ext <<_ACEOF
44222 /* end confdefs.h. */
44225 #include <linux/fs.h>
44227 static struct dentry *
44228 mount(struct file_system_type *fs_type, int flags,
44229 const char *osname, void *data) {
44230 struct dentry *d = NULL;
44234 static struct file_system_type fst __attribute__ ((unused)) = {
44251 cat - <<_ACEOF >conftest.h
44256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44257 echo "obj-m := conftest.o" >build/Makefile
44259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44260 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44262 (eval $ac_try) 2>&5
44264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44267 (eval $ac_try) 2>&5
44269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270 (exit $ac_status); }; }; then
44272 { $as_echo "$as_me:$LINENO: result: yes" >&5
44273 $as_echo "yes" >&6; }
44275 cat >>confdefs.h <<\_ACEOF
44276 #define HAVE_FST_MOUNT 1
44281 $as_echo "$as_me: failed program was:" >&5
44282 sed 's
/^
/|
/' conftest.$ac_ext >&5
44284 { $as_echo "$as_me:$LINENO: result: no" >&5
44285 $as_echo "no" >&6; }
44296 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
44297 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
44300 cat confdefs.h - <<_ACEOF >conftest.c
44303 cat confdefs.h >>conftest.$ac_ext
44304 cat >>conftest.$ac_ext <<_ACEOF
44305 /* end confdefs.h. */
44308 #include <linux/fs.h>
44310 int shrink(struct shrinker *s, struct shrink_control *sc)
44313 static const struct super_block
44314 sb __attribute__ ((unused)) = {
44315 .s_shrink.shrink = shrink,
44316 .s_shrink.seeks = DEFAULT_SEEKS,
44317 .s_shrink.batch = 0,
44333 cat - <<_ACEOF >conftest.h
44338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44339 echo "obj-m := conftest.o" >build/Makefile
44341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44342 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344 (eval $ac_try) 2>&5
44346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; }; then
44354 { $as_echo "$as_me:$LINENO: result: yes" >&5
44355 $as_echo "yes" >&6; }
44357 cat >>confdefs.h <<\_ACEOF
44358 #define HAVE_SHRINK 1
44364 $as_echo "$as_me: failed program was:" >&5
44365 sed 's
/^
/|
/' conftest.$ac_ext >&5
44367 { $as_echo "$as_me:$LINENO: result: no" >&5
44368 $as_echo "no" >&6; }
44379 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
44380 $as_echo_n "checking whether shrink_control has nid... " >&6; }
44383 cat confdefs.h - <<_ACEOF >conftest.c
44386 cat confdefs.h >>conftest.$ac_ext
44387 cat >>conftest.$ac_ext <<_ACEOF
44388 /* end confdefs.h. */
44391 #include <linux/fs.h>
44397 struct shrink_control sc __attribute__ ((unused));
44398 unsigned long scnidsize __attribute__ ((unused)) =
44409 cat - <<_ACEOF >conftest.h
44414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44415 echo "obj-m := conftest.o" >build/Makefile
44417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44418 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420 (eval $ac_try) 2>&5
44422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44425 (eval $ac_try) 2>&5
44427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428 (exit $ac_status); }; }; then
44430 { $as_echo "$as_me:$LINENO: result: yes" >&5
44431 $as_echo "yes" >&6; }
44433 cat >>confdefs.h <<\_ACEOF
44434 #define SHRINK_CONTROL_HAS_NID 1
44439 $as_echo "$as_me: failed program was:" >&5
44440 sed 's
/^
/|
/' conftest.$ac_ext >&5
44442 { $as_echo "$as_me:$LINENO: result: no" >&5
44443 $as_echo "no" >&6; }
44454 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
44455 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
44458 cat confdefs.h - <<_ACEOF >conftest.c
44461 cat confdefs.h >>conftest.$ac_ext
44462 cat >>conftest.$ac_ext <<_ACEOF
44463 /* end confdefs.h. */
44466 #include <linux/fs.h>
44472 struct super_block sb __attribute__ ((unused));
44474 INIT_LIST_HEAD(&sb.s_instances);
44484 cat - <<_ACEOF >conftest.h
44489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44490 echo "obj-m := conftest.o" >build/Makefile
44492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44493 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495 (eval $ac_try) 2>&5
44497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44500 (eval $ac_try) 2>&5
44502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503 (exit $ac_status); }; }; then
44505 { $as_echo "$as_me:$LINENO: result: yes" >&5
44506 $as_echo "yes" >&6; }
44508 cat >>confdefs.h <<\_ACEOF
44509 #define HAVE_S_INSTANCES_LIST_HEAD 1
44514 $as_echo "$as_me: failed program was:" >&5
44515 sed 's
/^
/|
/' conftest.$ac_ext >&5
44517 { $as_echo "$as_me:$LINENO: result: no" >&5
44518 $as_echo "no" >&6; }
44528 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
44529 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
44532 cat confdefs.h - <<_ACEOF >conftest.c
44535 cat confdefs.h >>conftest.$ac_ext
44536 cat >>conftest.$ac_ext <<_ACEOF
44537 /* end confdefs.h. */
44540 #include <linux/fs.h>
44546 struct super_block sb __attribute__ ((unused));
44557 cat - <<_ACEOF >conftest.h
44562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44563 echo "obj-m := conftest.o" >build/Makefile
44565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44566 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44568 (eval $ac_try) 2>&5
44570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44573 (eval $ac_try) 2>&5
44575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44576 (exit $ac_status); }; }; then
44578 { $as_echo "$as_me:$LINENO: result: yes" >&5
44579 $as_echo "yes" >&6; }
44581 cat >>confdefs.h <<\_ACEOF
44582 #define HAVE_S_D_OP 1
44587 $as_echo "$as_me: failed program was:" >&5
44588 sed 's
/^
/|
/' conftest.$ac_ext >&5
44590 { $as_echo "$as_me:$LINENO: result: no" >&5
44591 $as_echo "no" >&6; }
44602 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
44603 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
44607 cat confdefs.h - <<_ACEOF >conftest.c
44610 cat confdefs.h >>conftest.$ac_ext
44611 cat >>conftest.$ac_ext <<_ACEOF
44612 /* end confdefs.h. */
44615 #include <linux/fs.h>
44616 struct super_block sb;
44622 char *name = "bdi";
44623 atomic_long_t zfs_bdi_seq;
44624 int error __attribute__((unused)) =
44625 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
44635 cat - <<_ACEOF >conftest.h
44640 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44641 echo "obj-m := conftest.o" >build/Makefile
44643 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44644 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44646 (eval $ac_try) 2>&5
44648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44651 (eval $ac_try) 2>&5
44653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44654 (exit $ac_status); }; }; then
44657 $as_echo "$as_me: failed program was:" >&5
44658 sed 's
/^
/|
/' conftest.$ac_ext >&5
44667 if test $rc -ne 0; then :
44669 { $as_echo "$as_me:$LINENO: result: no" >&5
44670 $as_echo "no" >&6; }
44671 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
44672 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
44676 cat confdefs.h - <<_ACEOF >conftest.c
44679 cat confdefs.h >>conftest.$ac_ext
44680 cat >>conftest.$ac_ext <<_ACEOF
44681 /* end confdefs.h. */
44684 #include <linux/backing-dev.h>
44685 struct backing_dev_info bdi;
44691 char *name = "bdi";
44692 int error __attribute__((unused)) =
44693 bdi_setup_and_register(&bdi, name);
44703 cat - <<_ACEOF >conftest.h
44708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44709 echo "obj-m := conftest.o" >build/Makefile
44711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44712 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714 (eval $ac_try) 2>&5
44716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44719 (eval $ac_try) 2>&5
44721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 (exit $ac_status); }; }; then
44725 $as_echo "$as_me: failed program was:" >&5
44726 sed 's
/^
/|
/' conftest.$ac_ext >&5
44735 if test $rc -ne 0; then :
44737 { $as_echo "$as_me:$LINENO: result: no" >&5
44738 $as_echo "no" >&6; }
44739 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44740 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44744 cat confdefs.h - <<_ACEOF >conftest.c
44747 cat confdefs.h >>conftest.$ac_ext
44748 cat >>conftest.$ac_ext <<_ACEOF
44749 /* end confdefs.h. */
44752 #include <linux/backing-dev.h>
44753 struct backing_dev_info bdi;
44759 char *name = "bdi";
44760 unsigned int cap = BDI_CAP_MAP_COPY;
44761 int error __attribute__((unused)) =
44762 bdi_setup_and_register(&bdi, name, cap);
44772 cat - <<_ACEOF >conftest.h
44777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44778 echo "obj-m := conftest.o" >build/Makefile
44780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44781 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44783 (eval $ac_try) 2>&5
44785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44788 (eval $ac_try) 2>&5
44790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); }; }; then
44794 $as_echo "$as_me: failed program was:" >&5
44795 sed 's
/^
/|
/' conftest.$ac_ext >&5
44804 if test $rc -ne 0; then :
44806 { $as_echo "$as_me:$LINENO: result: no" >&5
44807 $as_echo "no" >&6; }
44810 if test "x$enable_linux_builtin" != xyes; then
44812 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
44813 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44815 if test $rc -ne 0; then
44817 for file in mm/backing-dev.c; do
44818 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44819 "$LINUX/$file" 2>/dev/null
44821 if test $rc -eq 0; then
44826 if test $export -eq 0; then :
44836 if test $rc -ne 0; then :
44838 { $as_echo "$as_me:$LINENO: result: no" >&5
44839 $as_echo "no" >&6; }
44843 { $as_echo "$as_me:$LINENO: result: yes" >&5
44844 $as_echo "yes" >&6; }
44846 cat >>confdefs.h <<\_ACEOF
44847 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
44856 if test "x$enable_linux_builtin" != xyes; then
44858 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
44859 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44861 if test $rc -ne 0; then
44863 for file in mm/backing-dev.c; do
44864 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44865 "$LINUX/$file" 2>/dev/null
44867 if test $rc -eq 0; then
44872 if test $export -eq 0; then :
44882 if test $rc -ne 0; then :
44884 { $as_echo "$as_me:$LINENO: result: no" >&5
44885 $as_echo "no" >&6; }
44886 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44887 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44891 cat confdefs.h - <<_ACEOF >conftest.c
44894 cat confdefs.h >>conftest.$ac_ext
44895 cat >>conftest.$ac_ext <<_ACEOF
44896 /* end confdefs.h. */
44899 #include <linux/backing-dev.h>
44900 struct backing_dev_info bdi;
44906 char *name = "bdi";
44907 unsigned int cap = BDI_CAP_MAP_COPY;
44908 int error __attribute__((unused)) =
44909 bdi_setup_and_register(&bdi, name, cap);
44919 cat - <<_ACEOF >conftest.h
44924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44925 echo "obj-m := conftest.o" >build/Makefile
44927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44928 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44930 (eval $ac_try) 2>&5
44932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
44937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
44941 $as_echo "$as_me: failed program was:" >&5
44942 sed 's
/^
/|
/' conftest.$ac_ext >&5
44951 if test $rc -ne 0; then :
44953 { $as_echo "$as_me:$LINENO: result: no" >&5
44954 $as_echo "no" >&6; }
44957 if test "x$enable_linux_builtin" != xyes; then
44959 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
44960 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44962 if test $rc -ne 0; then
44964 for file in mm/backing-dev.c; do
44965 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44966 "$LINUX/$file" 2>/dev/null
44968 if test $rc -eq 0; then
44973 if test $export -eq 0; then :
44983 if test $rc -ne 0; then :
44985 { $as_echo "$as_me:$LINENO: result: no" >&5
44986 $as_echo "no" >&6; }
44990 { $as_echo "$as_me:$LINENO: result: yes" >&5
44991 $as_echo "yes" >&6; }
44993 cat >>confdefs.h <<\_ACEOF
44994 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45004 { $as_echo "$as_me:$LINENO: result: yes" >&5
45005 $as_echo "yes" >&6; }
45007 cat >>confdefs.h <<\_ACEOF
45008 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45017 if test "x$enable_linux_builtin" != xyes; then
45019 grep -q -E '[[:space
:]]super_setup_bdi_name
[[:space
:]]' \
45020 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45022 if test $rc -ne 0; then
45024 for file in fs/super.c; do
45025 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
45026 "$LINUX/$file" 2>/dev/null
45028 if test $rc -eq 0; then
45033 if test $export -eq 0; then :
45043 if test $rc -ne 0; then :
45045 { $as_echo "$as_me:$LINENO: result: no" >&5
45046 $as_echo "no" >&6; }
45047 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
45048 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
45052 cat confdefs.h - <<_ACEOF >conftest.c
45055 cat confdefs.h >>conftest.$ac_ext
45056 cat >>conftest.$ac_ext <<_ACEOF
45057 /* end confdefs.h. */
45060 #include <linux/backing-dev.h>
45061 struct backing_dev_info bdi;
45067 char *name = "bdi";
45068 int error __attribute__((unused)) =
45069 bdi_setup_and_register(&bdi, name);
45079 cat - <<_ACEOF >conftest.h
45084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45085 echo "obj-m := conftest.o" >build/Makefile
45087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45088 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45090 (eval $ac_try) 2>&5
45092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095 (eval $ac_try) 2>&5
45097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098 (exit $ac_status); }; }; then
45101 $as_echo "$as_me: failed program was:" >&5
45102 sed 's
/^
/|
/' conftest.$ac_ext >&5
45111 if test $rc -ne 0; then :
45113 { $as_echo "$as_me:$LINENO: result: no" >&5
45114 $as_echo "no" >&6; }
45115 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45116 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45120 cat confdefs.h - <<_ACEOF >conftest.c
45123 cat confdefs.h >>conftest.$ac_ext
45124 cat >>conftest.$ac_ext <<_ACEOF
45125 /* end confdefs.h. */
45128 #include <linux/backing-dev.h>
45129 struct backing_dev_info bdi;
45135 char *name = "bdi";
45136 unsigned int cap = BDI_CAP_MAP_COPY;
45137 int error __attribute__((unused)) =
45138 bdi_setup_and_register(&bdi, name, cap);
45148 cat - <<_ACEOF >conftest.h
45153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45154 echo "obj-m := conftest.o" >build/Makefile
45156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45157 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45159 (eval $ac_try) 2>&5
45161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45164 (eval $ac_try) 2>&5
45166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167 (exit $ac_status); }; }; then
45170 $as_echo "$as_me: failed program was:" >&5
45171 sed 's
/^
/|
/' conftest.$ac_ext >&5
45180 if test $rc -ne 0; then :
45182 { $as_echo "$as_me:$LINENO: result: no" >&5
45183 $as_echo "no" >&6; }
45186 if test "x$enable_linux_builtin" != xyes; then
45188 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
45189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45191 if test $rc -ne 0; then
45193 for file in mm/backing-dev.c; do
45194 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45195 "$LINUX/$file" 2>/dev/null
45197 if test $rc -eq 0; then
45202 if test $export -eq 0; then :
45212 if test $rc -ne 0; then :
45214 { $as_echo "$as_me:$LINENO: result: no" >&5
45215 $as_echo "no" >&6; }
45219 { $as_echo "$as_me:$LINENO: result: yes" >&5
45220 $as_echo "yes" >&6; }
45222 cat >>confdefs.h <<\_ACEOF
45223 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45232 if test "x$enable_linux_builtin" != xyes; then
45234 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
45235 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45237 if test $rc -ne 0; then
45239 for file in mm/backing-dev.c; do
45240 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45241 "$LINUX/$file" 2>/dev/null
45243 if test $rc -eq 0; then
45248 if test $export -eq 0; then :
45258 if test $rc -ne 0; then :
45260 { $as_echo "$as_me:$LINENO: result: no" >&5
45261 $as_echo "no" >&6; }
45262 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45263 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45267 cat confdefs.h - <<_ACEOF >conftest.c
45270 cat confdefs.h >>conftest.$ac_ext
45271 cat >>conftest.$ac_ext <<_ACEOF
45272 /* end confdefs.h. */
45275 #include <linux/backing-dev.h>
45276 struct backing_dev_info bdi;
45282 char *name = "bdi";
45283 unsigned int cap = BDI_CAP_MAP_COPY;
45284 int error __attribute__((unused)) =
45285 bdi_setup_and_register(&bdi, name, cap);
45295 cat - <<_ACEOF >conftest.h
45300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45301 echo "obj-m := conftest.o" >build/Makefile
45303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45304 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45306 (eval $ac_try) 2>&5
45308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45311 (eval $ac_try) 2>&5
45313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45314 (exit $ac_status); }; }; then
45317 $as_echo "$as_me: failed program was:" >&5
45318 sed 's
/^
/|
/' conftest.$ac_ext >&5
45327 if test $rc -ne 0; then :
45329 { $as_echo "$as_me:$LINENO: result: no" >&5
45330 $as_echo "no" >&6; }
45333 if test "x$enable_linux_builtin" != xyes; then
45335 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
45336 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45338 if test $rc -ne 0; then
45340 for file in mm/backing-dev.c; do
45341 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45342 "$LINUX/$file" 2>/dev/null
45344 if test $rc -eq 0; then
45349 if test $export -eq 0; then :
45359 if test $rc -ne 0; then :
45361 { $as_echo "$as_me:$LINENO: result: no" >&5
45362 $as_echo "no" >&6; }
45366 { $as_echo "$as_me:$LINENO: result: yes" >&5
45367 $as_echo "yes" >&6; }
45369 cat >>confdefs.h <<\_ACEOF
45370 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45380 { $as_echo "$as_me:$LINENO: result: yes" >&5
45381 $as_echo "yes" >&6; }
45383 cat >>confdefs.h <<\_ACEOF
45384 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45394 { $as_echo "$as_me:$LINENO: result: yes" >&5
45395 $as_echo "yes" >&6; }
45397 cat >>confdefs.h <<\_ACEOF
45398 #define HAVE_SUPER_SETUP_BDI_NAME 1
45407 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
45408 $as_echo_n "checking whether set_nlink() is available... " >&6; }
45411 cat confdefs.h - <<_ACEOF >conftest.c
45414 cat confdefs.h >>conftest.$ac_ext
45415 cat >>conftest.$ac_ext <<_ACEOF
45416 /* end confdefs.h. */
45419 #include <linux/fs.h>
45426 unsigned int link = 0;
45427 (void) set_nlink(&node, link);
45437 cat - <<_ACEOF >conftest.h
45442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45443 echo "obj-m := conftest.o" >build/Makefile
45445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45446 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45448 (eval $ac_try) 2>&5
45450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45453 (eval $ac_try) 2>&5
45455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); }; }; then
45458 { $as_echo "$as_me:$LINENO: result: yes" >&5
45459 $as_echo "yes" >&6; }
45461 cat >>confdefs.h <<\_ACEOF
45462 #define HAVE_SET_NLINK 1
45467 $as_echo "$as_me: failed program was:" >&5
45468 sed 's
/^
/|
/' conftest.$ac_ext >&5
45470 { $as_echo "$as_me:$LINENO: result: no" >&5
45471 $as_echo "no" >&6; }
45482 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
45483 $as_echo_n "checking whether elevator_change() is available... " >&6; }
45484 tmp_flags="$EXTRA_KCFLAGS"
45485 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
45488 cat confdefs.h - <<_ACEOF >conftest.c
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h. */
45496 #include <linux/blkdev.h>
45497 #include <linux/elevator.h>
45504 struct request_queue *q = NULL;
45505 char *elevator = NULL;
45506 ret = elevator_change(q, elevator);
45516 cat - <<_ACEOF >conftest.h
45521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45522 echo "obj-m := conftest.o" >build/Makefile
45524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45525 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45527 (eval $ac_try) 2>&5
45529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
45537 { $as_echo "$as_me:$LINENO: result: yes" >&5
45538 $as_echo "yes" >&6; }
45540 cat >>confdefs.h <<\_ACEOF
45541 #define HAVE_ELEVATOR_CHANGE 1
45546 $as_echo "$as_me: failed program was:" >&5
45547 sed 's
/^
/|
/' conftest.$ac_ext >&5
45549 { $as_echo "$as_me:$LINENO: result: no" >&5
45550 $as_echo "no" >&6; }
45559 EXTRA_KCFLAGS="$tmp_flags"
45561 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
45562 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
45565 cat confdefs.h - <<_ACEOF >conftest.c
45568 cat confdefs.h >>conftest.$ac_ext
45569 cat >>conftest.$ac_ext <<_ACEOF
45570 /* end confdefs.h. */
45573 #include <linux/fs.h>
45579 struct file_system_type *type = NULL;
45580 int (*test)(struct super_block *,void *) = NULL;
45581 int (*set)(struct super_block *,void *) = NULL;
45584 (void) sget(type, test, set, flags, data);
45594 cat - <<_ACEOF >conftest.h
45599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45600 echo "obj-m := conftest.o" >build/Makefile
45602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45603 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45605 (eval $ac_try) 2>&5
45607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45610 (eval $ac_try) 2>&5
45612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613 (exit $ac_status); }; }; then
45615 { $as_echo "$as_me:$LINENO: result: yes" >&5
45616 $as_echo "yes" >&6; }
45618 cat >>confdefs.h <<\_ACEOF
45619 #define HAVE_5ARG_SGET 1
45624 $as_echo "$as_me: failed program was:" >&5
45625 sed 's
/^
/|
/' conftest.$ac_ext >&5
45627 { $as_echo "$as_me:$LINENO: result: no" >&5
45628 $as_echo "no" >&6; }
45638 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
45639 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
45643 cat confdefs.h - <<_ACEOF >conftest.c
45646 cat confdefs.h >>conftest.$ac_ext
45647 cat >>conftest.$ac_ext <<_ACEOF
45648 /* end confdefs.h. */
45651 #include <linux/fs.h>
45657 struct file *fp __attribute__ ((unused)) = NULL;
45658 struct inode *ip __attribute__ ((unused)) = NULL;
45659 loff_t offset __attribute__ ((unused)) = 0;
45660 loff_t maxsize __attribute__ ((unused)) = 0;
45662 lseek_execute(fp, ip, offset, maxsize);
45672 cat - <<_ACEOF >conftest.h
45677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45678 echo "obj-m := conftest.o" >build/Makefile
45680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45681 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45683 (eval $ac_try) 2>&5
45685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45688 (eval $ac_try) 2>&5
45690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45691 (exit $ac_status); }; }; then
45694 $as_echo "$as_me: failed program was:" >&5
45695 sed 's
/^
/|
/' conftest.$ac_ext >&5
45704 if test $rc -ne 0; then :
45706 { $as_echo "$as_me:$LINENO: result: no" >&5
45707 $as_echo "no" >&6; }
45710 if test "x$enable_linux_builtin" != xyes; then
45712 grep -q -E '[[:space
:]]lseek_exclusive
[[:space
:]]' \
45713 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45715 if test $rc -ne 0; then
45717 for file in fs/read_write.c; do
45718 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
45719 "$LINUX/$file" 2>/dev/null
45721 if test $rc -eq 0; then
45726 if test $export -eq 0; then :
45736 if test $rc -ne 0; then :
45738 { $as_echo "$as_me:$LINENO: result: no" >&5
45739 $as_echo "no" >&6; }
45743 { $as_echo "$as_me:$LINENO: result: yes" >&5
45744 $as_echo "yes" >&6; }
45746 cat >>confdefs.h <<\_ACEOF
45747 #define HAVE_LSEEK_EXECUTE 1
45756 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
45757 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
45760 cat confdefs.h - <<_ACEOF >conftest.c
45763 cat confdefs.h >>conftest.$ac_ext
45764 cat >>conftest.$ac_ext <<_ACEOF
45765 /* end confdefs.h. */
45768 #include <linux/fs.h>
45769 int iterate(struct file *filp, struct dir_context * context)
45772 static const struct file_operations fops
45773 __attribute__ ((unused)) = {
45774 .iterate_shared = iterate,
45790 cat - <<_ACEOF >conftest.h
45795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45796 echo "obj-m := conftest.o" >build/Makefile
45798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45799 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45801 (eval $ac_try) 2>&5
45803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45806 (eval $ac_try) 2>&5
45808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45809 (exit $ac_status); }; }; then
45811 { $as_echo "$as_me:$LINENO: result: yes" >&5
45812 $as_echo "yes" >&6; }
45814 cat >>confdefs.h <<\_ACEOF
45815 #define HAVE_VFS_ITERATE_SHARED 1
45820 $as_echo "$as_me: failed program was:" >&5
45821 sed 's
/^
/|
/' conftest.$ac_ext >&5
45823 { $as_echo "$as_me:$LINENO: result: no" >&5
45824 $as_echo "no" >&6; }
45826 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
45827 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
45830 cat confdefs.h - <<_ACEOF >conftest.c
45833 cat confdefs.h >>conftest.$ac_ext
45834 cat >>conftest.$ac_ext <<_ACEOF
45835 /* end confdefs.h. */
45838 #include <linux/fs.h>
45839 int iterate(struct file *filp,
45840 struct dir_context *context) { return 0; }
45842 static const struct file_operations fops
45843 __attribute__ ((unused)) = {
45844 .iterate = iterate,
45847 #if defined(FMODE_KABI_ITERATE)
45848 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
45864 cat - <<_ACEOF >conftest.h
45869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45870 echo "obj-m := conftest.o" >build/Makefile
45872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45873 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45875 (eval $ac_try) 2>&5
45877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45880 (eval $ac_try) 2>&5
45882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883 (exit $ac_status); }; }; then
45885 { $as_echo "$as_me:$LINENO: result: yes" >&5
45886 $as_echo "yes" >&6; }
45888 cat >>confdefs.h <<\_ACEOF
45889 #define HAVE_VFS_ITERATE 1
45894 $as_echo "$as_me: failed program was:" >&5
45895 sed 's
/^
/|
/' conftest.$ac_ext >&5
45897 { $as_echo "$as_me:$LINENO: result: no" >&5
45898 $as_echo "no" >&6; }
45900 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
45901 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
45904 cat confdefs.h - <<_ACEOF >conftest.c
45907 cat confdefs.h >>conftest.$ac_ext
45908 cat >>conftest.$ac_ext <<_ACEOF
45909 /* end confdefs.h. */
45912 #include <linux/fs.h>
45913 int readdir(struct file *filp, void *entry,
45914 filldir_t func) { return 0; }
45916 static const struct file_operations fops
45917 __attribute__ ((unused)) = {
45918 .readdir = readdir,
45934 cat - <<_ACEOF >conftest.h
45939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45940 echo "obj-m := conftest.o" >build/Makefile
45942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45943 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45945 (eval $ac_try) 2>&5
45947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45950 (eval $ac_try) 2>&5
45952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953 (exit $ac_status); }; }; then
45955 { $as_echo "$as_me:$LINENO: result: yes" >&5
45956 $as_echo "yes" >&6; }
45958 cat >>confdefs.h <<\_ACEOF
45959 #define HAVE_VFS_READDIR 1
45964 $as_echo "$as_me: failed program was:" >&5
45965 sed 's
/^
/|
/' conftest.$ac_ext >&5
45967 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
45968 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
45969 { (exit 1); exit 1; }; }
45995 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
45996 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
45999 cat confdefs.h - <<_ACEOF >conftest.c
46002 cat confdefs.h >>conftest.$ac_ext
46003 cat >>conftest.$ac_ext <<_ACEOF
46004 /* end confdefs.h. */
46007 #include <linux/fs.h>
46009 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
46011 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
46014 static const struct file_operations
46015 fops __attribute__ ((unused)) = {
46016 .read_iter = test_read,
46017 .write_iter = test_write,
46033 cat - <<_ACEOF >conftest.h
46038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46039 echo "obj-m := conftest.o" >build/Makefile
46041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46042 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044 (eval $ac_try) 2>&5
46046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46049 (eval $ac_try) 2>&5
46051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052 (exit $ac_status); }; }; then
46054 { $as_echo "$as_me:$LINENO: result: yes" >&5
46055 $as_echo "yes" >&6; }
46057 cat >>confdefs.h <<\_ACEOF
46058 #define HAVE_VFS_RW_ITERATE 1
46062 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
46063 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
46066 cat confdefs.h - <<_ACEOF >conftest.c
46069 cat confdefs.h >>conftest.$ac_ext
46070 cat >>conftest.$ac_ext <<_ACEOF
46071 /* end confdefs.h. */
46074 #include <linux/fs.h>
46080 ssize_t ret __attribute__ ((unused));
46081 struct file *filp = NULL;
46082 char __user *rbuf = NULL;
46083 const char __user *wbuf = NULL;
46087 ret = new_sync_read(filp, rbuf, len, &ppos);
46088 ret = new_sync_write(filp, wbuf, len, &ppos);
46098 cat - <<_ACEOF >conftest.h
46103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46104 echo "obj-m := conftest.o" >build/Makefile
46106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46107 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46109 (eval $ac_try) 2>&5
46111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46114 (eval $ac_try) 2>&5
46116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46117 (exit $ac_status); }; }; then
46119 { $as_echo "$as_me:$LINENO: result: yes" >&5
46120 $as_echo "yes" >&6; }
46122 cat >>confdefs.h <<\_ACEOF
46123 #define HAVE_NEW_SYNC_READ 1
46128 $as_echo "$as_me: failed program was:" >&5
46129 sed 's
/^
/|
/' conftest.$ac_ext >&5
46131 { $as_echo "$as_me:$LINENO: result: no" >&5
46132 $as_echo "no" >&6; }
46144 $as_echo "$as_me: failed program was:" >&5
46145 sed 's
/^
/|
/' conftest.$ac_ext >&5
46147 { $as_echo "$as_me:$LINENO: result: no" >&5
46148 $as_echo "no" >&6; }
46158 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
46159 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
46162 cat confdefs.h - <<_ACEOF >conftest.c
46165 cat confdefs.h >>conftest.$ac_ext
46166 cat >>conftest.$ac_ext <<_ACEOF
46167 /* end confdefs.h. */
46170 #include <linux/fs.h>
46177 struct kiocb *iocb = NULL;
46178 struct iov_iter *iov = NULL;
46179 generic_write_checks(iocb, iov);
46189 cat - <<_ACEOF >conftest.h
46194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46195 echo "obj-m := conftest.o" >build/Makefile
46197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46198 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46200 (eval $ac_try) 2>&5
46202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46205 (eval $ac_try) 2>&5
46207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46208 (exit $ac_status); }; }; then
46210 { $as_echo "$as_me:$LINENO: result: yes" >&5
46211 $as_echo "yes" >&6; }
46213 cat >>confdefs.h <<\_ACEOF
46214 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
46219 $as_echo "$as_me: failed program was:" >&5
46220 sed 's
/^
/|
/' conftest.$ac_ext >&5
46222 { $as_echo "$as_me:$LINENO: result: no" >&5
46223 $as_echo "no" >&6; }
46234 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
46235 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
46238 cat confdefs.h - <<_ACEOF >conftest.c
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h. */
46246 #include <linux/pagemap.h>
46253 kmap_atomic(&page);
46263 cat - <<_ACEOF >conftest.h
46268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46269 echo "obj-m := conftest.o" >build/Makefile
46271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46272 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46274 (eval $ac_try) 2>&5
46276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46279 (eval $ac_try) 2>&5
46281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46282 (exit $ac_status); }; }; then
46284 { $as_echo "$as_me:$LINENO: result: yes" >&5
46285 $as_echo "yes" >&6; }
46287 cat >>confdefs.h <<\_ACEOF
46288 #define HAVE_1ARG_KMAP_ATOMIC 1
46293 $as_echo "$as_me: failed program was:" >&5
46294 sed 's
/^
/|
/' conftest.$ac_ext >&5
46296 { $as_echo "$as_me:$LINENO: result: no" >&5
46297 $as_echo "no" >&6; }
46308 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
46309 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
46312 cat confdefs.h - <<_ACEOF >conftest.c
46315 cat confdefs.h >>conftest.$ac_ext
46316 cat >>conftest.$ac_ext <<_ACEOF
46317 /* end confdefs.h. */
46320 #include <linux/namei.h>
46326 struct path *p = NULL;
46327 follow_down_one(p);
46337 cat - <<_ACEOF >conftest.h
46342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46343 echo "obj-m := conftest.o" >build/Makefile
46345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46346 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46348 (eval $ac_try) 2>&5
46350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46353 (eval $ac_try) 2>&5
46355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356 (exit $ac_status); }; }; then
46358 { $as_echo "$as_me:$LINENO: result: yes" >&5
46359 $as_echo "yes" >&6; }
46361 cat >>confdefs.h <<\_ACEOF
46362 #define HAVE_FOLLOW_DOWN_ONE 1
46367 $as_echo "$as_me: failed program was:" >&5
46368 sed 's
/^
/|
/' conftest.$ac_ext >&5
46370 { $as_echo "$as_me:$LINENO: result: no" >&5
46371 $as_echo "no" >&6; }
46382 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
46383 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
46386 cat confdefs.h - <<_ACEOF >conftest.c
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h. */
46394 #include <linux/blkdev.h>
46396 int make_request(struct request_queue *q, struct bio *bio)
46405 blk_queue_make_request(NULL, &make_request);
46415 cat - <<_ACEOF >conftest.h
46420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46421 echo "obj-m := conftest.o" >build/Makefile
46423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46424 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46426 (eval $ac_try) 2>&5
46428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46431 (eval $ac_try) 2>&5
46433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434 (exit $ac_status); }; }; then
46436 { $as_echo "$as_me:$LINENO: result: yes" >&5
46437 $as_echo "yes" >&6; }
46439 cat >>confdefs.h <<\_ACEOF
46440 #define MAKE_REQUEST_FN_RET int
46444 cat >>confdefs.h <<\_ACEOF
46445 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
46450 $as_echo "$as_me: failed program was:" >&5
46451 sed 's
/^
/|
/' conftest.$ac_ext >&5
46453 { $as_echo "$as_me:$LINENO: result: no" >&5
46454 $as_echo "no" >&6; }
46455 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
46456 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
46459 cat confdefs.h - <<_ACEOF >conftest.c
46462 cat confdefs.h >>conftest.$ac_ext
46463 cat >>conftest.$ac_ext <<_ACEOF
46464 /* end confdefs.h. */
46467 #include <linux/blkdev.h>
46469 void make_request(struct request_queue *q, struct bio *bio)
46478 blk_queue_make_request(NULL, &make_request);
46488 cat - <<_ACEOF >conftest.h
46493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46494 echo "obj-m := conftest.o" >build/Makefile
46496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46497 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46499 (eval $ac_try) 2>&5
46501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46504 (eval $ac_try) 2>&5
46506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46507 (exit $ac_status); }; }; then
46509 { $as_echo "$as_me:$LINENO: result: yes" >&5
46510 $as_echo "yes" >&6; }
46512 cat >>confdefs.h <<\_ACEOF
46513 #define MAKE_REQUEST_FN_RET void
46518 $as_echo "$as_me: failed program was:" >&5
46519 sed 's
/^
/|
/' conftest.$ac_ext >&5
46521 { $as_echo "$as_me:$LINENO: result: no" >&5
46522 $as_echo "no" >&6; }
46523 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
46524 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
46527 cat confdefs.h - <<_ACEOF >conftest.c
46530 cat confdefs.h >>conftest.$ac_ext
46531 cat >>conftest.$ac_ext <<_ACEOF
46532 /* end confdefs.h. */
46535 #include <linux/blkdev.h>
46537 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
46539 return (BLK_QC_T_NONE);
46546 blk_queue_make_request(NULL, &make_request);
46556 cat - <<_ACEOF >conftest.h
46561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46562 echo "obj-m := conftest.o" >build/Makefile
46564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46565 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46567 (eval $ac_try) 2>&5
46569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46572 (eval $ac_try) 2>&5
46574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); }; }; then
46577 { $as_echo "$as_me:$LINENO: result: yes" >&5
46578 $as_echo "yes" >&6; }
46580 cat >>confdefs.h <<\_ACEOF
46581 #define MAKE_REQUEST_FN_RET blk_qc_t
46585 cat >>confdefs.h <<\_ACEOF
46586 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
46591 $as_echo "$as_me: failed program was:" >&5
46592 sed 's
/^
/|
/' conftest.$ac_ext >&5
46594 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
46595 https://github.com/zfsonlinux/zfs/issues/new" >&5
46596 $as_echo "$as_me: error: no - Please file a bug report at
46597 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
46598 { (exit 1); exit 1; }; }
46625 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
46626 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
46630 cat confdefs.h - <<_ACEOF >conftest.c
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h. */
46638 #include <linux/bio.h>
46640 void (*generic_start_io_acct_f)(int, unsigned long,
46641 struct hd_struct *) = &generic_start_io_acct;
46642 void (*generic_end_io_acct_f)(int, struct hd_struct *,
46643 unsigned long) = &generic_end_io_acct;
46649 generic_start_io_acct(0, 0, NULL);
46650 generic_end_io_acct(0, NULL, 0);
46660 cat - <<_ACEOF >conftest.h
46665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46666 echo "obj-m := conftest.o" >build/Makefile
46668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46669 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46671 (eval $ac_try) 2>&5
46673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46676 (eval $ac_try) 2>&5
46678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679 (exit $ac_status); }; }; then
46682 $as_echo "$as_me: failed program was:" >&5
46683 sed 's
/^
/|
/' conftest.$ac_ext >&5
46692 if test $rc -ne 0; then :
46694 { $as_echo "$as_me:$LINENO: result: no" >&5
46695 $as_echo "no" >&6; }
46698 if test "x$enable_linux_builtin" != xyes; then
46700 grep -q -E '[[:space
:]]generic_start_io_acct
[[:space
:]]' \
46701 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46703 if test $rc -ne 0; then
46705 for file in block/bio.c; do
46706 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46707 "$LINUX/$file" 2>/dev/null
46709 if test $rc -eq 0; then
46714 if test $export -eq 0; then :
46724 if test $rc -ne 0; then :
46726 { $as_echo "$as_me:$LINENO: result: no" >&5
46727 $as_echo "no" >&6; }
46731 { $as_echo "$as_me:$LINENO: result: yes" >&5
46732 $as_echo "yes" >&6; }
46734 cat >>confdefs.h <<\_ACEOF
46735 #define HAVE_GENERIC_IO_ACCT_3ARG 1
46744 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
46745 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
46749 cat confdefs.h - <<_ACEOF >conftest.c
46752 cat confdefs.h >>conftest.$ac_ext
46753 cat >>conftest.$ac_ext <<_ACEOF
46754 /* end confdefs.h. */
46757 #include <linux/bio.h>
46759 void (*generic_start_io_acct_f)(struct request_queue *, int,
46760 unsigned long, struct hd_struct *) = &generic_start_io_acct;
46761 void (*generic_end_io_acct_f)(struct request_queue *, int,
46762 struct hd_struct *, unsigned long) = &generic_end_io_acct;
46768 generic_start_io_acct(NULL, 0, 0, NULL);
46769 generic_end_io_acct(NULL, 0, NULL, 0);
46779 cat - <<_ACEOF >conftest.h
46784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46785 echo "obj-m := conftest.o" >build/Makefile
46787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46788 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46790 (eval $ac_try) 2>&5
46792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46795 (eval $ac_try) 2>&5
46797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798 (exit $ac_status); }; }; then
46801 $as_echo "$as_me: failed program was:" >&5
46802 sed 's
/^
/|
/' conftest.$ac_ext >&5
46811 if test $rc -ne 0; then :
46813 { $as_echo "$as_me:$LINENO: result: no" >&5
46814 $as_echo "no" >&6; }
46817 if test "x$enable_linux_builtin" != xyes; then
46819 grep -q -E '[[:space
:]]generic_start_io_acct
[[:space
:]]' \
46820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46822 if test $rc -ne 0; then
46824 for file in block/bio.c; do
46825 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46826 "$LINUX/$file" 2>/dev/null
46828 if test $rc -eq 0; then
46833 if test $export -eq 0; then :
46843 if test $rc -ne 0; then :
46845 { $as_echo "$as_me:$LINENO: result: no" >&5
46846 $as_echo "no" >&6; }
46850 { $as_echo "$as_me:$LINENO: result: yes" >&5
46851 $as_echo "yes" >&6; }
46853 cat >>confdefs.h <<\_ACEOF
46854 #define HAVE_GENERIC_IO_ACCT_4ARG 1
46863 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
46864 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
46867 cat confdefs.h - <<_ACEOF >conftest.c
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h. */
46875 #include <linux/kernel.h>
46876 #include <asm/fpu/api.h>
46882 __kernel_fpu_begin();
46892 cat - <<_ACEOF >conftest.h
46897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46898 echo "obj-m := conftest.o" >build/Makefile
46900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46901 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46903 (eval $ac_try) 2>&5
46905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46906 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46908 (eval $ac_try) 2>&5
46910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911 (exit $ac_status); }; }; then
46913 { $as_echo "$as_me:$LINENO: result: yes" >&5
46914 $as_echo "yes" >&6; }
46916 cat >>confdefs.h <<\_ACEOF
46917 #define HAVE_FPU_API_H 1
46922 $as_echo "$as_me: failed program was:" >&5
46923 sed 's
/^
/|
/' conftest.$ac_ext >&5
46925 { $as_echo "$as_me:$LINENO: result: no" >&5
46926 $as_echo "no" >&6; }
46937 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
46938 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
46941 cat confdefs.h - <<_ACEOF >conftest.c
46944 cat confdefs.h >>conftest.$ac_ext
46945 cat >>conftest.$ac_ext <<_ACEOF
46946 /* end confdefs.h. */
46949 #include <linux/fs.h>
46955 struct inode *ip = NULL;
46956 (void) i_uid_read(ip);
46966 cat - <<_ACEOF >conftest.h
46971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46972 echo "obj-m := conftest.o" >build/Makefile
46974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
46975 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
46981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46982 (eval $ac_try) 2>&5
46984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46985 (exit $ac_status); }; }; then
46987 { $as_echo "$as_me:$LINENO: result: yes" >&5
46988 $as_echo "yes" >&6; }
46990 cat >>confdefs.h <<\_ACEOF
46991 #define HAVE_KUID_HELPERS 1
46996 $as_echo "$as_me: failed program was:" >&5
46997 sed 's
/^
/|
/' conftest.$ac_ext >&5
46999 { $as_echo "$as_me:$LINENO: result: no" >&5
47000 $as_echo "no" >&6; }
47011 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
47012 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
47015 cat confdefs.h - <<_ACEOF >conftest.c
47018 cat confdefs.h >>conftest.$ac_ext
47019 cat >>conftest.$ac_ext <<_ACEOF
47020 /* end confdefs.h. */
47023 #include <linux/module.h>
47024 #include <linux/moduleparam.h>
47026 int param_get(char *b, const struct kernel_param *kp)
47031 int param_set(const char *b, const struct kernel_param *kp)
47036 module_param_call(p, param_set, param_get, NULL, 0644);
47051 cat - <<_ACEOF >conftest.h
47056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47057 echo "obj-m := conftest.o" >build/Makefile
47059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47060 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47062 (eval $ac_try) 2>&5
47064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47065 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067 (eval $ac_try) 2>&5
47069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); }; }; then
47072 { $as_echo "$as_me:$LINENO: result: yes" >&5
47073 $as_echo "yes" >&6; }
47075 cat >>confdefs.h <<\_ACEOF
47076 #define MODULE_PARAM_CALL_CONST 1
47081 $as_echo "$as_me: failed program was:" >&5
47082 sed 's
/^
/|
/' conftest.$ac_ext >&5
47084 { $as_echo "$as_me:$LINENO: result: no" >&5
47085 $as_echo "no" >&6; }
47096 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
47097 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
47100 cat confdefs.h - <<_ACEOF >conftest.c
47103 cat confdefs.h >>conftest.$ac_ext
47104 cat >>conftest.$ac_ext <<_ACEOF
47105 /* end confdefs.h. */
47108 #include <linux/fs.h>
47109 int rename_fn(struct inode *sip, struct dentry *sdp,
47110 struct inode *tip, struct dentry *tdp,
47111 unsigned int flags) { return 0; }
47113 static const struct inode_operations
47114 iops __attribute__ ((unused)) = {
47115 .rename = rename_fn,
47131 cat - <<_ACEOF >conftest.h
47136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47137 echo "obj-m := conftest.o" >build/Makefile
47139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47140 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47142 (eval $ac_try) 2>&5
47144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47147 (eval $ac_try) 2>&5
47149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150 (exit $ac_status); }; }; then
47152 { $as_echo "$as_me:$LINENO: result: yes" >&5
47153 $as_echo "yes" >&6; }
47155 cat >>confdefs.h <<\_ACEOF
47156 #define HAVE_RENAME_WANTS_FLAGS 1
47161 $as_echo "$as_me: failed program was:" >&5
47162 sed 's
/^
/|
/' conftest.$ac_ext >&5
47164 { $as_echo "$as_me:$LINENO: result: no" >&5
47165 $as_echo "no" >&6; }
47176 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
47177 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
47180 cat confdefs.h - <<_ACEOF >conftest.c
47183 cat confdefs.h >>conftest.$ac_ext
47184 cat >>conftest.$ac_ext <<_ACEOF
47185 /* end confdefs.h. */
47188 #include <linux/fs.h>
47189 #include <linux/xattr.h>
47191 static const struct inode_operations
47192 iops __attribute__ ((unused)) = {
47193 .setxattr = generic_setxattr
47209 cat - <<_ACEOF >conftest.h
47214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47215 echo "obj-m := conftest.o" >build/Makefile
47217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47218 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47220 (eval $ac_try) 2>&5
47222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47225 (eval $ac_try) 2>&5
47227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); }; }; then
47230 { $as_echo "$as_me:$LINENO: result: yes" >&5
47231 $as_echo "yes" >&6; }
47233 cat >>confdefs.h <<\_ACEOF
47234 #define HAVE_GENERIC_SETXATTR 1
47239 $as_echo "$as_me: failed program was:" >&5
47240 sed 's
/^
/|
/' conftest.$ac_ext >&5
47242 { $as_echo "$as_me:$LINENO: result: no" >&5
47243 $as_echo "no" >&6; }
47253 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
47254 $as_echo_n "checking whether current_time() exists... " >&6; }
47258 cat confdefs.h - <<_ACEOF >conftest.c
47261 cat confdefs.h >>conftest.$ac_ext
47262 cat >>conftest.$ac_ext <<_ACEOF
47263 /* end confdefs.h. */
47266 #include <linux/fs.h>
47272 struct inode ip __attribute__ ((unused));
47273 ip.i_atime = current_time(&ip);
47283 cat - <<_ACEOF >conftest.h
47288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47289 echo "obj-m := conftest.o" >build/Makefile
47291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47292 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47294 (eval $ac_try) 2>&5
47296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47299 (eval $ac_try) 2>&5
47301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47302 (exit $ac_status); }; }; then
47305 $as_echo "$as_me: failed program was:" >&5
47306 sed 's
/^
/|
/' conftest.$ac_ext >&5
47315 if test $rc -ne 0; then :
47317 { $as_echo "$as_me:$LINENO: result: no" >&5
47318 $as_echo "no" >&6; }
47321 if test "x$enable_linux_builtin" != xyes; then
47323 grep -q -E '[[:space
:]]current_time
[[:space
:]]' \
47324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
47326 if test $rc -ne 0; then
47328 for file in fs/inode.c; do
47329 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
47330 "$LINUX/$file" 2>/dev/null
47332 if test $rc -eq 0; then
47337 if test $export -eq 0; then :
47347 if test $rc -ne 0; then :
47349 { $as_echo "$as_me:$LINENO: result: no" >&5
47350 $as_echo "no" >&6; }
47354 { $as_echo "$as_me:$LINENO: result: yes" >&5
47355 $as_echo "yes" >&6; }
47357 cat >>confdefs.h <<\_ACEOF
47358 #define HAVE_CURRENT_TIME 1
47368 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
47369 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
47372 cat confdefs.h - <<_ACEOF >conftest.c
47375 cat confdefs.h >>conftest.$ac_ext
47376 cat >>conftest.$ac_ext <<_ACEOF
47377 /* end confdefs.h. */
47380 #include <linux/mm.h>
47381 #include <linux/vmstat.h>
47387 (void) global_node_page_state(0);
47397 cat - <<_ACEOF >conftest.h
47402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47403 echo "obj-m := conftest.o" >build/Makefile
47405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47406 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47408 (eval $ac_try) 2>&5
47410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413 (eval $ac_try) 2>&5
47415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416 (exit $ac_status); }; }; then
47418 { $as_echo "$as_me:$LINENO: result: yes" >&5
47419 $as_echo "yes" >&6; }
47421 cat >>confdefs.h <<\_ACEOF
47422 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
47427 $as_echo "$as_me: failed program was:" >&5
47428 sed 's
/^
/|
/' conftest.$ac_ext >&5
47430 { $as_echo "$as_me:$LINENO: result: no" >&5
47431 $as_echo "no" >&6; }
47442 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
47443 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
47446 cat confdefs.h - <<_ACEOF >conftest.c
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h. */
47454 #include <linux/mm.h>
47455 #include <linux/vmstat.h>
47461 (void) global_zone_page_state(0);
47471 cat - <<_ACEOF >conftest.h
47476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47477 echo "obj-m := conftest.o" >build/Makefile
47479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
47480 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
47481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482 (eval $ac_try) 2>&5
47484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
47486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47487 (eval $ac_try) 2>&5
47489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47490 (exit $ac_status); }; }; then
47492 { $as_echo "$as_me:$LINENO: result: yes" >&5
47493 $as_echo "yes" >&6; }
47495 cat >>confdefs.h <<\_ACEOF
47496 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
47501 $as_echo "$as_me: failed program was:" >&5
47502 sed 's
/^
/|
/' conftest.$ac_ext >&5
47504 { $as_echo "$as_me:$LINENO: result: no" >&5
47505 $as_echo "no" >&6; }
47517 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
47518 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
47519 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_FILE_PAGES
'
47520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47521 (eval $ac_try) 2>&5
47523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47524 (exit $ac_status); }; }; then
47526 { $as_echo "$as_me:$LINENO: result: yes" >&5
47527 $as_echo "yes" >&6; }
47529 cat >>confdefs.h <<\_ACEOF
47530 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
47533 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
47537 { $as_echo "$as_me:$LINENO: result: no" >&5
47538 $as_echo "no" >&6; }
47544 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
47545 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
47546 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_INACTIVE_ANON
'
47547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47548 (eval $ac_try) 2>&5
47550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); }; }; then
47553 { $as_echo "$as_me:$LINENO: result: yes" >&5
47554 $as_echo "yes" >&6; }
47556 cat >>confdefs.h <<\_ACEOF
47557 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
47560 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
47564 { $as_echo "$as_me:$LINENO: result: no" >&5
47565 $as_echo "no" >&6; }
47571 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
47572 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
47573 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_INACTIVE_FILE
'
47574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47575 (eval $ac_try) 2>&5
47577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47578 (exit $ac_status); }; }; then
47580 { $as_echo "$as_me:$LINENO: result: yes" >&5
47581 $as_echo "yes" >&6; }
47583 cat >>confdefs.h <<\_ACEOF
47584 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
47587 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
47591 { $as_echo "$as_me:$LINENO: result: no" >&5
47592 $as_echo "no" >&6; }
47598 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47599 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47600 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_SLAB_RECLAIMABLE
'
47601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47602 (eval $ac_try) 2>&5
47604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); }; }; then
47607 { $as_echo "$as_me:$LINENO: result: yes" >&5
47608 $as_echo "yes" >&6; }
47610 cat >>confdefs.h <<\_ACEOF
47611 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47614 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47618 { $as_echo "$as_me:$LINENO: result: no" >&5
47619 $as_echo "no" >&6; }
47626 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
47627 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
47628 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_FILE_PAGES
'
47629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47630 (eval $ac_try) 2>&5
47632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47633 (exit $ac_status); }; }; then
47635 { $as_echo "$as_me:$LINENO: result: yes" >&5
47636 $as_echo "yes" >&6; }
47638 cat >>confdefs.h <<\_ACEOF
47639 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
47642 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
47646 { $as_echo "$as_me:$LINENO: result: no" >&5
47647 $as_echo "no" >&6; }
47653 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
47654 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
47655 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_INACTIVE_ANON
'
47656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657 (eval $ac_try) 2>&5
47659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660 (exit $ac_status); }; }; then
47662 { $as_echo "$as_me:$LINENO: result: yes" >&5
47663 $as_echo "yes" >&6; }
47665 cat >>confdefs.h <<\_ACEOF
47666 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
47669 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
47673 { $as_echo "$as_me:$LINENO: result: no" >&5
47674 $as_echo "no" >&6; }
47680 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
47681 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
47682 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_INACTIVE_FILE
'
47683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47684 (eval $ac_try) 2>&5
47686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47687 (exit $ac_status); }; }; then
47689 { $as_echo "$as_me:$LINENO: result: yes" >&5
47690 $as_echo "yes" >&6; }
47692 cat >>confdefs.h <<\_ACEOF
47693 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
47696 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
47700 { $as_echo "$as_me:$LINENO: result: no" >&5
47701 $as_echo "no" >&6; }
47707 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47708 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47709 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" |
egrep -qx NR_SLAB_RECLAIMABLE
'
47710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47711 (eval $ac_try) 2>&5
47713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714 (exit $ac_status); }; }; then
47716 { $as_echo "$as_me:$LINENO: result: yes" >&5
47717 $as_echo "yes" >&6; }
47719 cat >>confdefs.h <<\_ACEOF
47720 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47723 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47727 { $as_echo "$as_me:$LINENO: result: no" >&5
47728 $as_echo "no" >&6; }
47735 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
47736 $as_echo_n "checking global_page_state enums are sane... " >&6; }
47739 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
47740 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
47741 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47744 { $as_echo "$as_me:$LINENO: result: no" >&5
47745 $as_echo "no" >&6; }
47746 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47747 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47748 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47749 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47751 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
47752 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47753 See \`config.log
' for more details." >&5
47754 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY
, SHE
'S PUMPIN' MUD
!
47755 See \
`config.log' for more details." >&2;}
47756 { (exit 1); exit 1; }; }; }
47761 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47764 { $as_echo "$as_me:$LINENO: result: no" >&5
47765 $as_echo "no" >&6; }
47766 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47767 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47768 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47769 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47770 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47772 { { $as_echo "$as_me:$LINENO: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47773 See \`config.log' for more details.
" >&5
47774 $as_echo "$as_me: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47775 See \`config.log' for more details.
" >&2;}
47776 { (exit 1); exit 1; }; }; }
47783 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
47784 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
47785 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47788 { $as_echo "$as_me:$LINENO: result
: no
" >&5
47789 $as_echo "no
" >&6; }
47790 { $as_echo "$as_me:$LINENO: result
: NR_INACTIVE_ANON
in either node_stat_item or zone_stat_item
: DUPLICATE
" >&5
47791 $as_echo "NR_INACTIVE_ANON
in either node_stat_item or zone_stat_item
: DUPLICATE
" >&6; }
47792 { $as_echo "$as_me:$LINENO: result
: configure needs updating
, see
: config
/kernel-global_page_state.
m4" >&5
47793 $as_echo "configure needs updating
, see
: config
/kernel-global_page_state.
m4" >&6; }
47794 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
47795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47796 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY
, SHE
'S PUMPIN' MUD
!
47797 See \
`config.log' for more details." >&5
47798 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47799 See \`config.log
' for more details." >&2;}
47800 { (exit 1); exit 1; }; }; }
47805 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47808 { $as_echo "$as_me:$LINENO: result: no" >&5
47809 $as_echo "no" >&6; }
47810 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47811 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47812 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47813 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47814 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47815 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
47816 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47817 See \`config.log
' for more details." >&5
47818 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY
, SHE
'S PUMPIN' MUD
!
47819 See \
`config.log' for more details." >&2;}
47820 { (exit 1); exit 1; }; }; }
47827 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
47828 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
47829 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47832 { $as_echo "$as_me:$LINENO: result: no" >&5
47833 $as_echo "no" >&6; }
47834 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47835 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47836 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47837 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47840 { { $as_echo "$as_me:$LINENO: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47841 See \`config.log' for more details.
" >&5
47842 $as_echo "$as_me: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47843 See \`config.log' for more details.
" >&2;}
47844 { (exit 1); exit 1; }; }; }
47849 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47852 { $as_echo "$as_me:$LINENO: result
: no
" >&5
47853 $as_echo "no
" >&6; }
47854 { $as_echo "$as_me:$LINENO: result
: NR_INACTIVE_FILE
in either node_stat_item or zone_stat_item
: NOT FOUND
" >&5
47855 $as_echo "NR_INACTIVE_FILE
in either node_stat_item or zone_stat_item
: NOT FOUND
" >&6; }
47856 { $as_echo "$as_me:$LINENO: result
: configure needs updating
, see
: config
/kernel-global_page_state.
m4" >&5
47857 $as_echo "configure needs updating
, see
: config
/kernel-global_page_state.
m4" >&6; }
47858 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
47859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47860 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY
, SHE
'S PUMPIN' MUD
!
47861 See \
`config.log' for more details." >&5
47862 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47863 See \`config.log
' for more details." >&2;}
47864 { (exit 1); exit 1; }; }; }
47871 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47872 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47873 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47876 { $as_echo "$as_me:$LINENO: result: no" >&5
47877 $as_echo "no" >&6; }
47878 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47879 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47880 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47881 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47883 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
47884 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47885 See \`config.log
' for more details." >&5
47886 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY
, SHE
'S PUMPIN' MUD
!
47887 See \
`config.log' for more details." >&2;}
47888 { (exit 1); exit 1; }; }; }
47893 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47896 { $as_echo "$as_me:$LINENO: result: no" >&5
47897 $as_echo "no" >&6; }
47898 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47899 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47900 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47901 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47904 { { $as_echo "$as_me:$LINENO: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47905 See \`config.log' for more details.
" >&5
47906 $as_echo "$as_me: error
: SHUT
'ER DOWN CLANCY, SHE'S PUMPIN
' MUD!
47907 See \`config.log' for more details.
" >&2;}
47908 { (exit 1); exit 1; }; }; }
47915 { $as_echo "$as_me:$LINENO: result
: yes" >&5
47916 $as_echo "yes" >&6; }
47920 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t
" >&5
47921 $as_echo_n "checking whether posix_acl has refcount_t...
" >&6; }
47924 cat confdefs.h - <<_ACEOF >conftest.c
47927 cat confdefs.h >>conftest.$ac_ext
47928 cat >>conftest.$ac_ext <<_ACEOF
47929 /* end confdefs.h. */
47932 #include <linux/backing-dev.h>
47933 #include <linux/refcount.h>
47934 #include <linux/posix_acl.h>
47940 struct posix_acl acl;
47941 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
47951 cat - <<_ACEOF >conftest.h
47956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47957 echo "obj-m
:= conftest.o
" >build/Makefile
47959 test "x
$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47962 (eval $ac_try) 2>&5
47964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
47965 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47967 (eval $ac_try) 2>&5
47969 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
47970 (exit $ac_status); }; }; then
47972 { $as_echo "$as_me:$LINENO: result
: yes" >&5
47973 $as_echo "yes" >&6; }
47975 cat >>confdefs.h <<\_ACEOF
47976 #define HAVE_ACL_REFCOUNT 1
47981 $as_echo "$as_me: failed program was
:" >&5
47982 sed 's/^/| /' conftest.$ac_ext >&5
47984 { $as_echo "$as_me:$LINENO: result
: no
" >&5
47985 $as_echo "no
" >&6; }
47997 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists
" >&5
47998 $as_echo_n "checking whether ns_capable exists...
" >&6; }
48001 cat confdefs.h - <<_ACEOF >conftest.c
48004 cat confdefs.h >>conftest.$ac_ext
48005 cat >>conftest.$ac_ext <<_ACEOF
48006 /* end confdefs.h. */
48009 #include <linux/capability.h>
48015 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
48025 cat - <<_ACEOF >conftest.h
48030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48031 echo "obj-m
:= conftest.o
" >build/Makefile
48033 test "x
$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48034 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48036 (eval $ac_try) 2>&5
48038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48041 (eval $ac_try) 2>&5
48043 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48044 (exit $ac_status); }; }; then
48046 { $as_echo "$as_me:$LINENO: result
: yes" >&5
48047 $as_echo "yes" >&6; }
48049 cat >>confdefs.h <<\_ACEOF
48050 #define HAVE_NS_CAPABLE 1
48055 $as_echo "$as_me: failed program was
:" >&5
48056 sed 's/^/| /' conftest.$ac_ext >&5
48058 { $as_echo "$as_me:$LINENO: result
: no
" >&5
48059 $as_echo "no
" >&6; }
48070 { $as_echo "$as_me:$LINENO: checking whether cred_t-
>user_ns exists
" >&5
48071 $as_echo_n "checking whether cred_t-
>user_ns exists...
" >&6; }
48074 cat confdefs.h - <<_ACEOF >conftest.c
48077 cat confdefs.h >>conftest.$ac_ext
48078 cat >>conftest.$ac_ext <<_ACEOF
48079 /* end confdefs.h. */
48082 #include <linux/cred.h>
48089 cr.user_ns = (struct user_namespace *)NULL;
48099 cat - <<_ACEOF >conftest.h
48104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48105 echo "obj-m
:= conftest.o
" >build/Makefile
48107 test "x
$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110 (eval $ac_try) 2>&5
48112 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48115 (eval $ac_try) 2>&5
48117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48118 (exit $ac_status); }; }; then
48120 { $as_echo "$as_me:$LINENO: result
: yes" >&5
48121 $as_echo "yes" >&6; }
48123 cat >>confdefs.h <<\_ACEOF
48124 #define HAVE_CRED_USER_NS 1
48129 $as_echo "$as_me: failed program was
:" >&5
48130 sed 's/^/| /' conftest.$ac_ext >&5
48132 { $as_echo "$as_me:$LINENO: result
: no
" >&5
48133 $as_echo "no
" >&6; }
48144 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping
/kgid_has_mapping exist
" >&5
48145 $as_echo_n "checking whether kuid_has_mapping
/kgid_has_mapping exist...
" >&6; }
48148 cat confdefs.h - <<_ACEOF >conftest.c
48151 cat confdefs.h >>conftest.$ac_ext
48152 cat >>conftest.$ac_ext <<_ACEOF
48153 /* end confdefs.h. */
48156 #include <linux/uidgid.h>
48162 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
48163 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
48173 cat - <<_ACEOF >conftest.h
48178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48179 echo "obj-m
:= conftest.o
" >build/Makefile
48181 test "x
$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48182 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48189 (eval $ac_try) 2>&5
48191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
48192 (exit $ac_status); }; }; then
48194 { $as_echo "$as_me:$LINENO: result
: yes" >&5
48195 $as_echo "yes" >&6; }
48197 cat >>confdefs.h <<\_ACEOF
48198 #define HAVE_KUID_HAS_MAPPING 1
48203 $as_echo "$as_me: failed program was
:" >&5
48204 sed 's/^/| /' conftest.$ac_ext >&5
48206 { $as_echo "$as_me:$LINENO: result
: no
" >&5
48207 $as_echo "no
" >&6; }
48219 if test "$LINUX_OBJ" != "$LINUX"; then
48221 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O
=$LINUX_OBJ"
48228 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99
"
48229 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
48230 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
48231 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
48232 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
48233 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel
\\\""
48239 { $as_echo "$as_me:$LINENO: result
: Error
!" >&5
48240 $as_echo "Error
!" >&6; }
48241 { { $as_echo "$as_me:$LINENO: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
48242 user kernel|user|all|srpm
" >&5
48243 $as_echo "$as_me: error
: Bad value
\"$ZFS_CONFIG\" for --with-config,
48244 user kernel|user|all|srpm
" >&2;}
48245 { (exit 1); exit 1; }; } ;;
48248 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
48250 CONFIG_USER_FALSE='#'
48252 CONFIG_USER_TRUE='#'
48256 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48257 test "x
$enable_linux_builtin" != xyes ; then
48258 CONFIG_KERNEL_TRUE=
48259 CONFIG_KERNEL_FALSE='#'
48261 CONFIG_KERNEL_TRUE='#'
48262 CONFIG_KERNEL_FALSE=
48265 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48266 test "x
$qatsrc" != x ; then
48268 CONFIG_QAT_FALSE='#'
48270 CONFIG_QAT_TRUE='#'
48274 if test "x
$user_libudev" = xyes ; then
48275 WANT_DEVNAME2DEVID_TRUE=
48276 WANT_DEVNAME2DEVID_FALSE='#'
48278 WANT_DEVNAME2DEVID_TRUE='#'
48279 WANT_DEVNAME2DEVID_FALSE=
48282 if test "x
$user_libaio" = xyes ; then
48283 WANT_MMAP_LIBAIO_TRUE=
48284 WANT_MMAP_LIBAIO_FALSE='#'
48286 WANT_MMAP_LIBAIO_TRUE='#'
48287 WANT_MMAP_LIBAIO_FALSE=
48292 { $as_echo "$as_me:$LINENO: checking whether assertion support will be enabled
" >&5
48293 $as_echo_n "checking whether assertion support will be enabled...
" >&6; }
48294 # Check whether --enable-debug was given.
48295 if test "${enable_debug+set}" = set; then
48296 enableval=$enable_debug;
48302 case "x
$enable_debug" in
48304 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
48305 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
48306 DEBUG_CFLAGS="-DDEBUG -Werror"
48307 DEBUG_ZFS="_with_debug
"
48309 cat >>confdefs.h <<\_ACEOF
48310 #define ZFS_DEBUG 1
48315 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
48316 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
48317 DEBUG_CFLAGS="-DNDEBUG"
48318 DEBUG_STACKFLAGS=""
48319 DEBUG_ZFS="_without_debug
"
48321 *) { { $as_echo "$as_me:$LINENO: error
: Unknown option
$enable_debug" >&5
48322 $as_echo "$as_me: error
: Unknown option
$enable_debug" >&2;}
48323 { (exit 1); exit 1; }; } ;;
48329 { $as_echo "$as_me:$LINENO: result
: $enable_debug" >&5
48330 $as_echo "$enable_debug" >&6; }
48333 { $as_echo "$as_me:$LINENO: checking whether debuginfo support will be forced
" >&5
48334 $as_echo_n "checking whether debuginfo support will be forced...
" >&6; }
48335 # Check whether --enable-debuginfo was given.
48336 if test "${enable_debuginfo+set}" = set; then
48337 enableval=$enable_debuginfo;
48339 enable_debuginfo=no
48343 case "x
$enable_debuginfo" in
48345 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO
=y
"
48346 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48349 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO
=y
"
48353 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48356 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48359 *) { { $as_echo "$as_me:$LINENO: error
: Unknown option
$enable_debug" >&5
48360 $as_echo "$as_me: error
: Unknown option
$enable_debug" >&2;}
48361 { (exit 1); exit 1; }; } ;;
48366 { $as_echo "$as_me:$LINENO: result
: $enable_debuginfo" >&5
48367 $as_echo "$enable_debuginfo" >&6; }
48370 ac_config_files="$ac_config_files Makefile udev
/Makefile udev
/rules.d
/Makefile etc
/Makefile etc
/init.d
/Makefile etc
/zfs
/Makefile etc
/systemd
/Makefile etc
/systemd
/system
/Makefile etc
/sudoers.d
/Makefile etc
/modules-load.d
/Makefile man
/Makefile man
/man
1/Makefile man
/man
5/Makefile man
/man
8/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
/dktp
/Makefile lib
/libspl
/include
/util
/Makefile lib
/libavl
/Makefile lib
/libefi
/Makefile lib
/libicp
/Makefile lib
/libnvpair
/Makefile lib
/libunicode
/Makefile lib
/libuutil
/Makefile lib
/libzpool
/Makefile lib
/libzfs
/libzfs.pc lib
/libzfs
/libzfs_core.pc lib
/libzfs
/Makefile lib
/libzfs_core
/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 cmd
/dbufstat
/Makefile cmd
/arc_summary
/Makefile cmd
/zed
/Makefile cmd
/raidz_test
/Makefile cmd
/zgenhostid
/Makefile contrib
/Makefile contrib
/bash_completion.d
/Makefile contrib
/dracut
/Makefile contrib
/dracut
/02zfsexpandknowledge
/Makefile contrib
/dracut
/90zfs
/Makefile contrib
/initramfs
/Makefile module
/Makefile module
/avl
/Makefile module
/nvpair
/Makefile module
/unicode
/Makefile module
/zcommon
/Makefile module
/zfs
/Makefile module
/zpios
/Makefile module
/icp
/Makefile include
/Makefile include
/linux
/Makefile include
/sys
/Makefile include
/sys
/fs
/Makefile include
/sys
/fm
/Makefile include
/sys
/fm
/fs
/Makefile include
/sys
/crypto
/Makefile include
/sys
/sysevent
/Makefile
scripts
/Makefile
scripts
/zpios-profile
/Makefile
scripts
/zpios-test
/Makefile
scripts
/zpool-config
/Makefile
scripts
/common.sh
tests
/Makefile
tests
/test-runner
/Makefile
tests
/test-runner
/cmd
/Makefile
tests
/test-runner
/include
/Makefile
tests
/test-runner
/man
/Makefile
tests
/runfiles
/Makefile
tests
/zfs-tests
/Makefile
tests
/zfs-tests
/callbacks
/Makefile
tests
/zfs-tests
/cmd
/Makefile
tests
/zfs-tests
/cmd
/chg_usr_exec
/Makefile
tests
/zfs-tests
/cmd
/user_ns_exec
/Makefile
tests
/zfs-tests
/cmd
/devname2devid
/Makefile
tests
/zfs-tests
/cmd
/dir_rd_update
/Makefile
tests
/zfs-tests
/cmd
/file_check
/Makefile
tests
/zfs-tests
/cmd
/file_trunc
/Makefile
tests
/zfs-tests
/cmd
/file_write
/Makefile
tests
/zfs-tests
/cmd
/largest_file
/Makefile
tests
/zfs-tests
/cmd
/mkbusy
/Makefile
tests
/zfs-tests
/cmd
/mkfile
/Makefile
tests
/zfs-tests
/cmd
/mkfiles
/Makefile
tests
/zfs-tests
/cmd
/mktree
/Makefile
tests
/zfs-tests
/cmd
/mmap_exec
/Makefile
tests
/zfs-tests
/cmd
/mmap_libaio
/Makefile
tests
/zfs-tests
/cmd
/mmapwrite
/Makefile
tests
/zfs-tests
/cmd
/randfree_file
/Makefile
tests
/zfs-tests
/cmd
/readmmap
/Makefile
tests
/zfs-tests
/cmd
/rename_dir
/Makefile
tests
/zfs-tests
/cmd
/rm_lnkcnt_zero_file
/Makefile
tests
/zfs-tests
/cmd
/threadsappend
/Makefile
tests
/zfs-tests
/cmd
/xattrtest
/Makefile
tests
/zfs-tests
/include
/Makefile
tests
/zfs-tests
/include
/default.cfg
tests
/zfs-tests
/tests
/Makefile
tests
/zfs-tests
/tests
/functional
/Makefile
tests
/zfs-tests
/tests
/functional
/acl
/Makefile
tests
/zfs-tests
/tests
/functional
/acl
/posix
/Makefile
tests
/zfs-tests
/tests
/functional
/atime
/Makefile
tests
/zfs-tests
/tests
/functional
/bootfs
/Makefile
tests
/zfs-tests
/tests
/functional
/cache
/Makefile
tests
/zfs-tests
/tests
/functional
/cachefile
/Makefile
tests
/zfs-tests
/tests
/functional
/casenorm
/Makefile
tests
/zfs-tests
/tests
/functional
/checksum
/Makefile
tests
/zfs-tests
/tests
/functional
/chattr
/Makefile
tests
/zfs-tests
/tests
/functional
/clean_mirror
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zdb
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_clone
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_copies
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_create
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_destroy
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_get
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_inherit
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_mount
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_promote
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_property
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_receive
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_rename
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_reservation
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_rollback
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_send
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_set
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_share
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_snapshot
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_unmount
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_unshare
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zfs_upgrade
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_add
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_attach
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_clear
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_create
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_destroy
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_detach
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_expand
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_export
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_get
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_history
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_import
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_labelclear
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_offline
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_online
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_remove
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_replace
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_scrub
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_set
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_status
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_sync
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_root
/zpool_upgrade
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_user
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_user
/misc
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_user
/zfs_list
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_user
/zpool_iostat
/Makefile
tests
/zfs-tests
/tests
/functional
/cli_user
/zpool_list
/Makefile
tests
/zfs-tests
/tests
/functional
/compression
/Makefile
tests
/zfs-tests
/tests
/functional
/cp_files
/Makefile
tests
/zfs-tests
/tests
/functional
/ctime
/Makefile
tests
/zfs-tests
/tests
/functional
/delegate
/Makefile
tests
/zfs-tests
/tests
/functional
/devices
/Makefile
tests
/zfs-tests
/tests
/functional
/events
/Makefile
tests
/zfs-tests
/tests
/functional
/exec
/Makefile
tests
/zfs-tests
/tests
/functional
/fault
/Makefile
tests
/zfs-tests
/tests
/functional
/features
/async_destroy
/Makefile
tests
/zfs-tests
/tests
/functional
/features
/large_dnode
/Makefile
tests
/zfs-tests
/tests
/functional
/features
/Makefile
tests
/zfs-tests
/tests
/functional
/grow_pool
/Makefile
tests
/zfs-tests
/tests
/functional
/grow_replicas
/Makefile
tests
/zfs-tests
/tests
/functional
/history
/Makefile
tests
/zfs-tests
/tests
/functional
/inheritance
/Makefile
tests
/zfs-tests
/tests
/functional
/inuse
/Makefile
tests
/zfs-tests
/tests
/functional
/kstat
/Makefile
tests
/zfs-tests
/tests
/functional
/large_files
/Makefile
tests
/zfs-tests
/tests
/functional
/largest_pool
/Makefile
tests
/zfs-tests
/tests
/functional
/link_count
/Makefile
tests
/zfs-tests
/tests
/functional
/libzfs
/Makefile
tests
/zfs-tests
/tests
/functional
/migration
/Makefile
tests
/zfs-tests
/tests
/functional
/mmap
/Makefile
tests
/zfs-tests
/tests
/functional
/mmp
/Makefile
tests
/zfs-tests
/tests
/functional
/mount
/Makefile
tests
/zfs-tests
/tests
/functional
/mv_files
/Makefile
tests
/zfs-tests
/tests
/functional
/nestedfs
/Makefile
tests
/zfs-tests
/tests
/functional
/no_space
/Makefile
tests
/zfs-tests
/tests
/functional
/nopwrite
/Makefile
tests
/zfs-tests
/tests
/functional
/online_offline
/Makefile
tests
/zfs-tests
/tests
/functional
/pool_names
/Makefile
tests
/zfs-tests
/tests
/functional
/poolversion
/Makefile
tests
/zfs-tests
/tests
/functional
/privilege
/Makefile
tests
/zfs-tests
/tests
/functional
/quota
/Makefile
tests
/zfs-tests
/tests
/functional
/raidz
/Makefile
tests
/zfs-tests
/tests
/functional
/redundancy
/Makefile
tests
/zfs-tests
/tests
/functional
/refquota
/Makefile
tests
/zfs-tests
/tests
/functional
/refreserv
/Makefile
tests
/zfs-tests
/tests
/functional
/rename_dirs
/Makefile
tests
/zfs-tests
/tests
/functional
/replacement
/Makefile
tests
/zfs-tests
/tests
/functional
/reservation
/Makefile
tests
/zfs-tests
/tests
/functional
/rootpool
/Makefile
tests
/zfs-tests
/tests
/functional
/rsend
/Makefile
tests
/zfs-tests
/tests
/functional
/scrub_mirror
/Makefile
tests
/zfs-tests
/tests
/functional
/slog
/Makefile
tests
/zfs-tests
/tests
/functional
/snapshot
/Makefile
tests
/zfs-tests
/tests
/functional
/snapused
/Makefile
tests
/zfs-tests
/tests
/functional
/sparse
/Makefile
tests
/zfs-tests
/tests
/functional
/threadsappend
/Makefile
tests
/zfs-tests
/tests
/functional
/tmpfile
/Makefile
tests
/zfs-tests
/tests
/functional
/truncate
/Makefile
tests
/zfs-tests
/tests
/functional
/user_namespace
/Makefile
tests
/zfs-tests
/tests
/functional
/userquota
/Makefile
tests
/zfs-tests
/tests
/functional
/upgrade
/Makefile
tests
/zfs-tests
/tests
/functional
/vdev_zaps
/Makefile
tests
/zfs-tests
/tests
/functional
/write_dirs
/Makefile
tests
/zfs-tests
/tests
/functional
/xattr
/Makefile
tests
/zfs-tests
/tests
/functional
/zvol
/Makefile
tests
/zfs-tests
/tests
/functional
/zvol
/zvol_cli
/Makefile
tests
/zfs-tests
/tests
/functional
/zvol
/zvol_ENOSPC
/Makefile
tests
/zfs-tests
/tests
/functional
/zvol
/zvol_misc
/Makefile
tests
/zfs-tests
/tests
/functional
/zvol
/zvol_swap
/Makefile
tests
/zfs-tests
/tests
/perf
/Makefile
tests
/zfs-tests
/tests
/perf
/fio
/Makefile
tests
/zfs-tests
/tests
/perf
/regression
/Makefile
tests
/zfs-tests
/tests
/perf
/scripts
/Makefile
tests
/zfs-tests
/tests
/stress
/Makefile rpm
/Makefile rpm
/redhat
/Makefile rpm
/redhat
/zfs.spec rpm
/redhat
/zfs-kmod.spec rpm
/redhat
/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
"
48374 cat >confcache <<\_ACEOF
48375 # This file is a shell script that caches the results of configure
48376 # tests run on this system so they can be shared between configure
48377 # scripts and configure runs, see configure's option --config-cache.
48378 # It is not useful on other systems. If it contains results you don't
48379 # want to keep, you may remove or edit it.
48381 # config.status only pays attention to the cache file if you give it
48382 # the --recheck option to rerun configure.
48384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48386 # following values.
48390 # The following way of writing the cache mishandles newlines in values,
48391 # but we know of no workaround that is simple, portable, and efficient.
48392 # So, we kill variables containing newlines.
48393 # Ultrix sh set writes to stderr and can't be redirected directly,
48394 # and sets the high bit in the cache file unless we assign to the vars.
48396 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48397 eval ac_val=\$$ac_var
48401 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: cache variable
$ac_var contains a newline
" >&5
48402 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
48405 _ | IFS | as_nl) ;; #(
48406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48407 *) $as_unset $ac_var ;;
48413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48414 *${as_nl}ac_space=\ *)
48415 # `set' does not quote correctly, so add quotes (double-quote
48416 # substitution turns \\\\ into \\, and sed turns \\ into \).
48419 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
48422 # `set' quotes correctly as required by POSIX, so do not add quotes.
48423 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
48432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48437 if test -w "$cache_file"; then
48438 test "x
$cache_file" != "x
/dev
/null
" &&
48439 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
48440 $as_echo "$as_me: updating cache
$cache_file" >&6;}
48441 cat confcache >$cache_file
48443 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
48444 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
48449 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
48450 # Let make expand exec_prefix.
48451 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
48453 DEFS=-DHAVE_CONFIG_H
48457 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
48458 # 1. Remove the extension, and $U if already installed.
48459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
48462 # will be set to the directory where LIBOBJS objects are built.
48463 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
48464 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
48466 LIBOBJS=$ac_libobjs
48468 LTLIBOBJS=$ac_ltlibobjs
48471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
48472 { { $as_echo "$as_me:$LINENO: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
48473 Usually this means the macro was only invoked conditionally.
" >&5
48474 $as_echo "$as_me: error
: conditional
\"MAINTAINER_MODE
\" was never defined.
48475 Usually this means the macro was only invoked conditionally.
" >&2;}
48476 { (exit 1); exit 1; }; }
48478 if test -n "$EXEEXT"; then
48480 am__EXEEXT_FALSE='#'
48482 am__EXEEXT_TRUE='#'
48486 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
48487 { { $as_echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
48488 Usually this means the macro was only invoked conditionally.
" >&5
48489 $as_echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
48490 Usually this means the macro was only invoked conditionally.
" >&2;}
48491 { (exit 1); exit 1; }; }
48493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
48494 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
48495 Usually this means the macro was only invoked conditionally.
" >&5
48496 $as_echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
48497 Usually this means the macro was only invoked conditionally.
" >&2;}
48498 { (exit 1); exit 1; }; }
48500 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
48501 { { $as_echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCCAS
\" was never defined.
48502 Usually this means the macro was only invoked conditionally.
" >&5
48503 $as_echo "$as_me: error
: conditional
\"am__fastdepCCAS
\" was never defined.
48504 Usually this means the macro was only invoked conditionally.
" >&2;}
48505 { (exit 1); exit 1; }; }
48507 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
48508 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CODE_COVERAGE_ENABLED
\" was never defined.
48509 Usually this means the macro was only invoked conditionally.
" >&5
48510 $as_echo "$as_me: error
: conditional
\"CODE_COVERAGE_ENABLED
\" was never defined.
48511 Usually this means the macro was only invoked conditionally.
" >&2;}
48512 { (exit 1); exit 1; }; }
48514 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
48515 { { $as_echo "$as_me:$LINENO: error
: conditional
\"TARGET_ASM_X86_64
\" was never defined.
48516 Usually this means the macro was only invoked conditionally.
" >&5
48517 $as_echo "$as_me: error
: conditional
\"TARGET_ASM_X86_64
\" was never defined.
48518 Usually this means the macro was only invoked conditionally.
" >&2;}
48519 { (exit 1); exit 1; }; }
48521 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
48522 { { $as_echo "$as_me:$LINENO: error
: conditional
\"TARGET_ASM_I386
\" was never defined.
48523 Usually this means the macro was only invoked conditionally.
" >&5
48524 $as_echo "$as_me: error
: conditional
\"TARGET_ASM_I386
\" was never defined.
48525 Usually this means the macro was only invoked conditionally.
" >&2;}
48526 { (exit 1); exit 1; }; }
48528 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
48529 { { $as_echo "$as_me:$LINENO: error
: conditional
\"TARGET_ASM_GENERIC
\" was never defined.
48530 Usually this means the macro was only invoked conditionally.
" >&5
48531 $as_echo "$as_me: error
: conditional
\"TARGET_ASM_GENERIC
\" was never defined.
48532 Usually this means the macro was only invoked conditionally.
" >&2;}
48533 { (exit 1); exit 1; }; }
48535 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
48536 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_USER
\" was never defined.
48537 Usually this means the macro was only invoked conditionally.
" >&5
48538 $as_echo "$as_me: error
: conditional
\"CONFIG_USER
\" was never defined.
48539 Usually this means the macro was only invoked conditionally.
" >&2;}
48540 { (exit 1); exit 1; }; }
48542 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
48543 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
48544 Usually this means the macro was only invoked conditionally.
" >&5
48545 $as_echo "$as_me: error
: conditional
\"CONFIG_KERNEL
\" was never defined.
48546 Usually this means the macro was only invoked conditionally.
" >&2;}
48547 { (exit 1); exit 1; }; }
48549 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
48550 { { $as_echo "$as_me:$LINENO: error
: conditional
\"CONFIG_QAT
\" was never defined.
48551 Usually this means the macro was only invoked conditionally.
" >&5
48552 $as_echo "$as_me: error
: conditional
\"CONFIG_QAT
\" was never defined.
48553 Usually this means the macro was only invoked conditionally.
" >&2;}
48554 { (exit 1); exit 1; }; }
48556 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
48557 { { $as_echo "$as_me:$LINENO: error
: conditional
\"WANT_DEVNAME2DEVID
\" was never defined.
48558 Usually this means the macro was only invoked conditionally.
" >&5
48559 $as_echo "$as_me: error
: conditional
\"WANT_DEVNAME2DEVID
\" was never defined.
48560 Usually this means the macro was only invoked conditionally.
" >&2;}
48561 { (exit 1); exit 1; }; }
48563 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
48564 { { $as_echo "$as_me:$LINENO: error
: conditional
\"WANT_MMAP_LIBAIO
\" was never defined.
48565 Usually this means the macro was only invoked conditionally.
" >&5
48566 $as_echo "$as_me: error
: conditional
\"WANT_MMAP_LIBAIO
\" was never defined.
48567 Usually this means the macro was only invoked conditionally.
" >&2;}
48568 { (exit 1); exit 1; }; }
48571 : ${CONFIG_STATUS=./config.status}
48573 ac_clean_files_save=$ac_clean_files
48574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48575 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
48576 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
48577 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48579 # Generated by $as_me.
48580 # Run this file to recreate the current configuration.
48581 # Compiler output produced by configure, useful for debugging
48582 # configure, is in config.log if it exists.
48585 ac_cs_recheck=false
48587 SHELL=\${CONFIG_SHELL-$SHELL}
48590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48591 ## --------------------- ##
48592 ## M4sh Initialization. ##
48593 ## --------------------- ##
48595 # Be more Bourne compatible
48596 DUALCASE=1; export DUALCASE # for MKS sh
48597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48601 # is contrary to our usage. Disable this feature.
48602 alias -g '${1+"$@"}'='"$@
"'
48603 setopt NO_GLOB_SUBST
48605 case `(set -o) 2>/dev/null` in
48606 *posix*) set -o posix ;;
48615 # Avoid depending upon Character Ranges.
48616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48619 as_cr_digits='0123456789'
48620 as_cr_alnum=$as_cr_Letters$as_cr_digits
48625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48629 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
48630 as_echo='printf %s\n'
48631 as_echo_n='printf %s'
48633 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
48634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48635 as_echo_n='/usr/ucb/echo -n'
48637 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
48638 as_echo_n_body='eval
48642 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
48643 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
48645 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
48647 export as_echo_n_body
48648 as_echo_n='sh -c $as_echo_n_body as_echo'
48650 export as_echo_body
48651 as_echo='sh -c $as_echo_body as_echo'
48654 # The user is always right.
48655 if test "${PATH_SEPARATOR+set}" != set; then
48657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48663 # Support unset when possible.
48664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48672 # We need space, tab and new line, in precisely that order. Quoting is
48673 # there to prevent editors from complaining about space-tab.
48674 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48675 # splitting by setting IFS to empty value.)
48678 # Find who we are. Look in the path if we contain no directory separator.
48680 *[\\/]* ) as_myself=$0 ;;
48681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48682 for as_dir in $PATH
48685 test -z "$as_dir" && as_dir=.
48686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48692 # We did not find ourselves, most probably we were run as `sh COMMAND'
48693 # in which case we are not to be found in the path.
48694 if test "x
$as_myself" = x; then
48697 if test ! -f "$as_myself"; then
48698 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
48699 { (exit 1); exit 1; }
48702 # Work around bugs in pre-3.0 UWIN ksh.
48703 for as_var in ENV MAIL MAILPATH
48704 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48716 # Required to use basename.
48717 if expr a : '\(a\)' >/dev/null 2>&1 &&
48718 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
48724 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
48725 as_basename=basename
48731 # Name of the executable.
48732 as_me=`$as_basename -- "$0" ||
48733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48734 X"$0" : 'X\(//\)$' \| \
48735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48737 sed '/^.*\/\([^/][^/]*\)\/*$/{
48756 as_lineno_1=$LINENO
48757 as_lineno_2=$LINENO
48758 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
48759 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
48761 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48762 # uniformly replaced by the line number. The first 'sed' inserts a
48763 # line-number line after each line using $LINENO; the second 'sed'
48764 # does the real work. The second script uses 'N' to pair each
48765 # line-number line with the line containing $LINENO, and appends
48766 # trailing '-' during substitution so that $LINENO is not a special
48767 # case at line end.
48768 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48769 # scripts with optimization help from Paolo Bonzini. Blame Lee
48770 # E. McMahon (1931-1989) for sed's syntax. :-)
48782 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48785 ' >$as_me.lineno &&
48786 chmod +x "$as_me.lineno
" ||
48787 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
48788 { (exit 1); exit 1; }; }
48790 # Don't try to exec as it changes $[0], causing all sort of problems
48791 # (the dirname of $[0] is not the place where we might find the
48792 # original and so on. Autoconf is especially sensitive to this).
48793 . ".
/$as_me.lineno
"
48794 # Exit status is that of the last command.
48799 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
48805 ECHO_C= ECHO_N= ECHO_T=
48806 case `echo -n x` in
48808 case `echo 'x\c'` in
48809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48815 if expr a : '\(a\)' >/dev/null 2>&1 &&
48816 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
48822 rm -f conf$$ conf$$.exe conf$$.file
48823 if test -d conf$$.dir; then
48824 rm -f conf$$.dir/conf$$.file
48827 mkdir conf$$.dir 2>/dev/null
48829 if (echo >conf$$.file) 2>/dev/null; then
48830 if ln -s conf$$.file conf$$ 2>/dev/null; then
48832 # ... but there are two gotchas:
48833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48835 # In both cases, we have to default to `cp -p'.
48836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48838 elif ln conf$$.file conf$$ 2>/dev/null; then
48846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48847 rmdir conf$$.dir 2>/dev/null
48849 if mkdir -p . 2>/dev/null; then
48852 test -d ./-p && rmdir ./-p
48856 if test -x / >/dev/null 2>&1; then
48857 as_test_x='test -x'
48859 if ls -dL / >/dev/null 2>&1; then
48866 if test -d "$1"; then
48872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48873 ???[sx]*):;;*)false;;esac;fi
48877 as_executable_p=$as_test_x
48879 # Sed expression to map a string onto a valid CPP name.
48880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48882 # Sed expression to map a string onto a valid variable name.
48883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48888 # Save the log message, to keep $[0] and so on meaningful, and to
48889 # report actual input values of CONFIG_FILES etc. instead of their
48890 # values after options handling.
48892 This
file was extended by zfs
$as_me 0.7.11, which was
48893 generated by GNU Autoconf
2.63. Invocation
command line was
48895 CONFIG_FILES
= $CONFIG_FILES
48896 CONFIG_HEADERS
= $CONFIG_HEADERS
48897 CONFIG_LINKS
= $CONFIG_LINKS
48898 CONFIG_COMMANDS
= $CONFIG_COMMANDS
48901 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
48906 case $ac_config_files in *"
48907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48910 case $ac_config_headers in *"
48911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48916 # Files that config.status was made for.
48917 config_files="$ac_config_files"
48918 config_headers="$ac_config_headers"
48919 config_commands="$ac_config_commands"
48923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48925 \
`$as_me' instantiates files from templates according to the
48926 current configuration.
48928 Usage: $0 [OPTION]... [FILE]...
48930 -h, --help print this help, then exit
48931 -V, --version print version number and configuration settings, then exit
48932 -q, --quiet, --silent
48933 do not print progress messages
48934 -d, --debug don't remove temporary files
48935 --recheck update $as_me by reconfiguring in the same conditions
48936 --file=FILE[:TEMPLATE]
48937 instantiate the configuration file FILE
48938 --header=FILE[:TEMPLATE]
48939 instantiate the configuration header FILE
48941 Configuration files:
48944 Configuration headers:
48947 Configuration commands:
48950 Report bugs to <bug-autoconf@gnu.org>."
48953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48955 zfs config.status 0.7.11
48956 configured by $0, generated by GNU Autoconf 2.63,
48957 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48959 Copyright (C) 2008 Free Software Foundation, Inc.
48960 This config.status script is free software; the Free Software Foundation
48961 gives unlimited permission to copy, distribute and modify it."
48968 test -n "\$AWK" || AWK=awk
48971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48972 # The default lists apply if the user does not specify any file.
48978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48990 # Handling of the options.
48991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48994 $as_echo "$ac_cs_version"; exit ;;
48995 --debug | --debu | --deb | --de | --d | -d )
48997 --file | --fil | --fi | --f )
49000 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
49002 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
49003 ac_need_defaults=false;;
49004 --header | --heade | --head | --hea )
49007 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
49009 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
49010 ac_need_defaults=false;;
49012 # Conflict between --help and --header
49013 { $as_echo "$as_me: error: ambiguous option: $1
49014 Try \`$0 --help' for more information." >&2
49015 { (exit 1); exit 1; }; };;
49016 --help | --hel | -h )
49017 $as_echo "$ac_cs_usage"; exit ;;
49018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49022 # This is an error.
49023 -*) { $as_echo "$as_me: error: unrecognized option: $1
49024 Try \`$0 --help' for more information.
" >&2
49025 { (exit 1); exit 1; }; } ;;
49027 *) ac_config_targets="$ac_config_targets $1"
49028 ac_need_defaults=false ;;
49034 ac_configure_extra_args=
49036 if $ac_cs_silent; then
49038 ac_configure_extra_args="$ac_configure_extra_args --silent"
49042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49043 if \$ac_cs_recheck; then
49044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49046 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
49047 CONFIG_SHELL='$SHELL'
49048 export CONFIG_SHELL
49053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49058 ## Running $as_me. ##
49064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49068 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49071 # The HP-UX ksh and POSIX shell print the target directory to stdout
49072 # if CDPATH is set.
49073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49075 sed_quote_subst='$sed_quote_subst'
49076 double_quote_subst='$double_quote_subst'
49077 delay_variable_subst='$delay_variable_subst'
49078 macro_version='`$ECHO "X
$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
49079 macro_revision='`$ECHO "X
$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
49080 enable_shared='`$ECHO "X
$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
49081 enable_static='`$ECHO "X
$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
49082 pic_mode='`$ECHO "X
$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
49083 enable_fast_install='`$ECHO "X
$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
49084 host_alias='`$ECHO "X
$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
49085 host='`$ECHO "X
$host" | $Xsed -e "$delay_single_quote_subst"`'
49086 host_os='`$ECHO "X
$host_os" | $Xsed -e "$delay_single_quote_subst"`'
49087 build_alias='`$ECHO "X
$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
49088 build='`$ECHO "X
$build" | $Xsed -e "$delay_single_quote_subst"`'
49089 build_os='`$ECHO "X
$build_os" | $Xsed -e "$delay_single_quote_subst"`'
49090 SED='`$ECHO "X
$SED" | $Xsed -e "$delay_single_quote_subst"`'
49091 Xsed='`$ECHO "X
$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
49092 GREP='`$ECHO "X
$GREP" | $Xsed -e "$delay_single_quote_subst"`'
49093 EGREP='`$ECHO "X
$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
49094 FGREP='`$ECHO "X
$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
49095 LD='`$ECHO "X
$LD" | $Xsed -e "$delay_single_quote_subst"`'
49096 NM='`$ECHO "X
$NM" | $Xsed -e "$delay_single_quote_subst"`'
49097 LN_S='`$ECHO "X
$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
49098 max_cmd_len='`$ECHO "X
$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
49099 ac_objext='`$ECHO "X
$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
49100 exeext='`$ECHO "X
$exeext" | $Xsed -e "$delay_single_quote_subst"`'
49101 lt_unset='`$ECHO "X
$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
49102 lt_SP2NL='`$ECHO "X
$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
49103 lt_NL2SP='`$ECHO "X
$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
49104 reload_flag='`$ECHO "X
$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
49105 reload_cmds='`$ECHO "X
$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49106 OBJDUMP='`$ECHO "X
$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
49107 deplibs_check_method='`$ECHO "X
$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
49108 file_magic_cmd='`$ECHO "X
$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
49109 AR='`$ECHO "X
$AR" | $Xsed -e "$delay_single_quote_subst"`'
49110 AR_FLAGS='`$ECHO "X
$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49111 STRIP='`$ECHO "X
$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
49112 RANLIB='`$ECHO "X
$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
49113 old_postinstall_cmds='`$ECHO "X
$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49114 old_postuninstall_cmds='`$ECHO "X
$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49115 old_archive_cmds='`$ECHO "X
$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49116 CC='`$ECHO "X
$CC" | $Xsed -e "$delay_single_quote_subst"`'
49117 CFLAGS='`$ECHO "X
$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49118 compiler='`$ECHO "X
$compiler" | $Xsed -e "$delay_single_quote_subst"`'
49119 GCC='`$ECHO "X
$GCC" | $Xsed -e "$delay_single_quote_subst"`'
49120 lt_cv_sys_global_symbol_pipe='`$ECHO "X
$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
49121 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X
$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
49122 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"`'
49123 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"`'
49124 objdir='`$ECHO "X
$objdir" | $Xsed -e "$delay_single_quote_subst"`'
49125 SHELL='`$ECHO "X
$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
49126 ECHO='`$ECHO "X
$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
49127 MAGIC_CMD='`$ECHO "X
$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
49128 lt_prog_compiler_no_builtin_flag='`$ECHO "X
$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
49129 lt_prog_compiler_wl='`$ECHO "X
$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
49130 lt_prog_compiler_pic='`$ECHO "X
$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
49131 lt_prog_compiler_static='`$ECHO "X
$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
49132 lt_cv_prog_compiler_c_o='`$ECHO "X
$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
49133 need_locks='`$ECHO "X
$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
49134 DSYMUTIL='`$ECHO "X
$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
49135 NMEDIT='`$ECHO "X
$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
49136 LIPO='`$ECHO "X
$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
49137 OTOOL='`$ECHO "X
$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
49138 OTOOL64='`$ECHO "X
$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
49139 libext='`$ECHO "X
$libext" | $Xsed -e "$delay_single_quote_subst"`'
49140 shrext_cmds='`$ECHO "X
$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49141 extract_expsyms_cmds='`$ECHO "X
$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49142 archive_cmds_need_lc='`$ECHO "X
$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
49143 enable_shared_with_static_runtimes='`$ECHO "X
$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
49144 export_dynamic_flag_spec='`$ECHO "X
$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49145 whole_archive_flag_spec='`$ECHO "X
$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49146 compiler_needs_object='`$ECHO "X
$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
49147 old_archive_from_new_cmds='`$ECHO "X
$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49148 old_archive_from_expsyms_cmds='`$ECHO "X
$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49149 archive_cmds='`$ECHO "X
$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49150 archive_expsym_cmds='`$ECHO "X
$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49151 module_cmds='`$ECHO "X
$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49152 module_expsym_cmds='`$ECHO "X
$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49153 with_gnu_ld='`$ECHO "X
$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
49154 allow_undefined_flag='`$ECHO "X
$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49155 no_undefined_flag='`$ECHO "X
$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49156 hardcode_libdir_flag_spec='`$ECHO "X
$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49157 hardcode_libdir_flag_spec_ld='`$ECHO "X
$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
49158 hardcode_libdir_separator='`$ECHO "X
$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
49159 hardcode_direct='`$ECHO "X
$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
49160 hardcode_direct_absolute='`$ECHO "X
$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
49161 hardcode_minus_L='`$ECHO "X
$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
49162 hardcode_shlibpath_var='`$ECHO "X
$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49163 hardcode_automatic='`$ECHO "X
$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
49164 inherit_rpath='`$ECHO "X
$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
49165 link_all_deplibs='`$ECHO "X
$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
49166 fix_srcfile_path='`$ECHO "X
$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
49167 always_export_symbols='`$ECHO "X
$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
49168 export_symbols_cmds='`$ECHO "X
$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49169 exclude_expsyms='`$ECHO "X
$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49170 include_expsyms='`$ECHO "X
$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49171 prelink_cmds='`$ECHO "X
$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49172 file_list_spec='`$ECHO "X
$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
49173 variables_saved_for_relink='`$ECHO "X
$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
49174 need_lib_prefix='`$ECHO "X
$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49175 need_version='`$ECHO "X
$need_version" | $Xsed -e "$delay_single_quote_subst"`'
49176 version_type='`$ECHO "X
$version_type" | $Xsed -e "$delay_single_quote_subst"`'
49177 runpath_var='`$ECHO "X
$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49178 shlibpath_var='`$ECHO "X
$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49179 shlibpath_overrides_runpath='`$ECHO "X
$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
49180 libname_spec='`$ECHO "X
$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49181 library_names_spec='`$ECHO "X
$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
49182 soname_spec='`$ECHO "X
$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49183 postinstall_cmds='`$ECHO "X
$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49184 postuninstall_cmds='`$ECHO "X
$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49185 finish_cmds='`$ECHO "X
$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49186 finish_eval='`$ECHO "X
$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
49187 hardcode_into_libs='`$ECHO "X
$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
49188 sys_lib_search_path_spec='`$ECHO "X
$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49189 sys_lib_dlsearch_path_spec='`$ECHO "X
$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49190 hardcode_action='`$ECHO "X
$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
49191 enable_dlopen='`$ECHO "X
$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
49192 enable_dlopen_self='`$ECHO "X
$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
49193 enable_dlopen_self_static='`$ECHO "X
$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
49194 old_striplib='`$ECHO "X
$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
49195 striplib='`$ECHO "X
$striplib" | $Xsed -e "$delay_single_quote_subst"`'
49198 LTCFLAGS='$LTCFLAGS'
49199 compiler='$compiler_DEFAULT'
49201 # Quote evaled strings.
49213 deplibs_check_method \
49222 lt_cv_sys_global_symbol_pipe \
49223 lt_cv_sys_global_symbol_to_cdecl \
49224 lt_cv_sys_global_symbol_to_c_name_address \
49225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
49228 lt_prog_compiler_no_builtin_flag \
49229 lt_prog_compiler_wl \
49230 lt_prog_compiler_pic \
49231 lt_prog_compiler_static \
49232 lt_cv_prog_compiler_c_o \
49240 export_dynamic_flag_spec \
49241 whole_archive_flag_spec \
49242 compiler_needs_object \
49244 allow_undefined_flag \
49245 no_undefined_flag \
49246 hardcode_libdir_flag_spec \
49247 hardcode_libdir_flag_spec_ld \
49248 hardcode_libdir_separator \
49253 variables_saved_for_relink \
49255 library_names_spec \
49260 case \`eval \\\\\$ECHO "X
\\\\\$\
$var"\` in
49261 *[\\\\\\\`\\"\\\$
]*)
49262 eval "lt_\$var=\\\\\\"\\\
`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
49265 eval "lt_\$var=\\\\\\"\\\$\
$var\\\\\\""
49270 # Double-quote double-evaled strings.
49271 for var
in reload_cmds \
49272 old_postinstall_cmds \
49273 old_postuninstall_cmds \
49275 extract_expsyms_cmds \
49276 old_archive_from_new_cmds \
49277 old_archive_from_expsyms_cmds \
49279 archive_expsym_cmds \
49281 module_expsym_cmds \
49282 export_symbols_cmds \
49285 postuninstall_cmds \
49287 sys_lib_search_path_spec \
49288 sys_lib_dlsearch_path_spec
; do
49289 case \
`eval \\\\\$ECHO "X\\\\\$\$var"\` in
49290 *[\\\\\\\
`\\"\\\$]*)
49291 eval "lt_\$var=\\\\\\"\\\`\\\
$ECHO \\"X\\\$\$var\\" |
\\\
$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\
`\\\\\\""
49294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49299 # Fix-up fallback echo if it was mangled by the above quoting rules.
49301 *'\\\$0 --fallback-echo"') lt_ECHO=\`\
$ECHO "X\$lt_ECHO" | \
$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\
`
49305 ac_aux_dir='$ac_aux_dir'
49306 xsi_shell='$xsi_shell'
49307 lt_shell_append='$lt_shell_append'
49309 # See if we are running on zsh, and set the options which allow our
49310 # commands through without removal of \ escapes INIT.
49311 if test -n "\${ZSH_VERSION+set}" ; then
49312 setopt NO_GLOB_SUBST
49318 TIMESTAMP='$TIMESTAMP'
49327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49329 # Handling of arguments.
49330 for ac_config_target in $ac_config_targets
49332 case $ac_config_target in
49333 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
49334 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49335 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
49336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49337 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
49338 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
49339 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
49340 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
49341 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
49342 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
49343 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
49344 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
49345 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
49346 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49347 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
49348 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
49349 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
49350 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
49351 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
49352 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
49353 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
49354 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
49355 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
49356 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
49357 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
49358 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
49359 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
49360 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
49361 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
49362 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
49363 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
49364 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
49365 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
49366 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
49367 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
49368 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
49369 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
49370 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
49371 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
49372 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
49373 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
49374 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
49375 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
49376 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
49377 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
49378 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
49379 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
49380 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
49381 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
49382 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
49383 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
49384 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
49385 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
49386 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
49387 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
49388 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
49389 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
49390 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
49391 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
49392 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
49393 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
49394 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
49395 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
49396 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
49397 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
49398 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
49399 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
49400 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
49401 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
49402 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
49403 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
49404 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
49405 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
49406 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
49407 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
49408 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
49409 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
49410 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
49411 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
49412 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
49413 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
49414 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
49415 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
49416 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
49417 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
49418 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
49419 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
49420 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
49421 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
49422 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
49423 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
49424 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
49425 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
49426 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
49427 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
49428 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
49429 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
49430 "tests/zfs-tests/cmd/user_ns_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/user_ns_exec/Makefile" ;;
49431 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
49432 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
49433 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
49434 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
49435 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
49436 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
49437 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
49438 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
49439 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
49440 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
49441 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
49442 "tests/zfs-tests/cmd/mmap_libaio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_libaio/Makefile" ;;
49443 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
49444 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
49445 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
49446 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
49447 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
49448 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
49449 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
49450 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
49451 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
49452 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
49453 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
49454 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
49455 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
49456 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
49457 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
49458 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
49459 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
49460 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
49461 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
49462 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
49463 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
49464 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
49465 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
49466 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
49467 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
49468 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
49469 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
49470 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
49471 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
49472 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
49473 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
49474 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
49475 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
49476 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
49477 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
49478 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
49479 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
49480 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
49481 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
49482 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
49483 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
49484 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
49485 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
49486 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
49487 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
49488 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
49489 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
49490 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
49491 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
49492 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
49493 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
49494 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
49495 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
49496 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
49497 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
49498 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
49499 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
49500 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
49501 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
49502 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
49503 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
49504 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
49505 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
49506 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
49507 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
49508 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
49509 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
49510 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
49511 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
49512 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
49513 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
49514 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
49515 "tests/zfs-tests/tests/functional/cp_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cp_files/Makefile" ;;
49516 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
49517 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
49518 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
49519 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
49520 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
49521 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
49522 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
49523 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
49524 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
49525 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
49526 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
49527 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
49528 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
49529 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
49530 "tests/zfs-tests/tests/functional/kstat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/kstat/Makefile" ;;
49531 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
49532 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
49533 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
49534 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
49535 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
49536 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
49537 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
49538 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
49539 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
49540 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
49541 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
49542 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
49543 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
49544 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
49545 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
49546 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
49547 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
49548 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
49549 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
49550 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
49551 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
49552 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
49553 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
49554 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
49555 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
49556 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
49557 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
49558 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
49559 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
49560 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
49561 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
49562 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
49563 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
49564 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
49565 "tests/zfs-tests/tests/functional/user_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/user_namespace/Makefile" ;;
49566 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
49567 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
49568 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
49569 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
49570 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
49571 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
49572 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
49573 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
49574 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
49575 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
49576 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
49577 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
49578 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
49579 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
49580 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
49581 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
49582 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
49583 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
49584 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
49585 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
49586 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
49587 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
49588 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
49589 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
49590 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
49591 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
49593 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49594 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49595 { (exit 1); exit 1; }; };;
49600 # If the user did not use the arguments to specify the items to instantiate,
49601 # then the envvar interface is used. Set only those that are not.
49602 # We use the long form for the default assignment because of an extremely
49603 # bizarre bug on SunOS 4.1.3.
49604 if $ac_need_defaults; then
49605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49610 # Have a temporary directory for convenience. Make it in the build tree
49611 # simply because there is no reason against having it here, and in addition,
49612 # creating and moving files from /tmp can sometimes cause problems.
49613 # Hook for its removal unless debugging.
49614 # Note that there is a small window in which the directory will not be cleaned:
49615 # after its creation but before its name has been assigned to `$tmp'.
49619 trap 'exit_status
=$?
49620 { test -z "$tmp" ||
test ! -d "$tmp" ||
rm -fr "$tmp"; } && exit $exit_status
49622 trap '{ (exit 1); exit 1; }' 1 2 13 15
49624 # Create a (secure) tmp directory for tmp files.
49627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49628 test -n "$tmp" && test -d "$tmp"
49631 tmp=./conf$$-$RANDOM
49632 (umask 077 && mkdir "$tmp")
49635 $as_echo "$as_me: cannot create a temporary directory in ." >&2
49636 { (exit 1); exit 1; }
49639 # Set up the scripts for CONFIG_FILES section.
49640 # No need to generate them if there are no CONFIG_FILES.
49641 # This happens for instance with `./config.status config.h'.
49642 if test -n "$CONFIG_FILES"; then
49646 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49650 ac_cs_awk_cr
=$ac_cr
49653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
49658 echo "cat >conf$$subs.awk <<_ACEOF" &&
49659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49661 } >conf$$subs.sh ||
49662 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
49663 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
49664 { (exit 1); exit 1; }; }
49665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
49667 for ac_last_try in false false false false false :; do
49668 . ./conf$$subs.sh ||
49669 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
49670 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
49671 { (exit 1); exit 1; }; }
49673 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
49674 if test $ac_delim_n = $ac_delim_num; then
49676 elif $ac_last_try; then
49677 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
49678 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
49679 { (exit 1); exit 1; }; }
49681 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
49684 rm -f conf$$subs.sh
49686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49687 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
49691 s/^/S["/; s
/!.
*/"]=/
49701 s/\(.\{148\}\).*/\1/
49703 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
49708 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
49715 s/\(.\{148\}\).*/\1/
49717 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
49721 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
49726 ' <conf$$subs.awk | sed '
49731 ' >>$CONFIG_STATUS || ac_write_fail=1
49732 rm -f conf$$subs.awk
49733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49735 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
49736 for (key in S) S_is_set[key] = 1
49742 nfields = split(line, field, "@
")
49744 len = length(field[1])
49745 for (i = 2; i < nfields; i++) {
49747 keylen = length(key)
49748 if (S_is_set[key]) {
49750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49751 len += length(value) + length(field[++i])
49762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49763 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49764 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
49767 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
49768 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
49769 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
49770 { (exit 1); exit 1; }; }
49773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
49775 # trailing colons and then remove the whole line if VPATH becomes empty
49776 # (actually we leave an empty line to preserve line numbers).
49777 if test "x
$srcdir" = x.; then
49778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49779 s/:*\$(srcdir):*/:/
49780 s/:*\${srcdir}:*/:/
49782 s/^\([^=]*=[ ]*\):*/\1/
49788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49789 fi # test -n "$CONFIG_FILES"
49791 # Set up the scripts for CONFIG_HEADERS section.
49792 # No need to generate them if there are no CONFIG_HEADERS.
49793 # This happens for instance with `./config.status Makefile'.
49794 if test -n "$CONFIG_HEADERS"; then
49795 cat >"$tmp/defines.
awk" <<\_ACAWK ||
49799 # Transform confdefs.h into an awk script `defines.awk', embedded as
49800 # here-document in config.status, that substitutes the proper values into
49801 # config.h.in to produce config.h.
49803 # Create a delimiter string that does not exist in confdefs.h, to ease
49804 # handling of long lines.
49806 for ac_last_try in false false :; do
49807 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
49808 if test -z "$ac_t"; then
49810 elif $ac_last_try; then
49811 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
49812 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
49813 { (exit 1); exit 1; }; }
49815 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
49819 # For the awk script, D is an array of macro values keyed by name,
49820 # likewise P contains macro parameters if any. Preserve backslash
49821 # newline sequences.
49823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49825 s/.\{148\}/&'"$ac_delim"'/g
49828 s/^[ ]*#[ ]*define[ ][ ]*/ /
49835 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
49837 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
49841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
49842 D["\
1"]=" \
3\\\\\\n
"\\/p
49844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
49849 s/.\{148\}/&'"$ac_delim"'/g
49854 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
49857 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
49859 ' <confdefs.h | sed '
49860 s/'"$ac_delim"'/"\\\
49861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49864 for (key in D) D_is_set[key] = 1
49867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49869 split(line, arg, " ")
49870 if (arg[1] == "#") {
49874 defundef
= substr
(arg
[1], 2)
49877 split(mac1
, mac2
, "(") #)
49879 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
49880 if (D_is_set
[macro
]) {
49881 # Preserve the white space surrounding the "#".
49882 print prefix
"define", macro P
[macro
] D
[macro
]
49885 # Replace #undef with comments. This is necessary, for example,
49886 # in the case of _POSIX_SOURCE, which is predefined and required
49887 # on some systems where configure will not decide to define it.
49888 if (defundef
== "undef") {
49889 print
"/*", prefix defundef
, macro
, "*/"
49897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
49898 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49899 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49900 { (exit 1); exit 1; }; }
49901 fi # test -n "$CONFIG_HEADERS"
49904 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49909 :[FHLC
]) ac_mode
=$ac_tag; continue;;
49911 case $ac_mode$ac_tag in
49913 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49914 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49915 { (exit 1); exit 1; }; };;
49916 :[FH
]-) ac_tag
=-:-;;
49917 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
49934 -) ac_f
="$tmp/stdin";;
49935 *) # Look for the file first in the build tree, then in the source tree
49936 # (if the path is not absolute). The absolute path cannot be DOS-style,
49937 # because $ac_f cannot contain `:'.
49941 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
49943 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49944 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49945 { (exit 1); exit 1; }; };;
49947 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49948 ac_file_inputs
="$ac_file_inputs '$ac_f'"
49951 # Let's still pretend it is `configure' which instantiates (i.e., don't
49952 # use $as_me), people would be surprised to read:
49953 # /* config.h. Generated by config.status. */
49954 configure_input
='Generated from '`
49955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49957 if test x
"$ac_file" != x-
; then
49958 configure_input
="$ac_file. $configure_input"
49959 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
49960 $as_echo "$as_me: creating $ac_file" >&6;}
49962 # Neutralize special characters interpreted by sed in replacement strings.
49963 case $configure_input in #(
49964 *\
&* |
*\|
* |
*\\* )
49965 ac_sed_conf_input
=`$as_echo "$configure_input" |
49966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49967 *) ac_sed_conf_input
=$configure_input;;
49971 *:-:* |
*:-) cat >"$tmp/stdin" \
49972 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49974 { (exit 1); exit 1; }; } ;;
49979 ac_dir
=`$as_dirname -- "$ac_file" ||
49980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49981 X"$ac_file" : 'X\(//\)[^/]' \| \
49982 X"$ac_file" : 'X\(//\)$' \| \
49983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49984 $as_echo X"$ac_file" |
49985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49989 /^X\(\/\/\)[^/].*/{
50004 -*) as_dir
=.
/$as_dir;;
50006 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
50010 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50011 *) as_qdir
=$as_dir;;
50013 as_dirs
="'$as_qdir' $as_dirs"
50014 as_dir
=`$as_dirname -- "$as_dir" ||
50015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50016 X"$as_dir" : 'X\(//\)[^/]' \| \
50017 X"$as_dir" : 'X\(//\)$' \| \
50018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50019 $as_echo X"$as_dir" |
50020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50024 /^X\(\/\/\)[^/].*/{
50037 test -d "$as_dir" && break
50039 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
50040 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50041 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50042 { (exit 1); exit 1; }; }; }
50046 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
50048 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
50049 # A ".." for each directory in $ac_dir_suffix.
50050 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
50051 case $ac_top_builddir_sub in
50052 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
50053 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
50056 ac_abs_top_builddir
=$ac_pwd
50057 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
50058 # for backward compatibility:
50059 ac_top_builddir
=$ac_top_build_prefix
50062 .
) # We are building in place.
50064 ac_top_srcdir
=$ac_top_builddir_sub
50065 ac_abs_top_srcdir
=$ac_pwd ;;
50066 [\\/]* | ?
:[\\/]* ) # Absolute name.
50067 ac_srcdir
=$srcdir$ac_dir_suffix;
50068 ac_top_srcdir
=$srcdir
50069 ac_abs_top_srcdir
=$srcdir ;;
50070 *) # Relative name.
50071 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
50072 ac_top_srcdir
=$ac_top_build_prefix$srcdir
50073 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
50075 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
50085 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
50086 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
50088 ac_MKDIR_P
=$MKDIR_P
50090 [\\/$
]* | ?
:[\\/]* ) ;;
50091 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
50095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
50096 # If the template does not know about datarootdir, expand it.
50097 # FIXME: This hack should be removed a few years after 2.60.
50098 ac_datarootdir_hack
=; ac_datarootdir_seen
=
50111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50112 *datarootdir
*) ac_datarootdir_seen
=yes;;
50113 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
50114 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50118 ac_datarootdir_hack='
50119 s&@datadir@&$datadir&g
50120 s&@docdir@&$docdir&g
50121 s&@infodir@&$infodir&g
50122 s&@localedir@&$localedir&g
50123 s&@mandir@&$mandir&g
50124 s&\\\${datarootdir}&$datarootdir&g' ;;
50128 # Neutralize VPATH when `$srcdir' = `.'.
50129 # Shell code in configure.ac might set extrasub.
50130 # FIXME: do we really want to maintain this feature?
50131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50132 ac_sed_extra="$ac_vpsub
50135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
50137 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
50138 s|@configure_input@|
$ac_sed_conf_input|
;t t
50139 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
50140 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
50141 s
&@srcdir@
&$ac_srcdir&;t t
50142 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
50143 s
&@top_srcdir@
&$ac_top_srcdir&;t t
50144 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
50145 s
&@builddir@
&$ac_builddir&;t t
50146 s
&@abs_builddir@
&$ac_abs_builddir&;t t
50147 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
50148 s
&@INSTALL@
&$ac_INSTALL&;t t
50149 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
50150 $ac_datarootdir_hack
50152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
50153 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
50154 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
50155 { (exit 1); exit 1; }; }
50157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
50159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
50160 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
50161 which seems to be undefined. Please make sure it is defined." >&5
50162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
50163 which seems to be undefined. Please make sure it is defined." >&2;}
50167 -) cat "$tmp/out" && rm -f "$tmp/out";;
50168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
50170 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50171 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50172 { (exit 1); exit 1; }; }
50178 if test x"$ac_file" != x-; then
50180 $as_echo "/* $configure_input */" \
50181 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
50182 } >"$tmp/config.h" \
50183 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50184 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50185 { (exit 1); exit 1; }; }
50186 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
50187 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
50191 mv "$tmp/config.h" "$ac_file" \
50192 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50193 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50194 { (exit 1); exit 1; }; }
50197 $as_echo "/* $configure_input */" \
50198 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
50199 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
50200 $as_echo "$as_me: error: could not create -" >&2;}
50201 { (exit 1); exit 1; }; }
50203 # Compute "$ac_file"'s index
in $config_headers.
50206 for _am_header
in $config_headers :; do
50207 case $_am_header in
50208 $_am_arg |
$_am_arg:* )
50211 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
50214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
50215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50216 X"$_am_arg" : 'X\(//\)[^/]' \| \
50217 X"$_am_arg" : 'X\(//\)$' \| \
50218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
50219 $as_echo X"$_am_arg" |
50220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50224 /^X\(\/\/\)[^/].*/{
50236 s/.*/./; q'`/stamp-h
$_am_stamp_count
50239 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
50240 $as_echo "$as_me: executing $ac_file commands" >&6;}
50245 case $ac_file$ac_mode in
50247 (mv zfs_config.h zfs_config.h.tmp
&&
50248 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
50249 rm zfs_config.h.tmp
) ||
exit 1 ;;
50250 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
50251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
50252 # are listed without --file. Let's play safe and only enable the eval
50253 # if we detect the quoting.
50254 case $CONFIG_FILES in
50255 *\'*) eval set x
"$CONFIG_FILES" ;;
50256 *) set x
$CONFIG_FILES ;;
50261 # Strip MF so we end up with the name of the file.
50262 mf
=`echo "$mf" | sed -e 's/:.*$//'`
50263 # Check whether this is an Automake generated Makefile or not.
50264 # We used to match only the files named `Makefile.in', but
50265 # some people rename them; so instead we look at the file content.
50266 # Grep'ing the first line is not enough: some people post-process
50267 # each Makefile.in and add a new line on top of each file to say so.
50268 # Grep'ing the whole file is not good either: AIX grep has a line
50269 # limit of 2048, but all sed's we know have understand at least 4000.
50270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
50271 dirpart
=`$as_dirname -- "$mf" ||
50272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50273 X"$mf" : 'X\(//\)[^/]' \| \
50274 X"$mf" : 'X\(//\)$' \| \
50275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
50277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50281 /^X\(\/\/\)[^/].*/{
50297 # Extract the definition of DEPDIR, am__include, and am__quote
50298 # from the Makefile without running `make'.
50299 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
50300 test -z "$DEPDIR" && continue
50301 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
50302 test -z "am__include" && continue
50303 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
50304 # When using ansi2knr, U may be empty or an underscore; expand it
50305 U
=`sed -n 's/^U = //p' < "$mf"`
50306 # Find all dependency output files, they are included files with
50307 # $(DEPDIR) in their names. We invoke sed twice because it is the
50308 # simplest approach to changing $(DEPDIR) to its actual value in the
50310 for file in `sed -n "
50311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
50312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50313 # Make sure the directory exists.
50314 test -f "$dirpart/$file" && continue
50315 fdir
=`$as_dirname -- "$file" ||
50316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50317 X"$file" : 'X\(//\)[^/]' \| \
50318 X"$file" : 'X\(//\)$' \| \
50319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
50320 $as_echo X"$file" |
50321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50325 /^X\(\/\/\)[^/].*/{
50338 { as_dir
=$dirpart/$fdir
50340 -*) as_dir
=.
/$as_dir;;
50342 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
50346 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50347 *) as_qdir
=$as_dir;;
50349 as_dirs
="'$as_qdir' $as_dirs"
50350 as_dir
=`$as_dirname -- "$as_dir" ||
50351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50352 X"$as_dir" : 'X\(//\)[^/]' \| \
50353 X"$as_dir" : 'X\(//\)$' \| \
50354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50355 $as_echo X"$as_dir" |
50356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50360 /^X\(\/\/\)[^/].*/{
50373 test -d "$as_dir" && break
50375 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
50376 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50377 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50378 { (exit 1); exit 1; }; }; }
50379 # echo "creating $dirpart/$file"
50380 echo '# dummy' > "$dirpart/$file"
50387 # See if we are running on zsh, and set the options which allow our
50388 # commands through without removal of \ escapes.
50389 if test -n "${ZSH_VERSION+set}" ; then
50390 setopt NO_GLOB_SUBST
50393 cfgfile
="${ofile}T"
50394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
50397 cat <<_LT_EOF >> "$cfgfile"
50400 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
50401 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
50402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
50405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
50406 # 2006, 2007, 2008 Free Software Foundation, Inc.
50407 # Written by Gordon Matzigkeit, 1996
50409 # This file is part of GNU Libtool.
50411 # GNU Libtool is free software; you can redistribute it and/or
50412 # modify it under the terms of the GNU General Public License as
50413 # published by the Free Software Foundation; either version 2 of
50414 # the License, or (at your option) any later version.
50416 # As a special exception to the GNU General Public License,
50417 # if you distribute this file as part of a program or library that
50418 # is built using GNU Libtool, you may include this file under the
50419 # same distribution terms that you use for the rest of that program.
50421 # GNU Libtool is distributed in the hope that it will be useful,
50422 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50424 # GNU General Public License for more details.
50426 # You should have received a copy of the GNU General Public License
50427 # along with GNU Libtool; see the file COPYING. If not, a copy
50428 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
50429 # obtained by writing to the Free Software Foundation, Inc.,
50430 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50433 # The names of the tagged configurations supported by this script.
50436 # ### BEGIN LIBTOOL CONFIG
50438 # Which release of libtool.m4 was used?
50439 macro_version=$macro_version
50440 macro_revision=$macro_revision
50442 # Whether or not to build shared libraries.
50443 build_libtool_libs=$enable_shared
50445 # Whether or not to build static libraries.
50446 build_old_libs=$enable_static
50448 # What type of objects to build.
50451 # Whether or not to optimize for fast installation.
50452 fast_install=$enable_fast_install
50455 host_alias=$host_alias
50459 # The build system.
50460 build_alias=$build_alias
50464 # A sed program that does not truncate output.
50467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
50468 Xsed="\$SED -e 1s/^X//"
50470 # A grep program that handles long lines.
50476 # A literal string matcher.
50479 # A BSD- or MS-compatible name lister.
50482 # Whether we need soft or hard links.
50485 # What is the maximum length of a command?
50486 max_cmd_len=$max_cmd_len
50488 # Object file suffix (normally "o").
50491 # Executable file suffix (normally "").
50494 # whether the shell understands "unset".
50497 # turn spaces into newlines.
50500 # turn newlines into spaces.
50503 # How to create reloadable object files.
50504 reload_flag=$lt_reload_flag
50505 reload_cmds=$lt_reload_cmds
50507 # An object symbol dumper.
50508 OBJDUMP=$lt_OBJDUMP
50510 # Method to check whether dependent libraries are shared objects.
50511 deplibs_check_method=$lt_deplibs_check_method
50513 # Command to use when deplibs_check_method == "file_magic".
50514 file_magic_cmd=$lt_file_magic_cmd
50518 AR_FLAGS=$lt_AR_FLAGS
50520 # A symbol stripping program.
50523 # Commands used to install an old-style archive.
50525 old_postinstall_cmds=$lt_old_postinstall_cmds
50526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50531 # LTCC compiler flags.
50532 LTCFLAGS=$lt_CFLAGS
50534 # Take the output of nm and produce a listing of raw symbols and C names.
50535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50537 # Transform the output of nm in a proper C declaration.
50538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50540 # Transform the output of nm in a C name address pair.
50541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50543 # Transform the output of nm in a C name address pair when lib prefix is needed.
50544 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
50546 # The name of the directory that contains temporary libtool files.
50549 # Shell to use when invoking shell scripts.
50552 # An echo program that does not interpret backslashes.
50555 # Used to examine libraries when file_magic_cmd begins with "file".
50556 MAGIC_CMD=$MAGIC_CMD
50558 # Must we lock files when doing compilation?
50559 need_locks=$lt_need_locks
50561 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
50562 DSYMUTIL=$lt_DSYMUTIL
50564 # Tool to change global to local symbols on Mac OS X.
50567 # Tool to manipulate fat objects and archives on Mac OS X.
50570 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
50573 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
50574 OTOOL64=$lt_OTOOL64
50576 # Old archive suffix (normally "a").
50579 # Shared library suffix (normally ".so").
50580 shrext_cmds=$lt_shrext_cmds
50582 # The commands to extract the exported symbol list from a shared archive.
50583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50585 # Variables whose values should be saved in libtool wrapper scripts and
50586 # restored at link time.
50587 variables_saved_for_relink=$lt_variables_saved_for_relink
50589 # Do we need the "lib" prefix for modules?
50590 need_lib_prefix=$need_lib_prefix
50592 # Do we need a version for libraries?
50593 need_version=$need_version
50595 # Library versioning type.
50596 version_type=$version_type
50598 # Shared library runtime path variable.
50599 runpath_var=$runpath_var
50601 # Shared library path variable.
50602 shlibpath_var=$shlibpath_var
50604 # Is shlibpath searched before the hard-coded library search path?
50605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50607 # Format of library name prefix.
50608 libname_spec=$lt_libname_spec
50610 # List of archive names. First name is the real one, the rest are links.
50611 # The last name is the one that the linker finds with -lNAME
50612 library_names_spec=$lt_library_names_spec
50614 # The coded name of the library, if different from the real name.
50615 soname_spec=$lt_soname_spec
50617 # Command to use after installation of a shared archive.
50618 postinstall_cmds=$lt_postinstall_cmds
50620 # Command to use after uninstallation of a shared archive.
50621 postuninstall_cmds=$lt_postuninstall_cmds
50623 # Commands used to finish a libtool library installation in a directory.
50624 finish_cmds=$lt_finish_cmds
50626 # As "finish_cmds", except a single script fragment to be evaled but
50628 finish_eval=$lt_finish_eval
50630 # Whether we should hardcode library paths into libraries.
50631 hardcode_into_libs=$hardcode_into_libs
50633 # Compile-time system search path for libraries.
50634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50636 # Run-time system search path for libraries.
50637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50639 # Whether dlopen is supported.
50640 dlopen_support=$enable_dlopen
50642 # Whether dlopen of programs is supported.
50643 dlopen_self=$enable_dlopen_self
50645 # Whether dlopen of statically linked programs is supported.
50646 dlopen_self_static=$enable_dlopen_self_static
50648 # Commands to strip libraries.
50649 old_striplib=$lt_old_striplib
50650 striplib=$lt_striplib
50653 # The linker used to build libraries.
50656 # Commands used to build an old-style archive.
50657 old_archive_cmds=$lt_old_archive_cmds
50659 # A language specific compiler.
50662 # Is the compiler the GNU compiler?
50665 # Compiler flag to turn off builtin functions.
50666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
50668 # How to pass a linker flag through the compiler.
50669 wl=$lt_lt_prog_compiler_wl
50671 # Additional compiler flags for building library objects.
50672 pic_flag=$lt_lt_prog_compiler_pic
50674 # Compiler flag to prevent dynamic linking.
50675 link_static_flag=$lt_lt_prog_compiler_static
50677 # Does compiler simultaneously support -c and -o options?
50678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
50680 # Whether or not to add -lc for building shared libraries.
50681 build_libtool_need_lc=$archive_cmds_need_lc
50683 # Whether or not to disallow shared libs when runtime libs are static.
50684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
50686 # Compiler flag to allow reflexive dlopens.
50687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
50689 # Compiler flag to generate shared objects directly from archives.
50690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
50692 # Whether the compiler copes with passing no objects directly.
50693 compiler_needs_object=$lt_compiler_needs_object
50695 # Create an old-style archive from a shared archive.
50696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
50698 # Create a temporary old-style archive to link instead of a shared archive.
50699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
50701 # Commands used to build a shared archive.
50702 archive_cmds=$lt_archive_cmds
50703 archive_expsym_cmds=$lt_archive_expsym_cmds
50705 # Commands used to build a loadable module if different from building
50706 # a shared archive.
50707 module_cmds=$lt_module_cmds
50708 module_expsym_cmds=$lt_module_expsym_cmds
50710 # Whether we are building with GNU ld or not.
50711 with_gnu_ld=$lt_with_gnu_ld
50713 # Flag that allows shared libraries with undefined symbols to be built.
50714 allow_undefined_flag=$lt_allow_undefined_flag
50716 # Flag that enforces no undefined symbols.
50717 no_undefined_flag=$lt_no_undefined_flag
50719 # Flag to hardcode \$libdir into a binary during linking.
50720 # This must work even if \$libdir does not exist
50721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
50723 # If ld is used when linking, flag to hardcode \$libdir into a binary
50724 # during linking. This must work even if \$libdir does not exist.
50725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
50727 # Whether we need a single "-rpath" flag with a separated argument.
50728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
50730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50731 # DIR into the resulting binary.
50732 hardcode_direct=$hardcode_direct
50734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50735 # DIR into the resulting binary and the resulting library dependency is
50736 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
50737 # library is relocated.
50738 hardcode_direct_absolute=$hardcode_direct_absolute
50740 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50741 # into the resulting binary.
50742 hardcode_minus_L=$hardcode_minus_L
50744 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50745 # into the resulting binary.
50746 hardcode_shlibpath_var=$hardcode_shlibpath_var
50748 # Set to "yes" if building a shared library automatically hardcodes DIR
50749 # into the library and all subsequent libraries and executables linked
50751 hardcode_automatic=$hardcode_automatic
50753 # Set to yes if linker adds runtime paths of dependent libraries
50754 # to runtime path list.
50755 inherit_rpath=$inherit_rpath
50757 # Whether libtool must link a program against all its dependency libraries.
50758 link_all_deplibs=$link_all_deplibs
50760 # Fix the shell variable \$srcfile for the compiler.
50761 fix_srcfile_path=$lt_fix_srcfile_path
50763 # Set to "yes" if exported symbols are required.
50764 always_export_symbols=$always_export_symbols
50766 # The commands to list exported symbols.
50767 export_symbols_cmds=$lt_export_symbols_cmds
50769 # Symbols that should not be listed in the preloaded symbols.
50770 exclude_expsyms=$lt_exclude_expsyms
50772 # Symbols that must always be exported.
50773 include_expsyms=$lt_include_expsyms
50775 # Commands necessary for linking programs (against libraries) with templates.
50776 prelink_cmds=$lt_prelink_cmds
50778 # Specify filename containing input files.
50779 file_list_spec=$lt_file_list_spec
50781 # How to hardcode a shared library path into an executable.
50782 hardcode_action=$hardcode_action
50784 # ### END LIBTOOL CONFIG
50790 cat <<\_LT_EOF
>> "$cfgfile"
50791 # AIX sometimes has problems with the GCC collect2 program. For some
50792 # reason, if we set the COLLECT_NAMES environment variable, the problems
50793 # vanish in a puff of smoke.
50794 if test "X${COLLECT_NAMES+set}" != Xset
; then
50796 export COLLECT_NAMES
50803 ltmain
="$ac_aux_dir/ltmain.sh"
50806 # We use sed instead of cat because bash on DJGPP gets confused if
50807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
50808 # text mode, it properly converts lines to CR/LF. This bash problem
50809 # is reportedly fixed, but why not run on old versions too?
50810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
50811 ||
(rm -f "$cfgfile"; exit 1)
50815 cat << \_LT_EOF
>> "$cfgfile"
50817 # func_dirname file append nondir_replacement
50818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50819 # otherwise set result to NONDIR_REPLACEMENT.
50823 */*) func_dirname_result
="${1%/*}${2}" ;;
50824 * ) func_dirname_result
="${3}" ;;
50828 # func_basename file
50831 func_basename_result
="${1##*/}"
50834 # func_dirname_and_basename file append nondir_replacement
50835 # perform func_basename and func_dirname in a single function
50837 # dirname: Compute the dirname of FILE. If nonempty,
50838 # add APPEND to the result, otherwise set result
50839 # to NONDIR_REPLACEMENT.
50840 # value returned in "$func_dirname_result"
50841 # basename: Compute filename of FILE.
50842 # value retuned in "$func_basename_result"
50843 # Implementation must be kept synchronized with func_dirname
50844 # and func_basename. For efficiency, we do not delegate to
50845 # those functions but instead duplicate the functionality here.
50846 func_dirname_and_basename
()
50849 */*) func_dirname_result
="${1%/*}${2}" ;;
50850 * ) func_dirname_result
="${3}" ;;
50852 func_basename_result
="${1##*/}"
50855 # func_stripname prefix suffix name
50856 # strip PREFIX and SUFFIX off of NAME.
50857 # PREFIX and SUFFIX must not contain globbing or regex special
50858 # characters, hashes, percent signs, but SUFFIX may contain a leading
50859 # dot (in which case that matches only a dot).
50862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
50863 # positional parameters, so assign one to ordinary parameter first.
50864 func_stripname_result
=${3}
50865 func_stripname_result
=${func_stripname_result#"${1}"}
50866 func_stripname_result
=${func_stripname_result%"${2}"}
50872 func_opt_split_opt
=${1%%=*}
50873 func_opt_split_arg
=${1#*=}
50880 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
50881 *) func_lo2o_result
=${1} ;;
50885 # func_xform libobj-or-source
50888 func_xform_result
=${1%.*}.lo
50891 # func_arith arithmetic-term...
50894 func_arith_result
=$
(( $
* ))
50898 # STRING may not start with a hyphen.
50901 func_len_result
=${#1}
50906 *) # Bourne compatible functions.
50907 cat << \_LT_EOF
>> "$cfgfile"
50909 # func_dirname file append nondir_replacement
50910 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50911 # otherwise set result to NONDIR_REPLACEMENT.
50914 # Extract subdirectory from the argument.
50915 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
50916 if test "X$func_dirname_result" = "X${1}"; then
50917 func_dirname_result
="${3}"
50919 func_dirname_result
="$func_dirname_result${2}"
50923 # func_basename file
50926 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
50930 # func_stripname prefix suffix name
50931 # strip PREFIX and SUFFIX off of NAME.
50932 # PREFIX and SUFFIX must not contain globbing or regex special
50933 # characters, hashes, percent signs, but SUFFIX may contain a leading
50934 # dot (in which case that matches only a dot).
50935 # func_strip_suffix prefix name
50939 .
*) func_stripname_result
=`$ECHO "X${3}" \
50940 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
50941 *) func_stripname_result
=`$ECHO "X${3}" \
50942 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
50947 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
50948 my_sed_long_arg
='1s/^-[^=]*=//'
50953 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
50954 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
50960 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
50963 # func_xform libobj-or-source
50966 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
50969 # func_arith arithmetic-term...
50972 func_arith_result
=`expr "$@"`
50976 # STRING may not start with a hyphen.
50979 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50985 case $lt_shell_append in
50987 cat << \_LT_EOF
>> "$cfgfile"
50989 # func_append var value
50990 # Append VALUE to the end of shell variable VAR.
50998 cat << \_LT_EOF
>> "$cfgfile"
51000 # func_append var value
51001 # Append VALUE to the end of shell variable VAR.
51012 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
51013 ||
(rm -f "$cfgfile"; exit 1)
51015 mv -f "$cfgfile" "$ofile" ||
51016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
51025 { (exit 0); exit 0; }
51027 chmod +x
$CONFIG_STATUS
51028 ac_clean_files
=$ac_clean_files_save
51030 test $ac_write_fail = 0 ||
51031 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
51032 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
51033 { (exit 1); exit 1; }; }
51036 # configure is writing to config.log, and then calls config.status.
51037 # config.status does its own redirection, appending to config.log.
51038 # Unfortunately, on DOS this fails, as config.log is still kept open
51039 # by configure, so config.status won't be able to write to it; its
51040 # output is simply discarded. So we exec the FD to /dev/null,
51041 # effectively closing config.log, so it can be properly (re)opened and
51042 # appended to by config.status. When coming back to configure, we
51043 # need to make the FD available again.
51044 if test "$no_create" != yes; then
51046 ac_config_status_args
=
51047 test "$silent" = yes &&
51048 ac_config_status_args
="$ac_config_status_args --quiet"
51050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
51052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51053 # would make configure fail if this is the last instruction.
51054 $ac_cs_success ||
{ (exit 1); exit 1; }
51056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
51057 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
51058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}