2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.7.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
589 PACKAGE_TARNAME
='zfs'
590 PACKAGE_VERSION
='0.7.3'
591 PACKAGE_STRING
='zfs 0.7.3'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
680 TARGET_ASM_GENERIC_FALSE
681 TARGET_ASM_GENERIC_TRUE
682 TARGET_ASM_I386_FALSE
684 TARGET_ASM_X86_64_FALSE
685 TARGET_ASM_X86_64_TRUE
688 NO_UNUSED_BUT_SET_VARIABLE
720 am__fastdepCCAS_FALSE
772 INSTALL_STRIP_PROGRAM
792 MAINTAINER_MODE_FALSE
846 program_transform_name
859 enable_option_checking
860 enable_maintainer_mode
862 enable_dependency_tracking
886 with_systemdpresetdir
887 with_systemdmodulesloaddir
893 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 runstatedir
='${localstatedir}/run'
944 includedir
='${prefix}/include'
945 oldincludedir
='/usr/include'
946 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir
='${datarootdir}/info'
952 libdir
='${exec_prefix}/lib'
953 localedir
='${datarootdir}/locale'
954 mandir
='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\
$ac_option
968 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=no
;;
1027 -docdir |
--docdir |
--docdi |
--doc |
--do)
1029 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1030 docdir
=$ac_optarg ;;
1032 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1034 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1035 dvidir
=$ac_optarg ;;
1037 -enable-* |
--enable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=\
$ac_optarg ;;
1053 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1054 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1055 |
--exec |
--exe |
--ex)
1056 ac_prev
=exec_prefix
;;
1057 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1058 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1059 |
--exec=* |
--exe=* |
--ex=*)
1060 exec_prefix
=$ac_optarg ;;
1062 -gas |
--gas |
--ga |
--g)
1063 # Obsolete; use --with-gas.
1066 -help |
--help |
--hel |
--he |
-h)
1067 ac_init_help
=long
;;
1068 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1069 ac_init_help
=recursive
;;
1070 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1071 ac_init_help
=short
;;
1073 -host |
--host |
--hos |
--ho)
1074 ac_prev
=host_alias
;;
1075 -host=* |
--host=* |
--hos=* |
--ho=*)
1076 host_alias
=$ac_optarg ;;
1078 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1080 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1082 htmldir
=$ac_optarg ;;
1084 -includedir |
--includedir |
--includedi |
--included |
--include \
1085 |
--includ |
--inclu |
--incl |
--inc)
1086 ac_prev
=includedir
;;
1087 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1088 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1089 includedir
=$ac_optarg ;;
1091 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1093 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1094 infodir
=$ac_optarg ;;
1096 -libdir |
--libdir |
--libdi |
--libd)
1098 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1099 libdir
=$ac_optarg ;;
1101 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1102 |
--libexe |
--libex |
--libe)
1103 ac_prev
=libexecdir
;;
1104 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1105 |
--libexe=* |
--libex=* |
--libe=*)
1106 libexecdir
=$ac_optarg ;;
1108 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1109 ac_prev
=localedir
;;
1110 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1111 localedir
=$ac_optarg ;;
1113 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1114 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1115 ac_prev
=localstatedir
;;
1116 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1117 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1118 localstatedir
=$ac_optarg ;;
1120 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1122 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1123 mandir
=$ac_optarg ;;
1125 -nfp |
--nfp |
--nf)
1126 # Obsolete; use --without-fp.
1129 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1130 |
--no-cr |
--no-c |
-n)
1133 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1134 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1137 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1138 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1139 |
--oldin |
--oldi |
--old |
--ol |
--o)
1140 ac_prev
=oldincludedir
;;
1141 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1142 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1143 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1144 oldincludedir
=$ac_optarg ;;
1146 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1148 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1149 prefix
=$ac_optarg ;;
1151 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1152 |
--program-pre |
--program-pr |
--program-p)
1153 ac_prev
=program_prefix
;;
1154 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1155 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1156 program_prefix
=$ac_optarg ;;
1158 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1159 |
--program-suf |
--program-su |
--program-s)
1160 ac_prev
=program_suffix
;;
1161 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1162 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1163 program_suffix
=$ac_optarg ;;
1165 -program-transform-name |
--program-transform-name \
1166 |
--program-transform-nam |
--program-transform-na \
1167 |
--program-transform-n |
--program-transform- \
1168 |
--program-transform |
--program-transfor \
1169 |
--program-transfo |
--program-transf \
1170 |
--program-trans |
--program-tran \
1171 |
--progr-tra |
--program-tr |
--program-t)
1172 ac_prev
=program_transform_name
;;
1173 -program-transform-name=* |
--program-transform-name=* \
1174 |
--program-transform-nam=* |
--program-transform-na=* \
1175 |
--program-transform-n=* |
--program-transform-=* \
1176 |
--program-transform=* |
--program-transfor=* \
1177 |
--program-transfo=* |
--program-transf=* \
1178 |
--program-trans=* |
--program-tran=* \
1179 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1180 program_transform_name
=$ac_optarg ;;
1182 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1184 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1185 pdfdir
=$ac_optarg ;;
1187 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1189 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1193 |
-silent |
--silent |
--silen |
--sile |
--sil)
1196 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1197 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1198 |
--run |
--ru |
--r)
1199 ac_prev
=runstatedir
;;
1200 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1201 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1202 |
--run=* |
--ru=* |
--r=*)
1203 runstatedir
=$ac_optarg ;;
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1254 as_fn_error $?
"invalid package name: $ac_useropt"
1255 ac_useropt_orig
=$ac_useropt
1256 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep
=', ';;
1264 eval with_
$ac_useropt=\
$ac_optarg ;;
1266 -without-* |
--without-*)
1267 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1270 as_fn_error $?
"invalid package name: $ac_useropt"
1271 ac_useropt_orig
=$ac_useropt
1272 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep
=', ';;
1280 eval with_
$ac_useropt=no
;;
1283 # Obsolete; use --with-x.
1286 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1287 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1288 ac_prev
=x_includes
;;
1289 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1290 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1291 x_includes
=$ac_optarg ;;
1293 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1294 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1295 ac_prev
=x_libraries
;;
1296 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1297 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1298 x_libraries
=$ac_optarg ;;
1300 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1309 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\
$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $?
"missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1344 eval ac_val
=\$
$ac_var
1345 # Remove trailing slashes.
1348 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\
$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$
]* | ?
:[\\/]* ) continue;;
1354 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1356 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target
=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x
; then
1368 if test "x$build_alias" = x
; then
1369 cross_compiling
=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1378 test "$silent" = yes && exec 6>/dev
/null
1381 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di
=`ls -di .` &&
1383 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $?
"working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $?
"pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted
=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir
=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted
=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1425 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var
in $ac_precious_vars; do
1442 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1444 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures zfs 0.7.3 to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1521 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive
) echo "Configuration of zfs 0.7.3:";;
1532 --disable-option-checking ignore unrecognized
--enable/--with options
1533 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1534 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1535 --enable-maintainer-mode
1536 enable make rules and dependencies not useful
(and
1537 sometimes confusing
) to the casual installer
1538 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1539 --disable-silent-rules verbose build output
(undo
: "make V=0")
1540 --enable-dependency-tracking
1541 do not reject slow dependency extractors
1542 --disable-dependency-tracking
1543 speeds up one-time build
1544 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1545 --enable-static[=PKGS
] build static libraries
[default
=yes]
1546 --enable-fast-install[=PKGS
]
1547 optimize
for fast installation
[default
=yes]
1548 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1549 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1551 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1552 --enable-sysvinit install SysV init scripts
[default
: yes]
1553 --enable-debug Enable generic debug support
[default
=no
]
1556 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1557 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1558 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1560 --with-aix-soname=aix|svr4|both
1561 shared library versioning
(aka
"SONAME") variant to
1562 provide on AIX
, [default
=aix
].
1563 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1564 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1565 compiler
's sysroot if not specified).
1566 --with-spec=SPEC Spec files 'generic|redhat
'
1567 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1568 --with-linux=PATH Path to kernel source
1569 --with-linux-obj=PATH Path to kernel build objects
1570 --with-spl=PATH Path to spl source
1571 --with-spl-obj=PATH Path to spl build objects
1572 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1573 --with-qat=PATH Path to qat source
1574 --with-qat-obj=PATH Path to qat build objects
1575 --with-mounthelperdir=DIR
1576 install mount.zfs in dir [[/sbin]]
1577 --with-udevdir=DIR install udev helpers [default=check]
1578 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1579 --with-systemdunitdir=DIR
1580 install systemd unit files in dir
1581 [[/usr/lib/systemd/system]]
1582 --with-systemdpresetdir=DIR
1583 install systemd preset files in dir
1584 [[/usr/lib/systemd/system-preset]]
1585 --with-systemdmodulesloaddir=DIR
1586 install systemd module load files into dir
1587 [[/usr/lib/modules-load.d]]
1588 --with-dracutdir=DIR install dracut helpers [default=check]
1589 --with-tirpc use tirpc for xdr encoding [default=check]
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1600 User-defined run-time library search path.
1602 CCAS assembler compiler command (defaults to CC)
1603 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1605 Use these variables to override the choices made by `configure' or to
help
1606 it to
find libraries and programs with nonstandard names
/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1622 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1624 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1629 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir
=$ac_pwd
1633 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir
=$ac_top_build_prefix
1638 .
) # We are building in place.
1640 ac_top_srcdir
=$ac_top_builddir_sub
1641 ac_abs_top_srcdir
=$ac_pwd ;;
1642 [\\/]* | ?
:[\\/]* ) # Absolute name.
1643 ac_srcdir
=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir
=$srcdir
1645 ac_abs_top_srcdir
=$srcdir ;;
1647 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf
2.69
1674 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1675 This configure
script is free software
; the Free Software Foundation
1676 gives unlimited permission to copy
, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 rm -f conftest.
$ac_objext
1692 if { { ac_try
="$ac_compile"
1694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1739 if test -s conftest.err
; then
1740 grep -v '^ *+' conftest.err
>conftest.er1
1741 cat conftest.er1
>&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest
$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest
$ac_exeext
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.
$ac_ext >&5
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status
$ac_retval
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile
()
1775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \
${$3+:} false
; then :
1779 $as_echo_n "(cached) " >&6
1781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1786 if ac_fn_c_try_compile
"$LINENO"; then :
1791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_header_compile
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1806 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=$ac_status
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894 #define $2 innocuous_$2
1896 /* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1902 # include <limits.h>
1904 # include <assert.h>
1909 /* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1916 /* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919 #if defined __stub_$2 || defined __stub___$2
1931 if ac_fn_c_try_link "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_func
1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949 # the include files in INCLUDES and setting the cache variable VAR
1951 ac_fn_c_check_header_mongrel ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if eval \${$3+:} false; then :
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 # Is the header compilable?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966 $as_echo_n "checking $2 usability... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_header_compiler=yes
1975 ac_header_compiler=no
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979 $as_echo "$ac_header_compiler" >&6; }
1981 # Is the header present?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983 $as_echo_n "checking $2 presence... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 if ac_fn_c_try_cpp "$LINENO"; then :
1989 ac_header_preproc=yes
1991 ac_header_preproc=no
1993 rm -f conftest.err conftest.i conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995 $as_echo "$ac_header_preproc" >&6; }
1997 # So? What about this header?
1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2009 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2013 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2023 eval "$3=\$ac_header_compiler"
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_mongrel
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2036 It was created by zfs $as_me 0.7.3, which was
2037 generated by GNU Autoconf 2.69. Invocation command line was
2049 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2050 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2051 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2052 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2053 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2055 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2056 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2058 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2059 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2060 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2061 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2062 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2063 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2064 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2089 # Keep a trace of the command line.
2090 # Strip out --no-create and --no-recursion so they do not pile up.
2091 # Strip out --silent because we don't want to record it for future runs.
2092 # Also quote any args containing shell meta-characters.
2093 # Make two passes to allow for proper duplicate-argument suppression.
2097 ac_must_keep_next=false
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2108 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126 -* ) ac_must_keep_next=true ;;
2129 as_fn_append ac_configure_args " '$ac_arg'"
2134 { ac_configure_args0=; unset ac_configure_args0;}
2135 { ac_configure_args1=; unset ac_configure_args1;}
2137 # When interrupted or exit'd, cleanup temporary files, and complete
2138 # config.log. We remove comments because anyway the quotes in there
2139 # would cause problems or look ugly.
2140 # WARNING: Use '\'' to represent an apostrophe within the trap.
2141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142 trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2147 $as_echo "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2151 # The following way of writing the cache mishandles newlines in values,
2153 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2154 eval ac_val=\$$ac_var
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2169 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183 $as_echo "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2202 for ac_var in $ac_subst_files
2204 eval ac_val=\$$ac_var
2206 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 $as_echo "$ac_var='\''$ac_val'\''"
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 $as_echo "/* confdefs.h */" > confdefs.h
2239 # Predefined preprocessor variables.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 as_fn_error $? "failed to load site
script $ac_site_file
2295 See \
`config.log' for more details" "$LINENO" 5; }
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2316 # Check that the precious variables saved in the cache have kept the same
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2327 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2331 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x
$ac_old_val`
2338 ac_new_val_w=`echo x
$ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2342 ac_cache_corrupted=:
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 for ac_prog in gawk mawk nawk awk
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_AWK+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 if test -n "$AWK"; then
2404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_AWK="$ac_prog"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 if test -n "$AWK"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2426 $as_echo "$AWK" >&6; }
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2433 test -n "$AWK" && break
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2437 $as_echo_n "checking metadata... " >&6; }
2440 _zfs_ac_meta_type="none"
2441 if test -f "$META"; then
2442 _zfs_ac_meta_type="META file"
2443 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2445 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2446 if test -n "$ZFS_META_NAME"; then
2448 cat >>confdefs.h <<_ACEOF
2449 #define ZFS_META_NAME "$ZFS_META_NAME"
2455 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2456 if test -n "$ZFS_META_VERSION"; then
2458 cat >>confdefs.h <<_ACEOF
2459 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2465 if test -n "${_dpkg_parsechangelog}"; then
2466 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2467 | $AWK '$1 == "Version:" { print $2; }' \
2469 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2471 *** Version $ZFS_META_VERSION in the META file is different than
2472 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2473 *** packaging require that these files have the same version.
2478 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2480 if test -n "${_dpkg_parsechangelog}"; then
2481 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2482 | $AWK '$1 == "Version:" { print $2; }' \
2484 if test -n "${_dpkg_release}"; then
2485 ZFS_META_RELEASE=${_dpkg_release}
2486 _zfs_ac_meta_type="dpkg-parsechangelog"
2488 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2489 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2490 _alias=$(git describe --match=${_match} 2>/dev/null)
2491 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2492 if test -n "${_release}"; then
2493 ZFS_META_RELEASE=${_release}
2494 _zfs_ac_meta_type="git describe"
2496 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2497 _alias=$(git describe --match=${_match} 2>/dev/null)
2498 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2499 if test -n "${_release}"; then
2500 ZFS_META_RELEASE=${_release}
2501 _zfs_ac_meta_type="git describe"
2506 if test -n "$ZFS_META_RELEASE"; then
2508 cat >>confdefs.h <<_ACEOF
2509 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2514 RELEASE="$ZFS_META_RELEASE"
2518 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2519 if test -n "$ZFS_META_LICENSE"; then
2521 cat >>confdefs.h <<_ACEOF
2522 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2528 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2529 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2530 test -n "$ZFS_META_RELEASE" &&
2531 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2533 cat >>confdefs.h <<_ACEOF
2534 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2540 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2541 if test -n "$ZFS_META_DATA"; then
2543 cat >>confdefs.h <<_ACEOF
2544 #define ZFS_META_DATA "$ZFS_META_DATA"
2550 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2551 if test -n "$ZFS_META_AUTHOR"; then
2553 cat >>confdefs.h <<_ACEOF
2554 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2561 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2562 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2563 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2564 if test -n "$ZFS_META_LT_CURRENT" \
2565 -o -n "$ZFS_META_LT_REVISION" \
2566 -o -n "$ZFS_META_LT_AGE"; then
2567 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2568 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2569 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2571 cat >>confdefs.h <<_ACEOF
2572 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2576 cat >>confdefs.h <<_ACEOF
2577 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2581 cat >>confdefs.h <<_ACEOF
2582 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2592 $as_echo "$_zfs_ac_meta_type" >&6; }
2596 for ac_dir in config "$srcdir"/config; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630 $as_echo_n "checking build system type... " >&6; }
2631 if ${ac_cv_build+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 ac_build_alias=$build_alias
2635 test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637 test "x$ac_build_alias" = x &&
2638 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644 $as_echo "$ac_cv_build" >&6; }
2645 case $ac_cv_build in
2647 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2650 ac_save_IFS=$IFS; IFS='-'
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2660 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664 $as_echo_n "checking host system type... " >&6; }
2665 if ${ac_cv_host+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677 $as_echo "$ac_cv_host" >&6; }
2680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2683 ac_save_IFS=$IFS; IFS='-'
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2693 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697 $as_echo_n "checking target system type... " >&6; }
2698 if ${ac_cv_target+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 if test "x$target_alias" = x; then
2702 ac_cv_target=$ac_cv_host
2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710 $as_echo "$ac_cv_target" >&6; }
2711 case $ac_cv_target in
2713 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2715 target=$ac_cv_target
2716 ac_save_IFS=$IFS; IFS='-'
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2726 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2729 # The aliases save the names the user supplied, while $host etc.
2730 # will get canonicalized.
2731 test -n "$target_alias" &&
2732 test "$program_prefix$program_suffix$program_transform_name" = \
2734 program_prefix=${target_alias}-
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739 # Check whether --enable-maintainer-mode was given.
2740 if test "${enable_maintainer_mode+set}" = set; then :
2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2743 USE_MAINTAINER_MODE=no
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2748 if test $USE_MAINTAINER_MODE = yes; then
2749 MAINTAINER_MODE_TRUE=
2750 MAINTAINER_MODE_FALSE='#'
2752 MAINTAINER_MODE_TRUE='#'
2753 MAINTAINER_MODE_FALSE=
2756 MAINT=$MAINTAINER_MODE_TRUE
2759 # Check whether --enable-silent-rules was given.
2760 if test "${enable_silent_rules+set}" = set; then :
2761 enableval=$enable_silent_rules;
2764 case $enable_silent_rules in # (((
2765 yes) AM_DEFAULT_VERBOSITY=0;;
2766 no) AM_DEFAULT_VERBOSITY=1;;
2767 *) AM_DEFAULT_VERBOSITY=0;;
2769 am_make=${MAKE-make}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2771 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2772 if ${am_cv_make_support_nested_variables+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if $as_echo 'TRUE=$(BAR$(V))
2781 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2782 am_cv_make_support_nested_variables=yes
2784 am_cv_make_support_nested_variables=no
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2788 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2789 if test $am_cv_make_support_nested_variables = yes; then
2791 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2793 AM_V=$AM_DEFAULT_VERBOSITY
2794 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 am__api_version='1.15'
2800 # Find a good install program. We prefer a C program (faster),
2801 # so one script is as good as another. But avoid the broken or
2802 # incompatible versions:
2803 # SysV /etc/install, /usr/sbin/install
2804 # SunOS /usr/etc/install
2805 # IRIX /sbin/install
2807 # AmigaOS /C/install, which installs bootblocks on floppy discs
2808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2811 # OS/2's system install, which has a completely different semantic
2812 # ./install, which can be erroneously created by make from ./install.sh.
2813 # Reject install programs that cannot install multiple files.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2816 if test -z "$INSTALL"; then
2817 if ${ac_cv_path_install+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 # Account for people who put trailing slashes in PATH elements.
2826 case $as_dir/ in #((
2827 ./ | .// | /[cC]/* | \
2828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 # OSF1 and SCO ODT 3.0 have their own names for install.
2833 # Don't use installbsd from OSF since it installs stuff as root
2835 for ac_prog in ginstall scoinst install; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2838 if test $ac_prog = install &&
2839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # AIX install. It has an incompatible calling convention.
2842 elif test $ac_prog = install &&
2843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # program-specific install script used by HP pwplus--don't use.
2847 rm -rf conftest.one conftest.two conftest.dir
2848 echo one > conftest.one
2849 echo two > conftest.two
2851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2852 test -s conftest.one && test -s conftest.two &&
2853 test -s conftest.dir/conftest.one &&
2854 test -s conftest.dir/conftest.two
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2869 rm -rf conftest.one conftest.two conftest.dir
2872 if test "${ac_cv_path_install+set}" = set; then
2873 INSTALL=$ac_cv_path_install
2875 # As a last resort, use the slow shell script. Don't cache a
2876 # value for INSTALL within a source directory, because that will
2877 # break other packages using the cache if that directory is
2878 # removed, or if the value is a relative name.
2879 INSTALL=$ac_install_sh
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2883 $as_echo "$INSTALL" >&6; }
2885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2886 # It thinks the first close brace ends the variable substitution.
2887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2894 $as_echo_n "checking whether build environment is sane... " >&6; }
2895 # Reject unsafe characters in $srcdir or the absolute working directory
2896 # name. Accept space and tab only in the latter.
2900 *[\\\"\#\$\&\'\`$am_lf]*)
2901 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2904 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2905 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908 # Do 'set' in a subshell so we don't clobber the current shell's
2909 # arguments. Must try -L first in case configure is actually a
2910 # symlink; some systems play weird games with the mod time of symlinks
2911 # (eg FreeBSD returns the mod time of the symlink's containing
2915 for am_try
in 1 2; do
2916 echo "timestamp, slept: $am_has_slept" > conftest.
file
2917 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2918 if test "$*" = "X"; then
2920 set X
`ls -t "$srcdir/configure" conftest.file`
2922 if test "$*" != "X $srcdir/configure conftest.file" \
2923 && test "$*" != "X conftest.file $srcdir/configure"; then
2925 # If neither matched, then we have a broken ls. This can happen
2926 # if, for instance, CONFIG_SHELL is bash and it inherits a
2927 # broken ls alias from the environment. This has actually
2928 # happened. Such a system could not be considered "sane".
2929 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2930 alias in your environment" "$LINENO" 5
2932 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2939 test "$2" = conftest.
file
2945 as_fn_error $?
"newly created file is older than distributed files!
2946 Check your system clock" "$LINENO" 5
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2950 # If we didn't sleep, we still need to ensure time stamps of config.status and
2951 # generated files are strictly newer.
2953 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2960 test "$program_prefix" != NONE
&&
2961 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2962 # Use a double $ so make ignores it.
2963 test "$program_suffix" != NONE
&&
2964 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2965 # Double any \ or $.
2966 # By default was `s,x,x', remove it if useless.
2967 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2968 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2970 # Expand $ac_aux_dir to an absolute path.
2971 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2973 if test x
"${MISSING+set}" != xset
; then
2976 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2978 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2981 # Use eval to expand $SHELL
2982 if eval "$MISSING --is-lightweight"; then
2983 am_missing_run
="$MISSING "
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2987 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2990 if test x
"${install_sh+set}" != xset
; then
2993 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2995 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2999 # Installed binaries are usually stripped using 'strip' when the user
3000 # run "make install-strip". However 'strip' might not be the right
3001 # tool to use in cross-compilation environments, therefore Automake
3002 # will honor the 'STRIP' environment variable to overrule this program.
3003 if test "$cross_compiling" != no
; then
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3006 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_STRIP+:} false
; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$STRIP"; then
3013 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir
=.
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 STRIP
=$ac_cv_prog_STRIP
3033 if test -n "$STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3035 $as_echo "$STRIP" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$ac_cv_prog_STRIP"; then
3045 # Extract the first word of "strip", so it can be a program name with args.
3046 set dummy strip
; ac_word
=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$ac_ct_STRIP"; then
3053 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir
=.
3060 for ac_exec_ext
in '' $ac_executable_extensions; do
3061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_STRIP
="strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3073 if test -n "$ac_ct_STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3075 $as_echo "$ac_ct_STRIP" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3081 if test "x$ac_ct_STRIP" = x
; then
3084 case $cross_compiling:$ac_tool_warned in
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned
=yes ;;
3093 STRIP
="$ac_cv_prog_STRIP"
3097 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3100 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3101 if test -z "$MKDIR_P"; then
3102 if ${ac_cv_path_mkdir+:} false
; then :
3103 $as_echo_n "(cached) " >&6
3105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3109 test -z "$as_dir" && as_dir
=.
3110 for ac_prog
in mkdir gmkdir
; do
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3113 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3114 'mkdir (GNU coreutils) '* | \
3115 'mkdir (coreutils) '* | \
3116 'mkdir (fileutils) '4.1*)
3117 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3127 test -d .
/--version && rmdir .
/--version
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P
="$ac_cv_path_mkdir -p"
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 MKDIR_P
="$ac_install_sh -d"
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3139 $as_echo "$MKDIR_P" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3142 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3145 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 cat >conftest.
make <<\_ACEOF
3151 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3153 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3154 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3158 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3162 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 SET_MAKE
="MAKE=${MAKE-make}"
3172 rm -rf .tst
2>/dev
/null
3173 mkdir .tst
2>/dev
/null
3174 if test -d .tst
; then
3179 rmdir .tst
2>/dev
/null
3181 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3182 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3183 # is not polluted with repeated "-I."
3184 am__isrc
=' -I$(srcdir)'
3185 # test to see if srcdir already configured
3186 if test -f $srcdir/config.status
; then
3187 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 # test whether we have cygpath
3192 if test -z "$CYGPATH_W"; then
3193 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3194 CYGPATH_W
='cygpath -w'
3201 # Define the identity of the package.
3206 cat >>confdefs.h
<<_ACEOF
3207 #define PACKAGE "$PACKAGE"
3211 cat >>confdefs.h
<<_ACEOF
3212 #define VERSION "$VERSION"
3215 # Some tools Automake needs.
3217 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3223 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3229 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3231 # For better backward compatibility. To be removed once Automake 1.9.x
3232 # dies out for good. For more background, see:
3233 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3234 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3235 mkdir_p
='$(MKDIR_P)'
3237 # We need awk for the "check" target (and possibly the TAP driver). The
3238 # system "awk" is bad on some platforms.
3239 # Always define AMTAR for backward compatibility. Yes, it's still used
3240 # in the wild :-( We should find a proper way to deprecate it ...
3244 # We'll loop over all known methods to create a tar archive until one works.
3245 _am_tools
='gnutar pax cpio none'
3247 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3254 # POSIX will say in a future version that running "rm -f" with no argument
3255 # is OK; and we want to be able to make that assumption in our Makefile
3256 # recipes. So use an aggressive probe to check that the usage we want is
3257 # actually supported "in the wild" to an acceptable degree.
3258 # See automake bug#10828.
3259 # To make any issue more visible, cause the running configure to be aborted
3260 # by default if the 'rm' program in use doesn't match our expectations; the
3261 # user can still override this though.
3262 if rm -f && rm -fr && rm -rf; then : OK
; else
3266 Your 'rm' program seems unable to run without file operands specified
3267 on the command line, even when the '-f' option is present. This is contrary
3268 to the behaviour of most rm programs out there, and not conforming with
3269 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3271 Please tell bug-automake@gnu.org about your system, including the value
3272 of your $PATH and any error possibly output before this message. This
3273 can help us improve future automake versions.
3276 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3277 echo 'Configuration will proceed anyway, since you have set the' >&2
3278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 Aborting the configuration process, to ensure you take notice of the issue.
3284 You can download and install GNU coreutils to get an 'rm' implementation
3285 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3287 If you want to complete the configuration process using your problematic
3288 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3289 to "yes", and re-run configure.
3292 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3296 ac_config_headers
="$ac_config_headers zfs_config.h"
3301 ac_cpp
='$CPP $CPPFLAGS'
3302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3307 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false
; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC
="$CC" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$ac_cv_prog_CC"; then
3346 # Extract the first word of "gcc", so it can be a program name with args.
3347 set dummy gcc
; ac_word
=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_ac_ct_CC
="gcc"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3382 if test "x$ac_ct_CC" = x
; then
3385 case $cross_compiling:$ac_tool_warned in
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned
=yes ;;
3397 if test -z "$CC"; then
3398 if test -n "$ac_tool_prefix"; then
3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3400 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false
; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC
="$CC" # Let the user override the test.
3409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir
=.
3414 for ac_exec_ext
in '' $ac_executable_extensions; do
3415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 $as_echo "$CC" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3438 if test -z "$CC"; then
3439 # Extract the first word of "cc", so it can be a program name with args.
3440 set dummy cc
; ac_word
=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_CC+:} false
; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC
="$CC" # Let the user override the test.
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_exec_ext
in '' $ac_executable_extensions; do
3456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3458 ac_prog_rejected
=yes
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test $ac_prog_rejected = yes; then
3470 # We found a bogon in the path, so make sure we never use it.
3471 set dummy
$ac_cv_prog_CC
3473 if test $# != 0; then
3474 # We chose a different compiler from the bogus one.
3475 # However, it has the same basename, so the bogon will be chosen
3476 # first if we set CC to just the basename; use the full file name.
3478 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3494 if test -z "$CC"; then
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog
in cl.exe
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_CC+:} false
; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC
="$CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CC" && break
3538 if test -z "$CC"; then
3540 for ac_prog
in cl.exe
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy
$ac_prog; ac_word
=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir
=.
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_CC
="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CC" && break
3582 if test "x$ac_ct_CC" = x
; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned
=yes ;;
3598 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $?
"no acceptable C compiler found in \$PATH
3601 See \`config.log' for more details" "$LINENO" 5; }
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3607 for ac_option
in --version -v -V -qversion; do
3608 { { ac_try
="$ac_compiler $ac_option >&5"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617 if test -s conftest.err; then
3619 ... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 ac_clean_files_save=$ac_clean_files
3640 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3641 # Try to create an executable without -o first, disregard a.out.
3642 # It will help us diagnose broken compilers, and finding out an intuition
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645 $as_echo_n "checking whether the C compiler works... " >&6; }
3646 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3648 # The possible output files:
3649 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3652 for ac_file in $ac_files
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661 if { { ac_try="$ac_link_default"
3663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3664 *) ac_try_echo
=$ac_try;;
3666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link_default") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3677 for ac_file
in $ac_files ''
3679 test -f "$ac_file" ||
continue
3681 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3684 # We found the default executable, but exeext='' is most
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3690 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3702 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3707 if test -z "$ac_file"; then :
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error
77 "C compiler cannot create executables
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719 $as_echo "yes" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3722 $as_echo_n "checking for C compiler default output file name... " >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3724 $as_echo "$ac_file" >&6; }
3725 ac_exeext
=$ac_cv_exeext
3727 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3728 ac_clean_files
=$ac_clean_files_save
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3730 $as_echo_n "checking for suffix of executables... " >&6; }
3731 if { { ac_try
="$ac_link"
3733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link") 2>&5
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3743 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 for ac_file
in conftest.exe conftest conftest.
*; do
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3750 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details" "$LINENO" 5; }
3761 rm -f conftest conftest
$ac_cv_exeext
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3763 $as_echo "$ac_cv_exeext" >&6; }
3765 rm -f conftest.
$ac_ext
3766 EXEEXT
=$ac_cv_exeext
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3774 FILE *f = fopen ("conftest.out", "w");
3775 return ferror (f) || fclose (f) != 0;
3781 ac_clean_files
="$ac_clean_files conftest.out"
3782 # Check that the compiler produces executables we can run. If not, either
3783 # the compiler is broken, or we cross compile.
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3785 $as_echo_n "checking whether we are cross compiling... " >&6; }
3786 if test "$cross_compiling" != yes; then
3787 { { ac_try
="$ac_link"
3789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3798 if { ac_try='./conftest$ac_cv_exeext'
3799 { { case "(($ac_try" in
3800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3801 *) ac_try_echo
=$ac_try;;
3803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_try") 2>&5
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; }; then
3811 if test "$cross_compiling" = maybe
; then
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error $?
"cannot run C compiled programs.
3817 If you meant to cross compile, use \`--host'.
3818 See \`config.log' for more details" "$LINENO" 5; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3823 $as_echo "$cross_compiling" >&6; }
3825 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3826 ac_clean_files
=$ac_clean_files_save
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3828 $as_echo_n "checking for suffix of object files... " >&6; }
3829 if ${ac_cv_objext+:} false
; then :
3830 $as_echo_n "(cached) " >&6
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 rm -f conftest.o conftest.obj
3844 if { { ac_try
="$ac_compile"
3846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compile") 2>&5
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 for ac_file in conftest.o conftest.obj conftest.*; do
3856 test -f "$ac_file" || continue;
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3870 See \
`config.log' for more details" "$LINENO" 5; }
3872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3875 $as_echo "$ac_cv_objext" >&6; }
3876 OBJEXT=$ac_cv_objext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3880 if ${ac_cv_c_compiler_gnu+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3897 if ac_fn_c_try_compile "$LINENO"; then :
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3913 ac_test_CFLAGS=${CFLAGS+set}
3914 ac_save_CFLAGS=$CFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3917 if ${ac_cv_prog_cc_g+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_save_c_werror_flag=$ac_c_werror_flag
3921 ac_c_werror_flag=yes
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_c_try_compile "$LINENO"; then :
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 if ac_fn_c_try_compile "$LINENO"; then :
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3977 $as_echo "$ac_cv_prog_cc_g" >&6; }
3978 if test "$ac_test_CFLAGS" = set; then
3979 CFLAGS=$ac_save_CFLAGS
3980 elif test $ac_cv_prog_cc_g = yes; then
3981 if test "$GCC" = yes; then
3987 if test "$GCC" = yes; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3995 if ${ac_cv_prog_cc_c89+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 ac_cv_prog_cc_c89=no
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4006 struct buf { int x; };
4007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008 static char *e (p, i)
4014 static char *f (char * (*g) (char **, int), char **p, ...)
4019 s = g (p, va_arg (v,int));
4024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4025 function prototypes and stuff, but not '\xHH' hex character constants.
4026 These don't provoke an error unfortunately, instead are silently treated
4027 as 'x'. The following induces an error, until -std is added to get
4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4029 array size at least. It's necessary to write '\x00'==0 to get something
4030 that's true only with -std. */
4031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4034 inside strings and character constants. */
4036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038 int test (int i, double x);
4039 struct s1 {int (*f) (int a);};
4040 struct s2 {int (*f) (double a);};
4041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_c89=$ac_arg
4059 rm -f core conftest.err conftest.$ac_objext
4060 test "x$ac_cv_prog_cc_c89" != "xno" && break
4062 rm -f conftest.$ac_ext
4067 case "x$ac_cv_prog_cc_c89" in
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4070 $as_echo "none needed" >&6; } ;;
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073 $as_echo "unsupported" >&6; } ;;
4075 CC="$CC $ac_cv_prog_cc_c89"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4079 if test "x$ac_cv_prog_cc_c89" != xno; then :
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4095 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4096 if ${am_cv_prog_cc_c_o+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 # Make sure it works both with $CC and with simple cc.
4111 # Following AC_PROG_CC_C_O, we do the test twice because some
4112 # compilers refuse to overwrite an existing .o file with -o,
4113 # though they will create one.
4114 am_cv_prog_cc_c_o=yes
4116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } \
4121 && test -f conftest2.$ac_objext; then
4124 am_cv_prog_cc_c_o=no
4128 rm -f core conftest*
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4132 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4133 if test "$am_cv_prog_cc_c_o" != yes; then
4134 # Losing compiler, so override with the script.
4135 # FIXME: It is wrong to rewrite CC.
4136 # But if we don't then we get into trouble of one sort or another.
4137 # A longer-term fix would be to have automake use am__CC in this case,
4138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4139 CC="$am_aux_dir/compile $CC"
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 DEPDIR="${am__leading_dot}deps"
4149 ac_config_commands="$ac_config_commands depfiles"
4152 am_make=${MAKE-make}
4153 cat > confinc << 'END'
4155 @echo this is the am__doit target
4158 # If we don't find an include directive, just comment out the code.
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4160 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4164 # First try GNU make style include.
4165 echo "include confinc" > confmf
4166 # Ignore all kinds of additional output from 'make'.
4167 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4168 *the\ am__doit\ target*)
4174 # Now try BSD make style include.
4175 if test "$am__include" = "#"; then
4176 echo '.include "confinc"' > confmf
4177 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4178 *the\ am__doit\ target*)
4179 am__include=.include
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4188 $as_echo "$_am_result" >&6; }
4189 rm -f confinc confmf
4191 # Check whether --enable-dependency-tracking was given.
4192 if test "${enable_dependency_tracking+set}" = set; then :
4193 enableval=$enable_dependency_tracking;
4196 if test "x$enable_dependency_tracking" != xno; then
4197 am_depcomp="$ac_aux_dir/depcomp"
4201 if test "x$enable_dependency_tracking" != xno; then
4211 depcc="$CC" am_compiler_list=
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4214 $as_echo_n "checking dependency style of $depcc... " >&6; }
4215 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4219 # We make a subdir and do the tests there. Otherwise we can end up
4220 # making bogus files that we don't know about and never remove. For
4221 # instance it was reported that on HP-UX the gcc test will end up
4222 # making a dummy file named 'D' -- because '-MD' means "put the output
4226 # Copy depcomp to subdir because otherwise we won't find it if we're
4227 # using a relative directory.
4228 cp "$am_depcomp" conftest.dir
4230 # We will build objects and dependencies in a subdirectory because
4231 # it helps to detect inapplicable dependency modes. For instance
4232 # both Tru64's cc and ICC support -MD to output dependencies as a
4233 # side effect of compilation, but ICC will put the dependencies in
4234 # the current directory while Tru64 will put them in the object
4238 am_cv_CC_dependencies_compiler_type=none
4239 if test "$am_compiler_list" = ""; then
4240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4243 case " $depcc " in #(
4244 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247 for depmode in $am_compiler_list; do
4248 # Setup a source with many dependencies, because some compilers
4249 # like to wrap large dependency lists on column 80 (with \), and
4250 # we should not choose a depcomp mode which is confused by this.
4252 # We need to recreate these files for each test, as the compiler may
4253 # overwrite some of them when testing with obscure command lines.
4254 # This happens at least with the AIX C compiler.
4256 for i in 1 2 3 4 5 6; do
4257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4258 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4259 # Solaris 10 /bin/sh.
4260 echo '/* dummy */' > sub/conftst$i.h
4262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4264 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4265 # mode. It turns out that the SunPro C++ compiler does not properly
4266 # handle '-M -o', and we need to detect this. Also, some Intel
4267 # versions had trouble with output in subdirs.
4268 am__obj=sub/conftest.${OBJEXT-o}
4269 am__minus_obj="-o $am__obj"
4272 # This depmode causes a compiler race in universal mode.
4273 test "$am__universal" = false || continue
4276 # After this tag, mechanisms are not by side-effect, so they'll
4277 # only be used when explicitly requested.
4278 if test "x$enable_dependency_tracking" = xyes; then
4284 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4285 # This compiler won't grok '-c -o', but also, the minuso test has
4286 # not run yet. These depmodes are late enough in the game, and
4287 # so weak that their functioning should not be impacted.
4288 am__obj=conftest.${OBJEXT-o}
4293 if depmode=$depmode \
4294 source=sub/conftest.c object=$am__obj \
4295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4297 >/dev/null 2>conftest.err &&
4298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4302 # icc doesn't choke on unknown options, it will just issue warnings
4303 # or remarks (even with -Werror). So we grep stderr for any message
4304 # that says an option was ignored or not supported.
4305 # When given -MP, icc 7.0 and 7.1 complain thusly:
4306 # icc: Command line warning: ignoring option '-M'; no argument required
4307 # The diagnosis changed in icc 8.0:
4308 # icc: Command line remark: option '-MP' not supported
4309 if (grep 'ignoring option' conftest.err ||
4310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4311 am_cv_CC_dependencies_compiler_type=$depmode
4320 am_cv_CC_dependencies_compiler_type=none
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4325 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4326 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4329 test "x$enable_dependency_tracking" != xno \
4330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4332 am__fastdepCC_FALSE='#'
4334 am__fastdepCC_TRUE='#'
4335 am__fastdepCC_FALSE=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4342 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4347 macro_version='2.4.6'
4348 macro_revision='2.4.6'
4362 ltmain=$ac_aux_dir/ltmain.sh
4364 # Backslashify metacharacters that are still active within
4365 # double-quoted strings.
4366 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4368 # Same as above, but do not quote variable references.
4369 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4371 # Sed substitution to delay expansion of an escaped shell variable in a
4372 # double_quote_subst'ed string.
4373 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4375 # Sed substitution to delay expansion of an escaped single quote.
4376 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4378 # Sed substitution to avoid accidental globbing in evaled expressions
4379 no_glob_subst='s/\*/\\\*/g'
4381 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4382 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4383 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4386 $as_echo_n "checking how to print
strings...
" >&6; }
4387 # Test print first, because it will be a builtin if present.
4388 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4389 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4391 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4394 # Use this function as a fallback that always works.
4395 func_fallback_echo ()
4397 eval 'cat <<_LTECHO_EOF
4401 ECHO='func_fallback_echo'
4404 # func_echo_all arg...
4405 # Invoke $ECHO with all args, space-separated.
4412 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4413 $as_echo "printf" >&6; } ;;
4414 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4415 $as_echo "print
-r" >&6; } ;;
4416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4417 $as_echo "cat" >&6; } ;;
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4434 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4435 if ${ac_cv_path_SED+:} false; then :
4436 $as_echo_n "(cached
) " >&6
4438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4439 for ac_i in 1 2 3 4 5 6 7; do
4440 ac_script="$ac_script$as_nl$ac_script"
4442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4443 { ac_script=; unset ac_script;}
4444 if test -z "$SED"; then
4445 ac_path_SED_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in sed gsed; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4455 as_fn_executable_p "$ac_path_SED" || continue
4456 # Check for GNU ac_path_SED and select it if it is found.
4457 # Check for GNU $ac_path_SED
4458 case `"$ac_path_SED" --version 2>&1` in
4460 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4463 $as_echo_n 0123456789 >"conftest.
in"
4466 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4467 mv "conftest.tmp
" "conftest.
in"
4468 cp "conftest.
in" "conftest.
nl"
4469 $as_echo '' >> "conftest.
nl"
4470 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4471 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_SED_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_SED="$ac_path_SED"
4476 ac_path_SED_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 $ac_path_SED_found && break 3
4489 if test -z "$ac_cv_path_SED"; then
4490 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4498 $as_echo "$ac_cv_path_SED" >&6; }
4499 SED="$ac_cv_path_SED"
4502 test -z "$SED" && SED=sed
4503 Xsed="$SED -e 1s
/^X
//"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4516 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4517 if ${ac_cv_path_GREP+:} false; then :
4518 $as_echo_n "(cached
) " >&6
4520 if test -z "$GREP"; then
4521 ac_path_GREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in grep ggrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_GREP" || continue
4532 # Check for GNU ac_path_GREP and select it if it is found.
4533 # Check for GNU $ac_path_GREP
4534 case `"$ac_path_GREP" --version 2>&1` in
4536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4539 $as_echo_n 0123456789 >"conftest.
in"
4542 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4543 mv "conftest.tmp
" "conftest.
in"
4544 cp "conftest.
in" "conftest.
nl"
4545 $as_echo 'GREP' >> "conftest.
nl"
4546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4547 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_GREP="$ac_path_GREP"
4552 ac_path_GREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_GREP_found && break 3
4565 if test -z "$ac_cv_path_GREP"; then
4566 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4569 ac_cv_path_GREP=$GREP
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4574 $as_echo "$ac_cv_path_GREP" >&6; }
4575 GREP="$ac_cv_path_GREP"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4579 $as_echo_n "checking
for egrep...
" >&6; }
4580 if ${ac_cv_path_EGREP+:} false; then :
4581 $as_echo_n "(cached
) " >&6
4583 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4584 then ac_cv_path_EGREP="$GREP -E"
4586 if test -z "$EGREP"; then
4587 ac_path_EGREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in egrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4597 as_fn_executable_p "$ac_path_EGREP" || continue
4598 # Check for GNU ac_path_EGREP and select it if it is found.
4599 # Check for GNU $ac_path_EGREP
4600 case `"$ac_path_EGREP" --version 2>&1` in
4602 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4605 $as_echo_n 0123456789 >"conftest.
in"
4608 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4609 mv "conftest.tmp
" "conftest.
in"
4610 cp "conftest.
in" "conftest.
nl"
4611 $as_echo 'EGREP' >> "conftest.
nl"
4612 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4613 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_EGREP="$ac_path_EGREP"
4618 ac_path_EGREP_max=$ac_count
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 $ac_path_EGREP_found && break 3
4631 if test -z "$ac_cv_path_EGREP"; then
4632 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4635 ac_cv_path_EGREP=$EGREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4641 $as_echo "$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4646 $as_echo_n "checking
for fgrep...
" >&6; }
4647 if ${ac_cv_path_FGREP+:} false; then :
4648 $as_echo_n "(cached
) " >&6
4650 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4651 then ac_cv_path_FGREP="$GREP -F"
4653 if test -z "$FGREP"; then
4654 ac_path_FGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in fgrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 as_fn_executable_p "$ac_path_FGREP" || continue
4665 # Check for GNU ac_path_FGREP and select it if it is found.
4666 # Check for GNU $ac_path_FGREP
4667 case `"$ac_path_FGREP" --version 2>&1` in
4669 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4672 $as_echo_n 0123456789 >"conftest.
in"
4675 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4676 mv "conftest.tmp
" "conftest.
in"
4677 cp "conftest.
in" "conftest.
nl"
4678 $as_echo 'FGREP' >> "conftest.
nl"
4679 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4680 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_FGREP="$ac_path_FGREP"
4685 ac_path_FGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 $ac_path_FGREP_found && break 3
4698 if test -z "$ac_cv_path_FGREP"; then
4699 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4702 ac_cv_path_FGREP=$FGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4708 $as_echo "$ac_cv_path_FGREP" >&6; }
4709 FGREP="$ac_cv_path_FGREP"
4712 test -z "$GREP" && GREP=grep
4732 # Check whether --with-gnu-ld was given.
4733 if test "${with_gnu_ld+set}" = set; then :
4734 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4740 if test yes = "$GCC"; then
4741 # Check if gcc -print-prog-name=ld gives a path.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4743 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4746 # gcc leaves a trailing carriage return, which upsets mingw
4747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4752 # Accept absolute paths.
4754 re_direlt='/[^/][^/]*/\.\./'
4755 # Canonicalize the pathname of ld
4756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4758 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4760 test -z "$LD" && LD=$ac_prog
4763 # If it fails, then pretend we aren't using GCC.
4767 # If it is relative, then search for the first ld in PATH.
4771 elif test yes = "$with_gnu_ld"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4773 $as_echo_n "checking
for GNU ld...
" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4776 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4778 if ${lt_cv_path_LD+:} false; then :
4779 $as_echo_n "(cached
) " >&6
4781 if test -z "$LD"; then
4782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4783 for ac_dir in $PATH; do
4785 test -z "$ac_dir" && ac_dir=.
4786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4787 lt_cv_path_LD=$ac_dir/$ac_prog
4788 # Check to see if the program is GNU ld. I'd rather use --version,
4789 # but apparently some variants of GNU ld only accept -v.
4790 # Break only if it was the GNU/non-GNU ld that we prefer.
4791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 test no != "$with_gnu_ld" && break
4796 test yes != "$with_gnu_ld" && break
4803 lt_cv_path_LD=$LD # Let the user override the test with a path.
4808 if test -n "$LD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4810 $as_echo "$LD" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4813 $as_echo "no
" >&6; }
4815 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4817 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4818 if ${lt_cv_prog_gnu_ld+:} false; then :
4819 $as_echo_n "(cached
) " >&6
4821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4822 case `$LD -v 2>&1 </dev/null` in
4823 *GNU* | *'with BFD'*)
4824 lt_cv_prog_gnu_ld=yes
4827 lt_cv_prog_gnu_ld=no
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4833 with_gnu_ld=$lt_cv_prog_gnu_ld
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4844 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4845 if ${lt_cv_path_NM+:} false; then :
4846 $as_echo_n "(cached
) " >&6
4848 if test -n "$NM"; then
4849 # Let the user override the test.
4852 lt_nm_to_check=${ac_tool_prefix}nm
4853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4854 lt_nm_to_check="$lt_nm_to_check nm
"
4856 for lt_tmp_nm in $lt_nm_to_check; do
4857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4860 test -z "$ac_dir" && ac_dir=.
4861 tmp_nm=$ac_dir/$lt_tmp_nm
4862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4863 # Check to see if the nm accepts a BSD-compat flag.
4864 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4865 # nm: unknown option "B
" ignored
4866 # Tru64's nm complains that /dev/null is an invalid object file
4867 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4869 mingw*) lt_bad_file=conftest.nm/nofile ;;
4870 *) lt_bad_file=/dev/null ;;
4872 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4873 *$lt_bad_file* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4880 lt_cv_path_NM="$tmp_nm -p"
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4894 : ${lt_cv_path_NM=no}
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 if test no != "$lt_cv_path_NM"; then
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link
-dump"
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4912 $as_echo_n "checking
for $ac_word...
" >&6; }
4913 if ${ac_cv_prog_DUMPBIN+:} false; then :
4914 $as_echo_n "(cached
) " >&6
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4936 DUMPBIN=$ac_cv_prog_DUMPBIN
4937 if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4939 $as_echo "$DUMPBIN" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4942 $as_echo "no
" >&6; }
4946 test -n "$DUMPBIN" && break
4949 if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link
-dump"
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4956 $as_echo_n "checking
for $ac_word...
" >&6; }
4957 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4958 $as_echo_n "(cached
) " >&6
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4980 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981 if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4983 $as_echo "$ac_ct_DUMPBIN" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4986 $as_echo "no
" >&6; }
4990 test -n "$ac_ct_DUMPBIN" && break
4993 if test "x
$ac_ct_DUMPBIN" = x; then
4996 case $cross_compiling:$ac_tool_warned in
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4999 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5000 ac_tool_warned=yes ;;
5002 DUMPBIN=$ac_ct_DUMPBIN
5006 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5008 DUMPBIN="$DUMPBIN -symbols -headers"
5016 if test : != "$DUMPBIN"; then
5020 test -z "$NM" && NM=nm
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5028 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5029 if ${lt_cv_nm_interface+:} false; then :
5030 $as_echo_n "(cached
) " >&6
5032 lt_cv_nm_interface="BSD nm
"
5033 echo "int some_variable
= 0;" > conftest.$ac_ext
5034 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin
"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5048 $as_echo "$lt_cv_nm_interface" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5051 $as_echo_n "checking whether
ln -s works...
" >&6; }
5053 if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5055 $as_echo "yes" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5058 $as_echo "no
, using
$LN_S" >&6; }
5061 # find the maximum length of command line arguments
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5063 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5064 if ${lt_cv_sys_max_cmd_len+:} false; then :
5065 $as_echo_n "(cached
) " >&6
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen
" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5108 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5128 # The test takes a long time on OS/2.
5129 lt_cv_sys_max_cmd_len=8192
5133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5135 # nice to cause kernel panics so lets avoid the loop below.
5136 # First set a reasonable default.
5137 lt_cv_sys_max_cmd_len=16384
5139 if test -x /sbin/sysconfig; then
5140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5146 lt_cv_sys_max_cmd_len=102400
5148 sysv5* | sco5v6* | sysv4.2uw2*)
5149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5150 if test -n "$kargmax"; then
5151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5153 lt_cv_sys_max_cmd_len=32768
5157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5158 if test -n "$lt_cv_sys_max_cmd_len" && \
5159 test undefined != "$lt_cv_sys_max_cmd_len"; then
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5163 # Make teststring a little bigger before we do anything with it.
5164 # a 1K string should be a reasonable start.
5165 for i in 1 2 3 4 5 6 7 8; do
5166 teststring=$teststring$teststring
5168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5169 # If test is not a shell built-in, we'll probably end up computing a
5170 # maximum length that is only half of the actual maximum length, but
5172 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5173 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5174 test 17 != "$i" # 1/2 MB should be enough
5177 teststring=$teststring$teststring
5179 # Only check the string length outside the loop.
5180 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5182 # Add a significant safety factor because C++ compilers can tack on
5183 # massive amounts of additional arguments before passing them to the
5184 # linker. It appears as though 1/2 is a usable value.
5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5192 if test -n "$lt_cv_sys_max_cmd_len"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5194 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5197 $as_echo "none
" >&6; }
5199 max_cmd_len=$lt_cv_sys_max_cmd_len
5210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220 # test EBCDIC or ASCII
5221 case `echo X|tr X '\101'` in
5222 A) # ASCII based system
5223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5224 lt_SP2NL='tr \040 \012'
5225 lt_NL2SP='tr \015\012 \040\040'
5227 *) # EBCDIC based system
5228 lt_SP2NL='tr \100 \n'
5229 lt_NL2SP='tr \r\n \100\100'
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5242 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5243 if ${lt_cv_to_host_file_cmd+:} false; then :
5244 $as_echo_n "(cached
) " >&6
5249 *-*-mingw* ) # actually msys
5250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5253 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5255 * ) # otherwise, assume *nix
5256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5262 *-*-mingw* ) # actually msys
5263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5266 lt_cv_to_host_file_cmd=func_convert_file_noop
5268 * ) # otherwise, assume *nix
5269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5273 * ) # unhandled hosts (and "normal
" native builds)
5274 lt_cv_to_host_file_cmd=func_convert_file_noop
5280 to_host_file_cmd=$lt_cv_to_host_file_cmd
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5282 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5289 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5290 if ${lt_cv_to_tool_file_cmd+:} false; then :
5291 $as_echo_n "(cached
) " >&6
5293 #assume ordinary cross tools, or native build.
5294 lt_cv_to_tool_file_cmd=func_convert_file_noop
5298 *-*-mingw* ) # actually msys
5299 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5307 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5309 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5316 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5317 if ${lt_cv_ld_reload_flag+:} false; then :
5318 $as_echo_n "(cached
) " >&6
5320 lt_cv_ld_reload_flag='-r'
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5323 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5324 reload_flag=$lt_cv_ld_reload_flag
5325 case $reload_flag in
5327 *) reload_flag=" $reload_flag" ;;
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5331 cygwin* | mingw* | pw32* | cegcc*)
5332 if test yes != "$GCC"; then
5337 if test yes = "$GCC"; then
5338 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5340 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5357 $as_echo_n "checking
for $ac_word...
" >&6; }
5358 if ${ac_cv_prog_OBJDUMP+:} false; then :
5359 $as_echo_n "(cached
) " >&6
5361 if test -n "$OBJDUMP"; then
5362 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5381 OBJDUMP=$ac_cv_prog_OBJDUMP
5382 if test -n "$OBJDUMP"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5384 $as_echo "$OBJDUMP" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5387 $as_echo "no
" >&6; }
5392 if test -z "$ac_cv_prog_OBJDUMP"; then
5393 ac_ct_OBJDUMP=$OBJDUMP
5394 # Extract the first word of "objdump
", so it can be a program name with args.
5395 set dummy objdump; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5397 $as_echo_n "checking
for $ac_word...
" >&6; }
5398 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5399 $as_echo_n "(cached
) " >&6
5401 if test -n "$ac_ct_OBJDUMP"; then
5402 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5422 if test -n "$ac_ct_OBJDUMP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5424 $as_echo "$ac_ct_OBJDUMP" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5427 $as_echo "no
" >&6; }
5430 if test "x
$ac_ct_OBJDUMP" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5436 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5437 ac_tool_warned=yes ;;
5439 OBJDUMP=$ac_ct_OBJDUMP
5442 OBJDUMP="$ac_cv_prog_OBJDUMP"
5445 test -z "$OBJDUMP" && OBJDUMP=objdump
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5456 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5457 if ${lt_cv_deplibs_check_method+:} false; then :
5458 $as_echo_n "(cached
) " >&6
5460 lt_cv_file_magic_cmd='$MAGIC_CMD'
5461 lt_cv_file_magic_test_file=
5462 lt_cv_deplibs_check_method='unknown'
5463 # Need to set the preceding variable on all platforms that support
5464 # interlibrary dependencies.
5465 # 'none' -- dependencies not supported.
5466 # 'unknown' -- same as none, but documents that we really don't know.
5467 # 'pass_all' -- all dependencies passed with no checks.
5468 # 'test_compile' -- check by making test program.
5469 # 'file_magic [[regex]]' -- check by looking for files in library path
5470 # that responds to the $file_magic_cmd with a given extended regex.
5471 # If you have 'file' or equivalent on your system and you're not sure
5472 # whether 'pass_all' will *always* work, you probably want this one.
5476 lt_cv_deplibs_check_method=pass_all
5480 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5485 lt_cv_file_magic_cmd='/usr/bin/file -L'
5486 lt_cv_file_magic_test_file=/shlib/libc.so
5490 # func_win32_libid is a shell function defined in ltmain.sh
5491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5492 lt_cv_file_magic_cmd='func_win32_libid'
5496 # Base MSYS/MinGW do not provide the 'file' command needed by
5497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5498 # unless we find 'file', for example because we are cross-compiling.
5499 if ( file / ) >/dev/null 2>&1; then
5500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5501 lt_cv_file_magic_cmd='func_win32_libid'
5503 # Keep this pattern in sync with the one in func_win32_libid.
5504 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5505 lt_cv_file_magic_cmd='$OBJDUMP -f'
5510 # use the weaker test based on 'objdump'. See mingw*.
5511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5512 lt_cv_file_magic_cmd='$OBJDUMP -f'
5515 darwin* | rhapsody*)
5516 lt_cv_deplibs_check_method=pass_all
5519 freebsd* | dragonfly*)
5520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5523 # Not sure whether the presence of OpenBSD here was a mistake.
5524 # Let's accept both of them until this is cleared up.
5525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5526 lt_cv_file_magic_cmd=/usr/bin/file
5527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5531 lt_cv_deplibs_check_method=pass_all
5536 lt_cv_deplibs_check_method=pass_all
5539 hpux10.20* | hpux11*)
5540 lt_cv_file_magic_cmd=/usr/bin/file
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5562 irix5* | irix6* | nonstopux*)
5564 *-32|*"-32 ") libmagic=32-bit;;
5565 *-n32|*"-n32 ") libmagic=N32;;
5566 *-64|*"-64 ") libmagic=64-bit;;
5567 *) libmagic=never-match;;
5569 lt_cv_deplibs_check_method=pass_all
5572 # This must be glibc/ELF.
5573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5574 lt_cv_deplibs_check_method=pass_all
5577 netbsd* | netbsdelf*-gnu)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5592 lt_cv_deplibs_check_method=pass_all
5596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 osf3* | osf4* | osf5*)
5604 lt_cv_deplibs_check_method=pass_all
5608 lt_cv_deplibs_check_method=pass_all
5612 lt_cv_deplibs_check_method=pass_all
5615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5616 lt_cv_deplibs_check_method=pass_all
5620 case $host_vendor in
5622 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]'
5623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5626 lt_cv_deplibs_check_method=pass_all
5629 lt_cv_file_magic_cmd='/bin/file'
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5633 lt_cv_file_magic_cmd='/bin/file'
5634 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5635 lt_cv_file_magic_test_file=/lib/libc.so
5638 lt_cv_deplibs_check_method=pass_all
5641 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5656 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 if test "$build" = "$host"; then
5663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5672 file_magic_cmd=$lt_cv_file_magic_cmd
5673 deplibs_check_method=$lt_cv_deplibs_check_method
5674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5701 $as_echo_n "checking
for $ac_word...
" >&6; }
5702 if ${ac_cv_prog_DLLTOOL+:} false; then :
5703 $as_echo_n "(cached
) " >&6
5705 if test -n "$DLLTOOL"; then
5706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5725 DLLTOOL=$ac_cv_prog_DLLTOOL
5726 if test -n "$DLLTOOL"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5728 $as_echo "$DLLTOOL" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5731 $as_echo "no
" >&6; }
5736 if test -z "$ac_cv_prog_DLLTOOL"; then
5737 ac_ct_DLLTOOL=$DLLTOOL
5738 # Extract the first word of "dlltool
", so it can be a program name with args.
5739 set dummy dlltool; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5741 $as_echo_n "checking
for $ac_word...
" >&6; }
5742 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5743 $as_echo_n "(cached
) " >&6
5745 if test -n "$ac_ct_DLLTOOL"; then
5746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5766 if test -n "$ac_ct_DLLTOOL"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5768 $as_echo "$ac_ct_DLLTOOL" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5771 $as_echo "no
" >&6; }
5774 if test "x
$ac_ct_DLLTOOL" = x; then
5777 case $cross_compiling:$ac_tool_warned in
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5780 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5781 ac_tool_warned=yes ;;
5783 DLLTOOL=$ac_ct_DLLTOOL
5786 DLLTOOL="$ac_cv_prog_DLLTOOL"
5789 test -z "$DLLTOOL" && DLLTOOL=dlltool
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5801 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5802 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5803 $as_echo_n "(cached
) " >&6
5805 lt_cv_sharedlib_from_linklib_cmd='unknown'
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 # two different shell functions defined in ltmain.sh;
5810 # decide which one to use based on capabilities of $DLLTOOL
5811 case `$DLLTOOL --help 2>&1` in
5812 *--identify-strict*)
5813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5821 # fallback: assume linklib IS sharedlib
5822 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5828 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5829 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5830 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5839 if test -n "$ac_tool_prefix"; then
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5845 $as_echo_n "checking
for $ac_word...
" >&6; }
5846 if ${ac_cv_prog_AR+:} false; then :
5847 $as_echo_n "(cached
) " >&6
5849 if test -n "$AR"; then
5850 ac_cv_prog_AR="$AR" # Let the user override the test.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5870 if test -n "$AR"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5872 $as_echo "$AR" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5875 $as_echo "no
" >&6; }
5879 test -n "$AR" && break
5882 if test -z "$AR"; then
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5889 $as_echo_n "checking
for $ac_word...
" >&6; }
5890 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5891 $as_echo_n "(cached
) " >&6
5893 if test -n "$ac_ct_AR"; then
5894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_AR="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5913 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5914 if test -n "$ac_ct_AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5916 $as_echo "$ac_ct_AR" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5919 $as_echo "no
" >&6; }
5923 test -n "$ac_ct_AR" && break
5926 if test "x
$ac_ct_AR" = x; then
5929 case $cross_compiling:$ac_tool_warned in
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5932 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5933 ac_tool_warned=yes ;;
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5953 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5954 if ${lt_cv_ar_at_file+:} false; then :
5955 $as_echo_n "(cached
) " >&6
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 echo conftest.$ac_objext > conftest.lst
5971 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5972 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5973 (eval $lt_ar_try) 2>&5
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5976 test $ac_status = 0; }
5977 if test 0 -eq "$ac_status"; then
5978 # Ensure the archiver fails upon bogus file names.
5979 rm -f conftest.$ac_objext libconftest.a
5980 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5981 (eval $lt_ar_try) 2>&5
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5984 test $ac_status = 0; }
5985 if test 0 -ne "$ac_status"; then
5989 rm -f conftest.* libconftest.a
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5996 $as_echo "$lt_cv_ar_at_file" >&6; }
5998 if test no = "$lt_cv_ar_at_file"; then
6001 archiver_list_spec=$lt_cv_ar_at_file
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}strip; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6014 $as_echo_n "checking
for $ac_word...
" >&6; }
6015 if ${ac_cv_prog_STRIP+:} false; then :
6016 $as_echo_n "(cached
) " >&6
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6038 STRIP=$ac_cv_prog_STRIP
6039 if test -n "$STRIP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6041 $as_echo "$STRIP" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6044 $as_echo "no
" >&6; }
6049 if test -z "$ac_cv_prog_STRIP"; then
6051 # Extract the first word of "strip
", so it can be a program name with args.
6052 set dummy strip; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6054 $as_echo_n "checking
for $ac_word...
" >&6; }
6055 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6056 $as_echo_n "(cached
) " >&6
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_ac_ct_STRIP="strip
"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079 if test -n "$ac_ct_STRIP"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6081 $as_echo "$ac_ct_STRIP" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6084 $as_echo "no
" >&6; }
6087 if test "x
$ac_ct_STRIP" = x; then
6090 case $cross_compiling:$ac_tool_warned in
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6093 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6094 ac_tool_warned=yes ;;
6099 STRIP="$ac_cv_prog_STRIP"
6102 test -z "$STRIP" && STRIP=:
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6113 $as_echo_n "checking
for $ac_word...
" >&6; }
6114 if ${ac_cv_prog_RANLIB+:} false; then :
6115 $as_echo_n "(cached
) " >&6
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6143 $as_echo "no
" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib
", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6153 $as_echo_n "checking
for $ac_word...
" >&6; }
6154 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6155 $as_echo_n "(cached
) " >&6
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6183 $as_echo "no
" >&6; }
6186 if test "x
$ac_ct_RANLIB" = x; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6192 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6193 ac_tool_warned=yes ;;
6195 RANLIB=$ac_ct_RANLIB
6198 RANLIB="$ac_cv_prog_RANLIB"
6201 test -z "$RANLIB" && RANLIB=:
6208 # Determine commands to create old-style static archives.
6209 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6210 old_postinstall_cmds='chmod 644 $oldlib'
6211 old_postuninstall_cmds=
6213 if test -n "$RANLIB"; then
6216 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6219 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6222 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6227 lock_old_archive_extraction=yes ;;
6229 lock_old_archive_extraction=no ;;
6270 # If no C compiler was specified, use CC.
6273 # If no C compiler flags were specified, use CFLAGS.
6274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276 # Allow CC to be a program name with arguments.
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6282 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached
) " >&6
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296 # Define system-specific variables.
6301 cygwin* | mingw* | pw32* | cegcc*)
6302 symcode='[ABCDGISTW]'
6305 if test ia64 = "$host_cpu"; then
6306 symcode='[ABCDEGRST]'
6310 symcode='[BCDEGRST]'
6313 symcode='[BCDEGQRST]'
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6338 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6339 # Gets list of data symbols to import.
6340 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6341 # Adjust the below global symbol transforms to fixup imported variables.
6342 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6343 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6344 lt_c_name_lib_hook="\
6345 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6346 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6348 # Disable hooks by default.
6349 lt_cv_sys_global_symbol_to_import=
6355 # Transform an extracted symbol line into a proper C declaration.
6356 # Some systems (esp. on ia64) link data and code symbols differently,
6357 # so use this general approach.
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6360 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6361 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6366 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6367 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6369 # Transform an extracted symbol line into symbol name with lib prefix and
6371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6372 $lt_c_name_lib_hook\
6373 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6374 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6375 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6377 # Handle CRLF in mingw tool chain
6381 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 # Try without a prefix underscore, then with it.
6386 for ac_symprfx in "" "_
"; do
6388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6389 symxfrm="\\1 $ac_symprfx\\2 \\2"
6391 # Write the raw and C identifiers.
6392 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6393 # Fake it for dumpbin and say T for any non-static function,
6394 # D for any global variable and I for any imported variable.
6395 # Also find C++ and __fastcall symbols from MSVC++,
6396 # which start with @ or ?.
6397 lt_cv_sys_global_symbol_pipe="$AWK '"\
6398 " {last_section=section; section=\$ 3};"\
6399 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6400 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6401 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6402 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6403 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6404 " \$ 0!~/External *\|/{next};"\
6405 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6406 " {if(hide[section]) next};"\
6407 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6408 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6409 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6410 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6411 " ' prfx
=^
$ac_symprfx"
6413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6415 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6417 # Check to see that the pipe works correctly.
6421 cat > conftest.$ac_ext <<_LT_EOF
6426 void nm_test_func(void);
6427 void nm_test_func(void){}
6431 int main(){nm_test_var='a';nm_test_func();return(0);}
6434 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 # Now try to grab the symbols.
6441 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6445 test $ac_status = 0; } && test -s "$nlist"; then
6446 # Try sorting and uniquifying the output.
6447 if sort "$nlist" | uniq > "$nlist"T; then
6448 mv -f "$nlist"T "$nlist"
6453 # Make sure that we snagged all the symbols we need.
6454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6456 cat <<_LT_EOF > conftest.$ac_ext
6457 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6459 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6460 relocations are performed -- see ld's documentation on pseudo-relocs. */
6461 # define LT_DLSYM_CONST
6462 #elif defined __osf__
6463 /* This system does not cope well with relocations in const data. */
6464 # define LT_DLSYM_CONST
6466 # define LT_DLSYM_CONST const
6474 # Now generate the symbol file.
6475 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6477 cat <<_LT_EOF >> conftest.$ac_ext
6479 /* The mapping between symbol names and symbols. */
6480 LT_DLSYM_CONST struct {
6484 lt__PROGRAM__LTX_preloaded_symbols[] =
6486 { "@PROGRAM@
", (void *) 0 },
6488 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6489 cat <<\_LT_EOF >> conftest.$ac_ext
6493 /* This works around a problem in FreeBSD linker */
6494 #ifdef FREEBSD_WORKAROUND
6495 static const void *lt_preloaded_setup() {
6496 return lt__PROGRAM__LTX_preloaded_symbols;
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_globsym_save_LIBS=$LIBS
6507 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS=conftstm.$ac_objext
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6511 (eval $ac_link) 2>&5
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6517 LIBS=$lt_globsym_save_LIBS
6518 CFLAGS=$lt_globsym_save_CFLAGS
6520 echo "cannot
find nm_test_func
in $nlist" >&5
6523 echo "cannot
find nm_test_var
in $nlist" >&5
6526 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6529 echo "$progname: failed program was
:" >&5
6530 cat conftest.$ac_ext >&5
6532 rm -rf conftest* conftst*
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test yes = "$pipe_works"; then
6538 lt_cv_sys_global_symbol_pipe=
6544 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6547 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6549 $as_echo "failed
" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6552 $as_echo "ok
" >&6; }
6555 # Response file support.
6556 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6557 nm_file_list_spec='@'
6558 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6559 nm_file_list_spec='@'
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6599 $as_echo_n "checking
for sysroot...
" >&6; }
6601 # Check whether --with-sysroot was given.
6602 if test "${with_sysroot+set}" = set; then :
6603 withval=$with_sysroot;
6610 case $with_sysroot in #(
6612 if test yes = "$GCC"; then
6613 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6617 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6623 $as_echo "$with_sysroot" >&6; }
6624 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6629 $as_echo "${lt_sysroot:-no}" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6636 $as_echo_n "checking
for a working
dd...
" >&6; }
6637 if ${ac_cv_path_lt_DD+:} false; then :
6638 $as_echo_n "(cached
) " >&6
6640 printf 0123456789abcdef0123456789abcdef >conftest.i
6641 cat conftest.i conftest.i >conftest2.i
6643 if test -z "$lt_DD"; then
6644 ac_path_lt_DD_found=false
6645 # Loop through the user's path and test for each of PROGNAME-LIST
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_prog in dd; do
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6654 as_fn_executable_p "$ac_path_lt_DD" || continue
6655 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6656 cmp -s conftest.i conftest.out \
6657 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6659 $ac_path_lt_DD_found && break 3
6664 if test -z "$ac_cv_path_lt_DD"; then
6668 ac_cv_path_lt_DD=$lt_DD
6671 rm -f conftest.i conftest2.i conftest.out
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6674 $as_echo "$ac_cv_path_lt_DD" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6678 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6679 if ${lt_cv_truncate_bin+:} false; then :
6680 $as_echo_n "(cached
) " >&6
6682 printf 0123456789abcdef0123456789abcdef >conftest.i
6683 cat conftest.i conftest.i >conftest2.i
6685 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6686 cmp -s conftest.i conftest.out \
6687 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6689 rm -f conftest.i conftest2.i conftest.out
6690 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6693 $as_echo "$lt_cv_truncate_bin" >&6; }
6701 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6704 for cc_temp in $*""; do
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6712 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6715 # Check whether --enable-libtool-lock was given.
6716 if test "${enable_libtool_lock+set}" = set; then :
6717 enableval=$enable_libtool_lock;
6720 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6722 # Some flags need to be propagated to the compiler or linker for good
6726 # Find out what ABI is being produced by ac_compile, and set mode
6727 # options accordingly.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6746 # Find out what ABI is being produced by ac_compile, and set linker
6747 # options accordingly.
6748 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 if test yes = "$lt_cv_prog_gnu_ld"; then
6755 case `/usr/bin/file conftest.$ac_objext` in
6757 LD="${LD-ld} -melf32bsmip"
6760 LD="${LD-ld} -melf32bmipn32"
6763 LD="${LD-ld} -melf64bmip"
6767 case `/usr/bin/file conftest.$ac_objext` in
6784 # Find out what ABI is being produced by ac_compile, and set linker
6785 # options accordingly.
6786 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6787 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6791 test $ac_status = 0; }; then
6793 case `/usr/bin/file conftest.$ac_objext` in
6801 case `/usr/bin/file conftest.$ac_objext` in
6803 emul="${emul}btsmip
"
6806 emul="${emul}ltsmip
"
6809 case `/usr/bin/file conftest.$ac_objext` in
6814 LD="${LD-ld} -m $emul"
6819 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6820 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6821 # Find out what ABI is being produced by ac_compile, and set linker
6822 # options accordingly. Note that the listed cases only cover the
6823 # situations where additional linker options are needed (such as when
6824 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6825 # vice versa); the common cases where no linker options are needed do
6826 # not appear in the list.
6827 echo 'int i;' > conftest.$ac_ext
6828 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829 (eval $ac_compile) 2>&5
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6832 test $ac_status = 0; }; then
6833 case `/usr/bin/file conftest.o` in
6836 x86_64-*kfreebsd*-gnu)
6837 LD="${LD-ld} -m elf_i386_fbsd
"
6840 case `/usr/bin/file conftest.o` in
6842 LD="${LD-ld} -m elf32_x86_64
"
6845 LD="${LD-ld} -m elf_i386
"
6849 powerpc64le-*linux*)
6850 LD="${LD-ld} -m elf32lppclinux
"
6853 LD="${LD-ld} -m elf32ppclinux
"
6856 LD="${LD-ld} -m elf_s390
"
6859 LD="${LD-ld} -m elf32_sparc
"
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd
"
6869 LD="${LD-ld} -m elf_x86_64
"
6872 LD="${LD-ld} -m elf64lppc
"
6875 LD="${LD-ld} -m elf64ppc
"
6877 s390*-*linux*|s390*-*tpf*)
6878 LD="${LD-ld} -m elf64_s390
"
6881 LD="${LD-ld} -m elf64_sparc
"
6891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6893 CFLAGS="$CFLAGS -belf"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6895 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6896 if ${lt_cv_cc_needs_belf+:} false; then :
6897 $as_echo_n "(cached
) " >&6
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6916 if ac_fn_c_try_link "$LINENO"; then :
6917 lt_cv_cc_needs_belf=yes
6919 lt_cv_cc_needs_belf=no
6921 rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6924 ac_cpp='$CPP $CPPFLAGS'
6925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6931 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6932 if test yes != "$lt_cv_cc_needs_belf"; then
6933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6938 # Find out what ABI is being produced by ac_compile, and set linker
6939 # options accordingly.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.o` in
6948 case $lt_cv_prog_gnu_ld in
6951 i?86-*-solaris*|x86_64-*-solaris*)
6952 LD="${LD-ld} -m elf_x86_64
"
6955 LD="${LD-ld} -m elf64_sparc
"
6958 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6959 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6964 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976 need_locks=$enable_libtool_lock
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}mt; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6982 $as_echo_n "checking
for $ac_word...
" >&6; }
6983 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6984 $as_echo_n "(cached
) " >&6
6986 if test -n "$MANIFEST_TOOL"; then
6987 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7006 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7007 if test -n "$MANIFEST_TOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7009 $as_echo "$MANIFEST_TOOL" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7012 $as_echo "no
" >&6; }
7017 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7018 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7019 # Extract the first word of "mt
", so it can be a program name with args.
7020 set dummy mt; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7022 $as_echo_n "checking
for $ac_word...
" >&6; }
7023 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7024 $as_echo_n "(cached
) " >&6
7026 if test -n "$ac_ct_MANIFEST_TOOL"; then
7027 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7046 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7047 if test -n "$ac_ct_MANIFEST_TOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7049 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7052 $as_echo "no
" >&6; }
7055 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7058 case $cross_compiling:$ac_tool_warned in
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7061 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7062 ac_tool_warned=yes ;;
7064 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7067 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7070 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7072 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7073 if ${lt_cv_path_mainfest_tool+:} false; then :
7074 $as_echo_n "(cached
) " >&6
7076 lt_cv_path_mainfest_tool=no
7077 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7078 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7079 cat conftest.err >&5
7080 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7081 lt_cv_path_mainfest_tool=yes
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7086 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7087 if test yes != "$lt_cv_path_mainfest_tool"; then
7097 rhapsody* | darwin*)
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7102 $as_echo_n "checking
for $ac_word...
" >&6; }
7103 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7104 $as_echo_n "(cached
) " >&6
7106 if test -n "$DSYMUTIL"; then
7107 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7126 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7127 if test -n "$DSYMUTIL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7129 $as_echo "$DSYMUTIL" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7132 $as_echo "no
" >&6; }
7137 if test -z "$ac_cv_prog_DSYMUTIL"; then
7138 ac_ct_DSYMUTIL=$DSYMUTIL
7139 # Extract the first word of "dsymutil
", so it can be a program name with args.
7140 set dummy dsymutil; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7142 $as_echo_n "checking
for $ac_word...
" >&6; }
7143 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7144 $as_echo_n "(cached
) " >&6
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7166 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7167 if test -n "$ac_ct_DSYMUTIL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7169 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7172 $as_echo "no
" >&6; }
7175 if test "x
$ac_ct_DSYMUTIL" = x; then
7178 case $cross_compiling:$ac_tool_warned in
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7182 ac_tool_warned=yes ;;
7184 DSYMUTIL=$ac_ct_DSYMUTIL
7187 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7194 $as_echo_n "checking
for $ac_word...
" >&6; }
7195 if ${ac_cv_prog_NMEDIT+:} false; then :
7196 $as_echo_n "(cached
) " >&6
7198 if test -n "$NMEDIT"; then
7199 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7218 NMEDIT=$ac_cv_prog_NMEDIT
7219 if test -n "$NMEDIT"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7221 $as_echo "$NMEDIT" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7224 $as_echo "no
" >&6; }
7229 if test -z "$ac_cv_prog_NMEDIT"; then
7230 ac_ct_NMEDIT=$NMEDIT
7231 # Extract the first word of "nmedit
", so it can be a program name with args.
7232 set dummy nmedit; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7234 $as_echo_n "checking
for $ac_word...
" >&6; }
7235 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$ac_ct_NMEDIT"; then
7239 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7259 if test -n "$ac_ct_NMEDIT"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7261 $as_echo "$ac_ct_NMEDIT" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7267 if test "x
$ac_ct_NMEDIT" = x; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7273 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7274 ac_tool_warned=yes ;;
7276 NMEDIT=$ac_ct_NMEDIT
7279 NMEDIT="$ac_cv_prog_NMEDIT"
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7286 $as_echo_n "checking
for $ac_word...
" >&6; }
7287 if ${ac_cv_prog_LIPO+:} false; then :
7288 $as_echo_n "(cached
) " >&6
7290 if test -n "$LIPO"; then
7291 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7310 LIPO=$ac_cv_prog_LIPO
7311 if test -n "$LIPO"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7313 $as_echo "$LIPO" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7316 $as_echo "no
" >&6; }
7321 if test -z "$ac_cv_prog_LIPO"; then
7323 # Extract the first word of "lipo
", so it can be a program name with args.
7324 set dummy lipo; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7326 $as_echo_n "checking
for $ac_word...
" >&6; }
7327 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7328 $as_echo_n "(cached
) " >&6
7330 if test -n "$ac_ct_LIPO"; then
7331 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_LIPO="lipo
"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7350 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7351 if test -n "$ac_ct_LIPO"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7353 $as_echo "$ac_ct_LIPO" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7356 $as_echo "no
" >&6; }
7359 if test "x
$ac_ct_LIPO" = x; then
7362 case $cross_compiling:$ac_tool_warned in
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7365 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7366 ac_tool_warned=yes ;;
7371 LIPO="$ac_cv_prog_LIPO"
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7376 set dummy ${ac_tool_prefix}otool; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7378 $as_echo_n "checking
for $ac_word...
" >&6; }
7379 if ${ac_cv_prog_OTOOL+:} false; then :
7380 $as_echo_n "(cached
) " >&6
7382 if test -n "$OTOOL"; then
7383 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7402 OTOOL=$ac_cv_prog_OTOOL
7403 if test -n "$OTOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7405 $as_echo "$OTOOL" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7408 $as_echo "no
" >&6; }
7413 if test -z "$ac_cv_prog_OTOOL"; then
7415 # Extract the first word of "otool
", so it can be a program name with args.
7416 set dummy otool; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7418 $as_echo_n "checking
for $ac_word...
" >&6; }
7419 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7420 $as_echo_n "(cached
) " >&6
7422 if test -n "$ac_ct_OTOOL"; then
7423 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_OTOOL="otool
"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7442 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7443 if test -n "$ac_ct_OTOOL"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7445 $as_echo "$ac_ct_OTOOL" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7448 $as_echo "no
" >&6; }
7451 if test "x
$ac_ct_OTOOL" = x; then
7454 case $cross_compiling:$ac_tool_warned in
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7457 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7458 ac_tool_warned=yes ;;
7463 OTOOL="$ac_cv_prog_OTOOL"
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7470 $as_echo_n "checking
for $ac_word...
" >&6; }
7471 if ${ac_cv_prog_OTOOL64+:} false; then :
7472 $as_echo_n "(cached
) " >&6
7474 if test -n "$OTOOL64"; then
7475 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7494 OTOOL64=$ac_cv_prog_OTOOL64
7495 if test -n "$OTOOL64"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7497 $as_echo "$OTOOL64" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7500 $as_echo "no
" >&6; }
7505 if test -z "$ac_cv_prog_OTOOL64"; then
7506 ac_ct_OTOOL64=$OTOOL64
7507 # Extract the first word of "otool64
", so it can be a program name with args.
7508 set dummy otool64; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7510 $as_echo_n "checking
for $ac_word...
" >&6; }
7511 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7512 $as_echo_n "(cached
) " >&6
7514 if test -n "$ac_ct_OTOOL64"; then
7515 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7534 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7535 if test -n "$ac_ct_OTOOL64"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7537 $as_echo "$ac_ct_OTOOL64" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7540 $as_echo "no
" >&6; }
7543 if test "x
$ac_ct_OTOOL64" = x; then
7546 case $cross_compiling:$ac_tool_warned in
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7549 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7550 ac_tool_warned=yes ;;
7552 OTOOL64=$ac_ct_OTOOL64
7555 OTOOL64="$ac_cv_prog_OTOOL64"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7585 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7586 if ${lt_cv_apple_cc_single_mod+:} false; then :
7587 $as_echo_n "(cached
) " >&6
7589 lt_cv_apple_cc_single_mod=no
7590 if test -z "$LT_MULTI_MODULE"; then
7591 # By default we will add the -single_module flag. You can override
7592 # by either setting the environment variable LT_MULTI_MODULE
7593 # non-empty at configure time, or by adding -multi_module to the
7595 rm -rf libconftest.dylib*
7596 echo "int foo
(void
){return 1;}" > conftest.c
7597 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c
" >&5
7599 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7600 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7602 # If there is a non-empty error log, and "single_module
"
7603 # appears in it, assume the flag caused a linker warning
7604 if test -s conftest.err && $GREP single_module conftest.err; then
7605 cat conftest.err >&5
7606 # Otherwise, if the output was created with a 0 exit code from
7607 # the compiler, it worked.
7608 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7609 lt_cv_apple_cc_single_mod=yes
7611 cat conftest.err >&5
7613 rm -rf libconftest.dylib*
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7618 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7621 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7622 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7623 $as_echo_n "(cached
) " >&6
7625 lt_cv_ld_exported_symbols_list=no
7626 save_LDFLAGS=$LDFLAGS
7627 echo "_main
" > conftest.sym
7628 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 lt_cv_ld_exported_symbols_list=yes
7643 lt_cv_ld_exported_symbols_list=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 LDFLAGS=$save_LDFLAGS
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7651 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7654 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7655 if ${lt_cv_ld_force_load+:} false; then :
7656 $as_echo_n "(cached
) " >&6
7658 lt_cv_ld_force_load=no
7659 cat > conftest.c << _LT_EOF
7660 int forced_loaded() { return 2;}
7662 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7663 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7664 echo "$AR cru libconftest.a conftest.o
" >&5
7665 $AR cru libconftest.a conftest.o 2>&5
7666 echo "$RANLIB libconftest.a
" >&5
7667 $RANLIB libconftest.a 2>&5
7668 cat > conftest.c << _LT_EOF
7669 int main() { return 0;}
7671 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7672 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7674 if test -s conftest.err && $GREP force_load conftest.err; then
7675 cat conftest.err >&5
7676 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7677 lt_cv_ld_force_load=yes
7679 cat conftest.err >&5
7681 rm -f conftest.err libconftest.a conftest conftest.c
7682 rm -rf conftest.dSYM
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7686 $as_echo "$lt_cv_ld_force_load" >&6; }
7688 rhapsody* | darwin1.[012])
7689 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7691 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7692 darwin*) # darwin 5.x on
7693 # if running on 10.5 or later, the deployment target defaults
7694 # to the OS version, if on x86, and 10.4, the deployment
7695 # target defaults to 10.4. Don't you love it?
7696 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7697 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7698 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7700 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7702 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7706 if test yes = "$lt_cv_apple_cc_single_mod"; then
7707 _lt_dar_single_mod='$single_module'
7709 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7710 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7712 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7714 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7715 _lt_dsymutil='~$DSYMUTIL $lib || :'
7722 # func_munge_path_list VARIABLE PATH
7723 # -----------------------------------
7724 # VARIABLE is name of variable containing _space_ separated list of
7725 # directories to be munged by the contents of PATH, which is string
7728 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7730 # string "DIR
[ DIR
]" will be appended to VARIABLE
7731 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7732 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7733 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7735 # VARIABLE will be replaced by "DIR
[ DIR
]"
7736 func_munge_path_list ()
7742 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7745 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7748 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7749 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7763 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7768 if test -z "$CPP"; then
7769 if ${ac_cv_prog_CPP+:} false; then :
7770 $as_echo_n "(cached
) " >&6
7772 # Double quotes because CPP needs to be expanded
7773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7776 for ac_c_preproc_warn_flag in '' yes
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error
" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 # include <limits.h>
7789 # include <assert.h>
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7796 # Broken: fails on valid input.
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7811 # Passes both tests.
7815 rm -f conftest.err conftest.i conftest.$ac_ext
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.i conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7833 $as_echo "$CPP" >&6; }
7835 for ac_c_preproc_warn_flag in '' yes
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error
" is here to catch this case.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7846 # include <limits.h>
7848 # include <assert.h>
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7855 # Broken: fails on valid input.
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <ac_nonexistent.h>
7866 if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: success on invalid input.
7870 # Passes both tests.
7874 rm -f conftest.err conftest.i conftest.$ac_ext
7877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878 rm -f conftest.i conftest.err conftest.$ac_ext
7879 if $ac_preproc_ok; then :
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7885 See \`config.log' for more details
" "$LINENO" 5; }
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7896 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7897 if ${ac_cv_header_stdc+:} false; then :
7898 $as_echo_n "(cached
) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_header_stdc=yes
7918 ac_cv_header_stdc=no
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 if test $ac_cv_header_stdc = yes; then
7923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7930 $EGREP "memchr
" >/dev/null 2>&1; then :
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7946 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7947 $EGREP "free
" >/dev/null 2>&1; then :
7950 ac_cv_header_stdc=no
7956 if test $ac_cv_header_stdc = yes; then
7957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7958 if test "$cross_compiling" = yes; then :
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7965 #if ((' ' & 0x0FF) == 0x020)
7966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7969 # define ISLOWER(c) \
7970 (('a' <= (c) && (c) <= 'i') \
7971 || ('j' <= (c) && (c) <= 'r') \
7972 || ('s' <= (c) && (c) <= 'z'))
7973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7981 for (i = 0; i < 256; i++)
7982 if (XOR (islower (i), ISLOWER (i))
7983 || toupper (i) != TOUPPER (i))
7988 if ac_fn_c_try_run "$LINENO"; then :
7991 ac_cv_header_stdc=no
7993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8000 $as_echo "$ac_cv_header_stdc" >&6; }
8001 if test $ac_cv_header_stdc = yes; then
8003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8009 inttypes.h stdint.h unistd.h
8011 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8014 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8015 cat >>confdefs.h
<<_ACEOF
8016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 for ac_header
in dlfcn.h
8026 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8028 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8029 cat >>confdefs.h
<<_ACEOF
8030 #define HAVE_DLFCN_H 1
8051 # Check whether --enable-shared was given.
8052 if test "${enable_shared+set}" = set; then :
8053 enableval
=$enable_shared; p
=${PACKAGE-default}
8055 yes) enable_shared
=yes ;;
8056 no
) enable_shared
=no
;;
8059 # Look at the argument we got. We use all the common list separators.
8060 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8061 for pkg
in $enableval; do
8063 if test "X$pkg" = "X$p"; then
8082 # Check whether --enable-static was given.
8083 if test "${enable_static+set}" = set; then :
8084 enableval
=$enable_static; p
=${PACKAGE-default}
8086 yes) enable_static
=yes ;;
8087 no
) enable_static
=no
;;
8090 # Look at the argument we got. We use all the common list separators.
8091 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8092 for pkg
in $enableval; do
8094 if test "X$pkg" = "X$p"; then
8114 # Check whether --with-pic was given.
8115 if test "${with_pic+set}" = set; then :
8116 withval
=$with_pic; lt_p
=${PACKAGE-default}
8118 yes|no
) pic_mode
=$withval ;;
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8123 for lt_pkg
in $withval; do
8125 if test "X$lt_pkg" = "X$lt_p"; then
8143 # Check whether --enable-fast-install was given.
8144 if test "${enable_fast_install+set}" = set; then :
8145 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8147 yes) enable_fast_install
=yes ;;
8148 no
) enable_fast_install
=no
;;
8150 enable_fast_install
=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8153 for pkg
in $enableval; do
8155 if test "X$pkg" = "X$p"; then
8156 enable_fast_install
=yes
8163 enable_fast_install
=yes
8173 shared_archive_member_spec
=
8174 case $host,$enable_shared in
8175 power
*-*-aix[5-9]*,yes)
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8177 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8179 # Check whether --with-aix-soname was given.
8180 if test "${with_aix_soname+set}" = set; then :
8181 withval
=$with_aix_soname; case $withval in
8185 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8188 lt_cv_with_aix_soname
=$with_aix_soname
8190 if ${lt_cv_with_aix_soname+:} false
; then :
8191 $as_echo_n "(cached) " >&6
8193 lt_cv_with_aix_soname
=aix
8196 with_aix_soname
=$lt_cv_with_aix_soname
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8200 $as_echo "$with_aix_soname" >&6; }
8201 if test aix
!= "$with_aix_soname"; then
8202 # For the AIX way of multilib, we name the shared archive member
8203 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8204 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8205 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8206 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8207 if test 64 = "${OBJECT_MODE-32}"; then
8208 shared_archive_member_spec
=shr_64
8210 shared_archive_member_spec
=shr
8228 # This can be used to rebuild libtool when needed
8229 LIBTOOL_DEPS
=$ltmain
8231 # Always use our own libtool.
8232 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8263 test -z "$LN_S" && LN_S
="ln -s"
8278 if test -n "${ZSH_VERSION+set}"; then
8279 setopt NO_GLOB_SUBST
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8283 $as_echo_n "checking for objdir... " >&6; }
8284 if ${lt_cv_objdir+:} false
; then :
8285 $as_echo_n "(cached) " >&6
8287 rm -f .libs
2>/dev
/null
8288 mkdir .libs
2>/dev
/null
8289 if test -d .libs
; then
8292 # MS-DOS does not allow filenames that begin with a dot.
8295 rmdir .libs
2>/dev
/null
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8298 $as_echo "$lt_cv_objdir" >&6; }
8299 objdir
=$lt_cv_objdir
8305 cat >>confdefs.h
<<_ACEOF
8306 #define LT_OBJDIR "$lt_cv_objdir/"
8314 # AIX sometimes has problems with the GCC collect2 program. For some
8315 # reason, if we set the COLLECT_NAMES environment variable, the problems
8316 # vanish in a puff of smoke.
8317 if test set != "${COLLECT_NAMES+set}"; then
8319 export COLLECT_NAMES
8326 can_build_shared
=yes
8328 # All known linkers require a '.a' archive for static linking (except MSVC,
8329 # which needs '.lib').
8332 with_gnu_ld
=$lt_cv_prog_gnu_ld
8337 # Set sane defaults for various variables
8338 test -z "$CC" && CC
=cc
8339 test -z "$LTCC" && LTCC
=$CC
8340 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8341 test -z "$LD" && LD
=ld
8342 test -z "$ac_objext" && ac_objext
=o
8344 func_cc_basename
$compiler
8345 cc_basename
=$func_cc_basename_result
8348 # Only perform the check for file, if the check method requires it
8349 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8350 case $deplibs_check_method in
8352 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8354 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8355 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8356 $as_echo_n "(cached) " >&6
8360 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8363 lt_save_MAGIC_CMD
=$MAGIC_CMD
8364 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8365 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir
in $ac_dummy; do
8368 test -z "$ac_dir" && ac_dir
=.
8369 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8370 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8374 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8376 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8377 $EGREP "$file_magic_regex" > /dev
/null
; then
8382 *** Warning: the command libtool uses to detect shared libraries,
8383 *** $file_magic_cmd, produces output that libtool cannot recognize.
8384 *** The result is that libtool may fail to recognize shared libraries
8385 *** as such. This will affect the creation of libtool libraries that
8386 *** depend on shared libraries, but programs linked with such libtool
8387 *** libraries will work regardless of this problem. Nevertheless, you
8388 *** may want to report the problem to your system manager and/or to
8389 *** bug-libtool@gnu.org
8399 MAGIC_CMD
=$lt_save_MAGIC_CMD
8404 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8405 if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407 $as_echo "$MAGIC_CMD" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8417 if test -z "$lt_cv_path_MAGIC_CMD"; then
8418 if test -n "$ac_tool_prefix"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8420 $as_echo_n "checking for file... " >&6; }
8421 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8422 $as_echo_n "(cached) " >&6
8426 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8429 lt_save_MAGIC_CMD
=$MAGIC_CMD
8430 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8431 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8432 for ac_dir
in $ac_dummy; do
8434 test -z "$ac_dir" && ac_dir
=.
8435 if test -f "$ac_dir/file"; then
8436 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8437 if test -n "$file_magic_test_file"; then
8438 case $deplibs_check_method in
8440 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8442 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8443 $EGREP "$file_magic_regex" > /dev
/null
; then
8448 *** Warning: the command libtool uses to detect shared libraries,
8449 *** $file_magic_cmd, produces output that libtool cannot recognize.
8450 *** The result is that libtool may fail to recognize shared libraries
8451 *** as such. This will affect the creation of libtool libraries that
8452 *** depend on shared libraries, but programs linked with such libtool
8453 *** libraries will work regardless of this problem. Nevertheless, you
8454 *** may want to report the problem to your system manager and/or to
8455 *** bug-libtool@gnu.org
8465 MAGIC_CMD
=$lt_save_MAGIC_CMD
8470 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8471 if test -n "$MAGIC_CMD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473 $as_echo "$MAGIC_CMD" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8489 # Use C for the default configuration in the libtool script
8493 ac_cpp
='$CPP $CPPFLAGS'
8494 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8499 # Source file extension for C test sources.
8502 # Object file extension for compiled C test sources.
8506 # Code to be used in simple compile tests
8507 lt_simple_compile_test_code
="int some_variable = 0;"
8509 # Code to be used in simple link tests
8510 lt_simple_link_test_code
='int main(){return(0);}'
8518 # If no C compiler was specified, use CC.
8521 # If no C compiler flags were specified, use CFLAGS.
8522 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8524 # Allow CC to be a program name with arguments.
8527 # Save the default compiler, since it gets overwritten when the other
8528 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8529 compiler_DEFAULT
=$CC
8531 # save warnings/boilerplate of simple test code
8532 ac_outfile
=conftest.
$ac_objext
8533 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8534 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_compiler_boilerplate
=`cat conftest.err`
8538 ac_outfile
=conftest.
$ac_objext
8539 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8540 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8541 _lt_linker_boilerplate
=`cat conftest.err`
8546 ## There is no encapsulation within the following macros, do not change
8547 ## the running order or otherwise move them around unless you know exactly
8548 ## what you are doing...
8549 if test -n "$compiler"; then
8551 lt_prog_compiler_no_builtin_flag
=
8553 if test yes = "$GCC"; then
8554 case $cc_basename in
8556 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8558 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8562 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8563 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8564 $as_echo_n "(cached) " >&6
8566 lt_cv_prog_compiler_rtti_exceptions
=no
8567 ac_outfile
=conftest.
$ac_objext
8568 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8569 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8570 # Insert the option either (1) after the last *FLAGS variable, or
8571 # (2) before a word containing "conftest.", or (3) at the end.
8572 # Note that $ac_compile itself does not contain backslashes and begins
8573 # with a dollar sign (not a hyphen), so the echo should work correctly.
8574 # The option is referenced via a variable to avoid confusing sed.
8575 lt_compile
=`echo "$ac_compile" | $SED \
8576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8578 -e 's:$: $lt_compiler_flag:'`
8579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8580 (eval "$lt_compile" 2>conftest.err
)
8582 cat conftest.err
>&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 if (exit $ac_status) && test -s "$ac_outfile"; then
8585 # The compiler can only warn and ignore the option if not recognized
8586 # So say no if there are warnings other than the usual output.
8587 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8588 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8589 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8590 lt_cv_prog_compiler_rtti_exceptions
=yes
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8597 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8599 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8600 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8612 lt_prog_compiler_wl
=
8613 lt_prog_compiler_pic
=
8614 lt_prog_compiler_static
=
8617 if test yes = "$GCC"; then
8618 lt_prog_compiler_wl
='-Wl,'
8619 lt_prog_compiler_static
='-static'
8623 # All AIX code is PIC.
8624 if test ia64
= "$host_cpu"; then
8625 # AIX 5 now supports IA64 processor
8626 lt_prog_compiler_static
='-Bstatic'
8628 lt_prog_compiler_pic
='-fPIC'
8634 # see comment about AmigaOS4 .so support
8635 lt_prog_compiler_pic
='-fPIC'
8638 # FIXME: we need at least 68020 code to build shared libraries, but
8639 # adding the '-m68020' flag to GCC prevents building anything better,
8641 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8646 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8647 # PIC is the default for these OSes.
8650 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8651 # This hack is so that the source file can tell whether it is being
8652 # built for inclusion in a dll (and should export symbols for example).
8653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8654 # (--disable-auto-import) libraries
8655 lt_prog_compiler_pic
='-DDLL_EXPORT'
8658 lt_prog_compiler_static
='$wl-static'
8663 darwin
* | rhapsody
*)
8664 # PIC is the default on this platform
8665 # Common symbols not allowed in MH_DYLIB files
8666 lt_prog_compiler_pic
='-fno-common'
8670 # PIC is the default for Haiku.
8671 # The "-static" flag exists, but is broken.
8672 lt_prog_compiler_static
=
8676 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8677 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8678 # sets the default TLS model and affects inlining.
8684 lt_prog_compiler_pic
='-fPIC'
8690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8691 # Instead, we relocate shared libraries at runtime.
8695 # Just because we use GCC doesn't mean we suddenly get shared libraries
8696 # on systems that don't support them.
8697 lt_prog_compiler_can_build_shared
=no
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8704 lt_prog_compiler_pic
='-fPIC -shared'
8708 if test -d /usr
/nec
; then
8709 lt_prog_compiler_pic
=-Kconform_pic
8714 lt_prog_compiler_pic
='-fPIC'
8718 case $cc_basename in
8719 nvcc
*) # Cuda Compiler Driver 2.2
8720 lt_prog_compiler_wl
='-Xlinker '
8721 if test -n "$lt_prog_compiler_pic"; then
8722 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8727 # PORTME Check for flag to pass linker flags through the system compiler.
8730 lt_prog_compiler_wl
='-Wl,'
8731 if test ia64
= "$host_cpu"; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static
='-Bstatic'
8735 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8739 darwin
* | rhapsody
*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic
='-fno-common'
8743 case $cc_basename in
8745 # NAG Fortran compiler
8746 lt_prog_compiler_wl
='-Wl,-Wl,,'
8747 lt_prog_compiler_pic
='-PIC'
8748 lt_prog_compiler_static
='-Bstatic'
8753 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8754 # This hack is so that the source file can tell whether it is being
8755 # built for inclusion in a dll (and should export symbols for example).
8756 lt_prog_compiler_pic
='-DDLL_EXPORT'
8759 lt_prog_compiler_static
='$wl-static'
8764 hpux9
* | hpux10
* | hpux11
*)
8765 lt_prog_compiler_wl
='-Wl,'
8766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8773 lt_prog_compiler_pic
='+Z'
8776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8777 lt_prog_compiler_static
='$wl-a ${wl}archive'
8780 irix5
* | irix6
* | nonstopux
*)
8781 lt_prog_compiler_wl
='-Wl,'
8782 # PIC (with -KPIC) is the default.
8783 lt_prog_compiler_static
='-non_shared'
8786 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8787 case $cc_basename in
8788 # old Intel for x86_64, which still supported -KPIC.
8790 lt_prog_compiler_wl
='-Wl,'
8791 lt_prog_compiler_pic
='-KPIC'
8792 lt_prog_compiler_static
='-static'
8794 # icc used to be incompatible with GCC.
8795 # ICC 10 doesn't accept -KPIC any more.
8797 lt_prog_compiler_wl
='-Wl,'
8798 lt_prog_compiler_pic
='-fPIC'
8799 lt_prog_compiler_static
='-static'
8801 # Lahey Fortran 8.1.
8803 lt_prog_compiler_wl
='-Wl,'
8804 lt_prog_compiler_pic
='--shared'
8805 lt_prog_compiler_static
='--static'
8808 # NAG Fortran compiler
8809 lt_prog_compiler_wl
='-Wl,-Wl,,'
8810 lt_prog_compiler_pic
='-PIC'
8811 lt_prog_compiler_static
='-Bstatic'
8814 # Fabrice Bellard et al's Tiny C Compiler
8815 lt_prog_compiler_wl
='-Wl,'
8816 lt_prog_compiler_pic
='-fPIC'
8817 lt_prog_compiler_static
='-static'
8819 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8820 # Portland Group compilers (*not* the Pentium gcc compiler,
8821 # which looks to be a dead project)
8822 lt_prog_compiler_wl
='-Wl,'
8823 lt_prog_compiler_pic
='-fpic'
8824 lt_prog_compiler_static
='-Bstatic'
8827 lt_prog_compiler_wl
='-Wl,'
8828 # All Alpha code is PIC.
8829 lt_prog_compiler_static
='-non_shared'
8831 xl
* | bgxl
* | bgf
* | mpixl
*)
8832 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8833 lt_prog_compiler_wl
='-Wl,'
8834 lt_prog_compiler_pic
='-qpic'
8835 lt_prog_compiler_static
='-qstaticlink'
8838 case `$CC -V 2>&1 | sed 5q` in
8839 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8840 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8841 lt_prog_compiler_pic
='-KPIC'
8842 lt_prog_compiler_static
='-Bstatic'
8843 lt_prog_compiler_wl
=''
8845 *Sun\ F
* |
*Sun
*Fortran
*)
8846 lt_prog_compiler_pic
='-KPIC'
8847 lt_prog_compiler_static
='-Bstatic'
8848 lt_prog_compiler_wl
='-Qoption ld '
8852 lt_prog_compiler_pic
='-KPIC'
8853 lt_prog_compiler_static
='-Bstatic'
8854 lt_prog_compiler_wl
='-Wl,'
8856 *Intel
*\
[CF
]*Compiler
*)
8857 lt_prog_compiler_wl
='-Wl,'
8858 lt_prog_compiler_pic
='-fPIC'
8859 lt_prog_compiler_static
='-static'
8862 lt_prog_compiler_wl
='-Wl,'
8863 lt_prog_compiler_pic
='-fpic'
8864 lt_prog_compiler_static
='-Bstatic'
8872 lt_prog_compiler_pic
='-KPIC'
8873 lt_prog_compiler_static
='-Bstatic'
8877 # QNX uses GNU C++, but need to define -shared option too, otherwise
8879 lt_prog_compiler_pic
='-fPIC -shared'
8882 osf3
* | osf4
* | osf5
*)
8883 lt_prog_compiler_wl
='-Wl,'
8884 # All OSF/1 code is PIC.
8885 lt_prog_compiler_static
='-non_shared'
8889 lt_prog_compiler_static
='-non_shared'
8893 lt_prog_compiler_pic
='-KPIC'
8894 lt_prog_compiler_static
='-Bstatic'
8895 case $cc_basename in
8896 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8897 lt_prog_compiler_wl
='-Qoption ld ';;
8899 lt_prog_compiler_wl
='-Wl,';;
8904 lt_prog_compiler_wl
='-Qoption ld '
8905 lt_prog_compiler_pic
='-PIC'
8906 lt_prog_compiler_static
='-Bstatic'
8909 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8910 lt_prog_compiler_wl
='-Wl,'
8911 lt_prog_compiler_pic
='-KPIC'
8912 lt_prog_compiler_static
='-Bstatic'
8916 if test -d /usr
/nec
; then
8917 lt_prog_compiler_pic
='-Kconform_pic'
8918 lt_prog_compiler_static
='-Bstatic'
8922 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8923 lt_prog_compiler_wl
='-Wl,'
8924 lt_prog_compiler_pic
='-KPIC'
8925 lt_prog_compiler_static
='-Bstatic'
8929 lt_prog_compiler_wl
='-Wl,'
8930 lt_prog_compiler_can_build_shared
=no
8934 lt_prog_compiler_pic
='-pic'
8935 lt_prog_compiler_static
='-Bstatic'
8939 lt_prog_compiler_can_build_shared
=no
8945 # For platforms that do not support PIC, -DPIC is meaningless:
8947 lt_prog_compiler_pic
=
8950 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8956 if ${lt_cv_prog_compiler_pic+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8962 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8963 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8966 # Check to make sure the PIC flag actually works.
8968 if test -n "$lt_prog_compiler_pic"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8970 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8971 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8972 $as_echo_n "(cached) " >&6
8974 lt_cv_prog_compiler_pic_works
=no
8975 ac_outfile
=conftest.
$ac_objext
8976 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8977 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8978 # Insert the option either (1) after the last *FLAGS variable, or
8979 # (2) before a word containing "conftest.", or (3) at the end.
8980 # Note that $ac_compile itself does not contain backslashes and begins
8981 # with a dollar sign (not a hyphen), so the echo should work correctly.
8982 # The option is referenced via a variable to avoid confusing sed.
8983 lt_compile
=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>conftest.err
)
8990 cat conftest.err
>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s "$ac_outfile"; then
8993 # The compiler can only warn and ignore the option if not recognized
8994 # So say no if there are warnings other than the usual output.
8995 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8997 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8998 lt_cv_prog_compiler_pic_works
=yes
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9005 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9007 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9008 case $lt_prog_compiler_pic in
9010 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9013 lt_prog_compiler_pic
=
9014 lt_prog_compiler_can_build_shared
=no
9030 # Check to make sure the static flag actually works.
9032 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9035 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9036 $as_echo_n "(cached) " >&6
9038 lt_cv_prog_compiler_static_works
=no
9039 save_LDFLAGS
=$LDFLAGS
9040 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9041 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9042 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9043 # The linker can only warn and ignore the option if not recognized
9044 # So say no if there are warnings
9045 if test -s conftest.err
; then
9046 # Append any errors to the config.log.
9047 cat conftest.err
1>&5
9048 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9049 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9050 if diff conftest.exp conftest.er2
>/dev
/null
; then
9051 lt_cv_prog_compiler_static_works
=yes
9054 lt_cv_prog_compiler_static_works
=yes
9058 LDFLAGS
=$save_LDFLAGS
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9062 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9064 if test yes = "$lt_cv_prog_compiler_static_works"; then
9067 lt_prog_compiler_static
=
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9079 $as_echo_n "(cached) " >&6
9081 lt_cv_prog_compiler_c_o
=no
9082 $RM -r conftest
2>/dev
/null
9086 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9088 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 lt_compile
=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098 (eval "$lt_compile" 2>out
/conftest.err
)
9100 cat out
/conftest.err
>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9107 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9108 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9109 lt_cv_prog_compiler_c_o
=yes
9114 # SGI C++ compiler will create directory out/ii_files/ for
9115 # template instantiation
9116 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9117 $RM out
/* && rmdir out
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 lt_cv_prog_compiler_c_o
=no
9137 $RM -r conftest
2>/dev
/null
9141 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9143 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 lt_compile
=`echo "$ac_compile" | $SED \
9149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151 -e 's:$: $lt_compiler_flag:'`
9152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9153 (eval "$lt_compile" 2>out
/conftest.err
)
9155 cat out
/conftest.err
>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings
9161 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9162 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9163 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9164 lt_cv_prog_compiler_c_o
=yes
9169 # SGI C++ compiler will create directory out/ii_files/ for
9170 # template instantiation
9171 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9172 $RM out
/* && rmdir out
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9184 hard_links
=nottested
9185 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9186 # do not overwrite the value of need_locks provided by the user
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9188 $as_echo_n "checking if we can lock with hard links... " >&6; }
9191 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9193 ln conftest.a conftest.b
2>&5 || hard_links
=no
9194 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9196 $as_echo "$hard_links" >&6; }
9197 if test no
= "$hard_links"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9199 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215 allow_undefined_flag
=
9216 always_export_symbols
=no
9218 archive_expsym_cmds
=
9219 compiler_needs_object
=no
9220 enable_shared_with_static_runtimes
=no
9221 export_dynamic_flag_spec
=
9222 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9223 hardcode_automatic
=no
9225 hardcode_direct_absolute
=no
9226 hardcode_libdir_flag_spec
=
9227 hardcode_libdir_separator
=
9229 hardcode_shlibpath_var
=unsupported
9231 link_all_deplibs
=unknown
9234 old_archive_from_new_cmds
=
9235 old_archive_from_expsyms_cmds
=
9236 thread_safe_flag_spec
=
9237 whole_archive_flag_spec
=
9238 # include_expsyms should be a list of space-separated symbols to be *always*
9239 # included in the symbol list
9241 # exclude_expsyms can be an extended regexp of symbols to exclude
9242 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9243 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9244 # as well as any symbol that contains 'd'.
9245 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9247 # platforms (ab)use it in PIC code, but their linkers get confused if
9248 # the symbol is explicitly referenced. Since portable code cannot
9249 # rely on this symbol name, it's probably fine to never include it in
9250 # preloaded symbol tables.
9251 # Exclude shared library initialization/finalization symbols.
9252 extract_expsyms_cmds
=
9255 cygwin
* | mingw
* | pw32
* | cegcc
*)
9256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 if test yes != "$GCC"; then
9264 # we just hope/assume this is gcc and not c89 (= MSVC++)
9270 linux
* | k
*bsd
*-gnu | gnu
*)
9277 # On some targets, GNU ld is compatible enough with the native linker
9278 # that we're better off using the native interface for both.
9279 lt_use_gnu_ld_interface
=no
9280 if test yes = "$with_gnu_ld"; then
9283 # The AIX port of GNU ld has always aspired to compatibility
9284 # with the native linker. However, as the warning in the GNU ld
9285 # block says, versions before 2.19.5* couldn't really create working
9286 # shared libraries, regardless of the interface used.
9287 case `$LD -v 2>&1` in
9288 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9289 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9290 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9292 lt_use_gnu_ld_interface
=yes
9297 lt_use_gnu_ld_interface
=yes
9302 if test yes = "$lt_use_gnu_ld_interface"; then
9303 # If archive_cmds runs LD, not CC, wlarc should be empty
9306 # Set some defaults for GNU ld with shared library support. These
9307 # are reset later if shared libraries are not supported. Putting them
9308 # here allows them to be overridden if necessary.
9309 runpath_var
=LD_RUN_PATH
9310 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9311 export_dynamic_flag_spec
='$wl--export-dynamic'
9312 # ancient GNU ld didn't support --whole-archive et. al.
9313 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9314 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9316 whole_archive_flag_spec
=
9318 supports_anon_versioning
=no
9319 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9320 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9321 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9322 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9323 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9324 *\
2.11.
*) ;; # other 2.11 versions
9325 *) supports_anon_versioning
=yes ;;
9328 # See if GNU ld supports shared libraries.
9331 # On AIX/PPC, the GNU linker is very broken
9332 if test ia64
!= "$host_cpu"; then
9336 *** Warning: the GNU linker, at least up to release 2.19, is reported
9337 *** to be unable to reliably create shared libraries on AIX.
9338 *** Therefore, libtool is disabling shared libraries support. If you
9339 *** really care for shared libraries, you may want to install binutils
9340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9341 *** You will then need to restart the configuration process.
9350 # see comment about AmigaOS4 .so support
9351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352 archive_expsym_cmds
=''
9355 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)'
9356 hardcode_libdir_flag_spec
='-L$libdir'
9357 hardcode_minus_L
=yes
9363 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9364 allow_undefined_flag
=unsupported
9365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9366 # support --undefined. This deserves some investigation. FIXME
9367 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 cygwin
* | mingw
* | pw32
* | cegcc
*)
9374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec
='-L$libdir'
9377 export_dynamic_flag_spec
='$wl--export-all-symbols'
9378 allow_undefined_flag
=unsupported
9379 always_export_symbols
=no
9380 enable_shared_with_static_runtimes
=yes
9381 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9382 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9384 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9385 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9386 # If the export-symbols file already is a .def file, use it as
9387 # is; otherwise, prepend EXPORTS...
9388 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9389 cp $export_symbols $output_objdir/$soname.def;
9391 echo EXPORTS > $output_objdir/$soname.def;
9392 cat $export_symbols >> $output_objdir/$soname.def;
9394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9402 link_all_deplibs
=yes
9406 hardcode_libdir_flag_spec
='-L$libdir'
9407 hardcode_minus_L
=yes
9408 allow_undefined_flag
=unsupported
9410 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9413 $ECHO EXPORTS >> $output_objdir/$libname.def~
9414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9416 emximp -o $lib $output_objdir/$libname.def'
9417 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9420 $ECHO EXPORTS >> $output_objdir/$libname.def~
9422 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9423 prefix_cmds="$prefix_cmds -e 1d";
9425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9428 emximp -o $lib $output_objdir/$libname.def'
9429 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9430 enable_shared_with_static_runtimes
=yes
9435 hardcode_shlibpath_var
=no
9436 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9437 export_dynamic_flag_spec
='$wl-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 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'
9448 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9450 if test linux-dietlibc
= "$host_os"; then
9451 case $cc_basename in
9452 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9455 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9456 && test no
= "$tmp_diet"
9458 tmp_addflag
=' $pic_flag'
9459 tmp_sharedflag
='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc
*) # Portland Group C compiler
9462 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9463 tmp_addflag
=' $pic_flag'
9465 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9466 # Portland Group f77 and f90 compilers
9467 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9468 tmp_addflag
=' $pic_flag -Mnomain' ;;
9469 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9470 tmp_addflag
=' -i_dynamic' ;;
9471 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9472 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9473 ifc
* | ifort
*) # Intel Fortran compiler
9474 tmp_addflag
=' -nofor_main' ;;
9475 lf95
*) # Lahey Fortran 8.1
9476 whole_archive_flag_spec
=
9477 tmp_sharedflag
='--shared' ;;
9478 nagfor
*) # NAGFOR 5.3
9479 tmp_sharedflag
='-Wl,-shared' ;;
9480 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9481 tmp_sharedflag
='-qmkshrobj'
9483 nvcc
*) # Cuda Compiler Driver 2.2
9484 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9485 compiler_needs_object
=yes
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C
*) # Sun C 5.9
9490 whole_archive_flag_spec
='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9491 compiler_needs_object
=yes
9492 tmp_sharedflag
='-G' ;;
9493 *Sun\ F
*) # Sun Fortran 8.3
9494 tmp_sharedflag
='-G' ;;
9496 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9498 if test yes = "$supports_anon_versioning"; then
9499 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9505 case $cc_basename in
9507 export_dynamic_flag_spec
='-rdynamic'
9509 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9511 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9512 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9513 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9514 if test yes = "$supports_anon_versioning"; then
9515 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9517 echo "local: *; };" >> $output_objdir/$libname.ver~
9518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9527 netbsd
* | netbsdelf
*-gnu)
9528 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9529 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9532 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9538 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9543 *** create shared libraries on Solaris systems. Therefore, libtool
9544 *** is disabling shared libraries support. We urge you to upgrade GNU
9545 *** binutils to release 2.9.1 or newer. Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9550 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9551 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9558 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9559 case `$LD -v 2>&1` in
9560 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9565 *** reliably create shared libraries on SCO systems. Therefore, libtool
9566 *** is disabling shared libraries support. We urge you to upgrade GNU
9567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9568 *** your PATH or compiler configuration so that the native linker is
9569 *** used, and then restart.
9574 # For security reasons, it is highly recommended that you always
9575 # use absolute paths for naming shared libraries, and exclude the
9576 # DT_RUNPATH tag from executables and libraries. But doing so
9577 # requires that you compile everything twice, which is a pain.
9578 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9579 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9581 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_shlibpath_var
=no
9597 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9598 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9606 if test no
= "$ld_shlibs"; then
9608 hardcode_libdir_flag_spec
=
9609 export_dynamic_flag_spec
=
9610 whole_archive_flag_spec
=
9613 # PORTME fill in a description of your system's linker (not GNU ld)
9616 allow_undefined_flag
=unsupported
9617 always_export_symbols
=yes
9618 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'
9619 # Note: this linker hardcodes the directories in LIBPATH if there
9620 # are no directories specified by -L.
9621 hardcode_minus_L
=yes
9622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9623 # Neither direct hardcoding nor static linking is supported with a
9625 hardcode_direct
=unsupported
9630 if test ia64
= "$host_cpu"; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking
=no
9634 exp_sym_flag
='-Bexport'
9637 # If we're using GNU nm, then we don't want the "-C" option.
9638 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9639 # Without the "-l" option, or with the "-B" option, AIX nm treats
9640 # weak defined symbols like other global defined symbols, whereas
9641 # GNU nm marks them as "W".
9642 # While the 'weak' keyword is ignored in the Export File, we need
9643 # it in the Import File for the 'aix-soname' feature, so we have
9644 # to replace the "-B" option with "-P" for AIX nm.
9645 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9646 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9648 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9650 aix_use_runtimelinking
=no
9652 # Test if we are trying to use run time linking or normal
9653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9654 # have runtime linking enabled, and use it for executables.
9655 # For shared libraries, we enable/disable runtime linking
9656 # depending on the kind of the shared library created -
9657 # when "with_aix_soname,aix_use_runtimelinking" is:
9658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9659 # "aix,yes" lib.so shared, rtl:yes, for executables
9660 # lib.a static archive
9661 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9662 # lib.a(lib.so.V) shared, rtl:no, for executables
9663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9664 # lib.a(lib.so.V) shared, rtl:no
9665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9666 # lib.a static archive
9667 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9668 for ld_flag
in $LDFLAGS; do
9669 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9670 aix_use_runtimelinking
=yes
9674 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9675 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9676 # so we don't have lib.a shared libs to link our executables.
9677 # We have to force runtime linking in this case.
9678 aix_use_runtimelinking
=yes
9679 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9684 exp_sym_flag
='-bexport'
9685 no_entry_flag
='-bnoentry'
9688 # When large executables or shared objects are built, AIX ld can
9689 # have problems creating the table of contents. If linking a library
9690 # or program results in "error TOC overflow" add -mminimal-toc to
9691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9696 hardcode_direct_absolute
=yes
9697 hardcode_libdir_separator
=':'
9698 link_all_deplibs
=yes
9699 file_list_spec
='$wl-f,'
9700 case $with_aix_soname,$aix_use_runtimelinking in
9701 aix
,*) ;; # traditional, no import file
9702 svr4
,* |
*,yes) # use import file
9703 # The Import File defines what to hardcode.
9705 hardcode_direct_absolute
=no
9709 if test yes = "$GCC"; then
9710 case $host_os in aix4.
[012]|aix4.
[012].
*)
9711 # We only want to do this on AIX 4.2 and lower, the check
9712 # below for broken collect2 doesn't work under 4.3+
9713 collect2name
=`$CC -print-prog-name=collect2`
9714 if test -f "$collect2name" &&
9715 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9717 # We have reworked collect2
9720 # We have old collect2
9721 hardcode_direct
=unsupported
9722 # It fails to find uninstalled libraries when the uninstalled
9723 # path is not listed in the libpath. Setting hardcode_minus_L
9724 # to unsupported forces relinking
9725 hardcode_minus_L
=yes
9726 hardcode_libdir_flag_spec
='-L$libdir'
9727 hardcode_libdir_separator
=
9731 shared_flag
='-shared'
9732 if test yes = "$aix_use_runtimelinking"; then
9733 shared_flag
="$shared_flag "'$wl-G'
9735 # Need to ensure runtime linking is disabled for the traditional
9736 # shared library, or the linker may eventually find shared libraries
9737 # /with/ Import File - we do not want to mix them.
9738 shared_flag_aix
='-shared'
9739 shared_flag_svr4
='-shared $wl-G'
9742 if test ia64
= "$host_cpu"; then
9743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9744 # chokes on -Wl,-G. The following line is correct:
9747 if test yes = "$aix_use_runtimelinking"; then
9750 shared_flag
='$wl-bM:SRE'
9752 shared_flag_aix
='$wl-bM:SRE'
9753 shared_flag_svr4
='$wl-G'
9757 export_dynamic_flag_spec
='$wl-bexpall'
9758 # It seems that -bexpall does not export symbols beginning with
9759 # underscore (_), so it is better to generate a list of symbols to export.
9760 always_export_symbols
=yes
9761 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9762 # Warning - without using the other runtime loading flags (-brtl),
9763 # -berok will link without error, but may produce a broken library.
9764 allow_undefined_flag
='-berok'
9765 # Determine the default libpath from the value encoded in an
9767 if test set = "${lt_cv_aix_libpath+set}"; then
9768 aix_libpath
=$lt_cv_aix_libpath
9770 if ${lt_cv_aix_libpath_+:} false
; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9784 if ac_fn_c_try_link
"$LINENO"; then :
9786 lt_aix_libpath_sed
='
9787 /Import File Strings/,/^$/ {
9789 s/^0 *\([^ ]*\) *$/\1/
9793 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794 # Check for a 64-bit object if we didn't find anything.
9795 if test -z "$lt_cv_aix_libpath_"; then
9796 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799 rm -f core conftest.err conftest.
$ac_objext \
9800 conftest
$ac_exeext conftest.
$ac_ext
9801 if test -z "$lt_cv_aix_libpath_"; then
9802 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9807 aix_libpath
=$lt_cv_aix_libpath_
9810 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9811 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
9813 if test ia64
= "$host_cpu"; then
9814 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag
="-z nodefs"
9816 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"
9818 # Determine the default libpath from the value encoded in an
9820 if test set = "${lt_cv_aix_libpath+set}"; then
9821 aix_libpath
=$lt_cv_aix_libpath
9823 if ${lt_cv_aix_libpath_+:} false
; then :
9824 $as_echo_n "(cached) " >&6
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9837 if ac_fn_c_try_link
"$LINENO"; then :
9839 lt_aix_libpath_sed
='
9840 /Import File Strings/,/^$/ {
9842 s/^0 *\([^ ]*\) *$/\1/
9846 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$lt_cv_aix_libpath_"; then
9849 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 rm -f core conftest.err conftest.
$ac_objext \
9853 conftest
$ac_exeext conftest.
$ac_ext
9854 if test -z "$lt_cv_aix_libpath_"; then
9855 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9860 aix_libpath
=$lt_cv_aix_libpath_
9863 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag
=' $wl-bernotok'
9867 allow_undefined_flag
=' $wl-berok'
9868 if test yes = "$with_gnu_ld"; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec
='$convenience'
9875 archive_cmds_need_lc
=yes
9876 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9877 # -brtl affects multiple linker settings, -berok does not and is overridden later
9878 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9879 if test svr4
!= "$with_aix_soname"; then
9880 # This is similar to how AIX traditionally builds its shared libraries.
9881 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9883 if test aix
!= "$with_aix_soname"; then
9884 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9886 # used by -dlpreopen to get the symbols
9887 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9889 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9897 # see comment about AmigaOS4 .so support
9898 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899 archive_expsym_cmds
=''
9902 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)'
9903 hardcode_libdir_flag_spec
='-L$libdir'
9904 hardcode_minus_L
=yes
9910 export_dynamic_flag_spec
=-rdynamic
9913 cygwin
* | mingw
* | pw32
* | cegcc
*)
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 # hardcode_libdir_flag_spec is actually meaningless, as there is
9917 # no search path for DLLs.
9918 case $cc_basename in
9921 hardcode_libdir_flag_spec
=' '
9922 allow_undefined_flag
=unsupported
9923 always_export_symbols
=yes
9925 # Tell ltmain to make .lib files, not .a files.
9927 # Tell ltmain to make .dll files, not .so files.
9929 # FIXME: Setting linknames here is a bad hack.
9930 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9931 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9932 cp "$export_symbols" "$output_objdir/$soname.def";
9933 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9935 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9939 # The linker will not automatically build a static lib if we build a DLL.
9940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9941 enable_shared_with_static_runtimes
=yes
9942 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9943 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9945 old_postinstall_cmds
='chmod 644 $oldlib'
9946 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9947 lt_tool_outputfile="@TOOL_OUTPUT@"~
9948 case $lt_outputfile in
9951 lt_outputfile=$lt_outputfile.exe
9952 lt_tool_outputfile=$lt_tool_outputfile.exe
9955 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9957 $RM "$lt_outputfile.manifest";
9961 # Assume MSVC wrapper
9962 hardcode_libdir_flag_spec
=' '
9963 allow_undefined_flag
=unsupported
9964 # Tell ltmain to make .lib files, not .a files.
9966 # Tell ltmain to make .dll files, not .so files.
9968 # FIXME: Setting linknames here is a bad hack.
9969 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9970 # The linker will automatically build a .lib file if we build a DLL.
9971 old_archive_from_new_cmds
='true'
9972 # FIXME: Should let the user specify the lib program.
9973 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9974 enable_shared_with_static_runtimes
=yes
9979 darwin
* | rhapsody
*)
9982 archive_cmds_need_lc
=no
9984 hardcode_automatic
=yes
9985 hardcode_shlibpath_var
=unsupported
9986 if test yes = "$lt_cv_ld_force_load"; then
9987 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9990 whole_archive_flag_spec
=''
9992 link_all_deplibs
=yes
9993 allow_undefined_flag
=$_lt_dar_allow_undefined
9994 case $cc_basename in
9995 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9996 *) _lt_dar_can_shared
=$GCC ;;
9998 if test yes = "$_lt_dar_can_shared"; then
9999 output_verbose_link_cmd
=func_echo_all
10000 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10001 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10002 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"
10003 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"
10012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_libdir_flag_spec
='-L$libdir'
10014 hardcode_shlibpath_var
=no
10017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10018 # support. Future versions do this automatically, but an explicit c++rt0.o
10019 # does not break anything, and helps significantly (at the cost of a little
10022 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10023 hardcode_libdir_flag_spec
='-R$libdir'
10024 hardcode_direct
=yes
10025 hardcode_shlibpath_var
=no
10028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10030 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_direct
=yes
10032 hardcode_minus_L
=yes
10033 hardcode_shlibpath_var
=no
10036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10037 freebsd
* | dragonfly
*)
10038 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec
='-R$libdir'
10040 hardcode_direct
=yes
10041 hardcode_shlibpath_var
=no
10045 if test yes = "$GCC"; then
10046 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10048 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10050 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10051 hardcode_libdir_separator
=:
10052 hardcode_direct
=yes
10054 # hardcode_minus_L: Not really in the search PATH,
10055 # but as the default location of the library.
10056 hardcode_minus_L
=yes
10057 export_dynamic_flag_spec
='$wl-E'
10061 if test yes,no
= "$GCC,$with_gnu_ld"; then
10062 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10066 if test no
= "$with_gnu_ld"; then
10067 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10068 hardcode_libdir_separator
=:
10069 hardcode_direct
=yes
10070 hardcode_direct_absolute
=yes
10071 export_dynamic_flag_spec
='$wl-E'
10072 # hardcode_minus_L: Not really in the search PATH,
10073 # but as the default location of the library.
10074 hardcode_minus_L
=yes
10079 if test yes,no
= "$GCC,$with_gnu_ld"; then
10082 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 # Older versions of the 11.00 compiler do not understand -b yet
10102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10104 $as_echo_n "checking if $CC understands -b... " >&6; }
10105 if ${lt_cv_prog_compiler__b+:} false
; then :
10106 $as_echo_n "(cached) " >&6
10108 lt_cv_prog_compiler__b
=no
10109 save_LDFLAGS
=$LDFLAGS
10110 LDFLAGS
="$LDFLAGS -b"
10111 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10112 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err
; then
10116 # Append any errors to the config.log.
10117 cat conftest.err
1>&5
10118 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10120 if diff conftest.exp conftest.er2
>/dev
/null
; then
10121 lt_cv_prog_compiler__b
=yes
10124 lt_cv_prog_compiler__b
=yes
10128 LDFLAGS
=$save_LDFLAGS
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10134 if test yes = "$lt_cv_prog_compiler__b"; then
10135 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10143 if test no
= "$with_gnu_ld"; then
10144 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10145 hardcode_libdir_separator
=:
10150 hardcode_shlibpath_var
=no
10153 hardcode_direct
=yes
10154 hardcode_direct_absolute
=yes
10155 export_dynamic_flag_spec
='$wl-E'
10157 # hardcode_minus_L: Not really in the search PATH,
10158 # but as the default location of the library.
10159 hardcode_minus_L
=yes
10165 irix5
* | irix6
* | nonstopux
*)
10166 if test yes = "$GCC"; then
10167 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10168 # Try to use the -exported_symbol ld option, if it does not
10169 # work, assume that -exports_file does not work either and
10170 # implicitly export all symbols.
10171 # This should be the same for all languages, so no per-tag cache variable.
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10174 if ${lt_cv_irix_exported_symbol+:} false
; then :
10175 $as_echo_n "(cached) " >&6
10177 save_LDFLAGS
=$LDFLAGS
10178 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int foo (void) { return 0; }
10183 if ac_fn_c_try_link
"$LINENO"; then :
10184 lt_cv_irix_exported_symbol
=yes
10186 lt_cv_irix_exported_symbol
=no
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10190 LDFLAGS
=$save_LDFLAGS
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10194 if test yes = "$lt_cv_irix_exported_symbol"; then
10195 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10197 link_all_deplibs
=no
10199 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10200 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10202 archive_cmds_need_lc
='no'
10203 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10204 hardcode_libdir_separator
=:
10206 link_all_deplibs
=yes
10210 case $cc_basename in
10212 # Fabrice Bellard et al's Tiny C Compiler
10214 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219 netbsd
* | netbsdelf
*-gnu)
10220 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10221 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10223 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10225 hardcode_libdir_flag_spec
='-R$libdir'
10226 hardcode_direct
=yes
10227 hardcode_shlibpath_var
=no
10231 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct
=yes
10233 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10234 hardcode_libdir_separator
=:
10235 hardcode_shlibpath_var
=no
10241 openbsd
* | bitrig
*)
10242 if test -f /usr
/libexec
/ld.so
; then
10243 hardcode_direct
=yes
10244 hardcode_shlibpath_var
=no
10245 hardcode_direct_absolute
=yes
10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10247 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10249 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10250 export_dynamic_flag_spec
='$wl-E'
10252 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10261 hardcode_libdir_flag_spec
='-L$libdir'
10262 hardcode_minus_L
=yes
10263 allow_undefined_flag
=unsupported
10265 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10268 $ECHO EXPORTS >> $output_objdir/$libname.def~
10269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10271 emximp -o $lib $output_objdir/$libname.def'
10272 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10275 $ECHO EXPORTS >> $output_objdir/$libname.def~
10276 prefix_cmds="$SED"~
10277 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10278 prefix_cmds="$prefix_cmds -e 1d";
10280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10283 emximp -o $lib $output_objdir/$libname.def'
10284 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10285 enable_shared_with_static_runtimes
=yes
10289 if test yes = "$GCC"; then
10290 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10291 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10293 allow_undefined_flag
=' -expect_unresolved \*'
10294 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10296 archive_cmds_need_lc
='no'
10297 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10298 hardcode_libdir_separator
=:
10301 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10302 if test yes = "$GCC"; then
10303 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10304 archive_cmds
='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10305 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10307 allow_undefined_flag
=' -expect_unresolved \*'
10308 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10309 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~
10310 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10312 # Both c and cxx compiler support -rpath directly
10313 hardcode_libdir_flag_spec
='-rpath $libdir'
10315 archive_cmds_need_lc
='no'
10316 hardcode_libdir_separator
=:
10320 no_undefined_flag
=' -z defs'
10321 if test yes = "$GCC"; then
10323 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10327 case `$CC -V 2>&1` in
10330 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10332 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10336 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10338 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10342 hardcode_libdir_flag_spec
='-R$libdir'
10343 hardcode_shlibpath_var
=no
10345 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10347 # The compiler driver will combine and reorder linker options,
10348 # but understands '-z linker_flag'. GCC discards it without '$wl',
10349 # but is careful enough not to reorder.
10350 # Supported since Solaris 2.6 (maybe 2.5.1?)
10351 if test yes = "$GCC"; then
10352 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10354 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10358 link_all_deplibs
=yes
10362 if test sequent
= "$host_vendor"; then
10363 # Use $CC to link under sequent, because it throws in some extra .o
10364 # files that make .init and .fini sections work.
10365 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_libdir_flag_spec
='-L$libdir'
10370 hardcode_direct
=yes
10371 hardcode_minus_L
=yes
10372 hardcode_shlibpath_var
=no
10376 case $host_vendor in
10378 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct
=yes # is this really true???
10382 ## LD is ld it makes a PLAMLIB
10383 ## CC just makes a GrossModule.
10384 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10385 reload_cmds
='$CC -r -o $output$reload_objs'
10389 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10393 runpath_var
='LD_RUN_PATH'
10394 hardcode_shlibpath_var
=no
10398 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_shlibpath_var
=no
10400 export_dynamic_flag_spec
='-Bexport'
10404 if test -d /usr
/nec
; then
10405 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_shlibpath_var
=no
10407 runpath_var
=LD_RUN_PATH
10408 hardcode_runpath_var
=yes
10413 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10414 no_undefined_flag
='$wl-z,text'
10415 archive_cmds_need_lc
=no
10416 hardcode_shlibpath_var
=no
10417 runpath_var
='LD_RUN_PATH'
10419 if test yes = "$GCC"; then
10420 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 sysv5
* | sco3.2v5
* | sco5v6
*)
10429 # Note: We CANNOT use -z defs as we might desire, because we do not
10430 # link with -lc, and that would cause any symbols used from libc to
10431 # always be unresolved, which means just about no library would
10432 # ever link correctly. If we're not using GNU ld we use -z text
10433 # though, which does catch some bad symbols but isn't as heavy-handed
10435 no_undefined_flag
='$wl-z,text'
10436 allow_undefined_flag
='$wl-z,nodefs'
10437 archive_cmds_need_lc
=no
10438 hardcode_shlibpath_var
=no
10439 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10440 hardcode_libdir_separator
=':'
10441 link_all_deplibs
=yes
10442 export_dynamic_flag_spec
='$wl-Bexport'
10443 runpath_var
='LD_RUN_PATH'
10445 if test yes = "$GCC"; then
10446 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_libdir_flag_spec
='-L$libdir'
10457 hardcode_shlibpath_var
=no
10465 if test sni
= "$host_vendor"; then
10467 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10468 export_dynamic_flag_spec
='$wl-Blargedynsym'
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10475 $as_echo "$ld_shlibs" >&6; }
10476 test no
= "$ld_shlibs" && can_build_shared
=no
10478 with_gnu_ld
=$with_gnu_ld
10495 # Do we need to explicitly link libc?
10497 case "x$archive_cmds_need_lc" in
10499 # Assume -lc should be added
10500 archive_cmds_need_lc
=yes
10502 if test yes,yes = "$GCC,$enable_shared"; then
10503 case $archive_cmds in
10505 # FIXME: we may have to deal with multi-command sequences.
10508 # Test whether the compiler implicitly links with -lc since on some
10509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10510 # to ld, don't add -lc before -lgcc.
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10513 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10514 $as_echo_n "(cached) " >&6
10517 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10520 (eval $ac_compile) 2>&5
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; } 2>conftest.err
; then
10526 libobjs
=conftest.
$ac_objext
10528 wl
=$lt_prog_compiler_wl
10529 pic_flag
=$lt_prog_compiler_pic
10535 lt_save_allow_undefined_flag
=$allow_undefined_flag
10536 allow_undefined_flag
=
10537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10538 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541 test $ac_status = 0; }
10543 lt_cv_archive_cmds_need_lc
=no
10545 lt_cv_archive_cmds_need_lc
=yes
10547 allow_undefined_flag
=$lt_save_allow_undefined_flag
10549 cat conftest.err
1>&5
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10555 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10556 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10715 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10717 if test yes = "$GCC"; then
10719 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10720 *) lt_awk_arg
='/^libraries:/' ;;
10723 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10724 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10726 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10727 case $lt_search_path_spec in
10729 # if the path contains ";" then we assume it to be the separator
10730 # otherwise default to the standard path separator (i.e. ":") - it is
10731 # assumed that no part of a normal pathname contains ";" but that should
10732 # okay in the real world where ";" in dirpaths is itself problematic.
10733 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10736 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10739 # Ok, now we have the path, separated by spaces, we can step through it
10740 # and add multilib dir if necessary...
10741 lt_tmp_lt_search_path_spec
=
10742 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10743 # ...but if some path component already ends with the multilib dir we assume
10744 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10745 case "$lt_multi_os_dir; $lt_search_path_spec " in
10746 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10750 for lt_sys_path
in $lt_search_path_spec; do
10751 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10752 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10753 elif test -n "$lt_multi_os_dir"; then
10754 test -d "$lt_sys_path" && \
10755 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10758 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10759 BEGIN {RS = " "; FS = "/|\n";} {
10762 for (lt_i = NF; lt_i > 0; lt_i--) {
10763 if ($lt_i != "" && $lt_i != ".") {
10764 if ($lt_i == "..") {
10767 if (lt_count == 0) {
10768 lt_foo = "/" $lt_i lt_foo;
10775 if (lt_foo != "") { lt_freq[lt_foo]++; }
10776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10778 # AWK program above erroneously prepends '/' to C:/dos/paths
10781 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10782 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10784 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10786 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10788 library_names_spec
=
10789 libname_spec
='lib$name'
10793 postuninstall_cmds
=
10797 shlibpath_overrides_runpath
=unknown
10799 dynamic_linker
="$host_os ld.so"
10800 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10801 need_lib_prefix
=unknown
10802 hardcode_into_libs
=no
10804 # when you set need_version to no, make sure it does not cause -set_version
10805 # flags to be left without arguments
10806 need_version
=unknown
10812 version_type
=linux
# correct to gnu/linux during the next big refactor
10813 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10814 shlibpath_var
=LIBPATH
10816 # AIX 3 has no versioning support, so we append a major version to the name.
10817 soname_spec
='$libname$release$shared_ext$major'
10821 version_type
=linux
# correct to gnu/linux during the next big refactor
10824 hardcode_into_libs
=yes
10825 if test ia64
= "$host_cpu"; then
10826 # AIX 5 supports IA64
10827 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10828 shlibpath_var
=LD_LIBRARY_PATH
10830 # With GCC up to 2.95.x, collect2 would create an import file
10831 # for dependence libraries. The import file would start with
10832 # the line '#! .'. This would cause the generated library to
10833 # depend on '.', always an invalid library. This was fixed in
10834 # development snapshots of GCC prior to 3.0.
10836 aix4 | aix4.
[01] | aix4.
[01].
*)
10837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10839 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10842 can_build_shared
=no
10846 # Using Import Files as archive members, it is possible to support
10847 # filename-based versioning of shared library archives on AIX. While
10848 # this would work for both with and without runtime linking, it will
10849 # prevent static linking of such archives. So we do filename-based
10850 # shared library versioning with .so extension only, which is used
10851 # when both runtime linking and shared linking is enabled.
10852 # Unfortunately, runtime linking may impact performance, so we do
10853 # not want this to be the default eventually. Also, we use the
10854 # versioned .so libs for executables only if there is the -brtl
10855 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10856 # To allow for filename-based versioning support, we need to create
10857 # libNAME.so.V as an archive file, containing:
10858 # *) an Import File, referring to the versioned filename of the
10859 # archive as well as the shared archive member, telling the
10860 # bitwidth (32 or 64) of that shared object, and providing the
10861 # list of exported symbols of that shared object, eventually
10862 # decorated with the 'weak' keyword
10863 # *) the shared object with the F_LOADONLY flag set, to really avoid
10864 # it being seen by the linker.
10865 # At run time we better use the real file rather than another symlink,
10866 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10868 case $with_aix_soname,$aix_use_runtimelinking in
10869 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10870 # soname into executable. Probably we can add versioning support to
10871 # collect2, so additional links can be useful in future.
10872 aix
,yes) # traditional libtool
10873 dynamic_linker
='AIX unversionable lib.so'
10874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10875 # instead of lib<name>.a to let people know that these are not
10876 # typical AIX shared libraries.
10877 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879 aix
,no
) # traditional AIX only
10880 dynamic_linker
='AIX lib.a(lib.so.V)'
10881 # We preserve .a as extension for shared libraries through AIX4.2
10882 # and later when we are not doing run time linking.
10883 library_names_spec
='$libname$release.a $libname.a'
10884 soname_spec
='$libname$release$shared_ext$major'
10886 svr4
,*) # full svr4 only
10887 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10888 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10889 # We do not specify a path in Import Files, so LIBPATH fires.
10890 shlibpath_overrides_runpath
=yes
10892 *,yes) # both, prefer svr4
10893 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10894 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10895 # unpreferred sharedlib libNAME.a needs extra handling
10896 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10897 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10898 # We do not specify a path in Import Files, so LIBPATH fires.
10899 shlibpath_overrides_runpath
=yes
10901 *,no
) # both, prefer aix
10902 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10903 library_names_spec
='$libname$release.a $libname.a'
10904 soname_spec
='$libname$release$shared_ext$major'
10905 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10906 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10907 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10910 shlibpath_var
=LIBPATH
10917 # Since July 2007 AmigaOS4 officially supports .so libraries.
10918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10919 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 library_names_spec
='$libname.ixlibrary $libname.a'
10923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10930 library_names_spec
='$libname$shared_ext'
10931 dynamic_linker
="$host_os ld.so"
10932 shlibpath_var
=LIBRARY_PATH
10936 version_type
=linux
# correct to gnu/linux during the next big refactor
10938 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec
='$libname$release$shared_ext$major'
10940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10941 shlibpath_var
=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10943 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10944 # the default ld.so.conf also contains /usr/contrib/lib and
10945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10946 # libtool to hard-code these into programs
10949 cygwin
* | mingw
* | pw32
* | cegcc
*)
10950 version_type
=windows
10955 case $GCC,$cc_basename in
10958 library_names_spec
='$libname.dll.a'
10959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10960 postinstall_cmds
='base_file=`basename \$file`~
10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10962 dldir=$destdir/`dirname \$dlpath`~
10963 test -d \$dldir || mkdir -p \$dldir~
10964 $install_prog $dir/$dlname \$dldir/$dlname~
10965 chmod a+x \$dldir/$dlname~
10966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10969 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10970 dlpath=$dir/\$dldll~
10972 shlibpath_overrides_runpath
=yes
10976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10977 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10979 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10982 # MinGW DLLs use traditional 'lib' prefix
10983 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10986 # pw32 DLLs use 'pw' prefix rather than 'lib'
10987 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10990 dynamic_linker
='Win32 ld.exe'
10995 libname_spec
='$name'
10996 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10997 library_names_spec
='$libname.dll.lib'
11001 sys_lib_search_path_spec
=
11004 for lt_path
in $LIB
11007 # Let DOS variable expansion print the short 8.3 style file name.
11008 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11009 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11012 # Convert to MSYS style.
11013 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11016 # Convert to unix form, then to dos form, then back to unix form
11017 # but this time dos style (no spaces!) so that the unix form looks
11018 # like /cygdrive/c/PROGRA~1:/cygdr...
11019 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11020 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11021 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11024 sys_lib_search_path_spec
=$LIB
11025 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11026 # It is most probably a Windows format PATH.
11027 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11029 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031 # FIXME: find the short name or the path components, as spaces are
11032 # common. (e.g. "Program Files" -> "PROGRA~1")
11036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11037 postinstall_cmds
='base_file=`basename \$file`~
11038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11039 dldir=$destdir/`dirname \$dlpath`~
11040 test -d \$dldir || mkdir -p \$dldir~
11041 $install_prog $dir/$dlname \$dldir/$dlname'
11042 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11043 dlpath=$dir/\$dldll~
11045 shlibpath_overrides_runpath
=yes
11046 dynamic_linker
='Win32 link.exe'
11050 # Assume MSVC wrapper
11051 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11052 dynamic_linker
='Win32 ld.exe'
11055 # FIXME: first we should search . and the directory the executable is in
11059 darwin
* | rhapsody
*)
11060 dynamic_linker
="$host_os dyld"
11061 version_type
=darwin
11064 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11065 soname_spec
='$libname$release$major$shared_ext'
11066 shlibpath_overrides_runpath
=yes
11067 shlibpath_var
=DYLD_LIBRARY_PATH
11068 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11070 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11071 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11075 version_type
=linux
# correct to gnu/linux during the next big refactor
11078 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 soname_spec
='$libname$release$shared_ext$major'
11080 shlibpath_var
=LD_LIBRARY_PATH
11083 freebsd
* | dragonfly
*)
11084 # DragonFly does not have aout. When/if they implement a new
11085 # versioning mechanism, adjust this.
11086 if test -x /usr
/bin
/objformat
; then
11087 objformat
=`/usr/bin/objformat`
11090 freebsd
[23].
*) objformat
=aout
;;
11091 *) objformat
=elf
;;
11094 version_type
=freebsd-
$objformat
11095 case $version_type in
11097 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11098 soname_spec
='$libname$release$shared_ext$major'
11103 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107 shlibpath_var
=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath
=yes
11112 freebsd3.
[01]* | freebsdelf3.
[01]*)
11113 shlibpath_overrides_runpath
=yes
11114 hardcode_into_libs
=yes
11116 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11117 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11118 shlibpath_overrides_runpath
=no
11119 hardcode_into_libs
=yes
11121 *) # from 4.6 on, and DragonFly
11122 shlibpath_overrides_runpath
=yes
11123 hardcode_into_libs
=yes
11129 version_type
=linux
# correct to gnu/linux during the next big refactor
11132 dynamic_linker
="$host_os runtime_loader"
11133 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec
='$libname$release$shared_ext$major'
11135 shlibpath_var
=LIBRARY_PATH
11136 shlibpath_overrides_runpath
=no
11137 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138 hardcode_into_libs
=yes
11141 hpux9
* | hpux10
* | hpux11
*)
11142 # Give a soname corresponding to the major version so that dld.sl refuses to
11143 # link against other versions.
11150 hardcode_into_libs
=yes
11151 dynamic_linker
="$host_os dld.so"
11152 shlibpath_var
=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11154 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec
='$libname$release$shared_ext$major'
11156 if test 32 = "$HPUX_IA64_MODE"; then
11157 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11158 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11160 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11161 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11166 hardcode_into_libs
=yes
11167 dynamic_linker
="$host_os dld.sl"
11168 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11169 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11170 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec
='$libname$release$shared_ext$major'
11172 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11173 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11177 dynamic_linker
="$host_os dld.sl"
11178 shlibpath_var
=SHLIB_PATH
11179 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11180 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 soname_spec
='$libname$release$shared_ext$major'
11184 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11185 postinstall_cmds
='chmod 555 $lib'
11186 # or fails outright, so override atomically:
11187 install_override_mode
=555
11191 version_type
=linux
# correct to gnu/linux during the next big refactor
11194 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec
='$libname$release$shared_ext$major'
11196 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11197 shlibpath_var
=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath
=no
11199 hardcode_into_libs
=yes
11202 irix5
* | irix6
* | nonstopux
*)
11204 nonstopux
*) version_type
=nonstopux
;;
11206 if test yes = "$lt_cv_prog_gnu_ld"; then
11207 version_type
=linux
# correct to gnu/linux during the next big refactor
11214 soname_spec
='$libname$release$shared_ext$major'
11215 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11217 irix5
* | nonstopux
*)
11218 libsuff
= shlibsuff
=
11221 case $LD in # libtool.m4 will add one of these switches to LD
11222 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11223 libsuff
= shlibsuff
= libmagic
=32-bit;;
11224 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11225 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11226 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11227 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11228 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11232 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11233 shlibpath_overrides_runpath
=no
11234 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11235 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11236 hardcode_into_libs
=yes
11239 # No shared lib support for Linux oldld, aout, or coff.
11240 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11245 version_type
=none
# Android doesn't support versioned libraries.
11248 library_names_spec
='$libname$release$shared_ext'
11249 soname_spec
='$libname$release$shared_ext'
11251 shlibpath_var
=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath
=yes
11254 # This implies no fast_install, which is unacceptable.
11255 # Some rework will be needed to allow for fast_install
11256 # before this can be enabled.
11257 hardcode_into_libs
=yes
11259 dynamic_linker
='Android linker'
11260 # Don't embed -rpath directories since the linker doesn't support them.
11261 hardcode_libdir_flag_spec
='-L$libdir'
11264 # This must be glibc/ELF.
11265 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11266 version_type
=linux
# correct to gnu/linux during the next big refactor
11269 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11270 soname_spec
='$libname$release$shared_ext$major'
11271 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11272 shlibpath_var
=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath
=no
11275 # Some binutils ld are patched to set DT_RUNPATH
11276 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11277 $as_echo_n "(cached) " >&6
11279 lt_cv_shlibpath_overrides_runpath
=no
11280 save_LDFLAGS
=$LDFLAGS
11281 save_libdir
=$libdir
11282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11295 if ac_fn_c_try_link
"$LINENO"; then :
11296 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11297 lt_cv_shlibpath_overrides_runpath
=yes
11300 rm -f core conftest.err conftest.
$ac_objext \
11301 conftest
$ac_exeext conftest.
$ac_ext
11302 LDFLAGS
=$save_LDFLAGS
11303 libdir
=$save_libdir
11307 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11309 # This implies no fast_install, which is unacceptable.
11310 # Some rework will be needed to allow for fast_install
11311 # before this can be enabled.
11312 hardcode_into_libs
=yes
11314 # Ideally, we could use ldconfig to report *all* directores which are
11315 # searched for libraries, however this is still not possible. Aside from not
11316 # being certain /sbin/ldconfig is available, command
11317 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11318 # even though it is searched at run-time. Try to do the best guess by
11319 # appending ld.so.conf contents (and includes) to the search path.
11320 if test -f /etc
/ld.so.conf
; then
11321 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;s/"//g;/^$/d' | tr '\n' ' '`
11322 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11325 # We used to test for /lib/ld.so.1 and disable shared libraries on
11326 # powerpc, because MkLinux only supported shared libraries with the
11327 # GNU dynamic linker. Since this was broken with cross compilers,
11328 # most powerpc-linux boxes support dynamic linking these days and
11329 # people can always --disable-shared, the test was removed, and we
11330 # assume the GNU/Linux dynamic linker is in use.
11331 dynamic_linker
='GNU/Linux ld.so'
11338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339 soname_spec
='${libname}${release}${shared_ext}$major'
11340 shlibpath_var
=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath
=no
11342 hardcode_into_libs
=yes
11343 dynamic_linker
='NetBSD ld.elf_so'
11350 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11351 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11352 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 dynamic_linker
='NetBSD (a.out) ld.so'
11355 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 soname_spec
='$libname$release$shared_ext$major'
11357 dynamic_linker
='NetBSD ld.elf_so'
11359 shlibpath_var
=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath
=yes
11361 hardcode_into_libs
=yes
11365 version_type
=linux
# correct to gnu/linux during the next big refactor
11366 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 shlibpath_var
=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath
=yes
11375 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11376 soname_spec
='$libname$release$shared_ext$major'
11377 shlibpath_var
=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath
=no
11379 hardcode_into_libs
=yes
11380 dynamic_linker
='ldqnx.so'
11383 openbsd
* | bitrig
*)
11385 sys_lib_dlsearch_path_spec
=/usr
/lib
11387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11392 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11393 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11394 shlibpath_var
=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath
=yes
11399 libname_spec
='$name'
11400 version_type
=windows
11404 # OS/2 can only load a DLL with a base name of 8 characters or less.
11405 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11406 v=$($ECHO $release$versuffix | tr -d .-);
11407 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11408 $ECHO $n$v`$shared_ext'
11409 library_names_spec
='${libname}_dll.$libext'
11410 dynamic_linker
='OS/2 ld.exe'
11411 shlibpath_var
=BEGINLIBPATH
11412 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11413 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11414 postinstall_cmds
='base_file=`basename \$file`~
11415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11416 dldir=$destdir/`dirname \$dlpath`~
11417 test -d \$dldir || mkdir -p \$dldir~
11418 $install_prog $dir/$dlname \$dldir/$dlname~
11419 chmod a+x \$dldir/$dlname~
11420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11423 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11424 dlpath=$dir/\$dldll~
11428 osf3
* | osf4
* | osf5
*)
11432 soname_spec
='$libname$release$shared_ext$major'
11433 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434 shlibpath_var
=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11444 version_type
=linux
# correct to gnu/linux during the next big refactor
11447 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11448 soname_spec
='$libname$release$shared_ext$major'
11449 shlibpath_var
=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath
=yes
11451 hardcode_into_libs
=yes
11452 # ldd complains unless libraries are executable
11453 postinstall_cmds
='chmod +x $lib'
11458 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11459 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460 shlibpath_var
=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath
=yes
11462 if test yes = "$with_gnu_ld"; then
11469 version_type
=linux
# correct to gnu/linux during the next big refactor
11470 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec
='$libname$release$shared_ext$major'
11472 shlibpath_var
=LD_LIBRARY_PATH
11473 case $host_vendor in
11475 shlibpath_overrides_runpath
=no
11477 runpath_var
=LD_RUN_PATH
11485 shlibpath_overrides_runpath
=no
11486 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11492 if test -d /usr
/nec
; then
11493 version_type
=linux
# correct to gnu/linux during the next big refactor
11494 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11495 soname_spec
='$libname$shared_ext.$major'
11496 shlibpath_var
=LD_LIBRARY_PATH
11500 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11504 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11505 soname_spec
='$libname$release$shared_ext$major'
11506 shlibpath_var
=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath
=yes
11508 hardcode_into_libs
=yes
11509 if test yes = "$with_gnu_ld"; then
11510 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11512 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11515 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11519 sys_lib_dlsearch_path_spec
='/usr/lib'
11523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11524 version_type
=linux
# correct to gnu/linux during the next big refactor
11527 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528 shlibpath_var
=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath
=no
11530 hardcode_into_libs
=yes
11534 version_type
=linux
# correct to gnu/linux during the next big refactor
11535 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536 soname_spec
='$libname$release$shared_ext$major'
11537 shlibpath_var
=LD_LIBRARY_PATH
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11545 $as_echo "$dynamic_linker" >&6; }
11546 test no
= "$dynamic_linker" && can_build_shared
=no
11548 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11549 if test yes = "$GCC"; then
11550 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11553 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11554 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11557 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11558 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11561 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11562 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11564 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11565 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11567 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11568 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11669 if test -n "$hardcode_libdir_flag_spec" ||
11670 test -n "$runpath_var" ||
11671 test yes = "$hardcode_automatic"; then
11673 # We can hardcode non-existent directories.
11674 if test no
!= "$hardcode_direct" &&
11675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11676 # have to relink, otherwise we might link with an installed library
11677 # when we should be linking with a yet-to-be-installed one
11678 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11679 test no
!= "$hardcode_minus_L"; then
11680 # Linking always hardcodes the temporary library directory.
11681 hardcode_action
=relink
11683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11684 hardcode_action
=immediate
11687 # We cannot hardcode anything, or else we can only hardcode existing
11689 hardcode_action
=unsupported
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11692 $as_echo "$hardcode_action" >&6; }
11694 if test relink
= "$hardcode_action" ||
11695 test yes = "$inherit_rpath"; then
11696 # Fast installation is not supported
11697 enable_fast_install
=no
11698 elif test yes = "$shlibpath_overrides_runpath" ||
11699 test no
= "$enable_shared"; then
11700 # Fast installation is not necessary
11701 enable_fast_install
=needless
11709 if test yes != "$enable_dlopen"; then
11710 enable_dlopen
=unknown
11711 enable_dlopen_self
=unknown
11712 enable_dlopen_self_static
=unknown
11719 lt_cv_dlopen
=load_add_on
11721 lt_cv_dlopen_self
=yes
11724 mingw
* | pw32
* | cegcc
*)
11725 lt_cv_dlopen
=LoadLibrary
11730 lt_cv_dlopen
=dlopen
11735 # if libdl is installed we need to link against it
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11738 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11739 $as_echo_n "(cached) " >&6
11741 ac_check_lib_save_LIBS
=$LIBS
11743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11761 if ac_fn_c_try_link
"$LINENO"; then :
11762 ac_cv_lib_dl_dlopen
=yes
11764 ac_cv_lib_dl_dlopen
=no
11766 rm -f core conftest.err conftest.
$ac_objext \
11767 conftest
$ac_exeext conftest.
$ac_ext
11768 LIBS
=$ac_check_lib_save_LIBS
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11772 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11773 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11778 lt_cv_dlopen_self
=yes
11785 # Don't try to run any link tests for TPF. We know it's impossible
11786 # because TPF is a cross-compiler, and we know how we open DSOs.
11787 lt_cv_dlopen
=dlopen
11789 lt_cv_dlopen_self
=no
11793 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11794 if test "x$ac_cv_func_shl_load" = xyes
; then :
11795 lt_cv_dlopen
=shl_load
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11798 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11799 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11800 $as_echo_n "(cached) " >&6
11802 ac_check_lib_save_LIBS
=$LIBS
11804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11817 return shl_load ();
11822 if ac_fn_c_try_link
"$LINENO"; then :
11823 ac_cv_lib_dld_shl_load
=yes
11825 ac_cv_lib_dld_shl_load
=no
11827 rm -f core conftest.err conftest.
$ac_objext \
11828 conftest
$ac_exeext conftest.
$ac_ext
11829 LIBS
=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11832 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11833 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11834 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11836 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11837 if test "x$ac_cv_func_dlopen" = xyes
; then :
11838 lt_cv_dlopen
=dlopen
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11842 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11843 $as_echo_n "(cached) " >&6
11845 ac_check_lib_save_LIBS
=$LIBS
11847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11850 /* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11865 if ac_fn_c_try_link
"$LINENO"; then :
11866 ac_cv_lib_dl_dlopen
=yes
11868 ac_cv_lib_dl_dlopen
=no
11870 rm -f core conftest.err conftest.
$ac_objext \
11871 conftest
$ac_exeext conftest.
$ac_ext
11872 LIBS
=$ac_check_lib_save_LIBS
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11876 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11877 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11880 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11881 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11885 LIBS
="-lsvld $LIBS"
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link
"$LINENO"; then :
11905 ac_cv_lib_svld_dlopen
=yes
11907 ac_cv_lib_svld_dlopen
=no
11909 rm -f core conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11911 LIBS
=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11914 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11915 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11916 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11919 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11920 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 ac_check_lib_save_LIBS
=$LIBS
11925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11938 return dld_link ();
11943 if ac_fn_c_try_link
"$LINENO"; then :
11944 ac_cv_lib_dld_dld_link
=yes
11946 ac_cv_lib_dld_dld_link
=no
11948 rm -f core conftest.err conftest.
$ac_objext \
11949 conftest
$ac_exeext conftest.
$ac_ext
11950 LIBS
=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11953 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11954 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11955 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11976 if test no
= "$lt_cv_dlopen"; then
11982 case $lt_cv_dlopen in
11984 save_CPPFLAGS
=$CPPFLAGS
11985 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11987 save_LDFLAGS
=$LDFLAGS
11988 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11991 LIBS
="$lt_cv_dlopen_libs $LIBS"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11994 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11995 if ${lt_cv_dlopen_self+:} false
; then :
11996 $as_echo_n "(cached) " >&6
11998 if test yes = "$cross_compiling"; then :
11999 lt_cv_dlopen_self
=cross
12001 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12002 lt_status
=$lt_dlunknown
12003 cat > conftest.
$ac_ext <<_LT_EOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12014 # define LT_DLGLOBAL RTLD_GLOBAL
12017 # define LT_DLGLOBAL DL_GLOBAL
12019 # define LT_DLGLOBAL 0
12023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12024 find out it does not work in some platform. */
12025 #ifndef LT_DLLAZY_OR_NOW
12027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12030 # define LT_DLLAZY_OR_NOW DL_LAZY
12033 # define LT_DLLAZY_OR_NOW RTLD_NOW
12036 # define LT_DLLAZY_OR_NOW DL_NOW
12038 # define LT_DLLAZY_OR_NOW 0
12045 /* When -fvisibility=hidden is used, assume the code has been annotated
12046 correspondingly for the symbols needed. */
12047 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12048 int fnord () __attribute__((visibility("default")));
12051 int fnord () { return 42; }
12054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12055 int status = $lt_dlunknown;
12059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063 else puts (dlerror ());
12065 /* dlclose (self); */
12073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12074 (eval $ac_link) 2>&5
12076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12078 (.
/conftest
; exit; ) >&5 2>/dev
/null
12080 case x
$lt_status in
12081 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12082 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12083 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12086 # compilation failed
12087 lt_cv_dlopen_self
=no
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12095 $as_echo "$lt_cv_dlopen_self" >&6; }
12097 if test yes = "$lt_cv_dlopen_self"; then
12098 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12100 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12101 if ${lt_cv_dlopen_self_static+:} false
; then :
12102 $as_echo_n "(cached) " >&6
12104 if test yes = "$cross_compiling"; then :
12105 lt_cv_dlopen_self_static
=cross
12107 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12108 lt_status
=$lt_dlunknown
12109 cat > conftest.
$ac_ext <<_LT_EOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12120 # define LT_DLGLOBAL RTLD_GLOBAL
12123 # define LT_DLGLOBAL DL_GLOBAL
12125 # define LT_DLGLOBAL 0
12129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12130 find out it does not work in some platform. */
12131 #ifndef LT_DLLAZY_OR_NOW
12133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW DL_LAZY
12139 # define LT_DLLAZY_OR_NOW RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW DL_NOW
12144 # define LT_DLLAZY_OR_NOW 0
12151 /* When -fvisibility=hidden is used, assume the code has been annotated
12152 correspondingly for the symbols needed. */
12153 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12154 int fnord () __attribute__((visibility("default")));
12157 int fnord () { return 42; }
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169 else puts (dlerror ());
12171 /* dlclose (self); */
12179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180 (eval $ac_link) 2>&5
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12184 (.
/conftest
; exit; ) >&5 2>/dev
/null
12186 case x
$lt_status in
12187 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12188 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12189 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12192 # compilation failed
12193 lt_cv_dlopen_self_static
=no
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12204 CPPFLAGS
=$save_CPPFLAGS
12205 LDFLAGS
=$save_LDFLAGS
12210 case $lt_cv_dlopen_self in
12211 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12212 *) enable_dlopen_self
=unknown
;;
12215 case $lt_cv_dlopen_self_static in
12216 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12217 *) enable_dlopen_self_static
=unknown
;;
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12242 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12243 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12247 # FIXME - insert some real tests, host_os isn't really good enough
12250 if test -n "$STRIP"; then
12251 striplib
="$STRIP -x"
12252 old_striplib
="$STRIP -S"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12278 # Report what library types will actually be built
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12282 $as_echo "$can_build_shared" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12285 $as_echo_n "checking whether to build shared libraries... " >&6; }
12286 test no
= "$can_build_shared" && enable_shared
=no
12288 # On AIX, shared libraries and static libraries use the same namespace, and
12289 # are all built from PIC.
12292 test yes = "$enable_shared" && enable_static
=no
12293 if test -n "$RANLIB"; then
12294 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12295 postinstall_cmds
='$RANLIB $lib'
12300 if test ia64
!= "$host_cpu"; then
12301 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12302 yes,aix
,yes) ;; # shared object as lib.so file only
12303 yes,svr4
,*) ;; # shared object as lib.so archive member only
12304 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12310 $as_echo "$enable_shared" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12313 $as_echo_n "checking whether to build static libraries... " >&6; }
12314 # Make sure either enable_shared or enable_static is yes.
12315 test yes = "$enable_shared" || enable_static
=yes
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12317 $as_echo "$enable_static" >&6; }
12324 ac_cpp
='$CPP $CPPFLAGS'
12325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12345 ac_config_commands
="$ac_config_commands libtool"
12350 # Only expand once:
12353 # By default we simply use the C compiler to build assembly code.
12355 test "${CCAS+set}" = set || CCAS
=$CC
12356 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12360 depcc
="$CCAS" am_compiler_list
=
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12363 $as_echo_n "checking dependency style of $depcc... " >&6; }
12364 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12365 $as_echo_n "(cached) " >&6
12367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12368 # We make a subdir and do the tests there. Otherwise we can end up
12369 # making bogus files that we don't know about and never remove. For
12370 # instance it was reported that on HP-UX the gcc test will end up
12371 # making a dummy file named 'D' -- because '-MD' means "put the output
12373 rm -rf conftest.dir
12375 # Copy depcomp to subdir because otherwise we won't find it if we're
12376 # using a relative directory.
12377 cp "$am_depcomp" conftest.dir
12379 # We will build objects and dependencies in a subdirectory because
12380 # it helps to detect inapplicable dependency modes. For instance
12381 # both Tru64's cc and ICC support -MD to output dependencies as a
12382 # side effect of compilation, but ICC will put the dependencies in
12383 # the current directory while Tru64 will put them in the object
12387 am_cv_CCAS_dependencies_compiler_type
=none
12388 if test "$am_compiler_list" = ""; then
12389 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12391 am__universal
=false
12394 for depmode
in $am_compiler_list; do
12395 # Setup a source with many dependencies, because some compilers
12396 # like to wrap large dependency lists on column 80 (with \), and
12397 # we should not choose a depcomp mode which is confused by this.
12399 # We need to recreate these files for each test, as the compiler may
12400 # overwrite some of them when testing with obscure command lines.
12401 # This happens at least with the AIX C compiler.
12403 for i
in 1 2 3 4 5 6; do
12404 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12405 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12406 # Solaris 10 /bin/sh.
12407 echo '/* dummy */' > sub
/conftst
$i.h
12409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12411 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12412 # mode. It turns out that the SunPro C++ compiler does not properly
12413 # handle '-M -o', and we need to detect this. Also, some Intel
12414 # versions had trouble with output in subdirs.
12415 am__obj
=sub
/conftest.
${OBJEXT-o}
12416 am__minus_obj
="-o $am__obj"
12419 # This depmode causes a compiler race in universal mode.
12420 test "$am__universal" = false ||
continue
12423 # After this tag, mechanisms are not by side-effect, so they'll
12424 # only be used when explicitly requested.
12425 if test "x$enable_dependency_tracking" = xyes
; then
12431 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12432 # This compiler won't grok '-c -o', but also, the minuso test has
12433 # not run yet. These depmodes are late enough in the game, and
12434 # so weak that their functioning should not be impacted.
12435 am__obj
=conftest.
${OBJEXT-o}
12440 if depmode
=$depmode \
12441 source=sub
/conftest.c object
=$am__obj \
12442 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12443 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12444 >/dev
/null
2>conftest.err
&&
12445 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12446 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12447 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12448 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12449 # icc doesn't choke on unknown options, it will just issue warnings
12450 # or remarks (even with -Werror). So we grep stderr for any message
12451 # that says an option was ignored or not supported.
12452 # When given -MP, icc 7.0 and 7.1 complain thusly:
12453 # icc: Command line warning: ignoring option '-M'; no argument required
12454 # The diagnosis changed in icc 8.0:
12455 # icc: Command line remark: option '-MP' not supported
12456 if (grep 'ignoring option' conftest.err ||
12457 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12458 am_cv_CCAS_dependencies_compiler_type
=$depmode
12465 rm -rf conftest.dir
12467 am_cv_CCAS_dependencies_compiler_type
=none
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12472 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12473 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12476 test "x$enable_dependency_tracking" != xno \
12477 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12478 am__fastdepCCAS_TRUE
=
12479 am__fastdepCCAS_FALSE
='#'
12481 am__fastdepCCAS_TRUE
='#'
12482 am__fastdepCCAS_FALSE
=
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12490 $as_echo_n "checking zfs author... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12492 $as_echo "$ZFS_META_AUTHOR" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12495 $as_echo_n "checking zfs license... " >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12497 $as_echo "$ZFS_META_LICENSE" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12502 $as_echo_n "checking linux distribution... " >&6; }
12503 if test -f /etc
/toss-release
; then
12505 elif test -f /etc
/fedora-release
; then
12507 elif test -f /etc
/redhat-release
; then
12509 elif test -f /etc
/gentoo-release
; then
12511 elif test -f /etc
/arch-release
; then
12513 elif test -f /etc
/SuSE-release
; then
12515 elif test -f /etc
/slackware-version
; then
12517 elif test -f /etc
/lunar.release
; then
12519 elif test -f /etc
/lsb-release
; then
12521 elif test -f /etc
/debian_version
; then
12523 elif test -f /etc
/alpine-release
; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12529 $as_echo "$VENDOR" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12533 $as_echo_n "checking default package type... " >&6; }
12535 toss
) DEFAULT_PACKAGE
=rpm
;;
12536 redhat
) DEFAULT_PACKAGE
=rpm
;;
12537 fedora
) DEFAULT_PACKAGE
=rpm
;;
12538 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12539 alpine
) DEFAULT_PACKAGE
=tgz
;;
12540 arch
) DEFAULT_PACKAGE
=tgz
;;
12541 sles
) DEFAULT_PACKAGE
=rpm
;;
12542 slackware
) DEFAULT_PACKAGE
=tgz
;;
12543 lunar
) DEFAULT_PACKAGE
=tgz
;;
12544 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12545 debian
) DEFAULT_PACKAGE
=deb
;;
12546 *) DEFAULT_PACKAGE
=rpm
;;
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12549 $as_echo "$DEFAULT_PACKAGE" >&6; }
12552 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12554 $as_echo_n "checking default init directory... " >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12556 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12560 $as_echo_n "checking default init script type... " >&6; }
12562 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12563 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12564 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12565 gentoo
) DEFAULT_INIT_SCRIPT
=openrc
;;
12566 alpine
) DEFAULT_INIT_SCRIPT
=openrc
;;
12567 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12568 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12569 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12570 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12571 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12572 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12573 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12576 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12580 $as_echo_n "checking default init config direectory... " >&6; }
12582 alpine
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12583 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12584 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12585 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12586 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12587 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12588 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12589 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12590 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12593 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12597 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12598 if test -d /usr
/share
/initramfs-tools
; then
12599 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12603 DEFINE_INITRAMFS
=''
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12614 $as_echo_n "checking whether $RPM is available... " >&6; }
12615 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12617 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12620 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12626 $as_echo "$HAVE_RPM" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12631 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12632 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12634 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12637 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12643 $as_echo "$HAVE_RPMBUILD" >&6; }
12647 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1"'
12648 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12649 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12652 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12657 RPM_SPEC_DIR
="rpm/generic"
12659 # Check whether --with-spec was given.
12660 if test "${with_spec+set}" = set; then :
12661 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12666 $as_echo_n "checking whether spec files are available... " >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12668 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12690 DPKGBUILD
=dpkg-buildpackage
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12693 $as_echo_n "checking whether $DPKG is available... " >&6; }
12694 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12696 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12699 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12705 $as_echo "$HAVE_DPKG" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12710 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12711 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12713 DPKGBUILD_VERSION
=$
(echo $tmp | \
12714 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12717 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12723 $as_echo "$HAVE_DPKGBUILD" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12739 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12740 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12742 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12745 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12751 $as_echo "$HAVE_ALIEN" >&6; }
12763 # Check whether --with-config was given.
12764 if test "${with_config+set}" = set; then :
12765 withval
=$with_config; ZFS_CONFIG
="$withval"
12768 # Check whether --enable-linux-builtin was given.
12769 if test "${enable_linux_builtin+set}" = set; then :
12770 enableval
=$enable_linux_builtin;
12772 enable_linux_builtin
=no
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12777 $as_echo_n "checking zfs config... " >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12779 $as_echo "$ZFS_CONFIG" >&6; };
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12785 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12787 saved_flags
="$CFLAGS"
12788 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12801 if ac_fn_c_try_compile
"$LINENO"; then :
12803 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805 $as_echo "yes" >&6; }
12809 NO_UNUSED_BUT_SET_VARIABLE
=
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 CFLAGS
="$saved_flags"
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12821 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12823 saved_flags
="$CFLAGS"
12824 CFLAGS
="$CFLAGS -Wbool-compare"
12826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12837 if ac_fn_c_try_compile
"$LINENO"; then :
12839 NO_BOOL_COMPARE
=-Wno-bool-compare
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 CFLAGS
="$saved_flags"
12856 case "$host_cpu" in
12857 x86_64 | x86 | i686
)
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12860 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12867 __asm__ __volatile__("xorps %xmm0, %xmm1");
12871 if ac_fn_c_try_link
"$LINENO"; then :
12874 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12890 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12897 __asm__ __volatile__("pxor %xmm0, %xmm1");
12901 if ac_fn_c_try_link
"$LINENO"; then :
12904 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907 $as_echo "yes" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12915 rm -f core conftest.err conftest.
$ac_objext \
12916 conftest
$ac_exeext conftest.
$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12920 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12928 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12932 if ac_fn_c_try_link
"$LINENO"; then :
12935 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938 $as_echo "yes" >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12946 rm -f core conftest.err conftest.
$ac_objext \
12947 conftest
$ac_exeext conftest.
$ac_ext
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12951 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12958 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12962 if ac_fn_c_try_link
"$LINENO"; then :
12965 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968 $as_echo "yes" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12976 rm -f core conftest.err conftest.
$ac_objext \
12977 conftest
$ac_exeext conftest.
$ac_ext
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12981 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12988 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12992 if ac_fn_c_try_link
"$LINENO"; then :
12995 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12998 $as_echo "yes" >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13006 rm -f core conftest.err conftest.
$ac_objext \
13007 conftest
$ac_exeext conftest.
$ac_ext
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13011 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13018 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13022 if ac_fn_c_try_link
"$LINENO"; then :
13025 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13028 $as_echo "yes" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13041 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13049 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13053 if ac_fn_c_try_link
"$LINENO"; then :
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13056 $as_echo "yes" >&6; }
13058 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13067 rm -f core conftest.err conftest.
$ac_objext \
13068 conftest
$ac_exeext conftest.
$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13072 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13080 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13084 if ac_fn_c_try_link
"$LINENO"; then :
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087 $as_echo "yes" >&6; }
13089 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13098 rm -f core conftest.err conftest.
$ac_objext \
13099 conftest
$ac_exeext conftest.
$ac_ext
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13103 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13111 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13115 if ac_fn_c_try_link
"$LINENO"; then :
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13120 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13129 rm -f core conftest.err conftest.
$ac_objext \
13130 conftest
$ac_exeext conftest.
$ac_ext
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13134 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13142 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13146 if ac_fn_c_try_link
"$LINENO"; then :
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149 $as_echo "yes" >&6; }
13151 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13160 rm -f core conftest.err conftest.
$ac_objext \
13161 conftest
$ac_exeext conftest.
$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13165 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13173 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13177 if ac_fn_c_try_link
"$LINENO"; then :
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13180 $as_echo "yes" >&6; }
13182 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13191 rm -f core conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13196 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13204 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13208 if ac_fn_c_try_link
"$LINENO"; then :
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211 $as_echo "yes" >&6; }
13213 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13222 rm -f core conftest.err conftest.
$ac_objext \
13223 conftest
$ac_exeext conftest.
$ac_ext
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13227 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13235 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13239 if ac_fn_c_try_link
"$LINENO"; then :
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242 $as_echo "yes" >&6; }
13244 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13253 rm -f core conftest.err conftest.
$ac_objext \
13254 conftest
$ac_exeext conftest.
$ac_ext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13258 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13266 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13270 if ac_fn_c_try_link
"$LINENO"; then :
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13273 $as_echo "yes" >&6; }
13275 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13289 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13297 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13301 if ac_fn_c_try_link
"$LINENO"; then :
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13306 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13315 rm -f core conftest.err conftest.
$ac_objext \
13316 conftest
$ac_exeext conftest.
$ac_ext
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13320 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13328 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13332 if ac_fn_c_try_link
"$LINENO"; then :
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13337 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13346 rm -f core conftest.err conftest.
$ac_objext \
13347 conftest
$ac_exeext conftest.
$ac_ext
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13351 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13359 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13363 if ac_fn_c_try_link
"$LINENO"; then :
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13366 $as_echo "yes" >&6; }
13368 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13377 rm -f core conftest.err conftest.
$ac_objext \
13378 conftest
$ac_exeext conftest.
$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13385 $as_echo_n "checking for target asm dir... " >&6; }
13386 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13388 case $TARGET_ARCH in
13390 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13393 TARGET_ASM_DIR
=asm-generic
13398 if test $TARGET_ASM_DIR = asm-x86_64
; then
13399 TARGET_ASM_X86_64_TRUE
=
13400 TARGET_ASM_X86_64_FALSE
='#'
13402 TARGET_ASM_X86_64_TRUE
='#'
13403 TARGET_ASM_X86_64_FALSE
=
13406 if test $TARGET_ASM_DIR = asm-i386
; then
13407 TARGET_ASM_I386_TRUE
=
13408 TARGET_ASM_I386_FALSE
='#'
13410 TARGET_ASM_I386_TRUE
='#'
13411 TARGET_ASM_I386_FALSE
=
13414 if test $TARGET_ASM_DIR = asm-generic
; then
13415 TARGET_ASM_GENERIC_TRUE
=
13416 TARGET_ASM_GENERIC_FALSE
='#'
13418 TARGET_ASM_GENERIC_TRUE
='#'
13419 TARGET_ASM_GENERIC_FALSE
=
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13423 $as_echo "$TARGET_ASM_DIR" >&6; }
13427 case "$ZFS_CONFIG" in
13431 # Check whether --with-linux was given.
13432 if test "${with_linux+set}" = set; then :
13433 withval
=$with_linux; kernelsrc
="$withval"
13438 # Check whether --with-linux-obj was given.
13439 if test "${with_linux_obj+set}" = set; then :
13440 withval
=$with_linux_obj; kernelbuild
="$withval"
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13445 $as_echo_n "checking kernel source directory... " >&6; }
13446 if test -z "$kernelsrc"; then :
13448 if test -e "/lib/modules/$(uname -r)/source"; then :
13450 headersdir
="/lib/modules/$(uname -r)/source"
13451 sourcelink
=$
(readlink
-f "$headersdir")
13453 elif test -e "/lib/modules/$(uname -r)/build"; then :
13455 headersdir
="/lib/modules/$(uname -r)/build"
13456 sourcelink
=$
(readlink
-f "$headersdir")
13460 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13462 2>/dev
/null |
grep -v obj |
tail -1)
13466 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13468 kernelsrc
=`readlink -f ${sourcelink}`
13472 kernelsrc
="Not found"
13478 if test "$kernelsrc" = "NONE"; then :
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13488 $as_echo "$kernelsrc" >&6; }
13489 if test ! -d "$kernelsrc"; then :
13492 *** Please make sure the kernel devel package for your distribution
13493 *** is installed and then try again. If that fails, you can specify the
13494 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13499 $as_echo_n "checking kernel build directory... " >&6; }
13500 if test -z "$kernelbuild"; then :
13502 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
13504 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13506 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13508 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13510 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13512 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13514 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13516 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13520 kernelbuild
=${kernelsrc}
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13526 $as_echo "$kernelbuild" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13529 $as_echo_n "checking kernel source version... " >&6; }
13530 utsrelease1
=$kernelbuild/include
/linux
/version.h
13531 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13532 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13533 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13535 utsrelease
=linux
/version.h
13537 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13539 utsrelease
=linux
/utsrelease.h
13541 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13543 utsrelease
=generated
/utsrelease.h
13547 if test "$utsrelease"; then :
13549 kernsrcver
=`(echo "#include <$utsrelease>";
13550 echo "kernsrcver=UTS_RELEASE") |
13551 cpp -I $kernelbuild/include |
13552 grep "^kernsrcver=" | cut -d \" -f 2`
13554 if test -z "$kernsrcver"; then :
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13557 $as_echo "Not found" >&6; }
13558 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13565 $as_echo "Not found" >&6; }
13566 if test "x$enable_linux_builtin" != xyes
; then
13567 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13570 *** Cannot find UTS_RELEASE definition.
13571 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13577 $as_echo "$kernsrcver" >&6; }
13580 LINUX_OBJ
=${kernelbuild}
13581 LINUX_VERSION
=${kernsrcver}
13588 modpost
=$LINUX/scripts
/Makefile.modpost
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13590 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13591 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13593 if grep -q Modules.symvers
$modpost; then :
13595 LINUX_SYMBOLS
=Modules.symvers
13599 LINUX_SYMBOLS
=Module.symvers
13603 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13606 *** Please make sure the kernel devel package for your distribution
13607 *** is installed. If you are building with a custom kernel, make sure the
13608 *** kernel is configured, built, and the '--with-linux=PATH' configure
13609 *** option refers to the location of the kernel source." "$LINENO" 5
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13619 $as_echo "$LINUX_SYMBOLS" >&6; }
13625 # Check whether --with-spl was given.
13626 if test "${with_spl+set}" = set; then :
13627 withval
=$with_spl; if test "$withval" = "yes"; then :
13628 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
13636 # Check whether --with-spl-obj was given.
13637 if test "${with_spl_obj+set}" = set; then :
13638 withval
=$with_spl_obj; splbuild
="$withval"
13643 # Check whether --with-spl-timeout was given.
13644 if test "${with_spl_timeout+set}" = set; then :
13645 withval
=$with_spl_timeout; timeout
="$withval"
13651 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13652 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13653 splsrc2
="/usr/local/src/spl-${VERSION}"
13654 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13655 splsrc4
="/usr/src/spl-${VERSION}"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13660 $as_echo_n "checking spl source directory... " >&6; }
13661 if test -z "${splsrc}"; then :
13671 if test -e "${splsrc0}/spl.release.in"; then :
13675 elif test -e "${splsrc1}/spl.release.in"; then :
13679 elif test -e "${splsrc2}/spl.release.in"; then :
13683 elif test -e "${splsrc3}/spl.release.in"; then :
13685 splsrc
=$
(readlink
-f "${splsrc3}")
13687 elif test -e "${splsrc4}/spl.release.in" ; then :
13691 elif test -e "${splsrc5}/spl.release.in"; then :
13693 splsrc
=$
(readlink
-f "${splsrc5}")
13695 elif test -e "${splsrc6}/spl.release.in" ; then :
13707 all_spl_sources
="$withval",
13708 if test "$splsrc" = "NONE"; then :
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13718 $as_echo "$splsrc" >&6; }
13719 if test ! -e "$splsrc/spl.release.in"; then :
13722 *** Please make sure the kmod spl devel package for your distribution
13723 *** is installed then try again. If that fails you can specify the
13724 *** location of the spl source with the '--with-spl=PATH' option.
13725 *** The spl version must match the version of ZFS you are building,
13726 *** ${VERSION}. Failed to find spl.release.in in the following:
13727 $all_spl_sources" "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13732 $as_echo_n "checking spl build directory... " >&6; }
13734 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
13738 if test -z "$splbuild"; then :
13740 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13742 splbuild
="${splsrc}/${LINUX_VERSION}"
13744 elif test -e "${splsrc}/spl_config.h" ; then :
13746 splbuild
="${splsrc}"
13748 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13750 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13754 splbuild
="Not found"
13759 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13766 timeout
=$
((timeout-1
))
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13772 $as_echo "$splbuild" >&6; }
13773 if ! test -e "$splbuild/spl_config.h"; then :
13776 *** Please make sure the kmod spl devel <kernel> package for your
13777 *** distribution is installed then try again. If that fails you
13778 *** can specify the location of the spl objects with the
13779 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13780 *** any of the following:
13781 $all_spl_config_locs" "$LINENO" 5
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13786 $as_echo_n "checking spl source version... " >&6; }
13787 if test -r $splbuild/spl_config.h
&&
13788 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13791 splsrcver
=`(echo "#include <spl_config.h>";
13792 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13794 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13798 if test -z "$splsrcver"; then :
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13801 $as_echo "Not found" >&6; }
13803 *** Cannot determine the version of the spl source.
13804 *** Please prepare the spl source before running this script" "$LINENO" 5
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13809 $as_echo "$splsrcver" >&6; }
13812 SPL_OBJ
=${splbuild}
13813 SPL_VERSION
=${splsrcver}
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13820 $as_echo_n "checking spl file name for module symbols... " >&6; }
13824 if test -r $SPL_OBJ/Module.symvers
; then :
13826 SPL_SYMBOLS
=Module.symvers
13828 elif test -r $SPL_OBJ/Modules.symvers
; then :
13830 SPL_SYMBOLS
=Modules.symvers
13832 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13834 SPL_SYMBOLS
=Module.symvers
13836 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13838 SPL_SYMBOLS
=Modules.symvers
13842 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13849 timeout
=$
((timeout-1
))
13854 if test "$SPL_SYMBOLS" = NONE
; then :
13856 SPL_SYMBOLS
=$LINUX_SYMBOLS
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13861 $as_echo "$SPL_SYMBOLS" >&6; }
13866 # Check whether --with-qat was given.
13867 if test "${with_qat+set}" = set; then :
13868 withval
=$with_qat; if test "$withval" = "yes"; then :
13869 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
13877 # Check whether --with-qat-obj was given.
13878 if test "${with_qat_obj+set}" = set; then :
13879 withval
=$with_qat_obj; qatbuild
="$withval"
13883 if test ! -z "${qatsrc}"; then :
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13886 $as_echo_n "checking qat source directory... " >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13888 $as_echo "$qatsrc" >&6; }
13889 QAT_SRC
="${qatsrc}/quickassist"
13890 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13893 *** Please make sure the qat driver package is installed
13894 *** and specify the location of the qat source with the
13895 *** '--with-qat=PATH' option then try again. Failed to
13897 ${QAT_SRC}/include" "$LINENO" 5
13903 if test ! -z "${qatsrc}"; then :
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13906 $as_echo_n "checking qat build directory... " >&6; }
13907 if test -z "$qatbuild"; then :
13909 qatbuild
="${qatsrc}/build"
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13914 $as_echo "$qatbuild" >&6; }
13915 QAT_OBJ
=${qatbuild}
13916 if ! test -e "$QAT_OBJ/icp_qa_al.ko"; then :
13919 *** Please make sure the qat driver is installed then try again.
13920 *** Failed to find icp_qa_al.ko in:
13921 $QAT_OBJ" "$LINENO" 5
13929 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13934 if test ! -z "${qatsrc}"; then :
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13937 $as_echo_n "checking qat file for module symbols... " >&6; }
13938 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
13940 if test -r $QAT_SYMBOLS; then :
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13943 $as_echo "$QAT_SYMBOLS" >&6; }
13949 *** Please make sure the qat driver is installed then try again.
13950 *** Failed to find Module.symvers in:
13951 $QAT_SYMBOLS" "$LINENO" 5
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13959 $as_echo_n "checking whether modules can be built... " >&6; }
13962 cat confdefs.h
- <<_ACEOF >conftest.c
13977 cat - <<_ACEOF >conftest.h
13982 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13983 echo "obj-m := conftest.o" >build
/Makefile
13985 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13986 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13988 (eval $ac_try) 2>&5
13990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13993 (eval $ac_try) 2>&5
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; }; }; then :
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14002 $as_echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.
$ac_ext >&5
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14007 if test "x$enable_linux_builtin" != xyes
; then
14008 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14011 *** Unable to build an empty module.
14012 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14024 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14027 cat confdefs.h
- <<_ACEOF >conftest.c
14030 #undef __ASSEMBLY__
14031 #include <asm/frame.h>
14037 #if !defined(FRAME_BEGIN)
14049 cat - <<_ACEOF >conftest.h
14054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14055 echo "obj-m := conftest.o" >build
/Makefile
14057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14060 (eval $ac_try) 2>&5
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14065 (eval $ac_try) 2>&5
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068 test $ac_status = 0; }; }; then :
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14071 $as_echo "yes" >&6; }
14073 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14077 $as_echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.
$ac_ext >&5
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14091 if test "x$cross_compiling" != xyes
; then :
14093 if test "$cross_compiling" = yes; then :
14094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096 as_fn_error $?
"cannot run test program while cross compiling
14097 See \`config.log' for more details" "$LINENO" 5; }
14099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14103 #include "$LINUX/include/linux/license.h"
14109 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14116 if ac_fn_c_try_run
"$LINENO"; then :
14119 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14132 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14135 cat confdefs.h
- <<_ACEOF >conftest.c
14138 #include <linux/module.h>
14144 #if (THREAD_SIZE < 16384)
14145 #error "THREAD_SIZE is less than 16K"
14156 cat - <<_ACEOF >conftest.h
14161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14162 echo "obj-m := conftest.o" >build
/Makefile
14164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14167 (eval $ac_try) 2>&5
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14172 (eval $ac_try) 2>&5
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; }; then :
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14178 $as_echo "yes" >&6; }
14180 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14184 $as_echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.
$ac_ext >&5
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14200 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14203 cat confdefs.h
- <<_ACEOF >conftest.c
14206 #include <linux/module.h>
14212 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14213 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14224 cat - <<_ACEOF >conftest.h
14229 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14230 echo "obj-m := conftest.o" >build
/Makefile
14232 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14233 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14235 (eval $ac_try) 2>&5
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14240 (eval $ac_try) 2>&5
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; }; then :
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246 $as_echo "yes" >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14249 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14250 tmp_flags
="$EXTRA_KCFLAGS"
14253 cat confdefs.h
- <<_ACEOF >conftest.c
14256 #include <linux/module.h>
14257 #include <linux/mutex.h>
14259 MODULE_LICENSE("$ZFS_META_LICENSE");
14269 mutex_unlock(&lock);
14279 cat - <<_ACEOF >conftest.h
14284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14285 echo "obj-m := conftest.o" >build
/Makefile
14287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14295 (eval $ac_try) 2>&5
14297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298 test $ac_status = 0; }; }; then :
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14304 $as_echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.
$ac_ext >&5
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308 $as_echo "yes" >&6; }
14310 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14311 *** with the CDDL license and will prevent the module linking stage
14312 *** from succeeding. You must rebuild your kernel without this
14313 *** option enabled." "$LINENO" 5
14321 EXTRA_KCFLAGS
="$tmp_flags"
14325 $as_echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14342 tmp_flags
="$EXTRA_KCFLAGS"
14343 EXTRA_KCFLAGS
="-I\$(src)"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14346 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14349 cat confdefs.h
- <<_ACEOF >conftest.c
14352 #include <linux/module.h>
14353 MODULE_LICENSE(ZFS_META_LICENSE);
14355 #define CREATE_TRACE_POINTS
14356 #include "conftest.h"
14362 trace_zfs_autoconf_event_one(1UL);
14363 trace_zfs_autoconf_event_two(2UL);
14373 cat - <<_ACEOF >conftest.h
14375 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14376 #define _CONFTEST_H
14378 #undef TRACE_SYSTEM
14379 #define TRACE_SYSTEM zfs
14380 #include <linux/tracepoint.h>
14382 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14383 TP_PROTO(unsigned long i),
14386 __field(unsigned long, i)
14391 TP_printk("i = %lu", __entry->i)
14394 #define DEFINE_AUTOCONF_EVENT(name) \
14395 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14396 TP_PROTO(unsigned long i), \
14398 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14399 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14401 #endif /* _CONFTEST_H */
14403 #undef TRACE_INCLUDE_PATH
14404 #define TRACE_INCLUDE_PATH .
14405 #define TRACE_INCLUDE_FILE conftest
14406 #include <trace/define_trace.h>
14411 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14412 echo "obj-m := conftest.o" >build
/Makefile
14414 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14415 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14417 (eval $ac_try) 2>&5
14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14422 (eval $ac_try) 2>&5
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; }; then :
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14428 $as_echo "yes" >&6; }
14430 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14434 $as_echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.
$ac_ext >&5
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14446 EXTRA_KCFLAGS
="$tmp_flags"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14450 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14453 cat confdefs.h
- <<_ACEOF >conftest.c
14456 #include <linux/sched.h>
14462 current->bio_tail = (struct bio **) NULL;
14472 cat - <<_ACEOF >conftest.h
14477 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14478 echo "obj-m := conftest.o" >build
/Makefile
14480 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14481 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14483 (eval $ac_try) 2>&5
14485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14486 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14488 (eval $ac_try) 2>&5
14490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14491 test $ac_status = 0; }; }; then :
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 $as_echo "yes" >&6; }
14496 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14500 $as_echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.
$ac_ext >&5
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14506 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14509 cat confdefs.h
- <<_ACEOF >conftest.c
14512 #include <linux/sched.h>
14518 current->bio_list = (struct bio_list *) NULL;
14528 cat - <<_ACEOF >conftest.h
14533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14534 echo "obj-m := conftest.o" >build
/Makefile
14536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14539 (eval $ac_try) 2>&5
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14544 (eval $ac_try) 2>&5
14546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14547 test $ac_status = 0; }; }; then :
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550 $as_echo "yes" >&6; }
14552 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14556 $as_echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.
$ac_ext >&5
14559 as_fn_error $?
"no - Please file a bug report at
14560 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14578 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14581 cat confdefs.h
- <<_ACEOF >conftest.c
14584 #include <linux/fs.h>
14585 #include <linux/user_namespace.h>
14591 struct super_block super;
14592 super.s_user_ns = (struct user_namespace *)NULL;
14602 cat - <<_ACEOF >conftest.h
14607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14608 echo "obj-m := conftest.o" >build
/Makefile
14610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14618 (eval $ac_try) 2>&5
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; }; then :
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14626 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.
$ac_ext >&5
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14645 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14648 cat confdefs.h
- <<_ACEOF >conftest.c
14651 #include <linux/bio.h>
14658 struct bio *bio = NULL;
14659 blk_qc = submit_bio(bio);
14669 cat - <<_ACEOF >conftest.h
14674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14675 echo "obj-m := conftest.o" >build
/Makefile
14677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14680 (eval $ac_try) 2>&5
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; }; then :
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691 $as_echo "yes" >&6; }
14693 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14712 $as_echo_n "checking block device operation prototypes... " >&6; }
14713 tmp_flags
="$EXTRA_KCFLAGS"
14714 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14717 cat confdefs.h
- <<_ACEOF >conftest.c
14720 #include <linux/blkdev.h>
14722 int blk_open(struct block_device *bdev, fmode_t mode)
14724 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14725 unsigned x, unsigned long y) { return 0; }
14726 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14727 unsigned x, unsigned long y) { return 0; }
14729 static const struct block_device_operations
14730 bops __attribute__ ((unused)) = {
14733 .ioctl = blk_ioctl,
14734 .compat_ioctl = blk_compat_ioctl,
14750 cat - <<_ACEOF >conftest.h
14755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14756 echo "obj-m := conftest.o" >build
/Makefile
14758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14759 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14761 (eval $ac_try) 2>&5
14763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14766 (eval $ac_try) 2>&5
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; }; then :
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14772 $as_echo "struct block_device" >&6; }
14774 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14778 $as_echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.
$ac_ext >&5
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14782 $as_echo "struct inode" >&6; }
14790 EXTRA_KCFLAGS
="$tmp_flags"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14794 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14795 tmp_flags
="$EXTRA_KCFLAGS"
14796 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14799 cat confdefs.h
- <<_ACEOF >conftest.c
14802 #include <linux/blkdev.h>
14804 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14806 static const struct block_device_operations
14807 bops __attribute__ ((unused)) = {
14809 .release = blk_release,
14811 .compat_ioctl = NULL,
14827 cat - <<_ACEOF >conftest.h
14832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14833 echo "obj-m := conftest.o" >build
/Makefile
14835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14838 (eval $ac_try) 2>&5
14840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14843 (eval $ac_try) 2>&5
14845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14846 test $ac_status = 0; }; }; then :
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14849 $as_echo "void" >&6; }
14851 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14855 $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.
$ac_ext >&5
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14859 $as_echo "int" >&6; }
14867 EXTRA_KCFLAGS
="$tmp_flags"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14870 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14873 cat confdefs.h
- <<_ACEOF >conftest.c
14876 #include <linux/types.h>
14882 fmode_t *ptr __attribute__ ((unused));
14892 cat - <<_ACEOF >conftest.h
14897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14898 echo "obj-m := conftest.o" >build
/Makefile
14900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14903 (eval $ac_try) 2>&5
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14908 (eval $ac_try) 2>&5
14910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14911 test $ac_status = 0; }; }; then :
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14914 $as_echo "yes" >&6; }
14916 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14920 $as_echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14935 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14938 cat confdefs.h
- <<_ACEOF >conftest.c
14941 #include <linux/fs.h>
14947 struct block_device *bdev = NULL;
14948 (void) blkdev_get(bdev, 0, NULL);
14958 cat - <<_ACEOF >conftest.h
14963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14964 echo "obj-m := conftest.o" >build
/Makefile
14966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14969 (eval $ac_try) 2>&5
14971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14972 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14974 (eval $ac_try) 2>&5
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; }; then :
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980 $as_echo "yes" >&6; }
14982 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.
$ac_ext >&5
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15000 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15004 cat confdefs.h
- <<_ACEOF >conftest.c
15007 #include <linux/fs.h>
15013 blkdev_get_by_path(NULL, 0, NULL);
15023 cat - <<_ACEOF >conftest.h
15028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15029 echo "obj-m := conftest.o" >build
/Makefile
15031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15032 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034 (eval $ac_try) 2>&5
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15039 (eval $ac_try) 2>&5
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; }; }; then :
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15054 if test $rc -ne 0; then :
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15060 if test "x$enable_linux_builtin" != xyes
; then
15062 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15065 if test $rc -ne 0; then
15067 for file in fs
/block_dev.c
; do
15068 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15069 "$LINUX/$file" 2>/dev
/null
15071 if test $rc -eq 0; then
15076 if test $export -eq 0; then :
15086 if test $rc -ne 0; then :
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15094 $as_echo "yes" >&6; }
15096 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15104 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15108 cat confdefs.h
- <<_ACEOF >conftest.c
15111 #include <linux/fs.h>
15117 open_bdev_exclusive(NULL, 0, NULL);
15127 cat - <<_ACEOF >conftest.h
15132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15133 echo "obj-m := conftest.o" >build
/Makefile
15135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15138 (eval $ac_try) 2>&5
15140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15143 (eval $ac_try) 2>&5
15145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15146 test $ac_status = 0; }; }; then :
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15158 if test $rc -ne 0; then :
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15164 if test "x$enable_linux_builtin" != xyes
; then
15166 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15167 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15169 if test $rc -ne 0; then
15171 for file in fs
/block_dev.c
; do
15172 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15173 "$LINUX/$file" 2>/dev
/null
15175 if test $rc -eq 0; then
15180 if test $export -eq 0; then :
15190 if test $rc -ne 0; then :
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15198 $as_echo "yes" >&6; }
15200 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15208 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15212 cat confdefs.h
- <<_ACEOF >conftest.c
15215 #include <linux/fs.h>
15231 cat - <<_ACEOF >conftest.h
15236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15237 echo "obj-m := conftest.o" >build
/Makefile
15239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15242 (eval $ac_try) 2>&5
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15247 (eval $ac_try) 2>&5
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; }; }; then :
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.
$ac_ext >&5
15262 if test $rc -ne 0; then :
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15267 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15271 cat confdefs.h
- <<_ACEOF >conftest.c
15274 #include <linux/fs.h>
15280 lookup_bdev(NULL, FMODE_READ);
15290 cat - <<_ACEOF >conftest.h
15295 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15296 echo "obj-m := conftest.o" >build
/Makefile
15298 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15299 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15301 (eval $ac_try) 2>&5
15303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15306 (eval $ac_try) 2>&5
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; }; }; then :
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.
$ac_ext >&5
15321 if test $rc -ne 0; then :
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15327 if test "x$enable_linux_builtin" != xyes
; then
15329 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15330 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15332 if test $rc -ne 0; then
15334 for file in fs
/block_dev.c
; do
15335 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15336 "$LINUX/$file" 2>/dev
/null
15338 if test $rc -eq 0; then
15343 if test $export -eq 0; then :
15353 if test $rc -ne 0; then :
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361 $as_echo "yes" >&6; }
15363 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15371 if test "x$enable_linux_builtin" != xyes
; then
15373 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15374 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15376 if test $rc -ne 0; then
15378 for file in fs
/block_dev.c
; do
15379 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15380 "$LINUX/$file" 2>/dev
/null
15382 if test $rc -eq 0; then
15387 if test $export -eq 0; then :
15397 if test $rc -ne 0; then :
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15402 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15406 cat confdefs.h
- <<_ACEOF >conftest.c
15409 #include <linux/fs.h>
15415 lookup_bdev(NULL, FMODE_READ);
15425 cat - <<_ACEOF >conftest.h
15430 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15431 echo "obj-m := conftest.o" >build
/Makefile
15433 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15434 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15436 (eval $ac_try) 2>&5
15438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15441 (eval $ac_try) 2>&5
15443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15444 test $ac_status = 0; }; }; then :
15447 $as_echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.
$ac_ext >&5
15456 if test $rc -ne 0; then :
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15462 if test "x$enable_linux_builtin" != xyes
; then
15464 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15467 if test $rc -ne 0; then
15469 for file in fs
/block_dev.c
; do
15470 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15471 "$LINUX/$file" 2>/dev
/null
15473 if test $rc -eq 0; then
15478 if test $export -eq 0; then :
15488 if test $rc -ne 0; then :
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15496 $as_echo "yes" >&6; }
15498 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15510 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15519 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15522 cat confdefs.h
- <<_ACEOF >conftest.c
15525 #include <linux/buffer_head.h>
15531 struct block_device *bdev = NULL;
15532 invalidate_bdev(bdev);
15542 cat - <<_ACEOF >conftest.h
15547 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15548 echo "obj-m := conftest.o" >build
/Makefile
15550 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15551 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15553 (eval $ac_try) 2>&5
15555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15558 (eval $ac_try) 2>&5
15560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15561 test $ac_status = 0; }; }; then :
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15564 $as_echo "yes" >&6; }
15566 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.
$ac_ext >&5
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15585 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15586 tmp_flags
="$EXTRA_KCFLAGS"
15587 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15590 cat confdefs.h
- <<_ACEOF >conftest.c
15593 #include <linux/blkdev.h>
15599 struct block_device *bdev = NULL;
15600 bdev_logical_block_size(bdev);
15610 cat - <<_ACEOF >conftest.h
15615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15616 echo "obj-m := conftest.o" >build
/Makefile
15618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15619 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15621 (eval $ac_try) 2>&5
15623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15626 (eval $ac_try) 2>&5
15628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 test $ac_status = 0; }; }; then :
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632 $as_echo "yes" >&6; }
15634 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15638 $as_echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.
$ac_ext >&5
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15650 EXTRA_KCFLAGS
="$tmp_flags"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15654 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15655 tmp_flags
="$EXTRA_KCFLAGS"
15656 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15659 cat confdefs.h
- <<_ACEOF >conftest.c
15662 #include <linux/blkdev.h>
15668 struct block_device *bdev = NULL;
15669 bdev_physical_block_size(bdev);
15679 cat - <<_ACEOF >conftest.h
15684 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15685 echo "obj-m := conftest.o" >build
/Makefile
15687 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15688 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15690 (eval $ac_try) 2>&5
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15695 (eval $ac_try) 2>&5
15697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15698 test $ac_status = 0; }; }; then :
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15703 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15707 $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.
$ac_ext >&5
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15719 EXTRA_KCFLAGS
="$tmp_flags"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15723 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15726 cat confdefs.h
- <<_ACEOF >conftest.c
15729 #include <linux/bio.h>
15736 bio.bi_iter.bi_sector = 0;
15746 cat - <<_ACEOF >conftest.h
15751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15752 echo "obj-m := conftest.o" >build
/Makefile
15754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15757 (eval $ac_try) 2>&5
15759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15762 (eval $ac_try) 2>&5
15764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15765 test $ac_status = 0; }; }; then :
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15768 $as_echo "yes" >&6; }
15770 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15774 $as_echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.
$ac_ext >&5
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15789 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15792 cat confdefs.h
- <<_ACEOF >conftest.c
15795 #include <linux/bio.h>
15801 int flags __attribute__ ((unused));
15802 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15803 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15804 (1 << BIO_RW_FAILFAST_DRIVER));
15814 cat - <<_ACEOF >conftest.h
15819 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15820 echo "obj-m := conftest.o" >build
/Makefile
15822 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15823 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15825 (eval $ac_try) 2>&5
15827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15828 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15830 (eval $ac_try) 2>&5
15832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15833 test $ac_status = 0; }; }; then :
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15836 $as_echo "yes" >&6; }
15838 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15842 $as_echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.
$ac_ext >&5
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 $as_echo "no" >&6; }
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15857 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15860 cat confdefs.h
- <<_ACEOF >conftest.c
15863 #include <linux/bio.h>
15864 #include <linux/fs.h>
15870 struct block_device *bdev = NULL;
15871 struct bio *bio = NULL;
15872 bio_set_dev(bio, bdev);
15882 cat - <<_ACEOF >conftest.h
15887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15888 echo "obj-m := conftest.o" >build
/Makefile
15890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15893 (eval $ac_try) 2>&5
15895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15898 (eval $ac_try) 2>&5
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }; }; then :
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15904 $as_echo "yes" >&6; }
15906 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.
$ac_ext >&5
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914 $as_echo "no" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15925 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15928 cat confdefs.h
- <<_ACEOF >conftest.c
15931 #include <linux/bio.h>
15937 int flags __attribute__ ((unused));
15938 flags = REQ_FAILFAST_MASK;
15948 cat - <<_ACEOF >conftest.h
15953 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15954 echo "obj-m := conftest.o" >build
/Makefile
15956 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15957 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15959 (eval $ac_try) 2>&5
15961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15964 (eval $ac_try) 2>&5
15966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15967 test $ac_status = 0; }; }; then :
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 $as_echo "yes" >&6; }
15972 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15976 $as_echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.
$ac_ext >&5
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15991 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15994 cat confdefs.h
- <<_ACEOF >conftest.c
15997 #include <linux/blk_types.h>
16003 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16013 cat - <<_ACEOF >conftest.h
16018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16019 echo "obj-m := conftest.o" >build
/Makefile
16021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16024 (eval $ac_try) 2>&5
16026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16029 (eval $ac_try) 2>&5
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; }; }; then :
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16037 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16041 $as_echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16056 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16059 cat confdefs.h
- <<_ACEOF >conftest.c
16062 #include <linux/blk_types.h>
16068 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16078 cat - <<_ACEOF >conftest.h
16083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16084 echo "obj-m := conftest.o" >build
/Makefile
16086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16087 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16089 (eval $ac_try) 2>&5
16091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16092 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; }; then :
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16102 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16121 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16124 cat confdefs.h
- <<_ACEOF >conftest.c
16127 #include <linux/blk_types.h>
16133 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16143 cat - <<_ACEOF >conftest.h
16148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16149 echo "obj-m := conftest.o" >build
/Makefile
16151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16154 (eval $ac_try) 2>&5
16156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16159 (eval $ac_try) 2>&5
16161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16162 test $ac_status = 0; }; }; then :
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16165 $as_echo "yes" >&6; }
16167 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.
$ac_ext >&5
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175 $as_echo "no" >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16186 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16189 cat confdefs.h
- <<_ACEOF >conftest.c
16192 #include <linux/bio.h>
16198 struct bio bio __attribute__ ((unused));
16209 cat - <<_ACEOF >conftest.h
16214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16215 echo "obj-m := conftest.o" >build
/Makefile
16217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16218 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16220 (eval $ac_try) 2>&5
16222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16225 (eval $ac_try) 2>&5
16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228 test $ac_status = 0; }; }; then :
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16231 $as_echo "yes" >&6; }
16233 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16237 $as_echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.
$ac_ext >&5
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241 $as_echo "no" >&6; }
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16252 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16255 cat confdefs.h
- <<_ACEOF >conftest.c
16258 #include <linux/bio.h>
16260 void wanted_end_io(struct bio *bio) { return; }
16262 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16277 cat - <<_ACEOF >conftest.h
16282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16283 echo "obj-m := conftest.o" >build
/Makefile
16285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16288 (eval $ac_try) 2>&5
16290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16293 (eval $ac_try) 2>&5
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; }; }; then :
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299 $as_echo "yes" >&6; }
16301 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16305 $as_echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.
$ac_ext >&5
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16320 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16323 cat confdefs.h
- <<_ACEOF >conftest.c
16326 #include <linux/bio.h>
16332 struct bio bio __attribute__ ((unused));
16333 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16335 bio.bi_status = status;
16345 cat - <<_ACEOF >conftest.h
16350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16351 echo "obj-m := conftest.o" >build
/Makefile
16353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16356 (eval $ac_try) 2>&5
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16361 (eval $ac_try) 2>&5
16363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16364 test $ac_status = 0; }; }; then :
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367 $as_echo "yes" >&6; }
16369 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16373 $as_echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.
$ac_ext >&5
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16377 $as_echo "no" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16388 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16391 cat confdefs.h
- <<_ACEOF >conftest.c
16394 #include <linux/bio.h>
16400 int flags __attribute__ ((unused));
16401 flags = BIO_RW_BARRIER;
16411 cat - <<_ACEOF >conftest.h
16416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16417 echo "obj-m := conftest.o" >build
/Makefile
16419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16422 (eval $ac_try) 2>&5
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16427 (eval $ac_try) 2>&5
16429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; }; then :
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16433 $as_echo "yes" >&6; }
16435 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16439 $as_echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.
$ac_ext >&5
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443 $as_echo "no" >&6; }
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16454 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16457 cat confdefs.h
- <<_ACEOF >conftest.c
16460 #include <linux/bio.h>
16466 int flags __attribute__ ((unused));
16467 flags = BIO_RW_DISCARD;
16477 cat - <<_ACEOF >conftest.h
16482 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16483 echo "obj-m := conftest.o" >build
/Makefile
16485 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16486 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16488 (eval $ac_try) 2>&5
16490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16491 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16493 (eval $ac_try) 2>&5
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; }; then :
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16499 $as_echo "yes" >&6; }
16501 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16505 $as_echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.
$ac_ext >&5
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16520 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16523 cat confdefs.h
- <<_ACEOF >conftest.c
16526 #include <linux/blkdev.h>
16532 struct request_queue q;
16533 struct backing_dev_info bdi;
16534 q.backing_dev_info = &bdi;
16544 cat - <<_ACEOF >conftest.h
16549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16550 echo "obj-m := conftest.o" >build
/Makefile
16552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16555 (eval $ac_try) 2>&5
16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16560 (eval $ac_try) 2>&5
16562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16563 test $ac_status = 0; }; }; then :
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16568 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16587 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16588 tmp_flags
="$EXTRA_KCFLAGS"
16589 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16592 cat confdefs.h
- <<_ACEOF >conftest.c
16595 #include <linux/blkdev.h>
16601 struct request_queue *q = NULL;
16602 (void) blk_queue_flush(q, REQ_FLUSH);
16612 cat - <<_ACEOF >conftest.h
16617 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16618 echo "obj-m := conftest.o" >build
/Makefile
16620 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16621 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16623 (eval $ac_try) 2>&5
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16628 (eval $ac_try) 2>&5
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }; }; then :
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16634 $as_echo "yes" >&6; }
16636 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16640 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16643 cat confdefs.h
- <<_ACEOF >conftest.c
16646 #include <linux/module.h>
16647 #include <linux/blkdev.h>
16649 MODULE_LICENSE("$ZFS_META_LICENSE");
16655 struct request_queue *q = NULL;
16656 (void) blk_queue_flush(q, REQ_FLUSH);
16666 cat - <<_ACEOF >conftest.h
16671 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16672 echo "obj-m := conftest.o" >build
/Makefile
16674 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16675 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16677 (eval $ac_try) 2>&5
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16682 (eval $ac_try) 2>&5
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }; }; then :
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16691 $as_echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.
$ac_ext >&5
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16695 $as_echo "yes" >&6; }
16697 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16708 $as_echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.
$ac_ext >&5
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712 $as_echo "no" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16722 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16725 cat confdefs.h
- <<_ACEOF >conftest.c
16728 #include <linux/kernel.h>
16729 #include <linux/blkdev.h>
16736 struct request_queue *q = NULL;
16737 blk_queue_write_cache(q, true, true);
16747 cat - <<_ACEOF >conftest.h
16752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16753 echo "obj-m := conftest.o" >build
/Makefile
16755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16756 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16758 (eval $ac_try) 2>&5
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16763 (eval $ac_try) 2>&5
16765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16766 test $ac_status = 0; }; }; then :
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16769 $as_echo "yes" >&6; }
16771 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16775 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16778 cat confdefs.h
- <<_ACEOF >conftest.c
16781 #include <linux/kernel.h>
16782 #include <linux/module.h>
16783 #include <linux/blkdev.h>
16785 MODULE_LICENSE("$ZFS_META_LICENSE");
16791 struct request_queue *q = NULL;
16792 blk_queue_write_cache(q, true, true);
16802 cat - <<_ACEOF >conftest.h
16807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16808 echo "obj-m := conftest.o" >build
/Makefile
16810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16813 (eval $ac_try) 2>&5
16815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16818 (eval $ac_try) 2>&5
16820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821 test $ac_status = 0; }; }; then :
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16824 $as_echo "no" >&6; }
16827 $as_echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.
$ac_ext >&5
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16833 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16844 $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848 $as_echo "no" >&6; }
16857 EXTRA_KCFLAGS
="$tmp_flags"
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16861 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16862 tmp_flags
="$EXTRA_KCFLAGS"
16863 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16866 cat confdefs.h
- <<_ACEOF >conftest.c
16869 #include <linux/blkdev.h>
16875 struct request_queue *q = NULL;
16876 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16886 cat - <<_ACEOF >conftest.h
16891 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16892 echo "obj-m := conftest.o" >build
/Makefile
16894 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16895 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16897 (eval $ac_try) 2>&5
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; }; then :
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16908 $as_echo "yes" >&6; }
16910 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16914 $as_echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.
$ac_ext >&5
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918 $as_echo "no" >&6; }
16926 EXTRA_KCFLAGS
="$tmp_flags"
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16930 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16931 tmp_flags
="$EXTRA_KCFLAGS"
16932 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16935 cat confdefs.h
- <<_ACEOF >conftest.c
16938 #include <linux/blkdev.h>
16944 struct request_queue *q = NULL;
16945 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16955 cat - <<_ACEOF >conftest.h
16960 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16961 echo "obj-m := conftest.o" >build
/Makefile
16963 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16964 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16966 (eval $ac_try) 2>&5
16968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16971 (eval $ac_try) 2>&5
16973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16974 test $ac_status = 0; }; }; then :
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16977 $as_echo "yes" >&6; }
16979 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16983 $as_echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.
$ac_ext >&5
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987 $as_echo "no" >&6; }
16995 EXTRA_KCFLAGS
="$tmp_flags"
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16999 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17000 tmp_flags
="$EXTRA_KCFLAGS"
17001 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17004 cat confdefs.h
- <<_ACEOF >conftest.c
17007 #include <linux/blkdev.h>
17013 extern enum bio_rw_flags rw;
17015 rw = BIO_RW_UNPLUG;
17025 cat - <<_ACEOF >conftest.h
17030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17031 echo "obj-m := conftest.o" >build
/Makefile
17033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17034 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17041 (eval $ac_try) 2>&5
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; }; }; then :
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 $as_echo "yes" >&6; }
17049 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17053 $as_echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17065 EXTRA_KCFLAGS
="$tmp_flags"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17069 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17070 tmp_flags
="$EXTRA_KCFLAGS"
17071 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17074 cat confdefs.h
- <<_ACEOF >conftest.c
17077 #include <linux/blkdev.h>
17083 struct blk_plug plug;
17085 blk_start_plug(&plug);
17086 blk_finish_plug(&plug);
17096 cat - <<_ACEOF >conftest.h
17101 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17102 echo "obj-m := conftest.o" >build
/Makefile
17104 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17105 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17107 (eval $ac_try) 2>&5
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17112 (eval $ac_try) 2>&5
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; }; }; then :
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 $as_echo "yes" >&6; }
17120 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17124 $as_echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.
$ac_ext >&5
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17136 EXTRA_KCFLAGS
="$tmp_flags"
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17140 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17141 tmp_flags
="$EXTRA_KCFLAGS"
17142 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17145 cat confdefs.h
- <<_ACEOF >conftest.c
17148 #include <linux/blkdev.h>
17154 struct gendisk *disk = NULL;
17155 (void) get_disk_ro(disk);
17165 cat - <<_ACEOF >conftest.h
17170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17171 echo "obj-m := conftest.o" >build
/Makefile
17173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17176 (eval $ac_try) 2>&5
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17181 (eval $ac_try) 2>&5
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; }; then :
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187 $as_echo "yes" >&6; }
17189 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.
$ac_ext >&5
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197 $as_echo "no" >&6; }
17205 EXTRA_KCFLAGS
="$tmp_flags"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17208 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17212 cat confdefs.h
- <<_ACEOF >conftest.c
17215 #include <linux/genhd.h>
17221 get_gendisk(0, NULL);
17231 cat - <<_ACEOF >conftest.h
17236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17237 echo "obj-m := conftest.o" >build
/Makefile
17239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17242 (eval $ac_try) 2>&5
17244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17247 (eval $ac_try) 2>&5
17249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17250 test $ac_status = 0; }; }; then :
17253 $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.
$ac_ext >&5
17262 if test $rc -ne 0; then :
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265 $as_echo "no" >&6; }
17268 if test "x$enable_linux_builtin" != xyes
; then
17270 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17271 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17273 if test $rc -ne 0; then
17275 for file in block
/genhd.c
; do
17276 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17277 "$LINUX/$file" 2>/dev
/null
17279 if test $rc -eq 0; then
17284 if test $export -eq 0; then :
17294 if test $rc -ne 0; then :
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17297 $as_echo "no" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17302 $as_echo "yes" >&6; }
17304 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17313 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17316 cat confdefs.h
- <<_ACEOF >conftest.c
17319 #include <linux/bio.h>
17325 struct bio *bio __attribute__ ((unused)) = NULL;
17327 bio_set_op_attrs(bio, 0, 0);
17337 cat - <<_ACEOF >conftest.h
17342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17343 echo "obj-m := conftest.o" >build
/Makefile
17345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17348 (eval $ac_try) 2>&5
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17353 (eval $ac_try) 2>&5
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }; }; then :
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17359 $as_echo "yes" >&6; }
17361 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.
$ac_ext >&5
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17380 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17383 cat confdefs.h
- <<_ACEOF >conftest.c
17386 #include <linux/fs.h>
17392 int i __attribute__ ((unused));
17394 i = generic_readlink(NULL, NULL, 0);
17404 cat - <<_ACEOF >conftest.h
17409 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17410 echo "obj-m := conftest.o" >build
/Makefile
17412 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17413 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17415 (eval $ac_try) 2>&5
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17420 (eval $ac_try) 2>&5
17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17423 test $ac_status = 0; }; }; then :
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426 $as_echo "yes" >&6; }
17428 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17432 $as_echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.
$ac_ext >&5
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17447 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17450 cat confdefs.h
- <<_ACEOF >conftest.c
17453 #include <linux/blkdev.h>
17459 struct queue_limits ql __attribute__ ((unused));
17461 ql.discard_granularity = 0;
17471 cat - <<_ACEOF >conftest.h
17476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17477 echo "obj-m := conftest.o" >build
/Makefile
17479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17482 (eval $ac_try) 2>&5
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; }; then :
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493 $as_echo "yes" >&6; }
17495 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17499 $as_echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.
$ac_ext >&5
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17514 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17517 cat confdefs.h
- <<_ACEOF >conftest.c
17520 #include <linux/fs.h>
17521 #include <linux/xattr.h>
17523 const struct xattr_handler xattr_test_handler = {
17529 const struct xattr_handler *xattr_handlers[] = {
17530 &xattr_test_handler,
17533 const struct super_block sb __attribute__ ((unused)) = {
17534 .s_xattr = xattr_handlers,
17550 cat - <<_ACEOF >conftest.h
17555 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17556 echo "obj-m := conftest.o" >build
/Makefile
17558 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17559 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17561 (eval $ac_try) 2>&5
17563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17564 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17566 (eval $ac_try) 2>&5
17568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17569 test $ac_status = 0; }; }; then :
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572 $as_echo "yes" >&6; }
17574 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17578 $as_echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.
$ac_ext >&5
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582 $as_echo "no" >&6; }
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17593 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17596 cat confdefs.h
- <<_ACEOF >conftest.c
17599 #include <linux/xattr.h>
17601 static const struct xattr_handler
17602 xops __attribute__ ((unused)) = {
17603 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17619 cat - <<_ACEOF >conftest.h
17624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17625 echo "obj-m := conftest.o" >build
/Makefile
17627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17630 (eval $ac_try) 2>&5
17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17635 (eval $ac_try) 2>&5
17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638 test $ac_status = 0; }; }; then :
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17641 $as_echo "yes" >&6; }
17643 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17647 $as_echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.
$ac_ext >&5
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651 $as_echo "no" >&6; }
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17662 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17665 cat confdefs.h
- <<_ACEOF >conftest.c
17668 #include <linux/xattr.h>
17670 int get(const struct xattr_handler *handler,
17671 struct dentry *dentry, struct inode *inode,
17672 const char *name, void *buffer, size_t size) { return 0; }
17673 static const struct xattr_handler
17674 xops __attribute__ ((unused)) = {
17691 cat - <<_ACEOF >conftest.h
17696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17697 echo "obj-m := conftest.o" >build
/Makefile
17699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17700 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17702 (eval $ac_try) 2>&5
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17707 (eval $ac_try) 2>&5
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; }; }; then :
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17715 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17719 $as_echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17725 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17728 cat confdefs.h
- <<_ACEOF >conftest.c
17731 #include <linux/xattr.h>
17733 int get(const struct xattr_handler *handler,
17734 struct dentry *dentry, const char *name,
17735 void *buffer, size_t size) { return 0; }
17736 static const struct xattr_handler
17737 xops __attribute__ ((unused)) = {
17754 cat - <<_ACEOF >conftest.h
17759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17760 echo "obj-m := conftest.o" >build
/Makefile
17762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17765 (eval $ac_try) 2>&5
17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17770 (eval $ac_try) 2>&5
17772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17773 test $ac_status = 0; }; }; then :
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776 $as_echo "yes" >&6; }
17778 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.
$ac_ext >&5
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786 $as_echo "no" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17788 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17791 cat confdefs.h
- <<_ACEOF >conftest.c
17794 #include <linux/xattr.h>
17796 int get(struct dentry *dentry, const char *name,
17797 void *buffer, size_t size, int handler_flags)
17799 static const struct xattr_handler
17800 xops __attribute__ ((unused)) = {
17817 cat - <<_ACEOF >conftest.h
17822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17823 echo "obj-m := conftest.o" >build
/Makefile
17825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17828 (eval $ac_try) 2>&5
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17833 (eval $ac_try) 2>&5
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; }; then :
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17839 $as_echo "yes" >&6; }
17841 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17851 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17854 cat confdefs.h
- <<_ACEOF >conftest.c
17857 #include <linux/xattr.h>
17859 int get(struct inode *ip, const char *name,
17860 void *buffer, size_t size) { return 0; }
17861 static const struct xattr_handler
17862 xops __attribute__ ((unused)) = {
17879 cat - <<_ACEOF >conftest.h
17884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17885 echo "obj-m := conftest.o" >build
/Makefile
17887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17890 (eval $ac_try) 2>&5
17892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17895 (eval $ac_try) 2>&5
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; }; then :
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17901 $as_echo "yes" >&6; }
17903 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17907 $as_echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.
$ac_ext >&5
17910 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17942 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17945 cat confdefs.h
- <<_ACEOF >conftest.c
17948 #include <linux/xattr.h>
17950 int set(const struct xattr_handler *handler,
17951 struct dentry *dentry, struct inode *inode,
17952 const char *name, const void *buffer,
17953 size_t size, int flags)
17955 static const struct xattr_handler
17956 xops __attribute__ ((unused)) = {
17973 cat - <<_ACEOF >conftest.h
17978 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17979 echo "obj-m := conftest.o" >build
/Makefile
17981 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17982 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17984 (eval $ac_try) 2>&5
17986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17989 (eval $ac_try) 2>&5
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; }; then :
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995 $as_echo "yes" >&6; }
17997 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.
$ac_ext >&5
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18007 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18010 cat confdefs.h
- <<_ACEOF >conftest.c
18013 #include <linux/xattr.h>
18015 int set(const struct xattr_handler *handler,
18016 struct dentry *dentry, const char *name,
18017 const void *buffer, size_t size, int flags)
18019 static const struct xattr_handler
18020 xops __attribute__ ((unused)) = {
18037 cat - <<_ACEOF >conftest.h
18042 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18043 echo "obj-m := conftest.o" >build
/Makefile
18045 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18046 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18048 (eval $ac_try) 2>&5
18050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18051 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18053 (eval $ac_try) 2>&5
18055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18056 test $ac_status = 0; }; }; then :
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18059 $as_echo "yes" >&6; }
18061 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18065 $as_echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.
$ac_ext >&5
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18069 $as_echo "no" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18071 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18074 cat confdefs.h
- <<_ACEOF >conftest.c
18077 #include <linux/xattr.h>
18079 int set(struct dentry *dentry, const char *name,
18080 const void *buffer, size_t size, int flags,
18081 int handler_flags) { return 0; }
18082 static const struct xattr_handler
18083 xops __attribute__ ((unused)) = {
18100 cat - <<_ACEOF >conftest.h
18105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18106 echo "obj-m := conftest.o" >build
/Makefile
18108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18111 (eval $ac_try) 2>&5
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18116 (eval $ac_try) 2>&5
18118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18119 test $ac_status = 0; }; }; then :
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18122 $as_echo "yes" >&6; }
18124 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.
$ac_ext >&5
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132 $as_echo "no" >&6; }
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18134 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18137 cat confdefs.h
- <<_ACEOF >conftest.c
18140 #include <linux/xattr.h>
18142 int set(struct inode *ip, const char *name,
18143 const void *buffer, size_t size, int flags)
18145 static const struct xattr_handler
18146 xops __attribute__ ((unused)) = {
18163 cat - <<_ACEOF >conftest.h
18168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18169 echo "obj-m := conftest.o" >build
/Makefile
18171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18179 (eval $ac_try) 2>&5
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; }; then :
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18187 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18191 $as_echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.
$ac_ext >&5
18194 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18226 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18229 cat confdefs.h
- <<_ACEOF >conftest.c
18232 #include <linux/xattr.h>
18234 bool list(struct dentry *dentry) { return 0; }
18235 static const struct xattr_handler
18236 xops __attribute__ ((unused)) = {
18253 cat - <<_ACEOF >conftest.h
18258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18259 echo "obj-m := conftest.o" >build
/Makefile
18261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18264 (eval $ac_try) 2>&5
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18269 (eval $ac_try) 2>&5
18271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18272 test $ac_status = 0; }; }; then :
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18275 $as_echo "yes" >&6; }
18277 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18281 $as_echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.
$ac_ext >&5
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18287 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18290 cat confdefs.h
- <<_ACEOF >conftest.c
18293 #include <linux/xattr.h>
18295 size_t list(const struct xattr_handler *handler,
18296 struct dentry *dentry, char *list, size_t list_size,
18297 const char *name, size_t name_len) { return 0; }
18298 static const struct xattr_handler
18299 xops __attribute__ ((unused)) = {
18316 cat - <<_ACEOF >conftest.h
18321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18322 echo "obj-m := conftest.o" >build
/Makefile
18324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18327 (eval $ac_try) 2>&5
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18332 (eval $ac_try) 2>&5
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; }; }; then :
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18340 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18344 $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.
$ac_ext >&5
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18350 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18353 cat confdefs.h
- <<_ACEOF >conftest.c
18356 #include <linux/xattr.h>
18358 size_t list(struct dentry *dentry,
18359 char *list, size_t list_size,
18360 const char *name, size_t name_len,
18361 int handler_flags) { return 0; }
18362 static const struct xattr_handler
18363 xops __attribute__ ((unused)) = {
18380 cat - <<_ACEOF >conftest.h
18385 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18386 echo "obj-m := conftest.o" >build
/Makefile
18388 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18389 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18391 (eval $ac_try) 2>&5
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18396 (eval $ac_try) 2>&5
18398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18399 test $ac_status = 0; }; }; then :
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18402 $as_echo "yes" >&6; }
18404 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18408 $as_echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.
$ac_ext >&5
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412 $as_echo "no" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18414 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18417 cat confdefs.h
- <<_ACEOF >conftest.c
18420 #include <linux/xattr.h>
18422 size_t list(struct inode *ip, char *lst,
18423 size_t list_size, const char *name,
18424 size_t name_len) { return 0; }
18425 static const struct xattr_handler
18426 xops __attribute__ ((unused)) = {
18443 cat - <<_ACEOF >conftest.h
18448 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18449 echo "obj-m := conftest.o" >build
/Makefile
18451 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18452 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18454 (eval $ac_try) 2>&5
18456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18459 (eval $ac_try) 2>&5
18461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18462 test $ac_status = 0; }; }; then :
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18465 $as_echo "yes" >&6; }
18467 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18471 $as_echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.
$ac_ext >&5
18474 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18506 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18509 cat confdefs.h
- <<_ACEOF >conftest.c
18512 #include <linux/fs.h>
18518 struct inode *ip = NULL;
18519 (void) inode_owner_or_capable(ip);
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 $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18540 (eval $ac_try) 2>&5
18542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18543 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18545 (eval $ac_try) 2>&5
18547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18548 test $ac_status = 0; }; }; then :
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18551 $as_echo "yes" >&6; }
18553 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18557 $as_echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561 $as_echo "no" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18563 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18566 cat confdefs.h
- <<_ACEOF >conftest.c
18569 #include <linux/fs.h>
18570 #include <linux/sched.h>
18576 struct inode *ip = NULL;
18577 (void) is_owner_or_cap(ip);
18587 cat - <<_ACEOF >conftest.h
18592 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18593 echo "obj-m := conftest.o" >build
/Makefile
18595 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18596 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18598 (eval $ac_try) 2>&5
18600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18601 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18603 (eval $ac_try) 2>&5
18605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18606 test $ac_status = 0; }; }; then :
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18609 $as_echo "yes" >&6; }
18611 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.
$ac_ext >&5
18618 as_fn_error $?
"no - Please file a bug report at
18619 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18637 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18640 cat confdefs.h
- <<_ACEOF >conftest.c
18643 #include <linux/cred.h>
18644 #include <linux/fs.h>
18645 #include <linux/posix_acl_xattr.h>
18651 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18661 cat - <<_ACEOF >conftest.h
18666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18667 echo "obj-m := conftest.o" >build
/Makefile
18669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18672 (eval $ac_try) 2>&5
18674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18677 (eval $ac_try) 2>&5
18679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18680 test $ac_status = 0; }; }; then :
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683 $as_echo "yes" >&6; }
18685 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18689 $as_echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.
$ac_ext >&5
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18704 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18707 cat confdefs.h
- <<_ACEOF >conftest.c
18710 #include <linux/cred.h>
18711 #include <linux/fs.h>
18712 #include <linux/posix_acl.h>
18718 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18719 posix_acl_release(tmp);
18729 cat - <<_ACEOF >conftest.h
18734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18735 echo "obj-m := conftest.o" >build
/Makefile
18737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18738 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18740 (eval $ac_try) 2>&5
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18745 (eval $ac_try) 2>&5
18747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18748 test $ac_status = 0; }; }; then :
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18753 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18757 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18760 cat confdefs.h
- <<_ACEOF >conftest.c
18763 #include <linux/module.h>
18764 #include <linux/cred.h>
18765 #include <linux/fs.h>
18766 #include <linux/posix_acl.h>
18768 MODULE_LICENSE("$ZFS_META_LICENSE");
18774 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18775 posix_acl_release(tmp);
18785 cat - <<_ACEOF >conftest.h
18790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18791 echo "obj-m := conftest.o" >build
/Makefile
18793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18796 (eval $ac_try) 2>&5
18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18801 (eval $ac_try) 2>&5
18803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804 test $ac_status = 0; }; }; then :
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18810 $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.
$ac_ext >&5
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18814 $as_echo "yes" >&6; }
18816 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18827 $as_echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.
$ac_ext >&5
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18842 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18845 cat confdefs.h
- <<_ACEOF >conftest.c
18848 #include <linux/module.h>
18849 #include <linux/cred.h>
18850 #include <linux/fs.h>
18851 #include <linux/posix_acl.h>
18853 MODULE_LICENSE("$ZFS_META_LICENSE");
18859 struct inode *ip = NULL;
18860 struct posix_acl *acl = posix_acl_alloc(1, 0);
18861 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18862 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18872 cat - <<_ACEOF >conftest.h
18877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18878 echo "obj-m := conftest.o" >build
/Makefile
18880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18881 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18883 (eval $ac_try) 2>&5
18885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18886 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18888 (eval $ac_try) 2>&5
18890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18891 test $ac_status = 0; }; }; then :
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18894 $as_echo "yes" >&6; }
18896 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18900 $as_echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.
$ac_ext >&5
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904 $as_echo "no" >&6; }
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18915 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18918 cat confdefs.h
- <<_ACEOF >conftest.c
18921 #include <linux/fs.h>
18922 #include <linux/posix_acl.h>
18928 posix_acl_chmod(NULL, 0, 0)
18938 cat - <<_ACEOF >conftest.h
18943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18944 echo "obj-m := conftest.o" >build
/Makefile
18946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18947 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18949 (eval $ac_try) 2>&5
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18954 (eval $ac_try) 2>&5
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; }; then :
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18962 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18966 $as_echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.
$ac_ext >&5
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970 $as_echo "no" >&6; }
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18980 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18983 cat confdefs.h
- <<_ACEOF >conftest.c
18986 #include <linux/fs.h>
18987 #include <linux/posix_acl.h>
18993 __posix_acl_chmod(NULL, 0, 0)
19003 cat - <<_ACEOF >conftest.h
19008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19009 echo "obj-m := conftest.o" >build
/Makefile
19011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19012 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19014 (eval $ac_try) 2>&5
19016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19017 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19019 (eval $ac_try) 2>&5
19021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19022 test $ac_status = 0; }; }; then :
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19025 $as_echo "yes" >&6; }
19027 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.
$ac_ext >&5
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19046 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19049 cat confdefs.h
- <<_ACEOF >conftest.c
19052 #include <linux/fs.h>
19053 #include <linux/posix_acl.h>
19060 posix_acl_equiv_mode(NULL,&tmp);
19070 cat - <<_ACEOF >conftest.h
19075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19076 echo "obj-m := conftest.o" >build
/Makefile
19078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19081 (eval $ac_try) 2>&5
19083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19086 (eval $ac_try) 2>&5
19088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19089 test $ac_status = 0; }; }; then :
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092 $as_echo "yes" >&6; }
19094 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19098 $as_echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.
$ac_ext >&5
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102 $as_echo "no" >&6; }
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19113 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19116 cat confdefs.h
- <<_ACEOF >conftest.c
19119 #include <linux/fs.h>
19120 #include <linux/posix_acl.h>
19126 struct user_namespace *user_ns = NULL;
19127 const struct posix_acl *acl = NULL;
19130 error = posix_acl_valid(user_ns, acl);
19140 cat - <<_ACEOF >conftest.h
19145 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19146 echo "obj-m := conftest.o" >build
/Makefile
19148 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19149 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19151 (eval $ac_try) 2>&5
19153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19156 (eval $ac_try) 2>&5
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; }; then :
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19162 $as_echo "yes" >&6; }
19164 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19168 $as_echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.
$ac_ext >&5
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 $as_echo "no" >&6; }
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19183 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19186 cat confdefs.h
- <<_ACEOF >conftest.c
19189 #include <linux/fs.h>
19191 int permission_fn(struct inode *inode, int mask) { return 0; }
19193 static const struct inode_operations
19194 iops __attribute__ ((unused)) = {
19195 .permission = permission_fn,
19211 cat - <<_ACEOF >conftest.h
19216 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19217 echo "obj-m := conftest.o" >build
/Makefile
19219 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19220 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19222 (eval $ac_try) 2>&5
19224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19227 (eval $ac_try) 2>&5
19229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; }; then :
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19235 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19239 $as_echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.
$ac_ext >&5
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243 $as_echo "no" >&6; }
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19254 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19257 cat confdefs.h
- <<_ACEOF >conftest.c
19260 #include <linux/fs.h>
19262 int permission_fn(struct inode *inode, int mask,
19263 struct nameidata *nd) { return 0; }
19265 static const struct inode_operations
19266 iops __attribute__ ((unused)) = {
19267 .permission = permission_fn,
19283 cat - <<_ACEOF >conftest.h
19288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19289 echo "obj-m := conftest.o" >build
/Makefile
19291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19294 (eval $ac_try) 2>&5
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19299 (eval $ac_try) 2>&5
19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19302 test $ac_status = 0; }; }; then :
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19307 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19310 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19314 $as_echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.
$ac_ext >&5
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19329 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19332 cat confdefs.h
- <<_ACEOF >conftest.c
19335 #include <linux/fs.h>
19337 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19339 static const struct inode_operations
19340 iops __attribute__ ((unused)) = {
19341 .check_acl = check_acl_fn,
19357 cat - <<_ACEOF >conftest.h
19362 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19363 echo "obj-m := conftest.o" >build
/Makefile
19365 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19366 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19368 (eval $ac_try) 2>&5
19370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19371 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19373 (eval $ac_try) 2>&5
19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19376 test $ac_status = 0; }; }; then :
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19379 $as_echo "yes" >&6; }
19381 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19385 $as_echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.
$ac_ext >&5
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389 $as_echo "no" >&6; }
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19400 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19403 cat confdefs.h
- <<_ACEOF >conftest.c
19406 #include <linux/fs.h>
19408 int check_acl_fn(struct inode *inode, int mask,
19409 unsigned int flags) { return 0; }
19411 static const struct inode_operations
19412 iops __attribute__ ((unused)) = {
19413 .check_acl = check_acl_fn,
19429 cat - <<_ACEOF >conftest.h
19434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19435 echo "obj-m := conftest.o" >build
/Makefile
19437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19440 (eval $ac_try) 2>&5
19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19445 (eval $ac_try) 2>&5
19447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19448 test $ac_status = 0; }; }; then :
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19451 $as_echo "yes" >&6; }
19453 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19456 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19460 $as_echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.
$ac_ext >&5
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464 $as_echo "no" >&6; }
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19475 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19478 cat confdefs.h
- <<_ACEOF >conftest.c
19481 #include <linux/fs.h>
19483 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19486 static const struct inode_operations
19487 iops __attribute__ ((unused)) = {
19488 .get_acl = get_acl_fn,
19504 cat - <<_ACEOF >conftest.h
19509 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19510 echo "obj-m := conftest.o" >build
/Makefile
19512 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19513 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19515 (eval $ac_try) 2>&5
19517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19518 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19520 (eval $ac_try) 2>&5
19522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19523 test $ac_status = 0; }; }; then :
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526 $as_echo "yes" >&6; }
19528 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19532 $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.
$ac_ext >&5
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19547 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19550 cat confdefs.h
- <<_ACEOF >conftest.c
19553 #include <linux/fs.h>
19555 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19558 static const struct inode_operations
19559 iops __attribute__ ((unused)) = {
19560 .set_acl = set_acl_fn,
19576 cat - <<_ACEOF >conftest.h
19581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19582 echo "obj-m := conftest.o" >build
/Makefile
19584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19587 (eval $ac_try) 2>&5
19589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19590 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19592 (eval $ac_try) 2>&5
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; }; then :
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19598 $as_echo "yes" >&6; }
19600 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19604 $as_echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.
$ac_ext >&5
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608 $as_echo "no" >&6; }
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19620 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19623 cat confdefs.h
- <<_ACEOF >conftest.c
19626 #include <linux/fs.h>
19629 const struct path *p, struct kstat *k,
19630 u32 request_mask, unsigned int query_flags)
19633 static const struct inode_operations
19634 iops __attribute__ ((unused)) = {
19635 .getattr = test_getattr,
19651 cat - <<_ACEOF >conftest.h
19656 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19657 echo "obj-m := conftest.o" >build
/Makefile
19659 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19660 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19662 (eval $ac_try) 2>&5
19664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19665 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19667 (eval $ac_try) 2>&5
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }; }; then :
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19673 $as_echo "yes" >&6; }
19675 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19679 $as_echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.
$ac_ext >&5
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683 $as_echo "no" >&6; }
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19694 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19697 cat confdefs.h
- <<_ACEOF >conftest.c
19700 #include <linux/fs.h>
19703 struct vfsmount *mnt, struct dentry *d,
19707 static const struct inode_operations
19708 iops __attribute__ ((unused)) = {
19709 .getattr = test_getattr,
19725 cat - <<_ACEOF >conftest.h
19730 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19731 echo "obj-m := conftest.o" >build
/Makefile
19733 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19734 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19736 (eval $ac_try) 2>&5
19738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19739 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19741 (eval $ac_try) 2>&5
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; }; then :
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19747 $as_echo "yes" >&6; }
19749 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.
$ac_ext >&5
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19769 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19772 cat confdefs.h
- <<_ACEOF >conftest.c
19775 #include <linux/fs.h>
19781 struct inode inode;
19782 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19792 cat - <<_ACEOF >conftest.h
19797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19798 echo "obj-m := conftest.o" >build
/Makefile
19800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19803 (eval $ac_try) 2>&5
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19808 (eval $ac_try) 2>&5
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; }; then :
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19816 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.
$ac_ext >&5
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19835 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19838 cat confdefs.h
- <<_ACEOF >conftest.c
19841 #include <linux/fs.h>
19847 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19857 cat - <<_ACEOF >conftest.h
19862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19863 echo "obj-m := conftest.o" >build
/Makefile
19865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19868 (eval $ac_try) 2>&5
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; }; then :
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879 $as_echo "yes" >&6; }
19881 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19885 $as_echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19900 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19904 cat confdefs.h
- <<_ACEOF >conftest.c
19907 #include <linux/fs.h>
19909 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19910 static struct super_operations sops __attribute__ ((unused)) = {
19911 .show_options = show_options,
19927 cat - <<_ACEOF >conftest.h
19932 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19933 echo "obj-m := conftest.o" >build
/Makefile
19935 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19936 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19938 (eval $ac_try) 2>&5
19940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19941 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19943 (eval $ac_try) 2>&5
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }; }; then :
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19949 $as_echo "yes" >&6; }
19951 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19955 $as_echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.
$ac_ext >&5
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959 $as_echo "no" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19970 $as_echo_n "checking whether file_inode() is available... " >&6; }
19973 cat confdefs.h
- <<_ACEOF >conftest.c
19976 #include <linux/fs.h>
19982 struct file *f = NULL;
19993 cat - <<_ACEOF >conftest.h
19998 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19999 echo "obj-m := conftest.o" >build
/Makefile
20001 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20002 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20004 (eval $ac_try) 2>&5
20006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20007 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20009 (eval $ac_try) 2>&5
20011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20012 test $ac_status = 0; }; }; then :
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20015 $as_echo "yes" >&6; }
20017 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.
$ac_ext >&5
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20025 $as_echo "no" >&6; }
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20036 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20039 cat confdefs.h
- <<_ACEOF >conftest.c
20042 #include <linux/fs.h>
20048 struct file *f = NULL;
20059 cat - <<_ACEOF >conftest.h
20064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20065 echo "obj-m := conftest.o" >build
/Makefile
20067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20070 (eval $ac_try) 2>&5
20072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20075 (eval $ac_try) 2>&5
20077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20078 test $ac_status = 0; }; }; then :
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081 $as_echo "yes" >&6; }
20083 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20087 $as_echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091 $as_echo "no" >&6; }
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20102 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20106 cat confdefs.h
- <<_ACEOF >conftest.c
20109 #include <linux/fs.h>
20111 int test_fsync(struct file *f, struct dentry *dentry, int x)
20114 static const struct file_operations
20115 fops __attribute__ ((unused)) = {
20116 .fsync = test_fsync,
20132 cat - <<_ACEOF >conftest.h
20137 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20138 echo "obj-m := conftest.o" >build
/Makefile
20140 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20141 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20143 (eval $ac_try) 2>&5
20145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20146 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20148 (eval $ac_try) 2>&5
20150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; }; }; then :
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20154 $as_echo "dentry" >&6; }
20156 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20160 $as_echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.
$ac_ext >&5
20174 cat confdefs.h
- <<_ACEOF >conftest.c
20177 #include <linux/fs.h>
20179 int test_fsync(struct file *f, int x) { return 0; }
20181 static const struct file_operations
20182 fops __attribute__ ((unused)) = {
20183 .fsync = test_fsync,
20199 cat - <<_ACEOF >conftest.h
20204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20205 echo "obj-m := conftest.o" >build
/Makefile
20207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20208 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20210 (eval $ac_try) 2>&5
20212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20213 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20215 (eval $ac_try) 2>&5
20217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20218 test $ac_status = 0; }; }; then :
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20221 $as_echo "no dentry" >&6; }
20223 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20227 $as_echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.
$ac_ext >&5
20241 cat confdefs.h
- <<_ACEOF >conftest.c
20244 #include <linux/fs.h>
20246 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20249 static const struct file_operations
20250 fops __attribute__ ((unused)) = {
20251 .fsync = test_fsync,
20267 cat - <<_ACEOF >conftest.h
20272 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20273 echo "obj-m := conftest.o" >build
/Makefile
20275 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20276 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20278 (eval $ac_try) 2>&5
20280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20281 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20283 (eval $ac_try) 2>&5
20285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20286 test $ac_status = 0; }; }; then :
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20289 $as_echo "range" >&6; }
20291 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.
$ac_ext >&5
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20309 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20312 cat confdefs.h
- <<_ACEOF >conftest.c
20315 #include <linux/fs.h>
20316 void evict_inode (struct inode * t) { return; }
20317 static struct super_operations sops __attribute__ ((unused)) = {
20318 .evict_inode = evict_inode,
20334 cat - <<_ACEOF >conftest.h
20339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20340 echo "obj-m := conftest.o" >build
/Makefile
20342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20345 (eval $ac_try) 2>&5
20347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20350 (eval $ac_try) 2>&5
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }; }; then :
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356 $as_echo "yes" >&6; }
20358 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20362 $as_echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.
$ac_ext >&5
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20377 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20380 cat confdefs.h
- <<_ACEOF >conftest.c
20383 #include <linux/fs.h>
20385 void dirty_inode(struct inode *a, int b) { return; }
20387 static const struct super_operations
20388 sops __attribute__ ((unused)) = {
20389 .dirty_inode = dirty_inode,
20405 cat - <<_ACEOF >conftest.h
20410 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20411 echo "obj-m := conftest.o" >build
/Makefile
20413 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20414 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20416 (eval $ac_try) 2>&5
20418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20419 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20421 (eval $ac_try) 2>&5
20423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20424 test $ac_status = 0; }; }; then :
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20427 $as_echo "yes" >&6; }
20429 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20433 $as_echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.
$ac_ext >&5
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437 $as_echo "no" >&6; }
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20448 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20451 cat confdefs.h
- <<_ACEOF >conftest.c
20454 #include <linux/fs.h>
20456 int nr_cached_objects(struct super_block *sb) { return 0; }
20458 static const struct super_operations
20459 sops __attribute__ ((unused)) = {
20460 .nr_cached_objects = nr_cached_objects,
20476 cat - <<_ACEOF >conftest.h
20481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20482 echo "obj-m := conftest.o" >build
/Makefile
20484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20487 (eval $ac_try) 2>&5
20489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20490 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20492 (eval $ac_try) 2>&5
20494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20495 test $ac_status = 0; }; }; then :
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20500 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20504 $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.
$ac_ext >&5
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508 $as_echo "no" >&6; }
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20519 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20522 cat confdefs.h
- <<_ACEOF >conftest.c
20525 #include <linux/fs.h>
20527 void free_cached_objects(struct super_block *sb, int x)
20530 static const struct super_operations
20531 sops __attribute__ ((unused)) = {
20532 .free_cached_objects = free_cached_objects,
20548 cat - <<_ACEOF >conftest.h
20553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20554 echo "obj-m := conftest.o" >build
/Makefile
20556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20557 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20559 (eval $ac_try) 2>&5
20561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20564 (eval $ac_try) 2>&5
20566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567 test $ac_status = 0; }; }; then :
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20570 $as_echo "yes" >&6; }
20572 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.
$ac_ext >&5
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 $as_echo "no" >&6; }
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20592 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20595 cat confdefs.h
- <<_ACEOF >conftest.c
20598 #include <linux/fs.h>
20600 long test_fallocate(struct file *file, int mode,
20601 loff_t offset, loff_t len) { return 0; }
20603 static const struct file_operations
20604 fops __attribute__ ((unused)) = {
20605 .fallocate = test_fallocate,
20621 cat - <<_ACEOF >conftest.h
20626 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20627 echo "obj-m := conftest.o" >build
/Makefile
20629 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20630 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20632 (eval $ac_try) 2>&5
20634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20635 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20637 (eval $ac_try) 2>&5
20639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20640 test $ac_status = 0; }; }; then :
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20643 $as_echo "yes" >&6; }
20645 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20649 $as_echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.
$ac_ext >&5
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20664 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20667 cat confdefs.h
- <<_ACEOF >conftest.c
20670 #include <linux/fs.h>
20672 long test_fallocate(struct inode *inode, int mode,
20673 loff_t offset, loff_t len) { return 0; }
20675 static const struct inode_operations
20676 fops __attribute__ ((unused)) = {
20677 .fallocate = test_fallocate,
20693 cat - <<_ACEOF >conftest.h
20698 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20699 echo "obj-m := conftest.o" >build
/Makefile
20701 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20702 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20704 (eval $ac_try) 2>&5
20706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20707 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20709 (eval $ac_try) 2>&5
20711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20712 test $ac_status = 0; }; }; then :
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20715 $as_echo "yes" >&6; }
20717 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20721 $as_echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.
$ac_ext >&5
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20737 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20740 cat confdefs.h
- <<_ACEOF >conftest.c
20743 #include <linux/fs.h>
20745 static const struct file_operations
20746 fops __attribute__ ((unused)) = {
20763 cat - <<_ACEOF >conftest.h
20768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20769 echo "obj-m := conftest.o" >build
/Makefile
20771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20774 (eval $ac_try) 2>&5
20776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20779 (eval $ac_try) 2>&5
20781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20782 test $ac_status = 0; }; }; then :
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20785 $as_echo "yes" >&6; }
20787 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20791 $as_echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.
$ac_ext >&5
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795 $as_echo "no" >&6; }
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20806 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20809 cat confdefs.h
- <<_ACEOF >conftest.c
20812 #include <linux/fs.h>
20814 int mkdir(struct inode *inode, struct dentry *dentry,
20815 umode_t umode) { return 0; }
20817 static const struct inode_operations
20818 iops __attribute__ ((unused)) = {
20835 cat - <<_ACEOF >conftest.h
20840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20841 echo "obj-m := conftest.o" >build
/Makefile
20843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20846 (eval $ac_try) 2>&5
20848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20851 (eval $ac_try) 2>&5
20853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20854 test $ac_status = 0; }; }; then :
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20857 $as_echo "yes" >&6; }
20859 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20863 $as_echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.
$ac_ext >&5
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20867 $as_echo "no" >&6; }
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20878 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20881 cat confdefs.h
- <<_ACEOF >conftest.c
20884 #include <linux/fs.h>
20886 struct dentry *inode_lookup(struct inode *inode,
20887 struct dentry *dentry, struct nameidata *nidata)
20890 static const struct inode_operations iops
20891 __attribute__ ((unused)) = {
20892 .lookup = inode_lookup,
20908 cat - <<_ACEOF >conftest.h
20913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20914 echo "obj-m := conftest.o" >build
/Makefile
20916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20919 (eval $ac_try) 2>&5
20921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20924 (eval $ac_try) 2>&5
20926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20927 test $ac_status = 0; }; }; then :
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20930 $as_echo "yes" >&6; }
20932 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20936 $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.
$ac_ext >&5
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940 $as_echo "no" >&6; }
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20951 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20954 cat confdefs.h
- <<_ACEOF >conftest.c
20957 #include <linux/fs.h>
20959 #ifdef HAVE_MKDIR_UMODE_T
20960 int inode_create(struct inode *inode ,struct dentry *dentry,
20961 umode_t umode, struct nameidata *nidata) { return 0; }
20963 int inode_create(struct inode *inode,struct dentry *dentry,
20964 int umode, struct nameidata * nidata) { return 0; }
20967 static const struct inode_operations
20968 iops __attribute__ ((unused)) = {
20969 .create = inode_create,
20985 cat - <<_ACEOF >conftest.h
20990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20991 echo "obj-m := conftest.o" >build
/Makefile
20993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20996 (eval $ac_try) 2>&5
20998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21001 (eval $ac_try) 2>&5
21003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21004 test $ac_status = 0; }; }; then :
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21007 $as_echo "yes" >&6; }
21009 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.
$ac_ext >&5
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 $as_echo "no" >&6; }
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21028 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21031 cat confdefs.h
- <<_ACEOF >conftest.c
21034 #include <linux/fs.h>
21035 const char *get_link(struct dentry *de, struct inode *ip,
21036 struct delayed_call *done) { return "symlink"; }
21037 static struct inode_operations
21038 iops __attribute__ ((unused)) = {
21039 .get_link = get_link,
21055 cat - <<_ACEOF >conftest.h
21060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21061 echo "obj-m := conftest.o" >build
/Makefile
21063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21066 (eval $ac_try) 2>&5
21068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21071 (eval $ac_try) 2>&5
21073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21074 test $ac_status = 0; }; }; then :
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 $as_echo "yes" >&6; }
21079 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21083 $as_echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21087 $as_echo "no" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21089 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21092 cat confdefs.h
- <<_ACEOF >conftest.c
21095 #include <linux/fs.h>
21096 const char *get_link(struct dentry *de, struct
21097 inode *ip, void **cookie) { return "symlink"; }
21098 static struct inode_operations
21099 iops __attribute__ ((unused)) = {
21100 .get_link = get_link,
21116 cat - <<_ACEOF >conftest.h
21121 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21122 echo "obj-m := conftest.o" >build
/Makefile
21124 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21125 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127 (eval $ac_try) 2>&5
21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21132 (eval $ac_try) 2>&5
21134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21135 test $ac_status = 0; }; }; then :
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21138 $as_echo "yes" >&6; }
21140 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21144 $as_echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.
$ac_ext >&5
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148 $as_echo "no" >&6; }
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21151 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21154 cat confdefs.h
- <<_ACEOF >conftest.c
21157 #include <linux/fs.h>
21158 const char *follow_link(struct dentry *de,
21159 void **cookie) { return "symlink"; }
21160 static struct inode_operations
21161 iops __attribute__ ((unused)) = {
21162 .follow_link = follow_link,
21178 cat - <<_ACEOF >conftest.h
21183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21184 echo "obj-m := conftest.o" >build
/Makefile
21186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21189 (eval $ac_try) 2>&5
21191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21194 (eval $ac_try) 2>&5
21196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21197 test $ac_status = 0; }; }; then :
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21200 $as_echo "yes" >&6; }
21202 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21206 $as_echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.
$ac_ext >&5
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210 $as_echo "no" >&6; }
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21212 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21215 cat confdefs.h
- <<_ACEOF >conftest.c
21218 #include <linux/fs.h>
21219 void *follow_link(struct dentry *de, struct
21220 nameidata *nd) { return (void *)NULL; }
21221 static struct inode_operations
21222 iops __attribute__ ((unused)) = {
21223 .follow_link = follow_link,
21239 cat - <<_ACEOF >conftest.h
21244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21245 echo "obj-m := conftest.o" >build
/Makefile
21247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21250 (eval $ac_try) 2>&5
21252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }; then :
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21261 $as_echo "yes" >&6; }
21263 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21267 $as_echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.
$ac_ext >&5
21270 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21304 cat confdefs.h
- <<_ACEOF >conftest.c
21307 #if !defined(HAVE_GET_LINK_DELAYED)
21308 #error "Expecting get_link() delayed done"
21324 cat - <<_ACEOF >conftest.h
21329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21330 echo "obj-m := conftest.o" >build
/Makefile
21332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21335 (eval $ac_try) 2>&5
21337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21340 (eval $ac_try) 2>&5
21342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21343 test $ac_status = 0; }; }; then :
21346 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21350 $as_echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.
$ac_ext >&5
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21354 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21357 cat confdefs.h
- <<_ACEOF >conftest.c
21360 #include <linux/fs.h>
21361 void put_link(struct inode *ip, void *cookie)
21363 static struct inode_operations
21364 iops __attribute__ ((unused)) = {
21365 .put_link = put_link,
21381 cat - <<_ACEOF >conftest.h
21386 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21387 echo "obj-m := conftest.o" >build
/Makefile
21389 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21390 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21392 (eval $ac_try) 2>&5
21394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21395 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21397 (eval $ac_try) 2>&5
21399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21400 test $ac_status = 0; }; }; then :
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403 $as_echo "yes" >&6; }
21405 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21409 $as_echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.
$ac_ext >&5
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21413 $as_echo "no" >&6; }
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21415 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21418 cat confdefs.h
- <<_ACEOF >conftest.c
21421 #include <linux/fs.h>
21422 void put_link(struct dentry *de, struct
21423 nameidata *nd, void *ptr) { return; }
21424 static struct inode_operations
21425 iops __attribute__ ((unused)) = {
21426 .put_link = put_link,
21442 cat - <<_ACEOF >conftest.h
21447 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21448 echo "obj-m := conftest.o" >build
/Makefile
21450 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21451 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21453 (eval $ac_try) 2>&5
21455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21456 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21458 (eval $ac_try) 2>&5
21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461 test $ac_status = 0; }; }; then :
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464 $as_echo "yes" >&6; }
21466 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21470 $as_echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.
$ac_ext >&5
21473 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21498 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21501 cat confdefs.h
- <<_ACEOF >conftest.c
21504 #include <linux/fs.h>
21505 int tmpfile(struct inode *inode, struct dentry *dentry,
21506 umode_t mode) { return 0; }
21507 static struct inode_operations
21508 iops __attribute__ ((unused)) = {
21509 .tmpfile = tmpfile,
21525 cat - <<_ACEOF >conftest.h
21530 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21531 echo "obj-m := conftest.o" >build
/Makefile
21533 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21534 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21536 (eval $ac_try) 2>&5
21538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21539 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21541 (eval $ac_try) 2>&5
21543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21544 test $ac_status = 0; }; }; then :
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21547 $as_echo "yes" >&6; }
21549 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21553 $as_echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.
$ac_ext >&5
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21568 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21571 cat confdefs.h
- <<_ACEOF >conftest.c
21574 #include <linux/fs.h>
21575 void truncate_range(struct inode *inode, loff_t start,
21576 loff_t end) { return; }
21577 static struct inode_operations iops __attribute__ ((unused)) = {
21578 .truncate_range = truncate_range,
21594 cat - <<_ACEOF >conftest.h
21599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21600 echo "obj-m := conftest.o" >build
/Makefile
21602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21603 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21605 (eval $ac_try) 2>&5
21607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21608 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21610 (eval $ac_try) 2>&5
21612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21613 test $ac_status = 0; }; }; then :
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21616 $as_echo "yes" >&6; }
21618 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21622 $as_echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.
$ac_ext >&5
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21626 $as_echo "no" >&6; }
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21637 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21640 cat confdefs.h
- <<_ACEOF >conftest.c
21643 #include <linux/dcache.h>
21644 struct vfsmount *d_automount(struct path *p) { return NULL; }
21645 struct dentry_operations dops __attribute__ ((unused)) = {
21646 .d_automount = d_automount,
21662 cat - <<_ACEOF >conftest.h
21667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21668 echo "obj-m := conftest.o" >build
/Makefile
21670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21673 (eval $ac_try) 2>&5
21675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21676 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21678 (eval $ac_try) 2>&5
21680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21681 test $ac_status = 0; }; }; then :
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21684 $as_echo "yes" >&6; }
21686 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21690 $as_echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.
$ac_ext >&5
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21705 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21708 cat confdefs.h
- <<_ACEOF >conftest.c
21711 #include <linux/exportfs.h>
21712 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21713 struct inode *parent) { return 0; }
21714 static struct export_operations eops __attribute__ ((unused))={
21715 .encode_fh = encode_fh,
21731 cat - <<_ACEOF >conftest.h
21736 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21737 echo "obj-m := conftest.o" >build
/Makefile
21739 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21740 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21742 (eval $ac_try) 2>&5
21744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21745 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21747 (eval $ac_try) 2>&5
21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21750 test $ac_status = 0; }; }; then :
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21753 $as_echo "yes" >&6; }
21755 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.
$ac_ext >&5
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21774 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21777 cat confdefs.h
- <<_ACEOF >conftest.c
21780 #include <linux/exportfs.h>
21781 int commit_metadata(struct inode *inode) { return 0; }
21782 static struct export_operations eops __attribute__ ((unused))={
21783 .commit_metadata = commit_metadata,
21799 cat - <<_ACEOF >conftest.h
21804 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21805 echo "obj-m := conftest.o" >build
/Makefile
21807 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21808 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21810 (eval $ac_try) 2>&5
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21815 (eval $ac_try) 2>&5
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; }; then :
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21821 $as_echo "yes" >&6; }
21823 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21827 $as_echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.
$ac_ext >&5
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21841 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21845 cat confdefs.h
- <<_ACEOF >conftest.c
21848 #include <linux/fs.h>
21864 cat - <<_ACEOF >conftest.h
21869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21870 echo "obj-m := conftest.o" >build
/Makefile
21872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21873 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21880 (eval $ac_try) 2>&5
21882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21883 test $ac_status = 0; }; }; then :
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.
$ac_ext >&5
21895 if test $rc -ne 0; then :
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21901 if test "x$enable_linux_builtin" != xyes
; then
21903 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21904 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21906 if test $rc -ne 0; then
21908 for file in fs
/inode.c
; do
21909 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21910 "$LINUX/$file" 2>/dev
/null
21912 if test $rc -eq 0; then
21917 if test $export -eq 0; then :
21927 if test $rc -ne 0; then :
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21935 $as_echo "yes" >&6; }
21937 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21945 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21949 cat confdefs.h
- <<_ACEOF >conftest.c
21952 #include <linux/fs.h>
21958 struct dentry *dentry = NULL;
21959 struct iattr *attr = NULL;
21962 error = setattr_prepare(dentry, attr);
21972 cat - <<_ACEOF >conftest.h
21977 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21978 echo "obj-m := conftest.o" >build
/Makefile
21980 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21981 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }; then :
21994 $as_echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.
$ac_ext >&5
22003 if test $rc -ne 0; then :
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22006 $as_echo "no" >&6; }
22009 if test "x$enable_linux_builtin" != xyes
; then
22011 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22014 if test $rc -ne 0; then
22016 for file in fs
/attr.c
; do
22017 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22018 "$LINUX/$file" 2>/dev
/null
22020 if test $rc -eq 0; then
22025 if test $export -eq 0; then :
22035 if test $rc -ne 0; then :
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 $as_echo "no" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22043 $as_echo "yes" >&6; }
22045 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22053 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22057 cat confdefs.h
- <<_ACEOF >conftest.c
22060 #include <linux/fs.h>
22066 insert_inode_locked(NULL);
22076 cat - <<_ACEOF >conftest.h
22081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22082 echo "obj-m := conftest.o" >build
/Makefile
22084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22085 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }; then :
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.
$ac_ext >&5
22107 if test $rc -ne 0; then :
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22113 if test "x$enable_linux_builtin" != xyes
; then
22115 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22116 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22118 if test $rc -ne 0; then
22120 for file in fs
/inode.c
; do
22121 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22122 "$LINUX/$file" 2>/dev
/null
22124 if test $rc -eq 0; then
22129 if test $export -eq 0; then :
22139 if test $rc -ne 0; then :
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22147 $as_echo "yes" >&6; }
22149 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22157 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22161 cat confdefs.h
- <<_ACEOF >conftest.c
22164 #include <linux/dcache.h>
22180 cat - <<_ACEOF >conftest.h
22185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22186 echo "obj-m := conftest.o" >build
/Makefile
22188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22191 (eval $ac_try) 2>&5
22193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }; then :
22202 $as_echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.
$ac_ext >&5
22211 if test $rc -ne 0; then :
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22214 $as_echo "no" >&6; }
22217 if test "x$enable_linux_builtin" != xyes
; then
22219 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22220 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22222 if test $rc -ne 0; then
22224 for file in fs
/dcache.c
; do
22225 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22226 "$LINUX/$file" 2>/dev
/null
22228 if test $rc -eq 0; then
22233 if test $export -eq 0; then :
22243 if test $rc -ne 0; then :
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246 $as_echo "no" >&6; }
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22251 $as_echo "yes" >&6; }
22253 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22261 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22265 cat confdefs.h
- <<_ACEOF >conftest.c
22268 #include <linux/dcache.h>
22274 d_obtain_alias(NULL);
22284 cat - <<_ACEOF >conftest.h
22289 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22290 echo "obj-m := conftest.o" >build
/Makefile
22292 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22293 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22295 (eval $ac_try) 2>&5
22297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22298 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22300 (eval $ac_try) 2>&5
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; }; then :
22306 $as_echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.
$ac_ext >&5
22315 if test $rc -ne 0; then :
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22321 if test "x$enable_linux_builtin" != xyes
; then
22323 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22326 if test $rc -ne 0; then
22328 for file in fs
/dcache.c
; do
22329 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22330 "$LINUX/$file" 2>/dev
/null
22332 if test $rc -eq 0; then
22337 if test $export -eq 0; then :
22347 if test $rc -ne 0; then :
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22355 $as_echo "yes" >&6; }
22357 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22365 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22369 cat confdefs.h
- <<_ACEOF >conftest.c
22372 #include <linux/dcache.h>
22378 struct inode *ip = NULL;
22379 d_prune_aliases(ip);
22389 cat - <<_ACEOF >conftest.h
22394 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22395 echo "obj-m := conftest.o" >build
/Makefile
22397 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22398 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }; then :
22411 $as_echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.
$ac_ext >&5
22420 if test $rc -ne 0; then :
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423 $as_echo "no" >&6; }
22426 if test "x$enable_linux_builtin" != xyes
; then
22428 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22429 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22431 if test $rc -ne 0; then
22433 for file in fs
/dcache.c
; do
22434 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22435 "$LINUX/$file" 2>/dev
/null
22437 if test $rc -eq 0; then
22442 if test $export -eq 0; then :
22452 if test $rc -ne 0; then :
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455 $as_echo "no" >&6; }
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22460 $as_echo "yes" >&6; }
22462 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22470 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22474 cat confdefs.h
- <<_ACEOF >conftest.c
22477 #include <linux/dcache.h>
22483 d_set_d_op(NULL, NULL);
22493 cat - <<_ACEOF >conftest.h
22498 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22499 echo "obj-m := conftest.o" >build
/Makefile
22501 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22502 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }; then :
22515 $as_echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.
$ac_ext >&5
22524 if test $rc -ne 0; then :
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22530 if test "x$enable_linux_builtin" != xyes
; then
22532 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22535 if test $rc -ne 0; then
22537 for file in fs
/dcache.c
; do
22538 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22539 "$LINUX/$file" 2>/dev
/null
22541 if test $rc -eq 0; then
22546 if test $export -eq 0; then :
22556 if test $rc -ne 0; then :
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22564 $as_echo "yes" >&6; }
22566 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22575 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22578 cat confdefs.h
- <<_ACEOF >conftest.c
22581 #include <linux/dcache.h>
22583 int revalidate (struct dentry *dentry,
22584 struct nameidata *nidata) { return 0; }
22586 static const struct dentry_operations
22587 dops __attribute__ ((unused)) = {
22588 .d_revalidate = revalidate,
22604 cat - <<_ACEOF >conftest.h
22609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22610 echo "obj-m := conftest.o" >build
/Makefile
22612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }; then :
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626 $as_echo "yes" >&6; }
22628 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22632 $as_echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.
$ac_ext >&5
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22636 $as_echo "no" >&6; }
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22647 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22650 cat confdefs.h
- <<_ACEOF >conftest.c
22653 #include <linux/dcache.h>
22655 const struct dentry_operations test_d_op = {
22656 .d_revalidate = NULL,
22663 struct dentry d __attribute__ ((unused));
22665 d.d_op = &test_d_op;
22675 cat - <<_ACEOF >conftest.h
22680 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22681 echo "obj-m := conftest.o" >build
/Makefile
22683 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22684 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686 (eval $ac_try) 2>&5
22688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22691 (eval $ac_try) 2>&5
22693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694 test $ac_status = 0; }; }; then :
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22697 $as_echo "yes" >&6; }
22699 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22703 $as_echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.
$ac_ext >&5
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 $as_echo "no" >&6; }
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22717 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22721 cat confdefs.h
- <<_ACEOF >conftest.c
22724 #include <linux/mm.h>
22730 truncate_setsize(NULL, 0);
22740 cat - <<_ACEOF >conftest.h
22745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22746 echo "obj-m := conftest.o" >build
/Makefile
22748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22749 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }; then :
22762 $as_echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.
$ac_ext >&5
22771 if test $rc -ne 0; then :
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774 $as_echo "no" >&6; }
22777 if test "x$enable_linux_builtin" != xyes
; then
22779 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22782 if test $rc -ne 0; then
22784 for file in mm
/truncate.c
; do
22785 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22786 "$LINUX/$file" 2>/dev
/null
22788 if test $rc -eq 0; then
22793 if test $export -eq 0; then :
22803 if test $rc -ne 0; then :
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22806 $as_echo "no" >&6; }
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22811 $as_echo "yes" >&6; }
22813 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22822 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22825 cat confdefs.h
- <<_ACEOF >conftest.c
22828 #include <linux/security.h>
22834 struct inode *ip __attribute__ ((unused)) = NULL;
22835 struct inode *dip __attribute__ ((unused)) = NULL;
22836 const struct qstr *str __attribute__ ((unused)) = NULL;
22837 char *name __attribute__ ((unused)) = NULL;
22838 void *value __attribute__ ((unused)) = NULL;
22839 size_t len __attribute__ ((unused)) = 0;
22841 security_inode_init_security(ip, dip, str, &name, &value, &len);
22851 cat - <<_ACEOF >conftest.h
22856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22857 echo "obj-m := conftest.o" >build
/Makefile
22859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22862 (eval $ac_try) 2>&5
22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22865 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }; then :
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22873 $as_echo "yes" >&6; }
22875 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22879 $as_echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.
$ac_ext >&5
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883 $as_echo "no" >&6; }
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22894 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22897 cat confdefs.h
- <<_ACEOF >conftest.c
22900 #include <linux/security.h>
22906 struct inode *ip __attribute__ ((unused)) = NULL;
22907 struct inode *dip __attribute__ ((unused)) = NULL;
22908 const struct qstr *str __attribute__ ((unused)) = NULL;
22909 initxattrs func __attribute__ ((unused)) = NULL;
22911 security_inode_init_security(ip, dip, str, func, NULL);
22921 cat - <<_ACEOF >conftest.h
22926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22927 echo "obj-m := conftest.o" >build
/Makefile
22929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932 (eval $ac_try) 2>&5
22934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937 (eval $ac_try) 2>&5
22939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940 test $ac_status = 0; }; }; then :
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943 $as_echo "yes" >&6; }
22945 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22949 $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.
$ac_ext >&5
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22963 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22967 cat confdefs.h
- <<_ACEOF >conftest.c
22970 #include <linux/fs.h>
22976 mount_nodev(NULL, 0, NULL, NULL);
22986 cat - <<_ACEOF >conftest.h
22991 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22992 echo "obj-m := conftest.o" >build
/Makefile
22994 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22995 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22997 (eval $ac_try) 2>&5
22999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23000 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }; then :
23008 $as_echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.
$ac_ext >&5
23017 if test $rc -ne 0; then :
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020 $as_echo "no" >&6; }
23023 if test "x$enable_linux_builtin" != xyes
; then
23025 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23028 if test $rc -ne 0; then
23030 for file in fs
/super.c
; do
23031 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23032 "$LINUX/$file" 2>/dev
/null
23034 if test $rc -eq 0; then
23039 if test $export -eq 0; then :
23049 if test $rc -ne 0; then :
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052 $as_echo "no" >&6; }
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23057 $as_echo "yes" >&6; }
23059 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23068 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23071 cat confdefs.h
- <<_ACEOF >conftest.c
23074 #include <linux/fs.h>
23076 int shrink(struct shrinker *s, struct shrink_control *sc)
23079 static const struct super_block
23080 sb __attribute__ ((unused)) = {
23081 .s_shrink.shrink = shrink,
23082 .s_shrink.seeks = DEFAULT_SEEKS,
23083 .s_shrink.batch = 0,
23099 cat - <<_ACEOF >conftest.h
23104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23105 echo "obj-m := conftest.o" >build
/Makefile
23107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }; then :
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23121 $as_echo "yes" >&6; }
23123 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23128 $as_echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.
$ac_ext >&5
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132 $as_echo "no" >&6; }
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23143 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23146 cat confdefs.h
- <<_ACEOF >conftest.c
23149 #include <linux/fs.h>
23155 struct shrink_control sc __attribute__ ((unused));
23156 unsigned long scnidsize __attribute__ ((unused)) =
23167 cat - <<_ACEOF >conftest.h
23172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23173 echo "obj-m := conftest.o" >build
/Makefile
23175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23178 (eval $ac_try) 2>&5
23180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23181 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }; then :
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189 $as_echo "yes" >&6; }
23191 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23195 $as_echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.
$ac_ext >&5
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199 $as_echo "no" >&6; }
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23210 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23213 cat confdefs.h
- <<_ACEOF >conftest.c
23216 #include <linux/fs.h>
23222 struct super_block sb __attribute__ ((unused));
23224 INIT_LIST_HEAD(&sb.s_instances);
23234 cat - <<_ACEOF >conftest.h
23239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23240 echo "obj-m := conftest.o" >build
/Makefile
23242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23250 (eval $ac_try) 2>&5
23252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23253 test $ac_status = 0; }; }; then :
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23256 $as_echo "yes" >&6; }
23258 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23262 $as_echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.
$ac_ext >&5
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23266 $as_echo "no" >&6; }
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23276 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23279 cat confdefs.h
- <<_ACEOF >conftest.c
23282 #include <linux/fs.h>
23288 struct super_block sb __attribute__ ((unused));
23299 cat - <<_ACEOF >conftest.h
23304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23305 echo "obj-m := conftest.o" >build
/Makefile
23307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }; then :
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23321 $as_echo "yes" >&6; }
23323 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23327 $as_echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.
$ac_ext >&5
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 $as_echo "no" >&6; }
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23342 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23346 cat confdefs.h
- <<_ACEOF >conftest.c
23349 #include <linux/fs.h>
23350 struct super_block sb;
23356 char *name = "bdi";
23357 atomic_long_t zfs_bdi_seq;
23358 int error __attribute__((unused)) =
23359 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
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 $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }; then :
23391 $as_echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.
$ac_ext >&5
23400 if test $rc -ne 0; then :
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23405 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23409 cat confdefs.h
- <<_ACEOF >conftest.c
23412 #include <linux/backing-dev.h>
23413 struct backing_dev_info bdi;
23419 char *name = "bdi";
23420 int error __attribute__((unused)) =
23421 bdi_setup_and_register(&bdi, name);
23431 cat - <<_ACEOF >conftest.h
23436 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23437 echo "obj-m := conftest.o" >build
/Makefile
23439 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23440 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23442 (eval $ac_try) 2>&5
23444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23445 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }; then :
23453 $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.
$ac_ext >&5
23462 if test $rc -ne 0; then :
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465 $as_echo "no" >&6; }
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23467 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23471 cat confdefs.h
- <<_ACEOF >conftest.c
23474 #include <linux/backing-dev.h>
23475 struct backing_dev_info bdi;
23481 char *name = "bdi";
23482 unsigned int cap = BDI_CAP_MAP_COPY;
23483 int error __attribute__((unused)) =
23484 bdi_setup_and_register(&bdi, name, cap);
23494 cat - <<_ACEOF >conftest.h
23499 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23500 echo "obj-m := conftest.o" >build
/Makefile
23502 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23503 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23505 (eval $ac_try) 2>&5
23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23508 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23510 (eval $ac_try) 2>&5
23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23513 test $ac_status = 0; }; }; then :
23516 $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.
$ac_ext >&5
23525 if test $rc -ne 0; then :
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23528 $as_echo "no" >&6; }
23531 if test "x$enable_linux_builtin" != xyes
; then
23533 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23536 if test $rc -ne 0; then
23538 for file in mm
/backing-dev.c
; do
23539 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23540 "$LINUX/$file" 2>/dev
/null
23542 if test $rc -eq 0; then
23547 if test $export -eq 0; then :
23557 if test $rc -ne 0; then :
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23560 $as_echo "no" >&6; }
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23565 $as_echo "yes" >&6; }
23567 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23575 if test "x$enable_linux_builtin" != xyes
; then
23577 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23578 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23580 if test $rc -ne 0; then
23582 for file in mm
/backing-dev.c
; do
23583 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23584 "$LINUX/$file" 2>/dev
/null
23586 if test $rc -eq 0; then
23591 if test $export -eq 0; then :
23601 if test $rc -ne 0; then :
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23606 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23610 cat confdefs.h
- <<_ACEOF >conftest.c
23613 #include <linux/backing-dev.h>
23614 struct backing_dev_info bdi;
23620 char *name = "bdi";
23621 unsigned int cap = BDI_CAP_MAP_COPY;
23622 int error __attribute__((unused)) =
23623 bdi_setup_and_register(&bdi, name, cap);
23633 cat - <<_ACEOF >conftest.h
23638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23639 echo "obj-m := conftest.o" >build
/Makefile
23641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644 (eval $ac_try) 2>&5
23646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23649 (eval $ac_try) 2>&5
23651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }; }; then :
23655 $as_echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.
$ac_ext >&5
23664 if test $rc -ne 0; then :
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23667 $as_echo "no" >&6; }
23670 if test "x$enable_linux_builtin" != xyes
; then
23672 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23673 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23675 if test $rc -ne 0; then
23677 for file in mm
/backing-dev.c
; do
23678 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23679 "$LINUX/$file" 2>/dev
/null
23681 if test $rc -eq 0; then
23686 if test $export -eq 0; then :
23696 if test $rc -ne 0; then :
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23699 $as_echo "no" >&6; }
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23704 $as_echo "yes" >&6; }
23706 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716 $as_echo "yes" >&6; }
23718 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23726 if test "x$enable_linux_builtin" != xyes
; then
23728 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23731 if test $rc -ne 0; then
23733 for file in fs
/super.c
; do
23734 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23735 "$LINUX/$file" 2>/dev
/null
23737 if test $rc -eq 0; then
23742 if test $export -eq 0; then :
23752 if test $rc -ne 0; then :
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755 $as_echo "no" >&6; }
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23757 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23761 cat confdefs.h
- <<_ACEOF >conftest.c
23764 #include <linux/backing-dev.h>
23765 struct backing_dev_info bdi;
23771 char *name = "bdi";
23772 int error __attribute__((unused)) =
23773 bdi_setup_and_register(&bdi, name);
23783 cat - <<_ACEOF >conftest.h
23788 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23789 echo "obj-m := conftest.o" >build
/Makefile
23791 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23792 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799 (eval $ac_try) 2>&5
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; }; }; then :
23805 $as_echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.
$ac_ext >&5
23814 if test $rc -ne 0; then :
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23819 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23823 cat confdefs.h
- <<_ACEOF >conftest.c
23826 #include <linux/backing-dev.h>
23827 struct backing_dev_info bdi;
23833 char *name = "bdi";
23834 unsigned int cap = BDI_CAP_MAP_COPY;
23835 int error __attribute__((unused)) =
23836 bdi_setup_and_register(&bdi, name, cap);
23846 cat - <<_ACEOF >conftest.h
23851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23852 echo "obj-m := conftest.o" >build
/Makefile
23854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857 (eval $ac_try) 2>&5
23859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862 (eval $ac_try) 2>&5
23864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865 test $ac_status = 0; }; }; then :
23868 $as_echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.
$ac_ext >&5
23877 if test $rc -ne 0; then :
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23883 if test "x$enable_linux_builtin" != xyes
; then
23885 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23886 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23888 if test $rc -ne 0; then
23890 for file in mm
/backing-dev.c
; do
23891 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23892 "$LINUX/$file" 2>/dev
/null
23894 if test $rc -eq 0; then
23899 if test $export -eq 0; then :
23909 if test $rc -ne 0; then :
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23917 $as_echo "yes" >&6; }
23919 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23927 if test "x$enable_linux_builtin" != xyes
; then
23929 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23932 if test $rc -ne 0; then
23934 for file in mm
/backing-dev.c
; do
23935 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23936 "$LINUX/$file" 2>/dev
/null
23938 if test $rc -eq 0; then
23943 if test $export -eq 0; then :
23953 if test $rc -ne 0; then :
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23958 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23962 cat confdefs.h
- <<_ACEOF >conftest.c
23965 #include <linux/backing-dev.h>
23966 struct backing_dev_info bdi;
23972 char *name = "bdi";
23973 unsigned int cap = BDI_CAP_MAP_COPY;
23974 int error __attribute__((unused)) =
23975 bdi_setup_and_register(&bdi, name, cap);
23985 cat - <<_ACEOF >conftest.h
23990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23991 echo "obj-m := conftest.o" >build
/Makefile
23993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }; then :
24007 $as_echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.
$ac_ext >&5
24016 if test $rc -ne 0; then :
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24022 if test "x$enable_linux_builtin" != xyes
; then
24024 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24025 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24027 if test $rc -ne 0; then
24029 for file in mm
/backing-dev.c
; do
24030 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24031 "$LINUX/$file" 2>/dev
/null
24033 if test $rc -eq 0; then
24038 if test $export -eq 0; then :
24048 if test $rc -ne 0; then :
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24056 $as_echo "yes" >&6; }
24058 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24068 $as_echo "yes" >&6; }
24070 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080 $as_echo "yes" >&6; }
24082 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24091 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24094 cat confdefs.h
- <<_ACEOF >conftest.c
24097 #include <linux/fs.h>
24104 unsigned int link = 0;
24105 (void) set_nlink(&node, link);
24115 cat - <<_ACEOF >conftest.h
24120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24121 echo "obj-m := conftest.o" >build
/Makefile
24123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24124 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }; then :
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24137 $as_echo "yes" >&6; }
24139 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24143 $as_echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.
$ac_ext >&5
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24147 $as_echo "no" >&6; }
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24158 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24159 tmp_flags
="$EXTRA_KCFLAGS"
24160 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24163 cat confdefs.h
- <<_ACEOF >conftest.c
24166 #include <linux/blkdev.h>
24167 #include <linux/elevator.h>
24174 struct request_queue *q = NULL;
24175 char *elevator = NULL;
24176 ret = elevator_change(q, elevator);
24186 cat - <<_ACEOF >conftest.h
24191 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24192 echo "obj-m := conftest.o" >build
/Makefile
24194 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24195 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }; then :
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24208 $as_echo "yes" >&6; }
24210 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.
$ac_ext >&5
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24226 EXTRA_KCFLAGS
="$tmp_flags"
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24229 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24232 cat confdefs.h
- <<_ACEOF >conftest.c
24235 #include <linux/fs.h>
24241 struct file_system_type *type = NULL;
24242 int (*test)(struct super_block *,void *) = NULL;
24243 int (*set)(struct super_block *,void *) = NULL;
24246 (void) sget(type, test, set, flags, data);
24256 cat - <<_ACEOF >conftest.h
24261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24262 echo "obj-m := conftest.o" >build
/Makefile
24264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }; then :
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278 $as_echo "yes" >&6; }
24280 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24284 $as_echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.
$ac_ext >&5
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24288 $as_echo "no" >&6; }
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24298 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24302 cat confdefs.h
- <<_ACEOF >conftest.c
24305 #include <linux/fs.h>
24311 struct file *fp __attribute__ ((unused)) = NULL;
24312 struct inode *ip __attribute__ ((unused)) = NULL;
24313 loff_t offset __attribute__ ((unused)) = 0;
24314 loff_t maxsize __attribute__ ((unused)) = 0;
24316 lseek_execute(fp, ip, offset, maxsize);
24326 cat - <<_ACEOF >conftest.h
24331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24332 echo "obj-m := conftest.o" >build
/Makefile
24334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24342 (eval $ac_try) 2>&5
24344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24345 test $ac_status = 0; }; }; then :
24348 $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.
$ac_ext >&5
24357 if test $rc -ne 0; then :
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360 $as_echo "no" >&6; }
24363 if test "x$enable_linux_builtin" != xyes
; then
24365 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24366 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24368 if test $rc -ne 0; then
24370 for file in fs
/read_write.c
; do
24371 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24372 "$LINUX/$file" 2>/dev
/null
24374 if test $rc -eq 0; then
24379 if test $export -eq 0; then :
24389 if test $rc -ne 0; then :
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392 $as_echo "no" >&6; }
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24397 $as_echo "yes" >&6; }
24399 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24408 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24411 cat confdefs.h
- <<_ACEOF >conftest.c
24414 #include <linux/fs.h>
24415 int iterate(struct file *filp, struct dir_context * context)
24418 static const struct file_operations fops
24419 __attribute__ ((unused)) = {
24420 .iterate_shared = iterate,
24436 cat - <<_ACEOF >conftest.h
24441 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24442 echo "obj-m := conftest.o" >build
/Makefile
24444 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24445 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }; then :
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24458 $as_echo "yes" >&6; }
24460 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24464 $as_echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.
$ac_ext >&5
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24468 $as_echo "no" >&6; }
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24471 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24474 cat confdefs.h
- <<_ACEOF >conftest.c
24477 #include <linux/fs.h>
24478 int iterate(struct file *filp, struct dir_context * context)
24481 static const struct file_operations fops
24482 __attribute__ ((unused)) = {
24483 .iterate = iterate,
24499 cat - <<_ACEOF >conftest.h
24504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24505 echo "obj-m := conftest.o" >build
/Makefile
24507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }; then :
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24521 $as_echo "yes" >&6; }
24523 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.
$ac_ext >&5
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531 $as_echo "no" >&6; }
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24534 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24537 cat confdefs.h
- <<_ACEOF >conftest.c
24540 #include <linux/fs.h>
24541 int readdir(struct file *filp, void *entry, filldir_t func)
24544 static const struct file_operations fops
24545 __attribute__ ((unused)) = {
24546 .readdir = readdir,
24562 cat - <<_ACEOF >conftest.h
24567 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24568 echo "obj-m := conftest.o" >build
/Makefile
24570 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24571 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }; then :
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24584 $as_echo "yes" >&6; }
24586 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24590 $as_echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.
$ac_ext >&5
24593 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24617 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24620 cat confdefs.h
- <<_ACEOF >conftest.c
24623 #include <linux/fs.h>
24625 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24627 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24630 static const struct file_operations
24631 fops __attribute__ ((unused)) = {
24632 .read_iter = test_read,
24633 .write_iter = test_write,
24649 cat - <<_ACEOF >conftest.h
24654 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24655 echo "obj-m := conftest.o" >build
/Makefile
24657 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24658 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }; then :
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24671 $as_echo "yes" >&6; }
24673 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24677 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24680 cat confdefs.h
- <<_ACEOF >conftest.c
24683 #include <linux/fs.h>
24689 new_sync_read(NULL, NULL, 0, NULL);
24699 cat - <<_ACEOF >conftest.h
24704 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24705 echo "obj-m := conftest.o" >build
/Makefile
24707 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24708 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710 (eval $ac_try) 2>&5
24712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }; then :
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24721 $as_echo "yes" >&6; }
24723 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24727 $as_echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.
$ac_ext >&5
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24731 $as_echo "no" >&6; }
24742 $as_echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.
$ac_ext >&5
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24746 $as_echo "no" >&6; }
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24756 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24759 cat confdefs.h
- <<_ACEOF >conftest.c
24762 #include <linux/fs.h>
24769 struct kiocb *iocb = NULL;
24770 struct iov_iter *iov = NULL;
24771 generic_write_checks(iocb, iov);
24781 cat - <<_ACEOF >conftest.h
24786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24787 echo "obj-m := conftest.o" >build
/Makefile
24789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }; then :
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803 $as_echo "yes" >&6; }
24805 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24809 $as_echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.
$ac_ext >&5
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24813 $as_echo "no" >&6; }
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24824 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24827 cat confdefs.h
- <<_ACEOF >conftest.c
24830 #include <linux/pagemap.h>
24837 kmap_atomic(&page);
24847 cat - <<_ACEOF >conftest.h
24852 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24853 echo "obj-m := conftest.o" >build
/Makefile
24855 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24856 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }; then :
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24869 $as_echo "yes" >&6; }
24871 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24875 $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.
$ac_ext >&5
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24879 $as_echo "no" >&6; }
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24890 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24893 cat confdefs.h
- <<_ACEOF >conftest.c
24896 #include <linux/namei.h>
24902 struct path *p = NULL;
24903 follow_down_one(p);
24913 cat - <<_ACEOF >conftest.h
24918 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24919 echo "obj-m := conftest.o" >build
/Makefile
24921 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24922 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24924 (eval $ac_try) 2>&5
24926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24927 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; }; then :
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24935 $as_echo "yes" >&6; }
24937 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24941 $as_echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.
$ac_ext >&5
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24945 $as_echo "no" >&6; }
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24956 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24959 cat confdefs.h
- <<_ACEOF >conftest.c
24962 #include <linux/blkdev.h>
24964 int make_request(struct request_queue *q, struct bio *bio)
24973 blk_queue_make_request(NULL, &make_request);
24983 cat - <<_ACEOF >conftest.h
24988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24989 echo "obj-m := conftest.o" >build
/Makefile
24991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }; then :
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25005 $as_echo "yes" >&6; }
25007 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
25010 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.
$ac_ext >&5
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018 $as_echo "no" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
25020 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
25023 cat confdefs.h
- <<_ACEOF >conftest.c
25026 #include <linux/blkdev.h>
25028 void make_request(struct request_queue *q, struct bio *bio)
25037 blk_queue_make_request(NULL, &make_request);
25047 cat - <<_ACEOF >conftest.h
25052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25053 echo "obj-m := conftest.o" >build
/Makefile
25055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25056 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }; then :
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25069 $as_echo "yes" >&6; }
25071 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25075 $as_echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.
$ac_ext >&5
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25079 $as_echo "no" >&6; }
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25081 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25084 cat confdefs.h
- <<_ACEOF >conftest.c
25087 #include <linux/blkdev.h>
25089 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25091 return (BLK_QC_T_NONE);
25098 blk_queue_make_request(NULL, &make_request);
25108 cat - <<_ACEOF >conftest.h
25113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25114 echo "obj-m := conftest.o" >build
/Makefile
25116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }; then :
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130 $as_echo "yes" >&6; }
25132 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25135 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.
$ac_ext >&5
25142 as_fn_error $?
"no - Please file a bug report at
25143 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25168 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25172 cat confdefs.h
- <<_ACEOF >conftest.c
25175 #include <linux/bio.h>
25177 void (*generic_start_io_acct_f)(int, unsigned long,
25178 struct hd_struct *) = &generic_start_io_acct;
25179 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25180 unsigned long) = &generic_end_io_acct;
25186 generic_start_io_acct(0, 0, NULL);
25187 generic_end_io_acct(0, NULL, 0);
25197 cat - <<_ACEOF >conftest.h
25202 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25203 echo "obj-m := conftest.o" >build
/Makefile
25205 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25206 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }; then :
25219 $as_echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.
$ac_ext >&5
25228 if test $rc -ne 0; then :
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25231 $as_echo "no" >&6; }
25234 if test "x$enable_linux_builtin" != xyes
; then
25236 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25237 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25239 if test $rc -ne 0; then
25241 for file in block
/bio.c
; do
25242 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25243 "$LINUX/$file" 2>/dev
/null
25245 if test $rc -eq 0; then
25250 if test $export -eq 0; then :
25260 if test $rc -ne 0; then :
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25263 $as_echo "no" >&6; }
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25268 $as_echo "yes" >&6; }
25270 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25279 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25283 cat confdefs.h
- <<_ACEOF >conftest.c
25286 #include <linux/bio.h>
25288 void (*generic_start_io_acct_f)(struct request_queue *, int,
25289 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25290 void (*generic_end_io_acct_f)(struct request_queue *, int,
25291 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25297 generic_start_io_acct(NULL, 0, 0, NULL);
25298 generic_end_io_acct(NULL, 0, NULL, 0);
25308 cat - <<_ACEOF >conftest.h
25313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25314 echo "obj-m := conftest.o" >build
/Makefile
25316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }; then :
25330 $as_echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.
$ac_ext >&5
25339 if test $rc -ne 0; then :
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 $as_echo "no" >&6; }
25345 if test "x$enable_linux_builtin" != xyes
; then
25347 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25348 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25350 if test $rc -ne 0; then
25352 for file in block
/bio.c
; do
25353 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25354 "$LINUX/$file" 2>/dev
/null
25356 if test $rc -eq 0; then
25361 if test $export -eq 0; then :
25371 if test $rc -ne 0; then :
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25374 $as_echo "no" >&6; }
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25379 $as_echo "yes" >&6; }
25381 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25390 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25393 cat confdefs.h
- <<_ACEOF >conftest.c
25396 #include <linux/kernel.h>
25397 #include <asm/fpu/api.h>
25403 __kernel_fpu_begin();
25413 cat - <<_ACEOF >conftest.h
25418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25419 echo "obj-m := conftest.o" >build
/Makefile
25421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25422 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25424 (eval $ac_try) 2>&5
25426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }; then :
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25435 $as_echo "yes" >&6; }
25437 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25441 $as_echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.
$ac_ext >&5
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25445 $as_echo "no" >&6; }
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25456 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25459 cat confdefs.h
- <<_ACEOF >conftest.c
25462 #include <linux/fs.h>
25468 struct inode *ip = NULL;
25469 (void) i_uid_read(ip);
25479 cat - <<_ACEOF >conftest.h
25484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25485 echo "obj-m := conftest.o" >build
/Makefile
25487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }; then :
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25501 $as_echo "yes" >&6; }
25503 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25507 $as_echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.
$ac_ext >&5
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25511 $as_echo "no" >&6; }
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25522 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25525 cat confdefs.h
- <<_ACEOF >conftest.c
25528 #include <linux/module.h>
25529 #include <linux/moduleparam.h>
25531 int param_get(char *b, const struct kernel_param *kp)
25536 int param_set(const char *b, const struct kernel_param *kp)
25541 module_param_call(p, param_set, param_get, NULL, 0644);
25556 cat - <<_ACEOF >conftest.h
25561 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25562 echo "obj-m := conftest.o" >build
/Makefile
25564 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25565 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }; then :
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25578 $as_echo "yes" >&6; }
25580 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25584 $as_echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.
$ac_ext >&5
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25588 $as_echo "no" >&6; }
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25599 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25602 cat confdefs.h
- <<_ACEOF >conftest.c
25605 #include <linux/fs.h>
25606 int rename_fn(struct inode *sip, struct dentry *sdp,
25607 struct inode *tip, struct dentry *tdp,
25608 unsigned int flags) { return 0; }
25610 static const struct inode_operations
25611 iops __attribute__ ((unused)) = {
25612 .rename = rename_fn,
25628 cat - <<_ACEOF >conftest.h
25633 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25634 echo "obj-m := conftest.o" >build
/Makefile
25636 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25637 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }; then :
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25650 $as_echo "yes" >&6; }
25652 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25656 $as_echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.
$ac_ext >&5
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25660 $as_echo "no" >&6; }
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25671 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25674 cat confdefs.h
- <<_ACEOF >conftest.c
25677 #include <linux/fs.h>
25678 #include <linux/xattr.h>
25680 static const struct inode_operations
25681 iops __attribute__ ((unused)) = {
25682 .setxattr = generic_setxattr
25698 cat - <<_ACEOF >conftest.h
25703 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25704 echo "obj-m := conftest.o" >build
/Makefile
25706 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25707 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }; then :
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25720 $as_echo "yes" >&6; }
25722 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25726 $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.
$ac_ext >&5
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25730 $as_echo "no" >&6; }
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25740 $as_echo_n "checking whether current_time() exists... " >&6; }
25744 cat confdefs.h
- <<_ACEOF >conftest.c
25747 #include <linux/fs.h>
25754 struct timespec now __attribute__ ((unused));
25756 now = current_time(&ip);
25766 cat - <<_ACEOF >conftest.h
25771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25772 echo "obj-m := conftest.o" >build
/Makefile
25774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }; then :
25788 $as_echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.
$ac_ext >&5
25797 if test $rc -ne 0; then :
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25800 $as_echo "no" >&6; }
25803 if test "x$enable_linux_builtin" != xyes
; then
25805 grep -q -E '[[:space:]]current_time[[:space:]]' \
25806 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25808 if test $rc -ne 0; then
25810 for file in fs
/inode.c
; do
25811 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25812 "$LINUX/$file" 2>/dev
/null
25814 if test $rc -eq 0; then
25819 if test $export -eq 0; then :
25829 if test $rc -ne 0; then :
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832 $as_echo "no" >&6; }
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25837 $as_echo "yes" >&6; }
25839 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25848 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25851 cat confdefs.h
- <<_ACEOF >conftest.c
25854 #include <linux/mm.h>
25855 #include <linux/vmstat.h>
25861 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25862 long x __attribute__ ((unused)) =
25863 atomic_long_read(&vm_node_stat[0]);
25864 (void) global_node_page_state(0);
25874 cat - <<_ACEOF >conftest.h
25879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25880 echo "obj-m := conftest.o" >build
/Makefile
25882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }; then :
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25896 $as_echo "yes" >&6; }
25898 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25902 $as_echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.
$ac_ext >&5
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25906 $as_echo "no" >&6; }
25916 if test "$LINUX_OBJ" != "$LINUX"; then :
25918 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25924 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
25925 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
25926 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25927 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25928 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25929 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
25936 $as_echo_n "checking for dkms.conf file... " >&6; }
25937 if test -e dkms.conf
; then :
25940 *** ZFS should not be manually built in the DKMS source tree.
25941 *** Remove all ZFS packages before compiling the ZoL sources.
25942 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25947 $as_echo "not found" >&6; }
25953 # Check whether --with-mounthelperdir was given.
25954 if test "${with_mounthelperdir+set}" = set; then :
25955 withval
=$with_mounthelperdir; mounthelperdir
=$withval
25957 mounthelperdir
=/sbin
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
25965 $as_echo_n "checking for udev directories... " >&6; }
25967 # Check whether --with-udevdir was given.
25968 if test "${with_udevdir+set}" = set; then :
25969 withval
=$with_udevdir; udevdir
=$withval
25975 if test "x$udevdir" = xcheck
; then :
25978 path2
=/usr
/lib
/udev
25981 if test -d "$path1"; then :
25985 if test -d "$path2"; then :
25996 # Check whether --with-udevruledir was given.
25997 if test "${with_udevruledir+set}" = set; then :
25998 withval
=$with_udevruledir; udevruledir
=$withval
26000 udevruledir
="${udevdir}/rules.d"
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26007 $as_echo "$udevdir;$udevruledir" >&6; }
26010 # Check whether --enable-systemd was given.
26011 if test "${enable_systemd+set}" = set; then :
26012 enableval
=$enable_systemd;
26019 # Check whether --with-systemdunitdir was given.
26020 if test "${with_systemdunitdir+set}" = set; then :
26021 withval
=$with_systemdunitdir; systemdunitdir
=$withval
26023 systemdunitdir
=/usr
/lib
/systemd
/system
26028 # Check whether --with-systemdpresetdir was given.
26029 if test "${with_systemdpresetdir+set}" = set; then :
26030 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
26032 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
26037 # Check whether --with-systemdmodulesloaddir was given.
26038 if test "${with_systemdmodulesloaddir+set}" = set; then :
26039 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
26041 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
26046 if test "x$enable_systemd" = xyes
; then :
26048 ZFS_INIT_SYSTEMD
=systemd
26049 ZFS_MODULE_LOAD
=modules-load.d
26050 modulesloaddir
=$systemdmodulesloaddir
26061 # Check whether --enable-sysvinit was given.
26062 if test "${enable_sysvinit+set}" = set; then :
26063 enableval
=$enable_sysvinit;
26065 enable_sysvinit
=yes
26069 if test "x$enable_sysvinit" = xyes
; then :
26070 ZFS_INIT_SYSV
=init.d
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26077 $as_echo_n "checking for dracut directory... " >&6; }
26079 # Check whether --with-dracutdir was given.
26080 if test "${with_dracutdir+set}" = set; then :
26081 withval
=$with_dracutdir; dracutdir
=$withval
26087 if test "x$dracutdir" = xcheck
; then :
26089 path1
=/usr
/share
/dracut
26090 path2
=/usr
/lib
/dracut
26093 if test -d "$path1"; then :
26097 if test -d "$path2"; then :
26100 dracutdir
="$default"
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26109 $as_echo "$dracutdir" >&6; }
26114 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26115 if test "x$ac_cv_header_zlib_h" = xyes
; then :
26118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26121 *** zlib.h missing, zlib-devel package required
26122 See \`config.log' for more details" "$LINENO" 5; }
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26128 $as_echo_n "checking for library containing compress2... " >&6; }
26129 if ${ac_cv_search_compress2+:} false
; then :
26130 $as_echo_n "(cached) " >&6
26132 ac_func_search_save_LIBS
=$LIBS
26133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26134 /* end confdefs.h. */
26136 /* Override any GCC internal prototype to avoid an error.
26137 Use char because int might match the return type of a GCC
26138 builtin and then its argument prototype would still apply. */
26146 return compress2 ();
26151 for ac_lib
in '' z
; do
26152 if test -z "$ac_lib"; then
26153 ac_res
="none required"
26156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26158 if ac_fn_c_try_link
"$LINENO"; then :
26159 ac_cv_search_compress2
=$ac_res
26161 rm -f core conftest.err conftest.
$ac_objext \
26163 if ${ac_cv_search_compress2+:} false
; then :
26167 if ${ac_cv_search_compress2+:} false
; then :
26170 ac_cv_search_compress2
=no
26172 rm conftest.
$ac_ext
26173 LIBS
=$ac_func_search_save_LIBS
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26176 $as_echo "$ac_cv_search_compress2" >&6; }
26177 ac_res
=$ac_cv_search_compress2
26178 if test "$ac_res" != no
; then :
26179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26185 *** compress2() missing, zlib-devel package required
26186 See \`config.log' for more details" "$LINENO" 5; }
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26191 $as_echo_n "checking for library containing uncompress... " >&6; }
26192 if ${ac_cv_search_uncompress+:} false
; then :
26193 $as_echo_n "(cached) " >&6
26195 ac_func_search_save_LIBS
=$LIBS
26196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h. */
26199 /* Override any GCC internal prototype to avoid an error.
26200 Use char because int might match the return type of a GCC
26201 builtin and then its argument prototype would still apply. */
26205 char uncompress ();
26209 return uncompress ();
26214 for ac_lib
in '' z
; do
26215 if test -z "$ac_lib"; then
26216 ac_res
="none required"
26219 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26221 if ac_fn_c_try_link
"$LINENO"; then :
26222 ac_cv_search_uncompress
=$ac_res
26224 rm -f core conftest.err conftest.
$ac_objext \
26226 if ${ac_cv_search_uncompress+:} false
; then :
26230 if ${ac_cv_search_uncompress+:} false
; then :
26233 ac_cv_search_uncompress
=no
26235 rm conftest.
$ac_ext
26236 LIBS
=$ac_func_search_save_LIBS
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26239 $as_echo "$ac_cv_search_uncompress" >&6; }
26240 ac_res
=$ac_cv_search_uncompress
26241 if test "$ac_res" != no
; then :
26242 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26248 *** uncompress() missing, zlib-devel package required
26249 See \`config.log' for more details" "$LINENO" 5; }
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26254 $as_echo_n "checking for library containing crc32... " >&6; }
26255 if ${ac_cv_search_crc32+:} false
; then :
26256 $as_echo_n "(cached) " >&6
26258 ac_func_search_save_LIBS
=$LIBS
26259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h. */
26262 /* Override any GCC internal prototype to avoid an error.
26263 Use char because int might match the return type of a GCC
26264 builtin and then its argument prototype would still apply. */
26277 for ac_lib
in '' z
; do
26278 if test -z "$ac_lib"; then
26279 ac_res
="none required"
26282 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26284 if ac_fn_c_try_link
"$LINENO"; then :
26285 ac_cv_search_crc32
=$ac_res
26287 rm -f core conftest.err conftest.
$ac_objext \
26289 if ${ac_cv_search_crc32+:} false
; then :
26293 if ${ac_cv_search_crc32+:} false
; then :
26296 ac_cv_search_crc32
=no
26298 rm conftest.
$ac_ext
26299 LIBS
=$ac_func_search_save_LIBS
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26302 $as_echo "$ac_cv_search_crc32" >&6; }
26303 ac_res
=$ac_cv_search_crc32
26304 if test "$ac_res" != no
; then :
26305 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26311 *** crc32() missing, zlib-devel package required
26312 See \`config.log' for more details" "$LINENO" 5; }
26319 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26325 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26326 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
26329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26332 *** uuid/uuid.h missing, libuuid-devel package required
26333 See \`config.log' for more details" "$LINENO" 5; }
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26339 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26340 if ${ac_cv_search_uuid_generate+:} false
; then :
26341 $as_echo_n "(cached) " >&6
26343 ac_func_search_save_LIBS
=$LIBS
26344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26345 /* end confdefs.h. */
26347 /* Override any GCC internal prototype to avoid an error.
26348 Use char because int might match the return type of a GCC
26349 builtin and then its argument prototype would still apply. */
26353 char uuid_generate ();
26357 return uuid_generate ();
26362 for ac_lib
in '' uuid
; do
26363 if test -z "$ac_lib"; then
26364 ac_res
="none required"
26367 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26369 if ac_fn_c_try_link
"$LINENO"; then :
26370 ac_cv_search_uuid_generate
=$ac_res
26372 rm -f core conftest.err conftest.
$ac_objext \
26374 if ${ac_cv_search_uuid_generate+:} false
; then :
26378 if ${ac_cv_search_uuid_generate+:} false
; then :
26381 ac_cv_search_uuid_generate
=no
26383 rm conftest.
$ac_ext
26384 LIBS
=$ac_func_search_save_LIBS
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26387 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26388 ac_res
=$ac_cv_search_uuid_generate
26389 if test "$ac_res" != no
; then :
26390 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26396 *** uuid_generate() missing, libuuid-devel package required
26397 See \`config.log' for more details" "$LINENO" 5; }
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26402 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26403 if ${ac_cv_search_uuid_is_null+:} false
; then :
26404 $as_echo_n "(cached) " >&6
26406 ac_func_search_save_LIBS
=$LIBS
26407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26408 /* end confdefs.h. */
26410 /* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26416 char uuid_is_null ();
26420 return uuid_is_null ();
26425 for ac_lib
in '' uuid
; do
26426 if test -z "$ac_lib"; then
26427 ac_res
="none required"
26430 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26432 if ac_fn_c_try_link
"$LINENO"; then :
26433 ac_cv_search_uuid_is_null
=$ac_res
26435 rm -f core conftest.err conftest.
$ac_objext \
26437 if ${ac_cv_search_uuid_is_null+:} false
; then :
26441 if ${ac_cv_search_uuid_is_null+:} false
; then :
26444 ac_cv_search_uuid_is_null
=no
26446 rm conftest.
$ac_ext
26447 LIBS
=$ac_func_search_save_LIBS
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26450 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26451 ac_res
=$ac_cv_search_uuid_is_null
26452 if test "$ac_res" != no
; then :
26453 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26459 *** uuid_is_null() missing, libuuid-devel package required
26460 See \`config.log' for more details" "$LINENO" 5; }
26467 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26472 # Check whether --with-tirpc was given.
26473 if test "${with_tirpc+set}" = set; then :
26474 withval
=$with_tirpc;
26483 if test "x$with_tirpc" != xno
; then :
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26485 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26486 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
26487 $as_echo_n "(cached) " >&6
26489 ac_check_lib_save_LIBS
=$LIBS
26490 LIBS
="-ltirpc $LIBS"
26491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h. */
26494 /* Override any GCC internal prototype to avoid an error.
26495 Use char because int might match the return type of a GCC
26496 builtin and then its argument prototype would still apply. */
26500 char xdrmem_create ();
26504 return xdrmem_create ();
26509 if ac_fn_c_try_link
"$LINENO"; then :
26510 ac_cv_lib_tirpc_xdrmem_create
=yes
26512 ac_cv_lib_tirpc_xdrmem_create
=no
26514 rm -f core conftest.err conftest.
$ac_objext \
26515 conftest
$ac_exeext conftest.
$ac_ext
26516 LIBS
=$ac_check_lib_save_LIBS
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26519 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26520 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
26523 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
26526 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26530 if test "x$with_tirpc" != xcheck
; then
26531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26533 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
26534 See \`config.log' for more details" "$LINENO" 5; }
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26537 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26538 if ${ac_cv_search_xdrmem_create+:} false
; then :
26539 $as_echo_n "(cached) " >&6
26541 ac_func_search_save_LIBS
=$LIBS
26542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26545 /* Override any GCC internal prototype to avoid an error.
26546 Use char because int might match the return type of a GCC
26547 builtin and then its argument prototype would still apply. */
26551 char xdrmem_create ();
26555 return xdrmem_create ();
26560 for ac_lib
in '' tirpc
; do
26561 if test -z "$ac_lib"; then
26562 ac_res
="none required"
26565 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26567 if ac_fn_c_try_link
"$LINENO"; then :
26568 ac_cv_search_xdrmem_create
=$ac_res
26570 rm -f core conftest.err conftest.
$ac_objext \
26572 if ${ac_cv_search_xdrmem_create+:} false
; then :
26576 if ${ac_cv_search_xdrmem_create+:} false
; then :
26579 ac_cv_search_xdrmem_create
=no
26581 rm conftest.
$ac_ext
26582 LIBS
=$ac_func_search_save_LIBS
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26585 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26586 ac_res
=$ac_cv_search_xdrmem_create
26587 if test "$ac_res" != no
; then :
26588 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26594 as_fn_error $?
"xdrmem_create() requires tirpc or libc
26595 See \`config.log' for more details" "$LINENO" 5; }
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26603 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26604 if ${ac_cv_search_xdrmem_create+:} false
; then :
26605 $as_echo_n "(cached) " >&6
26607 ac_func_search_save_LIBS
=$LIBS
26608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h. */
26611 /* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26617 char xdrmem_create ();
26621 return xdrmem_create ();
26626 for ac_lib
in '' tirpc
; do
26627 if test -z "$ac_lib"; then
26628 ac_res
="none required"
26631 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26633 if ac_fn_c_try_link
"$LINENO"; then :
26634 ac_cv_search_xdrmem_create
=$ac_res
26636 rm -f core conftest.err conftest.
$ac_objext \
26638 if ${ac_cv_search_xdrmem_create+:} false
; then :
26642 if ${ac_cv_search_xdrmem_create+:} false
; then :
26645 ac_cv_search_xdrmem_create
=no
26647 rm conftest.
$ac_ext
26648 LIBS
=$ac_func_search_save_LIBS
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26651 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26652 ac_res
=$ac_cv_search_xdrmem_create
26653 if test "$ac_res" != no
; then :
26654 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26660 as_fn_error $?
"xdrmem_create() requires libc
26661 See \`config.log' for more details" "$LINENO" 5; }
26670 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26671 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
26674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26677 *** blkid.h missing, libblkid-devel package required
26678 See \`config.log' for more details" "$LINENO" 5; }
26686 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26692 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26693 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
26696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26699 *** attr/xattr.h missing, libattr-devel package required
26700 See \`config.log' for more details" "$LINENO" 5; }
26708 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26714 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26715 if test "x$ac_cv_header_libudev_h" = xyes
; then :
26721 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26733 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26734 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26735 $as_echo_n "(cached) " >&6
26737 ac_func_search_save_LIBS
=$LIBS
26738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26739 /* end confdefs.h. */
26741 /* Override any GCC internal prototype to avoid an error.
26742 Use char because int might match the return type of a GCC
26743 builtin and then its argument prototype would still apply. */
26747 char udev_device_get_is_initialized ();
26751 return udev_device_get_is_initialized ();
26756 for ac_lib
in '' udev
; do
26757 if test -z "$ac_lib"; then
26758 ac_res
="none required"
26761 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26763 if ac_fn_c_try_link
"$LINENO"; then :
26764 ac_cv_search_udev_device_get_is_initialized
=$ac_res
26766 rm -f core conftest.err conftest.
$ac_objext \
26768 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26772 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26775 ac_cv_search_udev_device_get_is_initialized
=no
26777 rm conftest.
$ac_ext
26778 LIBS
=$ac_func_search_save_LIBS
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26781 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26782 ac_res
=$ac_cv_search_udev_device_get_is_initialized
26783 if test "$ac_res" != no
; then :
26784 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26787 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
26795 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26797 saved_flags
="$CFLAGS"
26798 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
26800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h. */
26811 if ac_fn_c_try_compile
"$LINENO"; then :
26813 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26815 $as_echo "yes" >&6; }
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26821 $as_echo "no" >&6; }
26824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26826 CFLAGS
="$saved_flags"
26830 if test "x$runstatedir" = x
; then
26831 runstatedir
='${localstatedir}/run'
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
26837 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
26838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26841 #include <sys/sysmacros.h>
26854 if ac_fn_c_try_compile
"$LINENO"; then :
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26857 $as_echo "yes" >&6; }
26859 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26865 $as_echo "no" >&6; }
26868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
26872 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
26873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26874 /* end confdefs.h. */
26876 #include <sys/mkdev.h>
26889 if ac_fn_c_try_compile
"$LINENO"; then :
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892 $as_echo "yes" >&6; }
26894 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26900 $as_echo "no" >&6; }
26903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
26907 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
26909 saved_flags
="$CFLAGS"
26910 CFLAGS
="$CFLAGS -Wno-format-truncation"
26912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26913 /* end confdefs.h. */
26923 if ac_fn_c_try_compile
"$LINENO"; then :
26925 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26927 $as_echo "yes" >&6; }
26931 NO_FORMAT_TRUNCATION
=
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26933 $as_echo "no" >&6; }
26936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26938 CFLAGS
="$saved_flags"
26943 ZONENAME
="echo global"
26949 for ac_func
in mlockall
26951 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
26952 if test "x$ac_cv_func_mlockall" = xyes
; then :
26953 cat >>confdefs.h
<<_ACEOF
26954 #define HAVE_MLOCKALL 1
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26964 $as_echo_n "checking for dkms.conf file... " >&6; }
26965 if test -e dkms.conf
; then :
26968 *** ZFS should not be manually built in the DKMS source tree.
26969 *** Remove all ZFS packages before compiling the ZoL sources.
26970 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26975 $as_echo "not found" >&6; }
26981 # Check whether --with-mounthelperdir was given.
26982 if test "${with_mounthelperdir+set}" = set; then :
26983 withval
=$with_mounthelperdir; mounthelperdir
=$withval
26985 mounthelperdir
=/sbin
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26993 $as_echo_n "checking for udev directories... " >&6; }
26995 # Check whether --with-udevdir was given.
26996 if test "${with_udevdir+set}" = set; then :
26997 withval
=$with_udevdir; udevdir
=$withval
27003 if test "x$udevdir" = xcheck
; then :
27006 path2
=/usr
/lib
/udev
27009 if test -d "$path1"; then :
27013 if test -d "$path2"; then :
27024 # Check whether --with-udevruledir was given.
27025 if test "${with_udevruledir+set}" = set; then :
27026 withval
=$with_udevruledir; udevruledir
=$withval
27028 udevruledir
="${udevdir}/rules.d"
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27035 $as_echo "$udevdir;$udevruledir" >&6; }
27038 # Check whether --enable-systemd was given.
27039 if test "${enable_systemd+set}" = set; then :
27040 enableval
=$enable_systemd;
27047 # Check whether --with-systemdunitdir was given.
27048 if test "${with_systemdunitdir+set}" = set; then :
27049 withval
=$with_systemdunitdir; systemdunitdir
=$withval
27051 systemdunitdir
=/usr
/lib
/systemd
/system
27056 # Check whether --with-systemdpresetdir was given.
27057 if test "${with_systemdpresetdir+set}" = set; then :
27058 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
27060 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
27065 # Check whether --with-systemdmodulesloaddir was given.
27066 if test "${with_systemdmodulesloaddir+set}" = set; then :
27067 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
27069 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
27074 if test "x$enable_systemd" = xyes
; then :
27076 ZFS_INIT_SYSTEMD
=systemd
27077 ZFS_MODULE_LOAD
=modules-load.d
27078 modulesloaddir
=$systemdmodulesloaddir
27089 # Check whether --enable-sysvinit was given.
27090 if test "${enable_sysvinit+set}" = set; then :
27091 enableval
=$enable_sysvinit;
27093 enable_sysvinit
=yes
27097 if test "x$enable_sysvinit" = xyes
; then :
27098 ZFS_INIT_SYSV
=init.d
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27105 $as_echo_n "checking for dracut directory... " >&6; }
27107 # Check whether --with-dracutdir was given.
27108 if test "${with_dracutdir+set}" = set; then :
27109 withval
=$with_dracutdir; dracutdir
=$withval
27115 if test "x$dracutdir" = xcheck
; then :
27117 path1
=/usr
/share
/dracut
27118 path2
=/usr
/lib
/dracut
27121 if test -d "$path1"; then :
27125 if test -d "$path2"; then :
27128 dracutdir
="$default"
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27137 $as_echo "$dracutdir" >&6; }
27142 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27143 if test "x$ac_cv_header_zlib_h" = xyes
; then :
27146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27149 *** zlib.h missing, zlib-devel package required
27150 See \`config.log' for more details" "$LINENO" 5; }
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27156 $as_echo_n "checking for library containing compress2... " >&6; }
27157 if ${ac_cv_search_compress2+:} false
; then :
27158 $as_echo_n "(cached) " >&6
27160 ac_func_search_save_LIBS
=$LIBS
27161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27162 /* end confdefs.h. */
27164 /* Override any GCC internal prototype to avoid an error.
27165 Use char because int might match the return type of a GCC
27166 builtin and then its argument prototype would still apply. */
27174 return compress2 ();
27179 for ac_lib
in '' z
; do
27180 if test -z "$ac_lib"; then
27181 ac_res
="none required"
27184 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27186 if ac_fn_c_try_link
"$LINENO"; then :
27187 ac_cv_search_compress2
=$ac_res
27189 rm -f core conftest.err conftest.
$ac_objext \
27191 if ${ac_cv_search_compress2+:} false
; then :
27195 if ${ac_cv_search_compress2+:} false
; then :
27198 ac_cv_search_compress2
=no
27200 rm conftest.
$ac_ext
27201 LIBS
=$ac_func_search_save_LIBS
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27204 $as_echo "$ac_cv_search_compress2" >&6; }
27205 ac_res
=$ac_cv_search_compress2
27206 if test "$ac_res" != no
; then :
27207 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27213 *** compress2() missing, zlib-devel package required
27214 See \`config.log' for more details" "$LINENO" 5; }
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27219 $as_echo_n "checking for library containing uncompress... " >&6; }
27220 if ${ac_cv_search_uncompress+:} false
; then :
27221 $as_echo_n "(cached) " >&6
27223 ac_func_search_save_LIBS
=$LIBS
27224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27225 /* end confdefs.h. */
27227 /* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27233 char uncompress ();
27237 return uncompress ();
27242 for ac_lib
in '' z
; do
27243 if test -z "$ac_lib"; then
27244 ac_res
="none required"
27247 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27249 if ac_fn_c_try_link
"$LINENO"; then :
27250 ac_cv_search_uncompress
=$ac_res
27252 rm -f core conftest.err conftest.
$ac_objext \
27254 if ${ac_cv_search_uncompress+:} false
; then :
27258 if ${ac_cv_search_uncompress+:} false
; then :
27261 ac_cv_search_uncompress
=no
27263 rm conftest.
$ac_ext
27264 LIBS
=$ac_func_search_save_LIBS
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27267 $as_echo "$ac_cv_search_uncompress" >&6; }
27268 ac_res
=$ac_cv_search_uncompress
27269 if test "$ac_res" != no
; then :
27270 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27276 *** uncompress() missing, zlib-devel package required
27277 See \`config.log' for more details" "$LINENO" 5; }
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27282 $as_echo_n "checking for library containing crc32... " >&6; }
27283 if ${ac_cv_search_crc32+:} false
; then :
27284 $as_echo_n "(cached) " >&6
27286 ac_func_search_save_LIBS
=$LIBS
27287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27288 /* end confdefs.h. */
27290 /* Override any GCC internal prototype to avoid an error.
27291 Use char because int might match the return type of a GCC
27292 builtin and then its argument prototype would still apply. */
27305 for ac_lib
in '' z
; do
27306 if test -z "$ac_lib"; then
27307 ac_res
="none required"
27310 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27312 if ac_fn_c_try_link
"$LINENO"; then :
27313 ac_cv_search_crc32
=$ac_res
27315 rm -f core conftest.err conftest.
$ac_objext \
27317 if ${ac_cv_search_crc32+:} false
; then :
27321 if ${ac_cv_search_crc32+:} false
; then :
27324 ac_cv_search_crc32
=no
27326 rm conftest.
$ac_ext
27327 LIBS
=$ac_func_search_save_LIBS
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27330 $as_echo "$ac_cv_search_crc32" >&6; }
27331 ac_res
=$ac_cv_search_crc32
27332 if test "$ac_res" != no
; then :
27333 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27339 *** crc32() missing, zlib-devel package required
27340 See \`config.log' for more details" "$LINENO" 5; }
27347 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27353 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27354 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
27357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27360 *** uuid/uuid.h missing, libuuid-devel package required
27361 See \`config.log' for more details" "$LINENO" 5; }
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27367 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27368 if ${ac_cv_search_uuid_generate+:} false
; then :
27369 $as_echo_n "(cached) " >&6
27371 ac_func_search_save_LIBS
=$LIBS
27372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27373 /* end confdefs.h. */
27375 /* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27381 char uuid_generate ();
27385 return uuid_generate ();
27390 for ac_lib
in '' uuid
; do
27391 if test -z "$ac_lib"; then
27392 ac_res
="none required"
27395 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27397 if ac_fn_c_try_link
"$LINENO"; then :
27398 ac_cv_search_uuid_generate
=$ac_res
27400 rm -f core conftest.err conftest.
$ac_objext \
27402 if ${ac_cv_search_uuid_generate+:} false
; then :
27406 if ${ac_cv_search_uuid_generate+:} false
; then :
27409 ac_cv_search_uuid_generate
=no
27411 rm conftest.
$ac_ext
27412 LIBS
=$ac_func_search_save_LIBS
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27415 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27416 ac_res
=$ac_cv_search_uuid_generate
27417 if test "$ac_res" != no
; then :
27418 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 *** uuid_generate() missing, libuuid-devel package required
27425 See \`config.log' for more details" "$LINENO" 5; }
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27430 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27431 if ${ac_cv_search_uuid_is_null+:} false
; then :
27432 $as_echo_n "(cached) " >&6
27434 ac_func_search_save_LIBS
=$LIBS
27435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27436 /* end confdefs.h. */
27438 /* Override any GCC internal prototype to avoid an error.
27439 Use char because int might match the return type of a GCC
27440 builtin and then its argument prototype would still apply. */
27444 char uuid_is_null ();
27448 return uuid_is_null ();
27453 for ac_lib
in '' uuid
; do
27454 if test -z "$ac_lib"; then
27455 ac_res
="none required"
27458 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27460 if ac_fn_c_try_link
"$LINENO"; then :
27461 ac_cv_search_uuid_is_null
=$ac_res
27463 rm -f core conftest.err conftest.
$ac_objext \
27465 if ${ac_cv_search_uuid_is_null+:} false
; then :
27469 if ${ac_cv_search_uuid_is_null+:} false
; then :
27472 ac_cv_search_uuid_is_null
=no
27474 rm conftest.
$ac_ext
27475 LIBS
=$ac_func_search_save_LIBS
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27478 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27479 ac_res
=$ac_cv_search_uuid_is_null
27480 if test "$ac_res" != no
; then :
27481 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27487 *** uuid_is_null() missing, libuuid-devel package required
27488 See \`config.log' for more details" "$LINENO" 5; }
27495 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27500 # Check whether --with-tirpc was given.
27501 if test "${with_tirpc+set}" = set; then :
27502 withval
=$with_tirpc;
27511 if test "x$with_tirpc" != xno
; then :
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27513 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27514 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
27515 $as_echo_n "(cached) " >&6
27517 ac_check_lib_save_LIBS
=$LIBS
27518 LIBS
="-ltirpc $LIBS"
27519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27520 /* end confdefs.h. */
27522 /* Override any GCC internal prototype to avoid an error.
27523 Use char because int might match the return type of a GCC
27524 builtin and then its argument prototype would still apply. */
27528 char xdrmem_create ();
27532 return xdrmem_create ();
27537 if ac_fn_c_try_link
"$LINENO"; then :
27538 ac_cv_lib_tirpc_xdrmem_create
=yes
27540 ac_cv_lib_tirpc_xdrmem_create
=no
27542 rm -f core conftest.err conftest.
$ac_objext \
27543 conftest
$ac_exeext conftest.
$ac_ext
27544 LIBS
=$ac_check_lib_save_LIBS
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27547 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27548 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
27551 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
27554 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27558 if test "x$with_tirpc" != xcheck
; then
27559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27561 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
27562 See \`config.log' for more details" "$LINENO" 5; }
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27565 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27566 if ${ac_cv_search_xdrmem_create+:} false
; then :
27567 $as_echo_n "(cached) " >&6
27569 ac_func_search_save_LIBS
=$LIBS
27570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27571 /* end confdefs.h. */
27573 /* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27579 char xdrmem_create ();
27583 return xdrmem_create ();
27588 for ac_lib
in '' tirpc
; do
27589 if test -z "$ac_lib"; then
27590 ac_res
="none required"
27593 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27595 if ac_fn_c_try_link
"$LINENO"; then :
27596 ac_cv_search_xdrmem_create
=$ac_res
27598 rm -f core conftest.err conftest.
$ac_objext \
27600 if ${ac_cv_search_xdrmem_create+:} false
; then :
27604 if ${ac_cv_search_xdrmem_create+:} false
; then :
27607 ac_cv_search_xdrmem_create
=no
27609 rm conftest.
$ac_ext
27610 LIBS
=$ac_func_search_save_LIBS
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27613 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27614 ac_res
=$ac_cv_search_xdrmem_create
27615 if test "$ac_res" != no
; then :
27616 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27622 as_fn_error $?
"xdrmem_create() requires tirpc or libc
27623 See \`config.log' for more details" "$LINENO" 5; }
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27631 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27632 if ${ac_cv_search_xdrmem_create+:} false
; then :
27633 $as_echo_n "(cached) " >&6
27635 ac_func_search_save_LIBS
=$LIBS
27636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27637 /* end confdefs.h. */
27639 /* Override any GCC internal prototype to avoid an error.
27640 Use char because int might match the return type of a GCC
27641 builtin and then its argument prototype would still apply. */
27645 char xdrmem_create ();
27649 return xdrmem_create ();
27654 for ac_lib
in '' tirpc
; do
27655 if test -z "$ac_lib"; then
27656 ac_res
="none required"
27659 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27661 if ac_fn_c_try_link
"$LINENO"; then :
27662 ac_cv_search_xdrmem_create
=$ac_res
27664 rm -f core conftest.err conftest.
$ac_objext \
27666 if ${ac_cv_search_xdrmem_create+:} false
; then :
27670 if ${ac_cv_search_xdrmem_create+:} false
; then :
27673 ac_cv_search_xdrmem_create
=no
27675 rm conftest.
$ac_ext
27676 LIBS
=$ac_func_search_save_LIBS
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27679 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27680 ac_res
=$ac_cv_search_xdrmem_create
27681 if test "$ac_res" != no
; then :
27682 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27688 as_fn_error $?
"xdrmem_create() requires libc
27689 See \`config.log' for more details" "$LINENO" 5; }
27698 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27699 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
27702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27705 *** blkid.h missing, libblkid-devel package required
27706 See \`config.log' for more details" "$LINENO" 5; }
27714 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27720 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27721 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
27724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27727 *** attr/xattr.h missing, libattr-devel package required
27728 See \`config.log' for more details" "$LINENO" 5; }
27736 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27742 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27743 if test "x$ac_cv_header_libudev_h" = xyes
; then :
27749 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27761 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27762 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27763 $as_echo_n "(cached) " >&6
27765 ac_func_search_save_LIBS
=$LIBS
27766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h. */
27769 /* Override any GCC internal prototype to avoid an error.
27770 Use char because int might match the return type of a GCC
27771 builtin and then its argument prototype would still apply. */
27775 char udev_device_get_is_initialized ();
27779 return udev_device_get_is_initialized ();
27784 for ac_lib
in '' udev
; do
27785 if test -z "$ac_lib"; then
27786 ac_res
="none required"
27789 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27791 if ac_fn_c_try_link
"$LINENO"; then :
27792 ac_cv_search_udev_device_get_is_initialized
=$ac_res
27794 rm -f core conftest.err conftest.
$ac_objext \
27796 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27800 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27803 ac_cv_search_udev_device_get_is_initialized
=no
27805 rm conftest.
$ac_ext
27806 LIBS
=$ac_func_search_save_LIBS
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
27809 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
27810 ac_res
=$ac_cv_search_udev_device_get_is_initialized
27811 if test "$ac_res" != no
; then :
27812 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27815 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
27823 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27825 saved_flags
="$CFLAGS"
27826 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
27828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27829 /* end confdefs.h. */
27839 if ac_fn_c_try_compile
"$LINENO"; then :
27841 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27843 $as_echo "yes" >&6; }
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27849 $as_echo "no" >&6; }
27852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27854 CFLAGS
="$saved_flags"
27858 if test "x$runstatedir" = x
; then
27859 runstatedir
='${localstatedir}/run'
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27865 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27867 /* end confdefs.h. */
27869 #include <sys/sysmacros.h>
27882 if ac_fn_c_try_compile
"$LINENO"; then :
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27885 $as_echo "yes" >&6; }
27887 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27893 $as_echo "no" >&6; }
27896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27900 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h. */
27904 #include <sys/mkdev.h>
27917 if ac_fn_c_try_compile
"$LINENO"; then :
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27920 $as_echo "yes" >&6; }
27922 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27928 $as_echo "no" >&6; }
27931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27935 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27937 saved_flags
="$CFLAGS"
27938 CFLAGS
="$CFLAGS -Wno-format-truncation"
27940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27941 /* end confdefs.h. */
27951 if ac_fn_c_try_compile
"$LINENO"; then :
27953 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27955 $as_echo "yes" >&6; }
27959 NO_FORMAT_TRUNCATION
=
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27961 $as_echo "no" >&6; }
27964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27966 CFLAGS
="$saved_flags"
27971 ZONENAME
="echo global"
27977 for ac_func
in mlockall
27979 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
27980 if test "x$ac_cv_func_mlockall" = xyes
; then :
27981 cat >>confdefs.h
<<_ACEOF
27982 #define HAVE_MLOCKALL 1
27992 # Check whether --with-linux was given.
27993 if test "${with_linux+set}" = set; then :
27994 withval
=$with_linux; kernelsrc
="$withval"
27999 # Check whether --with-linux-obj was given.
28000 if test "${with_linux_obj+set}" = set; then :
28001 withval
=$with_linux_obj; kernelbuild
="$withval"
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28006 $as_echo_n "checking kernel source directory... " >&6; }
28007 if test -z "$kernelsrc"; then :
28009 if test -e "/lib/modules/$(uname -r)/source"; then :
28011 headersdir
="/lib/modules/$(uname -r)/source"
28012 sourcelink
=$
(readlink
-f "$headersdir")
28014 elif test -e "/lib/modules/$(uname -r)/build"; then :
28016 headersdir
="/lib/modules/$(uname -r)/build"
28017 sourcelink
=$
(readlink
-f "$headersdir")
28021 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
28023 2>/dev
/null |
grep -v obj |
tail -1)
28027 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28029 kernelsrc
=`readlink -f ${sourcelink}`
28033 kernelsrc
="Not found"
28039 if test "$kernelsrc" = "NONE"; then :
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28049 $as_echo "$kernelsrc" >&6; }
28050 if test ! -d "$kernelsrc"; then :
28053 *** Please make sure the kernel devel package for your distribution
28054 *** is installed and then try again. If that fails, you can specify the
28055 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28060 $as_echo_n "checking kernel build directory... " >&6; }
28061 if test -z "$kernelbuild"; then :
28063 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
28065 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
28067 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28069 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28071 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
28073 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
28075 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
28077 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
28081 kernelbuild
=${kernelsrc}
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28087 $as_echo "$kernelbuild" >&6; }
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28090 $as_echo_n "checking kernel source version... " >&6; }
28091 utsrelease1
=$kernelbuild/include
/linux
/version.h
28092 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
28093 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
28094 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
28096 utsrelease
=linux
/version.h
28098 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
28100 utsrelease
=linux
/utsrelease.h
28102 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
28104 utsrelease
=generated
/utsrelease.h
28108 if test "$utsrelease"; then :
28110 kernsrcver
=`(echo "#include <$utsrelease>";
28111 echo "kernsrcver=UTS_RELEASE") |
28112 cpp -I $kernelbuild/include |
28113 grep "^kernsrcver=" | cut -d \" -f 2`
28115 if test -z "$kernsrcver"; then :
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28118 $as_echo "Not found" >&6; }
28119 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28126 $as_echo "Not found" >&6; }
28127 if test "x$enable_linux_builtin" != xyes
; then
28128 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28131 *** Cannot find UTS_RELEASE definition.
28132 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28138 $as_echo "$kernsrcver" >&6; }
28141 LINUX_OBJ
=${kernelbuild}
28142 LINUX_VERSION
=${kernsrcver}
28149 modpost
=$LINUX/scripts
/Makefile.modpost
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28151 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28152 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
28154 if grep -q Modules.symvers
$modpost; then :
28156 LINUX_SYMBOLS
=Modules.symvers
28160 LINUX_SYMBOLS
=Module.symvers
28164 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28167 *** Please make sure the kernel devel package for your distribution
28168 *** is installed. If you are building with a custom kernel, make sure the
28169 *** kernel is configured, built, and the '--with-linux=PATH' configure
28170 *** option refers to the location of the kernel source." "$LINENO" 5
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28180 $as_echo "$LINUX_SYMBOLS" >&6; }
28186 # Check whether --with-spl was given.
28187 if test "${with_spl+set}" = set; then :
28188 withval
=$with_spl; if test "$withval" = "yes"; then :
28189 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
28197 # Check whether --with-spl-obj was given.
28198 if test "${with_spl_obj+set}" = set; then :
28199 withval
=$with_spl_obj; splbuild
="$withval"
28204 # Check whether --with-spl-timeout was given.
28205 if test "${with_spl_timeout+set}" = set; then :
28206 withval
=$with_spl_timeout; timeout
="$withval"
28212 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
28213 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28214 splsrc2
="/usr/local/src/spl-${VERSION}"
28215 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28216 splsrc4
="/usr/src/spl-${VERSION}"
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28221 $as_echo_n "checking spl source directory... " >&6; }
28222 if test -z "${splsrc}"; then :
28232 if test -e "${splsrc0}/spl.release.in"; then :
28236 elif test -e "${splsrc1}/spl.release.in"; then :
28240 elif test -e "${splsrc2}/spl.release.in"; then :
28244 elif test -e "${splsrc3}/spl.release.in"; then :
28246 splsrc
=$
(readlink
-f "${splsrc3}")
28248 elif test -e "${splsrc4}/spl.release.in" ; then :
28252 elif test -e "${splsrc5}/spl.release.in"; then :
28254 splsrc
=$
(readlink
-f "${splsrc5}")
28256 elif test -e "${splsrc6}/spl.release.in" ; then :
28268 all_spl_sources
="$withval",
28269 if test "$splsrc" = "NONE"; then :
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28279 $as_echo "$splsrc" >&6; }
28280 if test ! -e "$splsrc/spl.release.in"; then :
28283 *** Please make sure the kmod spl devel package for your distribution
28284 *** is installed then try again. If that fails you can specify the
28285 *** location of the spl source with the '--with-spl=PATH' option.
28286 *** The spl version must match the version of ZFS you are building,
28287 *** ${VERSION}. Failed to find spl.release.in in the following:
28288 $all_spl_sources" "$LINENO" 5
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28293 $as_echo_n "checking spl build directory... " >&6; }
28295 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
28299 if test -z "$splbuild"; then :
28301 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28303 splbuild
="${splsrc}/${LINUX_VERSION}"
28305 elif test -e "${splsrc}/spl_config.h" ; then :
28307 splbuild
="${splsrc}"
28309 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
28311 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
28315 splbuild
="Not found"
28320 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28327 timeout
=$
((timeout-1
))
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28333 $as_echo "$splbuild" >&6; }
28334 if ! test -e "$splbuild/spl_config.h"; then :
28337 *** Please make sure the kmod spl devel <kernel> package for your
28338 *** distribution is installed then try again. If that fails you
28339 *** can specify the location of the spl objects with the
28340 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28341 *** any of the following:
28342 $all_spl_config_locs" "$LINENO" 5
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28347 $as_echo_n "checking spl source version... " >&6; }
28348 if test -r $splbuild/spl_config.h
&&
28349 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
28352 splsrcver
=`(echo "#include <spl_config.h>";
28353 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28355 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28359 if test -z "$splsrcver"; then :
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28362 $as_echo "Not found" >&6; }
28364 *** Cannot determine the version of the spl source.
28365 *** Please prepare the spl source before running this script" "$LINENO" 5
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28370 $as_echo "$splsrcver" >&6; }
28373 SPL_OBJ
=${splbuild}
28374 SPL_VERSION
=${splsrcver}
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28381 $as_echo_n "checking spl file name for module symbols... " >&6; }
28385 if test -r $SPL_OBJ/Module.symvers
; then :
28387 SPL_SYMBOLS
=Module.symvers
28389 elif test -r $SPL_OBJ/Modules.symvers
; then :
28391 SPL_SYMBOLS
=Modules.symvers
28393 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
28395 SPL_SYMBOLS
=Module.symvers
28397 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
28399 SPL_SYMBOLS
=Modules.symvers
28403 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
28410 timeout
=$
((timeout-1
))
28415 if test "$SPL_SYMBOLS" = NONE
; then :
28417 SPL_SYMBOLS
=$LINUX_SYMBOLS
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28422 $as_echo "$SPL_SYMBOLS" >&6; }
28427 # Check whether --with-qat was given.
28428 if test "${with_qat+set}" = set; then :
28429 withval
=$with_qat; if test "$withval" = "yes"; then :
28430 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
28438 # Check whether --with-qat-obj was given.
28439 if test "${with_qat_obj+set}" = set; then :
28440 withval
=$with_qat_obj; qatbuild
="$withval"
28444 if test ! -z "${qatsrc}"; then :
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28447 $as_echo_n "checking qat source directory... " >&6; }
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28449 $as_echo "$qatsrc" >&6; }
28450 QAT_SRC
="${qatsrc}/quickassist"
28451 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28454 *** Please make sure the qat driver package is installed
28455 *** and specify the location of the qat source with the
28456 *** '--with-qat=PATH' option then try again. Failed to
28458 ${QAT_SRC}/include" "$LINENO" 5
28464 if test ! -z "${qatsrc}"; then :
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28467 $as_echo_n "checking qat build directory... " >&6; }
28468 if test -z "$qatbuild"; then :
28470 qatbuild
="${qatsrc}/build"
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28475 $as_echo "$qatbuild" >&6; }
28476 QAT_OBJ
=${qatbuild}
28477 if ! test -e "$QAT_OBJ/icp_qa_al.ko"; then :
28480 *** Please make sure the qat driver is installed then try again.
28481 *** Failed to find icp_qa_al.ko in:
28482 $QAT_OBJ" "$LINENO" 5
28490 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28495 if test ! -z "${qatsrc}"; then :
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28498 $as_echo_n "checking qat file for module symbols... " >&6; }
28499 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
28501 if test -r $QAT_SYMBOLS; then :
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28504 $as_echo "$QAT_SYMBOLS" >&6; }
28510 *** Please make sure the qat driver is installed then try again.
28511 *** Failed to find Module.symvers in:
28512 $QAT_SYMBOLS" "$LINENO" 5
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28520 $as_echo_n "checking whether modules can be built... " >&6; }
28523 cat confdefs.h
- <<_ACEOF >conftest.c
28538 cat - <<_ACEOF >conftest.h
28543 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28544 echo "obj-m := conftest.o" >build
/Makefile
28546 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28547 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28549 (eval $ac_try) 2>&5
28551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28552 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28554 (eval $ac_try) 2>&5
28556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557 test $ac_status = 0; }; }; then :
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28560 $as_echo "yes" >&6; }
28563 $as_echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.
$ac_ext >&5
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28567 $as_echo "no" >&6; }
28568 if test "x$enable_linux_builtin" != xyes
; then
28569 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
28572 *** Unable to build an empty module.
28573 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28585 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28588 cat confdefs.h
- <<_ACEOF >conftest.c
28591 #undef __ASSEMBLY__
28592 #include <asm/frame.h>
28598 #if !defined(FRAME_BEGIN)
28610 cat - <<_ACEOF >conftest.h
28615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28616 echo "obj-m := conftest.o" >build
/Makefile
28618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28619 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28621 (eval $ac_try) 2>&5
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28626 (eval $ac_try) 2>&5
28628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629 test $ac_status = 0; }; }; then :
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28632 $as_echo "yes" >&6; }
28634 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28638 $as_echo "$as_me: failed program was:" >&5
28639 sed 's/^/| /' conftest.
$ac_ext >&5
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642 $as_echo "no" >&6; }
28652 if test "x$cross_compiling" != xyes
; then :
28654 if test "$cross_compiling" = yes; then :
28655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28657 as_fn_error $?
"cannot run test program while cross compiling
28658 See \`config.log' for more details" "$LINENO" 5; }
28660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28661 /* end confdefs.h. */
28664 #include "$LINUX/include/linux/license.h"
28670 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28677 if ac_fn_c_try_run
"$LINENO"; then :
28680 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28693 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28696 cat confdefs.h
- <<_ACEOF >conftest.c
28699 #include <linux/module.h>
28705 #if (THREAD_SIZE < 16384)
28706 #error "THREAD_SIZE is less than 16K"
28717 cat - <<_ACEOF >conftest.h
28722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28723 echo "obj-m := conftest.o" >build
/Makefile
28725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28726 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28728 (eval $ac_try) 2>&5
28730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28731 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733 (eval $ac_try) 2>&5
28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }; }; then :
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28739 $as_echo "yes" >&6; }
28741 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28745 $as_echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.
$ac_ext >&5
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28749 $as_echo "no" >&6; }
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
28761 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
28764 cat confdefs.h
- <<_ACEOF >conftest.c
28767 #include <linux/module.h>
28773 #ifndef CONFIG_DEBUG_LOCK_ALLOC
28774 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
28785 cat - <<_ACEOF >conftest.h
28790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28791 echo "obj-m := conftest.o" >build
/Makefile
28793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28801 (eval $ac_try) 2>&5
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; }; then :
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28807 $as_echo "yes" >&6; }
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
28810 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
28811 tmp_flags
="$EXTRA_KCFLAGS"
28814 cat confdefs.h
- <<_ACEOF >conftest.c
28817 #include <linux/module.h>
28818 #include <linux/mutex.h>
28820 MODULE_LICENSE("$ZFS_META_LICENSE");
28830 mutex_unlock(&lock);
28840 cat - <<_ACEOF >conftest.h
28845 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28846 echo "obj-m := conftest.o" >build
/Makefile
28848 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28849 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28856 (eval $ac_try) 2>&5
28858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28859 test $ac_status = 0; }; }; then :
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28862 $as_echo "no" >&6; }
28865 $as_echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.
$ac_ext >&5
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28869 $as_echo "yes" >&6; }
28871 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
28872 *** with the CDDL license and will prevent the module linking stage
28873 *** from succeeding. You must rebuild your kernel without this
28874 *** option enabled." "$LINENO" 5
28882 EXTRA_KCFLAGS
="$tmp_flags"
28886 $as_echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.
$ac_ext >&5
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28890 $as_echo "no" >&6; }
28903 tmp_flags
="$EXTRA_KCFLAGS"
28904 EXTRA_KCFLAGS
="-I\$(src)"
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
28907 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
28910 cat confdefs.h
- <<_ACEOF >conftest.c
28913 #include <linux/module.h>
28914 MODULE_LICENSE(ZFS_META_LICENSE);
28916 #define CREATE_TRACE_POINTS
28917 #include "conftest.h"
28923 trace_zfs_autoconf_event_one(1UL);
28924 trace_zfs_autoconf_event_two(2UL);
28934 cat - <<_ACEOF >conftest.h
28936 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
28937 #define _CONFTEST_H
28939 #undef TRACE_SYSTEM
28940 #define TRACE_SYSTEM zfs
28941 #include <linux/tracepoint.h>
28943 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
28944 TP_PROTO(unsigned long i),
28947 __field(unsigned long, i)
28952 TP_printk("i = %lu", __entry->i)
28955 #define DEFINE_AUTOCONF_EVENT(name) \
28956 DEFINE_EVENT(zfs_autoconf_event_class, name, \
28957 TP_PROTO(unsigned long i), \
28959 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
28960 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
28962 #endif /* _CONFTEST_H */
28964 #undef TRACE_INCLUDE_PATH
28965 #define TRACE_INCLUDE_PATH .
28966 #define TRACE_INCLUDE_FILE conftest
28967 #include <trace/define_trace.h>
28972 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28973 echo "obj-m := conftest.o" >build
/Makefile
28975 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28976 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28978 (eval $ac_try) 2>&5
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28983 (eval $ac_try) 2>&5
28985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28986 test $ac_status = 0; }; }; then :
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28989 $as_echo "yes" >&6; }
28991 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
28995 $as_echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.
$ac_ext >&5
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29007 EXTRA_KCFLAGS
="$tmp_flags"
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29011 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29014 cat confdefs.h
- <<_ACEOF >conftest.c
29017 #include <linux/sched.h>
29023 current->bio_tail = (struct bio **) NULL;
29033 cat - <<_ACEOF >conftest.h
29038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29039 echo "obj-m := conftest.o" >build
/Makefile
29041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29044 (eval $ac_try) 2>&5
29046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29049 (eval $ac_try) 2>&5
29051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29052 test $ac_status = 0; }; }; then :
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29055 $as_echo "yes" >&6; }
29057 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.
$ac_ext >&5
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29065 $as_echo "no" >&6; }
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29067 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29070 cat confdefs.h
- <<_ACEOF >conftest.c
29073 #include <linux/sched.h>
29079 current->bio_list = (struct bio_list *) NULL;
29089 cat - <<_ACEOF >conftest.h
29094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29095 echo "obj-m := conftest.o" >build
/Makefile
29097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29105 (eval $ac_try) 2>&5
29107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29108 test $ac_status = 0; }; }; then :
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29111 $as_echo "yes" >&6; }
29113 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29117 $as_echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.
$ac_ext >&5
29120 as_fn_error $?
"no - Please file a bug report at
29121 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29139 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29142 cat confdefs.h
- <<_ACEOF >conftest.c
29145 #include <linux/fs.h>
29146 #include <linux/user_namespace.h>
29152 struct super_block super;
29153 super.s_user_ns = (struct user_namespace *)NULL;
29163 cat - <<_ACEOF >conftest.h
29168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29169 echo "obj-m := conftest.o" >build
/Makefile
29171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29179 (eval $ac_try) 2>&5
29181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29182 test $ac_status = 0; }; }; then :
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29185 $as_echo "yes" >&6; }
29187 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29191 $as_echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.
$ac_ext >&5
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29195 $as_echo "no" >&6; }
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29206 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29209 cat confdefs.h
- <<_ACEOF >conftest.c
29212 #include <linux/bio.h>
29219 struct bio *bio = NULL;
29220 blk_qc = submit_bio(bio);
29230 cat - <<_ACEOF >conftest.h
29235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29236 echo "obj-m := conftest.o" >build
/Makefile
29238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29246 (eval $ac_try) 2>&5
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; }; then :
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252 $as_echo "yes" >&6; }
29254 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29258 $as_echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.
$ac_ext >&5
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29262 $as_echo "no" >&6; }
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29273 $as_echo_n "checking block device operation prototypes... " >&6; }
29274 tmp_flags
="$EXTRA_KCFLAGS"
29275 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29278 cat confdefs.h
- <<_ACEOF >conftest.c
29281 #include <linux/blkdev.h>
29283 int blk_open(struct block_device *bdev, fmode_t mode)
29285 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29286 unsigned x, unsigned long y) { return 0; }
29287 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29288 unsigned x, unsigned long y) { return 0; }
29290 static const struct block_device_operations
29291 bops __attribute__ ((unused)) = {
29294 .ioctl = blk_ioctl,
29295 .compat_ioctl = blk_compat_ioctl,
29311 cat - <<_ACEOF >conftest.h
29316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29317 echo "obj-m := conftest.o" >build
/Makefile
29319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29322 (eval $ac_try) 2>&5
29324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29325 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29327 (eval $ac_try) 2>&5
29329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29330 test $ac_status = 0; }; }; then :
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29333 $as_echo "struct block_device" >&6; }
29335 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29339 $as_echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.
$ac_ext >&5
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29343 $as_echo "struct inode" >&6; }
29351 EXTRA_KCFLAGS
="$tmp_flags"
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29355 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29356 tmp_flags
="$EXTRA_KCFLAGS"
29357 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29360 cat confdefs.h
- <<_ACEOF >conftest.c
29363 #include <linux/blkdev.h>
29365 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29367 static const struct block_device_operations
29368 bops __attribute__ ((unused)) = {
29370 .release = blk_release,
29372 .compat_ioctl = NULL,
29388 cat - <<_ACEOF >conftest.h
29393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29394 echo "obj-m := conftest.o" >build
/Makefile
29396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29397 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29399 (eval $ac_try) 2>&5
29401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29402 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29404 (eval $ac_try) 2>&5
29406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29407 test $ac_status = 0; }; }; then :
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29410 $as_echo "void" >&6; }
29412 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29416 $as_echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.
$ac_ext >&5
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29420 $as_echo "int" >&6; }
29428 EXTRA_KCFLAGS
="$tmp_flags"
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29431 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29434 cat confdefs.h
- <<_ACEOF >conftest.c
29437 #include <linux/types.h>
29443 fmode_t *ptr __attribute__ ((unused));
29453 cat - <<_ACEOF >conftest.h
29458 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29459 echo "obj-m := conftest.o" >build
/Makefile
29461 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29462 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29464 (eval $ac_try) 2>&5
29466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29467 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29469 (eval $ac_try) 2>&5
29471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472 test $ac_status = 0; }; }; then :
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29475 $as_echo "yes" >&6; }
29477 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29481 $as_echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.
$ac_ext >&5
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29485 $as_echo "no" >&6; }
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29496 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29499 cat confdefs.h
- <<_ACEOF >conftest.c
29502 #include <linux/fs.h>
29508 struct block_device *bdev = NULL;
29509 (void) blkdev_get(bdev, 0, NULL);
29519 cat - <<_ACEOF >conftest.h
29524 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29525 echo "obj-m := conftest.o" >build
/Makefile
29527 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29528 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29530 (eval $ac_try) 2>&5
29532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29533 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29535 (eval $ac_try) 2>&5
29537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29538 test $ac_status = 0; }; }; then :
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29541 $as_echo "yes" >&6; }
29543 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29547 $as_echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.
$ac_ext >&5
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29551 $as_echo "no" >&6; }
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29561 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29565 cat confdefs.h
- <<_ACEOF >conftest.c
29568 #include <linux/fs.h>
29574 blkdev_get_by_path(NULL, 0, NULL);
29584 cat - <<_ACEOF >conftest.h
29589 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29590 echo "obj-m := conftest.o" >build
/Makefile
29592 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29593 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29600 (eval $ac_try) 2>&5
29602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29603 test $ac_status = 0; }; }; then :
29606 $as_echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.
$ac_ext >&5
29615 if test $rc -ne 0; then :
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29618 $as_echo "no" >&6; }
29621 if test "x$enable_linux_builtin" != xyes
; then
29623 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29624 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29626 if test $rc -ne 0; then
29628 for file in fs
/block_dev.c
; do
29629 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29630 "$LINUX/$file" 2>/dev
/null
29632 if test $rc -eq 0; then
29637 if test $export -eq 0; then :
29647 if test $rc -ne 0; then :
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29650 $as_echo "no" >&6; }
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29655 $as_echo "yes" >&6; }
29657 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29665 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29669 cat confdefs.h
- <<_ACEOF >conftest.c
29672 #include <linux/fs.h>
29678 open_bdev_exclusive(NULL, 0, NULL);
29688 cat - <<_ACEOF >conftest.h
29693 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29694 echo "obj-m := conftest.o" >build
/Makefile
29696 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29697 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29699 (eval $ac_try) 2>&5
29701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29702 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704 (eval $ac_try) 2>&5
29706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707 test $ac_status = 0; }; }; then :
29710 $as_echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.
$ac_ext >&5
29719 if test $rc -ne 0; then :
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722 $as_echo "no" >&6; }
29725 if test "x$enable_linux_builtin" != xyes
; then
29727 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29728 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29730 if test $rc -ne 0; then
29732 for file in fs
/block_dev.c
; do
29733 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29734 "$LINUX/$file" 2>/dev
/null
29736 if test $rc -eq 0; then
29741 if test $export -eq 0; then :
29751 if test $rc -ne 0; then :
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29754 $as_echo "no" >&6; }
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29759 $as_echo "yes" >&6; }
29761 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
29768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
29769 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
29773 cat confdefs.h
- <<_ACEOF >conftest.c
29776 #include <linux/fs.h>
29792 cat - <<_ACEOF >conftest.h
29797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29798 echo "obj-m := conftest.o" >build
/Makefile
29800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29803 (eval $ac_try) 2>&5
29805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29808 (eval $ac_try) 2>&5
29810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29811 test $ac_status = 0; }; }; then :
29814 $as_echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.
$ac_ext >&5
29823 if test $rc -ne 0; then :
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29826 $as_echo "no" >&6; }
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
29828 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
29832 cat confdefs.h
- <<_ACEOF >conftest.c
29835 #include <linux/fs.h>
29841 lookup_bdev(NULL, FMODE_READ);
29851 cat - <<_ACEOF >conftest.h
29856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29857 echo "obj-m := conftest.o" >build
/Makefile
29859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }; then :
29873 $as_echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.
$ac_ext >&5
29882 if test $rc -ne 0; then :
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29885 $as_echo "no" >&6; }
29888 if test "x$enable_linux_builtin" != xyes
; then
29890 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
29891 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29893 if test $rc -ne 0; then
29895 for file in fs
/block_dev.c
; do
29896 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
29897 "$LINUX/$file" 2>/dev
/null
29899 if test $rc -eq 0; then
29904 if test $export -eq 0; then :
29914 if test $rc -ne 0; then :
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29922 $as_echo "yes" >&6; }
29924 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
29932 if test "x$enable_linux_builtin" != xyes
; then
29934 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
29935 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29937 if test $rc -ne 0; then
29939 for file in fs
/block_dev.c
; do
29940 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
29941 "$LINUX/$file" 2>/dev
/null
29943 if test $rc -eq 0; then
29948 if test $export -eq 0; then :
29958 if test $rc -ne 0; then :
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961 $as_echo "no" >&6; }
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
29963 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
29967 cat confdefs.h
- <<_ACEOF >conftest.c
29970 #include <linux/fs.h>
29976 lookup_bdev(NULL, FMODE_READ);
29986 cat - <<_ACEOF >conftest.h
29991 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29992 echo "obj-m := conftest.o" >build
/Makefile
29994 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29995 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29997 (eval $ac_try) 2>&5
29999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30000 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30002 (eval $ac_try) 2>&5
30004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30005 test $ac_status = 0; }; }; then :
30008 $as_echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.
$ac_ext >&5
30017 if test $rc -ne 0; then :
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30023 if test "x$enable_linux_builtin" != xyes
; then
30025 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30028 if test $rc -ne 0; then
30030 for file in fs
/block_dev.c
; do
30031 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30032 "$LINUX/$file" 2>/dev
/null
30034 if test $rc -eq 0; then
30039 if test $export -eq 0; then :
30049 if test $rc -ne 0; then :
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30052 $as_echo "no" >&6; }
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30057 $as_echo "yes" >&6; }
30059 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30069 $as_echo "yes" >&6; }
30071 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30080 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30083 cat confdefs.h
- <<_ACEOF >conftest.c
30086 #include <linux/buffer_head.h>
30092 struct block_device *bdev = NULL;
30093 invalidate_bdev(bdev);
30103 cat - <<_ACEOF >conftest.h
30108 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30109 echo "obj-m := conftest.o" >build
/Makefile
30111 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30112 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30114 (eval $ac_try) 2>&5
30116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30117 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30119 (eval $ac_try) 2>&5
30121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30122 test $ac_status = 0; }; }; then :
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125 $as_echo "yes" >&6; }
30127 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30131 $as_echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.
$ac_ext >&5
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135 $as_echo "no" >&6; }
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30146 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30147 tmp_flags
="$EXTRA_KCFLAGS"
30148 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30151 cat confdefs.h
- <<_ACEOF >conftest.c
30154 #include <linux/blkdev.h>
30160 struct block_device *bdev = NULL;
30161 bdev_logical_block_size(bdev);
30171 cat - <<_ACEOF >conftest.h
30176 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30177 echo "obj-m := conftest.o" >build
/Makefile
30179 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30180 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30182 (eval $ac_try) 2>&5
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30187 (eval $ac_try) 2>&5
30189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30190 test $ac_status = 0; }; }; then :
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30193 $as_echo "yes" >&6; }
30195 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30199 $as_echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.
$ac_ext >&5
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30203 $as_echo "no" >&6; }
30211 EXTRA_KCFLAGS
="$tmp_flags"
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30215 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30216 tmp_flags
="$EXTRA_KCFLAGS"
30217 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30220 cat confdefs.h
- <<_ACEOF >conftest.c
30223 #include <linux/blkdev.h>
30229 struct block_device *bdev = NULL;
30230 bdev_physical_block_size(bdev);
30240 cat - <<_ACEOF >conftest.h
30245 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30246 echo "obj-m := conftest.o" >build
/Makefile
30248 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30249 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30251 (eval $ac_try) 2>&5
30253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30256 (eval $ac_try) 2>&5
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; }; then :
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30262 $as_echo "yes" >&6; }
30264 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30268 $as_echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.
$ac_ext >&5
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30272 $as_echo "no" >&6; }
30280 EXTRA_KCFLAGS
="$tmp_flags"
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30284 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30287 cat confdefs.h
- <<_ACEOF >conftest.c
30290 #include <linux/bio.h>
30297 bio.bi_iter.bi_sector = 0;
30307 cat - <<_ACEOF >conftest.h
30312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30313 echo "obj-m := conftest.o" >build
/Makefile
30315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30316 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30318 (eval $ac_try) 2>&5
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30323 (eval $ac_try) 2>&5
30325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30326 test $ac_status = 0; }; }; then :
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30329 $as_echo "yes" >&6; }
30331 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30335 $as_echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.
$ac_ext >&5
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30339 $as_echo "no" >&6; }
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30350 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30353 cat confdefs.h
- <<_ACEOF >conftest.c
30356 #include <linux/bio.h>
30362 int flags __attribute__ ((unused));
30363 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30364 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30365 (1 << BIO_RW_FAILFAST_DRIVER));
30375 cat - <<_ACEOF >conftest.h
30380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30381 echo "obj-m := conftest.o" >build
/Makefile
30383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30386 (eval $ac_try) 2>&5
30388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30391 (eval $ac_try) 2>&5
30393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30394 test $ac_status = 0; }; }; then :
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397 $as_echo "yes" >&6; }
30399 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30403 $as_echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.
$ac_ext >&5
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407 $as_echo "no" >&6; }
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30418 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30421 cat confdefs.h
- <<_ACEOF >conftest.c
30424 #include <linux/bio.h>
30425 #include <linux/fs.h>
30431 struct block_device *bdev = NULL;
30432 struct bio *bio = NULL;
30433 bio_set_dev(bio, bdev);
30443 cat - <<_ACEOF >conftest.h
30448 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30449 echo "obj-m := conftest.o" >build
/Makefile
30451 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30452 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30454 (eval $ac_try) 2>&5
30456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30457 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30459 (eval $ac_try) 2>&5
30461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30462 test $ac_status = 0; }; }; then :
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30465 $as_echo "yes" >&6; }
30467 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30471 $as_echo "$as_me: failed program was:" >&5
30472 sed 's/^/| /' conftest.
$ac_ext >&5
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30475 $as_echo "no" >&6; }
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30486 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30489 cat confdefs.h
- <<_ACEOF >conftest.c
30492 #include <linux/bio.h>
30498 int flags __attribute__ ((unused));
30499 flags = REQ_FAILFAST_MASK;
30509 cat - <<_ACEOF >conftest.h
30514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30515 echo "obj-m := conftest.o" >build
/Makefile
30517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30518 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30520 (eval $ac_try) 2>&5
30522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30523 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30525 (eval $ac_try) 2>&5
30527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30528 test $ac_status = 0; }; }; then :
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30531 $as_echo "yes" >&6; }
30533 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30537 $as_echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.
$ac_ext >&5
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541 $as_echo "no" >&6; }
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30552 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30555 cat confdefs.h
- <<_ACEOF >conftest.c
30558 #include <linux/blk_types.h>
30564 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30574 cat - <<_ACEOF >conftest.h
30579 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30580 echo "obj-m := conftest.o" >build
/Makefile
30582 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30583 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30585 (eval $ac_try) 2>&5
30587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30588 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30590 (eval $ac_try) 2>&5
30592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30593 test $ac_status = 0; }; }; then :
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30596 $as_echo "yes" >&6; }
30598 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30602 $as_echo "$as_me: failed program was:" >&5
30603 sed 's/^/| /' conftest.
$ac_ext >&5
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30606 $as_echo "no" >&6; }
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30617 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30620 cat confdefs.h
- <<_ACEOF >conftest.c
30623 #include <linux/blk_types.h>
30629 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30639 cat - <<_ACEOF >conftest.h
30644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30645 echo "obj-m := conftest.o" >build
/Makefile
30647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30648 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30650 (eval $ac_try) 2>&5
30652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30653 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30655 (eval $ac_try) 2>&5
30657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30658 test $ac_status = 0; }; }; then :
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30661 $as_echo "yes" >&6; }
30663 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30667 $as_echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.
$ac_ext >&5
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30671 $as_echo "no" >&6; }
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30682 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30685 cat confdefs.h
- <<_ACEOF >conftest.c
30688 #include <linux/blk_types.h>
30694 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30704 cat - <<_ACEOF >conftest.h
30709 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30710 echo "obj-m := conftest.o" >build
/Makefile
30712 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30713 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30715 (eval $ac_try) 2>&5
30717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30718 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30720 (eval $ac_try) 2>&5
30722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723 test $ac_status = 0; }; }; then :
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726 $as_echo "yes" >&6; }
30728 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30732 $as_echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.
$ac_ext >&5
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30736 $as_echo "no" >&6; }
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30747 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30750 cat confdefs.h
- <<_ACEOF >conftest.c
30753 #include <linux/bio.h>
30759 struct bio bio __attribute__ ((unused));
30770 cat - <<_ACEOF >conftest.h
30775 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30776 echo "obj-m := conftest.o" >build
/Makefile
30778 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30779 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30781 (eval $ac_try) 2>&5
30783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30784 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30786 (eval $ac_try) 2>&5
30788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30789 test $ac_status = 0; }; }; then :
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30792 $as_echo "yes" >&6; }
30794 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
30798 $as_echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.
$ac_ext >&5
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30802 $as_echo "no" >&6; }
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
30813 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
30816 cat confdefs.h
- <<_ACEOF >conftest.c
30819 #include <linux/bio.h>
30821 void wanted_end_io(struct bio *bio) { return; }
30823 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
30838 cat - <<_ACEOF >conftest.h
30843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30844 echo "obj-m := conftest.o" >build
/Makefile
30846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30847 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30849 (eval $ac_try) 2>&5
30851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30854 (eval $ac_try) 2>&5
30856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30857 test $ac_status = 0; }; }; then :
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30860 $as_echo "yes" >&6; }
30862 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
30866 $as_echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.
$ac_ext >&5
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30870 $as_echo "no" >&6; }
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
30881 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
30884 cat confdefs.h
- <<_ACEOF >conftest.c
30887 #include <linux/bio.h>
30893 struct bio bio __attribute__ ((unused));
30894 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
30896 bio.bi_status = status;
30906 cat - <<_ACEOF >conftest.h
30911 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30912 echo "obj-m := conftest.o" >build
/Makefile
30914 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30915 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30917 (eval $ac_try) 2>&5
30919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30920 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30922 (eval $ac_try) 2>&5
30924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30925 test $ac_status = 0; }; }; then :
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30928 $as_echo "yes" >&6; }
30930 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
30934 $as_echo "$as_me: failed program was:" >&5
30935 sed 's/^/| /' conftest.
$ac_ext >&5
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938 $as_echo "no" >&6; }
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
30949 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
30952 cat confdefs.h
- <<_ACEOF >conftest.c
30955 #include <linux/bio.h>
30961 int flags __attribute__ ((unused));
30962 flags = BIO_RW_BARRIER;
30972 cat - <<_ACEOF >conftest.h
30977 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30978 echo "obj-m := conftest.o" >build
/Makefile
30980 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30981 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30983 (eval $ac_try) 2>&5
30985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30986 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30988 (eval $ac_try) 2>&5
30990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30991 test $ac_status = 0; }; }; then :
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30994 $as_echo "yes" >&6; }
30996 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31000 $as_echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.
$ac_ext >&5
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31004 $as_echo "no" >&6; }
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31015 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31018 cat confdefs.h
- <<_ACEOF >conftest.c
31021 #include <linux/bio.h>
31027 int flags __attribute__ ((unused));
31028 flags = BIO_RW_DISCARD;
31038 cat - <<_ACEOF >conftest.h
31043 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31044 echo "obj-m := conftest.o" >build
/Makefile
31046 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31047 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31049 (eval $ac_try) 2>&5
31051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31052 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31054 (eval $ac_try) 2>&5
31056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31057 test $ac_status = 0; }; }; then :
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31060 $as_echo "yes" >&6; }
31062 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31066 $as_echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.
$ac_ext >&5
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070 $as_echo "no" >&6; }
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31081 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31084 cat confdefs.h
- <<_ACEOF >conftest.c
31087 #include <linux/blkdev.h>
31093 struct request_queue q;
31094 struct backing_dev_info bdi;
31095 q.backing_dev_info = &bdi;
31105 cat - <<_ACEOF >conftest.h
31110 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31111 echo "obj-m := conftest.o" >build
/Makefile
31113 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31114 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31116 (eval $ac_try) 2>&5
31118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31119 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31121 (eval $ac_try) 2>&5
31123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31124 test $ac_status = 0; }; }; then :
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31127 $as_echo "yes" >&6; }
31129 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31133 $as_echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.
$ac_ext >&5
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137 $as_echo "no" >&6; }
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31148 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31149 tmp_flags
="$EXTRA_KCFLAGS"
31150 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31153 cat confdefs.h
- <<_ACEOF >conftest.c
31156 #include <linux/blkdev.h>
31162 struct request_queue *q = NULL;
31163 (void) blk_queue_flush(q, REQ_FLUSH);
31173 cat - <<_ACEOF >conftest.h
31178 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31179 echo "obj-m := conftest.o" >build
/Makefile
31181 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31182 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31184 (eval $ac_try) 2>&5
31186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31187 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31189 (eval $ac_try) 2>&5
31191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31192 test $ac_status = 0; }; }; then :
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31195 $as_echo "yes" >&6; }
31197 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31201 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31204 cat confdefs.h
- <<_ACEOF >conftest.c
31207 #include <linux/module.h>
31208 #include <linux/blkdev.h>
31210 MODULE_LICENSE("$ZFS_META_LICENSE");
31216 struct request_queue *q = NULL;
31217 (void) blk_queue_flush(q, REQ_FLUSH);
31227 cat - <<_ACEOF >conftest.h
31232 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31233 echo "obj-m := conftest.o" >build
/Makefile
31235 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31236 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31238 (eval $ac_try) 2>&5
31240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31241 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31243 (eval $ac_try) 2>&5
31245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31246 test $ac_status = 0; }; }; then :
31248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31249 $as_echo "no" >&6; }
31252 $as_echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.
$ac_ext >&5
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31256 $as_echo "yes" >&6; }
31258 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31269 $as_echo "$as_me: failed program was:" >&5
31270 sed 's/^/| /' conftest.
$ac_ext >&5
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273 $as_echo "no" >&6; }
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31283 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31286 cat confdefs.h
- <<_ACEOF >conftest.c
31289 #include <linux/kernel.h>
31290 #include <linux/blkdev.h>
31297 struct request_queue *q = NULL;
31298 blk_queue_write_cache(q, true, true);
31308 cat - <<_ACEOF >conftest.h
31313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31314 echo "obj-m := conftest.o" >build
/Makefile
31316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31319 (eval $ac_try) 2>&5
31321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31324 (eval $ac_try) 2>&5
31326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31327 test $ac_status = 0; }; }; then :
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31330 $as_echo "yes" >&6; }
31332 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31336 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31339 cat confdefs.h
- <<_ACEOF >conftest.c
31342 #include <linux/kernel.h>
31343 #include <linux/module.h>
31344 #include <linux/blkdev.h>
31346 MODULE_LICENSE("$ZFS_META_LICENSE");
31352 struct request_queue *q = NULL;
31353 blk_queue_write_cache(q, true, true);
31363 cat - <<_ACEOF >conftest.h
31368 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31369 echo "obj-m := conftest.o" >build
/Makefile
31371 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31372 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31374 (eval $ac_try) 2>&5
31376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31379 (eval $ac_try) 2>&5
31381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31382 test $ac_status = 0; }; }; then :
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31385 $as_echo "no" >&6; }
31388 $as_echo "$as_me: failed program was:" >&5
31389 sed 's/^/| /' conftest.
$ac_ext >&5
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31392 $as_echo "yes" >&6; }
31394 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31405 $as_echo "$as_me: failed program was:" >&5
31406 sed 's/^/| /' conftest.
$ac_ext >&5
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31409 $as_echo "no" >&6; }
31418 EXTRA_KCFLAGS
="$tmp_flags"
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31422 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31423 tmp_flags
="$EXTRA_KCFLAGS"
31424 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31427 cat confdefs.h
- <<_ACEOF >conftest.c
31430 #include <linux/blkdev.h>
31436 struct request_queue *q = NULL;
31437 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31447 cat - <<_ACEOF >conftest.h
31452 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31453 echo "obj-m := conftest.o" >build
/Makefile
31455 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31456 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31458 (eval $ac_try) 2>&5
31460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31461 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31463 (eval $ac_try) 2>&5
31465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31466 test $ac_status = 0; }; }; then :
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469 $as_echo "yes" >&6; }
31471 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31475 $as_echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.
$ac_ext >&5
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31479 $as_echo "no" >&6; }
31487 EXTRA_KCFLAGS
="$tmp_flags"
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31491 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31492 tmp_flags
="$EXTRA_KCFLAGS"
31493 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31496 cat confdefs.h
- <<_ACEOF >conftest.c
31499 #include <linux/blkdev.h>
31505 struct request_queue *q = NULL;
31506 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31516 cat - <<_ACEOF >conftest.h
31521 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31522 echo "obj-m := conftest.o" >build
/Makefile
31524 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31525 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31527 (eval $ac_try) 2>&5
31529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31530 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31532 (eval $ac_try) 2>&5
31534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31535 test $ac_status = 0; }; }; then :
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31538 $as_echo "yes" >&6; }
31540 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31544 $as_echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.
$ac_ext >&5
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548 $as_echo "no" >&6; }
31556 EXTRA_KCFLAGS
="$tmp_flags"
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31560 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31561 tmp_flags
="$EXTRA_KCFLAGS"
31562 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31565 cat confdefs.h
- <<_ACEOF >conftest.c
31568 #include <linux/blkdev.h>
31574 extern enum bio_rw_flags rw;
31576 rw = BIO_RW_UNPLUG;
31586 cat - <<_ACEOF >conftest.h
31591 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31592 echo "obj-m := conftest.o" >build
/Makefile
31594 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31595 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31597 (eval $ac_try) 2>&5
31599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31600 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31602 (eval $ac_try) 2>&5
31604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31605 test $ac_status = 0; }; }; then :
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31608 $as_echo "yes" >&6; }
31610 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31614 $as_echo "$as_me: failed program was:" >&5
31615 sed 's/^/| /' conftest.
$ac_ext >&5
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31618 $as_echo "no" >&6; }
31626 EXTRA_KCFLAGS
="$tmp_flags"
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31630 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31631 tmp_flags
="$EXTRA_KCFLAGS"
31632 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31635 cat confdefs.h
- <<_ACEOF >conftest.c
31638 #include <linux/blkdev.h>
31644 struct blk_plug plug;
31646 blk_start_plug(&plug);
31647 blk_finish_plug(&plug);
31657 cat - <<_ACEOF >conftest.h
31662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31663 echo "obj-m := conftest.o" >build
/Makefile
31665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31668 (eval $ac_try) 2>&5
31670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31671 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31673 (eval $ac_try) 2>&5
31675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676 test $ac_status = 0; }; }; then :
31678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31679 $as_echo "yes" >&6; }
31681 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31685 $as_echo "$as_me: failed program was:" >&5
31686 sed 's/^/| /' conftest.
$ac_ext >&5
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689 $as_echo "no" >&6; }
31697 EXTRA_KCFLAGS
="$tmp_flags"
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31701 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31702 tmp_flags
="$EXTRA_KCFLAGS"
31703 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31706 cat confdefs.h
- <<_ACEOF >conftest.c
31709 #include <linux/blkdev.h>
31715 struct gendisk *disk = NULL;
31716 (void) get_disk_ro(disk);
31726 cat - <<_ACEOF >conftest.h
31731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31732 echo "obj-m := conftest.o" >build
/Makefile
31734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31737 (eval $ac_try) 2>&5
31739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31742 (eval $ac_try) 2>&5
31744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31745 test $ac_status = 0; }; }; then :
31747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31748 $as_echo "yes" >&6; }
31750 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31754 $as_echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.
$ac_ext >&5
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31758 $as_echo "no" >&6; }
31766 EXTRA_KCFLAGS
="$tmp_flags"
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
31769 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
31773 cat confdefs.h
- <<_ACEOF >conftest.c
31776 #include <linux/genhd.h>
31782 get_gendisk(0, NULL);
31792 cat - <<_ACEOF >conftest.h
31797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31798 echo "obj-m := conftest.o" >build
/Makefile
31800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31803 (eval $ac_try) 2>&5
31805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31808 (eval $ac_try) 2>&5
31810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31811 test $ac_status = 0; }; }; then :
31814 $as_echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.
$ac_ext >&5
31823 if test $rc -ne 0; then :
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31826 $as_echo "no" >&6; }
31829 if test "x$enable_linux_builtin" != xyes
; then
31831 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
31832 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31834 if test $rc -ne 0; then
31836 for file in block
/genhd.c
; do
31837 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
31838 "$LINUX/$file" 2>/dev
/null
31840 if test $rc -eq 0; then
31845 if test $export -eq 0; then :
31855 if test $rc -ne 0; then :
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31858 $as_echo "no" >&6; }
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31863 $as_echo "yes" >&6; }
31865 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
31874 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
31877 cat confdefs.h
- <<_ACEOF >conftest.c
31880 #include <linux/bio.h>
31886 struct bio *bio __attribute__ ((unused)) = NULL;
31888 bio_set_op_attrs(bio, 0, 0);
31898 cat - <<_ACEOF >conftest.h
31903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31904 echo "obj-m := conftest.o" >build
/Makefile
31906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31907 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31909 (eval $ac_try) 2>&5
31911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31912 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31914 (eval $ac_try) 2>&5
31916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31917 test $ac_status = 0; }; }; then :
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31920 $as_echo "yes" >&6; }
31922 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
31926 $as_echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.
$ac_ext >&5
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31930 $as_echo "no" >&6; }
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
31941 $as_echo_n "checking whether generic_readlink is global... " >&6; }
31944 cat confdefs.h
- <<_ACEOF >conftest.c
31947 #include <linux/fs.h>
31953 int i __attribute__ ((unused));
31955 i = generic_readlink(NULL, NULL, 0);
31965 cat - <<_ACEOF >conftest.h
31970 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31971 echo "obj-m := conftest.o" >build
/Makefile
31973 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31974 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31976 (eval $ac_try) 2>&5
31978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31979 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31981 (eval $ac_try) 2>&5
31983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31984 test $ac_status = 0; }; }; then :
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31987 $as_echo "yes" >&6; }
31989 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
31993 $as_echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.
$ac_ext >&5
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31997 $as_echo "no" >&6; }
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32008 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32011 cat confdefs.h
- <<_ACEOF >conftest.c
32014 #include <linux/blkdev.h>
32020 struct queue_limits ql __attribute__ ((unused));
32022 ql.discard_granularity = 0;
32032 cat - <<_ACEOF >conftest.h
32037 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32038 echo "obj-m := conftest.o" >build
/Makefile
32040 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32041 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32043 (eval $ac_try) 2>&5
32045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32046 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32048 (eval $ac_try) 2>&5
32050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32051 test $ac_status = 0; }; }; then :
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32054 $as_echo "yes" >&6; }
32056 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32060 $as_echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.
$ac_ext >&5
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32064 $as_echo "no" >&6; }
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32075 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32078 cat confdefs.h
- <<_ACEOF >conftest.c
32081 #include <linux/fs.h>
32082 #include <linux/xattr.h>
32084 const struct xattr_handler xattr_test_handler = {
32090 const struct xattr_handler *xattr_handlers[] = {
32091 &xattr_test_handler,
32094 const struct super_block sb __attribute__ ((unused)) = {
32095 .s_xattr = xattr_handlers,
32111 cat - <<_ACEOF >conftest.h
32116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32117 echo "obj-m := conftest.o" >build
/Makefile
32119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32122 (eval $ac_try) 2>&5
32124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32127 (eval $ac_try) 2>&5
32129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32130 test $ac_status = 0; }; }; then :
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32133 $as_echo "yes" >&6; }
32135 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32139 $as_echo "$as_me: failed program was:" >&5
32140 sed 's/^/| /' conftest.
$ac_ext >&5
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32143 $as_echo "no" >&6; }
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32154 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32157 cat confdefs.h
- <<_ACEOF >conftest.c
32160 #include <linux/xattr.h>
32162 static const struct xattr_handler
32163 xops __attribute__ ((unused)) = {
32164 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32180 cat - <<_ACEOF >conftest.h
32185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32186 echo "obj-m := conftest.o" >build
/Makefile
32188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32191 (eval $ac_try) 2>&5
32193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32196 (eval $ac_try) 2>&5
32198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32199 test $ac_status = 0; }; }; then :
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32202 $as_echo "yes" >&6; }
32204 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32208 $as_echo "$as_me: failed program was:" >&5
32209 sed 's/^/| /' conftest.
$ac_ext >&5
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32212 $as_echo "no" >&6; }
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32223 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32226 cat confdefs.h
- <<_ACEOF >conftest.c
32229 #include <linux/xattr.h>
32231 int get(const struct xattr_handler *handler,
32232 struct dentry *dentry, struct inode *inode,
32233 const char *name, void *buffer, size_t size) { return 0; }
32234 static const struct xattr_handler
32235 xops __attribute__ ((unused)) = {
32252 cat - <<_ACEOF >conftest.h
32257 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32258 echo "obj-m := conftest.o" >build
/Makefile
32260 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32261 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32263 (eval $ac_try) 2>&5
32265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32266 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32268 (eval $ac_try) 2>&5
32270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32271 test $ac_status = 0; }; }; then :
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32274 $as_echo "yes" >&6; }
32276 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32280 $as_echo "$as_me: failed program was:" >&5
32281 sed 's/^/| /' conftest.
$ac_ext >&5
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32284 $as_echo "no" >&6; }
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32286 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32289 cat confdefs.h
- <<_ACEOF >conftest.c
32292 #include <linux/xattr.h>
32294 int get(const struct xattr_handler *handler,
32295 struct dentry *dentry, const char *name,
32296 void *buffer, size_t size) { return 0; }
32297 static const struct xattr_handler
32298 xops __attribute__ ((unused)) = {
32315 cat - <<_ACEOF >conftest.h
32320 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32321 echo "obj-m := conftest.o" >build
/Makefile
32323 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32324 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32326 (eval $ac_try) 2>&5
32328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32329 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32331 (eval $ac_try) 2>&5
32333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32334 test $ac_status = 0; }; }; then :
32336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32337 $as_echo "yes" >&6; }
32339 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32343 $as_echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.
$ac_ext >&5
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32347 $as_echo "no" >&6; }
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32349 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32352 cat confdefs.h
- <<_ACEOF >conftest.c
32355 #include <linux/xattr.h>
32357 int get(struct dentry *dentry, const char *name,
32358 void *buffer, size_t size, int handler_flags)
32360 static const struct xattr_handler
32361 xops __attribute__ ((unused)) = {
32378 cat - <<_ACEOF >conftest.h
32383 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32384 echo "obj-m := conftest.o" >build
/Makefile
32386 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32387 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32389 (eval $ac_try) 2>&5
32391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32392 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32394 (eval $ac_try) 2>&5
32396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32397 test $ac_status = 0; }; }; then :
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32400 $as_echo "yes" >&6; }
32402 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32406 $as_echo "$as_me: failed program was:" >&5
32407 sed 's/^/| /' conftest.
$ac_ext >&5
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32410 $as_echo "no" >&6; }
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32412 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32415 cat confdefs.h
- <<_ACEOF >conftest.c
32418 #include <linux/xattr.h>
32420 int get(struct inode *ip, const char *name,
32421 void *buffer, size_t size) { return 0; }
32422 static const struct xattr_handler
32423 xops __attribute__ ((unused)) = {
32440 cat - <<_ACEOF >conftest.h
32445 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32446 echo "obj-m := conftest.o" >build
/Makefile
32448 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32449 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32451 (eval $ac_try) 2>&5
32453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32454 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32456 (eval $ac_try) 2>&5
32458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32459 test $ac_status = 0; }; }; then :
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32462 $as_echo "yes" >&6; }
32464 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32468 $as_echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.
$ac_ext >&5
32471 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32503 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32506 cat confdefs.h
- <<_ACEOF >conftest.c
32509 #include <linux/xattr.h>
32511 int set(const struct xattr_handler *handler,
32512 struct dentry *dentry, struct inode *inode,
32513 const char *name, const void *buffer,
32514 size_t size, int flags)
32516 static const struct xattr_handler
32517 xops __attribute__ ((unused)) = {
32534 cat - <<_ACEOF >conftest.h
32539 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32540 echo "obj-m := conftest.o" >build
/Makefile
32542 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32543 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32545 (eval $ac_try) 2>&5
32547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32548 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32550 (eval $ac_try) 2>&5
32552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32553 test $ac_status = 0; }; }; then :
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32556 $as_echo "yes" >&6; }
32558 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32562 $as_echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.
$ac_ext >&5
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566 $as_echo "no" >&6; }
32567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32568 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32571 cat confdefs.h
- <<_ACEOF >conftest.c
32574 #include <linux/xattr.h>
32576 int set(const struct xattr_handler *handler,
32577 struct dentry *dentry, const char *name,
32578 const void *buffer, size_t size, int flags)
32580 static const struct xattr_handler
32581 xops __attribute__ ((unused)) = {
32598 cat - <<_ACEOF >conftest.h
32603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32604 echo "obj-m := conftest.o" >build
/Makefile
32606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32609 (eval $ac_try) 2>&5
32611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32614 (eval $ac_try) 2>&5
32616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32617 test $ac_status = 0; }; }; then :
32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32620 $as_echo "yes" >&6; }
32622 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32626 $as_echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.
$ac_ext >&5
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630 $as_echo "no" >&6; }
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32632 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32635 cat confdefs.h
- <<_ACEOF >conftest.c
32638 #include <linux/xattr.h>
32640 int set(struct dentry *dentry, const char *name,
32641 const void *buffer, size_t size, int flags,
32642 int handler_flags) { return 0; }
32643 static const struct xattr_handler
32644 xops __attribute__ ((unused)) = {
32661 cat - <<_ACEOF >conftest.h
32666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32667 echo "obj-m := conftest.o" >build
/Makefile
32669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32672 (eval $ac_try) 2>&5
32674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32677 (eval $ac_try) 2>&5
32679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32680 test $ac_status = 0; }; }; then :
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32683 $as_echo "yes" >&6; }
32685 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32689 $as_echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.
$ac_ext >&5
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693 $as_echo "no" >&6; }
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32695 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32698 cat confdefs.h
- <<_ACEOF >conftest.c
32701 #include <linux/xattr.h>
32703 int set(struct inode *ip, const char *name,
32704 const void *buffer, size_t size, int flags)
32706 static const struct xattr_handler
32707 xops __attribute__ ((unused)) = {
32724 cat - <<_ACEOF >conftest.h
32729 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32730 echo "obj-m := conftest.o" >build
/Makefile
32732 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32733 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32735 (eval $ac_try) 2>&5
32737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32738 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32740 (eval $ac_try) 2>&5
32742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32743 test $ac_status = 0; }; }; then :
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32746 $as_echo "yes" >&6; }
32748 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32752 $as_echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.
$ac_ext >&5
32755 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
32787 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
32790 cat confdefs.h
- <<_ACEOF >conftest.c
32793 #include <linux/xattr.h>
32795 bool list(struct dentry *dentry) { return 0; }
32796 static const struct xattr_handler
32797 xops __attribute__ ((unused)) = {
32814 cat - <<_ACEOF >conftest.h
32819 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32820 echo "obj-m := conftest.o" >build
/Makefile
32822 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32823 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32825 (eval $ac_try) 2>&5
32827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32828 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32830 (eval $ac_try) 2>&5
32832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32833 test $ac_status = 0; }; }; then :
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32836 $as_echo "yes" >&6; }
32838 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
32842 $as_echo "$as_me: failed program was:" >&5
32843 sed 's/^/| /' conftest.
$ac_ext >&5
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32846 $as_echo "no" >&6; }
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
32848 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
32851 cat confdefs.h
- <<_ACEOF >conftest.c
32854 #include <linux/xattr.h>
32856 size_t list(const struct xattr_handler *handler,
32857 struct dentry *dentry, char *list, size_t list_size,
32858 const char *name, size_t name_len) { return 0; }
32859 static const struct xattr_handler
32860 xops __attribute__ ((unused)) = {
32877 cat - <<_ACEOF >conftest.h
32882 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32883 echo "obj-m := conftest.o" >build
/Makefile
32885 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32886 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32888 (eval $ac_try) 2>&5
32890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32891 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32893 (eval $ac_try) 2>&5
32895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32896 test $ac_status = 0; }; }; then :
32898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32899 $as_echo "yes" >&6; }
32901 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
32905 $as_echo "$as_me: failed program was:" >&5
32906 sed 's/^/| /' conftest.
$ac_ext >&5
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32909 $as_echo "no" >&6; }
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
32911 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
32914 cat confdefs.h
- <<_ACEOF >conftest.c
32917 #include <linux/xattr.h>
32919 size_t list(struct dentry *dentry,
32920 char *list, size_t list_size,
32921 const char *name, size_t name_len,
32922 int handler_flags) { return 0; }
32923 static const struct xattr_handler
32924 xops __attribute__ ((unused)) = {
32941 cat - <<_ACEOF >conftest.h
32946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32947 echo "obj-m := conftest.o" >build
/Makefile
32949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32952 (eval $ac_try) 2>&5
32954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32957 (eval $ac_try) 2>&5
32959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32960 test $ac_status = 0; }; }; then :
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32963 $as_echo "yes" >&6; }
32965 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
32969 $as_echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.
$ac_ext >&5
32972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32973 $as_echo "no" >&6; }
32974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
32975 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
32978 cat confdefs.h
- <<_ACEOF >conftest.c
32981 #include <linux/xattr.h>
32983 size_t list(struct inode *ip, char *lst,
32984 size_t list_size, const char *name,
32985 size_t name_len) { return 0; }
32986 static const struct xattr_handler
32987 xops __attribute__ ((unused)) = {
33004 cat - <<_ACEOF >conftest.h
33009 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33010 echo "obj-m := conftest.o" >build
/Makefile
33012 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33013 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33015 (eval $ac_try) 2>&5
33017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33018 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33020 (eval $ac_try) 2>&5
33022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33023 test $ac_status = 0; }; }; then :
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33026 $as_echo "yes" >&6; }
33028 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33032 $as_echo "$as_me: failed program was:" >&5
33033 sed 's/^/| /' conftest.
$ac_ext >&5
33035 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33067 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33070 cat confdefs.h
- <<_ACEOF >conftest.c
33073 #include <linux/fs.h>
33079 struct inode *ip = NULL;
33080 (void) inode_owner_or_capable(ip);
33090 cat - <<_ACEOF >conftest.h
33095 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33096 echo "obj-m := conftest.o" >build
/Makefile
33098 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33099 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33101 (eval $ac_try) 2>&5
33103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33104 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33106 (eval $ac_try) 2>&5
33108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33109 test $ac_status = 0; }; }; then :
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33112 $as_echo "yes" >&6; }
33114 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33118 $as_echo "$as_me: failed program was:" >&5
33119 sed 's/^/| /' conftest.
$ac_ext >&5
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33122 $as_echo "no" >&6; }
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33124 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33127 cat confdefs.h
- <<_ACEOF >conftest.c
33130 #include <linux/fs.h>
33131 #include <linux/sched.h>
33137 struct inode *ip = NULL;
33138 (void) is_owner_or_cap(ip);
33148 cat - <<_ACEOF >conftest.h
33153 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33154 echo "obj-m := conftest.o" >build
/Makefile
33156 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33157 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33159 (eval $ac_try) 2>&5
33161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33162 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33164 (eval $ac_try) 2>&5
33166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33167 test $ac_status = 0; }; }; then :
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33170 $as_echo "yes" >&6; }
33172 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33176 $as_echo "$as_me: failed program was:" >&5
33177 sed 's/^/| /' conftest.
$ac_ext >&5
33179 as_fn_error $?
"no - Please file a bug report at
33180 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33198 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33201 cat confdefs.h
- <<_ACEOF >conftest.c
33204 #include <linux/cred.h>
33205 #include <linux/fs.h>
33206 #include <linux/posix_acl_xattr.h>
33212 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33222 cat - <<_ACEOF >conftest.h
33227 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33228 echo "obj-m := conftest.o" >build
/Makefile
33230 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33231 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33233 (eval $ac_try) 2>&5
33235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33236 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33238 (eval $ac_try) 2>&5
33240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33241 test $ac_status = 0; }; }; then :
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33244 $as_echo "yes" >&6; }
33246 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33250 $as_echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.
$ac_ext >&5
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33254 $as_echo "no" >&6; }
33264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33265 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33268 cat confdefs.h
- <<_ACEOF >conftest.c
33271 #include <linux/cred.h>
33272 #include <linux/fs.h>
33273 #include <linux/posix_acl.h>
33279 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33280 posix_acl_release(tmp);
33290 cat - <<_ACEOF >conftest.h
33295 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33296 echo "obj-m := conftest.o" >build
/Makefile
33298 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33299 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33301 (eval $ac_try) 2>&5
33303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33304 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33306 (eval $ac_try) 2>&5
33308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33309 test $ac_status = 0; }; }; then :
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33312 $as_echo "yes" >&6; }
33314 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33318 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33321 cat confdefs.h
- <<_ACEOF >conftest.c
33324 #include <linux/module.h>
33325 #include <linux/cred.h>
33326 #include <linux/fs.h>
33327 #include <linux/posix_acl.h>
33329 MODULE_LICENSE("$ZFS_META_LICENSE");
33335 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33336 posix_acl_release(tmp);
33346 cat - <<_ACEOF >conftest.h
33351 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33352 echo "obj-m := conftest.o" >build
/Makefile
33354 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33355 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33357 (eval $ac_try) 2>&5
33359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33360 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33362 (eval $ac_try) 2>&5
33364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33365 test $ac_status = 0; }; }; then :
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33371 $as_echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.
$ac_ext >&5
33374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33375 $as_echo "yes" >&6; }
33377 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33388 $as_echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.
$ac_ext >&5
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392 $as_echo "no" >&6; }
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33403 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33406 cat confdefs.h
- <<_ACEOF >conftest.c
33409 #include <linux/module.h>
33410 #include <linux/cred.h>
33411 #include <linux/fs.h>
33412 #include <linux/posix_acl.h>
33414 MODULE_LICENSE("$ZFS_META_LICENSE");
33420 struct inode *ip = NULL;
33421 struct posix_acl *acl = posix_acl_alloc(1, 0);
33422 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33423 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33433 cat - <<_ACEOF >conftest.h
33438 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33439 echo "obj-m := conftest.o" >build
/Makefile
33441 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33442 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33444 (eval $ac_try) 2>&5
33446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33447 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33449 (eval $ac_try) 2>&5
33451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33452 test $ac_status = 0; }; }; then :
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33455 $as_echo "yes" >&6; }
33457 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33461 $as_echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.
$ac_ext >&5
33464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33465 $as_echo "no" >&6; }
33475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33476 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33479 cat confdefs.h
- <<_ACEOF >conftest.c
33482 #include <linux/fs.h>
33483 #include <linux/posix_acl.h>
33489 posix_acl_chmod(NULL, 0, 0)
33499 cat - <<_ACEOF >conftest.h
33504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33505 echo "obj-m := conftest.o" >build
/Makefile
33507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33510 (eval $ac_try) 2>&5
33512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33513 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33515 (eval $ac_try) 2>&5
33517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33518 test $ac_status = 0; }; }; then :
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33521 $as_echo "yes" >&6; }
33523 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33527 $as_echo "$as_me: failed program was:" >&5
33528 sed 's/^/| /' conftest.
$ac_ext >&5
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33531 $as_echo "no" >&6; }
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33541 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33544 cat confdefs.h
- <<_ACEOF >conftest.c
33547 #include <linux/fs.h>
33548 #include <linux/posix_acl.h>
33554 __posix_acl_chmod(NULL, 0, 0)
33564 cat - <<_ACEOF >conftest.h
33569 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33570 echo "obj-m := conftest.o" >build
/Makefile
33572 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33573 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33575 (eval $ac_try) 2>&5
33577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33578 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33580 (eval $ac_try) 2>&5
33582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33583 test $ac_status = 0; }; }; then :
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33586 $as_echo "yes" >&6; }
33588 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33592 $as_echo "$as_me: failed program was:" >&5
33593 sed 's/^/| /' conftest.
$ac_ext >&5
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33596 $as_echo "no" >&6; }
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33607 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33610 cat confdefs.h
- <<_ACEOF >conftest.c
33613 #include <linux/fs.h>
33614 #include <linux/posix_acl.h>
33621 posix_acl_equiv_mode(NULL,&tmp);
33631 cat - <<_ACEOF >conftest.h
33636 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33637 echo "obj-m := conftest.o" >build
/Makefile
33639 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33640 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33642 (eval $ac_try) 2>&5
33644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33645 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33647 (eval $ac_try) 2>&5
33649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33650 test $ac_status = 0; }; }; then :
33652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33653 $as_echo "yes" >&6; }
33655 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33659 $as_echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.
$ac_ext >&5
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33663 $as_echo "no" >&6; }
33673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33674 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33677 cat confdefs.h
- <<_ACEOF >conftest.c
33680 #include <linux/fs.h>
33681 #include <linux/posix_acl.h>
33687 struct user_namespace *user_ns = NULL;
33688 const struct posix_acl *acl = NULL;
33691 error = posix_acl_valid(user_ns, acl);
33701 cat - <<_ACEOF >conftest.h
33706 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33707 echo "obj-m := conftest.o" >build
/Makefile
33709 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33710 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33712 (eval $ac_try) 2>&5
33714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33715 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33717 (eval $ac_try) 2>&5
33719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33720 test $ac_status = 0; }; }; then :
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723 $as_echo "yes" >&6; }
33725 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33729 $as_echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.
$ac_ext >&5
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33733 $as_echo "no" >&6; }
33743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33744 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33747 cat confdefs.h
- <<_ACEOF >conftest.c
33750 #include <linux/fs.h>
33752 int permission_fn(struct inode *inode, int mask) { return 0; }
33754 static const struct inode_operations
33755 iops __attribute__ ((unused)) = {
33756 .permission = permission_fn,
33772 cat - <<_ACEOF >conftest.h
33777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33778 echo "obj-m := conftest.o" >build
/Makefile
33780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33781 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33783 (eval $ac_try) 2>&5
33785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33788 (eval $ac_try) 2>&5
33790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33791 test $ac_status = 0; }; }; then :
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33794 $as_echo "yes" >&6; }
33796 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
33800 $as_echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.
$ac_ext >&5
33803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33804 $as_echo "no" >&6; }
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
33815 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
33818 cat confdefs.h
- <<_ACEOF >conftest.c
33821 #include <linux/fs.h>
33823 int permission_fn(struct inode *inode, int mask,
33824 struct nameidata *nd) { return 0; }
33826 static const struct inode_operations
33827 iops __attribute__ ((unused)) = {
33828 .permission = permission_fn,
33844 cat - <<_ACEOF >conftest.h
33849 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33850 echo "obj-m := conftest.o" >build
/Makefile
33852 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33853 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33855 (eval $ac_try) 2>&5
33857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33858 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33860 (eval $ac_try) 2>&5
33862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33863 test $ac_status = 0; }; }; then :
33865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33866 $as_echo "yes" >&6; }
33868 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
33871 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
33875 $as_echo "$as_me: failed program was:" >&5
33876 sed 's/^/| /' conftest.
$ac_ext >&5
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33879 $as_echo "no" >&6; }
33889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
33890 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
33893 cat confdefs.h
- <<_ACEOF >conftest.c
33896 #include <linux/fs.h>
33898 int check_acl_fn(struct inode *inode, int mask) { return 0; }
33900 static const struct inode_operations
33901 iops __attribute__ ((unused)) = {
33902 .check_acl = check_acl_fn,
33918 cat - <<_ACEOF >conftest.h
33923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33924 echo "obj-m := conftest.o" >build
/Makefile
33926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33927 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33929 (eval $ac_try) 2>&5
33931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33932 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33934 (eval $ac_try) 2>&5
33936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33937 test $ac_status = 0; }; }; then :
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33940 $as_echo "yes" >&6; }
33942 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
33946 $as_echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.
$ac_ext >&5
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950 $as_echo "no" >&6; }
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
33961 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
33964 cat confdefs.h
- <<_ACEOF >conftest.c
33967 #include <linux/fs.h>
33969 int check_acl_fn(struct inode *inode, int mask,
33970 unsigned int flags) { return 0; }
33972 static const struct inode_operations
33973 iops __attribute__ ((unused)) = {
33974 .check_acl = check_acl_fn,
33990 cat - <<_ACEOF >conftest.h
33995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33996 echo "obj-m := conftest.o" >build
/Makefile
33998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33999 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34001 (eval $ac_try) 2>&5
34003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34004 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34006 (eval $ac_try) 2>&5
34008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34009 test $ac_status = 0; }; }; then :
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34012 $as_echo "yes" >&6; }
34014 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34017 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34021 $as_echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.
$ac_ext >&5
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34025 $as_echo "no" >&6; }
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34036 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34039 cat confdefs.h
- <<_ACEOF >conftest.c
34042 #include <linux/fs.h>
34044 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34047 static const struct inode_operations
34048 iops __attribute__ ((unused)) = {
34049 .get_acl = get_acl_fn,
34065 cat - <<_ACEOF >conftest.h
34070 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34071 echo "obj-m := conftest.o" >build
/Makefile
34073 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34074 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34076 (eval $ac_try) 2>&5
34078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34079 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34081 (eval $ac_try) 2>&5
34083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34084 test $ac_status = 0; }; }; then :
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34087 $as_echo "yes" >&6; }
34089 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34093 $as_echo "$as_me: failed program was:" >&5
34094 sed 's/^/| /' conftest.
$ac_ext >&5
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34097 $as_echo "no" >&6; }
34107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34108 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34111 cat confdefs.h
- <<_ACEOF >conftest.c
34114 #include <linux/fs.h>
34116 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34119 static const struct inode_operations
34120 iops __attribute__ ((unused)) = {
34121 .set_acl = set_acl_fn,
34137 cat - <<_ACEOF >conftest.h
34142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34143 echo "obj-m := conftest.o" >build
/Makefile
34145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34146 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34148 (eval $ac_try) 2>&5
34150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34153 (eval $ac_try) 2>&5
34155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34156 test $ac_status = 0; }; }; then :
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34159 $as_echo "yes" >&6; }
34161 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34165 $as_echo "$as_me: failed program was:" >&5
34166 sed 's/^/| /' conftest.
$ac_ext >&5
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34169 $as_echo "no" >&6; }
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34181 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34184 cat confdefs.h
- <<_ACEOF >conftest.c
34187 #include <linux/fs.h>
34190 const struct path *p, struct kstat *k,
34191 u32 request_mask, unsigned int query_flags)
34194 static const struct inode_operations
34195 iops __attribute__ ((unused)) = {
34196 .getattr = test_getattr,
34212 cat - <<_ACEOF >conftest.h
34217 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34218 echo "obj-m := conftest.o" >build
/Makefile
34220 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34221 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34223 (eval $ac_try) 2>&5
34225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34226 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34228 (eval $ac_try) 2>&5
34230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34231 test $ac_status = 0; }; }; then :
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34234 $as_echo "yes" >&6; }
34236 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34240 $as_echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.
$ac_ext >&5
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34244 $as_echo "no" >&6; }
34254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34255 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34258 cat confdefs.h
- <<_ACEOF >conftest.c
34261 #include <linux/fs.h>
34264 struct vfsmount *mnt, struct dentry *d,
34268 static const struct inode_operations
34269 iops __attribute__ ((unused)) = {
34270 .getattr = test_getattr,
34286 cat - <<_ACEOF >conftest.h
34291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34292 echo "obj-m := conftest.o" >build
/Makefile
34294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34295 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34297 (eval $ac_try) 2>&5
34299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34300 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34302 (eval $ac_try) 2>&5
34304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34305 test $ac_status = 0; }; }; then :
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34308 $as_echo "yes" >&6; }
34310 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34314 $as_echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.
$ac_ext >&5
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34318 $as_echo "no" >&6; }
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34330 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34333 cat confdefs.h
- <<_ACEOF >conftest.c
34336 #include <linux/fs.h>
34342 struct inode inode;
34343 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34353 cat - <<_ACEOF >conftest.h
34358 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34359 echo "obj-m := conftest.o" >build
/Makefile
34361 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34362 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34364 (eval $ac_try) 2>&5
34366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34367 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34369 (eval $ac_try) 2>&5
34371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34372 test $ac_status = 0; }; }; then :
34374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34375 $as_echo "yes" >&6; }
34377 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34381 $as_echo "$as_me: failed program was:" >&5
34382 sed 's/^/| /' conftest.
$ac_ext >&5
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385 $as_echo "no" >&6; }
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34396 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34399 cat confdefs.h
- <<_ACEOF >conftest.c
34402 #include <linux/fs.h>
34408 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34418 cat - <<_ACEOF >conftest.h
34423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34424 echo "obj-m := conftest.o" >build
/Makefile
34426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34429 (eval $ac_try) 2>&5
34431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34434 (eval $ac_try) 2>&5
34436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34437 test $ac_status = 0; }; }; then :
34439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34440 $as_echo "yes" >&6; }
34442 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34446 $as_echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.
$ac_ext >&5
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34461 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34465 cat confdefs.h
- <<_ACEOF >conftest.c
34468 #include <linux/fs.h>
34470 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34471 static struct super_operations sops __attribute__ ((unused)) = {
34472 .show_options = show_options,
34488 cat - <<_ACEOF >conftest.h
34493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34494 echo "obj-m := conftest.o" >build
/Makefile
34496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34497 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34499 (eval $ac_try) 2>&5
34501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34502 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34504 (eval $ac_try) 2>&5
34506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34507 test $ac_status = 0; }; }; then :
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34510 $as_echo "yes" >&6; }
34512 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34516 $as_echo "$as_me: failed program was:" >&5
34517 sed 's/^/| /' conftest.
$ac_ext >&5
34519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34520 $as_echo "no" >&6; }
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34531 $as_echo_n "checking whether file_inode() is available... " >&6; }
34534 cat confdefs.h
- <<_ACEOF >conftest.c
34537 #include <linux/fs.h>
34543 struct file *f = NULL;
34554 cat - <<_ACEOF >conftest.h
34559 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34560 echo "obj-m := conftest.o" >build
/Makefile
34562 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34563 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34565 (eval $ac_try) 2>&5
34567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34568 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34570 (eval $ac_try) 2>&5
34572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34573 test $ac_status = 0; }; }; then :
34575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34576 $as_echo "yes" >&6; }
34578 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34582 $as_echo "$as_me: failed program was:" >&5
34583 sed 's/^/| /' conftest.
$ac_ext >&5
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34586 $as_echo "no" >&6; }
34596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34597 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34600 cat confdefs.h
- <<_ACEOF >conftest.c
34603 #include <linux/fs.h>
34609 struct file *f = NULL;
34620 cat - <<_ACEOF >conftest.h
34625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34626 echo "obj-m := conftest.o" >build
/Makefile
34628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34629 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34631 (eval $ac_try) 2>&5
34633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34634 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34636 (eval $ac_try) 2>&5
34638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34639 test $ac_status = 0; }; }; then :
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34642 $as_echo "yes" >&6; }
34644 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34648 $as_echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.
$ac_ext >&5
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34652 $as_echo "no" >&6; }
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34663 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34667 cat confdefs.h
- <<_ACEOF >conftest.c
34670 #include <linux/fs.h>
34672 int test_fsync(struct file *f, struct dentry *dentry, int x)
34675 static const struct file_operations
34676 fops __attribute__ ((unused)) = {
34677 .fsync = test_fsync,
34693 cat - <<_ACEOF >conftest.h
34698 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34699 echo "obj-m := conftest.o" >build
/Makefile
34701 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34702 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34704 (eval $ac_try) 2>&5
34706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34707 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34709 (eval $ac_try) 2>&5
34711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34712 test $ac_status = 0; }; }; then :
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34715 $as_echo "dentry" >&6; }
34717 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34721 $as_echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.
$ac_ext >&5
34735 cat confdefs.h
- <<_ACEOF >conftest.c
34738 #include <linux/fs.h>
34740 int test_fsync(struct file *f, int x) { return 0; }
34742 static const struct file_operations
34743 fops __attribute__ ((unused)) = {
34744 .fsync = test_fsync,
34760 cat - <<_ACEOF >conftest.h
34765 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34766 echo "obj-m := conftest.o" >build
/Makefile
34768 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34769 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34771 (eval $ac_try) 2>&5
34773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34774 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34776 (eval $ac_try) 2>&5
34778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34779 test $ac_status = 0; }; }; then :
34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
34782 $as_echo "no dentry" >&6; }
34784 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
34788 $as_echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.
$ac_ext >&5
34802 cat confdefs.h
- <<_ACEOF >conftest.c
34805 #include <linux/fs.h>
34807 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
34810 static const struct file_operations
34811 fops __attribute__ ((unused)) = {
34812 .fsync = test_fsync,
34828 cat - <<_ACEOF >conftest.h
34833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34834 echo "obj-m := conftest.o" >build
/Makefile
34836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34837 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34839 (eval $ac_try) 2>&5
34841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34842 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34844 (eval $ac_try) 2>&5
34846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34847 test $ac_status = 0; }; }; then :
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
34850 $as_echo "range" >&6; }
34852 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
34856 $as_echo "$as_me: failed program was:" >&5
34857 sed 's/^/| /' conftest.
$ac_ext >&5
34869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
34870 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
34873 cat confdefs.h
- <<_ACEOF >conftest.c
34876 #include <linux/fs.h>
34877 void evict_inode (struct inode * t) { return; }
34878 static struct super_operations sops __attribute__ ((unused)) = {
34879 .evict_inode = evict_inode,
34895 cat - <<_ACEOF >conftest.h
34900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34901 echo "obj-m := conftest.o" >build
/Makefile
34903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34904 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34906 (eval $ac_try) 2>&5
34908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34911 (eval $ac_try) 2>&5
34913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34914 test $ac_status = 0; }; }; then :
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34917 $as_echo "yes" >&6; }
34919 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
34923 $as_echo "$as_me: failed program was:" >&5
34924 sed 's/^/| /' conftest.
$ac_ext >&5
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34927 $as_echo "no" >&6; }
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
34938 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
34941 cat confdefs.h
- <<_ACEOF >conftest.c
34944 #include <linux/fs.h>
34946 void dirty_inode(struct inode *a, int b) { return; }
34948 static const struct super_operations
34949 sops __attribute__ ((unused)) = {
34950 .dirty_inode = dirty_inode,
34966 cat - <<_ACEOF >conftest.h
34971 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34972 echo "obj-m := conftest.o" >build
/Makefile
34974 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34975 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34977 (eval $ac_try) 2>&5
34979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34980 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34982 (eval $ac_try) 2>&5
34984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34985 test $ac_status = 0; }; }; then :
34987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34988 $as_echo "yes" >&6; }
34990 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
34994 $as_echo "$as_me: failed program was:" >&5
34995 sed 's/^/| /' conftest.
$ac_ext >&5
34997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34998 $as_echo "no" >&6; }
35008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35009 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35012 cat confdefs.h
- <<_ACEOF >conftest.c
35015 #include <linux/fs.h>
35017 int nr_cached_objects(struct super_block *sb) { return 0; }
35019 static const struct super_operations
35020 sops __attribute__ ((unused)) = {
35021 .nr_cached_objects = nr_cached_objects,
35037 cat - <<_ACEOF >conftest.h
35042 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35043 echo "obj-m := conftest.o" >build
/Makefile
35045 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35046 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35048 (eval $ac_try) 2>&5
35050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35051 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35053 (eval $ac_try) 2>&5
35055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35056 test $ac_status = 0; }; }; then :
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35059 $as_echo "yes" >&6; }
35061 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35065 $as_echo "$as_me: failed program was:" >&5
35066 sed 's/^/| /' conftest.
$ac_ext >&5
35068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35069 $as_echo "no" >&6; }
35079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35080 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35083 cat confdefs.h
- <<_ACEOF >conftest.c
35086 #include <linux/fs.h>
35088 void free_cached_objects(struct super_block *sb, int x)
35091 static const struct super_operations
35092 sops __attribute__ ((unused)) = {
35093 .free_cached_objects = free_cached_objects,
35109 cat - <<_ACEOF >conftest.h
35114 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35115 echo "obj-m := conftest.o" >build
/Makefile
35117 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35118 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35120 (eval $ac_try) 2>&5
35122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35123 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35125 (eval $ac_try) 2>&5
35127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35128 test $ac_status = 0; }; }; then :
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35131 $as_echo "yes" >&6; }
35133 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35137 $as_echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.
$ac_ext >&5
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35141 $as_echo "no" >&6; }
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35153 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35156 cat confdefs.h
- <<_ACEOF >conftest.c
35159 #include <linux/fs.h>
35161 long test_fallocate(struct file *file, int mode,
35162 loff_t offset, loff_t len) { return 0; }
35164 static const struct file_operations
35165 fops __attribute__ ((unused)) = {
35166 .fallocate = test_fallocate,
35182 cat - <<_ACEOF >conftest.h
35187 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35188 echo "obj-m := conftest.o" >build
/Makefile
35190 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35191 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35193 (eval $ac_try) 2>&5
35195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35196 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35198 (eval $ac_try) 2>&5
35200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35201 test $ac_status = 0; }; }; then :
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204 $as_echo "yes" >&6; }
35206 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35210 $as_echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.
$ac_ext >&5
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35214 $as_echo "no" >&6; }
35224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35225 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35228 cat confdefs.h
- <<_ACEOF >conftest.c
35231 #include <linux/fs.h>
35233 long test_fallocate(struct inode *inode, int mode,
35234 loff_t offset, loff_t len) { return 0; }
35236 static const struct inode_operations
35237 fops __attribute__ ((unused)) = {
35238 .fallocate = test_fallocate,
35254 cat - <<_ACEOF >conftest.h
35259 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35260 echo "obj-m := conftest.o" >build
/Makefile
35262 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35263 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35265 (eval $ac_try) 2>&5
35267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35268 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35270 (eval $ac_try) 2>&5
35272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35273 test $ac_status = 0; }; }; then :
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35276 $as_echo "yes" >&6; }
35278 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35282 $as_echo "$as_me: failed program was:" >&5
35283 sed 's/^/| /' conftest.
$ac_ext >&5
35285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286 $as_echo "no" >&6; }
35297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35298 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35301 cat confdefs.h
- <<_ACEOF >conftest.c
35304 #include <linux/fs.h>
35306 static const struct file_operations
35307 fops __attribute__ ((unused)) = {
35324 cat - <<_ACEOF >conftest.h
35329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35330 echo "obj-m := conftest.o" >build
/Makefile
35332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35335 (eval $ac_try) 2>&5
35337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35340 (eval $ac_try) 2>&5
35342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35343 test $ac_status = 0; }; }; then :
35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35346 $as_echo "yes" >&6; }
35348 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35352 $as_echo "$as_me: failed program was:" >&5
35353 sed 's/^/| /' conftest.
$ac_ext >&5
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356 $as_echo "no" >&6; }
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35367 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35370 cat confdefs.h
- <<_ACEOF >conftest.c
35373 #include <linux/fs.h>
35375 int mkdir(struct inode *inode, struct dentry *dentry,
35376 umode_t umode) { return 0; }
35378 static const struct inode_operations
35379 iops __attribute__ ((unused)) = {
35396 cat - <<_ACEOF >conftest.h
35401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35402 echo "obj-m := conftest.o" >build
/Makefile
35404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35407 (eval $ac_try) 2>&5
35409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35412 (eval $ac_try) 2>&5
35414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35415 test $ac_status = 0; }; }; then :
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35418 $as_echo "yes" >&6; }
35420 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35424 $as_echo "$as_me: failed program was:" >&5
35425 sed 's/^/| /' conftest.
$ac_ext >&5
35427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35428 $as_echo "no" >&6; }
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35439 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35442 cat confdefs.h
- <<_ACEOF >conftest.c
35445 #include <linux/fs.h>
35447 struct dentry *inode_lookup(struct inode *inode,
35448 struct dentry *dentry, struct nameidata *nidata)
35451 static const struct inode_operations iops
35452 __attribute__ ((unused)) = {
35453 .lookup = inode_lookup,
35469 cat - <<_ACEOF >conftest.h
35474 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35475 echo "obj-m := conftest.o" >build
/Makefile
35477 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35478 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35480 (eval $ac_try) 2>&5
35482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35483 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35485 (eval $ac_try) 2>&5
35487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35488 test $ac_status = 0; }; }; then :
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35491 $as_echo "yes" >&6; }
35493 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35497 $as_echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.
$ac_ext >&5
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35501 $as_echo "no" >&6; }
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35512 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35515 cat confdefs.h
- <<_ACEOF >conftest.c
35518 #include <linux/fs.h>
35520 #ifdef HAVE_MKDIR_UMODE_T
35521 int inode_create(struct inode *inode ,struct dentry *dentry,
35522 umode_t umode, struct nameidata *nidata) { return 0; }
35524 int inode_create(struct inode *inode,struct dentry *dentry,
35525 int umode, struct nameidata * nidata) { return 0; }
35528 static const struct inode_operations
35529 iops __attribute__ ((unused)) = {
35530 .create = inode_create,
35546 cat - <<_ACEOF >conftest.h
35551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35552 echo "obj-m := conftest.o" >build
/Makefile
35554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35555 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35557 (eval $ac_try) 2>&5
35559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35560 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35562 (eval $ac_try) 2>&5
35564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35565 test $ac_status = 0; }; }; then :
35567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35568 $as_echo "yes" >&6; }
35570 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35574 $as_echo "$as_me: failed program was:" >&5
35575 sed 's/^/| /' conftest.
$ac_ext >&5
35577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35578 $as_echo "no" >&6; }
35588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35589 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35592 cat confdefs.h
- <<_ACEOF >conftest.c
35595 #include <linux/fs.h>
35596 const char *get_link(struct dentry *de, struct inode *ip,
35597 struct delayed_call *done) { return "symlink"; }
35598 static struct inode_operations
35599 iops __attribute__ ((unused)) = {
35600 .get_link = get_link,
35616 cat - <<_ACEOF >conftest.h
35621 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35622 echo "obj-m := conftest.o" >build
/Makefile
35624 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35625 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35627 (eval $ac_try) 2>&5
35629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35630 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35632 (eval $ac_try) 2>&5
35634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35635 test $ac_status = 0; }; }; then :
35637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35638 $as_echo "yes" >&6; }
35640 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35644 $as_echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.
$ac_ext >&5
35647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35648 $as_echo "no" >&6; }
35649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35650 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35653 cat confdefs.h
- <<_ACEOF >conftest.c
35656 #include <linux/fs.h>
35657 const char *get_link(struct dentry *de, struct
35658 inode *ip, void **cookie) { return "symlink"; }
35659 static struct inode_operations
35660 iops __attribute__ ((unused)) = {
35661 .get_link = get_link,
35677 cat - <<_ACEOF >conftest.h
35682 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35683 echo "obj-m := conftest.o" >build
/Makefile
35685 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35686 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35688 (eval $ac_try) 2>&5
35690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35691 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35693 (eval $ac_try) 2>&5
35695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35696 test $ac_status = 0; }; }; then :
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699 $as_echo "yes" >&6; }
35701 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35705 $as_echo "$as_me: failed program was:" >&5
35706 sed 's/^/| /' conftest.
$ac_ext >&5
35708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35709 $as_echo "no" >&6; }
35711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35712 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35715 cat confdefs.h
- <<_ACEOF >conftest.c
35718 #include <linux/fs.h>
35719 const char *follow_link(struct dentry *de,
35720 void **cookie) { return "symlink"; }
35721 static struct inode_operations
35722 iops __attribute__ ((unused)) = {
35723 .follow_link = follow_link,
35739 cat - <<_ACEOF >conftest.h
35744 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35745 echo "obj-m := conftest.o" >build
/Makefile
35747 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35748 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35750 (eval $ac_try) 2>&5
35752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35753 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35755 (eval $ac_try) 2>&5
35757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35758 test $ac_status = 0; }; }; then :
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35761 $as_echo "yes" >&6; }
35763 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
35767 $as_echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.
$ac_ext >&5
35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35771 $as_echo "no" >&6; }
35772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
35773 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
35776 cat confdefs.h
- <<_ACEOF >conftest.c
35779 #include <linux/fs.h>
35780 void *follow_link(struct dentry *de, struct
35781 nameidata *nd) { return (void *)NULL; }
35782 static struct inode_operations
35783 iops __attribute__ ((unused)) = {
35784 .follow_link = follow_link,
35800 cat - <<_ACEOF >conftest.h
35805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35806 echo "obj-m := conftest.o" >build
/Makefile
35808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35809 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35811 (eval $ac_try) 2>&5
35813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35814 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35816 (eval $ac_try) 2>&5
35818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35819 test $ac_status = 0; }; }; then :
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822 $as_echo "yes" >&6; }
35824 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
35828 $as_echo "$as_me: failed program was:" >&5
35829 sed 's/^/| /' conftest.
$ac_ext >&5
35831 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
35865 cat confdefs.h
- <<_ACEOF >conftest.c
35868 #if !defined(HAVE_GET_LINK_DELAYED)
35869 #error "Expecting get_link() delayed done"
35885 cat - <<_ACEOF >conftest.h
35890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35891 echo "obj-m := conftest.o" >build
/Makefile
35893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35896 (eval $ac_try) 2>&5
35898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35899 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35901 (eval $ac_try) 2>&5
35903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35904 test $ac_status = 0; }; }; then :
35907 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
35911 $as_echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.
$ac_ext >&5
35914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
35915 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
35918 cat confdefs.h
- <<_ACEOF >conftest.c
35921 #include <linux/fs.h>
35922 void put_link(struct inode *ip, void *cookie)
35924 static struct inode_operations
35925 iops __attribute__ ((unused)) = {
35926 .put_link = put_link,
35942 cat - <<_ACEOF >conftest.h
35947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35948 echo "obj-m := conftest.o" >build
/Makefile
35950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35951 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35953 (eval $ac_try) 2>&5
35955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35956 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35958 (eval $ac_try) 2>&5
35960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35961 test $ac_status = 0; }; }; then :
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35964 $as_echo "yes" >&6; }
35966 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
35970 $as_echo "$as_me: failed program was:" >&5
35971 sed 's/^/| /' conftest.
$ac_ext >&5
35973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35974 $as_echo "no" >&6; }
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
35976 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
35979 cat confdefs.h
- <<_ACEOF >conftest.c
35982 #include <linux/fs.h>
35983 void put_link(struct dentry *de, struct
35984 nameidata *nd, void *ptr) { return; }
35985 static struct inode_operations
35986 iops __attribute__ ((unused)) = {
35987 .put_link = put_link,
36003 cat - <<_ACEOF >conftest.h
36008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36009 echo "obj-m := conftest.o" >build
/Makefile
36011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36012 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36014 (eval $ac_try) 2>&5
36016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36017 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36019 (eval $ac_try) 2>&5
36021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36022 test $ac_status = 0; }; }; then :
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36025 $as_echo "yes" >&6; }
36027 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36031 $as_echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.
$ac_ext >&5
36034 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36059 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36062 cat confdefs.h
- <<_ACEOF >conftest.c
36065 #include <linux/fs.h>
36066 int tmpfile(struct inode *inode, struct dentry *dentry,
36067 umode_t mode) { return 0; }
36068 static struct inode_operations
36069 iops __attribute__ ((unused)) = {
36070 .tmpfile = tmpfile,
36086 cat - <<_ACEOF >conftest.h
36091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36092 echo "obj-m := conftest.o" >build
/Makefile
36094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36095 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36097 (eval $ac_try) 2>&5
36099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36100 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36102 (eval $ac_try) 2>&5
36104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36105 test $ac_status = 0; }; }; then :
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108 $as_echo "yes" >&6; }
36110 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36114 $as_echo "$as_me: failed program was:" >&5
36115 sed 's/^/| /' conftest.
$ac_ext >&5
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36118 $as_echo "no" >&6; }
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36129 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36132 cat confdefs.h
- <<_ACEOF >conftest.c
36135 #include <linux/fs.h>
36136 void truncate_range(struct inode *inode, loff_t start,
36137 loff_t end) { return; }
36138 static struct inode_operations iops __attribute__ ((unused)) = {
36139 .truncate_range = truncate_range,
36155 cat - <<_ACEOF >conftest.h
36160 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36161 echo "obj-m := conftest.o" >build
/Makefile
36163 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36164 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36166 (eval $ac_try) 2>&5
36168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36169 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36171 (eval $ac_try) 2>&5
36173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36174 test $ac_status = 0; }; }; then :
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36177 $as_echo "yes" >&6; }
36179 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36183 $as_echo "$as_me: failed program was:" >&5
36184 sed 's/^/| /' conftest.
$ac_ext >&5
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36187 $as_echo "no" >&6; }
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36198 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36201 cat confdefs.h
- <<_ACEOF >conftest.c
36204 #include <linux/dcache.h>
36205 struct vfsmount *d_automount(struct path *p) { return NULL; }
36206 struct dentry_operations dops __attribute__ ((unused)) = {
36207 .d_automount = d_automount,
36223 cat - <<_ACEOF >conftest.h
36228 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36229 echo "obj-m := conftest.o" >build
/Makefile
36231 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36232 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36234 (eval $ac_try) 2>&5
36236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36237 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36239 (eval $ac_try) 2>&5
36241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36242 test $ac_status = 0; }; }; then :
36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36245 $as_echo "yes" >&6; }
36247 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36251 $as_echo "$as_me: failed program was:" >&5
36252 sed 's/^/| /' conftest.
$ac_ext >&5
36254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36255 $as_echo "no" >&6; }
36265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36266 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36269 cat confdefs.h
- <<_ACEOF >conftest.c
36272 #include <linux/exportfs.h>
36273 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36274 struct inode *parent) { return 0; }
36275 static struct export_operations eops __attribute__ ((unused))={
36276 .encode_fh = encode_fh,
36292 cat - <<_ACEOF >conftest.h
36297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36298 echo "obj-m := conftest.o" >build
/Makefile
36300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36301 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36303 (eval $ac_try) 2>&5
36305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36306 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36308 (eval $ac_try) 2>&5
36310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36311 test $ac_status = 0; }; }; then :
36313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36314 $as_echo "yes" >&6; }
36316 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36320 $as_echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.
$ac_ext >&5
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36324 $as_echo "no" >&6; }
36334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36335 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36338 cat confdefs.h
- <<_ACEOF >conftest.c
36341 #include <linux/exportfs.h>
36342 int commit_metadata(struct inode *inode) { return 0; }
36343 static struct export_operations eops __attribute__ ((unused))={
36344 .commit_metadata = commit_metadata,
36360 cat - <<_ACEOF >conftest.h
36365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36366 echo "obj-m := conftest.o" >build
/Makefile
36368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36371 (eval $ac_try) 2>&5
36373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36374 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36376 (eval $ac_try) 2>&5
36378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36379 test $ac_status = 0; }; }; then :
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36382 $as_echo "yes" >&6; }
36384 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36388 $as_echo "$as_me: failed program was:" >&5
36389 sed 's/^/| /' conftest.
$ac_ext >&5
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36392 $as_echo "no" >&6; }
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36402 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36406 cat confdefs.h
- <<_ACEOF >conftest.c
36409 #include <linux/fs.h>
36425 cat - <<_ACEOF >conftest.h
36430 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36431 echo "obj-m := conftest.o" >build
/Makefile
36433 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36434 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36436 (eval $ac_try) 2>&5
36438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36439 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36441 (eval $ac_try) 2>&5
36443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36444 test $ac_status = 0; }; }; then :
36447 $as_echo "$as_me: failed program was:" >&5
36448 sed 's/^/| /' conftest.
$ac_ext >&5
36456 if test $rc -ne 0; then :
36458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36459 $as_echo "no" >&6; }
36462 if test "x$enable_linux_builtin" != xyes
; then
36464 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36467 if test $rc -ne 0; then
36469 for file in fs
/inode.c
; do
36470 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36471 "$LINUX/$file" 2>/dev
/null
36473 if test $rc -eq 0; then
36478 if test $export -eq 0; then :
36488 if test $rc -ne 0; then :
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36491 $as_echo "no" >&6; }
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36496 $as_echo "yes" >&6; }
36498 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36506 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36510 cat confdefs.h
- <<_ACEOF >conftest.c
36513 #include <linux/fs.h>
36519 struct dentry *dentry = NULL;
36520 struct iattr *attr = NULL;
36523 error = setattr_prepare(dentry, attr);
36533 cat - <<_ACEOF >conftest.h
36538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36539 echo "obj-m := conftest.o" >build
/Makefile
36541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36542 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36544 (eval $ac_try) 2>&5
36546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36547 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36549 (eval $ac_try) 2>&5
36551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36552 test $ac_status = 0; }; }; then :
36555 $as_echo "$as_me: failed program was:" >&5
36556 sed 's/^/| /' conftest.
$ac_ext >&5
36564 if test $rc -ne 0; then :
36566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36567 $as_echo "no" >&6; }
36570 if test "x$enable_linux_builtin" != xyes
; then
36572 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36573 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36575 if test $rc -ne 0; then
36577 for file in fs
/attr.c
; do
36578 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36579 "$LINUX/$file" 2>/dev
/null
36581 if test $rc -eq 0; then
36586 if test $export -eq 0; then :
36596 if test $rc -ne 0; then :
36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36599 $as_echo "no" >&6; }
36603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36604 $as_echo "yes" >&6; }
36606 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36614 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36618 cat confdefs.h
- <<_ACEOF >conftest.c
36621 #include <linux/fs.h>
36627 insert_inode_locked(NULL);
36637 cat - <<_ACEOF >conftest.h
36642 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36643 echo "obj-m := conftest.o" >build
/Makefile
36645 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36646 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36648 (eval $ac_try) 2>&5
36650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36651 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36653 (eval $ac_try) 2>&5
36655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36656 test $ac_status = 0; }; }; then :
36659 $as_echo "$as_me: failed program was:" >&5
36660 sed 's/^/| /' conftest.
$ac_ext >&5
36668 if test $rc -ne 0; then :
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671 $as_echo "no" >&6; }
36674 if test "x$enable_linux_builtin" != xyes
; then
36676 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36677 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36679 if test $rc -ne 0; then
36681 for file in fs
/inode.c
; do
36682 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36683 "$LINUX/$file" 2>/dev
/null
36685 if test $rc -eq 0; then
36690 if test $export -eq 0; then :
36700 if test $rc -ne 0; then :
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36703 $as_echo "no" >&6; }
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36708 $as_echo "yes" >&6; }
36710 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36718 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36722 cat confdefs.h
- <<_ACEOF >conftest.c
36725 #include <linux/dcache.h>
36741 cat - <<_ACEOF >conftest.h
36746 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36747 echo "obj-m := conftest.o" >build
/Makefile
36749 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36750 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36752 (eval $ac_try) 2>&5
36754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36755 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36757 (eval $ac_try) 2>&5
36759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36760 test $ac_status = 0; }; }; then :
36763 $as_echo "$as_me: failed program was:" >&5
36764 sed 's/^/| /' conftest.
$ac_ext >&5
36772 if test $rc -ne 0; then :
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36775 $as_echo "no" >&6; }
36778 if test "x$enable_linux_builtin" != xyes
; then
36780 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
36781 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36783 if test $rc -ne 0; then
36785 for file in fs
/dcache.c
; do
36786 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
36787 "$LINUX/$file" 2>/dev
/null
36789 if test $rc -eq 0; then
36794 if test $export -eq 0; then :
36804 if test $rc -ne 0; then :
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36807 $as_echo "no" >&6; }
36811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36812 $as_echo "yes" >&6; }
36814 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
36821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
36822 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
36826 cat confdefs.h
- <<_ACEOF >conftest.c
36829 #include <linux/dcache.h>
36835 d_obtain_alias(NULL);
36845 cat - <<_ACEOF >conftest.h
36850 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36851 echo "obj-m := conftest.o" >build
/Makefile
36853 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36854 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36856 (eval $ac_try) 2>&5
36858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36859 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36861 (eval $ac_try) 2>&5
36863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36864 test $ac_status = 0; }; }; then :
36867 $as_echo "$as_me: failed program was:" >&5
36868 sed 's/^/| /' conftest.
$ac_ext >&5
36876 if test $rc -ne 0; then :
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36879 $as_echo "no" >&6; }
36882 if test "x$enable_linux_builtin" != xyes
; then
36884 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
36885 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36887 if test $rc -ne 0; then
36889 for file in fs
/dcache.c
; do
36890 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
36891 "$LINUX/$file" 2>/dev
/null
36893 if test $rc -eq 0; then
36898 if test $export -eq 0; then :
36908 if test $rc -ne 0; then :
36910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36911 $as_echo "no" >&6; }
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36916 $as_echo "yes" >&6; }
36918 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
36925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
36926 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
36930 cat confdefs.h
- <<_ACEOF >conftest.c
36933 #include <linux/dcache.h>
36939 struct inode *ip = NULL;
36940 d_prune_aliases(ip);
36950 cat - <<_ACEOF >conftest.h
36955 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36956 echo "obj-m := conftest.o" >build
/Makefile
36958 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36959 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36961 (eval $ac_try) 2>&5
36963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36964 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36966 (eval $ac_try) 2>&5
36968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36969 test $ac_status = 0; }; }; then :
36972 $as_echo "$as_me: failed program was:" >&5
36973 sed 's/^/| /' conftest.
$ac_ext >&5
36981 if test $rc -ne 0; then :
36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36984 $as_echo "no" >&6; }
36987 if test "x$enable_linux_builtin" != xyes
; then
36989 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
36990 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36992 if test $rc -ne 0; then
36994 for file in fs
/dcache.c
; do
36995 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
36996 "$LINUX/$file" 2>/dev
/null
36998 if test $rc -eq 0; then
37003 if test $export -eq 0; then :
37013 if test $rc -ne 0; then :
37015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37016 $as_echo "no" >&6; }
37020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37021 $as_echo "yes" >&6; }
37023 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37031 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37035 cat confdefs.h
- <<_ACEOF >conftest.c
37038 #include <linux/dcache.h>
37044 d_set_d_op(NULL, NULL);
37054 cat - <<_ACEOF >conftest.h
37059 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37060 echo "obj-m := conftest.o" >build
/Makefile
37062 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37063 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37065 (eval $ac_try) 2>&5
37067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37068 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37070 (eval $ac_try) 2>&5
37072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37073 test $ac_status = 0; }; }; then :
37076 $as_echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.
$ac_ext >&5
37085 if test $rc -ne 0; then :
37087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088 $as_echo "no" >&6; }
37091 if test "x$enable_linux_builtin" != xyes
; then
37093 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37094 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37096 if test $rc -ne 0; then
37098 for file in fs
/dcache.c
; do
37099 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37100 "$LINUX/$file" 2>/dev
/null
37102 if test $rc -eq 0; then
37107 if test $export -eq 0; then :
37117 if test $rc -ne 0; then :
37119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37120 $as_echo "no" >&6; }
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125 $as_echo "yes" >&6; }
37127 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37136 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37139 cat confdefs.h
- <<_ACEOF >conftest.c
37142 #include <linux/dcache.h>
37144 int revalidate (struct dentry *dentry,
37145 struct nameidata *nidata) { return 0; }
37147 static const struct dentry_operations
37148 dops __attribute__ ((unused)) = {
37149 .d_revalidate = revalidate,
37165 cat - <<_ACEOF >conftest.h
37170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37171 echo "obj-m := conftest.o" >build
/Makefile
37173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37176 (eval $ac_try) 2>&5
37178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37181 (eval $ac_try) 2>&5
37183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37184 test $ac_status = 0; }; }; then :
37186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37187 $as_echo "yes" >&6; }
37189 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37193 $as_echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.
$ac_ext >&5
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37197 $as_echo "no" >&6; }
37207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37208 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37211 cat confdefs.h
- <<_ACEOF >conftest.c
37214 #include <linux/dcache.h>
37216 const struct dentry_operations test_d_op = {
37217 .d_revalidate = NULL,
37224 struct dentry d __attribute__ ((unused));
37226 d.d_op = &test_d_op;
37236 cat - <<_ACEOF >conftest.h
37241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37242 echo "obj-m := conftest.o" >build
/Makefile
37244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37247 (eval $ac_try) 2>&5
37249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37252 (eval $ac_try) 2>&5
37254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37255 test $ac_status = 0; }; }; then :
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37258 $as_echo "yes" >&6; }
37260 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37264 $as_echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.
$ac_ext >&5
37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37268 $as_echo "no" >&6; }
37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37278 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37282 cat confdefs.h
- <<_ACEOF >conftest.c
37285 #include <linux/mm.h>
37291 truncate_setsize(NULL, 0);
37301 cat - <<_ACEOF >conftest.h
37306 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37307 echo "obj-m := conftest.o" >build
/Makefile
37309 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37310 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37312 (eval $ac_try) 2>&5
37314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37315 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37317 (eval $ac_try) 2>&5
37319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37320 test $ac_status = 0; }; }; then :
37323 $as_echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.
$ac_ext >&5
37332 if test $rc -ne 0; then :
37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37335 $as_echo "no" >&6; }
37338 if test "x$enable_linux_builtin" != xyes
; then
37340 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37341 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37343 if test $rc -ne 0; then
37345 for file in mm
/truncate.c
; do
37346 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37347 "$LINUX/$file" 2>/dev
/null
37349 if test $rc -eq 0; then
37354 if test $export -eq 0; then :
37364 if test $rc -ne 0; then :
37366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37367 $as_echo "no" >&6; }
37371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37372 $as_echo "yes" >&6; }
37374 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37383 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37386 cat confdefs.h
- <<_ACEOF >conftest.c
37389 #include <linux/security.h>
37395 struct inode *ip __attribute__ ((unused)) = NULL;
37396 struct inode *dip __attribute__ ((unused)) = NULL;
37397 const struct qstr *str __attribute__ ((unused)) = NULL;
37398 char *name __attribute__ ((unused)) = NULL;
37399 void *value __attribute__ ((unused)) = NULL;
37400 size_t len __attribute__ ((unused)) = 0;
37402 security_inode_init_security(ip, dip, str, &name, &value, &len);
37412 cat - <<_ACEOF >conftest.h
37417 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37418 echo "obj-m := conftest.o" >build
/Makefile
37420 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37421 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37423 (eval $ac_try) 2>&5
37425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37426 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37428 (eval $ac_try) 2>&5
37430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37431 test $ac_status = 0; }; }; then :
37433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37434 $as_echo "yes" >&6; }
37436 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37440 $as_echo "$as_me: failed program was:" >&5
37441 sed 's/^/| /' conftest.
$ac_ext >&5
37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37444 $as_echo "no" >&6; }
37454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37455 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37458 cat confdefs.h
- <<_ACEOF >conftest.c
37461 #include <linux/security.h>
37467 struct inode *ip __attribute__ ((unused)) = NULL;
37468 struct inode *dip __attribute__ ((unused)) = NULL;
37469 const struct qstr *str __attribute__ ((unused)) = NULL;
37470 initxattrs func __attribute__ ((unused)) = NULL;
37472 security_inode_init_security(ip, dip, str, func, NULL);
37482 cat - <<_ACEOF >conftest.h
37487 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37488 echo "obj-m := conftest.o" >build
/Makefile
37490 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37491 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37493 (eval $ac_try) 2>&5
37495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37496 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37498 (eval $ac_try) 2>&5
37500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37501 test $ac_status = 0; }; }; then :
37503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37504 $as_echo "yes" >&6; }
37506 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37510 $as_echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.
$ac_ext >&5
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37514 $as_echo "no" >&6; }
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
37524 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
37528 cat confdefs.h
- <<_ACEOF >conftest.c
37531 #include <linux/fs.h>
37537 mount_nodev(NULL, 0, NULL, NULL);
37547 cat - <<_ACEOF >conftest.h
37552 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37553 echo "obj-m := conftest.o" >build
/Makefile
37555 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37556 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37558 (eval $ac_try) 2>&5
37560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37561 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37563 (eval $ac_try) 2>&5
37565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37566 test $ac_status = 0; }; }; then :
37569 $as_echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.
$ac_ext >&5
37578 if test $rc -ne 0; then :
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37581 $as_echo "no" >&6; }
37584 if test "x$enable_linux_builtin" != xyes
; then
37586 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
37587 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37589 if test $rc -ne 0; then
37591 for file in fs
/super.c
; do
37592 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
37593 "$LINUX/$file" 2>/dev
/null
37595 if test $rc -eq 0; then
37600 if test $export -eq 0; then :
37610 if test $rc -ne 0; then :
37612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37613 $as_echo "no" >&6; }
37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37618 $as_echo "yes" >&6; }
37620 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37629 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37632 cat confdefs.h
- <<_ACEOF >conftest.c
37635 #include <linux/fs.h>
37637 int shrink(struct shrinker *s, struct shrink_control *sc)
37640 static const struct super_block
37641 sb __attribute__ ((unused)) = {
37642 .s_shrink.shrink = shrink,
37643 .s_shrink.seeks = DEFAULT_SEEKS,
37644 .s_shrink.batch = 0,
37660 cat - <<_ACEOF >conftest.h
37665 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37666 echo "obj-m := conftest.o" >build
/Makefile
37668 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37669 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37671 (eval $ac_try) 2>&5
37673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37674 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37676 (eval $ac_try) 2>&5
37678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37679 test $ac_status = 0; }; }; then :
37681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37682 $as_echo "yes" >&6; }
37684 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37689 $as_echo "$as_me: failed program was:" >&5
37690 sed 's/^/| /' conftest.
$ac_ext >&5
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37693 $as_echo "no" >&6; }
37703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37704 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37707 cat confdefs.h
- <<_ACEOF >conftest.c
37710 #include <linux/fs.h>
37716 struct shrink_control sc __attribute__ ((unused));
37717 unsigned long scnidsize __attribute__ ((unused)) =
37728 cat - <<_ACEOF >conftest.h
37733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37734 echo "obj-m := conftest.o" >build
/Makefile
37736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37739 (eval $ac_try) 2>&5
37741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37744 (eval $ac_try) 2>&5
37746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37747 test $ac_status = 0; }; }; then :
37749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750 $as_echo "yes" >&6; }
37752 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
37756 $as_echo "$as_me: failed program was:" >&5
37757 sed 's/^/| /' conftest.
$ac_ext >&5
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760 $as_echo "no" >&6; }
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
37771 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
37774 cat confdefs.h
- <<_ACEOF >conftest.c
37777 #include <linux/fs.h>
37783 struct super_block sb __attribute__ ((unused));
37785 INIT_LIST_HEAD(&sb.s_instances);
37795 cat - <<_ACEOF >conftest.h
37800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37801 echo "obj-m := conftest.o" >build
/Makefile
37803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37806 (eval $ac_try) 2>&5
37808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37811 (eval $ac_try) 2>&5
37813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37814 test $ac_status = 0; }; }; then :
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817 $as_echo "yes" >&6; }
37819 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
37823 $as_echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.
$ac_ext >&5
37826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37827 $as_echo "no" >&6; }
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
37837 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
37840 cat confdefs.h
- <<_ACEOF >conftest.c
37843 #include <linux/fs.h>
37849 struct super_block sb __attribute__ ((unused));
37860 cat - <<_ACEOF >conftest.h
37865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37866 echo "obj-m := conftest.o" >build
/Makefile
37868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37871 (eval $ac_try) 2>&5
37873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37874 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37876 (eval $ac_try) 2>&5
37878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37879 test $ac_status = 0; }; }; then :
37881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37882 $as_echo "yes" >&6; }
37884 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
37888 $as_echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.
$ac_ext >&5
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892 $as_echo "no" >&6; }
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
37903 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
37907 cat confdefs.h
- <<_ACEOF >conftest.c
37910 #include <linux/fs.h>
37911 struct super_block sb;
37917 char *name = "bdi";
37918 atomic_long_t zfs_bdi_seq;
37919 int error __attribute__((unused)) =
37920 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
37930 cat - <<_ACEOF >conftest.h
37935 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37936 echo "obj-m := conftest.o" >build
/Makefile
37938 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37939 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37941 (eval $ac_try) 2>&5
37943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37944 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37946 (eval $ac_try) 2>&5
37948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37949 test $ac_status = 0; }; }; then :
37952 $as_echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.
$ac_ext >&5
37961 if test $rc -ne 0; then :
37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37964 $as_echo "no" >&6; }
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
37966 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
37970 cat confdefs.h
- <<_ACEOF >conftest.c
37973 #include <linux/backing-dev.h>
37974 struct backing_dev_info bdi;
37980 char *name = "bdi";
37981 int error __attribute__((unused)) =
37982 bdi_setup_and_register(&bdi, name);
37992 cat - <<_ACEOF >conftest.h
37997 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37998 echo "obj-m := conftest.o" >build
/Makefile
38000 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38001 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38003 (eval $ac_try) 2>&5
38005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38006 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38008 (eval $ac_try) 2>&5
38010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38011 test $ac_status = 0; }; }; then :
38014 $as_echo "$as_me: failed program was:" >&5
38015 sed 's/^/| /' conftest.
$ac_ext >&5
38023 if test $rc -ne 0; then :
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38026 $as_echo "no" >&6; }
38027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38028 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38032 cat confdefs.h
- <<_ACEOF >conftest.c
38035 #include <linux/backing-dev.h>
38036 struct backing_dev_info bdi;
38042 char *name = "bdi";
38043 unsigned int cap = BDI_CAP_MAP_COPY;
38044 int error __attribute__((unused)) =
38045 bdi_setup_and_register(&bdi, name, cap);
38055 cat - <<_ACEOF >conftest.h
38060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38061 echo "obj-m := conftest.o" >build
/Makefile
38063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38066 (eval $ac_try) 2>&5
38068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38071 (eval $ac_try) 2>&5
38073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38074 test $ac_status = 0; }; }; then :
38077 $as_echo "$as_me: failed program was:" >&5
38078 sed 's/^/| /' conftest.
$ac_ext >&5
38086 if test $rc -ne 0; then :
38088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38089 $as_echo "no" >&6; }
38092 if test "x$enable_linux_builtin" != xyes
; then
38094 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38097 if test $rc -ne 0; then
38099 for file in mm
/backing-dev.c
; do
38100 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38101 "$LINUX/$file" 2>/dev
/null
38103 if test $rc -eq 0; then
38108 if test $export -eq 0; then :
38118 if test $rc -ne 0; then :
38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38121 $as_echo "no" >&6; }
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126 $as_echo "yes" >&6; }
38128 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38136 if test "x$enable_linux_builtin" != xyes
; then
38138 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38139 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38141 if test $rc -ne 0; then
38143 for file in mm
/backing-dev.c
; do
38144 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38145 "$LINUX/$file" 2>/dev
/null
38147 if test $rc -eq 0; then
38152 if test $export -eq 0; then :
38162 if test $rc -ne 0; then :
38164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38165 $as_echo "no" >&6; }
38166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38167 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38171 cat confdefs.h
- <<_ACEOF >conftest.c
38174 #include <linux/backing-dev.h>
38175 struct backing_dev_info bdi;
38181 char *name = "bdi";
38182 unsigned int cap = BDI_CAP_MAP_COPY;
38183 int error __attribute__((unused)) =
38184 bdi_setup_and_register(&bdi, name, cap);
38194 cat - <<_ACEOF >conftest.h
38199 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38200 echo "obj-m := conftest.o" >build
/Makefile
38202 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38203 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38205 (eval $ac_try) 2>&5
38207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38208 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38210 (eval $ac_try) 2>&5
38212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38213 test $ac_status = 0; }; }; then :
38216 $as_echo "$as_me: failed program was:" >&5
38217 sed 's/^/| /' conftest.
$ac_ext >&5
38225 if test $rc -ne 0; then :
38227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38228 $as_echo "no" >&6; }
38231 if test "x$enable_linux_builtin" != xyes
; then
38233 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38236 if test $rc -ne 0; then
38238 for file in mm
/backing-dev.c
; do
38239 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38240 "$LINUX/$file" 2>/dev
/null
38242 if test $rc -eq 0; then
38247 if test $export -eq 0; then :
38257 if test $rc -ne 0; then :
38259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38260 $as_echo "no" >&6; }
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38265 $as_echo "yes" >&6; }
38267 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38277 $as_echo "yes" >&6; }
38279 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38287 if test "x$enable_linux_builtin" != xyes
; then
38289 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38290 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38292 if test $rc -ne 0; then
38294 for file in fs
/super.c
; do
38295 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38296 "$LINUX/$file" 2>/dev
/null
38298 if test $rc -eq 0; then
38303 if test $export -eq 0; then :
38313 if test $rc -ne 0; then :
38315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38316 $as_echo "no" >&6; }
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38318 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38322 cat confdefs.h
- <<_ACEOF >conftest.c
38325 #include <linux/backing-dev.h>
38326 struct backing_dev_info bdi;
38332 char *name = "bdi";
38333 int error __attribute__((unused)) =
38334 bdi_setup_and_register(&bdi, name);
38344 cat - <<_ACEOF >conftest.h
38349 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38350 echo "obj-m := conftest.o" >build
/Makefile
38352 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38353 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38355 (eval $ac_try) 2>&5
38357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38358 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38360 (eval $ac_try) 2>&5
38362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38363 test $ac_status = 0; }; }; then :
38366 $as_echo "$as_me: failed program was:" >&5
38367 sed 's/^/| /' conftest.
$ac_ext >&5
38375 if test $rc -ne 0; then :
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38378 $as_echo "no" >&6; }
38379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38380 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38384 cat confdefs.h
- <<_ACEOF >conftest.c
38387 #include <linux/backing-dev.h>
38388 struct backing_dev_info bdi;
38394 char *name = "bdi";
38395 unsigned int cap = BDI_CAP_MAP_COPY;
38396 int error __attribute__((unused)) =
38397 bdi_setup_and_register(&bdi, name, cap);
38407 cat - <<_ACEOF >conftest.h
38412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38413 echo "obj-m := conftest.o" >build
/Makefile
38415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38416 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38418 (eval $ac_try) 2>&5
38420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38421 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38423 (eval $ac_try) 2>&5
38425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38426 test $ac_status = 0; }; }; then :
38429 $as_echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.
$ac_ext >&5
38438 if test $rc -ne 0; then :
38440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38441 $as_echo "no" >&6; }
38444 if test "x$enable_linux_builtin" != xyes
; then
38446 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38447 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38449 if test $rc -ne 0; then
38451 for file in mm
/backing-dev.c
; do
38452 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38453 "$LINUX/$file" 2>/dev
/null
38455 if test $rc -eq 0; then
38460 if test $export -eq 0; then :
38470 if test $rc -ne 0; then :
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38473 $as_echo "no" >&6; }
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38478 $as_echo "yes" >&6; }
38480 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38488 if test "x$enable_linux_builtin" != xyes
; then
38490 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38493 if test $rc -ne 0; then
38495 for file in mm
/backing-dev.c
; do
38496 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38497 "$LINUX/$file" 2>/dev
/null
38499 if test $rc -eq 0; then
38504 if test $export -eq 0; then :
38514 if test $rc -ne 0; then :
38516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38517 $as_echo "no" >&6; }
38518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38519 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38523 cat confdefs.h
- <<_ACEOF >conftest.c
38526 #include <linux/backing-dev.h>
38527 struct backing_dev_info bdi;
38533 char *name = "bdi";
38534 unsigned int cap = BDI_CAP_MAP_COPY;
38535 int error __attribute__((unused)) =
38536 bdi_setup_and_register(&bdi, name, cap);
38546 cat - <<_ACEOF >conftest.h
38551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38552 echo "obj-m := conftest.o" >build
/Makefile
38554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38555 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38557 (eval $ac_try) 2>&5
38559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38560 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38562 (eval $ac_try) 2>&5
38564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38565 test $ac_status = 0; }; }; then :
38568 $as_echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.
$ac_ext >&5
38577 if test $rc -ne 0; then :
38579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38580 $as_echo "no" >&6; }
38583 if test "x$enable_linux_builtin" != xyes
; then
38585 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38586 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38588 if test $rc -ne 0; then
38590 for file in mm
/backing-dev.c
; do
38591 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38592 "$LINUX/$file" 2>/dev
/null
38594 if test $rc -eq 0; then
38599 if test $export -eq 0; then :
38609 if test $rc -ne 0; then :
38611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38612 $as_echo "no" >&6; }
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38617 $as_echo "yes" >&6; }
38619 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38629 $as_echo "yes" >&6; }
38631 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38641 $as_echo "yes" >&6; }
38643 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38652 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38655 cat confdefs.h
- <<_ACEOF >conftest.c
38658 #include <linux/fs.h>
38665 unsigned int link = 0;
38666 (void) set_nlink(&node, link);
38676 cat - <<_ACEOF >conftest.h
38681 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38682 echo "obj-m := conftest.o" >build
/Makefile
38684 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38685 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38687 (eval $ac_try) 2>&5
38689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38690 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38692 (eval $ac_try) 2>&5
38694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38695 test $ac_status = 0; }; }; then :
38697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38698 $as_echo "yes" >&6; }
38700 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38704 $as_echo "$as_me: failed program was:" >&5
38705 sed 's/^/| /' conftest.
$ac_ext >&5
38707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38708 $as_echo "no" >&6; }
38718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38719 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38720 tmp_flags
="$EXTRA_KCFLAGS"
38721 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
38724 cat confdefs.h
- <<_ACEOF >conftest.c
38727 #include <linux/blkdev.h>
38728 #include <linux/elevator.h>
38735 struct request_queue *q = NULL;
38736 char *elevator = NULL;
38737 ret = elevator_change(q, elevator);
38747 cat - <<_ACEOF >conftest.h
38752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38753 echo "obj-m := conftest.o" >build
/Makefile
38755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38756 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38758 (eval $ac_try) 2>&5
38760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38761 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38763 (eval $ac_try) 2>&5
38765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38766 test $ac_status = 0; }; }; then :
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38769 $as_echo "yes" >&6; }
38771 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
38775 $as_echo "$as_me: failed program was:" >&5
38776 sed 's/^/| /' conftest.
$ac_ext >&5
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38779 $as_echo "no" >&6; }
38787 EXTRA_KCFLAGS
="$tmp_flags"
38789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
38790 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
38793 cat confdefs.h
- <<_ACEOF >conftest.c
38796 #include <linux/fs.h>
38802 struct file_system_type *type = NULL;
38803 int (*test)(struct super_block *,void *) = NULL;
38804 int (*set)(struct super_block *,void *) = NULL;
38807 (void) sget(type, test, set, flags, data);
38817 cat - <<_ACEOF >conftest.h
38822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38823 echo "obj-m := conftest.o" >build
/Makefile
38825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38828 (eval $ac_try) 2>&5
38830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38833 (eval $ac_try) 2>&5
38835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38836 test $ac_status = 0; }; }; then :
38838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38839 $as_echo "yes" >&6; }
38841 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
38845 $as_echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.
$ac_ext >&5
38848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38849 $as_echo "no" >&6; }
38858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
38859 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
38863 cat confdefs.h
- <<_ACEOF >conftest.c
38866 #include <linux/fs.h>
38872 struct file *fp __attribute__ ((unused)) = NULL;
38873 struct inode *ip __attribute__ ((unused)) = NULL;
38874 loff_t offset __attribute__ ((unused)) = 0;
38875 loff_t maxsize __attribute__ ((unused)) = 0;
38877 lseek_execute(fp, ip, offset, maxsize);
38887 cat - <<_ACEOF >conftest.h
38892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38893 echo "obj-m := conftest.o" >build
/Makefile
38895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38898 (eval $ac_try) 2>&5
38900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38903 (eval $ac_try) 2>&5
38905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38906 test $ac_status = 0; }; }; then :
38909 $as_echo "$as_me: failed program was:" >&5
38910 sed 's/^/| /' conftest.
$ac_ext >&5
38918 if test $rc -ne 0; then :
38920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38921 $as_echo "no" >&6; }
38924 if test "x$enable_linux_builtin" != xyes
; then
38926 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
38927 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38929 if test $rc -ne 0; then
38931 for file in fs
/read_write.c
; do
38932 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
38933 "$LINUX/$file" 2>/dev
/null
38935 if test $rc -eq 0; then
38940 if test $export -eq 0; then :
38950 if test $rc -ne 0; then :
38952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38953 $as_echo "no" >&6; }
38957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38958 $as_echo "yes" >&6; }
38960 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
38968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
38969 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
38972 cat confdefs.h
- <<_ACEOF >conftest.c
38975 #include <linux/fs.h>
38976 int iterate(struct file *filp, struct dir_context * context)
38979 static const struct file_operations fops
38980 __attribute__ ((unused)) = {
38981 .iterate_shared = iterate,
38997 cat - <<_ACEOF >conftest.h
39002 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39003 echo "obj-m := conftest.o" >build
/Makefile
39005 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39006 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39008 (eval $ac_try) 2>&5
39010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39011 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39013 (eval $ac_try) 2>&5
39015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39016 test $ac_status = 0; }; }; then :
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39019 $as_echo "yes" >&6; }
39021 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39025 $as_echo "$as_me: failed program was:" >&5
39026 sed 's/^/| /' conftest.
$ac_ext >&5
39028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39029 $as_echo "no" >&6; }
39031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39032 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39035 cat confdefs.h
- <<_ACEOF >conftest.c
39038 #include <linux/fs.h>
39039 int iterate(struct file *filp, struct dir_context * context)
39042 static const struct file_operations fops
39043 __attribute__ ((unused)) = {
39044 .iterate = iterate,
39060 cat - <<_ACEOF >conftest.h
39065 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39066 echo "obj-m := conftest.o" >build
/Makefile
39068 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39069 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39071 (eval $ac_try) 2>&5
39073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39074 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39076 (eval $ac_try) 2>&5
39078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39079 test $ac_status = 0; }; }; then :
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39082 $as_echo "yes" >&6; }
39084 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39088 $as_echo "$as_me: failed program was:" >&5
39089 sed 's/^/| /' conftest.
$ac_ext >&5
39091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39092 $as_echo "no" >&6; }
39094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39095 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39098 cat confdefs.h
- <<_ACEOF >conftest.c
39101 #include <linux/fs.h>
39102 int readdir(struct file *filp, void *entry, filldir_t func)
39105 static const struct file_operations fops
39106 __attribute__ ((unused)) = {
39107 .readdir = readdir,
39123 cat - <<_ACEOF >conftest.h
39128 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39129 echo "obj-m := conftest.o" >build
/Makefile
39131 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39132 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39134 (eval $ac_try) 2>&5
39136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39137 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39139 (eval $ac_try) 2>&5
39141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39142 test $ac_status = 0; }; }; then :
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39145 $as_echo "yes" >&6; }
39147 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39151 $as_echo "$as_me: failed program was:" >&5
39152 sed 's/^/| /' conftest.
$ac_ext >&5
39154 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
39177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39178 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39181 cat confdefs.h
- <<_ACEOF >conftest.c
39184 #include <linux/fs.h>
39186 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39188 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39191 static const struct file_operations
39192 fops __attribute__ ((unused)) = {
39193 .read_iter = test_read,
39194 .write_iter = test_write,
39210 cat - <<_ACEOF >conftest.h
39215 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39216 echo "obj-m := conftest.o" >build
/Makefile
39218 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39219 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39221 (eval $ac_try) 2>&5
39223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39224 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39226 (eval $ac_try) 2>&5
39228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39229 test $ac_status = 0; }; }; then :
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39232 $as_echo "yes" >&6; }
39234 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39238 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39241 cat confdefs.h
- <<_ACEOF >conftest.c
39244 #include <linux/fs.h>
39250 new_sync_read(NULL, NULL, 0, NULL);
39260 cat - <<_ACEOF >conftest.h
39265 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39266 echo "obj-m := conftest.o" >build
/Makefile
39268 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39269 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39271 (eval $ac_try) 2>&5
39273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39274 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39276 (eval $ac_try) 2>&5
39278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39279 test $ac_status = 0; }; }; then :
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39282 $as_echo "yes" >&6; }
39284 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39288 $as_echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.
$ac_ext >&5
39291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39292 $as_echo "no" >&6; }
39303 $as_echo "$as_me: failed program was:" >&5
39304 sed 's/^/| /' conftest.
$ac_ext >&5
39306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39307 $as_echo "no" >&6; }
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39317 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39320 cat confdefs.h
- <<_ACEOF >conftest.c
39323 #include <linux/fs.h>
39330 struct kiocb *iocb = NULL;
39331 struct iov_iter *iov = NULL;
39332 generic_write_checks(iocb, iov);
39342 cat - <<_ACEOF >conftest.h
39347 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39348 echo "obj-m := conftest.o" >build
/Makefile
39350 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39351 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39353 (eval $ac_try) 2>&5
39355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39356 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39358 (eval $ac_try) 2>&5
39360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39361 test $ac_status = 0; }; }; then :
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39364 $as_echo "yes" >&6; }
39366 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39370 $as_echo "$as_me: failed program was:" >&5
39371 sed 's/^/| /' conftest.
$ac_ext >&5
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39374 $as_echo "no" >&6; }
39384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39385 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39388 cat confdefs.h
- <<_ACEOF >conftest.c
39391 #include <linux/pagemap.h>
39398 kmap_atomic(&page);
39408 cat - <<_ACEOF >conftest.h
39413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39414 echo "obj-m := conftest.o" >build
/Makefile
39416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39419 (eval $ac_try) 2>&5
39421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39424 (eval $ac_try) 2>&5
39426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39427 test $ac_status = 0; }; }; then :
39429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39430 $as_echo "yes" >&6; }
39432 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39436 $as_echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.
$ac_ext >&5
39439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39440 $as_echo "no" >&6; }
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39451 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39454 cat confdefs.h
- <<_ACEOF >conftest.c
39457 #include <linux/namei.h>
39463 struct path *p = NULL;
39464 follow_down_one(p);
39474 cat - <<_ACEOF >conftest.h
39479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39480 echo "obj-m := conftest.o" >build
/Makefile
39482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39485 (eval $ac_try) 2>&5
39487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39490 (eval $ac_try) 2>&5
39492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39493 test $ac_status = 0; }; }; then :
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39496 $as_echo "yes" >&6; }
39498 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39502 $as_echo "$as_me: failed program was:" >&5
39503 sed 's/^/| /' conftest.
$ac_ext >&5
39505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39506 $as_echo "no" >&6; }
39516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39517 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39520 cat confdefs.h
- <<_ACEOF >conftest.c
39523 #include <linux/blkdev.h>
39525 int make_request(struct request_queue *q, struct bio *bio)
39534 blk_queue_make_request(NULL, &make_request);
39544 cat - <<_ACEOF >conftest.h
39549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39550 echo "obj-m := conftest.o" >build
/Makefile
39552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39555 (eval $ac_try) 2>&5
39557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39560 (eval $ac_try) 2>&5
39562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39563 test $ac_status = 0; }; }; then :
39565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39566 $as_echo "yes" >&6; }
39568 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39571 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39575 $as_echo "$as_me: failed program was:" >&5
39576 sed 's/^/| /' conftest.
$ac_ext >&5
39578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39579 $as_echo "no" >&6; }
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39581 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39584 cat confdefs.h
- <<_ACEOF >conftest.c
39587 #include <linux/blkdev.h>
39589 void make_request(struct request_queue *q, struct bio *bio)
39598 blk_queue_make_request(NULL, &make_request);
39608 cat - <<_ACEOF >conftest.h
39613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39614 echo "obj-m := conftest.o" >build
/Makefile
39616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39619 (eval $ac_try) 2>&5
39621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39622 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39624 (eval $ac_try) 2>&5
39626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39627 test $ac_status = 0; }; }; then :
39629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39630 $as_echo "yes" >&6; }
39632 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39636 $as_echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.
$ac_ext >&5
39639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39640 $as_echo "no" >&6; }
39641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39642 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39645 cat confdefs.h
- <<_ACEOF >conftest.c
39648 #include <linux/blkdev.h>
39650 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39652 return (BLK_QC_T_NONE);
39659 blk_queue_make_request(NULL, &make_request);
39669 cat - <<_ACEOF >conftest.h
39674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39675 echo "obj-m := conftest.o" >build
/Makefile
39677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39680 (eval $ac_try) 2>&5
39682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39685 (eval $ac_try) 2>&5
39687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39688 test $ac_status = 0; }; }; then :
39690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691 $as_echo "yes" >&6; }
39693 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39696 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39700 $as_echo "$as_me: failed program was:" >&5
39701 sed 's/^/| /' conftest.
$ac_ext >&5
39703 as_fn_error $?
"no - Please file a bug report at
39704 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39729 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39733 cat confdefs.h
- <<_ACEOF >conftest.c
39736 #include <linux/bio.h>
39738 void (*generic_start_io_acct_f)(int, unsigned long,
39739 struct hd_struct *) = &generic_start_io_acct;
39740 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39741 unsigned long) = &generic_end_io_acct;
39747 generic_start_io_acct(0, 0, NULL);
39748 generic_end_io_acct(0, NULL, 0);
39758 cat - <<_ACEOF >conftest.h
39763 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39764 echo "obj-m := conftest.o" >build
/Makefile
39766 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39767 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39769 (eval $ac_try) 2>&5
39771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39772 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39774 (eval $ac_try) 2>&5
39776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39777 test $ac_status = 0; }; }; then :
39780 $as_echo "$as_me: failed program was:" >&5
39781 sed 's/^/| /' conftest.
$ac_ext >&5
39789 if test $rc -ne 0; then :
39791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39792 $as_echo "no" >&6; }
39795 if test "x$enable_linux_builtin" != xyes
; then
39797 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39798 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39800 if test $rc -ne 0; then
39802 for file in block
/bio.c
; do
39803 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39804 "$LINUX/$file" 2>/dev
/null
39806 if test $rc -eq 0; then
39811 if test $export -eq 0; then :
39821 if test $rc -ne 0; then :
39823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39824 $as_echo "no" >&6; }
39828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39829 $as_echo "yes" >&6; }
39831 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
39839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
39840 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
39844 cat confdefs.h
- <<_ACEOF >conftest.c
39847 #include <linux/bio.h>
39849 void (*generic_start_io_acct_f)(struct request_queue *, int,
39850 unsigned long, struct hd_struct *) = &generic_start_io_acct;
39851 void (*generic_end_io_acct_f)(struct request_queue *, int,
39852 struct hd_struct *, unsigned long) = &generic_end_io_acct;
39858 generic_start_io_acct(NULL, 0, 0, NULL);
39859 generic_end_io_acct(NULL, 0, NULL, 0);
39869 cat - <<_ACEOF >conftest.h
39874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39875 echo "obj-m := conftest.o" >build
/Makefile
39877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39880 (eval $ac_try) 2>&5
39882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39885 (eval $ac_try) 2>&5
39887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39888 test $ac_status = 0; }; }; then :
39891 $as_echo "$as_me: failed program was:" >&5
39892 sed 's/^/| /' conftest.
$ac_ext >&5
39900 if test $rc -ne 0; then :
39902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39903 $as_echo "no" >&6; }
39906 if test "x$enable_linux_builtin" != xyes
; then
39908 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39911 if test $rc -ne 0; then
39913 for file in block
/bio.c
; do
39914 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39915 "$LINUX/$file" 2>/dev
/null
39917 if test $rc -eq 0; then
39922 if test $export -eq 0; then :
39932 if test $rc -ne 0; then :
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39935 $as_echo "no" >&6; }
39939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39940 $as_echo "yes" >&6; }
39942 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
39950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
39951 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
39954 cat confdefs.h
- <<_ACEOF >conftest.c
39957 #include <linux/kernel.h>
39958 #include <asm/fpu/api.h>
39964 __kernel_fpu_begin();
39974 cat - <<_ACEOF >conftest.h
39979 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39980 echo "obj-m := conftest.o" >build
/Makefile
39982 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39983 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39985 (eval $ac_try) 2>&5
39987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39988 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39990 (eval $ac_try) 2>&5
39992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39993 test $ac_status = 0; }; }; then :
39995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39996 $as_echo "yes" >&6; }
39998 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40002 $as_echo "$as_me: failed program was:" >&5
40003 sed 's/^/| /' conftest.
$ac_ext >&5
40005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40006 $as_echo "no" >&6; }
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40017 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40020 cat confdefs.h
- <<_ACEOF >conftest.c
40023 #include <linux/fs.h>
40029 struct inode *ip = NULL;
40030 (void) i_uid_read(ip);
40040 cat - <<_ACEOF >conftest.h
40045 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40046 echo "obj-m := conftest.o" >build
/Makefile
40048 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40049 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40051 (eval $ac_try) 2>&5
40053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40054 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40056 (eval $ac_try) 2>&5
40058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40059 test $ac_status = 0; }; }; then :
40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40062 $as_echo "yes" >&6; }
40064 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40068 $as_echo "$as_me: failed program was:" >&5
40069 sed 's/^/| /' conftest.
$ac_ext >&5
40071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40072 $as_echo "no" >&6; }
40082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40083 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40086 cat confdefs.h
- <<_ACEOF >conftest.c
40089 #include <linux/module.h>
40090 #include <linux/moduleparam.h>
40092 int param_get(char *b, const struct kernel_param *kp)
40097 int param_set(const char *b, const struct kernel_param *kp)
40102 module_param_call(p, param_set, param_get, NULL, 0644);
40117 cat - <<_ACEOF >conftest.h
40122 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40123 echo "obj-m := conftest.o" >build
/Makefile
40125 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40126 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40128 (eval $ac_try) 2>&5
40130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40131 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40133 (eval $ac_try) 2>&5
40135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40136 test $ac_status = 0; }; }; then :
40138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139 $as_echo "yes" >&6; }
40141 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40145 $as_echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.
$ac_ext >&5
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40149 $as_echo "no" >&6; }
40159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40160 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40163 cat confdefs.h
- <<_ACEOF >conftest.c
40166 #include <linux/fs.h>
40167 int rename_fn(struct inode *sip, struct dentry *sdp,
40168 struct inode *tip, struct dentry *tdp,
40169 unsigned int flags) { return 0; }
40171 static const struct inode_operations
40172 iops __attribute__ ((unused)) = {
40173 .rename = rename_fn,
40189 cat - <<_ACEOF >conftest.h
40194 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40195 echo "obj-m := conftest.o" >build
/Makefile
40197 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40198 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40200 (eval $ac_try) 2>&5
40202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40203 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40205 (eval $ac_try) 2>&5
40207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40208 test $ac_status = 0; }; }; then :
40210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40211 $as_echo "yes" >&6; }
40213 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40217 $as_echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.
$ac_ext >&5
40220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40221 $as_echo "no" >&6; }
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40232 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40235 cat confdefs.h
- <<_ACEOF >conftest.c
40238 #include <linux/fs.h>
40239 #include <linux/xattr.h>
40241 static const struct inode_operations
40242 iops __attribute__ ((unused)) = {
40243 .setxattr = generic_setxattr
40259 cat - <<_ACEOF >conftest.h
40264 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40265 echo "obj-m := conftest.o" >build
/Makefile
40267 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40268 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40270 (eval $ac_try) 2>&5
40272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40273 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40275 (eval $ac_try) 2>&5
40277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40278 test $ac_status = 0; }; }; then :
40280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40281 $as_echo "yes" >&6; }
40283 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40287 $as_echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.
$ac_ext >&5
40290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40291 $as_echo "no" >&6; }
40300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40301 $as_echo_n "checking whether current_time() exists... " >&6; }
40305 cat confdefs.h
- <<_ACEOF >conftest.c
40308 #include <linux/fs.h>
40315 struct timespec now __attribute__ ((unused));
40317 now = current_time(&ip);
40327 cat - <<_ACEOF >conftest.h
40332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40333 echo "obj-m := conftest.o" >build
/Makefile
40335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40336 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40338 (eval $ac_try) 2>&5
40340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40341 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40343 (eval $ac_try) 2>&5
40345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40346 test $ac_status = 0; }; }; then :
40349 $as_echo "$as_me: failed program was:" >&5
40350 sed 's/^/| /' conftest.
$ac_ext >&5
40358 if test $rc -ne 0; then :
40360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40361 $as_echo "no" >&6; }
40364 if test "x$enable_linux_builtin" != xyes
; then
40366 grep -q -E '[[:space:]]current_time[[:space:]]' \
40367 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40369 if test $rc -ne 0; then
40371 for file in fs
/inode.c
; do
40372 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40373 "$LINUX/$file" 2>/dev
/null
40375 if test $rc -eq 0; then
40380 if test $export -eq 0; then :
40390 if test $rc -ne 0; then :
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40393 $as_echo "no" >&6; }
40397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40398 $as_echo "yes" >&6; }
40400 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40409 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40412 cat confdefs.h
- <<_ACEOF >conftest.c
40415 #include <linux/mm.h>
40416 #include <linux/vmstat.h>
40422 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40423 long x __attribute__ ((unused)) =
40424 atomic_long_read(&vm_node_stat[0]);
40425 (void) global_node_page_state(0);
40435 cat - <<_ACEOF >conftest.h
40440 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40441 echo "obj-m := conftest.o" >build
/Makefile
40443 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40444 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40446 (eval $ac_try) 2>&5
40448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40449 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40451 (eval $ac_try) 2>&5
40453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40454 test $ac_status = 0; }; }; then :
40456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40457 $as_echo "yes" >&6; }
40459 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40463 $as_echo "$as_me: failed program was:" >&5
40464 sed 's/^/| /' conftest.
$ac_ext >&5
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40467 $as_echo "no" >&6; }
40477 if test "$LINUX_OBJ" != "$LINUX"; then :
40479 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40485 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
40486 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40487 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40488 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40489 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40490 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40497 $as_echo "Error!" >&6; }
40498 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
40499 user kernel|user|all|srpm" "$LINENO" 5 ;;
40502 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
40504 CONFIG_USER_FALSE
='#'
40506 CONFIG_USER_TRUE
='#'
40510 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40511 test "x$enable_linux_builtin" != xyes
; then
40512 CONFIG_KERNEL_TRUE
=
40513 CONFIG_KERNEL_FALSE
='#'
40515 CONFIG_KERNEL_TRUE
='#'
40516 CONFIG_KERNEL_FALSE
=
40519 if test "x$user_libudev" = xyes
; then
40520 WANT_DEVNAME2DEVID_TRUE
=
40521 WANT_DEVNAME2DEVID_FALSE
='#'
40523 WANT_DEVNAME2DEVID_TRUE
='#'
40524 WANT_DEVNAME2DEVID_FALSE
=
40527 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40528 test "x$qatsrc" != x
; then
40530 CONFIG_QAT_FALSE
='#'
40532 CONFIG_QAT_TRUE
='#'
40538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40539 $as_echo_n "checking whether debugging is enabled... " >&6; }
40540 # Check whether --enable-debug was given.
40541 if test "${enable_debug+set}" = set; then :
40542 enableval
=$enable_debug;
40548 if test "x$enable_debug" = xyes
; then :
40550 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
40551 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
40552 DEBUG_CFLAGS
="-DDEBUG -Werror"
40553 DEBUG_STACKFLAGS
="-fstack-check"
40554 DEBUG_ZFS
="_with_debug"
40556 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
40561 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
40562 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
40563 DEBUG_CFLAGS
="-DNDEBUG"
40564 DEBUG_STACKFLAGS
=""
40565 DEBUG_ZFS
="_without_debug"
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
40573 $as_echo "$enable_debug" >&6; }
40576 ac_config_files
="$ac_config_files 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 zfs.release"
40580 cat >confcache
<<\_ACEOF
40581 # This file is a shell script that caches the results of configure
40582 # tests run on this system so they can be shared between configure
40583 # scripts and configure runs, see configure's option --config-cache.
40584 # It is not useful on other systems. If it contains results you don't
40585 # want to keep, you may remove or edit it.
40587 # config.status only pays attention to the cache file if you give it
40588 # the --recheck option to rerun configure.
40590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40592 # following values.
40596 # The following way of writing the cache mishandles newlines in values,
40597 # but we know of no workaround that is simple, portable, and efficient.
40598 # So, we kill variables containing newlines.
40599 # Ultrix sh set writes to stderr and can't be redirected directly,
40600 # and sets the high bit in the cache file unless we assign to the vars.
40602 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40603 eval ac_val
=\$
$ac_var
40607 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40611 _ | IFS | as_nl
) ;; #(
40612 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
40613 *) { eval $ac_var=; unset $ac_var;} ;;
40619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40620 *${as_nl}ac_space
=\
*)
40621 # `set' does not quote correctly, so add quotes: double-quote
40622 # substitution turns \\\\ into \\, and sed turns \\ into \.
40625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40628 # `set' quotes correctly as required by POSIX, so do not add quotes.
40629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40642 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
40643 if test -w "$cache_file"; then
40644 if test "x$cache_file" != "x/dev/null"; then
40645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40646 $as_echo "$as_me: updating cache $cache_file" >&6;}
40647 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
40648 cat confcache
>"$cache_file"
40650 case $cache_file in #(
40652 mv -f confcache
"$cache_file"$$
&&
40653 mv -f "$cache_file"$$
"$cache_file" ;; #(
40655 mv -f confcache
"$cache_file" ;;
40660 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40661 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40666 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
40667 # Let make expand exec_prefix.
40668 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
40670 DEFS
=-DHAVE_CONFIG_H
40675 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
40676 # 1. Remove the extension, and $U if already installed.
40677 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
40678 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
40679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40680 # will be set to the directory where LIBOBJS objects are built.
40681 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40682 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
40684 LIBOBJS
=$ac_libobjs
40686 LTLIBOBJS
=$ac_ltlibobjs
40689 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40690 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
40691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40694 $as_echo_n "checking that generated files are newer than configure... " >&6; }
40695 if test -n "$am_sleep_pid"; then
40696 # Hide warnings about reused PIDs.
40697 wait $am_sleep_pid 2>/dev
/null
40699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40700 $as_echo "done" >&6; }
40701 if test -n "$EXEEXT"; then
40703 am__EXEEXT_FALSE
='#'
40705 am__EXEEXT_TRUE
='#'
40709 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40710 as_fn_error $?
"conditional \"AMDEP\" was never defined.
40711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40713 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40714 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
40715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40717 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
40718 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
40719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40721 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
40722 as_fn_error $?
"conditional \"TARGET_ASM_X86_64\" was never defined.
40723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40725 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
40726 as_fn_error $?
"conditional \"TARGET_ASM_I386\" was never defined.
40727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40729 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
40730 as_fn_error $?
"conditional \"TARGET_ASM_GENERIC\" was never defined.
40731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40733 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
40734 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
40735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40737 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
40738 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
40739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40741 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
40742 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
40743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40745 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
40746 as_fn_error $?
"conditional \"CONFIG_QAT\" was never defined.
40747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40750 : "${CONFIG_STATUS=./config.status}"
40752 ac_clean_files_save
=$ac_clean_files
40753 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
40754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40755 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40757 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40759 # Generated by $as_me.
40760 # Run this file to recreate the current configuration.
40761 # Compiler output produced by configure, useful for debugging
40762 # configure, is in config.log if it exists.
40765 ac_cs_recheck=false
40768 SHELL=\${CONFIG_SHELL-$SHELL}
40771 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
40772 ## -------------------- ##
40773 ## M4sh Initialization. ##
40774 ## -------------------- ##
40776 # Be more Bourne compatible
40777 DUALCASE
=1; export DUALCASE
# for MKS sh
40778 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
40781 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40782 # is contrary to our usage. Disable this feature.
40783 alias -g '${1+"$@"}'='"$@"'
40784 setopt NO_GLOB_SUBST
40786 case `(set -o) 2>/dev/null` in #(
40798 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40799 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40802 # Prefer a ksh shell builtin over an external printf program on Solaris,
40803 # but without wasting forks for bash or zsh.
40804 if test -z "$BASH_VERSION$ZSH_VERSION" \
40805 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40806 as_echo='print
-r --'
40807 as_echo_n='print
-rn --'
40808 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40809 as_echo='printf %s
\n'
40810 as_echo_n='printf %s
'
40812 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40813 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
40814 as_echo_n='/usr
/ucb
/echo -n'
40816 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40817 as_echo_n_body='eval
40821 expr "X$arg" : "X\\(.*\\)$as_nl";
40822 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40824 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
40826 export as_echo_n_body
40827 as_echo_n='sh
-c $as_echo_n_body as_echo
'
40829 export as_echo_body
40830 as_echo='sh
-c $as_echo_body as_echo
'
40833 # The user is always right.
40834 if test "${PATH_SEPARATOR+set}" != set; then
40836 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
40837 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
40844 # We need space, tab and new line, in precisely that order. Quoting is
40845 # there to prevent editors from complaining about space-tab.
40846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40847 # splitting by setting IFS to empty value.)
40850 # Find who we are. Look in the path if we contain no directory separator.
40853 *[\\/]* ) as_myself=$0 ;;
40854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40855 for as_dir in $PATH
40858 test -z "$as_dir" && as_dir=.
40859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40865 # We did not find ourselves, most probably we were run as `sh COMMAND'
40866 # in which case we are not to be found in the path.
40867 if test "x$as_myself" = x
; then
40870 if test ! -f "$as_myself"; then
40871 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40875 # Unset variables that we do not need and which cause bugs (e.g. in
40876 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
40877 # suppresses any "Segmentation fault" message there. '((' could
40878 # trigger a bug in pdksh 5.2.14.
40879 for as_var
in BASH_ENV ENV MAIL MAILPATH
40880 do eval test x\
${$as_var+set} = xset \
40881 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
40894 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
40897 # as_fn_error STATUS ERROR [LINENO LOG_FD]
40898 # ----------------------------------------
40899 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40900 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40901 # script with STATUS, using 1 if that was 0.
40904 as_status
=$1; test $as_status -eq 0 && as_status
=1
40906 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
40907 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40909 $as_echo "$as_me: error: $2" >&2
40910 as_fn_exit
$as_status
40914 # as_fn_set_status STATUS
40915 # -----------------------
40916 # Set $? to STATUS, without forking.
40917 as_fn_set_status
()
40920 } # as_fn_set_status
40922 # as_fn_exit STATUS
40923 # -----------------
40924 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40928 as_fn_set_status
$1
40934 # Portably unset VAR.
40937 { eval $1=; unset $1;}
40939 as_unset
=as_fn_unset
40940 # as_fn_append VAR VALUE
40941 # ----------------------
40942 # Append the text in VALUE to the end of the definition contained in VAR. Take
40943 # advantage of any shell optimizations that allow amortized linear growth over
40944 # repeated appends, instead of the typical quadratic growth present in naive
40946 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
40947 eval 'as_fn_append ()
40958 # as_fn_arith ARG...
40959 # ------------------
40960 # Perform arithmetic evaluation on the ARGs, and store the result in the
40961 # global $as_val. Take advantage of shells that can avoid forks. The arguments
40962 # must be portable across $(()) and expr.
40963 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
40964 eval 'as_fn_arith ()
40971 as_val
=`expr "$@" || test $? -eq 1`
40976 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
40977 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
40983 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40984 as_basename
=basename
40989 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
40995 as_me
=`$as_basename -- "$0" ||
40996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40997 X"$0" : 'X\(//\)$' \| \
40998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41000 sed '/^.*\/\([^/][^/]*\)\/*$/{
41014 # Avoid depending upon Character Ranges.
41015 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41016 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41017 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41018 as_cr_digits
='0123456789'
41019 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41021 ECHO_C
= ECHO_N
= ECHO_T
=
41022 case `echo -n x` in #(((((
41024 case `echo 'xy\c'` in
41025 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
41027 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
41034 rm -f conf$$ conf$$.exe conf$$.
file
41035 if test -d conf$$.dir
; then
41036 rm -f conf$$.dir
/conf$$.
file
41039 mkdir conf$$.dir
2>/dev
/null
41041 if (echo >conf$$.
file) 2>/dev
/null
; then
41042 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41044 # ... but there are two gotchas:
41045 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41046 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41047 # In both cases, we have to default to `cp -pR'.
41048 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
41050 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41058 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
41059 rmdir conf$$.dir
2>/dev
/null
41064 # Create "$as_dir" as a directory, including parents if necessary.
41069 -*) as_dir
=.
/$as_dir;;
41071 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
41075 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41076 *) as_qdir
=$as_dir;;
41078 as_dirs
="'$as_qdir' $as_dirs"
41079 as_dir
=`$as_dirname -- "$as_dir" ||
41080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41081 X"$as_dir" : 'X\(//\)[^/]' \| \
41082 X"$as_dir" : 'X\(//\)$' \| \
41083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41084 $as_echo X"$as_dir" |
41085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41089 /^X\(\/\/\)[^/].*/{
41102 test -d "$as_dir" && break
41104 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
41105 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
41109 if mkdir
-p .
2>/dev
/null
; then
41110 as_mkdir_p
='mkdir -p "$as_dir"'
41112 test -d .
/-p && rmdir .
/-p
41117 # as_fn_executable_p FILE
41118 # -----------------------
41119 # Test if FILE is an executable regular file.
41120 as_fn_executable_p
()
41122 test -f "$1" && test -x "$1"
41123 } # as_fn_executable_p
41124 as_test_x
='test -x'
41125 as_executable_p
=as_fn_executable_p
41127 # Sed expression to map a string onto a valid CPP name.
41128 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41130 # Sed expression to map a string onto a valid variable name.
41131 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41135 ## ----------------------------------- ##
41136 ## Main body of $CONFIG_STATUS script. ##
41137 ## ----------------------------------- ##
41139 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
41141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41142 # Save the log message, to keep $0 and so on meaningful, and to
41143 # report actual input values of CONFIG_FILES etc. instead of their
41144 # values after options handling.
41146 This file was extended by zfs $as_me 0.7.3, which was
41147 generated by GNU Autoconf 2.69. Invocation command line was
41149 CONFIG_FILES = $CONFIG_FILES
41150 CONFIG_HEADERS = $CONFIG_HEADERS
41151 CONFIG_LINKS = $CONFIG_LINKS
41152 CONFIG_COMMANDS = $CONFIG_COMMANDS
41155 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41160 case $ac_config_files in *"
41161 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
41164 case $ac_config_headers in *"
41165 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
41169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41170 # Files that config.status was made for.
41171 config_files="$ac_config_files"
41172 config_headers="$ac_config_headers"
41173 config_commands="$ac_config_commands"
41177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41179 \`$as_me' instantiates files and other configuration actions
41180 from templates according to the current configuration. Unless the files
41181 and actions are specified as TAGs, all are instantiated by default.
41183 Usage: $0 [OPTION]... [TAG]...
41185 -h, --help print this help, then exit
41186 -V, --version print version number and configuration settings, then exit
41187 --config print configuration, then exit
41188 -q, --quiet, --silent
41189 do not print progress messages
41190 -d, --debug don't remove temporary files
41191 --recheck update $as_me by reconfiguring in the same conditions
41192 --file=FILE[:TEMPLATE]
41193 instantiate the configuration file FILE
41194 --header=FILE[:TEMPLATE]
41195 instantiate the configuration header FILE
41197 Configuration files:
41200 Configuration headers:
41203 Configuration commands:
41206 Report bugs to the package provider."
41209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41210 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41212 zfs config.status 0.7.3
41213 configured by $0, generated by GNU Autoconf 2.69,
41214 with options \\"\$ac_cs_config\\"
41216 Copyright (C) 2012 Free Software Foundation, Inc.
41217 This config.status script is free software; the Free Software Foundation
41218 gives unlimited permission to copy, distribute and modify it."
41225 test -n "\$AWK" || AWK=awk
41228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41229 # The default lists apply if the user does not specify any file.
41235 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41236 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
41240 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41252 # Handling of the options.
41253 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41255 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
41256 $as_echo "$ac_cs_version"; exit ;;
41257 --config |
--confi |
--conf |
--con |
--co |
--c )
41258 $as_echo "$ac_cs_config"; exit ;;
41259 --debug |
--debu |
--deb |
--de |
--d |
-d )
41261 --file |
--fil |
--fi |
--f )
41264 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41265 '') as_fn_error $?
"missing file argument" ;;
41267 as_fn_append CONFIG_FILES
" '$ac_optarg'"
41268 ac_need_defaults
=false
;;
41269 --header |
--heade |
--head |
--hea )
41272 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41274 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
41275 ac_need_defaults
=false
;;
41277 # Conflict between --help and --header
41278 as_fn_error $?
"ambiguous option: \`$1'
41279 Try \`$0 --help' for more information.";;
41280 --help |
--hel |
-h )
41281 $as_echo "$ac_cs_usage"; exit ;;
41282 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41283 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41286 # This is an error.
41287 -*) as_fn_error $?
"unrecognized option: \`$1'
41288 Try \`$0 --help' for more information." ;;
41290 *) as_fn_append ac_config_targets
" $1"
41291 ac_need_defaults
=false
;;
41297 ac_configure_extra_args
=
41299 if $ac_cs_silent; then
41301 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41306 if \$ac_cs_recheck; then
41307 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41310 CONFIG_SHELL='$SHELL'
41311 export CONFIG_SHELL
41316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41321 ## Running $as_me. ##
41327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41331 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41334 # The HP-UX ksh and POSIX shell print the target directory to stdout
41335 # if CDPATH is set.
41336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41338 sed_quote_subst='$sed_quote_subst'
41339 double_quote_subst='$double_quote_subst'
41340 delay_variable_subst='$delay_variable_subst'
41341 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41342 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41343 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41344 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41345 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41346 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41347 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41348 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41349 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41350 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41351 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41352 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41353 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41354 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41355 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41356 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41357 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41358 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41359 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41360 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41361 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41362 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41363 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41364 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41365 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41366 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41367 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41368 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41369 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41370 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41371 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41372 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41373 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41374 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41375 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41376 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41377 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41378 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41379 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41380 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41381 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41382 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41383 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41384 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41385 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41386 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41387 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41388 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41389 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41390 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41391 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41392 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41393 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41394 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41395 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41396 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41397 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41398 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41399 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
41400 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41401 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41402 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41403 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41404 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41405 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41406 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41407 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41408 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41409 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41410 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41411 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41412 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41413 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41414 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41415 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41416 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41417 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41418 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41419 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41420 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41421 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41422 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41423 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41424 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41425 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41426 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41427 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41428 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41429 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41430 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41431 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41432 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41433 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41434 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41435 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41436 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41437 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41438 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41439 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41440 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41441 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41442 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41443 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41444 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41445 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41446 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41447 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41448 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41449 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41450 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41451 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41452 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41453 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41454 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41455 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41456 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41457 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41458 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41459 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41460 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41461 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41462 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41463 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41464 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41465 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41466 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41467 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41468 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41469 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41470 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41471 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41472 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41473 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41474 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41475 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41478 LTCFLAGS='$LTCFLAGS'
41479 compiler='$compiler_DEFAULT'
41481 # A function that is used when there is no print builtin or printf.
41482 func_fallback_echo ()
41484 eval 'cat <<_LTECHO_EOF
41489 # Quote evaled strings.
41504 deplibs_check_method \
41509 sharedlib_from_linklib_cmd \
41512 archiver_list_spec \
41518 lt_cv_sys_global_symbol_pipe \
41519 lt_cv_sys_global_symbol_to_cdecl \
41520 lt_cv_sys_global_symbol_to_import \
41521 lt_cv_sys_global_symbol_to_c_name_address \
41522 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41523 lt_cv_nm_interface \
41524 nm_file_list_spec \
41525 lt_cv_truncate_bin \
41526 lt_prog_compiler_no_builtin_flag \
41527 lt_prog_compiler_pic \
41528 lt_prog_compiler_wl \
41529 lt_prog_compiler_static \
41530 lt_cv_prog_compiler_c_o \
41539 export_dynamic_flag_spec \
41540 whole_archive_flag_spec \
41541 compiler_needs_object \
41543 allow_undefined_flag \
41544 no_undefined_flag \
41545 hardcode_libdir_flag_spec \
41546 hardcode_libdir_separator \
41550 variables_saved_for_relink \
41552 library_names_spec \
41554 install_override_mode \
41558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41559 *[\\\\\\\`\\"\\\$]*)
41560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41568 # Double-quote double-evaled strings.
41569 for var in reload_cmds \
41570 old_postinstall_cmds \
41571 old_postuninstall_cmds \
41573 extract_expsyms_cmds \
41574 old_archive_from_new_cmds \
41575 old_archive_from_expsyms_cmds \
41577 archive_expsym_cmds \
41579 module_expsym_cmds \
41580 export_symbols_cmds \
41584 postuninstall_cmds \
41586 sys_lib_search_path_spec \
41587 configure_time_dlsearch_path \
41588 configure_time_lt_sys_library_path; do
41589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41590 *[\\\\\\\`\\"\\\$]*)
41591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41599 ac_aux_dir='$ac_aux_dir'
41601 # See if we are running on zsh, and set the options that allow our
41602 # commands through without removal of \ escapes INIT.
41603 if test -n "\${ZSH_VERSION+set}"; then
41604 setopt NO_GLOB_SUBST
41618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41620 # Handling of arguments.
41621 for ac_config_target
in $ac_config_targets
41623 case $ac_config_target in
41624 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
41625 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
41626 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
41627 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
41628 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
41629 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
41630 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
41631 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
41632 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
41633 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
41634 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
41635 "module/icp/Makefile") CONFIG_FILES
="$CONFIG_FILES module/icp/Makefile" ;;
41636 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
41637 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
41638 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
41639 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
41640 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
41641 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
41642 "include/sys/crypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/crypto/Makefile" ;;
41643 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
41644 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
41646 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41651 # If the user did not use the arguments to specify the items to instantiate,
41652 # then the envvar interface is used. Set only those that are not.
41653 # We use the long form for the default assignment because of an extremely
41654 # bizarre bug on SunOS 4.1.3.
41655 if $ac_need_defaults; then
41656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
41657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
41658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
41661 # Have a temporary directory for convenience. Make it in the build tree
41662 # simply because there is no reason against having it here, and in addition,
41663 # creating and moving files from /tmp can sometimes cause problems.
41664 # Hook for its removal unless debugging.
41665 # Note that there is a small window in which the directory will not be cleaned:
41666 # after its creation but before its name has been assigned to `$tmp'.
41670 trap 'exit_status=$?
41671 : "${ac_tmp:=$tmp}"
41672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41674 trap 'as_fn_exit 1' 1 2 13 15
41676 # Create a (secure) tmp directory for tmp files.
41679 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41683 tmp
=.
/conf$$
-$RANDOM
41684 (umask 077 && mkdir
"$tmp")
41685 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
41688 # Set up the scripts for CONFIG_FILES section.
41689 # No need to generate them if there are no CONFIG_FILES.
41690 # This happens for instance with `./config.status config.h'.
41691 if test -n "$CONFIG_FILES"; then
41694 ac_cr
=`echo X | tr X '\015'`
41695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
41696 # But we know of no other shell where ac_cr would be empty at this
41697 # point, so we can use a bashism as a fallback.
41698 if test "x$ac_cr" = x
; then
41699 eval ac_cr
=\$
\'\\r
\'
41701 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41705 ac_cs_awk_cr
=$ac_cr
41708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41713 echo "cat >conf$$subs.awk <<_ACEOF" &&
41714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41716 } >conf$$subs.sh ||
41717 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
41718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41720 for ac_last_try in false false false false false :; do
41721 . ./conf$$subs.sh ||
41722 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
41724 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
41725 if test $ac_delim_n = $ac_delim_num; then
41727 elif $ac_last_try; then
41728 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
41730 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
41733 rm -f conf$$subs.sh
41735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41736 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
41740 s/^/S["/; s
/!.
*/"]=/
41750 s/\(.\{148\}\)..*/\1/
41752 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
41757 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
41764 s/\(.\{148\}\)..*/\1/
41766 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
41770 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
41775 ' <conf$$subs.awk | sed '
41780 ' >>$CONFIG_STATUS || ac_write_fail=1
41781 rm -f conf$$subs.awk
41782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41784 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
41785 for (key in S) S_is_set[key] = 1
41791 nfields = split(line, field, "@
")
41793 len = length(field[1])
41794 for (i = 2; i < nfields; i++) {
41796 keylen = length(key)
41797 if (S_is_set[key]) {
41799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41800 len += length(value) + length(field[++i])
41811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41812 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41813 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
41816 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
41817 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
41820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
41822 # trailing colons and then remove the whole line if VPATH becomes empty
41823 # (actually we leave an empty line to preserve line numbers).
41824 if test "x
$srcdir" = x.; then
41825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
41843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41844 fi # test -n "$CONFIG_FILES"
41846 # Set up the scripts for CONFIG_HEADERS section.
41847 # No need to generate them if there are no CONFIG_HEADERS.
41848 # This happens for instance with `./config.status Makefile'.
41849 if test -n "$CONFIG_HEADERS"; then
41850 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
41854 # Transform confdefs.h into an awk script `defines.awk', embedded as
41855 # here-document in config.status, that substitutes the proper values into
41856 # config.h.in to produce config.h.
41858 # Create a delimiter string that does not exist in confdefs.h, to ease
41859 # handling of long lines.
41861 for ac_last_try in false false :; do
41862 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
41863 if test -z "$ac_tt"; then
41865 elif $ac_last_try; then
41866 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
41868 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
41872 # For the awk script, D is an array of macro values keyed by name,
41873 # likewise P contains macro parameters if any. Preserve backslash
41874 # newline sequences.
41876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41878 s/.\{148\}/&'"$ac_delim"'/g
41881 s/^[ ]*#[ ]*define[ ][ ]*/ /
41888 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
41890 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
41894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
41895 D["\
1"]=" \
3\\\\\\n
"\\/p
41897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
41902 s/.\{148\}/&'"$ac_delim"'/g
41907 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
41910 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
41912 ' <confdefs.h | sed '
41913 s/'"$ac_delim"'/"\\\
41914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
41916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41917 for (key in D) D_is_set[key] = 1
41920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41922 split(line, arg, " ")
41923 if (arg[1] == "#") {
41927 defundef
= substr
(arg
[1], 2)
41930 split(mac1
, mac2
, "(") #)
41932 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
41933 if (D_is_set
[macro
]) {
41934 # Preserve the white space surrounding the "#".
41935 print prefix
"define", macro P
[macro
] D
[macro
]
41938 # Replace #undef with comments. This is necessary, for example,
41939 # in the case of _POSIX_SOURCE, which is predefined and required
41940 # on some systems where configure will not decide to define it.
41941 if (defundef
== "undef") {
41942 print
"/*", prefix defundef
, macro
, "*/"
41950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41951 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
41952 fi # test -n "$CONFIG_HEADERS"
41955 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
41960 :[FHLC
]) ac_mode
=$ac_tag; continue;;
41962 case $ac_mode$ac_tag in
41964 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
41965 :[FH
]-) ac_tag
=-:-;;
41966 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
41983 -) ac_f
="$ac_tmp/stdin";;
41984 *) # Look for the file first in the build tree, then in the source tree
41985 # (if the path is not absolute). The absolute path cannot be DOS-style,
41986 # because $ac_f cannot contain `:'.
41990 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
41992 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41994 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41995 as_fn_append ac_file_inputs
" '$ac_f'"
41998 # Let's still pretend it is `configure' which instantiates (i.e., don't
41999 # use $as_me), people would be surprised to read:
42000 # /* config.h. Generated by config.status. */
42001 configure_input
='Generated from '`
42002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42004 if test x
"$ac_file" != x-
; then
42005 configure_input
="$ac_file. $configure_input"
42006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42007 $as_echo "$as_me: creating $ac_file" >&6;}
42009 # Neutralize special characters interpreted by sed in replacement strings.
42010 case $configure_input in #(
42011 *\
&* |
*\|
* |
*\\* )
42012 ac_sed_conf_input
=`$as_echo "$configure_input" |
42013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42014 *) ac_sed_conf_input
=$configure_input;;
42018 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
42019 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
42024 ac_dir
=`$as_dirname -- "$ac_file" ||
42025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42026 X"$ac_file" : 'X\(//\)[^/]' \| \
42027 X"$ac_file" : 'X\(//\)$' \| \
42028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42029 $as_echo X"$ac_file" |
42030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42034 /^X\(\/\/\)[^/].*/{
42047 as_dir
="$ac_dir"; as_fn_mkdir_p
42051 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42053 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42054 # A ".." for each directory in $ac_dir_suffix.
42055 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42056 case $ac_top_builddir_sub in
42057 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42058 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
42061 ac_abs_top_builddir
=$ac_pwd
42062 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
42063 # for backward compatibility:
42064 ac_top_builddir
=$ac_top_build_prefix
42067 .
) # We are building in place.
42069 ac_top_srcdir
=$ac_top_builddir_sub
42070 ac_abs_top_srcdir
=$ac_pwd ;;
42071 [\\/]* | ?
:[\\/]* ) # Absolute name.
42072 ac_srcdir
=$srcdir$ac_dir_suffix;
42073 ac_top_srcdir
=$srcdir
42074 ac_abs_top_srcdir
=$srcdir ;;
42075 *) # Relative name.
42076 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
42077 ac_top_srcdir
=$ac_top_build_prefix$srcdir
42078 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
42080 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
42090 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42091 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
42093 ac_MKDIR_P
=$MKDIR_P
42095 [\\/$
]* | ?
:[\\/]* ) ;;
42096 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
42100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42101 # If the template does not know about datarootdir, expand it.
42102 # FIXME: This hack should be removed a few years after 2.60.
42103 ac_datarootdir_hack
=; ac_datarootdir_seen
=
42114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42115 *datarootdir
*) ac_datarootdir_seen
=yes;;
42116 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
42117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42118 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42121 ac_datarootdir_hack='
42122 s&@datadir@&$datadir&g
42123 s&@docdir@&$docdir&g
42124 s&@infodir@&$infodir&g
42125 s&@localedir@&$localedir&g
42126 s&@mandir@&$mandir&g
42127 s&\\\${datarootdir}&$datarootdir&g' ;;
42131 # Neutralize VPATH when `$srcdir' = `.'.
42132 # Shell code in configure.ac might set extrasub.
42133 # FIXME: do we really want to maintain this feature?
42134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42135 ac_sed_extra="$ac_vpsub
42138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42140 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42141 s|@configure_input@|
$ac_sed_conf_input|
;t t
42142 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
42143 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
42144 s
&@srcdir@
&$ac_srcdir&;t t
42145 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
42146 s
&@top_srcdir@
&$ac_top_srcdir&;t t
42147 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
42148 s
&@builddir@
&$ac_builddir&;t t
42149 s
&@abs_builddir@
&$ac_abs_builddir&;t t
42150 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
42151 s
&@INSTALL@
&$ac_INSTALL&;t t
42152 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
42153 $ac_datarootdir_hack
42155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
42156 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
42158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
42160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42161 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
42162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
42163 which seems to be undefined. Please make sure it is defined" >&5
42164 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
42165 which seems to be undefined. Please make sure it is defined" >&2;}
42167 rm -f "$ac_tmp/stdin"
42169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42178 if test x"$ac_file" != x-; then
42180 $as_echo "/* $configure_input */" \
42181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42182 } >"$ac_tmp/config.h" \
42183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42186 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42189 mv "$ac_tmp/config.h" "$ac_file" \
42190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42193 $as_echo "/* $configure_input */" \
42194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42195 || as_fn_error $? "could not create -" "$LINENO" 5
42197 # Compute "$ac_file"'s index
in $config_headers.
42200 for _am_header
in $config_headers :; do
42201 case $_am_header in
42202 $_am_arg |
$_am_arg:* )
42205 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42208 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42209 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42210 X"$_am_arg" : 'X\(//\)[^/]' \| \
42211 X"$_am_arg" : 'X\(//\)$' \| \
42212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42213 $as_echo X"$_am_arg" |
42214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42218 /^X\(\/\/\)[^/].*/{
42230 s/.*/./; q'`/stamp-h
$_am_stamp_count
42233 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42234 $as_echo "$as_me: executing $ac_file commands" >&6;}
42239 case $ac_file$ac_mode in
42241 (mv zfs_config.h zfs_config.h.tmp
&&
42242 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
42243 rm zfs_config.h.tmp
) ||
exit 1 ;;
42244 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
42245 # Older Autoconf quotes --file arguments for eval, but not when files
42246 # are listed without --file. Let's play safe and only enable the eval
42247 # if we detect the quoting.
42248 case $CONFIG_FILES in
42249 *\'*) eval set x
"$CONFIG_FILES" ;;
42250 *) set x
$CONFIG_FILES ;;
42255 # Strip MF so we end up with the name of the file.
42256 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42257 # Check whether this is an Automake generated Makefile or not.
42258 # We used to match only the files named 'Makefile.in', but
42259 # some people rename them; so instead we look at the file content.
42260 # Grep'ing the first line is not enough: some people post-process
42261 # each Makefile.in and add a new line on top of each file to say so.
42262 # Grep'ing the whole file is not good either: AIX grep has a line
42263 # limit of 2048, but all sed's we know have understand at least 4000.
42264 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
42265 dirpart
=`$as_dirname -- "$mf" ||
42266 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42267 X"$mf" : 'X\(//\)[^/]' \| \
42268 X"$mf" : 'X\(//\)$' \| \
42269 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42275 /^X\(\/\/\)[^/].*/{
42291 # Extract the definition of DEPDIR, am__include, and am__quote
42292 # from the Makefile without running 'make'.
42293 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
42294 test -z "$DEPDIR" && continue
42295 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
42296 test -z "$am__include" && continue
42297 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
42298 # Find all dependency output files, they are included files with
42299 # $(DEPDIR) in their names. We invoke sed twice because it is the
42300 # simplest approach to changing $(DEPDIR) to its actual value in the
42302 for file in `sed -n "
42303 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42304 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42305 # Make sure the directory exists.
42306 test -f "$dirpart/$file" && continue
42307 fdir
=`$as_dirname -- "$file" ||
42308 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42309 X"$file" : 'X\(//\)[^/]' \| \
42310 X"$file" : 'X\(//\)$' \| \
42311 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42312 $as_echo X"$file" |
42313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42317 /^X\(\/\/\)[^/].*/{
42330 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
42331 # echo "creating $dirpart/$file"
42332 echo '# dummy' > "$dirpart/$file"
42339 # See if we are running on zsh, and set the options that allow our
42340 # commands through without removal of \ escapes.
42341 if test -n "${ZSH_VERSION+set}"; then
42342 setopt NO_GLOB_SUBST
42346 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42349 cat <<_LT_EOF >> "$cfgfile"
42351 # Generated automatically by $as_me ($PACKAGE) $VERSION
42352 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42354 # Provide generalized library-building support services.
42355 # Written by Gordon Matzigkeit, 1996
42357 # Copyright (C) 2014 Free Software Foundation, Inc.
42358 # This is free software; see the source for copying conditions. There is NO
42359 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42361 # GNU Libtool is free software; you can redistribute it and/or modify
42362 # it under the terms of the GNU General Public License as published by
42363 # the Free Software Foundation; either version 2 of of the License, or
42364 # (at your option) any later version.
42366 # As a special exception to the GNU General Public License, if you
42367 # distribute this file as part of a program or library that is built
42368 # using GNU Libtool, you may include this file under the same
42369 # distribution terms that you use for the rest of that program.
42371 # GNU Libtool is distributed in the hope that it will be useful, but
42372 # WITHOUT ANY WARRANTY; without even the implied warranty of
42373 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42374 # GNU General Public License for more details.
42376 # You should have received a copy of the GNU General Public License
42377 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42380 # The names of the tagged configurations supported by this script.
42383 # Configured defaults for sys_lib_dlsearch_path munging.
42384 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42386 # ### BEGIN LIBTOOL CONFIG
42388 # Which release of libtool.m4 was used?
42389 macro_version=$macro_version
42390 macro_revision=$macro_revision
42392 # Whether or not to build shared libraries.
42393 build_libtool_libs=$enable_shared
42395 # Whether or not to build static libraries.
42396 build_old_libs=$enable_static
42398 # What type of objects to build.
42401 # Whether or not to optimize for fast installation.
42402 fast_install=$enable_fast_install
42404 # Shared archive member basename,for filename based shared library versioning on AIX.
42405 shared_archive_member_spec=$shared_archive_member_spec
42407 # Shell to use when invoking shell scripts.
42410 # An echo program that protects backslashes.
42413 # The PATH separator for the build system.
42414 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42417 host_alias=$host_alias
42421 # The build system.
42422 build_alias=$build_alias
42426 # A sed program that does not truncate output.
42429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42430 Xsed="\$SED -e 1s/^X//"
42432 # A grep program that handles long lines.
42438 # A literal string matcher.
42441 # A BSD- or MS-compatible name lister.
42444 # Whether we need soft or hard links.
42447 # What is the maximum length of a command?
42448 max_cmd_len=$max_cmd_len
42450 # Object file suffix (normally "o").
42453 # Executable file suffix (normally "").
42456 # whether the shell understands "unset".
42459 # turn spaces into newlines.
42462 # turn newlines into spaces.
42465 # convert \$build file names to \$host format.
42466 to_host_file_cmd=$lt_cv_to_host_file_cmd
42468 # convert \$build files to toolchain format.
42469 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42471 # An object symbol dumper.
42472 OBJDUMP=$lt_OBJDUMP
42474 # Method to check whether dependent libraries are shared objects.
42475 deplibs_check_method=$lt_deplibs_check_method
42477 # Command to use when deplibs_check_method = "file_magic".
42478 file_magic_cmd=$lt_file_magic_cmd
42480 # How to find potential files when deplibs_check_method = "file_magic".
42481 file_magic_glob=$lt_file_magic_glob
42483 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42484 want_nocaseglob=$lt_want_nocaseglob
42486 # DLL creation program.
42487 DLLTOOL=$lt_DLLTOOL
42489 # Command to associate shared and link libraries.
42490 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42495 # Flags to create an archive.
42496 AR_FLAGS=$lt_AR_FLAGS
42498 # How to feed a file listing to the archiver.
42499 archiver_list_spec=$lt_archiver_list_spec
42501 # A symbol stripping program.
42504 # Commands used to install an old-style archive.
42506 old_postinstall_cmds=$lt_old_postinstall_cmds
42507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42509 # Whether to use a lock for old archive extraction.
42510 lock_old_archive_extraction=$lock_old_archive_extraction
42515 # LTCC compiler flags.
42516 LTCFLAGS=$lt_CFLAGS
42518 # Take the output of nm and produce a listing of raw symbols and C names.
42519 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42521 # Transform the output of nm in a proper C declaration.
42522 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42524 # Transform the output of nm into a list of symbols to manually relocate.
42525 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42527 # Transform the output of nm in a C name address pair.
42528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42530 # Transform the output of nm in a C name address pair when lib prefix is needed.
42531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42533 # The name lister interface.
42534 nm_interface=$lt_lt_cv_nm_interface
42536 # Specify filename containing input files for \$NM.
42537 nm_file_list_spec=$lt_nm_file_list_spec
42539 # The root where to search for dependent libraries,and where our libraries should be installed.
42540 lt_sysroot=$lt_sysroot
42542 # Command to truncate a binary pipe.
42543 lt_truncate_bin=$lt_lt_cv_truncate_bin
42545 # The name of the directory that contains temporary libtool files.
42548 # Used to examine libraries when file_magic_cmd begins with "file".
42549 MAGIC_CMD=$MAGIC_CMD
42551 # Must we lock files when doing compilation?
42552 need_locks=$lt_need_locks
42555 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42557 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42558 DSYMUTIL=$lt_DSYMUTIL
42560 # Tool to change global to local symbols on Mac OS X.
42563 # Tool to manipulate fat objects and archives on Mac OS X.
42566 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42569 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42570 OTOOL64=$lt_OTOOL64
42572 # Old archive suffix (normally "a").
42575 # Shared library suffix (normally ".so").
42576 shrext_cmds=$lt_shrext_cmds
42578 # The commands to extract the exported symbol list from a shared archive.
42579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42581 # Variables whose values should be saved in libtool wrapper scripts and
42582 # restored at link time.
42583 variables_saved_for_relink=$lt_variables_saved_for_relink
42585 # Do we need the "lib" prefix for modules?
42586 need_lib_prefix=$need_lib_prefix
42588 # Do we need a version for libraries?
42589 need_version=$need_version
42591 # Library versioning type.
42592 version_type=$version_type
42594 # Shared library runtime path variable.
42595 runpath_var=$runpath_var
42597 # Shared library path variable.
42598 shlibpath_var=$shlibpath_var
42600 # Is shlibpath searched before the hard-coded library search path?
42601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42603 # Format of library name prefix.
42604 libname_spec=$lt_libname_spec
42606 # List of archive names. First name is the real one, the rest are links.
42607 # The last name is the one that the linker finds with -lNAME
42608 library_names_spec=$lt_library_names_spec
42610 # The coded name of the library, if different from the real name.
42611 soname_spec=$lt_soname_spec
42613 # Permission mode override for installation of shared libraries.
42614 install_override_mode=$lt_install_override_mode
42616 # Command to use after installation of a shared archive.
42617 postinstall_cmds=$lt_postinstall_cmds
42619 # Command to use after uninstallation of a shared archive.
42620 postuninstall_cmds=$lt_postuninstall_cmds
42622 # Commands used to finish a libtool library installation in a directory.
42623 finish_cmds=$lt_finish_cmds
42625 # As "finish_cmds", except a single script fragment to be evaled but
42627 finish_eval=$lt_finish_eval
42629 # Whether we should hardcode library paths into libraries.
42630 hardcode_into_libs=$hardcode_into_libs
42632 # Compile-time system search path for libraries.
42633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42635 # Detected run-time system search path for libraries.
42636 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
42638 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
42639 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
42641 # Whether dlopen is supported.
42642 dlopen_support=$enable_dlopen
42644 # Whether dlopen of programs is supported.
42645 dlopen_self=$enable_dlopen_self
42647 # Whether dlopen of statically linked programs is supported.
42648 dlopen_self_static=$enable_dlopen_self_static
42650 # Commands to strip libraries.
42651 old_striplib=$lt_old_striplib
42652 striplib=$lt_striplib
42655 # The linker used to build libraries.
42658 # How to create reloadable object files.
42659 reload_flag=$lt_reload_flag
42660 reload_cmds=$lt_reload_cmds
42662 # Commands used to build an old-style archive.
42663 old_archive_cmds=$lt_old_archive_cmds
42665 # A language specific compiler.
42668 # Is the compiler the GNU compiler?
42671 # Compiler flag to turn off builtin functions.
42672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42674 # Additional compiler flags for building library objects.
42675 pic_flag=$lt_lt_prog_compiler_pic
42677 # How to pass a linker flag through the compiler.
42678 wl=$lt_lt_prog_compiler_wl
42680 # Compiler flag to prevent dynamic linking.
42681 link_static_flag=$lt_lt_prog_compiler_static
42683 # Does compiler simultaneously support -c and -o options?
42684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42686 # Whether or not to add -lc for building shared libraries.
42687 build_libtool_need_lc=$archive_cmds_need_lc
42689 # Whether or not to disallow shared libs when runtime libs are static.
42690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42692 # Compiler flag to allow reflexive dlopens.
42693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42695 # Compiler flag to generate shared objects directly from archives.
42696 whole_archive_flag_spec=$lt_whole_archive_flag_spec
42698 # Whether the compiler copes with passing no objects directly.
42699 compiler_needs_object=$lt_compiler_needs_object
42701 # Create an old-style archive from a shared archive.
42702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42704 # Create a temporary old-style archive to link instead of a shared archive.
42705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42707 # Commands used to build a shared archive.
42708 archive_cmds=$lt_archive_cmds
42709 archive_expsym_cmds=$lt_archive_expsym_cmds
42711 # Commands used to build a loadable module if different from building
42712 # a shared archive.
42713 module_cmds=$lt_module_cmds
42714 module_expsym_cmds=$lt_module_expsym_cmds
42716 # Whether we are building with GNU ld or not.
42717 with_gnu_ld=$lt_with_gnu_ld
42719 # Flag that allows shared libraries with undefined symbols to be built.
42720 allow_undefined_flag=$lt_allow_undefined_flag
42722 # Flag that enforces no undefined symbols.
42723 no_undefined_flag=$lt_no_undefined_flag
42725 # Flag to hardcode \$libdir into a binary during linking.
42726 # This must work even if \$libdir does not exist
42727 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42729 # Whether we need a single "-rpath" flag with a separated argument.
42730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
42732 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42733 # DIR into the resulting binary.
42734 hardcode_direct=$hardcode_direct
42736 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
42737 # DIR into the resulting binary and the resulting library dependency is
42738 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
42739 # library is relocated.
42740 hardcode_direct_absolute=$hardcode_direct_absolute
42742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42743 # into the resulting binary.
42744 hardcode_minus_L=$hardcode_minus_L
42746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42747 # into the resulting binary.
42748 hardcode_shlibpath_var=$hardcode_shlibpath_var
42750 # Set to "yes" if building a shared library automatically hardcodes DIR
42751 # into the library and all subsequent libraries and executables linked
42753 hardcode_automatic=$hardcode_automatic
42755 # Set to yes if linker adds runtime paths of dependent libraries
42756 # to runtime path list.
42757 inherit_rpath=$inherit_rpath
42759 # Whether libtool must link a program against all its dependency libraries.
42760 link_all_deplibs=$link_all_deplibs
42762 # Set to "yes" if exported symbols are required.
42763 always_export_symbols=$always_export_symbols
42765 # The commands to list exported symbols.
42766 export_symbols_cmds=$lt_export_symbols_cmds
42768 # Symbols that should not be listed in the preloaded symbols.
42769 exclude_expsyms=$lt_exclude_expsyms
42771 # Symbols that must always be exported.
42772 include_expsyms=$lt_include_expsyms
42774 # Commands necessary for linking programs (against libraries) with templates.
42775 prelink_cmds=$lt_prelink_cmds
42777 # Commands necessary for finishing linking programs.
42778 postlink_cmds=$lt_postlink_cmds
42780 # Specify filename containing input files.
42781 file_list_spec=$lt_file_list_spec
42783 # How to hardcode a shared library path into an executable.
42784 hardcode_action=$hardcode_action
42786 # ### END LIBTOOL CONFIG
42790 cat <<'_LT_EOF' >> "$cfgfile"
42792 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
42794 # func_munge_path_list VARIABLE PATH
42795 # -----------------------------------
42796 # VARIABLE is name of variable containing _space_ separated list of
42797 # directories to be munged by the contents of PATH, which is string
42800 # string "DIR[ DIR]" will be prepended to VARIABLE
42802 # string "DIR[ DIR]" will be appended to VARIABLE
42803 # "DIRP[:DIRP]::[DIRA:]DIRA"
42804 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
42805 # "DIRA[ DIRA]" will be appended to VARIABLE
42807 # VARIABLE will be replaced by "DIR[ DIR]"
42808 func_munge_path_list ()
42814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
42817 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
42820 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
42821 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
42824 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
42830 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
42831 func_cc_basename ()
42833 for cc_temp in $*""; do
42835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42841 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
42845 # ### END FUNCTIONS SHARED WITH CONFIGURE
42851 cat <<\_LT_EOF
>> "$cfgfile"
42852 # AIX sometimes has problems with the GCC collect2 program. For some
42853 # reason, if we set the COLLECT_NAMES environment variable, the problems
42854 # vanish in a puff of smoke.
42855 if test set != "${COLLECT_NAMES+set}"; then
42857 export COLLECT_NAMES
42864 ltmain
=$ac_aux_dir/ltmain.sh
42867 # We use sed instead of cat because bash on DJGPP gets confused if
42868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
42869 # text mode, it properly converts lines to CR/LF. This bash problem
42870 # is reportedly fixed, but why not run on old versions too?
42871 sed '$q' "$ltmain" >> "$cfgfile" \
42872 ||
(rm -f "$cfgfile"; exit 1)
42874 mv -f "$cfgfile" "$ofile" ||
42875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42886 ac_clean_files
=$ac_clean_files_save
42888 test $ac_write_fail = 0 ||
42889 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
42892 # configure is writing to config.log, and then calls config.status.
42893 # config.status does its own redirection, appending to config.log.
42894 # Unfortunately, on DOS this fails, as config.log is still kept open
42895 # by configure, so config.status won't be able to write to it; its
42896 # output is simply discarded. So we exec the FD to /dev/null,
42897 # effectively closing config.log, so it can be properly (re)opened and
42898 # appended to by config.status. When coming back to configure, we
42899 # need to make the FD available again.
42900 if test "$no_create" != yes; then
42902 ac_config_status_args
=
42903 test "$silent" = yes &&
42904 ac_config_status_args
="$ac_config_status_args --quiet"
42906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
42908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42909 # would make configure fail if this is the last instruction.
42910 $ac_cs_success || as_fn_exit
1
42912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
42913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}