2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.7.5.
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.5'
591 PACKAGE_STRING
='zfs 0.7.5'
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
638 WANT_MMAP_LIBAIO_FALSE
639 WANT_MMAP_LIBAIO_TRUE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
683 TARGET_ASM_GENERIC_FALSE
684 TARGET_ASM_GENERIC_TRUE
685 TARGET_ASM_I386_FALSE
687 TARGET_ASM_X86_64_FALSE
688 TARGET_ASM_X86_64_TRUE
691 NO_UNUSED_BUT_SET_VARIABLE
723 am__fastdepCCAS_FALSE
775 INSTALL_STRIP_PROGRAM
795 MAINTAINER_MODE_FALSE
849 program_transform_name
862 enable_option_checking
863 enable_maintainer_mode
865 enable_dependency_tracking
889 with_systemdpresetdir
890 with_systemdmodulesloaddir
896 ac_precious_vars
='build_alias
910 # Initialize some variables set by options.
912 ac_init_version
=false
913 ac_unrecognized_opts
=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name
=s
,x
,x
,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir
='${exec_prefix}/bin'
939 sbindir
='${exec_prefix}/sbin'
940 libexecdir
='${exec_prefix}/libexec'
941 datarootdir
='${prefix}/share'
942 datadir
='${datarootdir}'
943 sysconfdir
='${prefix}/etc'
944 sharedstatedir
='${prefix}/com'
945 localstatedir
='${prefix}/var'
946 runstatedir
='${localstatedir}/run'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1200 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1201 |
--run |
--ru |
--r)
1202 ac_prev
=runstatedir
;;
1203 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1204 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1205 |
--run=* |
--ru=* |
--r=*)
1206 runstatedir
=$ac_optarg ;;
1208 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1210 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1212 sbindir
=$ac_optarg ;;
1214 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1215 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1216 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1218 ac_prev
=sharedstatedir
;;
1219 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1220 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1221 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1223 sharedstatedir
=$ac_optarg ;;
1225 -site |
--site |
--sit)
1227 -site=* |
--site=* |
--sit=*)
1230 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1232 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1233 srcdir
=$ac_optarg ;;
1235 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1236 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1237 ac_prev
=sysconfdir
;;
1238 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1239 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1240 sysconfdir
=$ac_optarg ;;
1242 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1243 ac_prev
=target_alias
;;
1244 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1245 target_alias
=$ac_optarg ;;
1247 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1250 -version |
--version |
--versio |
--versi |
--vers |
-V)
1251 ac_init_version
=: ;;
1254 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=\
$ac_optarg ;;
1269 -without-* |
--without-*)
1270 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=no
;;
1286 # Obsolete; use --with-x.
1289 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1290 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1291 ac_prev
=x_includes
;;
1292 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1293 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1294 x_includes
=$ac_optarg ;;
1296 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1297 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1298 ac_prev
=x_libraries
;;
1299 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1300 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1301 x_libraries
=$ac_optarg ;;
1303 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1312 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\
$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $?
"missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir runstatedir
1347 eval ac_val
=\$
$ac_var
1348 # Remove trailing slashes.
1351 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\
$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$
]* | ?
:[\\/]* ) continue;;
1357 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1359 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $?
"working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $?
"pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted
=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir
=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted
=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1428 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var
in $ac_precious_vars; do
1445 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1447 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --build=BUILD configure
for building on BUILD
[guessed
]
1523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1524 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive
) echo "Configuration of zfs 0.7.5:";;
1535 --disable-option-checking ignore unrecognized
--enable/--with options
1536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1538 --enable-maintainer-mode
1539 enable make rules and dependencies not useful
(and
1540 sometimes confusing
) to the casual installer
1541 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1542 --disable-silent-rules verbose build output
(undo
: "make V=0")
1543 --enable-dependency-tracking
1544 do not reject slow dependency extractors
1545 --disable-dependency-tracking
1546 speeds up one-time build
1547 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1548 --enable-static[=PKGS
] build static libraries
[default
=yes]
1549 --enable-fast-install[=PKGS
]
1550 optimize
for fast installation
[default
=yes]
1551 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1552 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1554 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1555 --enable-sysvinit install SysV init scripts
[default
: yes]
1556 --enable-debug Enable generic debug support
[default
=no
]
1559 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1560 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1561 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning
(aka
"SONAME") variant to
1565 provide on AIX
, [default
=aix
].
1566 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1567 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1568 compiler
's sysroot if not specified).
1569 --with-spec=SPEC Spec files 'generic|redhat
'
1570 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1571 --with-linux=PATH Path to kernel source
1572 --with-linux-obj=PATH Path to kernel build objects
1573 --with-spl=PATH Path to spl source
1574 --with-spl-obj=PATH Path to spl build objects
1575 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1576 --with-qat=PATH Path to qat source
1577 --with-qat-obj=PATH Path to qat build objects
1578 --with-mounthelperdir=DIR
1579 install mount.zfs in dir [[/sbin]]
1580 --with-udevdir=DIR install udev helpers [default=check]
1581 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1582 --with-systemdunitdir=DIR
1583 install systemd unit files in dir
1584 [[/usr/lib/systemd/system]]
1585 --with-systemdpresetdir=DIR
1586 install systemd preset files in dir
1587 [[/usr/lib/systemd/system-preset]]
1588 --with-systemdmodulesloaddir=DIR
1589 install systemd module load files into dir
1590 [[/usr/lib/modules-load.d]]
1591 --with-dracutdir=DIR install dracut helpers [default=check]
1592 --with-tirpc use tirpc for xdr encoding [default=check]
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1603 User-defined run-time library search path.
1605 CCAS assembler compiler command (defaults to CC)
1606 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1608 Use these variables to override the choices made by `configure' or to
help
1609 it to
find libraries and programs with nonstandard names
/locations.
1611 Report bugs to the package provider.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1625 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1627 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1632 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir
=$ac_pwd
1636 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir
=$ac_top_build_prefix
1641 .
) # We are building in place.
1643 ac_top_srcdir
=$ac_top_builddir_sub
1644 ac_abs_top_srcdir
=$ac_pwd ;;
1645 [\\/]* | ?
:[\\/]* ) # Absolute name.
1646 ac_srcdir
=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir
=$srcdir
1648 ac_abs_top_srcdir
=$srcdir ;;
1650 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1675 generated by GNU Autoconf
2.69
1677 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1678 This configure
script is free software
; the Free Software Foundation
1679 gives unlimited permission to copy
, distribute and modify it.
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile
()
1693 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1694 rm -f conftest.
$ac_objext
1695 if { { ac_try
="$ac_compile"
1697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1736 *) ac_try_echo
=$ac_try;;
1738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1742 if test -s conftest.err
; then
1743 grep -v '^ *+' conftest.err
>conftest.er1
1744 cat conftest.er1
>&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest
$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest
$ac_exeext
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.
$ac_ext >&5
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status
$ac_retval
1770 } # ac_fn_c_try_link
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \
${$3+:} false
; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1789 if ac_fn_c_try_compile
"$LINENO"; then :
1794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_header_compile
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1850 *) ac_try_echo
=$ac_try;;
1852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=$ac_status
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1905 # include <limits.h>
1907 # include <assert.h>
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_func
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1954 ac_fn_c_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_mongrel
2035 cat >config.log <<_ACEOF
2036 This file contains any messages produced by compilers while
2037 running configure, to aid debugging if configure makes a mistake.
2039 It was created by zfs $as_me 0.7.5, which was
2040 generated by GNU Autoconf 2.69. Invocation command line was
2052 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2053 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2054 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2055 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2056 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2058 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2059 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2061 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2062 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2063 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2064 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2065 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2066 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2067 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 $as_echo "PATH: $as_dir"
2092 # Keep a trace of the command line.
2093 # Strip out --no-create and --no-recursion so they do not pile up.
2094 # Strip out --silent because we don't want to record it for future runs.
2095 # Also quote any args containing shell meta-characters.
2096 # Make two passes to allow for proper duplicate-argument suppression.
2100 ac_must_keep_next=false
2106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2108 | -silent | --silent | --silen | --sile | --sil)
2111 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116 as_fn_append ac_configure_args1 " '$ac_arg'"
2117 if test $ac_must_keep_next = true; then
2118 ac_must_keep_next=false # Got value, back to normal.
2121 *=* | --config-cache | -C | -disable-* | --disable-* \
2122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2124 | -with-* | --with-* | -without-* | --without-* | --x)
2125 case "$ac_configure_args0 " in
2126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 -* ) ac_must_keep_next=true ;;
2132 as_fn_append ac_configure_args " '$ac_arg'"
2137 { ac_configure_args0=; unset ac_configure_args0;}
2138 { ac_configure_args1=; unset ac_configure_args1;}
2140 # When interrupted or exit'd, cleanup temporary files, and complete
2141 # config.log. We remove comments because anyway the quotes in there
2142 # would cause problems or look ugly.
2143 # WARNING: Use '\'' to represent an apostrophe within the trap.
2144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2145 trap 'exit_status=$?
2146 # Save into config.log some information that might help in debugging.
2150 $as_echo "## ---------------- ##
2151 ## Cache variables. ##
2152 ## ---------------- ##"
2154 # The following way of writing the cache mishandles newlines in values,
2156 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2157 eval ac_val=\$$ac_var
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2172 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 $as_echo "## ----------------- ##
2187 ## Output variables. ##
2188 ## ----------------- ##"
2190 for ac_var in $ac_subst_vars
2192 eval ac_val=\$$ac_var
2194 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 $as_echo "$ac_var='\''$ac_val'\''"
2200 if test -n "$ac_subst_files"; then
2201 $as_echo "## ------------------- ##
2202 ## File substitutions. ##
2203 ## ------------------- ##"
2205 for ac_var in $ac_subst_files
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2216 if test -s confdefs.h; then
2217 $as_echo "## ----------- ##
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 for ac_signal in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2240 $as_echo "/* confdefs.h */" > confdefs.h
2242 # Predefined preprocessor variables.
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2273 if test -n "$CONFIG_SITE"; then
2274 # We do not want a PATH search for config.site.
2275 case $CONFIG_SITE in #((
2276 -*) ac_site_file1=./$CONFIG_SITE;;
2277 */*) ac_site_file1=$CONFIG_SITE;;
2278 *) ac_site_file1=./$CONFIG_SITE;;
2280 elif test "x$prefix" != xNONE; then
2281 ac_site_file1=$prefix/share/config.site
2282 ac_site_file2=$prefix/etc/config.site
2284 ac_site_file1=$ac_default_prefix/share/config.site
2285 ac_site_file2=$ac_default_prefix/etc/config.site
2287 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289 test "x$ac_site_file" = xNONE && continue
2290 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293 sed 's/^/| /' "$ac_site_file" >&5
2295 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 as_fn_error $? "failed to load site
script $ac_site_file
2298 See \
`config.log' for more details" "$LINENO" 5; }
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2319 # Check that the precious variables saved in the cache have kept the same
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2330 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2334 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x
$ac_old_val`
2341 ac_new_val_w=`echo x
$ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2345 ac_cache_corrupted=:
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 for ac_prog in gawk mawk nawk awk
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_AWK+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 if test -n "$AWK"; then
2407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_AWK="$ac_prog"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$AWK"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2429 $as_echo "$AWK" >&6; }
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2436 test -n "$AWK" && break
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2440 $as_echo_n "checking metadata... " >&6; }
2443 _zfs_ac_meta_type="none"
2444 if test -f "$META"; then
2445 _zfs_ac_meta_type="META file"
2446 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2448 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_NAME"; then
2451 cat >>confdefs.h <<_ACEOF
2452 #define ZFS_META_NAME "$ZFS_META_NAME"
2458 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_VERSION"; then
2461 cat >>confdefs.h <<_ACEOF
2462 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2468 if test -n "${_dpkg_parsechangelog}"; then
2469 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2470 | $AWK '$1 == "Version:" { print $2; }' \
2472 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2474 *** Version $ZFS_META_VERSION in the META file is different than
2475 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2476 *** packaging require that these files have the same version.
2481 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2483 if test -n "${_dpkg_parsechangelog}"; then
2484 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2485 | $AWK '$1 == "Version:" { print $2; }' \
2487 if test -n "${_dpkg_release}"; then
2488 ZFS_META_RELEASE=${_dpkg_release}
2489 _zfs_ac_meta_type="dpkg-parsechangelog"
2491 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2492 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2493 _alias=$(git describe --match=${_match} 2>/dev/null)
2494 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2495 if test -n "${_release}"; then
2496 ZFS_META_RELEASE=${_release}
2497 _zfs_ac_meta_type="git describe"
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2509 if test -n "$ZFS_META_RELEASE"; then
2511 cat >>confdefs.h <<_ACEOF
2512 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2517 RELEASE="$ZFS_META_RELEASE"
2521 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2522 if test -n "$ZFS_META_LICENSE"; then
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2531 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2532 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2533 test -n "$ZFS_META_RELEASE" &&
2534 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2536 cat >>confdefs.h <<_ACEOF
2537 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2543 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2544 if test -n "$ZFS_META_DATA"; then
2546 cat >>confdefs.h <<_ACEOF
2547 #define ZFS_META_DATA "$ZFS_META_DATA"
2553 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2554 if test -n "$ZFS_META_AUTHOR"; then
2556 cat >>confdefs.h <<_ACEOF
2557 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2564 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2566 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2567 if test -n "$ZFS_META_LT_CURRENT" \
2568 -o -n "$ZFS_META_LT_REVISION" \
2569 -o -n "$ZFS_META_LT_AGE"; then
2570 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2571 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2572 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2574 cat >>confdefs.h <<_ACEOF
2575 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2584 cat >>confdefs.h <<_ACEOF
2585 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2595 $as_echo "$_zfs_ac_meta_type" >&6; }
2599 for ac_dir in config "$srcdir"/config; do
2600 if test -f "$ac_dir/install-sh"; then
2602 ac_install_sh="$ac_aux_dir/install-sh -c"
2604 elif test -f "$ac_dir/install.sh"; then
2606 ac_install_sh="$ac_aux_dir/install.sh -c"
2608 elif test -f "$ac_dir/shtool"; then
2610 ac_install_sh="$ac_aux_dir/shtool install -c"
2614 if test -z "$ac_aux_dir"; then
2615 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653 ac_save_IFS=$IFS; IFS='-'
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2663 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if ${ac_cv_target+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2716 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2729 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2737 program_prefix=${target_alias}-
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2742 # Check whether --enable-maintainer-mode was given.
2743 if test "${enable_maintainer_mode+set}" = set; then :
2744 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2746 USE_MAINTAINER_MODE=no
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2750 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2751 if test $USE_MAINTAINER_MODE = yes; then
2752 MAINTAINER_MODE_TRUE=
2753 MAINTAINER_MODE_FALSE='#'
2755 MAINTAINER_MODE_TRUE='#'
2756 MAINTAINER_MODE_FALSE=
2759 MAINT=$MAINTAINER_MODE_TRUE
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=0;;
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if $as_echo 'TRUE=$(BAR$(V))
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2787 am_cv_make_support_nested_variables=no
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2801 am__api_version='1.15'
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821 $as_echo_n "(cached) " >&6
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2872 rm -rf conftest.one conftest.two conftest.dir
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2898 # Reject unsafe characters in $srcdir or the absolute working directory
2899 # name. Accept space and tab only in the latter.
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2907 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2911 # Do 'set' in a subshell so we don't clobber the current shell's
2912 # arguments. Must try -L first in case configure is actually a
2913 # symlink; some systems play weird games with the mod time of symlinks
2914 # (eg FreeBSD returns the mod time of the symlink's containing
2918 for am_try
in 1 2; do
2919 echo "timestamp, slept: $am_has_slept" > conftest.
file
2920 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921 if test "$*" = "X"; then
2923 set X
`ls -t "$srcdir/configure" conftest.file`
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2933 alias in your environment" "$LINENO" 5
2935 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2942 test "$2" = conftest.
file
2948 as_fn_error $?
"newly created file is older than distributed files!
2949 Check your system clock" "$LINENO" 5
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 # If we didn't sleep, we still need to ensure time stamps of config.status and
2954 # generated files are strictly newer.
2956 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2963 test "$program_prefix" != NONE
&&
2964 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE
&&
2967 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2973 # Expand $ac_aux_dir to an absolute path.
2974 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2976 if test x
"${MISSING+set}" != xset
; then
2979 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --is-lightweight"; then
2986 am_missing_run
="$MISSING "
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 if test x
"${install_sh+set}" != xset
; then
2996 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no
; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false
; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir
=.
3023 for ac_exec_ext
in '' $ac_executable_extensions; do
3024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 STRIP
=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip
; ac_word
=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP
="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x
; then
3087 case $cross_compiling:$ac_tool_warned in
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned
=yes ;;
3096 STRIP
="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false
; then :
3106 $as_echo_n "(cached) " >&6
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3109 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_prog
in mkdir gmkdir
; do
3114 for ac_exec_ext
in '' $ac_executable_extensions; do
3115 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3130 test -d .
/--version && rmdir .
/--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P
="$ac_cv_path_mkdir -p"
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P
="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3149 $as_echo_n "(cached) " >&6
3151 cat >conftest.
make <<\_ACEOF
3154 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3161 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3165 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 SET_MAKE
="MAKE=${MAKE-make}"
3175 rm -rf .tst
2>/dev
/null
3176 mkdir .tst
2>/dev
/null
3177 if test -d .tst
; then
3182 rmdir .tst
2>/dev
/null
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc
=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status
; then
3190 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3197 CYGPATH_W
='cygpath -w'
3204 # Define the identity of the package.
3209 cat >>confdefs.h
<<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3214 cat >>confdefs.h
<<_ACEOF
3215 #define VERSION "$VERSION"
3218 # Some tools Automake needs.
3220 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3226 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3232 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3234 # For better backward compatibility. To be removed once Automake 1.9.x
3235 # dies out for good. For more background, see:
3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238 mkdir_p
='$(MKDIR_P)'
3240 # We need awk for the "check" target (and possibly the TAP driver). The
3241 # system "awk" is bad on some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3247 # We'll loop over all known methods to create a tar archive until one works.
3248 _am_tools
='gnutar pax cpio none'
3250 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK
; else
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3279 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3285 Aborting the configuration process, to ensure you take notice of the issue.
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3295 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3299 ac_config_headers
="$ac_config_headers zfs_config.h"
3304 ac_cpp
='$CPP $CPPFLAGS'
3305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false
; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC
="$CC" # Let the user override the test.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir
=.
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$ac_cv_prog_CC"; then
3349 # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc
; ac_word
=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir
=.
3364 for ac_exec_ext
in '' $ac_executable_extensions; do
3365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_CC
="gcc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3385 if test "x$ac_ct_CC" = x
; then
3388 case $cross_compiling:$ac_tool_warned in
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned
=yes ;;
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false
; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC
="$CC" # Let the user override the test.
3412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir
=.
3417 for ac_exec_ext
in '' $ac_executable_extensions; do
3418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc
; ac_word
=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false
; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC
="$CC" # Let the user override the test.
3453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir
=.
3458 for ac_exec_ext
in '' $ac_executable_extensions; do
3459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461 ac_prog_rejected
=yes
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 if test $ac_prog_rejected = yes; then
3473 # We found a bogon in the path, so make sure we never use it.
3474 set dummy
$ac_cv_prog_CC
3476 if test $# != 0; then
3477 # We chose a different compiler from the bogus one.
3478 # However, it has the same basename, so the bogon will be chosen
3479 # first if we set CC to just the basename; use the full file name.
3481 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog
in cl.exe
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false
; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC
="$CC" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$CC" && break
3541 if test -z "$CC"; then
3543 for ac_prog
in cl.exe
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy
$ac_prog; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC
="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582 test -n "$ac_ct_CC" && break
3585 if test "x$ac_ct_CC" = x
; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned
=yes ;;
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $?
"no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 for ac_option
in --version -v -V -qversion; do
3611 { { ac_try
="$ac_compiler $ac_option >&5"
3613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3620 if test -s conftest.err; then
3622 ... rest of stderr output deleted ...
3623 10q' conftest.err >conftest.er1
3624 cat conftest.er1 >&5
3626 rm -f conftest.er1 conftest.err
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655 for ac_file in $ac_files
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664 if { { ac_try="$ac_link_default"
3666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3667 *) ac_try_echo
=$ac_try;;
3669 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link_default") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3680 for ac_file
in $ac_files ''
3682 test -f "$ac_file" ||
continue
3684 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3687 # We found the default executable, but exeext='' is most
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3693 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3705 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3710 if test -z "$ac_file"; then :
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.
$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error
77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext
=$ac_cv_exeext
3730 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3731 ac_clean_files
=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try
="$ac_link"
3736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3746 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3749 for ac_file
in conftest.exe conftest conftest.
*; do
3750 test -f "$ac_file" ||
continue
3752 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3753 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3764 rm -f conftest conftest
$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3768 rm -f conftest.
$ac_ext
3769 EXEEXT
=$ac_cv_exeext
3771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3777 FILE *f = fopen ("conftest.out", "w");
3778 return ferror (f) || fclose (f) != 0;
3784 ac_clean_files
="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run. If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790 { { ac_try
="$ac_link"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 if { ac_try='./conftest$ac_cv_exeext'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3804 *) ac_try_echo
=$ac_try;;
3806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3814 if test "$cross_compiling" = maybe
; then
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $?
"cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3828 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3829 ac_clean_files
=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false
; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try
="$ac_compile"
3849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compile") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3873 See \
`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 ac_save_c_werror_flag=$ac_c_werror_flag
3924 ac_c_werror_flag=yes
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982 CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984 if test "$GCC" = yes; then
3990 if test "$GCC" = yes; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 ac_cv_prog_cc_c89=no
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4022 s = g (p, va_arg (v,int));
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4028 function prototypes and stuff, but not '\xHH' hex character constants.
4029 These don't provoke an error unfortunately, instead are silently treated
4030 as 'x'. The following induces an error, until -std is added to get
4031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4032 array size at least. It's necessary to write '\x00'==0 to get something
4033 that's true only with -std. */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037 inside strings and character constants. */
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_c89=$ac_arg
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 rm -f conftest.$ac_ext
4070 case "x$ac_cv_prog_cc_c89" in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4099 if ${am_cv_prog_cc_c_o+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 # Make sure it works both with $CC and with simple cc.
4114 # Following AC_PROG_CC_C_O, we do the test twice because some
4115 # compilers refuse to overwrite an existing .o file with -o,
4116 # though they will create one.
4117 am_cv_prog_cc_c_o=yes
4119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } \
4124 && test -f conftest2.$ac_objext; then
4127 am_cv_prog_cc_c_o=no
4131 rm -f core conftest*
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4136 if test "$am_cv_prog_cc_c_o" != yes; then
4137 # Losing compiler, so override with the script.
4138 # FIXME: It is wrong to rewrite CC.
4139 # But if we don't then we get into trouble of one sort or another.
4140 # A longer-term fix would be to have automake use am__CC in this case,
4141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4142 CC="$am_aux_dir/compile $CC"
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 DEPDIR="${am__leading_dot}deps"
4152 ac_config_commands="$ac_config_commands depfiles"
4155 am_make=${MAKE-make}
4156 cat > confinc << 'END'
4158 @echo this is the am__doit target
4161 # If we don't find an include directive, just comment out the code.
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4167 # First try GNU make style include.
4168 echo "include confinc" > confmf
4169 # Ignore all kinds of additional output from 'make'.
4170 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4171 *the\ am__doit\ target*)
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4181 *the\ am__doit\ target*)
4182 am__include=.include
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4191 $as_echo "$_am_result" >&6; }
4192 rm -f confinc confmf
4194 # Check whether --enable-dependency-tracking was given.
4195 if test "${enable_dependency_tracking+set}" = set; then :
4196 enableval=$enable_dependency_tracking;
4199 if test "x$enable_dependency_tracking" != xno; then
4200 am_depcomp="$ac_aux_dir/depcomp"
4204 if test "x$enable_dependency_tracking" != xno; then
4214 depcc="$CC" am_compiler_list=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named 'D' -- because '-MD' means "put the output
4229 # Copy depcomp to subdir because otherwise we won't find it if we're
4230 # using a relative directory.
4231 cp "$am_depcomp" conftest.dir
4233 # We will build objects and dependencies in a subdirectory because
4234 # it helps to detect inapplicable dependency modes. For instance
4235 # both Tru64's cc and ICC support -MD to output dependencies as a
4236 # side effect of compilation, but ICC will put the dependencies in
4237 # the current directory while Tru64 will put them in the object
4241 am_cv_CC_dependencies_compiler_type=none
4242 if test "$am_compiler_list" = ""; then
4243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4246 case " $depcc " in #(
4247 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 for depmode in $am_compiler_list; do
4251 # Setup a source with many dependencies, because some compilers
4252 # like to wrap large dependency lists on column 80 (with \), and
4253 # we should not choose a depcomp mode which is confused by this.
4255 # We need to recreate these files for each test, as the compiler may
4256 # overwrite some of them when testing with obscure command lines.
4257 # This happens at least with the AIX C compiler.
4259 for i in 1 2 3 4 5 6; do
4260 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262 # Solaris 10 /bin/sh.
4263 echo '/* dummy */' > sub/conftst$i.h
4265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4267 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268 # mode. It turns out that the SunPro C++ compiler does not properly
4269 # handle '-M -o', and we need to detect this. Also, some Intel
4270 # versions had trouble with output in subdirs.
4271 am__obj=sub/conftest.${OBJEXT-o}
4272 am__minus_obj="-o $am__obj"
4275 # This depmode causes a compiler race in universal mode.
4276 test "$am__universal" = false || continue
4279 # After this tag, mechanisms are not by side-effect, so they'll
4280 # only be used when explicitly requested.
4281 if test "x$enable_dependency_tracking" = xyes; then
4287 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288 # This compiler won't grok '-c -o', but also, the minuso test has
4289 # not run yet. These depmodes are late enough in the game, and
4290 # so weak that their functioning should not be impacted.
4291 am__obj=conftest.${OBJEXT-o}
4296 if depmode=$depmode \
4297 source=sub/conftest.c object=$am__obj \
4298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300 >/dev/null 2>conftest.err &&
4301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305 # icc doesn't choke on unknown options, it will just issue warnings
4306 # or remarks (even with -Werror). So we grep stderr for any message
4307 # that says an option was ignored or not supported.
4308 # When given -MP, icc 7.0 and 7.1 complain thusly:
4309 # icc: Command line warning: ignoring option '-M'; no argument required
4310 # The diagnosis changed in icc 8.0:
4311 # icc: Command line remark: option '-MP' not supported
4312 if (grep 'ignoring option' conftest.err ||
4313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314 am_cv_CC_dependencies_compiler_type=$depmode
4323 am_cv_CC_dependencies_compiler_type=none
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4332 test "x$enable_dependency_tracking" != xno \
4333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4335 am__fastdepCC_FALSE='#'
4337 am__fastdepCC_TRUE='#'
4338 am__fastdepCC_FALSE=
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4350 macro_version='2.4.6'
4351 macro_revision='2.4.6'
4365 ltmain=$ac_aux_dir/ltmain.sh
4367 # Backslashify metacharacters that are still active within
4368 # double-quoted strings.
4369 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4371 # Same as above, but do not quote variable references.
4372 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4374 # Sed substitution to delay expansion of an escaped shell variable in a
4375 # double_quote_subst'ed string.
4376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4378 # Sed substitution to delay expansion of an escaped single quote.
4379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4381 # Sed substitution to avoid accidental globbing in evaled expressions
4382 no_glob_subst='s/\*/\\\*/g'
4384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4389 $as_echo_n "checking how to print
strings...
" >&6; }
4390 # Test print first, because it will be a builtin if present.
4391 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4392 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4394 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4397 # Use this function as a fallback that always works.
4398 func_fallback_echo ()
4400 eval 'cat <<_LTECHO_EOF
4404 ECHO='func_fallback_echo'
4407 # func_echo_all arg...
4408 # Invoke $ECHO with all args, space-separated.
4415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4416 $as_echo "printf" >&6; } ;;
4417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4418 $as_echo "print
-r" >&6; } ;;
4419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4420 $as_echo "cat" >&6; } ;;
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4437 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4438 if ${ac_cv_path_SED+:} false; then :
4439 $as_echo_n "(cached
) " >&6
4441 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442 for ac_i in 1 2 3 4 5 6 7; do
4443 ac_script="$ac_script$as_nl$ac_script"
4445 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446 { ac_script=; unset ac_script;}
4447 if test -z "$SED"; then
4448 ac_path_SED_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in sed gsed; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_SED" || continue
4459 # Check for GNU ac_path_SED and select it if it is found.
4460 # Check for GNU $ac_path_SED
4461 case `"$ac_path_SED" --version 2>&1` in
4463 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4466 $as_echo_n 0123456789 >"conftest.
in"
4469 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4470 mv "conftest.tmp
" "conftest.
in"
4471 cp "conftest.
in" "conftest.
nl"
4472 $as_echo '' >> "conftest.
nl"
4473 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4474 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_SED_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_SED="$ac_path_SED"
4479 ac_path_SED_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 $ac_path_SED_found && break 3
4492 if test -z "$ac_cv_path_SED"; then
4493 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4501 $as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4505 test -z "$SED" && SED=sed
4506 Xsed="$SED -e 1s
/^X
//"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4519 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4520 if ${ac_cv_path_GREP+:} false; then :
4521 $as_echo_n "(cached
) " >&6
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_GREP" || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4542 $as_echo_n 0123456789 >"conftest.
in"
4545 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4546 mv "conftest.tmp
" "conftest.
in"
4547 cp "conftest.
in" "conftest.
nl"
4548 $as_echo 'GREP' >> "conftest.
nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4550 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 $ac_path_GREP_found && break 3
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4572 ac_cv_path_GREP=$GREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4577 $as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4582 $as_echo_n "checking
for egrep...
" >&6; }
4583 if ${ac_cv_path_EGREP+:} false; then :
4584 $as_echo_n "(cached
) " >&6
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 as_fn_executable_p "$ac_path_EGREP" || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4608 $as_echo_n 0123456789 >"conftest.
in"
4611 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4612 mv "conftest.tmp
" "conftest.
in"
4613 cp "conftest.
in" "conftest.
nl"
4614 $as_echo 'EGREP' >> "conftest.
nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4616 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 $ac_path_EGREP_found && break 3
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4638 ac_cv_path_EGREP=$EGREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4644 $as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4649 $as_echo_n "checking
for fgrep...
" >&6; }
4650 if ${ac_cv_path_FGREP+:} false; then :
4651 $as_echo_n "(cached
) " >&6
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_FGREP" || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4675 $as_echo_n 0123456789 >"conftest.
in"
4678 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4679 mv "conftest.tmp
" "conftest.
in"
4680 cp "conftest.
in" "conftest.
nl"
4681 $as_echo 'FGREP' >> "conftest.
nl"
4682 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4683 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 $ac_path_FGREP_found && break 3
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4705 ac_cv_path_FGREP=$FGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4715 test -z "$GREP" && GREP=grep
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4743 if test yes = "$GCC"; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4746 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4749 # gcc leaves a trailing carriage return, which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4755 # Accept absolute paths.
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4763 test -z "$LD" && LD=$ac_prog
4766 # If it fails, then pretend we aren't using GCC.
4770 # If it is relative, then search for the first ld in PATH.
4774 elif test yes = "$with_gnu_ld"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4776 $as_echo_n "checking
for GNU ld...
" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4779 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4781 if ${lt_cv_path_LD+:} false; then :
4782 $as_echo_n "(cached
) " >&6
4784 if test -z "$LD"; then
4785 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD=$ac_dir/$ac_prog
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test no != "$with_gnu_ld" && break
4799 test yes != "$with_gnu_ld" && break
4806 lt_cv_path_LD=$LD # Let the user override the test with a path.
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4813 $as_echo "$LD" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4816 $as_echo "no
" >&6; }
4818 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4820 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4821 if ${lt_cv_prog_gnu_ld+:} false; then :
4822 $as_echo_n "(cached
) " >&6
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4830 lt_cv_prog_gnu_ld=no
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4847 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4848 if ${lt_cv_path_NM+:} false; then :
4849 $as_echo_n "(cached
) " >&6
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4855 lt_nm_to_check=${ac_tool_prefix}nm
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm
"
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm=$ac_dir/$lt_tmp_nm
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B
" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4872 mingw*) lt_bad_file=conftest.nm/nofile ;;
4873 *) lt_bad_file=/dev/null ;;
4875 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4876 *$lt_bad_file* | *'Invalid file or object type'*)
4877 lt_cv_path_NM="$tmp_nm -B"
4881 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4883 lt_cv_path_NM="$tmp_nm -p"
4887 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4888 continue # so that we can try to find one that supports BSD flags
4897 : ${lt_cv_path_NM=no}
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4901 $as_echo "$lt_cv_path_NM" >&6; }
4902 if test no != "$lt_cv_path_NM"; then
4905 # Didn't find any BSD compatible name lister, look for dumpbin.
4906 if test -n "$DUMPBIN"; then :
4907 # Let the user override the test.
4909 if test -n "$ac_tool_prefix"; then
4910 for ac_prog in dumpbin "link
-dump"
4912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4915 $as_echo_n "checking
for $ac_word...
" >&6; }
4916 if ${ac_cv_prog_DUMPBIN+:} false; then :
4917 $as_echo_n "(cached
) " >&6
4919 if test -n "$DUMPBIN"; then
4920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4939 DUMPBIN=$ac_cv_prog_DUMPBIN
4940 if test -n "$DUMPBIN"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4942 $as_echo "$DUMPBIN" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4945 $as_echo "no
" >&6; }
4949 test -n "$DUMPBIN" && break
4952 if test -z "$DUMPBIN"; then
4953 ac_ct_DUMPBIN=$DUMPBIN
4954 for ac_prog in dumpbin "link
-dump"
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4959 $as_echo_n "checking
for $ac_word...
" >&6; }
4960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4961 $as_echo_n "(cached
) " >&6
4963 if test -n "$ac_ct_DUMPBIN"; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4984 if test -n "$ac_ct_DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4986 $as_echo "$ac_ct_DUMPBIN" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4989 $as_echo "no
" >&6; }
4993 test -n "$ac_ct_DUMPBIN" && break
4996 if test "x
$ac_ct_DUMPBIN" = x; then
4999 case $cross_compiling:$ac_tool_warned in
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5002 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5003 ac_tool_warned=yes ;;
5005 DUMPBIN=$ac_ct_DUMPBIN
5009 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5011 DUMPBIN="$DUMPBIN -symbols -headers"
5019 if test : != "$DUMPBIN"; then
5023 test -z "$NM" && NM=nm
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5031 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5032 if ${lt_cv_nm_interface+:} false; then :
5033 $as_echo_n "(cached
) " >&6
5035 lt_cv_nm_interface="BSD nm
"
5036 echo "int some_variable
= 0;" > conftest.$ac_ext
5037 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5038 (eval "$ac_compile" 2>conftest.err)
5039 cat conftest.err >&5
5040 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5041 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5042 cat conftest.err >&5
5043 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5044 cat conftest.out >&5
5045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5046 lt_cv_nm_interface="MS dumpbin
"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5051 $as_echo "$lt_cv_nm_interface" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5054 $as_echo_n "checking whether
ln -s works...
" >&6; }
5056 if test "$LN_S" = "ln -s"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5058 $as_echo "yes" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5061 $as_echo "no
, using
$LN_S" >&6; }
5064 # find the maximum length of command line arguments
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5066 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5067 if ${lt_cv_sys_max_cmd_len+:} false; then :
5068 $as_echo_n "(cached
) " >&6
5075 # On DJGPP, this test can blow up pretty badly due to problems in libc
5076 # (any single argument exceeding 2000 bytes causes a buffer overrun
5077 # during glob expansion). Even if it were fixed, the result of this
5078 # check would be larger than it should be.
5079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5083 # Under GNU Hurd, this test is not required because there is
5084 # no limit to the length of command line arguments.
5085 # Libtool will interpret -1 as no limit whatsoever
5086 lt_cv_sys_max_cmd_len=-1;
5089 cygwin* | mingw* | cegcc*)
5090 # On Win9x/ME, this test blows up -- it succeeds, but takes
5091 # about 5 minutes as the teststring grows exponentially.
5092 # Worse, since 9x/ME are not pre-emptively multitasking,
5093 # you end up with a "frozen
" computer, even though with patience
5094 # the test eventually succeeds (with a max line length of 256k).
5095 # Instead, let's just punt: use the minimum linelength reported by
5096 # all of the supported platforms: 8192 (on NT/2K/XP).
5097 lt_cv_sys_max_cmd_len=8192;
5101 # On MiNT this can take a long time and run out of memory.
5102 lt_cv_sys_max_cmd_len=8192;
5106 # On AmigaOS with pdksh, this test takes hours, literally.
5107 # So we just punt and use a minimum line length of 8192.
5108 lt_cv_sys_max_cmd_len=8192;
5111 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5112 # This has been around since 386BSD, at least. Likely further.
5113 if test -x /sbin/sysctl; then
5114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5115 elif test -x /usr/sbin/sysctl; then
5116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5120 # And add a safety zone
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5127 lt_cv_sys_max_cmd_len=196608
5131 # The test takes a long time on OS/2.
5132 lt_cv_sys_max_cmd_len=8192
5136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138 # nice to cause kernel panics so lets avoid the loop below.
5139 # First set a reasonable default.
5140 lt_cv_sys_max_cmd_len=16384
5142 if test -x /sbin/sysconfig; then
5143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5149 lt_cv_sys_max_cmd_len=102400
5151 sysv5* | sco5v6* | sysv4.2uw2*)
5152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153 if test -n "$kargmax"; then
5154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5156 lt_cv_sys_max_cmd_len=32768
5160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161 if test -n "$lt_cv_sys_max_cmd_len" && \
5162 test undefined != "$lt_cv_sys_max_cmd_len"; then
5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5166 # Make teststring a little bigger before we do anything with it.
5167 # a 1K string should be a reasonable start.
5168 for i in 1 2 3 4 5 6 7 8; do
5169 teststring=$teststring$teststring
5171 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172 # If test is not a shell built-in, we'll probably end up computing a
5173 # maximum length that is only half of the actual maximum length, but
5175 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5176 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5177 test 17 != "$i" # 1/2 MB should be enough
5180 teststring=$teststring$teststring
5182 # Only check the string length outside the loop.
5183 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5185 # Add a significant safety factor because C++ compilers can tack on
5186 # massive amounts of additional arguments before passing them to the
5187 # linker. It appears as though 1/2 is a usable value.
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5200 $as_echo "none
" >&6; }
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 # test EBCDIC or ASCII
5224 case `echo X|tr X '\101'` in
5225 A) # ASCII based system
5226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5227 lt_SP2NL='tr \040 \012'
5228 lt_NL2SP='tr \015\012 \040\040'
5230 *) # EBCDIC based system
5231 lt_SP2NL='tr \100 \n'
5232 lt_NL2SP='tr \r\n \100\100'
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5245 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5246 if ${lt_cv_to_host_file_cmd+:} false; then :
5247 $as_echo_n "(cached
) " >&6
5252 *-*-mingw* ) # actually msys
5253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5258 * ) # otherwise, assume *nix
5259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5265 *-*-mingw* ) # actually msys
5266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5271 * ) # otherwise, assume *nix
5272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5276 * ) # unhandled hosts (and "normal
" native builds)
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5283 to_host_file_cmd=$lt_cv_to_host_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5285 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5292 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5293 if ${lt_cv_to_tool_file_cmd+:} false; then :
5294 $as_echo_n "(cached
) " >&6
5296 #assume ordinary cross tools, or native build.
5297 lt_cv_to_tool_file_cmd=func_convert_file_noop
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5312 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5319 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5320 if ${lt_cv_ld_reload_flag+:} false; then :
5321 $as_echo_n "(cached
) " >&6
5323 lt_cv_ld_reload_flag='-r'
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5330 *) reload_flag=" $reload_flag" ;;
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5334 cygwin* | mingw* | pw32* | cegcc*)
5335 if test yes != "$GCC"; then
5340 if test yes = "$GCC"; then
5341 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5360 $as_echo_n "checking
for $ac_word...
" >&6; }
5361 if ${ac_cv_prog_OBJDUMP+:} false; then :
5362 $as_echo_n "(cached
) " >&6
5364 if test -n "$OBJDUMP"; then
5365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5384 OBJDUMP=$ac_cv_prog_OBJDUMP
5385 if test -n "$OBJDUMP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5387 $as_echo "$OBJDUMP" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5390 $as_echo "no
" >&6; }
5395 if test -z "$ac_cv_prog_OBJDUMP"; then
5396 ac_ct_OBJDUMP=$OBJDUMP
5397 # Extract the first word of "objdump
", so it can be a program name with args.
5398 set dummy objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5400 $as_echo_n "checking
for $ac_word...
" >&6; }
5401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached
) " >&6
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5427 $as_echo "$ac_ct_OBJDUMP" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5430 $as_echo "no
" >&6; }
5433 if test "x
$ac_ct_OBJDUMP" = x; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5439 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5440 ac_tool_warned=yes ;;
5442 OBJDUMP=$ac_ct_OBJDUMP
5445 OBJDUMP="$ac_cv_prog_OBJDUMP"
5448 test -z "$OBJDUMP" && OBJDUMP=objdump
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5459 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5460 if ${lt_cv_deplibs_check_method+:} false; then :
5461 $as_echo_n "(cached
) " >&6
5463 lt_cv_file_magic_cmd='$MAGIC_CMD'
5464 lt_cv_file_magic_test_file=
5465 lt_cv_deplibs_check_method='unknown'
5466 # Need to set the preceding variable on all platforms that support
5467 # interlibrary dependencies.
5468 # 'none' -- dependencies not supported.
5469 # 'unknown' -- same as none, but documents that we really don't know.
5470 # 'pass_all' -- all dependencies passed with no checks.
5471 # 'test_compile' -- check by making test program.
5472 # 'file_magic [[regex]]' -- check by looking for files in library path
5473 # that responds to the $file_magic_cmd with a given extended regex.
5474 # If you have 'file' or equivalent on your system and you're not sure
5475 # whether 'pass_all' will *always* work, you probably want this one.
5479 lt_cv_deplibs_check_method=pass_all
5483 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5488 lt_cv_file_magic_cmd='/usr/bin/file -L'
5489 lt_cv_file_magic_test_file=/shlib/libc.so
5493 # func_win32_libid is a shell function defined in ltmain.sh
5494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5495 lt_cv_file_magic_cmd='func_win32_libid'
5499 # Base MSYS/MinGW do not provide the 'file' command needed by
5500 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5501 # unless we find 'file', for example because we are cross-compiling.
5502 if ( file / ) >/dev/null 2>&1; then
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5506 # Keep this pattern in sync with the one in func_win32_libid.
5507 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5508 lt_cv_file_magic_cmd='$OBJDUMP -f'
5513 # use the weaker test based on 'objdump'. See mingw*.
5514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5515 lt_cv_file_magic_cmd='$OBJDUMP -f'
5518 darwin* | rhapsody*)
5519 lt_cv_deplibs_check_method=pass_all
5522 freebsd* | dragonfly*)
5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5526 # Not sure whether the presence of OpenBSD here was a mistake.
5527 # Let's accept both of them until this is cleared up.
5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529 lt_cv_file_magic_cmd=/usr/bin/file
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5534 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5565 irix5* | irix6* | nonstopux*)
5567 *-32|*"-32 ") libmagic=32-bit;;
5568 *-n32|*"-n32 ") libmagic=N32;;
5569 *-64|*"-64 ") libmagic=64-bit;;
5570 *) libmagic=never-match;;
5572 lt_cv_deplibs_check_method=pass_all
5575 # This must be glibc/ELF.
5576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5577 lt_cv_deplibs_check_method=pass_all
5580 netbsd* | netbsdelf*-gnu)
5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5590 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5595 lt_cv_deplibs_check_method=pass_all
5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606 osf3* | osf4* | osf5*)
5607 lt_cv_deplibs_check_method=pass_all
5611 lt_cv_deplibs_check_method=pass_all
5615 lt_cv_deplibs_check_method=pass_all
5618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5619 lt_cv_deplibs_check_method=pass_all
5623 case $host_vendor in
5625 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]'
5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5629 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_file_magic_cmd='/bin/file'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5636 lt_cv_file_magic_cmd='/bin/file'
5637 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5638 lt_cv_file_magic_test_file=/lib/libc.so
5641 lt_cv_deplibs_check_method=pass_all
5644 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method=pass_all
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5663 if test "$build" = "$host"; then
5666 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5669 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5675 file_magic_cmd=$lt_cv_file_magic_cmd
5676 deplibs_check_method=$lt_cv_deplibs_check_method
5677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5704 $as_echo_n "checking
for $ac_word...
" >&6; }
5705 if ${ac_cv_prog_DLLTOOL+:} false; then :
5706 $as_echo_n "(cached
) " >&6
5708 if test -n "$DLLTOOL"; then
5709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5728 DLLTOOL=$ac_cv_prog_DLLTOOL
5729 if test -n "$DLLTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5731 $as_echo "$DLLTOOL" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5734 $as_echo "no
" >&6; }
5739 if test -z "$ac_cv_prog_DLLTOOL"; then
5740 ac_ct_DLLTOOL=$DLLTOOL
5741 # Extract the first word of "dlltool
", so it can be a program name with args.
5742 set dummy dlltool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5744 $as_echo_n "checking
for $ac_word...
" >&6; }
5745 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5746 $as_echo_n "(cached
) " >&6
5748 if test -n "$ac_ct_DLLTOOL"; then
5749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769 if test -n "$ac_ct_DLLTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5771 $as_echo "$ac_ct_DLLTOOL" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5774 $as_echo "no
" >&6; }
5777 if test "x
$ac_ct_DLLTOOL" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5783 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5784 ac_tool_warned=yes ;;
5786 DLLTOOL=$ac_ct_DLLTOOL
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5792 test -z "$DLLTOOL" && DLLTOOL=dlltool
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5804 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5805 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5806 $as_echo_n "(cached
) " >&6
5808 lt_cv_sharedlib_from_linklib_cmd='unknown'
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 # two different shell functions defined in ltmain.sh;
5813 # decide which one to use based on capabilities of $DLLTOOL
5814 case `$DLLTOOL --help 2>&1` in
5815 *--identify-strict*)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5819 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5824 # fallback: assume linklib IS sharedlib
5825 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5842 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5848 $as_echo_n "checking
for $ac_word...
" >&6; }
5849 if ${ac_cv_prog_AR+:} false; then :
5850 $as_echo_n "(cached
) " >&6
5852 if test -n "$AR"; then
5853 ac_cv_prog_AR="$AR" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5873 if test -n "$AR"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5875 $as_echo "$AR" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5878 $as_echo "no
" >&6; }
5882 test -n "$AR" && break
5885 if test -z "$AR"; then
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5892 $as_echo_n "checking
for $ac_word...
" >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached
) " >&6
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5922 $as_echo "no
" >&6; }
5926 test -n "$ac_ct_AR" && break
5929 if test "x
$ac_ct_AR" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5935 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5936 ac_tool_warned=yes ;;
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5956 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5957 if ${lt_cv_ar_at_file+:} false; then :
5958 $as_echo_n "(cached
) " >&6
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 echo conftest.$ac_objext > conftest.lst
5974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5975 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5976 (eval $lt_ar_try) 2>&5
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5979 test $ac_status = 0; }
5980 if test 0 -eq "$ac_status"; then
5981 # Ensure the archiver fails upon bogus file names.
5982 rm -f conftest.$ac_objext libconftest.a
5983 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984 (eval $lt_ar_try) 2>&5
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5987 test $ac_status = 0; }
5988 if test 0 -ne "$ac_status"; then
5992 rm -f conftest.* libconftest.a
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5999 $as_echo "$lt_cv_ar_at_file" >&6; }
6001 if test no = "$lt_cv_ar_at_file"; then
6004 archiver_list_spec=$lt_cv_ar_at_file
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}strip; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6017 $as_echo_n "checking
for $ac_word...
" >&6; }
6018 if ${ac_cv_prog_STRIP+:} false; then :
6019 $as_echo_n "(cached
) " >&6
6021 if test -n "$STRIP"; then
6022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6041 STRIP=$ac_cv_prog_STRIP
6042 if test -n "$STRIP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6044 $as_echo "$STRIP" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6047 $as_echo "no
" >&6; }
6052 if test -z "$ac_cv_prog_STRIP"; then
6054 # Extract the first word of "strip
", so it can be a program name with args.
6055 set dummy strip; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6057 $as_echo_n "checking
for $ac_word...
" >&6; }
6058 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6059 $as_echo_n "(cached
) " >&6
6061 if test -n "$ac_ct_STRIP"; then
6062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_STRIP="strip
"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082 if test -n "$ac_ct_STRIP"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6084 $as_echo "$ac_ct_STRIP" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6087 $as_echo "no
" >&6; }
6090 if test "x
$ac_ct_STRIP" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6096 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6097 ac_tool_warned=yes ;;
6102 STRIP="$ac_cv_prog_STRIP"
6105 test -z "$STRIP" && STRIP=:
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6116 $as_echo_n "checking
for $ac_word...
" >&6; }
6117 if ${ac_cv_prog_RANLIB+:} false; then :
6118 $as_echo_n "(cached
) " >&6
6120 if test -n "$RANLIB"; then
6121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6140 RANLIB=$ac_cv_prog_RANLIB
6141 if test -n "$RANLIB"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6143 $as_echo "$RANLIB" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6146 $as_echo "no
" >&6; }
6151 if test -z "$ac_cv_prog_RANLIB"; then
6152 ac_ct_RANLIB=$RANLIB
6153 # Extract the first word of "ranlib
", so it can be a program name with args.
6154 set dummy ranlib; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6156 $as_echo_n "checking
for $ac_word...
" >&6; }
6157 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6158 $as_echo_n "(cached
) " >&6
6160 if test -n "$ac_ct_RANLIB"; then
6161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181 if test -n "$ac_ct_RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6183 $as_echo "$ac_ct_RANLIB" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6186 $as_echo "no
" >&6; }
6189 if test "x
$ac_ct_RANLIB" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6195 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6196 ac_tool_warned=yes ;;
6198 RANLIB=$ac_ct_RANLIB
6201 RANLIB="$ac_cv_prog_RANLIB"
6204 test -z "$RANLIB" && RANLIB=:
6211 # Determine commands to create old-style static archives.
6212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6213 old_postinstall_cmds='chmod 644 $oldlib'
6214 old_postuninstall_cmds=
6216 if test -n "$RANLIB"; then
6219 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6222 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6225 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6230 lock_old_archive_extraction=yes ;;
6232 lock_old_archive_extraction=no ;;
6273 # If no C compiler was specified, use CC.
6276 # If no C compiler flags were specified, use CFLAGS.
6277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6279 # Allow CC to be a program name with arguments.
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6285 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287 $as_echo_n "(cached
) " >&6
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299 # Define system-specific variables.
6304 cygwin* | mingw* | pw32* | cegcc*)
6305 symcode='[ABCDGISTW]'
6308 if test ia64 = "$host_cpu"; then
6309 symcode='[ABCDEGRST]'
6313 symcode='[BCDEGRST]'
6316 symcode='[BCDEGQRST]'
6327 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6335 # If we're using GNU nm, then use its standard symbol codes.
6336 case `$NM -V 2>&1` in
6337 *GNU* | *'with BFD'*)
6338 symcode='[ABCDGIRSTW]' ;;
6341 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6342 # Gets list of data symbols to import.
6343 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6344 # Adjust the below global symbol transforms to fixup imported variables.
6345 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6346 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6347 lt_c_name_lib_hook="\
6348 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6349 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6351 # Disable hooks by default.
6352 lt_cv_sys_global_symbol_to_import=
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6363 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6364 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6369 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6370 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6372 # Transform an extracted symbol line into symbol name with lib prefix and
6374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6375 $lt_c_name_lib_hook\
6376 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6377 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6378 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6380 # Handle CRLF in mingw tool chain
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6388 # Try without a prefix underscore, then with it.
6389 for ac_symprfx in "" "_
"; do
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6396 # Fake it for dumpbin and say T for any non-static function,
6397 # D for any global variable and I for any imported variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401 " {last_section=section; section=\$ 3};"\
6402 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6405 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6406 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6411 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6412 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6414 " ' prfx
=^
$ac_symprfx"
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6418 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6420 # Check to see that the pipe works correctly.
6424 cat > conftest.$ac_ext <<_LT_EOF
6429 void nm_test_func(void);
6430 void nm_test_func(void){}
6434 int main(){nm_test_var='a';nm_test_func();return(0);}
6437 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 # Now try to grab the symbols.
6444 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6448 test $ac_status = 0; } && test -s "$nlist"; then
6449 # Try sorting and uniquifying the output.
6450 if sort "$nlist" | uniq > "$nlist"T; then
6451 mv -f "$nlist"T "$nlist"
6456 # Make sure that we snagged all the symbols we need.
6457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459 cat <<_LT_EOF > conftest.$ac_ext
6460 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6461 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6462 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6463 relocations are performed -- see ld's documentation on pseudo-relocs. */
6464 # define LT_DLSYM_CONST
6465 #elif defined __osf__
6466 /* This system does not cope well with relocations in const data. */
6467 # define LT_DLSYM_CONST
6469 # define LT_DLSYM_CONST const
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6480 cat <<_LT_EOF >> conftest.$ac_ext
6482 /* The mapping between symbol names and symbols. */
6483 LT_DLSYM_CONST struct {
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6489 { "@PROGRAM@
", (void *) 0 },
6491 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_globsym_save_LIBS=$LIBS
6510 lt_globsym_save_CFLAGS=$CFLAGS
6511 LIBS=conftstm.$ac_objext
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6520 LIBS=$lt_globsym_save_LIBS
6521 CFLAGS=$lt_globsym_save_CFLAGS
6523 echo "cannot
find nm_test_func
in $nlist" >&5
6526 echo "cannot
find nm_test_var
in $nlist" >&5
6529 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6532 echo "$progname: failed program was
:" >&5
6533 cat conftest.$ac_ext >&5
6535 rm -rf conftest* conftst*
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test yes = "$pipe_works"; then
6541 lt_cv_sys_global_symbol_pipe=
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6552 $as_echo "failed
" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6555 $as_echo "ok
" >&6; }
6558 # Response file support.
6559 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6560 nm_file_list_spec='@'
6561 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6562 nm_file_list_spec='@'
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6602 $as_echo_n "checking
for sysroot...
" >&6; }
6604 # Check whether --with-sysroot was given.
6605 if test "${with_sysroot+set}" = set; then :
6606 withval=$with_sysroot;
6613 case $with_sysroot in #(
6615 if test yes = "$GCC"; then
6616 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6620 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6626 $as_echo "$with_sysroot" >&6; }
6627 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6632 $as_echo "${lt_sysroot:-no}" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6639 $as_echo_n "checking
for a working
dd...
" >&6; }
6640 if ${ac_cv_path_lt_DD+:} false; then :
6641 $as_echo_n "(cached
) " >&6
6643 printf 0123456789abcdef0123456789abcdef >conftest.i
6644 cat conftest.i conftest.i >conftest2.i
6646 if test -z "$lt_DD"; then
6647 ac_path_lt_DD_found=false
6648 # Loop through the user's path and test for each of PROGNAME-LIST
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_prog in dd; do
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6657 as_fn_executable_p "$ac_path_lt_DD" || continue
6658 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6659 cmp -s conftest.i conftest.out \
6660 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6662 $ac_path_lt_DD_found && break 3
6667 if test -z "$ac_cv_path_lt_DD"; then
6671 ac_cv_path_lt_DD=$lt_DD
6674 rm -f conftest.i conftest2.i conftest.out
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6677 $as_echo "$ac_cv_path_lt_DD" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6681 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6682 if ${lt_cv_truncate_bin+:} false; then :
6683 $as_echo_n "(cached
) " >&6
6685 printf 0123456789abcdef0123456789abcdef >conftest.i
6686 cat conftest.i conftest.i >conftest2.i
6688 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6689 cmp -s conftest.i conftest.out \
6690 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6692 rm -f conftest.i conftest2.i conftest.out
6693 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6696 $as_echo "$lt_cv_truncate_bin" >&6; }
6704 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6707 for cc_temp in $*""; do
6709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6715 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6718 # Check whether --enable-libtool-lock was given.
6719 if test "${enable_libtool_lock+set}" = set; then :
6720 enableval=$enable_libtool_lock;
6723 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6725 # Some flags need to be propagated to the compiler or linker for good
6729 # Find out what ABI is being produced by ac_compile, and set mode
6730 # options accordingly.
6731 echo 'int i;' > conftest.$ac_ext
6732 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.$ac_objext` in
6749 # Find out what ABI is being produced by ac_compile, and set linker
6750 # options accordingly.
6751 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6752 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 if test yes = "$lt_cv_prog_gnu_ld"; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6760 LD="${LD-ld} -melf32bsmip"
6763 LD="${LD-ld} -melf32bmipn32"
6766 LD="${LD-ld} -melf64bmip"
6770 case `/usr/bin/file conftest.$ac_objext` in
6787 # Find out what ABI is being produced by ac_compile, and set linker
6788 # options accordingly.
6789 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6790 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6794 test $ac_status = 0; }; then
6796 case `/usr/bin/file conftest.$ac_objext` in
6804 case `/usr/bin/file conftest.$ac_objext` in
6806 emul="${emul}btsmip
"
6809 emul="${emul}ltsmip
"
6812 case `/usr/bin/file conftest.$ac_objext` in
6817 LD="${LD-ld} -m $emul"
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out what ABI is being produced by ac_compile, and set linker
6825 # options accordingly. Note that the listed cases only cover the
6826 # situations where additional linker options are needed (such as when
6827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6828 # vice versa); the common cases where no linker options are needed do
6829 # not appear in the list.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.o` in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_i386_fbsd
"
6843 case `/usr/bin/file conftest.o` in
6845 LD="${LD-ld} -m elf32_x86_64
"
6848 LD="${LD-ld} -m elf_i386
"
6852 powerpc64le-*linux*)
6853 LD="${LD-ld} -m elf32lppclinux
"
6856 LD="${LD-ld} -m elf32ppclinux
"
6859 LD="${LD-ld} -m elf_s390
"
6862 LD="${LD-ld} -m elf32_sparc
"
6868 x86_64-*kfreebsd*-gnu)
6869 LD="${LD-ld} -m elf_x86_64_fbsd
"
6872 LD="${LD-ld} -m elf_x86_64
"
6875 LD="${LD-ld} -m elf64lppc
"
6878 LD="${LD-ld} -m elf64ppc
"
6880 s390*-*linux*|s390*-*tpf*)
6881 LD="${LD-ld} -m elf64_s390
"
6884 LD="${LD-ld} -m elf64_sparc
"
6894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6896 CFLAGS="$CFLAGS -belf"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6898 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6899 if ${lt_cv_cc_needs_belf+:} false; then :
6900 $as_echo_n "(cached
) " >&6
6903 ac_cpp='$CPP $CPPFLAGS'
6904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6919 if ac_fn_c_try_link "$LINENO"; then :
6920 lt_cv_cc_needs_belf=yes
6922 lt_cv_cc_needs_belf=no
6924 rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6935 if test yes != "$lt_cv_cc_needs_belf"; then
6936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6941 # Find out what ABI is being produced by ac_compile, and set linker
6942 # options accordingly.
6943 echo 'int i;' > conftest.$ac_ext
6944 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945 (eval $ac_compile) 2>&5
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6948 test $ac_status = 0; }; then
6949 case `/usr/bin/file conftest.o` in
6951 case $lt_cv_prog_gnu_ld in
6954 i?86-*-solaris*|x86_64-*-solaris*)
6955 LD="${LD-ld} -m elf_x86_64
"
6958 LD="${LD-ld} -m elf64_sparc
"
6961 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6962 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6979 need_locks=$enable_libtool_lock
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}mt; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6985 $as_echo_n "checking
for $ac_word...
" >&6; }
6986 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6987 $as_echo_n "(cached
) " >&6
6989 if test -n "$MANIFEST_TOOL"; then
6990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7009 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7010 if test -n "$MANIFEST_TOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7012 $as_echo "$MANIFEST_TOOL" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7015 $as_echo "no
" >&6; }
7020 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7022 # Extract the first word of "mt
", so it can be a program name with args.
7023 set dummy mt; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7025 $as_echo_n "checking
for $ac_word...
" >&6; }
7026 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7027 $as_echo_n "(cached
) " >&6
7029 if test -n "$ac_ct_MANIFEST_TOOL"; then
7030 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7050 if test -n "$ac_ct_MANIFEST_TOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7052 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7055 $as_echo "no
" >&6; }
7058 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7064 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7065 ac_tool_warned=yes ;;
7067 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7070 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7073 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7075 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7076 if ${lt_cv_path_mainfest_tool+:} false; then :
7077 $as_echo_n "(cached
) " >&6
7079 lt_cv_path_mainfest_tool=no
7080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7082 cat conftest.err >&5
7083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7084 lt_cv_path_mainfest_tool=yes
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7089 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7090 if test yes != "$lt_cv_path_mainfest_tool"; then
7100 rhapsody* | darwin*)
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7105 $as_echo_n "checking
for $ac_word...
" >&6; }
7106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7107 $as_echo_n "(cached
) " >&6
7109 if test -n "$DSYMUTIL"; then
7110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7130 if test -n "$DSYMUTIL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7132 $as_echo "$DSYMUTIL" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7135 $as_echo "no
" >&6; }
7140 if test -z "$ac_cv_prog_DSYMUTIL"; then
7141 ac_ct_DSYMUTIL=$DSYMUTIL
7142 # Extract the first word of "dsymutil
", so it can be a program name with args.
7143 set dummy dsymutil; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7145 $as_echo_n "checking
for $ac_word...
" >&6; }
7146 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7147 $as_echo_n "(cached
) " >&6
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7169 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7170 if test -n "$ac_ct_DSYMUTIL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7172 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7175 $as_echo "no
" >&6; }
7178 if test "x
$ac_ct_DSYMUTIL" = x; then
7181 case $cross_compiling:$ac_tool_warned in
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7184 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7185 ac_tool_warned=yes ;;
7187 DSYMUTIL=$ac_ct_DSYMUTIL
7190 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7197 $as_echo_n "checking
for $ac_word...
" >&6; }
7198 if ${ac_cv_prog_NMEDIT+:} false; then :
7199 $as_echo_n "(cached
) " >&6
7201 if test -n "$NMEDIT"; then
7202 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7221 NMEDIT=$ac_cv_prog_NMEDIT
7222 if test -n "$NMEDIT"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7224 $as_echo "$NMEDIT" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7227 $as_echo "no
" >&6; }
7232 if test -z "$ac_cv_prog_NMEDIT"; then
7233 ac_ct_NMEDIT=$NMEDIT
7234 # Extract the first word of "nmedit
", so it can be a program name with args.
7235 set dummy nmedit; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7237 $as_echo_n "checking
for $ac_word...
" >&6; }
7238 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7239 $as_echo_n "(cached
) " >&6
7241 if test -n "$ac_ct_NMEDIT"; then
7242 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7261 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7262 if test -n "$ac_ct_NMEDIT"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7264 $as_echo "$ac_ct_NMEDIT" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7267 $as_echo "no
" >&6; }
7270 if test "x
$ac_ct_NMEDIT" = x; then
7273 case $cross_compiling:$ac_tool_warned in
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7276 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7277 ac_tool_warned=yes ;;
7279 NMEDIT=$ac_ct_NMEDIT
7282 NMEDIT="$ac_cv_prog_NMEDIT"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7289 $as_echo_n "checking
for $ac_word...
" >&6; }
7290 if ${ac_cv_prog_LIPO+:} false; then :
7291 $as_echo_n "(cached
) " >&6
7293 if test -n "$LIPO"; then
7294 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7313 LIPO=$ac_cv_prog_LIPO
7314 if test -n "$LIPO"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7316 $as_echo "$LIPO" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7319 $as_echo "no
" >&6; }
7324 if test -z "$ac_cv_prog_LIPO"; then
7326 # Extract the first word of "lipo
", so it can be a program name with args.
7327 set dummy lipo; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7329 $as_echo_n "checking
for $ac_word...
" >&6; }
7330 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7331 $as_echo_n "(cached
) " >&6
7333 if test -n "$ac_ct_LIPO"; then
7334 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_LIPO="lipo
"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7354 if test -n "$ac_ct_LIPO"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7356 $as_echo "$ac_ct_LIPO" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7359 $as_echo "no
" >&6; }
7362 if test "x
$ac_ct_LIPO" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7368 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7369 ac_tool_warned=yes ;;
7374 LIPO="$ac_cv_prog_LIPO"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}otool; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7381 $as_echo_n "checking
for $ac_word...
" >&6; }
7382 if ${ac_cv_prog_OTOOL+:} false; then :
7383 $as_echo_n "(cached
) " >&6
7385 if test -n "$OTOOL"; then
7386 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7405 OTOOL=$ac_cv_prog_OTOOL
7406 if test -n "$OTOOL"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7408 $as_echo "$OTOOL" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7411 $as_echo "no
" >&6; }
7416 if test -z "$ac_cv_prog_OTOOL"; then
7418 # Extract the first word of "otool
", so it can be a program name with args.
7419 set dummy otool; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7421 $as_echo_n "checking
for $ac_word...
" >&6; }
7422 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7423 $as_echo_n "(cached
) " >&6
7425 if test -n "$ac_ct_OTOOL"; then
7426 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_OTOOL="otool
"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7446 if test -n "$ac_ct_OTOOL"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7448 $as_echo "$ac_ct_OTOOL" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7451 $as_echo "no
" >&6; }
7454 if test "x
$ac_ct_OTOOL" = x; then
7457 case $cross_compiling:$ac_tool_warned in
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7460 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7461 ac_tool_warned=yes ;;
7466 OTOOL="$ac_cv_prog_OTOOL"
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7473 $as_echo_n "checking
for $ac_word...
" >&6; }
7474 if ${ac_cv_prog_OTOOL64+:} false; then :
7475 $as_echo_n "(cached
) " >&6
7477 if test -n "$OTOOL64"; then
7478 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7497 OTOOL64=$ac_cv_prog_OTOOL64
7498 if test -n "$OTOOL64"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7500 $as_echo "$OTOOL64" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7503 $as_echo "no
" >&6; }
7508 if test -z "$ac_cv_prog_OTOOL64"; then
7509 ac_ct_OTOOL64=$OTOOL64
7510 # Extract the first word of "otool64
", so it can be a program name with args.
7511 set dummy otool64; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7513 $as_echo_n "checking
for $ac_word...
" >&6; }
7514 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7515 $as_echo_n "(cached
) " >&6
7517 if test -n "$ac_ct_OTOOL64"; then
7518 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7538 if test -n "$ac_ct_OTOOL64"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7540 $as_echo "$ac_ct_OTOOL64" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7543 $as_echo "no
" >&6; }
7546 if test "x
$ac_ct_OTOOL64" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7553 ac_tool_warned=yes ;;
7555 OTOOL64=$ac_ct_OTOOL64
7558 OTOOL64="$ac_cv_prog_OTOOL64"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7588 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7589 if ${lt_cv_apple_cc_single_mod+:} false; then :
7590 $as_echo_n "(cached
) " >&6
7592 lt_cv_apple_cc_single_mod=no
7593 if test -z "$LT_MULTI_MODULE"; then
7594 # By default we will add the -single_module flag. You can override
7595 # by either setting the environment variable LT_MULTI_MODULE
7596 # non-empty at configure time, or by adding -multi_module to the
7598 rm -rf libconftest.dylib*
7599 echo "int foo
(void
){return 1;}" > conftest.c
7600 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7601 -dynamiclib -Wl,-single_module conftest.c
" >&5
7602 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7605 # If there is a non-empty error log, and "single_module
"
7606 # appears in it, assume the flag caused a linker warning
7607 if test -s conftest.err && $GREP single_module conftest.err; then
7608 cat conftest.err >&5
7609 # Otherwise, if the output was created with a 0 exit code from
7610 # the compiler, it worked.
7611 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7612 lt_cv_apple_cc_single_mod=yes
7614 cat conftest.err >&5
7616 rm -rf libconftest.dylib*
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7621 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7624 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7625 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7626 $as_echo_n "(cached
) " >&6
7628 lt_cv_ld_exported_symbols_list=no
7629 save_LDFLAGS=$LDFLAGS
7630 echo "_main
" > conftest.sym
7631 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 lt_cv_ld_exported_symbols_list=yes
7646 lt_cv_ld_exported_symbols_list=no
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LDFLAGS=$save_LDFLAGS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7654 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7657 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7658 if ${lt_cv_ld_force_load+:} false; then :
7659 $as_echo_n "(cached
) " >&6
7661 lt_cv_ld_force_load=no
7662 cat > conftest.c << _LT_EOF
7663 int forced_loaded() { return 2;}
7665 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7666 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7667 echo "$AR cru libconftest.a conftest.o
" >&5
7668 $AR cru libconftest.a conftest.o 2>&5
7669 echo "$RANLIB libconftest.a
" >&5
7670 $RANLIB libconftest.a 2>&5
7671 cat > conftest.c << _LT_EOF
7672 int main() { return 0;}
7674 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7675 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7677 if test -s conftest.err && $GREP force_load conftest.err; then
7678 cat conftest.err >&5
7679 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7680 lt_cv_ld_force_load=yes
7682 cat conftest.err >&5
7684 rm -f conftest.err libconftest.a conftest conftest.c
7685 rm -rf conftest.dSYM
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7689 $as_echo "$lt_cv_ld_force_load" >&6; }
7691 rhapsody* | darwin1.[012])
7692 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7694 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7695 darwin*) # darwin 5.x on
7696 # if running on 10.5 or later, the deployment target defaults
7697 # to the OS version, if on x86, and 10.4, the deployment
7698 # target defaults to 10.4. Don't you love it?
7699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7701 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7703 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7709 if test yes = "$lt_cv_apple_cc_single_mod"; then
7710 _lt_dar_single_mod='$single_module'
7712 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7713 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7717 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7718 _lt_dsymutil='~$DSYMUTIL $lib || :'
7725 # func_munge_path_list VARIABLE PATH
7726 # -----------------------------------
7727 # VARIABLE is name of variable containing _space_ separated list of
7728 # directories to be munged by the contents of PATH, which is string
7731 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7733 # string "DIR
[ DIR
]" will be appended to VARIABLE
7734 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7735 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7736 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7738 # VARIABLE will be replaced by "DIR
[ DIR
]"
7739 func_munge_path_list ()
7745 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7748 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7751 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7752 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7755 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7766 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7767 # On Suns, sometimes $CPP names a directory.
7768 if test -n "$CPP" && test -d "$CPP"; then
7771 if test -z "$CPP"; then
7772 if ${ac_cv_prog_CPP+:} false; then :
7773 $as_echo_n "(cached
) " >&6
7775 # Double quotes because CPP needs to be expanded
7776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7779 for ac_c_preproc_warn_flag in '' yes
7781 # Use a header file that comes with gcc, so configuring glibc
7782 # with a fresh cross-compiler works.
7783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 # <limits.h> exists even on freestanding compilers.
7785 # On the NeXT, cc -E runs the code through the compiler's parser,
7786 # not just through cpp. "Syntax error
" is here to catch this case.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7790 # include <limits.h>
7792 # include <assert.h>
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7799 # Broken: fails on valid input.
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7804 # OK, works on sane cases. Now check whether nonexistent headers
7805 # can be detected and how.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811 # Broken: success on invalid input.
7814 # Passes both tests.
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7836 $as_echo "$CPP" >&6; }
7838 for ac_c_preproc_warn_flag in '' yes
7840 # Use a header file that comes with gcc, so configuring glibc
7841 # with a fresh cross-compiler works.
7842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843 # <limits.h> exists even on freestanding compilers.
7844 # On the NeXT, cc -E runs the code through the compiler's parser,
7845 # not just through cpp. "Syntax error
" is here to catch this case.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 # include <limits.h>
7851 # include <assert.h>
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7858 # Broken: fails on valid input.
7861 rm -f conftest.err conftest.i conftest.$ac_ext
7863 # OK, works on sane cases. Now check whether nonexistent headers
7864 # can be detected and how.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <ac_nonexistent.h>
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7870 # Broken: success on invalid input.
7873 # Passes both tests.
7877 rm -f conftest.err conftest.i conftest.$ac_ext
7880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7881 rm -f conftest.i conftest.err conftest.$ac_ext
7882 if $ac_preproc_ok; then :
7885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7888 See \`config.log' for more details
" "$LINENO" 5; }
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7899 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7900 if ${ac_cv_header_stdc+:} false; then :
7901 $as_echo_n "(cached
) " >&6
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_header_stdc=yes
7921 ac_cv_header_stdc=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 if test $ac_cv_header_stdc = yes; then
7926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7932 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7933 $EGREP "memchr
" >/dev/null 2>&1; then :
7936 ac_cv_header_stdc=no
7942 if test $ac_cv_header_stdc = yes; then
7943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7949 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7950 $EGREP "free
" >/dev/null 2>&1; then :
7953 ac_cv_header_stdc=no
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then :
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7968 #if ((' ' & 0x0FF) == 0x020)
7969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7972 # define ISLOWER(c) \
7973 (('a' <= (c) && (c) <= 'i') \
7974 || ('j' <= (c) && (c) <= 'r') \
7975 || ('s' <= (c) && (c) <= 'z'))
7976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7984 for (i = 0; i < 256; i++)
7985 if (XOR (islower (i), ISLOWER (i))
7986 || toupper (i) != TOUPPER (i))
7991 if ac_fn_c_try_run "$LINENO"; then :
7994 ac_cv_header_stdc=no
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8003 $as_echo "$ac_cv_header_stdc" >&6; }
8004 if test $ac_cv_header_stdc = yes; then
8006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8011 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8012 inttypes.h stdint.h unistd.h
8014 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8017 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8018 cat >>confdefs.h
<<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 for ac_header
in dlfcn.h
8029 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8031 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8032 cat >>confdefs.h
<<_ACEOF
8033 #define HAVE_DLFCN_H 1
8054 # Check whether --enable-shared was given.
8055 if test "${enable_shared+set}" = set; then :
8056 enableval
=$enable_shared; p
=${PACKAGE-default}
8058 yes) enable_shared
=yes ;;
8059 no
) enable_shared
=no
;;
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8064 for pkg
in $enableval; do
8066 if test "X$pkg" = "X$p"; then
8085 # Check whether --enable-static was given.
8086 if test "${enable_static+set}" = set; then :
8087 enableval
=$enable_static; p
=${PACKAGE-default}
8089 yes) enable_static
=yes ;;
8090 no
) enable_static
=no
;;
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8095 for pkg
in $enableval; do
8097 if test "X$pkg" = "X$p"; then
8117 # Check whether --with-pic was given.
8118 if test "${with_pic+set}" = set; then :
8119 withval
=$with_pic; lt_p
=${PACKAGE-default}
8121 yes|no
) pic_mode
=$withval ;;
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8126 for lt_pkg
in $withval; do
8128 if test "X$lt_pkg" = "X$lt_p"; then
8146 # Check whether --enable-fast-install was given.
8147 if test "${enable_fast_install+set}" = set; then :
8148 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8150 yes) enable_fast_install
=yes ;;
8151 no
) enable_fast_install
=no
;;
8153 enable_fast_install
=no
8154 # Look at the argument we got. We use all the common list separators.
8155 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8156 for pkg
in $enableval; do
8158 if test "X$pkg" = "X$p"; then
8159 enable_fast_install
=yes
8166 enable_fast_install
=yes
8176 shared_archive_member_spec
=
8177 case $host,$enable_shared in
8178 power
*-*-aix[5-9]*,yes)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8180 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8182 # Check whether --with-aix-soname was given.
8183 if test "${with_aix_soname+set}" = set; then :
8184 withval
=$with_aix_soname; case $withval in
8188 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8191 lt_cv_with_aix_soname
=$with_aix_soname
8193 if ${lt_cv_with_aix_soname+:} false
; then :
8194 $as_echo_n "(cached) " >&6
8196 lt_cv_with_aix_soname
=aix
8199 with_aix_soname
=$lt_cv_with_aix_soname
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8203 $as_echo "$with_aix_soname" >&6; }
8204 if test aix
!= "$with_aix_soname"; then
8205 # For the AIX way of multilib, we name the shared archive member
8206 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8207 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8208 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8209 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8210 if test 64 = "${OBJECT_MODE-32}"; then
8211 shared_archive_member_spec
=shr_64
8213 shared_archive_member_spec
=shr
8231 # This can be used to rebuild libtool when needed
8232 LIBTOOL_DEPS
=$ltmain
8234 # Always use our own libtool.
8235 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8266 test -z "$LN_S" && LN_S
="ln -s"
8281 if test -n "${ZSH_VERSION+set}"; then
8282 setopt NO_GLOB_SUBST
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286 $as_echo_n "checking for objdir... " >&6; }
8287 if ${lt_cv_objdir+:} false
; then :
8288 $as_echo_n "(cached) " >&6
8290 rm -f .libs
2>/dev
/null
8291 mkdir .libs
2>/dev
/null
8292 if test -d .libs
; then
8295 # MS-DOS does not allow filenames that begin with a dot.
8298 rmdir .libs
2>/dev
/null
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301 $as_echo "$lt_cv_objdir" >&6; }
8302 objdir
=$lt_cv_objdir
8308 cat >>confdefs.h
<<_ACEOF
8309 #define LT_OBJDIR "$lt_cv_objdir/"
8317 # AIX sometimes has problems with the GCC collect2 program. For some
8318 # reason, if we set the COLLECT_NAMES environment variable, the problems
8319 # vanish in a puff of smoke.
8320 if test set != "${COLLECT_NAMES+set}"; then
8322 export COLLECT_NAMES
8329 can_build_shared
=yes
8331 # All known linkers require a '.a' archive for static linking (except MSVC,
8332 # which needs '.lib').
8335 with_gnu_ld
=$lt_cv_prog_gnu_ld
8340 # Set sane defaults for various variables
8341 test -z "$CC" && CC
=cc
8342 test -z "$LTCC" && LTCC
=$CC
8343 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8344 test -z "$LD" && LD
=ld
8345 test -z "$ac_objext" && ac_objext
=o
8347 func_cc_basename
$compiler
8348 cc_basename
=$func_cc_basename_result
8351 # Only perform the check for file, if the check method requires it
8352 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8353 case $deplibs_check_method in
8355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8363 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8366 lt_save_MAGIC_CMD
=$MAGIC_CMD
8367 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8368 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8369 for ac_dir
in $ac_dummy; do
8371 test -z "$ac_dir" && ac_dir
=.
8372 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8373 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8374 if test -n "$file_magic_test_file"; then
8375 case $deplibs_check_method in
8377 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8379 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8380 $EGREP "$file_magic_regex" > /dev
/null
; then
8385 *** Warning: the command libtool uses to detect shared libraries,
8386 *** $file_magic_cmd, produces output that libtool cannot recognize.
8387 *** The result is that libtool may fail to recognize shared libraries
8388 *** as such. This will affect the creation of libtool libraries that
8389 *** depend on shared libraries, but programs linked with such libtool
8390 *** libraries will work regardless of this problem. Nevertheless, you
8391 *** may want to report the problem to your system manager and/or to
8392 *** bug-libtool@gnu.org
8402 MAGIC_CMD
=$lt_save_MAGIC_CMD
8407 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8408 if test -n "$MAGIC_CMD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410 $as_echo "$MAGIC_CMD" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8420 if test -z "$lt_cv_path_MAGIC_CMD"; then
8421 if test -n "$ac_tool_prefix"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423 $as_echo_n "checking for file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8425 $as_echo_n "(cached) " >&6
8429 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8432 lt_save_MAGIC_CMD
=$MAGIC_CMD
8433 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8434 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir
in $ac_dummy; do
8437 test -z "$ac_dir" && ac_dir
=.
8438 if test -f "$ac_dir/file"; then
8439 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8443 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8445 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8446 $EGREP "$file_magic_regex" > /dev
/null
; then
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8468 MAGIC_CMD
=$lt_save_MAGIC_CMD
8473 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8492 # Use C for the default configuration in the libtool script
8496 ac_cpp
='$CPP $CPPFLAGS'
8497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8502 # Source file extension for C test sources.
8505 # Object file extension for compiled C test sources.
8509 # Code to be used in simple compile tests
8510 lt_simple_compile_test_code
="int some_variable = 0;"
8512 # Code to be used in simple link tests
8513 lt_simple_link_test_code
='int main(){return(0);}'
8521 # If no C compiler was specified, use CC.
8524 # If no C compiler flags were specified, use CFLAGS.
8525 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8527 # Allow CC to be a program name with arguments.
8530 # Save the default compiler, since it gets overwritten when the other
8531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532 compiler_DEFAULT
=$CC
8534 # save warnings/boilerplate of simple test code
8535 ac_outfile
=conftest.
$ac_objext
8536 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8537 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_compiler_boilerplate
=`cat conftest.err`
8541 ac_outfile
=conftest.
$ac_objext
8542 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8543 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8544 _lt_linker_boilerplate
=`cat conftest.err`
8549 ## There is no encapsulation within the following macros, do not change
8550 ## the running order or otherwise move them around unless you know exactly
8551 ## what you are doing...
8552 if test -n "$compiler"; then
8554 lt_prog_compiler_no_builtin_flag
=
8556 if test yes = "$GCC"; then
8557 case $cc_basename in
8559 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8561 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8567 $as_echo_n "(cached) " >&6
8569 lt_cv_prog_compiler_rtti_exceptions
=no
8570 ac_outfile
=conftest.
$ac_objext
8571 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8572 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 # The option is referenced via a variable to avoid confusing sed.
8578 lt_compile
=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>conftest.err
)
8585 cat conftest.err
>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s "$ac_outfile"; then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings other than the usual output.
8590 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8591 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8592 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8593 lt_cv_prog_compiler_rtti_exceptions
=yes
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8602 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8603 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8615 lt_prog_compiler_wl
=
8616 lt_prog_compiler_pic
=
8617 lt_prog_compiler_static
=
8620 if test yes = "$GCC"; then
8621 lt_prog_compiler_wl
='-Wl,'
8622 lt_prog_compiler_static
='-static'
8626 # All AIX code is PIC.
8627 if test ia64
= "$host_cpu"; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static
='-Bstatic'
8631 lt_prog_compiler_pic
='-fPIC'
8637 # see comment about AmigaOS4 .so support
8638 lt_prog_compiler_pic
='-fPIC'
8641 # FIXME: we need at least 68020 code to build shared libraries, but
8642 # adding the '-m68020' flag to GCC prevents building anything better,
8644 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8649 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8650 # PIC is the default for these OSes.
8653 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8657 # (--disable-auto-import) libraries
8658 lt_prog_compiler_pic
='-DDLL_EXPORT'
8661 lt_prog_compiler_static
='$wl-static'
8666 darwin
* | rhapsody
*)
8667 # PIC is the default on this platform
8668 # Common symbols not allowed in MH_DYLIB files
8669 lt_prog_compiler_pic
='-fno-common'
8673 # PIC is the default for Haiku.
8674 # The "-static" flag exists, but is broken.
8675 lt_prog_compiler_static
=
8679 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8680 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8681 # sets the default TLS model and affects inlining.
8687 lt_prog_compiler_pic
='-fPIC'
8693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8694 # Instead, we relocate shared libraries at runtime.
8698 # Just because we use GCC doesn't mean we suddenly get shared libraries
8699 # on systems that don't support them.
8700 lt_prog_compiler_can_build_shared
=no
8705 # QNX uses GNU C++, but need to define -shared option too, otherwise
8707 lt_prog_compiler_pic
='-fPIC -shared'
8711 if test -d /usr
/nec
; then
8712 lt_prog_compiler_pic
=-Kconform_pic
8717 lt_prog_compiler_pic
='-fPIC'
8721 case $cc_basename in
8722 nvcc
*) # Cuda Compiler Driver 2.2
8723 lt_prog_compiler_wl
='-Xlinker '
8724 if test -n "$lt_prog_compiler_pic"; then
8725 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8730 # PORTME Check for flag to pass linker flags through the system compiler.
8733 lt_prog_compiler_wl
='-Wl,'
8734 if test ia64
= "$host_cpu"; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static
='-Bstatic'
8738 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8742 darwin
* | rhapsody
*)
8743 # PIC is the default on this platform
8744 # Common symbols not allowed in MH_DYLIB files
8745 lt_prog_compiler_pic
='-fno-common'
8746 case $cc_basename in
8748 # NAG Fortran compiler
8749 lt_prog_compiler_wl
='-Wl,-Wl,,'
8750 lt_prog_compiler_pic
='-PIC'
8751 lt_prog_compiler_static
='-Bstatic'
8756 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic
='-DDLL_EXPORT'
8762 lt_prog_compiler_static
='$wl-static'
8767 hpux9
* | hpux10
* | hpux11
*)
8768 lt_prog_compiler_wl
='-Wl,'
8769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8776 lt_prog_compiler_pic
='+Z'
8779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8780 lt_prog_compiler_static
='$wl-a ${wl}archive'
8783 irix5
* | irix6
* | nonstopux
*)
8784 lt_prog_compiler_wl
='-Wl,'
8785 # PIC (with -KPIC) is the default.
8786 lt_prog_compiler_static
='-non_shared'
8789 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8790 case $cc_basename in
8791 # old Intel for x86_64, which still supported -KPIC.
8793 lt_prog_compiler_wl
='-Wl,'
8794 lt_prog_compiler_pic
='-KPIC'
8795 lt_prog_compiler_static
='-static'
8797 # icc used to be incompatible with GCC.
8798 # ICC 10 doesn't accept -KPIC any more.
8800 lt_prog_compiler_wl
='-Wl,'
8801 lt_prog_compiler_pic
='-fPIC'
8802 lt_prog_compiler_static
='-static'
8804 # Lahey Fortran 8.1.
8806 lt_prog_compiler_wl
='-Wl,'
8807 lt_prog_compiler_pic
='--shared'
8808 lt_prog_compiler_static
='--static'
8811 # NAG Fortran compiler
8812 lt_prog_compiler_wl
='-Wl,-Wl,,'
8813 lt_prog_compiler_pic
='-PIC'
8814 lt_prog_compiler_static
='-Bstatic'
8817 # Fabrice Bellard et al's Tiny C Compiler
8818 lt_prog_compiler_wl
='-Wl,'
8819 lt_prog_compiler_pic
='-fPIC'
8820 lt_prog_compiler_static
='-static'
8822 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8823 # Portland Group compilers (*not* the Pentium gcc compiler,
8824 # which looks to be a dead project)
8825 lt_prog_compiler_wl
='-Wl,'
8826 lt_prog_compiler_pic
='-fpic'
8827 lt_prog_compiler_static
='-Bstatic'
8830 lt_prog_compiler_wl
='-Wl,'
8831 # All Alpha code is PIC.
8832 lt_prog_compiler_static
='-non_shared'
8834 xl
* | bgxl
* | bgf
* | mpixl
*)
8835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8836 lt_prog_compiler_wl
='-Wl,'
8837 lt_prog_compiler_pic
='-qpic'
8838 lt_prog_compiler_static
='-qstaticlink'
8841 case `$CC -V 2>&1 | sed 5q` in
8842 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8844 lt_prog_compiler_pic
='-KPIC'
8845 lt_prog_compiler_static
='-Bstatic'
8846 lt_prog_compiler_wl
=''
8848 *Sun\ F
* |
*Sun
*Fortran
*)
8849 lt_prog_compiler_pic
='-KPIC'
8850 lt_prog_compiler_static
='-Bstatic'
8851 lt_prog_compiler_wl
='-Qoption ld '
8855 lt_prog_compiler_pic
='-KPIC'
8856 lt_prog_compiler_static
='-Bstatic'
8857 lt_prog_compiler_wl
='-Wl,'
8859 *Intel
*\
[CF
]*Compiler
*)
8860 lt_prog_compiler_wl
='-Wl,'
8861 lt_prog_compiler_pic
='-fPIC'
8862 lt_prog_compiler_static
='-static'
8865 lt_prog_compiler_wl
='-Wl,'
8866 lt_prog_compiler_pic
='-fpic'
8867 lt_prog_compiler_static
='-Bstatic'
8875 lt_prog_compiler_pic
='-KPIC'
8876 lt_prog_compiler_static
='-Bstatic'
8880 # QNX uses GNU C++, but need to define -shared option too, otherwise
8882 lt_prog_compiler_pic
='-fPIC -shared'
8885 osf3
* | osf4
* | osf5
*)
8886 lt_prog_compiler_wl
='-Wl,'
8887 # All OSF/1 code is PIC.
8888 lt_prog_compiler_static
='-non_shared'
8892 lt_prog_compiler_static
='-non_shared'
8896 lt_prog_compiler_pic
='-KPIC'
8897 lt_prog_compiler_static
='-Bstatic'
8898 case $cc_basename in
8899 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8900 lt_prog_compiler_wl
='-Qoption ld ';;
8902 lt_prog_compiler_wl
='-Wl,';;
8907 lt_prog_compiler_wl
='-Qoption ld '
8908 lt_prog_compiler_pic
='-PIC'
8909 lt_prog_compiler_static
='-Bstatic'
8912 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8913 lt_prog_compiler_wl
='-Wl,'
8914 lt_prog_compiler_pic
='-KPIC'
8915 lt_prog_compiler_static
='-Bstatic'
8919 if test -d /usr
/nec
; then
8920 lt_prog_compiler_pic
='-Kconform_pic'
8921 lt_prog_compiler_static
='-Bstatic'
8925 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8926 lt_prog_compiler_wl
='-Wl,'
8927 lt_prog_compiler_pic
='-KPIC'
8928 lt_prog_compiler_static
='-Bstatic'
8932 lt_prog_compiler_wl
='-Wl,'
8933 lt_prog_compiler_can_build_shared
=no
8937 lt_prog_compiler_pic
='-pic'
8938 lt_prog_compiler_static
='-Bstatic'
8942 lt_prog_compiler_can_build_shared
=no
8948 # For platforms that do not support PIC, -DPIC is meaningless:
8950 lt_prog_compiler_pic
=
8953 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8959 if ${lt_cv_prog_compiler_pic+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8962 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8966 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8969 # Check to make sure the PIC flag actually works.
8971 if test -n "$lt_prog_compiler_pic"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8974 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8975 $as_echo_n "(cached) " >&6
8977 lt_cv_prog_compiler_pic_works
=no
8978 ac_outfile
=conftest.
$ac_objext
8979 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8980 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8981 # Insert the option either (1) after the last *FLAGS variable, or
8982 # (2) before a word containing "conftest.", or (3) at the end.
8983 # Note that $ac_compile itself does not contain backslashes and begins
8984 # with a dollar sign (not a hyphen), so the echo should work correctly.
8985 # The option is referenced via a variable to avoid confusing sed.
8986 lt_compile
=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>conftest.err
)
8993 cat conftest.err
>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s "$ac_outfile"; then
8996 # The compiler can only warn and ignore the option if not recognized
8997 # So say no if there are warnings other than the usual output.
8998 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9000 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9001 lt_cv_prog_compiler_pic_works
=yes
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9010 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9011 case $lt_prog_compiler_pic in
9013 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9016 lt_prog_compiler_pic
=
9017 lt_prog_compiler_can_build_shared
=no
9033 # Check to make sure the static flag actually works.
9035 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9038 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9039 $as_echo_n "(cached) " >&6
9041 lt_cv_prog_compiler_static_works
=no
9042 save_LDFLAGS
=$LDFLAGS
9043 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9044 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9045 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9046 # The linker can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 if test -s conftest.err
; then
9049 # Append any errors to the config.log.
9050 cat conftest.err
1>&5
9051 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9053 if diff conftest.exp conftest.er2
>/dev
/null
; then
9054 lt_cv_prog_compiler_static_works
=yes
9057 lt_cv_prog_compiler_static_works
=yes
9061 LDFLAGS
=$save_LDFLAGS
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9067 if test yes = "$lt_cv_prog_compiler_static_works"; then
9070 lt_prog_compiler_static
=
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9084 lt_cv_prog_compiler_c_o
=no
9085 $RM -r conftest
2>/dev
/null
9089 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9091 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 lt_compile
=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>out
/conftest.err
)
9103 cat out
/conftest.err
>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9110 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9111 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9112 lt_cv_prog_compiler_c_o
=yes
9117 # SGI C++ compiler will create directory out/ii_files/ for
9118 # template instantiation
9119 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9120 $RM out
/* && rmdir out
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9136 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9137 $as_echo_n "(cached) " >&6
9139 lt_cv_prog_compiler_c_o
=no
9140 $RM -r conftest
2>/dev
/null
9144 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9146 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 lt_compile
=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>out
/conftest.err
)
9158 cat out
/conftest.err
>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings
9164 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9165 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9166 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9167 lt_cv_prog_compiler_c_o
=yes
9172 # SGI C++ compiler will create directory out/ii_files/ for
9173 # template instantiation
9174 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9175 $RM out
/* && rmdir out
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9187 hard_links
=nottested
9188 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9189 # do not overwrite the value of need_locks provided by the user
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191 $as_echo_n "checking if we can lock with hard links... " >&6; }
9194 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9196 ln conftest.a conftest.b
2>&5 || hard_links
=no
9197 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199 $as_echo "$hard_links" >&6; }
9200 if test no
= "$hard_links"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9202 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218 allow_undefined_flag
=
9219 always_export_symbols
=no
9221 archive_expsym_cmds
=
9222 compiler_needs_object
=no
9223 enable_shared_with_static_runtimes
=no
9224 export_dynamic_flag_spec
=
9225 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226 hardcode_automatic
=no
9228 hardcode_direct_absolute
=no
9229 hardcode_libdir_flag_spec
=
9230 hardcode_libdir_separator
=
9232 hardcode_shlibpath_var
=unsupported
9234 link_all_deplibs
=unknown
9237 old_archive_from_new_cmds
=
9238 old_archive_from_expsyms_cmds
=
9239 thread_safe_flag_spec
=
9240 whole_archive_flag_spec
=
9241 # include_expsyms should be a list of space-separated symbols to be *always*
9242 # included in the symbol list
9244 # exclude_expsyms can be an extended regexp of symbols to exclude
9245 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9246 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9247 # as well as any symbol that contains 'd'.
9248 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250 # platforms (ab)use it in PIC code, but their linkers get confused if
9251 # the symbol is explicitly referenced. Since portable code cannot
9252 # rely on this symbol name, it's probably fine to never include it in
9253 # preloaded symbol tables.
9254 # Exclude shared library initialization/finalization symbols.
9255 extract_expsyms_cmds
=
9258 cygwin
* | mingw
* | pw32
* | cegcc
*)
9259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 if test yes != "$GCC"; then
9267 # we just hope/assume this is gcc and not c89 (= MSVC++)
9273 linux
* | k
*bsd
*-gnu | gnu
*)
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface
=no
9283 if test yes = "$with_gnu_ld"; then
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9292 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9293 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9295 lt_use_gnu_ld_interface
=yes
9300 lt_use_gnu_ld_interface
=yes
9305 if test yes = "$lt_use_gnu_ld_interface"; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var
=LD_RUN_PATH
9313 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9314 export_dynamic_flag_spec
='$wl--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9317 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9319 whole_archive_flag_spec
=
9321 supports_anon_versioning
=no
9322 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9323 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9324 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9325 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9326 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9327 *\
2.11.
*) ;; # other 2.11 versions
9328 *) supports_anon_versioning
=yes ;;
9331 # See if GNU ld supports shared libraries.
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test ia64
!= "$host_cpu"; then
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9355 archive_expsym_cmds
=''
9358 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)'
9359 hardcode_libdir_flag_spec
='-L$libdir'
9360 hardcode_minus_L
=yes
9366 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9367 allow_undefined_flag
=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376 cygwin
* | mingw
* | pw32
* | cegcc
*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec
='-L$libdir'
9380 export_dynamic_flag_spec
='$wl--export-all-symbols'
9381 allow_undefined_flag
=unsupported
9382 always_export_symbols
=no
9383 enable_shared_with_static_runtimes
=yes
9384 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'
9385 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9387 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9388 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 # If the export-symbols file already is a .def file, use it as
9390 # is; otherwise, prepend EXPORTS...
9391 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9392 cp $export_symbols $output_objdir/$soname.def;
9394 echo EXPORTS > $output_objdir/$soname.def;
9395 cat $export_symbols >> $output_objdir/$soname.def;
9397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405 link_all_deplibs
=yes
9409 hardcode_libdir_flag_spec
='-L$libdir'
9410 hardcode_minus_L
=yes
9411 allow_undefined_flag
=unsupported
9413 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9416 $ECHO EXPORTS >> $output_objdir/$libname.def~
9417 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9418 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9419 emximp -o $lib $output_objdir/$libname.def'
9420 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9423 $ECHO EXPORTS >> $output_objdir/$libname.def~
9425 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9426 prefix_cmds="$prefix_cmds -e 1d";
9428 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9429 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9431 emximp -o $lib $output_objdir/$libname.def'
9432 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9433 enable_shared_with_static_runtimes
=yes
9438 hardcode_shlibpath_var
=no
9439 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9440 export_dynamic_flag_spec
='$wl-E'
9441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9442 # Instead, shared libraries are loaded at an image base (0x10000000 by
9443 # default) and relocated if they conflict, which is a slow very memory
9444 # consuming and fragmenting process. To avoid this, we pick a random,
9445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9447 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 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'
9451 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9453 if test linux-dietlibc
= "$host_os"; then
9454 case $cc_basename in
9455 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9458 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9459 && test no
= "$tmp_diet"
9461 tmp_addflag
=' $pic_flag'
9462 tmp_sharedflag
='-shared'
9463 case $cc_basename,$host_cpu in
9464 pgcc
*) # Portland Group C compiler
9465 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'
9466 tmp_addflag
=' $pic_flag'
9468 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9469 # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag
=' $pic_flag -Mnomain' ;;
9472 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9473 tmp_addflag
=' -i_dynamic' ;;
9474 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9475 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9476 ifc
* | ifort
*) # Intel Fortran compiler
9477 tmp_addflag
=' -nofor_main' ;;
9478 lf95
*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec
=
9480 tmp_sharedflag
='--shared' ;;
9481 nagfor
*) # NAGFOR 5.3
9482 tmp_sharedflag
='-Wl,-shared' ;;
9483 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9484 tmp_sharedflag
='-qmkshrobj'
9486 nvcc
*) # Cuda Compiler Driver 2.2
9487 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'
9488 compiler_needs_object
=yes
9491 case `$CC -V 2>&1 | sed 5q` in
9492 *Sun\ C
*) # Sun C 5.9
9493 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'
9494 compiler_needs_object
=yes
9495 tmp_sharedflag
='-G' ;;
9496 *Sun\ F
*) # Sun Fortran 8.3
9497 tmp_sharedflag
='-G' ;;
9499 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9501 if test yes = "$supports_anon_versioning"; then
9502 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504 echo "local: *; };" >> $output_objdir/$libname.ver~
9505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9508 case $cc_basename in
9510 export_dynamic_flag_spec
='-rdynamic'
9512 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9514 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9515 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9516 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9517 if test yes = "$supports_anon_versioning"; then
9518 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520 echo "local: *; };" >> $output_objdir/$libname.ver~
9521 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9530 netbsd
* | netbsdelf
*-gnu)
9531 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9532 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9535 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9536 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9541 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9546 *** create shared libraries on Solaris systems. Therefore, libtool
9547 *** is disabling shared libraries support. We urge you to upgrade GNU
9548 *** binutils to release 2.9.1 or newer. Another option is to modify
9549 *** your PATH or compiler configuration so that the native linker is
9550 *** used, and then restart.
9553 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9554 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9562 case `$LD -v 2>&1` in
9563 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9568 *** reliably create shared libraries on SCO systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9577 # For security reasons, it is highly recommended that you always
9578 # use absolute paths for naming shared libraries, and exclude the
9579 # DT_RUNPATH tag from executables and libraries. But doing so
9580 # requires that you compile everything twice, which is a pain.
9581 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9582 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9583 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9593 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_shlibpath_var
=no
9600 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9601 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9609 if test no
= "$ld_shlibs"; then
9611 hardcode_libdir_flag_spec
=
9612 export_dynamic_flag_spec
=
9613 whole_archive_flag_spec
=
9616 # PORTME fill in a description of your system's linker (not GNU ld)
9619 allow_undefined_flag
=unsupported
9620 always_export_symbols
=yes
9621 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'
9622 # Note: this linker hardcodes the directories in LIBPATH if there
9623 # are no directories specified by -L.
9624 hardcode_minus_L
=yes
9625 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9626 # Neither direct hardcoding nor static linking is supported with a
9628 hardcode_direct
=unsupported
9633 if test ia64
= "$host_cpu"; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking
=no
9637 exp_sym_flag
='-Bexport'
9640 # If we're using GNU nm, then we don't want the "-C" option.
9641 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9642 # Without the "-l" option, or with the "-B" option, AIX nm treats
9643 # weak defined symbols like other global defined symbols, whereas
9644 # GNU nm marks them as "W".
9645 # While the 'weak' keyword is ignored in the Export File, we need
9646 # it in the Import File for the 'aix-soname' feature, so we have
9647 # to replace the "-B" option with "-P" for AIX nm.
9648 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9649 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'
9651 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'
9653 aix_use_runtimelinking
=no
9655 # Test if we are trying to use run time linking or normal
9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657 # have runtime linking enabled, and use it for executables.
9658 # For shared libraries, we enable/disable runtime linking
9659 # depending on the kind of the shared library created -
9660 # when "with_aix_soname,aix_use_runtimelinking" is:
9661 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9662 # "aix,yes" lib.so shared, rtl:yes, for executables
9663 # lib.a static archive
9664 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9665 # lib.a(lib.so.V) shared, rtl:no, for executables
9666 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9667 # lib.a(lib.so.V) shared, rtl:no
9668 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9669 # lib.a static archive
9670 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9671 for ld_flag
in $LDFLAGS; do
9672 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9673 aix_use_runtimelinking
=yes
9677 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9678 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9679 # so we don't have lib.a shared libs to link our executables.
9680 # We have to force runtime linking in this case.
9681 aix_use_runtimelinking
=yes
9682 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9687 exp_sym_flag
='-bexport'
9688 no_entry_flag
='-bnoentry'
9691 # When large executables or shared objects are built, AIX ld can
9692 # have problems creating the table of contents. If linking a library
9693 # or program results in "error TOC overflow" add -mminimal-toc to
9694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9699 hardcode_direct_absolute
=yes
9700 hardcode_libdir_separator
=':'
9701 link_all_deplibs
=yes
9702 file_list_spec
='$wl-f,'
9703 case $with_aix_soname,$aix_use_runtimelinking in
9704 aix
,*) ;; # traditional, no import file
9705 svr4
,* |
*,yes) # use import file
9706 # The Import File defines what to hardcode.
9708 hardcode_direct_absolute
=no
9712 if test yes = "$GCC"; then
9713 case $host_os in aix4.
[012]|aix4.
[012].
*)
9714 # We only want to do this on AIX 4.2 and lower, the check
9715 # below for broken collect2 doesn't work under 4.3+
9716 collect2name
=`$CC -print-prog-name=collect2`
9717 if test -f "$collect2name" &&
9718 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9720 # We have reworked collect2
9723 # We have old collect2
9724 hardcode_direct
=unsupported
9725 # It fails to find uninstalled libraries when the uninstalled
9726 # path is not listed in the libpath. Setting hardcode_minus_L
9727 # to unsupported forces relinking
9728 hardcode_minus_L
=yes
9729 hardcode_libdir_flag_spec
='-L$libdir'
9730 hardcode_libdir_separator
=
9734 shared_flag
='-shared'
9735 if test yes = "$aix_use_runtimelinking"; then
9736 shared_flag
="$shared_flag "'$wl-G'
9738 # Need to ensure runtime linking is disabled for the traditional
9739 # shared library, or the linker may eventually find shared libraries
9740 # /with/ Import File - we do not want to mix them.
9741 shared_flag_aix
='-shared'
9742 shared_flag_svr4
='-shared $wl-G'
9745 if test ia64
= "$host_cpu"; then
9746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747 # chokes on -Wl,-G. The following line is correct:
9750 if test yes = "$aix_use_runtimelinking"; then
9753 shared_flag
='$wl-bM:SRE'
9755 shared_flag_aix
='$wl-bM:SRE'
9756 shared_flag_svr4
='$wl-G'
9760 export_dynamic_flag_spec
='$wl-bexpall'
9761 # It seems that -bexpall does not export symbols beginning with
9762 # underscore (_), so it is better to generate a list of symbols to export.
9763 always_export_symbols
=yes
9764 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9765 # Warning - without using the other runtime loading flags (-brtl),
9766 # -berok will link without error, but may produce a broken library.
9767 allow_undefined_flag
='-berok'
9768 # Determine the default libpath from the value encoded in an
9770 if test set = "${lt_cv_aix_libpath+set}"; then
9771 aix_libpath
=$lt_cv_aix_libpath
9773 if ${lt_cv_aix_libpath_+:} false
; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9787 if ac_fn_c_try_link
"$LINENO"; then :
9789 lt_aix_libpath_sed
='
9790 /Import File Strings/,/^$/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9796 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 rm -f core conftest.err conftest.
$ac_objext \
9803 conftest
$ac_exeext conftest.
$ac_ext
9804 if test -z "$lt_cv_aix_libpath_"; then
9805 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9810 aix_libpath
=$lt_cv_aix_libpath_
9813 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9814 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
9816 if test ia64
= "$host_cpu"; then
9817 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag
="-z nodefs"
9819 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"
9821 # Determine the default libpath from the value encoded in an
9823 if test set = "${lt_cv_aix_libpath+set}"; then
9824 aix_libpath
=$lt_cv_aix_libpath
9826 if ${lt_cv_aix_libpath_+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9840 if ac_fn_c_try_link
"$LINENO"; then :
9842 lt_aix_libpath_sed
='
9843 /Import File Strings/,/^$/ {
9845 s/^0 *\([^ ]*\) *$/\1/
9849 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850 # Check for a 64-bit object if we didn't find anything.
9851 if test -z "$lt_cv_aix_libpath_"; then
9852 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 rm -f core conftest.err conftest.
$ac_objext \
9856 conftest
$ac_exeext conftest.
$ac_ext
9857 if test -z "$lt_cv_aix_libpath_"; then
9858 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9863 aix_libpath
=$lt_cv_aix_libpath_
9866 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9867 # Warning - without using the other run time loading flags,
9868 # -berok will link without error, but may produce a broken library.
9869 no_undefined_flag
=' $wl-bernotok'
9870 allow_undefined_flag
=' $wl-berok'
9871 if test yes = "$with_gnu_ld"; then
9872 # We only use this code for GNU lds that support --whole-archive.
9873 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9875 # Exported symbols can be pulled into shared objects from archives
9876 whole_archive_flag_spec
='$convenience'
9878 archive_cmds_need_lc
=yes
9879 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9880 # -brtl affects multiple linker settings, -berok does not and is overridden later
9881 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9882 if test svr4
!= "$with_aix_soname"; then
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 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'
9886 if test aix
!= "$with_aix_soname"; then
9887 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'
9889 # used by -dlpreopen to get the symbols
9890 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9892 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9900 # see comment about AmigaOS4 .so support
9901 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds
=''
9905 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)'
9906 hardcode_libdir_flag_spec
='-L$libdir'
9907 hardcode_minus_L
=yes
9913 export_dynamic_flag_spec
=-rdynamic
9916 cygwin
* | mingw
* | pw32
* | cegcc
*)
9917 # When not using gcc, we currently assume that we are using
9918 # Microsoft Visual C++.
9919 # hardcode_libdir_flag_spec is actually meaningless, as there is
9920 # no search path for DLLs.
9921 case $cc_basename in
9924 hardcode_libdir_flag_spec
=' '
9925 allow_undefined_flag
=unsupported
9926 always_export_symbols
=yes
9928 # Tell ltmain to make .lib files, not .a files.
9930 # Tell ltmain to make .dll files, not .so files.
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9934 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9935 cp "$export_symbols" "$output_objdir/$soname.def";
9936 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9938 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9940 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9942 # The linker will not automatically build a static lib if we build a DLL.
9943 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9944 enable_shared_with_static_runtimes
=yes
9945 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9946 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9948 old_postinstall_cmds
='chmod 644 $oldlib'
9949 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9950 lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 case $lt_outputfile in
9954 lt_outputfile=$lt_outputfile.exe
9955 lt_tool_outputfile=$lt_tool_outputfile.exe
9958 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9959 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 $RM "$lt_outputfile.manifest";
9964 # Assume MSVC wrapper
9965 hardcode_libdir_flag_spec
=' '
9966 allow_undefined_flag
=unsupported
9967 # Tell ltmain to make .lib files, not .a files.
9969 # Tell ltmain to make .dll files, not .so files.
9971 # FIXME: Setting linknames here is a bad hack.
9972 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9973 # The linker will automatically build a .lib file if we build a DLL.
9974 old_archive_from_new_cmds
='true'
9975 # FIXME: Should let the user specify the lib program.
9976 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9977 enable_shared_with_static_runtimes
=yes
9982 darwin
* | rhapsody
*)
9985 archive_cmds_need_lc
=no
9987 hardcode_automatic
=yes
9988 hardcode_shlibpath_var
=unsupported
9989 if test yes = "$lt_cv_ld_force_load"; then
9990 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\"`'
9993 whole_archive_flag_spec
=''
9995 link_all_deplibs
=yes
9996 allow_undefined_flag
=$_lt_dar_allow_undefined
9997 case $cc_basename in
9998 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9999 *) _lt_dar_can_shared
=$GCC ;;
10001 if test yes = "$_lt_dar_can_shared"; then
10002 output_verbose_link_cmd
=func_echo_all
10003 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10004 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10005 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"
10006 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"
10015 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec
='-L$libdir'
10017 hardcode_shlibpath_var
=no
10020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021 # support. Future versions do this automatically, but an explicit c++rt0.o
10022 # does not break anything, and helps significantly (at the cost of a little
10025 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10026 hardcode_libdir_flag_spec
='-R$libdir'
10027 hardcode_direct
=yes
10028 hardcode_shlibpath_var
=no
10031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10033 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct
=yes
10035 hardcode_minus_L
=yes
10036 hardcode_shlibpath_var
=no
10039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10040 freebsd
* | dragonfly
*)
10041 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec
='-R$libdir'
10043 hardcode_direct
=yes
10044 hardcode_shlibpath_var
=no
10048 if test yes = "$GCC"; then
10049 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'
10051 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'
10053 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10054 hardcode_libdir_separator
=:
10055 hardcode_direct
=yes
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L
=yes
10060 export_dynamic_flag_spec
='$wl-E'
10064 if test yes,no
= "$GCC,$with_gnu_ld"; then
10065 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10069 if test no
= "$with_gnu_ld"; then
10070 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10071 hardcode_libdir_separator
=:
10072 hardcode_direct
=yes
10073 hardcode_direct_absolute
=yes
10074 export_dynamic_flag_spec
='$wl-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L
=yes
10082 if test yes,no
= "$GCC,$with_gnu_ld"; then
10085 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10104 # Older versions of the 11.00 compiler do not understand -b yet
10105 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10107 $as_echo_n "checking if $CC understands -b... " >&6; }
10108 if ${lt_cv_prog_compiler__b+:} false
; then :
10109 $as_echo_n "(cached) " >&6
10111 lt_cv_prog_compiler__b
=no
10112 save_LDFLAGS
=$LDFLAGS
10113 LDFLAGS
="$LDFLAGS -b"
10114 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10115 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10116 # The linker can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 if test -s conftest.err
; then
10119 # Append any errors to the config.log.
10120 cat conftest.err
1>&5
10121 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10123 if diff conftest.exp conftest.er2
>/dev
/null
; then
10124 lt_cv_prog_compiler__b
=yes
10127 lt_cv_prog_compiler__b
=yes
10131 LDFLAGS
=$save_LDFLAGS
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10137 if test yes = "$lt_cv_prog_compiler__b"; then
10138 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10146 if test no
= "$with_gnu_ld"; then
10147 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10148 hardcode_libdir_separator
=:
10153 hardcode_shlibpath_var
=no
10156 hardcode_direct
=yes
10157 hardcode_direct_absolute
=yes
10158 export_dynamic_flag_spec
='$wl-E'
10160 # hardcode_minus_L: Not really in the search PATH,
10161 # but as the default location of the library.
10162 hardcode_minus_L
=yes
10168 irix5
* | irix6
* | nonstopux
*)
10169 if test yes = "$GCC"; then
10170 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'
10171 # Try to use the -exported_symbol ld option, if it does not
10172 # work, assume that -exports_file does not work either and
10173 # implicitly export all symbols.
10174 # This should be the same for all languages, so no per-tag cache variable.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10176 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10177 if ${lt_cv_irix_exported_symbol+:} false
; then :
10178 $as_echo_n "(cached) " >&6
10180 save_LDFLAGS
=$LDFLAGS
10181 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int foo (void) { return 0; }
10186 if ac_fn_c_try_link
"$LINENO"; then :
10187 lt_cv_irix_exported_symbol
=yes
10189 lt_cv_irix_exported_symbol
=no
10191 rm -f core conftest.err conftest.
$ac_objext \
10192 conftest
$ac_exeext conftest.
$ac_ext
10193 LDFLAGS
=$save_LDFLAGS
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10196 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10197 if test yes = "$lt_cv_irix_exported_symbol"; then
10198 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'
10200 link_all_deplibs
=no
10202 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'
10203 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'
10205 archive_cmds_need_lc
='no'
10206 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10207 hardcode_libdir_separator
=:
10209 link_all_deplibs
=yes
10213 case $cc_basename in
10215 # Fabrice Bellard et al's Tiny C Compiler
10217 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 netbsd
* | netbsdelf
*-gnu)
10223 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10224 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10226 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10228 hardcode_libdir_flag_spec
='-R$libdir'
10229 hardcode_direct
=yes
10230 hardcode_shlibpath_var
=no
10234 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct
=yes
10236 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10237 hardcode_libdir_separator
=:
10238 hardcode_shlibpath_var
=no
10244 openbsd
* | bitrig
*)
10245 if test -f /usr
/libexec
/ld.so
; then
10246 hardcode_direct
=yes
10247 hardcode_shlibpath_var
=no
10248 hardcode_direct_absolute
=yes
10249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10250 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10252 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10253 export_dynamic_flag_spec
='$wl-E'
10255 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10264 hardcode_libdir_flag_spec
='-L$libdir'
10265 hardcode_minus_L
=yes
10266 allow_undefined_flag
=unsupported
10268 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10271 $ECHO EXPORTS >> $output_objdir/$libname.def~
10272 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10274 emximp -o $lib $output_objdir/$libname.def'
10275 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10278 $ECHO EXPORTS >> $output_objdir/$libname.def~
10279 prefix_cmds="$SED"~
10280 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10281 prefix_cmds="$prefix_cmds -e 1d";
10283 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10284 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10286 emximp -o $lib $output_objdir/$libname.def'
10287 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10288 enable_shared_with_static_runtimes
=yes
10292 if test yes = "$GCC"; then
10293 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10294 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'
10296 allow_undefined_flag
=' -expect_unresolved \*'
10297 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'
10299 archive_cmds_need_lc
='no'
10300 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10301 hardcode_libdir_separator
=:
10304 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10305 if test yes = "$GCC"; then
10306 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10307 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'
10308 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10310 allow_undefined_flag
=' -expect_unresolved \*'
10311 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'
10312 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~
10313 $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'
10315 # Both c and cxx compiler support -rpath directly
10316 hardcode_libdir_flag_spec
='-rpath $libdir'
10318 archive_cmds_need_lc
='no'
10319 hardcode_libdir_separator
=:
10323 no_undefined_flag
=' -z defs'
10324 if test yes = "$GCC"; then
10326 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $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'
10330 case `$CC -V 2>&1` in
10333 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10335 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10339 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10341 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10345 hardcode_libdir_flag_spec
='-R$libdir'
10346 hardcode_shlibpath_var
=no
10348 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10350 # The compiler driver will combine and reorder linker options,
10351 # but understands '-z linker_flag'. GCC discards it without '$wl',
10352 # but is careful enough not to reorder.
10353 # Supported since Solaris 2.6 (maybe 2.5.1?)
10354 if test yes = "$GCC"; then
10355 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10357 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10361 link_all_deplibs
=yes
10365 if test sequent
= "$host_vendor"; then
10366 # Use $CC to link under sequent, because it throws in some extra .o
10367 # files that make .init and .fini sections work.
10368 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_libdir_flag_spec
='-L$libdir'
10373 hardcode_direct
=yes
10374 hardcode_minus_L
=yes
10375 hardcode_shlibpath_var
=no
10379 case $host_vendor in
10381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_direct
=yes # is this really true???
10385 ## LD is ld it makes a PLAMLIB
10386 ## CC just makes a GrossModule.
10387 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10388 reload_cmds
='$CC -r -o $output$reload_objs'
10392 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10396 runpath_var
='LD_RUN_PATH'
10397 hardcode_shlibpath_var
=no
10401 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_shlibpath_var
=no
10403 export_dynamic_flag_spec
='-Bexport'
10407 if test -d /usr
/nec
; then
10408 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_shlibpath_var
=no
10410 runpath_var
=LD_RUN_PATH
10411 hardcode_runpath_var
=yes
10416 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10417 no_undefined_flag
='$wl-z,text'
10418 archive_cmds_need_lc
=no
10419 hardcode_shlibpath_var
=no
10420 runpath_var
='LD_RUN_PATH'
10422 if test yes = "$GCC"; then
10423 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 sysv5
* | sco3.2v5
* | sco5v6
*)
10432 # Note: We CANNOT use -z defs as we might desire, because we do not
10433 # link with -lc, and that would cause any symbols used from libc to
10434 # always be unresolved, which means just about no library would
10435 # ever link correctly. If we're not using GNU ld we use -z text
10436 # though, which does catch some bad symbols but isn't as heavy-handed
10438 no_undefined_flag
='$wl-z,text'
10439 allow_undefined_flag
='$wl-z,nodefs'
10440 archive_cmds_need_lc
=no
10441 hardcode_shlibpath_var
=no
10442 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10443 hardcode_libdir_separator
=':'
10444 link_all_deplibs
=yes
10445 export_dynamic_flag_spec
='$wl-Bexport'
10446 runpath_var
='LD_RUN_PATH'
10448 if test yes = "$GCC"; then
10449 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_libdir_flag_spec
='-L$libdir'
10460 hardcode_shlibpath_var
=no
10468 if test sni
= "$host_vendor"; then
10470 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10471 export_dynamic_flag_spec
='$wl-Blargedynsym'
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10478 $as_echo "$ld_shlibs" >&6; }
10479 test no
= "$ld_shlibs" && can_build_shared
=no
10481 with_gnu_ld
=$with_gnu_ld
10498 # Do we need to explicitly link libc?
10500 case "x$archive_cmds_need_lc" in
10502 # Assume -lc should be added
10503 archive_cmds_need_lc
=yes
10505 if test yes,yes = "$GCC,$enable_shared"; then
10506 case $archive_cmds in
10508 # FIXME: we may have to deal with multi-command sequences.
10511 # Test whether the compiler implicitly links with -lc since on some
10512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10513 # to ld, don't add -lc before -lgcc.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10516 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10520 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10523 (eval $ac_compile) 2>&5
10525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526 test $ac_status = 0; } 2>conftest.err
; then
10529 libobjs
=conftest.
$ac_objext
10531 wl
=$lt_prog_compiler_wl
10532 pic_flag
=$lt_prog_compiler_pic
10538 lt_save_allow_undefined_flag
=$allow_undefined_flag
10539 allow_undefined_flag
=
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10541 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; }
10546 lt_cv_archive_cmds_need_lc
=no
10548 lt_cv_archive_cmds_need_lc
=yes
10550 allow_undefined_flag
=$lt_save_allow_undefined_flag
10552 cat conftest.err
1>&5
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10559 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10720 if test yes = "$GCC"; then
10722 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10723 *) lt_awk_arg
='/^libraries:/' ;;
10726 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10727 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10729 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10730 case $lt_search_path_spec in
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10739 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10742 # Ok, now we have the path, separated by spaces, we can step through it
10743 # and add multilib dir if necessary...
10744 lt_tmp_lt_search_path_spec
=
10745 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10746 # ...but if some path component already ends with the multilib dir we assume
10747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10748 case "$lt_multi_os_dir; $lt_search_path_spec " in
10749 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10753 for lt_sys_path
in $lt_search_path_spec; do
10754 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10755 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10756 elif test -n "$lt_multi_os_dir"; then
10757 test -d "$lt_sys_path" && \
10758 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10761 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10762 BEGIN {RS = " "; FS = "/|\n";} {
10765 for (lt_i = NF; lt_i > 0; lt_i--) {
10766 if ($lt_i != "" && $lt_i != ".") {
10767 if ($lt_i == "..") {
10770 if (lt_count == 0) {
10771 lt_foo = "/" $lt_i lt_foo;
10778 if (lt_foo != "") { lt_freq[lt_foo]++; }
10779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10781 # AWK program above erroneously prepends '/' to C:/dos/paths
10784 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10787 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10789 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10791 library_names_spec
=
10792 libname_spec
='lib$name'
10796 postuninstall_cmds
=
10800 shlibpath_overrides_runpath
=unknown
10802 dynamic_linker
="$host_os ld.so"
10803 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10804 need_lib_prefix
=unknown
10805 hardcode_into_libs
=no
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version
=unknown
10815 version_type
=linux
# correct to gnu/linux during the next big refactor
10816 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10817 shlibpath_var
=LIBPATH
10819 # AIX 3 has no versioning support, so we append a major version to the name.
10820 soname_spec
='$libname$release$shared_ext$major'
10824 version_type
=linux
# correct to gnu/linux during the next big refactor
10827 hardcode_into_libs
=yes
10828 if test ia64
= "$host_cpu"; then
10829 # AIX 5 supports IA64
10830 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10831 shlibpath_var
=LD_LIBRARY_PATH
10833 # With GCC up to 2.95.x, collect2 would create an import file
10834 # for dependence libraries. The import file would start with
10835 # the line '#! .'. This would cause the generated library to
10836 # depend on '.', always an invalid library. This was fixed in
10837 # development snapshots of GCC prior to 3.0.
10839 aix4 | aix4.
[01] | aix4.
[01].
*)
10840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10842 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10845 can_build_shared
=no
10849 # Using Import Files as archive members, it is possible to support
10850 # filename-based versioning of shared library archives on AIX. While
10851 # this would work for both with and without runtime linking, it will
10852 # prevent static linking of such archives. So we do filename-based
10853 # shared library versioning with .so extension only, which is used
10854 # when both runtime linking and shared linking is enabled.
10855 # Unfortunately, runtime linking may impact performance, so we do
10856 # not want this to be the default eventually. Also, we use the
10857 # versioned .so libs for executables only if there is the -brtl
10858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10859 # To allow for filename-based versioning support, we need to create
10860 # libNAME.so.V as an archive file, containing:
10861 # *) an Import File, referring to the versioned filename of the
10862 # archive as well as the shared archive member, telling the
10863 # bitwidth (32 or 64) of that shared object, and providing the
10864 # list of exported symbols of that shared object, eventually
10865 # decorated with the 'weak' keyword
10866 # *) the shared object with the F_LOADONLY flag set, to really avoid
10867 # it being seen by the linker.
10868 # At run time we better use the real file rather than another symlink,
10869 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10871 case $with_aix_soname,$aix_use_runtimelinking in
10872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10873 # soname into executable. Probably we can add versioning support to
10874 # collect2, so additional links can be useful in future.
10875 aix
,yes) # traditional libtool
10876 dynamic_linker
='AIX unversionable lib.so'
10877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10878 # instead of lib<name>.a to let people know that these are not
10879 # typical AIX shared libraries.
10880 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882 aix
,no
) # traditional AIX only
10883 dynamic_linker
='AIX lib.a(lib.so.V)'
10884 # We preserve .a as extension for shared libraries through AIX4.2
10885 # and later when we are not doing run time linking.
10886 library_names_spec
='$libname$release.a $libname.a'
10887 soname_spec
='$libname$release$shared_ext$major'
10889 svr4
,*) # full svr4 only
10890 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10891 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10892 # We do not specify a path in Import Files, so LIBPATH fires.
10893 shlibpath_overrides_runpath
=yes
10895 *,yes) # both, prefer svr4
10896 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10897 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10898 # unpreferred sharedlib libNAME.a needs extra handling
10899 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"'
10900 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"'
10901 # We do not specify a path in Import Files, so LIBPATH fires.
10902 shlibpath_overrides_runpath
=yes
10904 *,no
) # both, prefer aix
10905 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10906 library_names_spec
='$libname$release.a $libname.a'
10907 soname_spec
='$libname$release$shared_ext$major'
10908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10909 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)'
10910 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"'
10913 shlibpath_var
=LIBPATH
10920 # Since July 2007 AmigaOS4 officially supports .so libraries.
10921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10922 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925 library_names_spec
='$libname.ixlibrary $libname.a'
10926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10927 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'
10933 library_names_spec
='$libname$shared_ext'
10934 dynamic_linker
="$host_os ld.so"
10935 shlibpath_var
=LIBRARY_PATH
10939 version_type
=linux
# correct to gnu/linux during the next big refactor
10941 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec
='$libname$release$shared_ext$major'
10943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10946 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10947 # the default ld.so.conf also contains /usr/contrib/lib and
10948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10949 # libtool to hard-code these into programs
10952 cygwin
* | mingw
* | pw32
* | cegcc
*)
10953 version_type
=windows
10958 case $GCC,$cc_basename in
10961 library_names_spec
='$libname.dll.a'
10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963 postinstall_cmds
='base_file=`basename \$file`~
10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965 dldir=$destdir/`dirname \$dlpath`~
10966 test -d \$dldir || mkdir -p \$dldir~
10967 $install_prog $dir/$dlname \$dldir/$dlname~
10968 chmod a+x \$dldir/$dlname~
10969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10972 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10973 dlpath=$dir/\$dldll~
10975 shlibpath_overrides_runpath
=yes
10979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10980 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10982 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10985 # MinGW DLLs use traditional 'lib' prefix
10986 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10989 # pw32 DLLs use 'pw' prefix rather than 'lib'
10990 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10993 dynamic_linker
='Win32 ld.exe'
10998 libname_spec
='$name'
10999 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11000 library_names_spec
='$libname.dll.lib'
11004 sys_lib_search_path_spec
=
11007 for lt_path
in $LIB
11010 # Let DOS variable expansion print the short 8.3 style file name.
11011 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11012 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11015 # Convert to MSYS style.
11016 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11019 # Convert to unix form, then to dos form, then back to unix form
11020 # but this time dos style (no spaces!) so that the unix form looks
11021 # like /cygdrive/c/PROGRA~1:/cygdr...
11022 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11023 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11024 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11027 sys_lib_search_path_spec
=$LIB
11028 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11029 # It is most probably a Windows format PATH.
11030 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11032 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11034 # FIXME: find the short name or the path components, as spaces are
11035 # common. (e.g. "Program Files" -> "PROGRA~1")
11039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040 postinstall_cmds
='base_file=`basename \$file`~
11041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11042 dldir=$destdir/`dirname \$dlpath`~
11043 test -d \$dldir || mkdir -p \$dldir~
11044 $install_prog $dir/$dlname \$dldir/$dlname'
11045 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11046 dlpath=$dir/\$dldll~
11048 shlibpath_overrides_runpath
=yes
11049 dynamic_linker
='Win32 link.exe'
11053 # Assume MSVC wrapper
11054 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11055 dynamic_linker
='Win32 ld.exe'
11058 # FIXME: first we should search . and the directory the executable is in
11062 darwin
* | rhapsody
*)
11063 dynamic_linker
="$host_os dyld"
11064 version_type
=darwin
11067 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11068 soname_spec
='$libname$release$major$shared_ext'
11069 shlibpath_overrides_runpath
=yes
11070 shlibpath_var
=DYLD_LIBRARY_PATH
11071 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11073 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11074 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11078 version_type
=linux
# correct to gnu/linux during the next big refactor
11081 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec
='$libname$release$shared_ext$major'
11083 shlibpath_var
=LD_LIBRARY_PATH
11086 freebsd
* | dragonfly
*)
11087 # DragonFly does not have aout. When/if they implement a new
11088 # versioning mechanism, adjust this.
11089 if test -x /usr
/bin
/objformat
; then
11090 objformat
=`/usr/bin/objformat`
11093 freebsd
[23].
*) objformat
=aout
;;
11094 *) objformat
=elf
;;
11097 version_type
=freebsd-
$objformat
11098 case $version_type in
11100 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101 soname_spec
='$libname$release$shared_ext$major'
11106 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11110 shlibpath_var
=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath
=yes
11115 freebsd3.
[01]* | freebsdelf3.
[01]*)
11116 shlibpath_overrides_runpath
=yes
11117 hardcode_into_libs
=yes
11119 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11120 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11121 shlibpath_overrides_runpath
=no
11122 hardcode_into_libs
=yes
11124 *) # from 4.6 on, and DragonFly
11125 shlibpath_overrides_runpath
=yes
11126 hardcode_into_libs
=yes
11132 version_type
=linux
# correct to gnu/linux during the next big refactor
11135 dynamic_linker
="$host_os runtime_loader"
11136 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec
='$libname$release$shared_ext$major'
11138 shlibpath_var
=LIBRARY_PATH
11139 shlibpath_overrides_runpath
=no
11140 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11141 hardcode_into_libs
=yes
11144 hpux9
* | hpux10
* | hpux11
*)
11145 # Give a soname corresponding to the major version so that dld.sl refuses to
11146 # link against other versions.
11153 hardcode_into_libs
=yes
11154 dynamic_linker
="$host_os dld.so"
11155 shlibpath_var
=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11157 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec
='$libname$release$shared_ext$major'
11159 if test 32 = "$HPUX_IA64_MODE"; then
11160 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11161 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11163 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11164 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11169 hardcode_into_libs
=yes
11170 dynamic_linker
="$host_os dld.sl"
11171 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11172 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11173 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec
='$libname$release$shared_ext$major'
11175 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11176 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11180 dynamic_linker
="$host_os dld.sl"
11181 shlibpath_var
=SHLIB_PATH
11182 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11183 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 soname_spec
='$libname$release$shared_ext$major'
11187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11188 postinstall_cmds
='chmod 555 $lib'
11189 # or fails outright, so override atomically:
11190 install_override_mode
=555
11194 version_type
=linux
# correct to gnu/linux during the next big refactor
11197 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec
='$libname$release$shared_ext$major'
11199 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11200 shlibpath_var
=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath
=no
11202 hardcode_into_libs
=yes
11205 irix5
* | irix6
* | nonstopux
*)
11207 nonstopux
*) version_type
=nonstopux
;;
11209 if test yes = "$lt_cv_prog_gnu_ld"; then
11210 version_type
=linux
# correct to gnu/linux during the next big refactor
11217 soname_spec
='$libname$release$shared_ext$major'
11218 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11220 irix5
* | nonstopux
*)
11221 libsuff
= shlibsuff
=
11224 case $LD in # libtool.m4 will add one of these switches to LD
11225 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11226 libsuff
= shlibsuff
= libmagic
=32-bit;;
11227 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11228 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11229 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11230 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11231 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11235 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11236 shlibpath_overrides_runpath
=no
11237 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11238 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11239 hardcode_into_libs
=yes
11242 # No shared lib support for Linux oldld, aout, or coff.
11243 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11248 version_type
=none
# Android doesn't support versioned libraries.
11251 library_names_spec
='$libname$release$shared_ext'
11252 soname_spec
='$libname$release$shared_ext'
11254 shlibpath_var
=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath
=yes
11257 # This implies no fast_install, which is unacceptable.
11258 # Some rework will be needed to allow for fast_install
11259 # before this can be enabled.
11260 hardcode_into_libs
=yes
11262 dynamic_linker
='Android linker'
11263 # Don't embed -rpath directories since the linker doesn't support them.
11264 hardcode_libdir_flag_spec
='-L$libdir'
11267 # This must be glibc/ELF.
11268 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11269 version_type
=linux
# correct to gnu/linux during the next big refactor
11272 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec
='$libname$release$shared_ext$major'
11274 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11275 shlibpath_var
=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath
=no
11278 # Some binutils ld are patched to set DT_RUNPATH
11279 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11280 $as_echo_n "(cached) " >&6
11282 lt_cv_shlibpath_overrides_runpath
=no
11283 save_LDFLAGS
=$LDFLAGS
11284 save_libdir
=$libdir
11285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11298 if ac_fn_c_try_link
"$LINENO"; then :
11299 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11300 lt_cv_shlibpath_overrides_runpath
=yes
11303 rm -f core conftest.err conftest.
$ac_objext \
11304 conftest
$ac_exeext conftest.
$ac_ext
11305 LDFLAGS
=$save_LDFLAGS
11306 libdir
=$save_libdir
11310 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11312 # This implies no fast_install, which is unacceptable.
11313 # Some rework will be needed to allow for fast_install
11314 # before this can be enabled.
11315 hardcode_into_libs
=yes
11317 # Ideally, we could use ldconfig to report *all* directores which are
11318 # searched for libraries, however this is still not possible. Aside from not
11319 # being certain /sbin/ldconfig is available, command
11320 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11321 # even though it is searched at run-time. Try to do the best guess by
11322 # appending ld.so.conf contents (and includes) to the search path.
11323 if test -f /etc
/ld.so.conf
; then
11324 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' ' '`
11325 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11328 # We used to test for /lib/ld.so.1 and disable shared libraries on
11329 # powerpc, because MkLinux only supported shared libraries with the
11330 # GNU dynamic linker. Since this was broken with cross compilers,
11331 # most powerpc-linux boxes support dynamic linking these days and
11332 # people can always --disable-shared, the test was removed, and we
11333 # assume the GNU/Linux dynamic linker is in use.
11334 dynamic_linker
='GNU/Linux ld.so'
11341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11342 soname_spec
='${libname}${release}${shared_ext}$major'
11343 shlibpath_var
=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath
=no
11345 hardcode_into_libs
=yes
11346 dynamic_linker
='NetBSD ld.elf_so'
11353 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11354 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11355 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356 dynamic_linker
='NetBSD (a.out) ld.so'
11358 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec
='$libname$release$shared_ext$major'
11360 dynamic_linker
='NetBSD ld.elf_so'
11362 shlibpath_var
=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath
=yes
11364 hardcode_into_libs
=yes
11368 version_type
=linux
# correct to gnu/linux during the next big refactor
11369 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 shlibpath_var
=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath
=yes
11378 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec
='$libname$release$shared_ext$major'
11380 shlibpath_var
=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath
=no
11382 hardcode_into_libs
=yes
11383 dynamic_linker
='ldqnx.so'
11386 openbsd
* | bitrig
*)
11388 sys_lib_dlsearch_path_spec
=/usr
/lib
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11395 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11396 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397 shlibpath_var
=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath
=yes
11402 libname_spec
='$name'
11403 version_type
=windows
11407 # OS/2 can only load a DLL with a base name of 8 characters or less.
11408 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11409 v=$($ECHO $release$versuffix | tr -d .-);
11410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11411 $ECHO $n$v`$shared_ext'
11412 library_names_spec
='${libname}_dll.$libext'
11413 dynamic_linker
='OS/2 ld.exe'
11414 shlibpath_var
=BEGINLIBPATH
11415 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11416 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11417 postinstall_cmds
='base_file=`basename \$file`~
11418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11419 dldir=$destdir/`dirname \$dlpath`~
11420 test -d \$dldir || mkdir -p \$dldir~
11421 $install_prog $dir/$dlname \$dldir/$dlname~
11422 chmod a+x \$dldir/$dlname~
11423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11426 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11427 dlpath=$dir/\$dldll~
11431 osf3
* | osf4
* | osf5
*)
11435 soname_spec
='$libname$release$shared_ext$major'
11436 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 shlibpath_var
=LD_LIBRARY_PATH
11438 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11439 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11447 version_type
=linux
# correct to gnu/linux during the next big refactor
11450 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451 soname_spec
='$libname$release$shared_ext$major'
11452 shlibpath_var
=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath
=yes
11454 hardcode_into_libs
=yes
11455 # ldd complains unless libraries are executable
11456 postinstall_cmds
='chmod +x $lib'
11461 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11462 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11463 shlibpath_var
=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath
=yes
11465 if test yes = "$with_gnu_ld"; then
11472 version_type
=linux
# correct to gnu/linux during the next big refactor
11473 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474 soname_spec
='$libname$release$shared_ext$major'
11475 shlibpath_var
=LD_LIBRARY_PATH
11476 case $host_vendor in
11478 shlibpath_overrides_runpath
=no
11480 runpath_var
=LD_RUN_PATH
11488 shlibpath_overrides_runpath
=no
11489 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11495 if test -d /usr
/nec
; then
11496 version_type
=linux
# correct to gnu/linux during the next big refactor
11497 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11498 soname_spec
='$libname$shared_ext.$major'
11499 shlibpath_var
=LD_LIBRARY_PATH
11503 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11507 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11508 soname_spec
='$libname$release$shared_ext$major'
11509 shlibpath_var
=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath
=yes
11511 hardcode_into_libs
=yes
11512 if test yes = "$with_gnu_ld"; then
11513 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11518 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11522 sys_lib_dlsearch_path_spec
='/usr/lib'
11526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11527 version_type
=linux
# correct to gnu/linux during the next big refactor
11530 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 shlibpath_var
=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath
=no
11533 hardcode_into_libs
=yes
11537 version_type
=linux
# correct to gnu/linux during the next big refactor
11538 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec
='$libname$release$shared_ext$major'
11540 shlibpath_var
=LD_LIBRARY_PATH
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11548 $as_echo "$dynamic_linker" >&6; }
11549 test no
= "$dynamic_linker" && can_build_shared
=no
11551 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11552 if test yes = "$GCC"; then
11553 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11557 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11561 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11565 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11568 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11571 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11672 if test -n "$hardcode_libdir_flag_spec" ||
11673 test -n "$runpath_var" ||
11674 test yes = "$hardcode_automatic"; then
11676 # We can hardcode non-existent directories.
11677 if test no
!= "$hardcode_direct" &&
11678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11679 # have to relink, otherwise we might link with an installed library
11680 # when we should be linking with a yet-to-be-installed one
11681 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11682 test no
!= "$hardcode_minus_L"; then
11683 # Linking always hardcodes the temporary library directory.
11684 hardcode_action
=relink
11686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11687 hardcode_action
=immediate
11690 # We cannot hardcode anything, or else we can only hardcode existing
11692 hardcode_action
=unsupported
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11695 $as_echo "$hardcode_action" >&6; }
11697 if test relink
= "$hardcode_action" ||
11698 test yes = "$inherit_rpath"; then
11699 # Fast installation is not supported
11700 enable_fast_install
=no
11701 elif test yes = "$shlibpath_overrides_runpath" ||
11702 test no
= "$enable_shared"; then
11703 # Fast installation is not necessary
11704 enable_fast_install
=needless
11712 if test yes != "$enable_dlopen"; then
11713 enable_dlopen
=unknown
11714 enable_dlopen_self
=unknown
11715 enable_dlopen_self_static
=unknown
11722 lt_cv_dlopen
=load_add_on
11724 lt_cv_dlopen_self
=yes
11727 mingw
* | pw32
* | cegcc
*)
11728 lt_cv_dlopen
=LoadLibrary
11733 lt_cv_dlopen
=dlopen
11738 # if libdl is installed we need to link against it
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11741 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11742 $as_echo_n "(cached) " >&6
11744 ac_check_lib_save_LIBS
=$LIBS
11746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11764 if ac_fn_c_try_link
"$LINENO"; then :
11765 ac_cv_lib_dl_dlopen
=yes
11767 ac_cv_lib_dl_dlopen
=no
11769 rm -f core conftest.err conftest.
$ac_objext \
11770 conftest
$ac_exeext conftest.
$ac_ext
11771 LIBS
=$ac_check_lib_save_LIBS
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11775 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11776 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11781 lt_cv_dlopen_self
=yes
11788 # Don't try to run any link tests for TPF. We know it's impossible
11789 # because TPF is a cross-compiler, and we know how we open DSOs.
11790 lt_cv_dlopen
=dlopen
11792 lt_cv_dlopen_self
=no
11796 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11797 if test "x$ac_cv_func_shl_load" = xyes
; then :
11798 lt_cv_dlopen
=shl_load
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11801 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11802 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11803 $as_echo_n "(cached) " >&6
11805 ac_check_lib_save_LIBS
=$LIBS
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11820 return shl_load ();
11825 if ac_fn_c_try_link
"$LINENO"; then :
11826 ac_cv_lib_dld_shl_load
=yes
11828 ac_cv_lib_dld_shl_load
=no
11830 rm -f core conftest.err conftest.
$ac_objext \
11831 conftest
$ac_exeext conftest.
$ac_ext
11832 LIBS
=$ac_check_lib_save_LIBS
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11835 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11836 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11837 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11839 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11840 if test "x$ac_cv_func_dlopen" = xyes
; then :
11841 lt_cv_dlopen
=dlopen
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11846 $as_echo_n "(cached) " >&6
11848 ac_check_lib_save_LIBS
=$LIBS
11850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11868 if ac_fn_c_try_link
"$LINENO"; then :
11869 ac_cv_lib_dl_dlopen
=yes
11871 ac_cv_lib_dl_dlopen
=no
11873 rm -f core conftest.err conftest.
$ac_objext \
11874 conftest
$ac_exeext conftest.
$ac_ext
11875 LIBS
=$ac_check_lib_save_LIBS
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11880 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11883 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11884 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11885 $as_echo_n "(cached) " >&6
11887 ac_check_lib_save_LIBS
=$LIBS
11888 LIBS
="-lsvld $LIBS"
11889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11907 if ac_fn_c_try_link
"$LINENO"; then :
11908 ac_cv_lib_svld_dlopen
=yes
11910 ac_cv_lib_svld_dlopen
=no
11912 rm -f core conftest.err conftest.
$ac_objext \
11913 conftest
$ac_exeext conftest.
$ac_ext
11914 LIBS
=$ac_check_lib_save_LIBS
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11917 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11918 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11919 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11922 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11923 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11924 $as_echo_n "(cached) " >&6
11926 ac_check_lib_save_LIBS
=$LIBS
11928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11941 return dld_link ();
11946 if ac_fn_c_try_link
"$LINENO"; then :
11947 ac_cv_lib_dld_dld_link
=yes
11949 ac_cv_lib_dld_dld_link
=no
11951 rm -f core conftest.err conftest.
$ac_objext \
11952 conftest
$ac_exeext conftest.
$ac_ext
11953 LIBS
=$ac_check_lib_save_LIBS
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11956 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11957 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11958 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11979 if test no
= "$lt_cv_dlopen"; then
11985 case $lt_cv_dlopen in
11987 save_CPPFLAGS
=$CPPFLAGS
11988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11990 save_LDFLAGS
=$LDFLAGS
11991 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11994 LIBS
="$lt_cv_dlopen_libs $LIBS"
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11997 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11998 if ${lt_cv_dlopen_self+:} false
; then :
11999 $as_echo_n "(cached) " >&6
12001 if test yes = "$cross_compiling"; then :
12002 lt_cv_dlopen_self
=cross
12004 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12005 lt_status
=$lt_dlunknown
12006 cat > conftest.
$ac_ext <<_LT_EOF
12007 #line $LINENO "configure"
12008 #include "confdefs.h"
12017 # define LT_DLGLOBAL RTLD_GLOBAL
12020 # define LT_DLGLOBAL DL_GLOBAL
12022 # define LT_DLGLOBAL 0
12026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12027 find out it does not work in some platform. */
12028 #ifndef LT_DLLAZY_OR_NOW
12030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12033 # define LT_DLLAZY_OR_NOW DL_LAZY
12036 # define LT_DLLAZY_OR_NOW RTLD_NOW
12039 # define LT_DLLAZY_OR_NOW DL_NOW
12041 # define LT_DLLAZY_OR_NOW 0
12048 /* When -fvisibility=hidden is used, assume the code has been annotated
12049 correspondingly for the symbols needed. */
12050 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12051 int fnord () __attribute__((visibility("default")));
12054 int fnord () { return 42; }
12057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12058 int status = $lt_dlunknown;
12062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066 else puts (dlerror ());
12068 /* dlclose (self); */
12076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12077 (eval $ac_link) 2>&5
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12081 (.
/conftest
; exit; ) >&5 2>/dev
/null
12083 case x
$lt_status in
12084 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12085 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12086 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12089 # compilation failed
12090 lt_cv_dlopen_self
=no
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12098 $as_echo "$lt_cv_dlopen_self" >&6; }
12100 if test yes = "$lt_cv_dlopen_self"; then
12101 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12103 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12104 if ${lt_cv_dlopen_self_static+:} false
; then :
12105 $as_echo_n "(cached) " >&6
12107 if test yes = "$cross_compiling"; then :
12108 lt_cv_dlopen_self_static
=cross
12110 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12111 lt_status
=$lt_dlunknown
12112 cat > conftest.
$ac_ext <<_LT_EOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12123 # define LT_DLGLOBAL RTLD_GLOBAL
12126 # define LT_DLGLOBAL DL_GLOBAL
12128 # define LT_DLGLOBAL 0
12132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12133 find out it does not work in some platform. */
12134 #ifndef LT_DLLAZY_OR_NOW
12136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12139 # define LT_DLLAZY_OR_NOW DL_LAZY
12142 # define LT_DLLAZY_OR_NOW RTLD_NOW
12145 # define LT_DLLAZY_OR_NOW DL_NOW
12147 # define LT_DLLAZY_OR_NOW 0
12154 /* When -fvisibility=hidden is used, assume the code has been annotated
12155 correspondingly for the symbols needed. */
12156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12157 int fnord () __attribute__((visibility("default")));
12160 int fnord () { return 42; }
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 else puts (dlerror ());
12174 /* dlclose (self); */
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12187 (.
/conftest
; exit; ) >&5 2>/dev
/null
12189 case x
$lt_status in
12190 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12191 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12192 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12195 # compilation failed
12196 lt_cv_dlopen_self_static
=no
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12204 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12207 CPPFLAGS
=$save_CPPFLAGS
12208 LDFLAGS
=$save_LDFLAGS
12213 case $lt_cv_dlopen_self in
12214 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12215 *) enable_dlopen_self
=unknown
;;
12218 case $lt_cv_dlopen_self_static in
12219 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12220 *) enable_dlopen_self_static
=unknown
;;
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12244 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12245 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12246 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12250 # FIXME - insert some real tests, host_os isn't really good enough
12253 if test -n "$STRIP"; then
12254 striplib
="$STRIP -x"
12255 old_striplib
="$STRIP -S"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12281 # Report what library types will actually be built
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12283 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12285 $as_echo "$can_build_shared" >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12288 $as_echo_n "checking whether to build shared libraries... " >&6; }
12289 test no
= "$can_build_shared" && enable_shared
=no
12291 # On AIX, shared libraries and static libraries use the same namespace, and
12292 # are all built from PIC.
12295 test yes = "$enable_shared" && enable_static
=no
12296 if test -n "$RANLIB"; then
12297 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12298 postinstall_cmds
='$RANLIB $lib'
12303 if test ia64
!= "$host_cpu"; then
12304 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12305 yes,aix
,yes) ;; # shared object as lib.so file only
12306 yes,svr4
,*) ;; # shared object as lib.so archive member only
12307 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12313 $as_echo "$enable_shared" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12316 $as_echo_n "checking whether to build static libraries... " >&6; }
12317 # Make sure either enable_shared or enable_static is yes.
12318 test yes = "$enable_shared" || enable_static
=yes
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12320 $as_echo "$enable_static" >&6; }
12327 ac_cpp
='$CPP $CPPFLAGS'
12328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12348 ac_config_commands
="$ac_config_commands libtool"
12353 # Only expand once:
12356 # By default we simply use the C compiler to build assembly code.
12358 test "${CCAS+set}" = set || CCAS
=$CC
12359 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12363 depcc
="$CCAS" am_compiler_list
=
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12368 $as_echo_n "(cached) " >&6
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named 'D' -- because '-MD' means "put the output
12376 rm -rf conftest.dir
12378 # Copy depcomp to subdir because otherwise we won't find it if we're
12379 # using a relative directory.
12380 cp "$am_depcomp" conftest.dir
12382 # We will build objects and dependencies in a subdirectory because
12383 # it helps to detect inapplicable dependency modes. For instance
12384 # both Tru64's cc and ICC support -MD to output dependencies as a
12385 # side effect of compilation, but ICC will put the dependencies in
12386 # the current directory while Tru64 will put them in the object
12390 am_cv_CCAS_dependencies_compiler_type
=none
12391 if test "$am_compiler_list" = ""; then
12392 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12394 am__universal
=false
12397 for depmode
in $am_compiler_list; do
12398 # Setup a source with many dependencies, because some compilers
12399 # like to wrap large dependency lists on column 80 (with \), and
12400 # we should not choose a depcomp mode which is confused by this.
12402 # We need to recreate these files for each test, as the compiler may
12403 # overwrite some of them when testing with obscure command lines.
12404 # This happens at least with the AIX C compiler.
12406 for i
in 1 2 3 4 5 6; do
12407 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12409 # Solaris 10 /bin/sh.
12410 echo '/* dummy */' > sub
/conftst
$i.h
12412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12415 # mode. It turns out that the SunPro C++ compiler does not properly
12416 # handle '-M -o', and we need to detect this. Also, some Intel
12417 # versions had trouble with output in subdirs.
12418 am__obj
=sub
/conftest.
${OBJEXT-o}
12419 am__minus_obj
="-o $am__obj"
12422 # This depmode causes a compiler race in universal mode.
12423 test "$am__universal" = false ||
continue
12426 # After this tag, mechanisms are not by side-effect, so they'll
12427 # only be used when explicitly requested.
12428 if test "x$enable_dependency_tracking" = xyes
; then
12434 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12435 # This compiler won't grok '-c -o', but also, the minuso test has
12436 # not run yet. These depmodes are late enough in the game, and
12437 # so weak that their functioning should not be impacted.
12438 am__obj
=conftest.
${OBJEXT-o}
12443 if depmode
=$depmode \
12444 source=sub
/conftest.c object
=$am__obj \
12445 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12446 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12447 >/dev
/null
2>conftest.err
&&
12448 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12449 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12450 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12451 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12452 # icc doesn't choke on unknown options, it will just issue warnings
12453 # or remarks (even with -Werror). So we grep stderr for any message
12454 # that says an option was ignored or not supported.
12455 # When given -MP, icc 7.0 and 7.1 complain thusly:
12456 # icc: Command line warning: ignoring option '-M'; no argument required
12457 # The diagnosis changed in icc 8.0:
12458 # icc: Command line remark: option '-MP' not supported
12459 if (grep 'ignoring option' conftest.err ||
12460 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12461 am_cv_CCAS_dependencies_compiler_type
=$depmode
12468 rm -rf conftest.dir
12470 am_cv_CCAS_dependencies_compiler_type
=none
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12475 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12476 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12479 test "x$enable_dependency_tracking" != xno \
12480 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12481 am__fastdepCCAS_TRUE
=
12482 am__fastdepCCAS_FALSE
='#'
12484 am__fastdepCCAS_TRUE
='#'
12485 am__fastdepCCAS_FALSE
=
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12493 $as_echo_n "checking zfs author... " >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12495 $as_echo "$ZFS_META_AUTHOR" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12498 $as_echo_n "checking zfs license... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12500 $as_echo "$ZFS_META_LICENSE" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12505 $as_echo_n "checking linux distribution... " >&6; }
12506 if test -f /etc
/toss-release
; then
12508 elif test -f /etc
/fedora-release
; then
12510 elif test -f /etc
/redhat-release
; then
12512 elif test -f /etc
/gentoo-release
; then
12514 elif test -f /etc
/arch-release
; then
12516 elif test -f /etc
/SuSE-release
; then
12518 elif test -f /etc
/slackware-version
; then
12520 elif test -f /etc
/lunar.release
; then
12522 elif test -f /etc
/lsb-release
; then
12524 elif test -f /etc
/debian_version
; then
12526 elif test -f /etc
/alpine-release
; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12532 $as_echo "$VENDOR" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12536 $as_echo_n "checking default package type... " >&6; }
12538 toss
) DEFAULT_PACKAGE
=rpm
;;
12539 redhat
) DEFAULT_PACKAGE
=rpm
;;
12540 fedora
) DEFAULT_PACKAGE
=rpm
;;
12541 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12542 alpine
) DEFAULT_PACKAGE
=tgz
;;
12543 arch
) DEFAULT_PACKAGE
=tgz
;;
12544 sles
) DEFAULT_PACKAGE
=rpm
;;
12545 slackware
) DEFAULT_PACKAGE
=tgz
;;
12546 lunar
) DEFAULT_PACKAGE
=tgz
;;
12547 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12548 debian
) DEFAULT_PACKAGE
=deb
;;
12549 *) DEFAULT_PACKAGE
=rpm
;;
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12552 $as_echo "$DEFAULT_PACKAGE" >&6; }
12555 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12557 $as_echo_n "checking default init directory... " >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12559 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12563 $as_echo_n "checking default init script type... " >&6; }
12565 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12566 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12567 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12568 gentoo
) DEFAULT_INIT_SCRIPT
=openrc
;;
12569 alpine
) DEFAULT_INIT_SCRIPT
=openrc
;;
12570 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12571 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12572 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12573 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12574 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12575 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12576 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12579 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12583 $as_echo_n "checking default init config direectory... " >&6; }
12585 alpine
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12586 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12587 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12588 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12589 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12590 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12591 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12592 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12593 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12596 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12600 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12601 if test -d /usr
/share
/initramfs-tools
; then
12602 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12606 DEFINE_INITRAMFS
=''
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12617 $as_echo_n "checking whether $RPM is available... " >&6; }
12618 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12620 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12623 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12629 $as_echo "$HAVE_RPM" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12634 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12635 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12637 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12640 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12646 $as_echo "$HAVE_RPMBUILD" >&6; }
12650 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1"'
12651 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12652 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12655 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12660 RPM_SPEC_DIR
="rpm/generic"
12662 # Check whether --with-spec was given.
12663 if test "${with_spec+set}" = set; then :
12664 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12669 $as_echo_n "checking whether spec files are available... " >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12671 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12693 DPKGBUILD
=dpkg-buildpackage
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12696 $as_echo_n "checking whether $DPKG is available... " >&6; }
12697 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12699 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12702 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12708 $as_echo "$HAVE_DPKG" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12713 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12714 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12716 DPKGBUILD_VERSION
=$
(echo $tmp | \
12717 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12720 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12726 $as_echo "$HAVE_DPKGBUILD" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12742 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12743 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12745 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12748 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12754 $as_echo "$HAVE_ALIEN" >&6; }
12766 # Check whether --with-config was given.
12767 if test "${with_config+set}" = set; then :
12768 withval
=$with_config; ZFS_CONFIG
="$withval"
12771 # Check whether --enable-linux-builtin was given.
12772 if test "${enable_linux_builtin+set}" = set; then :
12773 enableval
=$enable_linux_builtin;
12775 enable_linux_builtin
=no
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12780 $as_echo_n "checking zfs config... " >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12782 $as_echo "$ZFS_CONFIG" >&6; };
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12788 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12790 saved_flags
="$CFLAGS"
12791 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12804 if ac_fn_c_try_compile
"$LINENO"; then :
12806 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12812 NO_UNUSED_BUT_SET_VARIABLE
=
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12819 CFLAGS
="$saved_flags"
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12824 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12826 saved_flags
="$CFLAGS"
12827 CFLAGS
="$CFLAGS -Wbool-compare"
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12840 if ac_fn_c_try_compile
"$LINENO"; then :
12842 NO_BOOL_COMPARE
=-Wno-bool-compare
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12855 CFLAGS
="$saved_flags"
12859 case "$host_cpu" in
12860 x86_64 | x86 | i686
)
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12863 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12870 __asm__ __volatile__("xorps %xmm0, %xmm1");
12874 if ac_fn_c_try_link
"$LINENO"; then :
12877 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12888 rm -f core conftest.err conftest.
$ac_objext \
12889 conftest
$ac_exeext conftest.
$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12893 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12900 __asm__ __volatile__("pxor %xmm0, %xmm1");
12904 if ac_fn_c_try_link
"$LINENO"; then :
12907 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12918 rm -f core conftest.err conftest.
$ac_objext \
12919 conftest
$ac_exeext conftest.
$ac_ext
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12923 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12931 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12935 if ac_fn_c_try_link
"$LINENO"; then :
12938 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12949 rm -f core conftest.err conftest.
$ac_objext \
12950 conftest
$ac_exeext conftest.
$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12954 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12961 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12965 if ac_fn_c_try_link
"$LINENO"; then :
12968 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12979 rm -f core conftest.err conftest.
$ac_objext \
12980 conftest
$ac_exeext conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12984 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12991 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12995 if ac_fn_c_try_link
"$LINENO"; then :
12998 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 $as_echo "yes" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13009 rm -f core conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13014 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13021 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13025 if ac_fn_c_try_link
"$LINENO"; then :
13028 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13039 rm -f core conftest.err conftest.
$ac_objext \
13040 conftest
$ac_exeext conftest.
$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13044 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13052 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13056 if ac_fn_c_try_link
"$LINENO"; then :
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13059 $as_echo "yes" >&6; }
13061 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13070 rm -f core conftest.err conftest.
$ac_objext \
13071 conftest
$ac_exeext conftest.
$ac_ext
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13075 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13083 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13087 if ac_fn_c_try_link
"$LINENO"; then :
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13092 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13101 rm -f core conftest.err conftest.
$ac_objext \
13102 conftest
$ac_exeext conftest.
$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13106 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13114 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13118 if ac_fn_c_try_link
"$LINENO"; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13123 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13132 rm -f core conftest.err conftest.
$ac_objext \
13133 conftest
$ac_exeext conftest.
$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13137 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13145 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13149 if ac_fn_c_try_link
"$LINENO"; then :
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13163 rm -f core conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13168 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13176 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13180 if ac_fn_c_try_link
"$LINENO"; then :
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13185 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13199 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13207 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13211 if ac_fn_c_try_link
"$LINENO"; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214 $as_echo "yes" >&6; }
13216 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13225 rm -f core conftest.err conftest.
$ac_objext \
13226 conftest
$ac_exeext conftest.
$ac_ext
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13230 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13238 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13242 if ac_fn_c_try_link
"$LINENO"; then :
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13247 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13261 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13269 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13273 if ac_fn_c_try_link
"$LINENO"; then :
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276 $as_echo "yes" >&6; }
13278 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13287 rm -f core conftest.err conftest.
$ac_objext \
13288 conftest
$ac_exeext conftest.
$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13292 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13300 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13304 if ac_fn_c_try_link
"$LINENO"; then :
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13309 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13318 rm -f core conftest.err conftest.
$ac_objext \
13319 conftest
$ac_exeext conftest.
$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13323 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13331 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13335 if ac_fn_c_try_link
"$LINENO"; then :
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13340 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13349 rm -f core conftest.err conftest.
$ac_objext \
13350 conftest
$ac_exeext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13354 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13362 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13366 if ac_fn_c_try_link
"$LINENO"; then :
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13371 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13388 $as_echo_n "checking for target asm dir... " >&6; }
13389 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13391 case $TARGET_ARCH in
13393 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13396 TARGET_ASM_DIR
=asm-generic
13401 if test $TARGET_ASM_DIR = asm-x86_64
; then
13402 TARGET_ASM_X86_64_TRUE
=
13403 TARGET_ASM_X86_64_FALSE
='#'
13405 TARGET_ASM_X86_64_TRUE
='#'
13406 TARGET_ASM_X86_64_FALSE
=
13409 if test $TARGET_ASM_DIR = asm-i386
; then
13410 TARGET_ASM_I386_TRUE
=
13411 TARGET_ASM_I386_FALSE
='#'
13413 TARGET_ASM_I386_TRUE
='#'
13414 TARGET_ASM_I386_FALSE
=
13417 if test $TARGET_ASM_DIR = asm-generic
; then
13418 TARGET_ASM_GENERIC_TRUE
=
13419 TARGET_ASM_GENERIC_FALSE
='#'
13421 TARGET_ASM_GENERIC_TRUE
='#'
13422 TARGET_ASM_GENERIC_FALSE
=
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13426 $as_echo "$TARGET_ASM_DIR" >&6; }
13430 case "$ZFS_CONFIG" in
13434 # Check whether --with-linux was given.
13435 if test "${with_linux+set}" = set; then :
13436 withval
=$with_linux; kernelsrc
="$withval"
13441 # Check whether --with-linux-obj was given.
13442 if test "${with_linux_obj+set}" = set; then :
13443 withval
=$with_linux_obj; kernelbuild
="$withval"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13448 $as_echo_n "checking kernel source directory... " >&6; }
13449 if test -z "$kernelsrc"; then :
13451 if test -e "/lib/modules/$(uname -r)/source"; then :
13453 headersdir
="/lib/modules/$(uname -r)/source"
13454 sourcelink
=$
(readlink
-f "$headersdir")
13456 elif test -e "/lib/modules/$(uname -r)/build"; then :
13458 headersdir
="/lib/modules/$(uname -r)/build"
13459 sourcelink
=$
(readlink
-f "$headersdir")
13463 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13465 2>/dev
/null |
grep -v obj |
tail -1)
13469 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13471 kernelsrc
=`readlink -f ${sourcelink}`
13475 kernelsrc
="Not found"
13481 if test "$kernelsrc" = "NONE"; then :
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13491 $as_echo "$kernelsrc" >&6; }
13492 if test ! -d "$kernelsrc"; then :
13495 *** Please make sure the kernel devel package for your distribution
13496 *** is installed and then try again. If that fails, you can specify the
13497 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13502 $as_echo_n "checking kernel build directory... " >&6; }
13503 if test -z "$kernelbuild"; then :
13505 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
13507 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13509 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13511 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13513 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13515 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13517 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13519 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13523 kernelbuild
=${kernelsrc}
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13529 $as_echo "$kernelbuild" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13532 $as_echo_n "checking kernel source version... " >&6; }
13533 utsrelease1
=$kernelbuild/include
/linux
/version.h
13534 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13535 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13536 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13538 utsrelease
=linux
/version.h
13540 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13542 utsrelease
=linux
/utsrelease.h
13544 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13546 utsrelease
=generated
/utsrelease.h
13550 if test "$utsrelease"; then :
13552 kernsrcver
=`(echo "#include <$utsrelease>";
13553 echo "kernsrcver=UTS_RELEASE") |
13554 cpp -I $kernelbuild/include |
13555 grep "^kernsrcver=" | cut -d \" -f 2`
13557 if test -z "$kernsrcver"; then :
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13560 $as_echo "Not found" >&6; }
13561 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13568 $as_echo "Not found" >&6; }
13569 if test "x$enable_linux_builtin" != xyes
; then
13570 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13573 *** Cannot find UTS_RELEASE definition.
13574 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13580 $as_echo "$kernsrcver" >&6; }
13583 LINUX_OBJ
=${kernelbuild}
13584 LINUX_VERSION
=${kernsrcver}
13591 modpost
=$LINUX/scripts
/Makefile.modpost
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13593 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13594 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13596 if grep -q Modules.symvers
$modpost; then :
13598 LINUX_SYMBOLS
=Modules.symvers
13602 LINUX_SYMBOLS
=Module.symvers
13606 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13609 *** Please make sure the kernel devel package for your distribution
13610 *** is installed. If you are building with a custom kernel, make sure the
13611 *** kernel is configured, built, and the '--with-linux=PATH' configure
13612 *** option refers to the location of the kernel source." "$LINENO" 5
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13622 $as_echo "$LINUX_SYMBOLS" >&6; }
13628 # Check whether --with-spl was given.
13629 if test "${with_spl+set}" = set; then :
13630 withval
=$with_spl; if test "$withval" = "yes"; then :
13631 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
13639 # Check whether --with-spl-obj was given.
13640 if test "${with_spl_obj+set}" = set; then :
13641 withval
=$with_spl_obj; splbuild
="$withval"
13646 # Check whether --with-spl-timeout was given.
13647 if test "${with_spl_timeout+set}" = set; then :
13648 withval
=$with_spl_timeout; timeout
="$withval"
13654 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13655 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13656 splsrc2
="/usr/local/src/spl-${VERSION}"
13657 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13658 splsrc4
="/usr/src/spl-${VERSION}"
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13663 $as_echo_n "checking spl source directory... " >&6; }
13664 if test -z "${splsrc}"; then :
13674 if test -e "${splsrc0}/spl.release.in"; then :
13678 elif test -e "${splsrc1}/spl.release.in"; then :
13682 elif test -e "${splsrc2}/spl.release.in"; then :
13686 elif test -e "${splsrc3}/spl.release.in"; then :
13688 splsrc
=$
(readlink
-f "${splsrc3}")
13690 elif test -e "${splsrc4}/spl.release.in" ; then :
13694 elif test -e "${splsrc5}/spl.release.in"; then :
13696 splsrc
=$
(readlink
-f "${splsrc5}")
13698 elif test -e "${splsrc6}/spl.release.in" ; then :
13710 all_spl_sources
="$withval",
13711 if test "$splsrc" = "NONE"; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13721 $as_echo "$splsrc" >&6; }
13722 if test ! -e "$splsrc/spl.release.in"; then :
13725 *** Please make sure the kmod spl devel package for your distribution
13726 *** is installed then try again. If that fails you can specify the
13727 *** location of the spl source with the '--with-spl=PATH' option.
13728 *** The spl version must match the version of ZFS you are building,
13729 *** ${VERSION}. Failed to find spl.release.in in the following:
13730 $all_spl_sources" "$LINENO" 5
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13735 $as_echo_n "checking spl build directory... " >&6; }
13737 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
13741 if test -z "$splbuild"; then :
13743 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13745 splbuild
="${splsrc}/${LINUX_VERSION}"
13747 elif test -e "${splsrc}/spl_config.h" ; then :
13749 splbuild
="${splsrc}"
13751 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13753 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13757 splbuild
="Not found"
13762 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13769 timeout
=$
((timeout-1
))
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13775 $as_echo "$splbuild" >&6; }
13776 if ! test -e "$splbuild/spl_config.h"; then :
13779 *** Please make sure the kmod spl devel <kernel> package for your
13780 *** distribution is installed then try again. If that fails you
13781 *** can specify the location of the spl objects with the
13782 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13783 *** any of the following:
13784 $all_spl_config_locs" "$LINENO" 5
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13789 $as_echo_n "checking spl source version... " >&6; }
13790 if test -r $splbuild/spl_config.h
&&
13791 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13794 splsrcver
=`(echo "#include <spl_config.h>";
13795 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13797 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13801 if test -z "$splsrcver"; then :
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13804 $as_echo "Not found" >&6; }
13806 *** Cannot determine the version of the spl source.
13807 *** Please prepare the spl source before running this script" "$LINENO" 5
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13812 $as_echo "$splsrcver" >&6; }
13815 SPL_OBJ
=${splbuild}
13816 SPL_VERSION
=${splsrcver}
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13823 $as_echo_n "checking spl file name for module symbols... " >&6; }
13827 if test -r $SPL_OBJ/Module.symvers
; then :
13829 SPL_SYMBOLS
=Module.symvers
13831 elif test -r $SPL_OBJ/Modules.symvers
; then :
13833 SPL_SYMBOLS
=Modules.symvers
13835 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13837 SPL_SYMBOLS
=Module.symvers
13839 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13841 SPL_SYMBOLS
=Modules.symvers
13845 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13852 timeout
=$
((timeout-1
))
13857 if test "$SPL_SYMBOLS" = NONE
; then :
13859 SPL_SYMBOLS
=$LINUX_SYMBOLS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13864 $as_echo "$SPL_SYMBOLS" >&6; }
13869 # Check whether --with-qat was given.
13870 if test "${with_qat+set}" = set; then :
13871 withval
=$with_qat; if test "$withval" = "yes"; then :
13872 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
13880 # Check whether --with-qat-obj was given.
13881 if test "${with_qat_obj+set}" = set; then :
13882 withval
=$with_qat_obj; qatbuild
="$withval"
13886 if test ! -z "${qatsrc}"; then :
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13889 $as_echo_n "checking qat source directory... " >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13891 $as_echo "$qatsrc" >&6; }
13892 QAT_SRC
="${qatsrc}/quickassist"
13893 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13896 *** Please make sure the qat driver package is installed
13897 *** and specify the location of the qat source with the
13898 *** '--with-qat=PATH' option then try again. Failed to
13900 ${QAT_SRC}/include" "$LINENO" 5
13906 if test ! -z "${qatsrc}"; then :
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13909 $as_echo_n "checking qat build directory... " >&6; }
13910 if test -z "$qatbuild"; then :
13912 qatbuild
="${qatsrc}/build"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13917 $as_echo "$qatbuild" >&6; }
13918 QAT_OBJ
=${qatbuild}
13919 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
13922 *** Please make sure the qat driver is installed then try again.
13923 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13924 $QAT_OBJ" "$LINENO" 5
13932 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13937 if test ! -z "${qatsrc}"; then :
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13940 $as_echo_n "checking qat file for module symbols... " >&6; }
13941 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
13943 if test -r $QAT_SYMBOLS; then :
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13946 $as_echo "$QAT_SYMBOLS" >&6; }
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" "$LINENO" 5
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13962 $as_echo_n "checking whether modules can be built... " >&6; }
13965 cat confdefs.h
- <<_ACEOF >conftest.c
13980 cat - <<_ACEOF >conftest.h
13985 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13986 echo "obj-m := conftest.o" >build
/Makefile
13988 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13989 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13991 (eval $ac_try) 2>&5
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; }; then :
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14002 $as_echo "yes" >&6; }
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 if test "x$enable_linux_builtin" != xyes
; then
14011 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14014 *** Unable to build an empty module.
14015 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14027 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14030 cat confdefs.h
- <<_ACEOF >conftest.c
14033 #undef __ASSEMBLY__
14034 #include <asm/frame.h>
14040 #if !defined(FRAME_BEGIN)
14052 cat - <<_ACEOF >conftest.h
14057 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14058 echo "obj-m := conftest.o" >build
/Makefile
14060 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14061 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14080 $as_echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.
$ac_ext >&5
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14094 if test "x$cross_compiling" != xyes
; then :
14096 if test "$cross_compiling" = yes; then :
14097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14099 as_fn_error $?
"cannot run test program while cross compiling
14100 See \`config.log' for more details" "$LINENO" 5; }
14102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14106 #include "$LINUX/include/linux/license.h"
14112 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14119 if ac_fn_c_try_run
"$LINENO"; then :
14122 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14135 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14138 cat confdefs.h
- <<_ACEOF >conftest.c
14141 #include <linux/module.h>
14147 #if (THREAD_SIZE < 16384)
14148 #error "THREAD_SIZE is less than 16K"
14159 cat - <<_ACEOF >conftest.h
14164 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14165 echo "obj-m := conftest.o" >build
/Makefile
14167 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14168 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14170 (eval $ac_try) 2>&5
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14175 (eval $ac_try) 2>&5
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; }; then :
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14183 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14187 $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.
$ac_ext >&5
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14203 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14206 cat confdefs.h
- <<_ACEOF >conftest.c
14209 #include <linux/module.h>
14215 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14216 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14227 cat - <<_ACEOF >conftest.h
14232 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14233 echo "obj-m := conftest.o" >build
/Makefile
14235 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14236 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14238 (eval $ac_try) 2>&5
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14243 (eval $ac_try) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; }; then :
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14252 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14253 tmp_flags
="$EXTRA_KCFLAGS"
14256 cat confdefs.h
- <<_ACEOF >conftest.c
14259 #include <linux/module.h>
14260 #include <linux/mutex.h>
14262 MODULE_LICENSE("$ZFS_META_LICENSE");
14272 mutex_unlock(&lock);
14282 cat - <<_ACEOF >conftest.h
14287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14288 echo "obj-m := conftest.o" >build
/Makefile
14290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14293 (eval $ac_try) 2>&5
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14298 (eval $ac_try) 2>&5
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; }; then :
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.
$ac_ext >&5
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14313 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14314 *** with the CDDL license and will prevent the module linking stage
14315 *** from succeeding. You must rebuild your kernel without this
14316 *** option enabled." "$LINENO" 5
14324 EXTRA_KCFLAGS
="$tmp_flags"
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.
$ac_ext >&5
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14345 tmp_flags
="$EXTRA_KCFLAGS"
14346 EXTRA_KCFLAGS
="-I\$(src)"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14349 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14352 cat confdefs.h
- <<_ACEOF >conftest.c
14355 #include <linux/module.h>
14356 MODULE_LICENSE(ZFS_META_LICENSE);
14358 #define CREATE_TRACE_POINTS
14359 #include "conftest.h"
14365 trace_zfs_autoconf_event_one(1UL);
14366 trace_zfs_autoconf_event_two(2UL);
14376 cat - <<_ACEOF >conftest.h
14378 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14379 #define _CONFTEST_H
14381 #undef TRACE_SYSTEM
14382 #define TRACE_SYSTEM zfs
14383 #include <linux/tracepoint.h>
14385 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14386 TP_PROTO(unsigned long i),
14389 __field(unsigned long, i)
14394 TP_printk("i = %lu", __entry->i)
14397 #define DEFINE_AUTOCONF_EVENT(name) \
14398 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14399 TP_PROTO(unsigned long i), \
14401 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14402 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14404 #endif /* _CONFTEST_H */
14406 #undef TRACE_INCLUDE_PATH
14407 #define TRACE_INCLUDE_PATH .
14408 #define TRACE_INCLUDE_FILE conftest
14409 #include <trace/define_trace.h>
14414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14415 echo "obj-m := conftest.o" >build
/Makefile
14417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14420 (eval $ac_try) 2>&5
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14425 (eval $ac_try) 2>&5
14427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428 test $ac_status = 0; }; }; then :
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 $as_echo "yes" >&6; }
14433 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.
$ac_ext >&5
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14449 EXTRA_KCFLAGS
="$tmp_flags"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14453 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14456 cat confdefs.h
- <<_ACEOF >conftest.c
14459 #include <linux/sched.h>
14465 current->bio_tail = (struct bio **) NULL;
14475 cat - <<_ACEOF >conftest.h
14480 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14481 echo "obj-m := conftest.o" >build
/Makefile
14483 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14484 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14491 (eval $ac_try) 2>&5
14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14494 test $ac_status = 0; }; }; then :
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14499 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.
$ac_ext >&5
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14509 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14512 cat confdefs.h
- <<_ACEOF >conftest.c
14515 #include <linux/sched.h>
14521 current->bio_list = (struct bio_list *) NULL;
14531 cat - <<_ACEOF >conftest.h
14536 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14537 echo "obj-m := conftest.o" >build
/Makefile
14539 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14540 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14542 (eval $ac_try) 2>&5
14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14547 (eval $ac_try) 2>&5
14549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14550 test $ac_status = 0; }; }; then :
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14555 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.
$ac_ext >&5
14562 as_fn_error $?
"no - Please file a bug report at
14563 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14581 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14584 cat confdefs.h
- <<_ACEOF >conftest.c
14587 #include <linux/fs.h>
14588 #include <linux/user_namespace.h>
14594 struct super_block super;
14595 super.s_user_ns = (struct user_namespace *)NULL;
14605 cat - <<_ACEOF >conftest.h
14610 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14611 echo "obj-m := conftest.o" >build
/Makefile
14613 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14614 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14616 (eval $ac_try) 2>&5
14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14621 (eval $ac_try) 2>&5
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; }; then :
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14629 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14648 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14651 cat confdefs.h
- <<_ACEOF >conftest.c
14654 #include <linux/bio.h>
14661 struct bio *bio = NULL;
14662 blk_qc = submit_bio(bio);
14672 cat - <<_ACEOF >conftest.h
14677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14678 echo "obj-m := conftest.o" >build
/Makefile
14680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14683 (eval $ac_try) 2>&5
14685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14688 (eval $ac_try) 2>&5
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }; }; then :
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14696 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.
$ac_ext >&5
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14715 $as_echo_n "checking block device operation prototypes... " >&6; }
14716 tmp_flags
="$EXTRA_KCFLAGS"
14717 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14720 cat confdefs.h
- <<_ACEOF >conftest.c
14723 #include <linux/blkdev.h>
14725 int blk_open(struct block_device *bdev, fmode_t mode)
14727 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14728 unsigned x, unsigned long y) { return 0; }
14729 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14730 unsigned x, unsigned long y) { return 0; }
14732 static const struct block_device_operations
14733 bops __attribute__ ((unused)) = {
14736 .ioctl = blk_ioctl,
14737 .compat_ioctl = blk_compat_ioctl,
14753 cat - <<_ACEOF >conftest.h
14758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14759 echo "obj-m := conftest.o" >build
/Makefile
14761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14764 (eval $ac_try) 2>&5
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14769 (eval $ac_try) 2>&5
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; }; }; then :
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14775 $as_echo "struct block_device" >&6; }
14777 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.
$ac_ext >&5
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14785 $as_echo "struct inode" >&6; }
14793 EXTRA_KCFLAGS
="$tmp_flags"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14797 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14798 tmp_flags
="$EXTRA_KCFLAGS"
14799 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14802 cat confdefs.h
- <<_ACEOF >conftest.c
14805 #include <linux/blkdev.h>
14807 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14809 static const struct block_device_operations
14810 bops __attribute__ ((unused)) = {
14812 .release = blk_release,
14814 .compat_ioctl = NULL,
14830 cat - <<_ACEOF >conftest.h
14835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14836 echo "obj-m := conftest.o" >build
/Makefile
14838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14841 (eval $ac_try) 2>&5
14843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14844 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14846 (eval $ac_try) 2>&5
14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }; }; then :
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14852 $as_echo "void" >&6; }
14854 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14862 $as_echo "int" >&6; }
14870 EXTRA_KCFLAGS
="$tmp_flags"
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14873 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14876 cat confdefs.h
- <<_ACEOF >conftest.c
14879 #include <linux/types.h>
14885 fmode_t *ptr __attribute__ ((unused));
14895 cat - <<_ACEOF >conftest.h
14900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14901 echo "obj-m := conftest.o" >build
/Makefile
14903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14904 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14906 (eval $ac_try) 2>&5
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14911 (eval $ac_try) 2>&5
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; }; then :
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14919 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.
$ac_ext >&5
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14938 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14941 cat confdefs.h
- <<_ACEOF >conftest.c
14944 #include <linux/fs.h>
14950 struct block_device *bdev = NULL;
14951 (void) blkdev_get(bdev, 0, NULL);
14961 cat - <<_ACEOF >conftest.h
14966 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14967 echo "obj-m := conftest.o" >build
/Makefile
14969 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14970 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14985 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.
$ac_ext >&5
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15003 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15007 cat confdefs.h
- <<_ACEOF >conftest.c
15010 #include <linux/fs.h>
15016 blkdev_get_by_path(NULL, 0, NULL);
15026 cat - <<_ACEOF >conftest.h
15031 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15032 echo "obj-m := conftest.o" >build
/Makefile
15034 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15035 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15037 (eval $ac_try) 2>&5
15039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15040 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15042 (eval $ac_try) 2>&5
15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; }; then :
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15057 if test $rc -ne 0; then :
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15063 if test "x$enable_linux_builtin" != xyes
; then
15065 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15068 if test $rc -ne 0; then
15070 for file in fs
/block_dev.c
; do
15071 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15072 "$LINUX/$file" 2>/dev
/null
15074 if test $rc -eq 0; then
15079 if test $export -eq 0; then :
15089 if test $rc -ne 0; then :
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 $as_echo "yes" >&6; }
15099 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15107 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15111 cat confdefs.h
- <<_ACEOF >conftest.c
15114 #include <linux/fs.h>
15120 open_bdev_exclusive(NULL, 0, NULL);
15130 cat - <<_ACEOF >conftest.h
15135 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15136 echo "obj-m := conftest.o" >build
/Makefile
15138 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15139 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15141 (eval $ac_try) 2>&5
15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15144 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15146 (eval $ac_try) 2>&5
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }; }; then :
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15161 if test $rc -ne 0; then :
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15167 if test "x$enable_linux_builtin" != xyes
; then
15169 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15170 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15172 if test $rc -ne 0; then
15174 for file in fs
/block_dev.c
; do
15175 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15176 "$LINUX/$file" 2>/dev
/null
15178 if test $rc -eq 0; then
15183 if test $export -eq 0; then :
15193 if test $rc -ne 0; then :
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15203 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15211 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15215 cat confdefs.h
- <<_ACEOF >conftest.c
15218 #include <linux/fs.h>
15234 cat - <<_ACEOF >conftest.h
15239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15240 echo "obj-m := conftest.o" >build
/Makefile
15242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15245 (eval $ac_try) 2>&5
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15250 (eval $ac_try) 2>&5
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; }; }; then :
15256 $as_echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.
$ac_ext >&5
15265 if test $rc -ne 0; then :
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15270 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15274 cat confdefs.h
- <<_ACEOF >conftest.c
15277 #include <linux/fs.h>
15283 lookup_bdev(NULL, FMODE_READ);
15293 cat - <<_ACEOF >conftest.h
15298 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15299 echo "obj-m := conftest.o" >build
/Makefile
15301 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15302 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15304 (eval $ac_try) 2>&5
15306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15309 (eval $ac_try) 2>&5
15311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 test $ac_status = 0; }; }; then :
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.
$ac_ext >&5
15324 if test $rc -ne 0; then :
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15330 if test "x$enable_linux_builtin" != xyes
; then
15332 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15333 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15335 if test $rc -ne 0; then
15337 for file in fs
/block_dev.c
; do
15338 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15339 "$LINUX/$file" 2>/dev
/null
15341 if test $rc -eq 0; then
15346 if test $export -eq 0; then :
15356 if test $rc -ne 0; then :
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 $as_echo "yes" >&6; }
15366 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15374 if test "x$enable_linux_builtin" != xyes
; then
15376 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15379 if test $rc -ne 0; then
15381 for file in fs
/block_dev.c
; do
15382 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15383 "$LINUX/$file" 2>/dev
/null
15385 if test $rc -eq 0; then
15390 if test $export -eq 0; then :
15400 if test $rc -ne 0; then :
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15405 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15409 cat confdefs.h
- <<_ACEOF >conftest.c
15412 #include <linux/fs.h>
15418 lookup_bdev(NULL, FMODE_READ);
15428 cat - <<_ACEOF >conftest.h
15433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15434 echo "obj-m := conftest.o" >build
/Makefile
15436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15437 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15439 (eval $ac_try) 2>&5
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15444 (eval $ac_try) 2>&5
15446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15447 test $ac_status = 0; }; }; then :
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.
$ac_ext >&5
15459 if test $rc -ne 0; then :
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15465 if test "x$enable_linux_builtin" != xyes
; then
15467 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15468 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15470 if test $rc -ne 0; then
15472 for file in fs
/block_dev.c
; do
15473 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15474 "$LINUX/$file" 2>/dev
/null
15476 if test $rc -eq 0; then
15481 if test $export -eq 0; then :
15491 if test $rc -ne 0; then :
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499 $as_echo "yes" >&6; }
15501 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15513 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15522 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15525 cat confdefs.h
- <<_ACEOF >conftest.c
15528 #include <linux/buffer_head.h>
15534 struct block_device *bdev = NULL;
15535 invalidate_bdev(bdev);
15545 cat - <<_ACEOF >conftest.h
15550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15551 echo "obj-m := conftest.o" >build
/Makefile
15553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15556 (eval $ac_try) 2>&5
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15561 (eval $ac_try) 2>&5
15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564 test $ac_status = 0; }; }; then :
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15569 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15573 $as_echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.
$ac_ext >&5
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15588 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15589 tmp_flags
="$EXTRA_KCFLAGS"
15590 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15593 cat confdefs.h
- <<_ACEOF >conftest.c
15596 #include <linux/blkdev.h>
15602 struct block_device *bdev = NULL;
15603 bdev_logical_block_size(bdev);
15613 cat - <<_ACEOF >conftest.h
15618 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15619 echo "obj-m := conftest.o" >build
/Makefile
15621 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15622 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15624 (eval $ac_try) 2>&5
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15629 (eval $ac_try) 2>&5
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; }; }; then :
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15635 $as_echo "yes" >&6; }
15637 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.
$ac_ext >&5
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15653 EXTRA_KCFLAGS
="$tmp_flags"
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15657 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15658 tmp_flags
="$EXTRA_KCFLAGS"
15659 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15662 cat confdefs.h
- <<_ACEOF >conftest.c
15665 #include <linux/blkdev.h>
15671 struct block_device *bdev = NULL;
15672 bdev_physical_block_size(bdev);
15682 cat - <<_ACEOF >conftest.h
15687 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15688 echo "obj-m := conftest.o" >build
/Makefile
15690 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15691 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15693 (eval $ac_try) 2>&5
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15698 (eval $ac_try) 2>&5
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; }; }; then :
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15704 $as_echo "yes" >&6; }
15706 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15710 $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.
$ac_ext >&5
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15722 EXTRA_KCFLAGS
="$tmp_flags"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15726 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15729 cat confdefs.h
- <<_ACEOF >conftest.c
15732 #include <linux/bio.h>
15739 bio.bi_iter.bi_sector = 0;
15749 cat - <<_ACEOF >conftest.h
15754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15755 echo "obj-m := conftest.o" >build
/Makefile
15757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15760 (eval $ac_try) 2>&5
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15765 (eval $ac_try) 2>&5
15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 test $ac_status = 0; }; }; then :
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15773 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15792 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15795 cat confdefs.h
- <<_ACEOF >conftest.c
15798 #include <linux/bio.h>
15804 int flags __attribute__ ((unused));
15805 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15806 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15807 (1 << BIO_RW_FAILFAST_DRIVER));
15817 cat - <<_ACEOF >conftest.h
15822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15823 echo "obj-m := conftest.o" >build
/Makefile
15825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15828 (eval $ac_try) 2>&5
15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15833 (eval $ac_try) 2>&5
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; }; then :
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15839 $as_echo "yes" >&6; }
15841 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15845 $as_echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.
$ac_ext >&5
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15860 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15863 cat confdefs.h
- <<_ACEOF >conftest.c
15866 #include <linux/bio.h>
15867 #include <linux/fs.h>
15873 struct block_device *bdev = NULL;
15874 struct bio *bio = NULL;
15875 bio_set_dev(bio, bdev);
15885 cat - <<_ACEOF >conftest.h
15890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15891 echo "obj-m := conftest.o" >build
/Makefile
15893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15896 (eval $ac_try) 2>&5
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15901 (eval $ac_try) 2>&5
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; }; then :
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15907 $as_echo "yes" >&6; }
15909 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15913 $as_echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.
$ac_ext >&5
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15928 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15931 cat confdefs.h
- <<_ACEOF >conftest.c
15934 #include <linux/bio.h>
15940 int flags __attribute__ ((unused));
15941 flags = REQ_FAILFAST_MASK;
15951 cat - <<_ACEOF >conftest.h
15956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15957 echo "obj-m := conftest.o" >build
/Makefile
15959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15962 (eval $ac_try) 2>&5
15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15967 (eval $ac_try) 2>&5
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; }; then :
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15975 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.
$ac_ext >&5
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15994 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15997 cat confdefs.h
- <<_ACEOF >conftest.c
16000 #include <linux/blk_types.h>
16006 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16016 cat - <<_ACEOF >conftest.h
16021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16022 echo "obj-m := conftest.o" >build
/Makefile
16024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16027 (eval $ac_try) 2>&5
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16032 (eval $ac_try) 2>&5
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; }; }; then :
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16040 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.
$ac_ext >&5
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16059 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16062 cat confdefs.h
- <<_ACEOF >conftest.c
16065 #include <linux/blk_types.h>
16071 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16081 cat - <<_ACEOF >conftest.h
16086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16087 echo "obj-m := conftest.o" >build
/Makefile
16089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16092 (eval $ac_try) 2>&5
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16097 (eval $ac_try) 2>&5
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }; }; then :
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16105 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.
$ac_ext >&5
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16124 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16127 cat confdefs.h
- <<_ACEOF >conftest.c
16130 #include <linux/blk_types.h>
16136 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16146 cat - <<_ACEOF >conftest.h
16151 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16152 echo "obj-m := conftest.o" >build
/Makefile
16154 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16155 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16157 (eval $ac_try) 2>&5
16159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16160 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16162 (eval $ac_try) 2>&5
16164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; }; then :
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16168 $as_echo "yes" >&6; }
16170 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16174 $as_echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.
$ac_ext >&5
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16189 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16192 cat confdefs.h
- <<_ACEOF >conftest.c
16195 #include <linux/bio.h>
16201 struct bio bio __attribute__ ((unused));
16212 cat - <<_ACEOF >conftest.h
16217 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16218 echo "obj-m := conftest.o" >build
/Makefile
16220 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16221 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16223 (eval $ac_try) 2>&5
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16228 (eval $ac_try) 2>&5
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; }; then :
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16236 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16255 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16258 cat confdefs.h
- <<_ACEOF >conftest.c
16261 #include <linux/bio.h>
16263 void wanted_end_io(struct bio *bio) { return; }
16265 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16280 cat - <<_ACEOF >conftest.h
16285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16286 echo "obj-m := conftest.o" >build
/Makefile
16288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16291 (eval $ac_try) 2>&5
16293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16296 (eval $ac_try) 2>&5
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; }; then :
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16304 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16323 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16326 cat confdefs.h
- <<_ACEOF >conftest.c
16329 #include <linux/bio.h>
16335 struct bio bio __attribute__ ((unused));
16336 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16338 bio.bi_status = status;
16348 cat - <<_ACEOF >conftest.h
16353 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16354 echo "obj-m := conftest.o" >build
/Makefile
16356 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16357 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16359 (eval $ac_try) 2>&5
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16364 (eval $ac_try) 2>&5
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; }; then :
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370 $as_echo "yes" >&6; }
16372 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16376 $as_echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.
$ac_ext >&5
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16391 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16394 cat confdefs.h
- <<_ACEOF >conftest.c
16397 #include <linux/bio.h>
16403 int flags __attribute__ ((unused));
16404 flags = BIO_RW_BARRIER;
16414 cat - <<_ACEOF >conftest.h
16419 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16420 echo "obj-m := conftest.o" >build
/Makefile
16422 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16423 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16425 (eval $ac_try) 2>&5
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16430 (eval $ac_try) 2>&5
16432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16433 test $ac_status = 0; }; }; then :
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16436 $as_echo "yes" >&6; }
16438 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16457 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16460 cat confdefs.h
- <<_ACEOF >conftest.c
16463 #include <linux/bio.h>
16469 int flags __attribute__ ((unused));
16470 flags = BIO_RW_DISCARD;
16480 cat - <<_ACEOF >conftest.h
16485 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16486 echo "obj-m := conftest.o" >build
/Makefile
16488 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16489 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16491 (eval $ac_try) 2>&5
16493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16494 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16496 (eval $ac_try) 2>&5
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }; }; then :
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16502 $as_echo "yes" >&6; }
16504 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.
$ac_ext >&5
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16523 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16526 cat confdefs.h
- <<_ACEOF >conftest.c
16529 #include <linux/blkdev.h>
16535 struct request_queue q;
16536 struct backing_dev_info bdi;
16537 q.backing_dev_info = &bdi;
16547 cat - <<_ACEOF >conftest.h
16552 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16553 echo "obj-m := conftest.o" >build
/Makefile
16555 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16556 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16558 (eval $ac_try) 2>&5
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16563 (eval $ac_try) 2>&5
16565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16566 test $ac_status = 0; }; }; then :
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569 $as_echo "yes" >&6; }
16571 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.
$ac_ext >&5
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16590 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16591 tmp_flags
="$EXTRA_KCFLAGS"
16592 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16595 cat confdefs.h
- <<_ACEOF >conftest.c
16598 #include <linux/blkdev.h>
16604 struct request_queue *q = NULL;
16605 (void) blk_queue_flush(q, REQ_FLUSH);
16615 cat - <<_ACEOF >conftest.h
16620 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16621 echo "obj-m := conftest.o" >build
/Makefile
16623 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16624 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16626 (eval $ac_try) 2>&5
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16631 (eval $ac_try) 2>&5
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; }; }; then :
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16639 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16643 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16646 cat confdefs.h
- <<_ACEOF >conftest.c
16649 #include <linux/module.h>
16650 #include <linux/blkdev.h>
16652 MODULE_LICENSE("$ZFS_META_LICENSE");
16658 struct request_queue *q = NULL;
16659 (void) blk_queue_flush(q, REQ_FLUSH);
16669 cat - <<_ACEOF >conftest.h
16674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16675 echo "obj-m := conftest.o" >build
/Makefile
16677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16680 (eval $ac_try) 2>&5
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16685 (eval $ac_try) 2>&5
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }; }; then :
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16694 $as_echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.
$ac_ext >&5
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16700 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.
$ac_ext >&5
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16725 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16728 cat confdefs.h
- <<_ACEOF >conftest.c
16731 #include <linux/kernel.h>
16732 #include <linux/blkdev.h>
16739 struct request_queue *q = NULL;
16740 blk_queue_write_cache(q, true, true);
16750 cat - <<_ACEOF >conftest.h
16755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16756 echo "obj-m := conftest.o" >build
/Makefile
16758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16759 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16774 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16778 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16781 cat confdefs.h
- <<_ACEOF >conftest.c
16784 #include <linux/kernel.h>
16785 #include <linux/module.h>
16786 #include <linux/blkdev.h>
16788 MODULE_LICENSE("$ZFS_META_LICENSE");
16794 struct request_queue *q = NULL;
16795 blk_queue_write_cache(q, true, true);
16805 cat - <<_ACEOF >conftest.h
16810 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16811 echo "obj-m := conftest.o" >build
/Makefile
16813 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16814 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16816 (eval $ac_try) 2>&5
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16821 (eval $ac_try) 2>&5
16823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824 test $ac_status = 0; }; }; then :
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16830 $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.
$ac_ext >&5
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16836 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16860 EXTRA_KCFLAGS
="$tmp_flags"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16864 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16865 tmp_flags
="$EXTRA_KCFLAGS"
16866 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16869 cat confdefs.h
- <<_ACEOF >conftest.c
16872 #include <linux/blkdev.h>
16878 struct request_queue *q = NULL;
16879 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16889 cat - <<_ACEOF >conftest.h
16894 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16895 echo "obj-m := conftest.o" >build
/Makefile
16897 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16898 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16900 (eval $ac_try) 2>&5
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16905 (eval $ac_try) 2>&5
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; }; then :
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 $as_echo "yes" >&6; }
16913 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16917 $as_echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.
$ac_ext >&5
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
16929 EXTRA_KCFLAGS
="$tmp_flags"
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16933 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16934 tmp_flags
="$EXTRA_KCFLAGS"
16935 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16938 cat confdefs.h
- <<_ACEOF >conftest.c
16941 #include <linux/blkdev.h>
16947 struct request_queue *q = NULL;
16948 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16958 cat - <<_ACEOF >conftest.h
16963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16964 echo "obj-m := conftest.o" >build
/Makefile
16966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16969 (eval $ac_try) 2>&5
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16974 (eval $ac_try) 2>&5
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16977 test $ac_status = 0; }; }; then :
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16980 $as_echo "yes" >&6; }
16982 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.
$ac_ext >&5
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 $as_echo "no" >&6; }
16998 EXTRA_KCFLAGS
="$tmp_flags"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
17002 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17003 tmp_flags
="$EXTRA_KCFLAGS"
17004 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17007 cat confdefs.h
- <<_ACEOF >conftest.c
17010 #include <linux/blkdev.h>
17016 extern enum bio_rw_flags rw;
17018 rw = BIO_RW_UNPLUG;
17028 cat - <<_ACEOF >conftest.h
17033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17034 echo "obj-m := conftest.o" >build
/Makefile
17036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17037 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17039 (eval $ac_try) 2>&5
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17044 (eval $ac_try) 2>&5
17046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17047 test $ac_status = 0; }; }; then :
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17050 $as_echo "yes" >&6; }
17052 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.
$ac_ext >&5
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17068 EXTRA_KCFLAGS
="$tmp_flags"
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17072 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17073 tmp_flags
="$EXTRA_KCFLAGS"
17074 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17077 cat confdefs.h
- <<_ACEOF >conftest.c
17080 #include <linux/blkdev.h>
17086 struct blk_plug plug;
17088 blk_start_plug(&plug);
17089 blk_finish_plug(&plug);
17099 cat - <<_ACEOF >conftest.h
17104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17105 echo "obj-m := conftest.o" >build
/Makefile
17107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17115 (eval $ac_try) 2>&5
17117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17118 test $ac_status = 0; }; }; then :
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17123 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.
$ac_ext >&5
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17139 EXTRA_KCFLAGS
="$tmp_flags"
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17143 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17144 tmp_flags
="$EXTRA_KCFLAGS"
17145 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17148 cat confdefs.h
- <<_ACEOF >conftest.c
17151 #include <linux/blkdev.h>
17157 struct gendisk *disk = NULL;
17158 (void) get_disk_ro(disk);
17168 cat - <<_ACEOF >conftest.h
17173 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17174 echo "obj-m := conftest.o" >build
/Makefile
17176 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17177 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17179 (eval $ac_try) 2>&5
17181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17182 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17184 (eval $ac_try) 2>&5
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; }; then :
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190 $as_echo "yes" >&6; }
17192 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17196 $as_echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.
$ac_ext >&5
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17208 EXTRA_KCFLAGS
="$tmp_flags"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17211 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17215 cat confdefs.h
- <<_ACEOF >conftest.c
17218 #include <linux/genhd.h>
17224 get_gendisk(0, NULL);
17234 cat - <<_ACEOF >conftest.h
17239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17240 echo "obj-m := conftest.o" >build
/Makefile
17242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17245 (eval $ac_try) 2>&5
17247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17250 (eval $ac_try) 2>&5
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; }; then :
17256 $as_echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.
$ac_ext >&5
17265 if test $rc -ne 0; then :
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17271 if test "x$enable_linux_builtin" != xyes
; then
17273 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17276 if test $rc -ne 0; then
17278 for file in block
/genhd.c
; do
17279 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17280 "$LINUX/$file" 2>/dev
/null
17282 if test $rc -eq 0; then
17287 if test $export -eq 0; then :
17297 if test $rc -ne 0; then :
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305 $as_echo "yes" >&6; }
17307 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17316 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17319 cat confdefs.h
- <<_ACEOF >conftest.c
17322 #include <linux/bio.h>
17328 struct bio *bio __attribute__ ((unused)) = NULL;
17330 bio_set_op_attrs(bio, 0, 0);
17340 cat - <<_ACEOF >conftest.h
17345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17346 echo "obj-m := conftest.o" >build
/Makefile
17348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17349 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17351 (eval $ac_try) 2>&5
17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17356 (eval $ac_try) 2>&5
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; }; }; then :
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17364 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.
$ac_ext >&5
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17383 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17386 cat confdefs.h
- <<_ACEOF >conftest.c
17389 #include <linux/fs.h>
17395 int i __attribute__ ((unused));
17397 i = generic_readlink(NULL, NULL, 0);
17407 cat - <<_ACEOF >conftest.h
17412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17413 echo "obj-m := conftest.o" >build
/Makefile
17415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17416 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17418 (eval $ac_try) 2>&5
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17423 (eval $ac_try) 2>&5
17425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426 test $ac_status = 0; }; }; then :
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17429 $as_echo "yes" >&6; }
17431 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17435 $as_echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.
$ac_ext >&5
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17439 $as_echo "no" >&6; }
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17450 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17453 cat confdefs.h
- <<_ACEOF >conftest.c
17456 #include <linux/blkdev.h>
17462 struct queue_limits ql __attribute__ ((unused));
17464 ql.discard_granularity = 0;
17474 cat - <<_ACEOF >conftest.h
17479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17480 echo "obj-m := conftest.o" >build
/Makefile
17482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17485 (eval $ac_try) 2>&5
17487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17490 (eval $ac_try) 2>&5
17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17493 test $ac_status = 0; }; }; then :
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17498 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.
$ac_ext >&5
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17517 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17520 cat confdefs.h
- <<_ACEOF >conftest.c
17523 #include <linux/fs.h>
17524 #include <linux/xattr.h>
17526 const struct xattr_handler xattr_test_handler = {
17532 const struct xattr_handler *xattr_handlers[] = {
17533 &xattr_test_handler,
17536 const struct super_block sb __attribute__ ((unused)) = {
17537 .s_xattr = xattr_handlers,
17553 cat - <<_ACEOF >conftest.h
17558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17559 echo "obj-m := conftest.o" >build
/Makefile
17561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17564 (eval $ac_try) 2>&5
17566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17569 (eval $ac_try) 2>&5
17571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17572 test $ac_status = 0; }; }; then :
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17577 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.
$ac_ext >&5
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17596 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17599 cat confdefs.h
- <<_ACEOF >conftest.c
17602 #include <linux/xattr.h>
17604 static const struct xattr_handler
17605 xops __attribute__ ((unused)) = {
17606 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17622 cat - <<_ACEOF >conftest.h
17627 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17628 echo "obj-m := conftest.o" >build
/Makefile
17630 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17631 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17633 (eval $ac_try) 2>&5
17635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17636 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; }; then :
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17644 $as_echo "yes" >&6; }
17646 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17650 $as_echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.
$ac_ext >&5
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17665 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17668 cat confdefs.h
- <<_ACEOF >conftest.c
17671 #include <linux/xattr.h>
17673 int get(const struct xattr_handler *handler,
17674 struct dentry *dentry, struct inode *inode,
17675 const char *name, void *buffer, size_t size) { return 0; }
17676 static const struct xattr_handler
17677 xops __attribute__ ((unused)) = {
17694 cat - <<_ACEOF >conftest.h
17699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17700 echo "obj-m := conftest.o" >build
/Makefile
17702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17710 (eval $ac_try) 2>&5
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }; }; then :
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716 $as_echo "yes" >&6; }
17718 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17722 $as_echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.
$ac_ext >&5
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 $as_echo "no" >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17728 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17731 cat confdefs.h
- <<_ACEOF >conftest.c
17734 #include <linux/xattr.h>
17736 int get(const struct xattr_handler *handler,
17737 struct dentry *dentry, const char *name,
17738 void *buffer, size_t size) { return 0; }
17739 static const struct xattr_handler
17740 xops __attribute__ ((unused)) = {
17757 cat - <<_ACEOF >conftest.h
17762 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17763 echo "obj-m := conftest.o" >build
/Makefile
17765 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17766 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17768 (eval $ac_try) 2>&5
17770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17773 (eval $ac_try) 2>&5
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; }; then :
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17781 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.
$ac_ext >&5
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17791 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17794 cat confdefs.h
- <<_ACEOF >conftest.c
17797 #include <linux/xattr.h>
17799 int get(struct dentry *dentry, const char *name,
17800 void *buffer, size_t size, int handler_flags)
17802 static const struct xattr_handler
17803 xops __attribute__ ((unused)) = {
17820 cat - <<_ACEOF >conftest.h
17825 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17826 echo "obj-m := conftest.o" >build
/Makefile
17828 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17829 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17831 (eval $ac_try) 2>&5
17833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17834 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17836 (eval $ac_try) 2>&5
17838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839 test $ac_status = 0; }; }; then :
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17842 $as_echo "yes" >&6; }
17844 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17848 $as_echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17854 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17857 cat confdefs.h
- <<_ACEOF >conftest.c
17860 #include <linux/xattr.h>
17862 int get(struct inode *ip, const char *name,
17863 void *buffer, size_t size) { return 0; }
17864 static const struct xattr_handler
17865 xops __attribute__ ((unused)) = {
17882 cat - <<_ACEOF >conftest.h
17887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17888 echo "obj-m := conftest.o" >build
/Makefile
17890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17893 (eval $ac_try) 2>&5
17895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17898 (eval $ac_try) 2>&5
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; }; }; then :
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17904 $as_echo "yes" >&6; }
17906 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.
$ac_ext >&5
17913 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17945 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17948 cat confdefs.h
- <<_ACEOF >conftest.c
17951 #include <linux/xattr.h>
17953 int set(const struct xattr_handler *handler,
17954 struct dentry *dentry, struct inode *inode,
17955 const char *name, const void *buffer,
17956 size_t size, int flags)
17958 static const struct xattr_handler
17959 xops __attribute__ ((unused)) = {
17976 cat - <<_ACEOF >conftest.h
17981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17982 echo "obj-m := conftest.o" >build
/Makefile
17984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17985 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17987 (eval $ac_try) 2>&5
17989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17992 (eval $ac_try) 2>&5
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; }; then :
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
18000 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18004 $as_echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.
$ac_ext >&5
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18010 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18013 cat confdefs.h
- <<_ACEOF >conftest.c
18016 #include <linux/xattr.h>
18018 int set(const struct xattr_handler *handler,
18019 struct dentry *dentry, const char *name,
18020 const void *buffer, size_t size, int flags)
18022 static const struct xattr_handler
18023 xops __attribute__ ((unused)) = {
18040 cat - <<_ACEOF >conftest.h
18045 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18046 echo "obj-m := conftest.o" >build
/Makefile
18048 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18049 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18051 (eval $ac_try) 2>&5
18053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18054 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18056 (eval $ac_try) 2>&5
18058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18059 test $ac_status = 0; }; }; then :
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18064 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18068 $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.
$ac_ext >&5
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18074 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18077 cat confdefs.h
- <<_ACEOF >conftest.c
18080 #include <linux/xattr.h>
18082 int set(struct dentry *dentry, const char *name,
18083 const void *buffer, size_t size, int flags,
18084 int handler_flags) { return 0; }
18085 static const struct xattr_handler
18086 xops __attribute__ ((unused)) = {
18103 cat - <<_ACEOF >conftest.h
18108 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18109 echo "obj-m := conftest.o" >build
/Makefile
18111 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18112 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18114 (eval $ac_try) 2>&5
18116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18119 (eval $ac_try) 2>&5
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; }; }; then :
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18125 $as_echo "yes" >&6; }
18127 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18131 $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.
$ac_ext >&5
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18137 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18140 cat confdefs.h
- <<_ACEOF >conftest.c
18143 #include <linux/xattr.h>
18145 int set(struct inode *ip, const char *name,
18146 const void *buffer, size_t size, int flags)
18148 static const struct xattr_handler
18149 xops __attribute__ ((unused)) = {
18166 cat - <<_ACEOF >conftest.h
18171 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18172 echo "obj-m := conftest.o" >build
/Makefile
18174 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18175 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18177 (eval $ac_try) 2>&5
18179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18180 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18182 (eval $ac_try) 2>&5
18184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185 test $ac_status = 0; }; }; then :
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188 $as_echo "yes" >&6; }
18190 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18194 $as_echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.
$ac_ext >&5
18197 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18229 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18232 cat confdefs.h
- <<_ACEOF >conftest.c
18235 #include <linux/xattr.h>
18237 bool list(struct dentry *dentry) { return 0; }
18238 static const struct xattr_handler
18239 xops __attribute__ ((unused)) = {
18256 cat - <<_ACEOF >conftest.h
18261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18262 echo "obj-m := conftest.o" >build
/Makefile
18264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18267 (eval $ac_try) 2>&5
18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18272 (eval $ac_try) 2>&5
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; }; }; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18280 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18284 $as_echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.
$ac_ext >&5
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288 $as_echo "no" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18290 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18293 cat confdefs.h
- <<_ACEOF >conftest.c
18296 #include <linux/xattr.h>
18298 size_t list(const struct xattr_handler *handler,
18299 struct dentry *dentry, char *list, size_t list_size,
18300 const char *name, size_t name_len) { return 0; }
18301 static const struct xattr_handler
18302 xops __attribute__ ((unused)) = {
18319 cat - <<_ACEOF >conftest.h
18324 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18325 echo "obj-m := conftest.o" >build
/Makefile
18327 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18328 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18330 (eval $ac_try) 2>&5
18332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18333 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18335 (eval $ac_try) 2>&5
18337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18338 test $ac_status = 0; }; }; then :
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18343 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.
$ac_ext >&5
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18353 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18356 cat confdefs.h
- <<_ACEOF >conftest.c
18359 #include <linux/xattr.h>
18361 size_t list(struct dentry *dentry,
18362 char *list, size_t list_size,
18363 const char *name, size_t name_len,
18364 int handler_flags) { return 0; }
18365 static const struct xattr_handler
18366 xops __attribute__ ((unused)) = {
18383 cat - <<_ACEOF >conftest.h
18388 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18389 echo "obj-m := conftest.o" >build
/Makefile
18391 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18392 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18394 (eval $ac_try) 2>&5
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18399 (eval $ac_try) 2>&5
18401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18402 test $ac_status = 0; }; }; then :
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18405 $as_echo "yes" >&6; }
18407 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18417 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18420 cat confdefs.h
- <<_ACEOF >conftest.c
18423 #include <linux/xattr.h>
18425 size_t list(struct inode *ip, char *lst,
18426 size_t list_size, const char *name,
18427 size_t name_len) { return 0; }
18428 static const struct xattr_handler
18429 xops __attribute__ ((unused)) = {
18446 cat - <<_ACEOF >conftest.h
18451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18452 echo "obj-m := conftest.o" >build
/Makefile
18454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18455 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18457 (eval $ac_try) 2>&5
18459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18462 (eval $ac_try) 2>&5
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; }; }; then :
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18468 $as_echo "yes" >&6; }
18470 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.
$ac_ext >&5
18477 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18509 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18512 cat confdefs.h
- <<_ACEOF >conftest.c
18515 #include <linux/fs.h>
18521 struct inode *ip = NULL;
18522 (void) inode_owner_or_capable(ip);
18532 cat - <<_ACEOF >conftest.h
18537 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18538 echo "obj-m := conftest.o" >build
/Makefile
18540 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18541 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18543 (eval $ac_try) 2>&5
18545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18548 (eval $ac_try) 2>&5
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }; }; then :
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18556 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.
$ac_ext >&5
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18566 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18569 cat confdefs.h
- <<_ACEOF >conftest.c
18572 #include <linux/fs.h>
18573 #include <linux/sched.h>
18579 struct inode *ip = NULL;
18580 (void) is_owner_or_cap(ip);
18590 cat - <<_ACEOF >conftest.h
18595 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18596 echo "obj-m := conftest.o" >build
/Makefile
18598 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18599 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18606 (eval $ac_try) 2>&5
18608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609 test $ac_status = 0; }; }; then :
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18612 $as_echo "yes" >&6; }
18614 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.
$ac_ext >&5
18621 as_fn_error $?
"no - Please file a bug report at
18622 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18640 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18643 cat confdefs.h
- <<_ACEOF >conftest.c
18646 #include <linux/cred.h>
18647 #include <linux/fs.h>
18648 #include <linux/posix_acl_xattr.h>
18654 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18664 cat - <<_ACEOF >conftest.h
18669 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18670 echo "obj-m := conftest.o" >build
/Makefile
18672 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18673 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18675 (eval $ac_try) 2>&5
18677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18678 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18680 (eval $ac_try) 2>&5
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; }; }; then :
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18688 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18692 $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.
$ac_ext >&5
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18707 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18710 cat confdefs.h
- <<_ACEOF >conftest.c
18713 #include <linux/cred.h>
18714 #include <linux/fs.h>
18715 #include <linux/posix_acl.h>
18721 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18722 posix_acl_release(tmp);
18732 cat - <<_ACEOF >conftest.h
18737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18738 echo "obj-m := conftest.o" >build
/Makefile
18740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18743 (eval $ac_try) 2>&5
18745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18748 (eval $ac_try) 2>&5
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; }; then :
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18756 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18760 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18763 cat confdefs.h
- <<_ACEOF >conftest.c
18766 #include <linux/module.h>
18767 #include <linux/cred.h>
18768 #include <linux/fs.h>
18769 #include <linux/posix_acl.h>
18771 MODULE_LICENSE("$ZFS_META_LICENSE");
18777 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18778 posix_acl_release(tmp);
18788 cat - <<_ACEOF >conftest.h
18793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18794 echo "obj-m := conftest.o" >build
/Makefile
18796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18799 (eval $ac_try) 2>&5
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18804 (eval $ac_try) 2>&5
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; }; then :
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18819 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.
$ac_ext >&5
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18845 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18848 cat confdefs.h
- <<_ACEOF >conftest.c
18851 #include <linux/module.h>
18852 #include <linux/cred.h>
18853 #include <linux/fs.h>
18854 #include <linux/posix_acl.h>
18856 MODULE_LICENSE("$ZFS_META_LICENSE");
18862 struct inode *ip = NULL;
18863 struct posix_acl *acl = posix_acl_alloc(1, 0);
18864 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18865 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18875 cat - <<_ACEOF >conftest.h
18880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18881 echo "obj-m := conftest.o" >build
/Makefile
18883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18886 (eval $ac_try) 2>&5
18888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18891 (eval $ac_try) 2>&5
18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894 test $ac_status = 0; }; }; then :
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18897 $as_echo "yes" >&6; }
18899 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18903 $as_echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.
$ac_ext >&5
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18918 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18921 cat confdefs.h
- <<_ACEOF >conftest.c
18924 #include <linux/fs.h>
18925 #include <linux/posix_acl.h>
18931 posix_acl_chmod(NULL, 0, 0)
18941 cat - <<_ACEOF >conftest.h
18946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18947 echo "obj-m := conftest.o" >build
/Makefile
18949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18957 (eval $ac_try) 2>&5
18959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18960 test $ac_status = 0; }; }; then :
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18963 $as_echo "yes" >&6; }
18965 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18983 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18986 cat confdefs.h
- <<_ACEOF >conftest.c
18989 #include <linux/fs.h>
18990 #include <linux/posix_acl.h>
18996 __posix_acl_chmod(NULL, 0, 0)
19006 cat - <<_ACEOF >conftest.h
19011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19012 echo "obj-m := conftest.o" >build
/Makefile
19014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19015 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19017 (eval $ac_try) 2>&5
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19022 (eval $ac_try) 2>&5
19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; }; }; then :
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19030 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.
$ac_ext >&5
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19038 $as_echo "no" >&6; }
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19049 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19052 cat confdefs.h
- <<_ACEOF >conftest.c
19055 #include <linux/fs.h>
19056 #include <linux/posix_acl.h>
19063 posix_acl_equiv_mode(NULL,&tmp);
19073 cat - <<_ACEOF >conftest.h
19078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19079 echo "obj-m := conftest.o" >build
/Makefile
19081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19082 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19084 (eval $ac_try) 2>&5
19086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19087 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19089 (eval $ac_try) 2>&5
19091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19092 test $ac_status = 0; }; }; then :
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19095 $as_echo "yes" >&6; }
19097 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.
$ac_ext >&5
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19116 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19119 cat confdefs.h
- <<_ACEOF >conftest.c
19122 #include <linux/fs.h>
19123 #include <linux/posix_acl.h>
19129 struct user_namespace *user_ns = NULL;
19130 const struct posix_acl *acl = NULL;
19133 error = posix_acl_valid(user_ns, acl);
19143 cat - <<_ACEOF >conftest.h
19148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19149 echo "obj-m := conftest.o" >build
/Makefile
19151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19154 (eval $ac_try) 2>&5
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19159 (eval $ac_try) 2>&5
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; }; then :
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19167 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.
$ac_ext >&5
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19186 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19189 cat confdefs.h
- <<_ACEOF >conftest.c
19192 #include <linux/fs.h>
19194 int permission_fn(struct inode *inode, int mask) { return 0; }
19196 static const struct inode_operations
19197 iops __attribute__ ((unused)) = {
19198 .permission = permission_fn,
19214 cat - <<_ACEOF >conftest.h
19219 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19220 echo "obj-m := conftest.o" >build
/Makefile
19222 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19223 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19225 (eval $ac_try) 2>&5
19227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19230 (eval $ac_try) 2>&5
19232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19233 test $ac_status = 0; }; }; then :
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 $as_echo "yes" >&6; }
19238 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.
$ac_ext >&5
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19257 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19260 cat confdefs.h
- <<_ACEOF >conftest.c
19263 #include <linux/fs.h>
19265 int permission_fn(struct inode *inode, int mask,
19266 struct nameidata *nd) { return 0; }
19268 static const struct inode_operations
19269 iops __attribute__ ((unused)) = {
19270 .permission = permission_fn,
19286 cat - <<_ACEOF >conftest.h
19291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19292 echo "obj-m := conftest.o" >build
/Makefile
19294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19295 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19297 (eval $ac_try) 2>&5
19299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19300 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19302 (eval $ac_try) 2>&5
19304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19305 test $ac_status = 0; }; }; then :
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19310 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19313 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.
$ac_ext >&5
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19332 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19335 cat confdefs.h
- <<_ACEOF >conftest.c
19338 #include <linux/fs.h>
19340 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19342 static const struct inode_operations
19343 iops __attribute__ ((unused)) = {
19344 .check_acl = check_acl_fn,
19360 cat - <<_ACEOF >conftest.h
19365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19366 echo "obj-m := conftest.o" >build
/Makefile
19368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19371 (eval $ac_try) 2>&5
19373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19376 (eval $ac_try) 2>&5
19378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19379 test $ac_status = 0; }; }; then :
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 $as_echo "yes" >&6; }
19384 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.
$ac_ext >&5
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19403 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19406 cat confdefs.h
- <<_ACEOF >conftest.c
19409 #include <linux/fs.h>
19411 int check_acl_fn(struct inode *inode, int mask,
19412 unsigned int flags) { return 0; }
19414 static const struct inode_operations
19415 iops __attribute__ ((unused)) = {
19416 .check_acl = check_acl_fn,
19432 cat - <<_ACEOF >conftest.h
19437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19438 echo "obj-m := conftest.o" >build
/Makefile
19440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19441 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19443 (eval $ac_try) 2>&5
19445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19448 (eval $ac_try) 2>&5
19450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451 test $ac_status = 0; }; }; then :
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19456 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19459 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19463 $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.
$ac_ext >&5
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19478 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19481 cat confdefs.h
- <<_ACEOF >conftest.c
19484 #include <linux/fs.h>
19486 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19489 static const struct inode_operations
19490 iops __attribute__ ((unused)) = {
19491 .get_acl = get_acl_fn,
19507 cat - <<_ACEOF >conftest.h
19512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19513 echo "obj-m := conftest.o" >build
/Makefile
19515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19518 (eval $ac_try) 2>&5
19520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523 (eval $ac_try) 2>&5
19525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19526 test $ac_status = 0; }; }; then :
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19531 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.
$ac_ext >&5
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19550 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19553 cat confdefs.h
- <<_ACEOF >conftest.c
19556 #include <linux/fs.h>
19558 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19561 static const struct inode_operations
19562 iops __attribute__ ((unused)) = {
19563 .set_acl = set_acl_fn,
19579 cat - <<_ACEOF >conftest.h
19584 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19585 echo "obj-m := conftest.o" >build
/Makefile
19587 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19588 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19590 (eval $ac_try) 2>&5
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19595 (eval $ac_try) 2>&5
19597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19598 test $ac_status = 0; }; }; then :
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601 $as_echo "yes" >&6; }
19603 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19607 $as_echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.
$ac_ext >&5
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19623 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19626 cat confdefs.h
- <<_ACEOF >conftest.c
19629 #include <linux/fs.h>
19632 const struct path *p, struct kstat *k,
19633 u32 request_mask, unsigned int query_flags)
19636 static const struct inode_operations
19637 iops __attribute__ ((unused)) = {
19638 .getattr = test_getattr,
19654 cat - <<_ACEOF >conftest.h
19659 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19660 echo "obj-m := conftest.o" >build
/Makefile
19662 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19663 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19665 (eval $ac_try) 2>&5
19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19670 (eval $ac_try) 2>&5
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; }; then :
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19676 $as_echo "yes" >&6; }
19678 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19682 $as_echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19697 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19700 cat confdefs.h
- <<_ACEOF >conftest.c
19703 #include <linux/fs.h>
19706 struct vfsmount *mnt, struct dentry *d,
19710 static const struct inode_operations
19711 iops __attribute__ ((unused)) = {
19712 .getattr = test_getattr,
19728 cat - <<_ACEOF >conftest.h
19733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19734 echo "obj-m := conftest.o" >build
/Makefile
19736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19739 (eval $ac_try) 2>&5
19741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19744 (eval $ac_try) 2>&5
19746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19747 test $ac_status = 0; }; }; then :
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19750 $as_echo "yes" >&6; }
19752 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.
$ac_ext >&5
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19772 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19775 cat confdefs.h
- <<_ACEOF >conftest.c
19778 #include <linux/fs.h>
19784 struct inode inode;
19785 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19795 cat - <<_ACEOF >conftest.h
19800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19801 echo "obj-m := conftest.o" >build
/Makefile
19803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19806 (eval $ac_try) 2>&5
19808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19811 (eval $ac_try) 2>&5
19813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19814 test $ac_status = 0; }; }; then :
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19819 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.
$ac_ext >&5
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19838 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19841 cat confdefs.h
- <<_ACEOF >conftest.c
19844 #include <linux/fs.h>
19850 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19860 cat - <<_ACEOF >conftest.h
19865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19866 echo "obj-m := conftest.o" >build
/Makefile
19868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19871 (eval $ac_try) 2>&5
19873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19874 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19876 (eval $ac_try) 2>&5
19878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19879 test $ac_status = 0; }; }; then :
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19882 $as_echo "yes" >&6; }
19884 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.
$ac_ext >&5
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892 $as_echo "no" >&6; }
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19903 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19907 cat confdefs.h
- <<_ACEOF >conftest.c
19910 #include <linux/fs.h>
19912 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19913 static struct super_operations sops __attribute__ ((unused)) = {
19914 .show_options = show_options,
19930 cat - <<_ACEOF >conftest.h
19935 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19936 echo "obj-m := conftest.o" >build
/Makefile
19938 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19939 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19941 (eval $ac_try) 2>&5
19943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19946 (eval $ac_try) 2>&5
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; }; }; then :
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19952 $as_echo "yes" >&6; }
19954 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.
$ac_ext >&5
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19973 $as_echo_n "checking whether file_inode() is available... " >&6; }
19976 cat confdefs.h
- <<_ACEOF >conftest.c
19979 #include <linux/fs.h>
19985 struct file *f = NULL;
19996 cat - <<_ACEOF >conftest.h
20001 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20002 echo "obj-m := conftest.o" >build
/Makefile
20004 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20005 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20007 (eval $ac_try) 2>&5
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20012 (eval $ac_try) 2>&5
20014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015 test $ac_status = 0; }; }; then :
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018 $as_echo "yes" >&6; }
20020 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.
$ac_ext >&5
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20039 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20042 cat confdefs.h
- <<_ACEOF >conftest.c
20045 #include <linux/fs.h>
20051 struct file *f = NULL;
20062 cat - <<_ACEOF >conftest.h
20067 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20068 echo "obj-m := conftest.o" >build
/Makefile
20070 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20071 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20073 (eval $ac_try) 2>&5
20075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20076 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20078 (eval $ac_try) 2>&5
20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20081 test $ac_status = 0; }; }; then :
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20086 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.
$ac_ext >&5
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20105 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20109 cat confdefs.h
- <<_ACEOF >conftest.c
20112 #include <linux/fs.h>
20114 int test_fsync(struct file *f, struct dentry *dentry, int x)
20117 static const struct file_operations
20118 fops __attribute__ ((unused)) = {
20119 .fsync = test_fsync,
20135 cat - <<_ACEOF >conftest.h
20140 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20141 echo "obj-m := conftest.o" >build
/Makefile
20143 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20144 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20146 (eval $ac_try) 2>&5
20148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20151 (eval $ac_try) 2>&5
20153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154 test $ac_status = 0; }; }; then :
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20157 $as_echo "dentry" >&6; }
20159 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20163 $as_echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.
$ac_ext >&5
20177 cat confdefs.h
- <<_ACEOF >conftest.c
20180 #include <linux/fs.h>
20182 int test_fsync(struct file *f, int x) { return 0; }
20184 static const struct file_operations
20185 fops __attribute__ ((unused)) = {
20186 .fsync = test_fsync,
20202 cat - <<_ACEOF >conftest.h
20207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20208 echo "obj-m := conftest.o" >build
/Makefile
20210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20213 (eval $ac_try) 2>&5
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20218 (eval $ac_try) 2>&5
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; }; then :
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20224 $as_echo "no dentry" >&6; }
20226 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20230 $as_echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.
$ac_ext >&5
20244 cat confdefs.h
- <<_ACEOF >conftest.c
20247 #include <linux/fs.h>
20249 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20252 static const struct file_operations
20253 fops __attribute__ ((unused)) = {
20254 .fsync = test_fsync,
20270 cat - <<_ACEOF >conftest.h
20275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20276 echo "obj-m := conftest.o" >build
/Makefile
20278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20281 (eval $ac_try) 2>&5
20283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20286 (eval $ac_try) 2>&5
20288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289 test $ac_status = 0; }; }; then :
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20292 $as_echo "range" >&6; }
20294 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.
$ac_ext >&5
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20312 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20315 cat confdefs.h
- <<_ACEOF >conftest.c
20318 #include <linux/fs.h>
20319 void evict_inode (struct inode * t) { return; }
20320 static struct super_operations sops __attribute__ ((unused)) = {
20321 .evict_inode = evict_inode,
20337 cat - <<_ACEOF >conftest.h
20342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20343 echo "obj-m := conftest.o" >build
/Makefile
20345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20348 (eval $ac_try) 2>&5
20350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20353 (eval $ac_try) 2>&5
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; }; then :
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20361 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20365 $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.
$ac_ext >&5
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20369 $as_echo "no" >&6; }
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20380 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20383 cat confdefs.h
- <<_ACEOF >conftest.c
20386 #include <linux/fs.h>
20388 void dirty_inode(struct inode *a, int b) { return; }
20390 static const struct super_operations
20391 sops __attribute__ ((unused)) = {
20392 .dirty_inode = dirty_inode,
20408 cat - <<_ACEOF >conftest.h
20413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20414 echo "obj-m := conftest.o" >build
/Makefile
20416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20419 (eval $ac_try) 2>&5
20421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20424 (eval $ac_try) 2>&5
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }; }; then :
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430 $as_echo "yes" >&6; }
20432 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.
$ac_ext >&5
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20451 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20454 cat confdefs.h
- <<_ACEOF >conftest.c
20457 #include <linux/fs.h>
20459 int nr_cached_objects(struct super_block *sb) { return 0; }
20461 static const struct super_operations
20462 sops __attribute__ ((unused)) = {
20463 .nr_cached_objects = nr_cached_objects,
20479 cat - <<_ACEOF >conftest.h
20484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20485 echo "obj-m := conftest.o" >build
/Makefile
20487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20490 (eval $ac_try) 2>&5
20492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20495 (eval $ac_try) 2>&5
20497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20498 test $ac_status = 0; }; }; then :
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501 $as_echo "yes" >&6; }
20503 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20507 $as_echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.
$ac_ext >&5
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 $as_echo "no" >&6; }
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20522 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20525 cat confdefs.h
- <<_ACEOF >conftest.c
20528 #include <linux/fs.h>
20530 void free_cached_objects(struct super_block *sb, int x)
20533 static const struct super_operations
20534 sops __attribute__ ((unused)) = {
20535 .free_cached_objects = free_cached_objects,
20551 cat - <<_ACEOF >conftest.h
20556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20557 echo "obj-m := conftest.o" >build
/Makefile
20559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20562 (eval $ac_try) 2>&5
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20567 (eval $ac_try) 2>&5
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; }; }; then :
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 $as_echo "yes" >&6; }
20575 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.
$ac_ext >&5
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20583 $as_echo "no" >&6; }
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20598 cat confdefs.h
- <<_ACEOF >conftest.c
20601 #include <linux/fs.h>
20603 long test_fallocate(struct file *file, int mode,
20604 loff_t offset, loff_t len) { return 0; }
20606 static const struct file_operations
20607 fops __attribute__ ((unused)) = {
20608 .fallocate = test_fallocate,
20624 cat - <<_ACEOF >conftest.h
20629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20630 echo "obj-m := conftest.o" >build
/Makefile
20632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20635 (eval $ac_try) 2>&5
20637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20640 (eval $ac_try) 2>&5
20642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643 test $ac_status = 0; }; }; then :
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20646 $as_echo "yes" >&6; }
20648 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.
$ac_ext >&5
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20667 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20670 cat confdefs.h
- <<_ACEOF >conftest.c
20673 #include <linux/fs.h>
20675 long test_fallocate(struct inode *inode, int mode,
20676 loff_t offset, loff_t len) { return 0; }
20678 static const struct inode_operations
20679 fops __attribute__ ((unused)) = {
20680 .fallocate = test_fallocate,
20696 cat - <<_ACEOF >conftest.h
20701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20702 echo "obj-m := conftest.o" >build
/Makefile
20704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20705 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20707 (eval $ac_try) 2>&5
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20712 (eval $ac_try) 2>&5
20714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20715 test $ac_status = 0; }; }; then :
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20718 $as_echo "yes" >&6; }
20720 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.
$ac_ext >&5
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728 $as_echo "no" >&6; }
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20740 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20743 cat confdefs.h
- <<_ACEOF >conftest.c
20746 #include <linux/fs.h>
20748 static const struct file_operations
20749 fops __attribute__ ((unused)) = {
20766 cat - <<_ACEOF >conftest.h
20771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20772 echo "obj-m := conftest.o" >build
/Makefile
20774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20782 (eval $ac_try) 2>&5
20784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20785 test $ac_status = 0; }; }; then :
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20788 $as_echo "yes" >&6; }
20790 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.
$ac_ext >&5
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798 $as_echo "no" >&6; }
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20809 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20812 cat confdefs.h
- <<_ACEOF >conftest.c
20815 #include <linux/fs.h>
20817 int mkdir(struct inode *inode, struct dentry *dentry,
20818 umode_t umode) { return 0; }
20820 static const struct inode_operations
20821 iops __attribute__ ((unused)) = {
20838 cat - <<_ACEOF >conftest.h
20843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20844 echo "obj-m := conftest.o" >build
/Makefile
20846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20847 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860 $as_echo "yes" >&6; }
20862 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.
$ac_ext >&5
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20881 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20884 cat confdefs.h
- <<_ACEOF >conftest.c
20887 #include <linux/fs.h>
20889 struct dentry *inode_lookup(struct inode *inode,
20890 struct dentry *dentry, struct nameidata *nidata)
20893 static const struct inode_operations iops
20894 __attribute__ ((unused)) = {
20895 .lookup = inode_lookup,
20911 cat - <<_ACEOF >conftest.h
20916 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20917 echo "obj-m := conftest.o" >build
/Makefile
20919 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20920 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20922 (eval $ac_try) 2>&5
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20927 (eval $ac_try) 2>&5
20929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20930 test $ac_status = 0; }; }; then :
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933 $as_echo "yes" >&6; }
20935 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20939 $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.
$ac_ext >&5
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20954 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20957 cat confdefs.h
- <<_ACEOF >conftest.c
20960 #include <linux/fs.h>
20962 #ifdef HAVE_MKDIR_UMODE_T
20963 int inode_create(struct inode *inode ,struct dentry *dentry,
20964 umode_t umode, struct nameidata *nidata) { return 0; }
20966 int inode_create(struct inode *inode,struct dentry *dentry,
20967 int umode, struct nameidata * nidata) { return 0; }
20970 static const struct inode_operations
20971 iops __attribute__ ((unused)) = {
20972 .create = inode_create,
20988 cat - <<_ACEOF >conftest.h
20993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20994 echo "obj-m := conftest.o" >build
/Makefile
20996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21004 (eval $ac_try) 2>&5
21006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007 test $ac_status = 0; }; }; then :
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21010 $as_echo "yes" >&6; }
21012 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21016 $as_echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.
$ac_ext >&5
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21031 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21034 cat confdefs.h
- <<_ACEOF >conftest.c
21037 #include <linux/fs.h>
21038 const char *get_link(struct dentry *de, struct inode *ip,
21039 struct delayed_call *done) { return "symlink"; }
21040 static struct inode_operations
21041 iops __attribute__ ((unused)) = {
21042 .get_link = get_link,
21058 cat - <<_ACEOF >conftest.h
21063 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21064 echo "obj-m := conftest.o" >build
/Makefile
21066 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21067 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21069 (eval $ac_try) 2>&5
21071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21072 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }; then :
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21080 $as_echo "yes" >&6; }
21082 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21086 $as_echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.
$ac_ext >&5
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090 $as_echo "no" >&6; }
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21092 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21095 cat confdefs.h
- <<_ACEOF >conftest.c
21098 #include <linux/fs.h>
21099 const char *get_link(struct dentry *de, struct
21100 inode *ip, void **cookie) { return "symlink"; }
21101 static struct inode_operations
21102 iops __attribute__ ((unused)) = {
21103 .get_link = get_link,
21119 cat - <<_ACEOF >conftest.h
21124 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21125 echo "obj-m := conftest.o" >build
/Makefile
21127 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21128 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21130 (eval $ac_try) 2>&5
21132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then :
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21141 $as_echo "yes" >&6; }
21143 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.
$ac_ext >&5
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21154 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21157 cat confdefs.h
- <<_ACEOF >conftest.c
21160 #include <linux/fs.h>
21161 const char *follow_link(struct dentry *de,
21162 void **cookie) { return "symlink"; }
21163 static struct inode_operations
21164 iops __attribute__ ((unused)) = {
21165 .follow_link = follow_link,
21181 cat - <<_ACEOF >conftest.h
21186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21187 echo "obj-m := conftest.o" >build
/Makefile
21189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21192 (eval $ac_try) 2>&5
21194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21197 (eval $ac_try) 2>&5
21199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21200 test $ac_status = 0; }; }; then :
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21205 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.
$ac_ext >&5
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21215 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21218 cat confdefs.h
- <<_ACEOF >conftest.c
21221 #include <linux/fs.h>
21222 void *follow_link(struct dentry *de, struct
21223 nameidata *nd) { return (void *)NULL; }
21224 static struct inode_operations
21225 iops __attribute__ ((unused)) = {
21226 .follow_link = follow_link,
21242 cat - <<_ACEOF >conftest.h
21247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21248 echo "obj-m := conftest.o" >build
/Makefile
21250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21258 (eval $ac_try) 2>&5
21260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21261 test $ac_status = 0; }; }; then :
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21264 $as_echo "yes" >&6; }
21266 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.
$ac_ext >&5
21273 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21307 cat confdefs.h
- <<_ACEOF >conftest.c
21310 #if !defined(HAVE_GET_LINK_DELAYED)
21311 #error "Expecting get_link() delayed done"
21327 cat - <<_ACEOF >conftest.h
21332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21333 echo "obj-m := conftest.o" >build
/Makefile
21335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21336 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21338 (eval $ac_try) 2>&5
21340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21341 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }; then :
21349 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21353 $as_echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.
$ac_ext >&5
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21357 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21360 cat confdefs.h
- <<_ACEOF >conftest.c
21363 #include <linux/fs.h>
21364 void put_link(struct inode *ip, void *cookie)
21366 static struct inode_operations
21367 iops __attribute__ ((unused)) = {
21368 .put_link = put_link,
21384 cat - <<_ACEOF >conftest.h
21389 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21390 echo "obj-m := conftest.o" >build
/Makefile
21392 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21393 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21395 (eval $ac_try) 2>&5
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21400 (eval $ac_try) 2>&5
21402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403 test $ac_status = 0; }; }; then :
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21406 $as_echo "yes" >&6; }
21408 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21412 $as_echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.
$ac_ext >&5
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21418 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21421 cat confdefs.h
- <<_ACEOF >conftest.c
21424 #include <linux/fs.h>
21425 void put_link(struct dentry *de, struct
21426 nameidata *nd, void *ptr) { return; }
21427 static struct inode_operations
21428 iops __attribute__ ((unused)) = {
21429 .put_link = put_link,
21445 cat - <<_ACEOF >conftest.h
21450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21451 echo "obj-m := conftest.o" >build
/Makefile
21453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }; then :
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467 $as_echo "yes" >&6; }
21469 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.
$ac_ext >&5
21476 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21501 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21504 cat confdefs.h
- <<_ACEOF >conftest.c
21507 #include <linux/fs.h>
21508 int tmpfile(struct inode *inode, struct dentry *dentry,
21509 umode_t mode) { return 0; }
21510 static struct inode_operations
21511 iops __attribute__ ((unused)) = {
21512 .tmpfile = tmpfile,
21528 cat - <<_ACEOF >conftest.h
21533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21534 echo "obj-m := conftest.o" >build
/Makefile
21536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21539 (eval $ac_try) 2>&5
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21544 (eval $ac_try) 2>&5
21546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21547 test $ac_status = 0; }; }; then :
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21552 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.
$ac_ext >&5
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21571 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21574 cat confdefs.h
- <<_ACEOF >conftest.c
21577 #include <linux/fs.h>
21578 void truncate_range(struct inode *inode, loff_t start,
21579 loff_t end) { return; }
21580 static struct inode_operations iops __attribute__ ((unused)) = {
21581 .truncate_range = truncate_range,
21597 cat - <<_ACEOF >conftest.h
21602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21603 echo "obj-m := conftest.o" >build
/Makefile
21605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21608 (eval $ac_try) 2>&5
21610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }; then :
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21619 $as_echo "yes" >&6; }
21621 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21625 $as_echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.
$ac_ext >&5
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21629 $as_echo "no" >&6; }
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21640 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21643 cat confdefs.h
- <<_ACEOF >conftest.c
21646 #include <linux/dcache.h>
21647 struct vfsmount *d_automount(struct path *p) { return NULL; }
21648 struct dentry_operations dops __attribute__ ((unused)) = {
21649 .d_automount = d_automount,
21665 cat - <<_ACEOF >conftest.h
21670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21671 echo "obj-m := conftest.o" >build
/Makefile
21673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21676 (eval $ac_try) 2>&5
21678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21681 (eval $ac_try) 2>&5
21683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21684 test $ac_status = 0; }; }; then :
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21687 $as_echo "yes" >&6; }
21689 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.
$ac_ext >&5
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21708 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21711 cat confdefs.h
- <<_ACEOF >conftest.c
21714 #include <linux/exportfs.h>
21715 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21716 struct inode *parent) { return 0; }
21717 static struct export_operations eops __attribute__ ((unused))={
21718 .encode_fh = encode_fh,
21734 cat - <<_ACEOF >conftest.h
21739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21740 echo "obj-m := conftest.o" >build
/Makefile
21742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21750 (eval $ac_try) 2>&5
21752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21753 test $ac_status = 0; }; }; then :
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21756 $as_echo "yes" >&6; }
21758 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.
$ac_ext >&5
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21777 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21780 cat confdefs.h
- <<_ACEOF >conftest.c
21783 #include <linux/exportfs.h>
21784 int commit_metadata(struct inode *inode) { return 0; }
21785 static struct export_operations eops __attribute__ ((unused))={
21786 .commit_metadata = commit_metadata,
21802 cat - <<_ACEOF >conftest.h
21807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21808 echo "obj-m := conftest.o" >build
/Makefile
21810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21813 (eval $ac_try) 2>&5
21815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21818 (eval $ac_try) 2>&5
21820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21821 test $ac_status = 0; }; }; then :
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21826 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.
$ac_ext >&5
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21844 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21848 cat confdefs.h
- <<_ACEOF >conftest.c
21851 #include <linux/fs.h>
21867 cat - <<_ACEOF >conftest.h
21872 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21873 echo "obj-m := conftest.o" >build
/Makefile
21875 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21876 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21883 (eval $ac_try) 2>&5
21885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886 test $ac_status = 0; }; }; then :
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.
$ac_ext >&5
21898 if test $rc -ne 0; then :
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21904 if test "x$enable_linux_builtin" != xyes
; then
21906 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21907 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21909 if test $rc -ne 0; then
21911 for file in fs
/inode.c
; do
21912 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21913 "$LINUX/$file" 2>/dev
/null
21915 if test $rc -eq 0; then
21920 if test $export -eq 0; then :
21930 if test $rc -ne 0; then :
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21940 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21948 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21952 cat confdefs.h
- <<_ACEOF >conftest.c
21955 #include <linux/fs.h>
21961 struct dentry *dentry = NULL;
21962 struct iattr *attr = NULL;
21965 error = setattr_prepare(dentry, attr);
21975 cat - <<_ACEOF >conftest.h
21980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21981 echo "obj-m := conftest.o" >build
/Makefile
21983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }; then :
21997 $as_echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.
$ac_ext >&5
22006 if test $rc -ne 0; then :
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22012 if test "x$enable_linux_builtin" != xyes
; then
22014 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22015 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22017 if test $rc -ne 0; then
22019 for file in fs
/attr.c
; do
22020 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22021 "$LINUX/$file" 2>/dev
/null
22023 if test $rc -eq 0; then
22028 if test $export -eq 0; then :
22038 if test $rc -ne 0; then :
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046 $as_echo "yes" >&6; }
22048 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22056 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22060 cat confdefs.h
- <<_ACEOF >conftest.c
22063 #include <linux/fs.h>
22069 insert_inode_locked(NULL);
22079 cat - <<_ACEOF >conftest.h
22084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22085 echo "obj-m := conftest.o" >build
/Makefile
22087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22090 (eval $ac_try) 2>&5
22092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }; then :
22101 $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.
$ac_ext >&5
22110 if test $rc -ne 0; then :
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22116 if test "x$enable_linux_builtin" != xyes
; then
22118 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22119 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22121 if test $rc -ne 0; then
22123 for file in fs
/inode.c
; do
22124 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22125 "$LINUX/$file" 2>/dev
/null
22127 if test $rc -eq 0; then
22132 if test $export -eq 0; then :
22142 if test $rc -ne 0; then :
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22145 $as_echo "no" >&6; }
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22150 $as_echo "yes" >&6; }
22152 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22160 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22164 cat confdefs.h
- <<_ACEOF >conftest.c
22167 #include <linux/dcache.h>
22183 cat - <<_ACEOF >conftest.h
22188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22189 echo "obj-m := conftest.o" >build
/Makefile
22191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22199 (eval $ac_try) 2>&5
22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22202 test $ac_status = 0; }; }; then :
22205 $as_echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.
$ac_ext >&5
22214 if test $rc -ne 0; then :
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 $as_echo "no" >&6; }
22220 if test "x$enable_linux_builtin" != xyes
; then
22222 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22223 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22225 if test $rc -ne 0; then
22227 for file in fs
/dcache.c
; do
22228 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22229 "$LINUX/$file" 2>/dev
/null
22231 if test $rc -eq 0; then
22236 if test $export -eq 0; then :
22246 if test $rc -ne 0; then :
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249 $as_echo "no" >&6; }
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22254 $as_echo "yes" >&6; }
22256 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22264 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22268 cat confdefs.h
- <<_ACEOF >conftest.c
22271 #include <linux/dcache.h>
22277 d_obtain_alias(NULL);
22287 cat - <<_ACEOF >conftest.h
22292 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22293 echo "obj-m := conftest.o" >build
/Makefile
22295 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22296 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22298 (eval $ac_try) 2>&5
22300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22301 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22303 (eval $ac_try) 2>&5
22305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22306 test $ac_status = 0; }; }; then :
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.
$ac_ext >&5
22318 if test $rc -ne 0; then :
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22321 $as_echo "no" >&6; }
22324 if test "x$enable_linux_builtin" != xyes
; then
22326 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22329 if test $rc -ne 0; then
22331 for file in fs
/dcache.c
; do
22332 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22333 "$LINUX/$file" 2>/dev
/null
22335 if test $rc -eq 0; then
22340 if test $export -eq 0; then :
22350 if test $rc -ne 0; then :
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 $as_echo "no" >&6; }
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358 $as_echo "yes" >&6; }
22360 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22368 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22372 cat confdefs.h
- <<_ACEOF >conftest.c
22375 #include <linux/dcache.h>
22381 struct inode *ip = NULL;
22382 d_prune_aliases(ip);
22392 cat - <<_ACEOF >conftest.h
22397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22398 echo "obj-m := conftest.o" >build
/Makefile
22400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22408 (eval $ac_try) 2>&5
22410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22411 test $ac_status = 0; }; }; then :
22414 $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.
$ac_ext >&5
22423 if test $rc -ne 0; then :
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22429 if test "x$enable_linux_builtin" != xyes
; then
22431 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22434 if test $rc -ne 0; then
22436 for file in fs
/dcache.c
; do
22437 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22438 "$LINUX/$file" 2>/dev
/null
22440 if test $rc -eq 0; then
22445 if test $export -eq 0; then :
22455 if test $rc -ne 0; then :
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22465 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22473 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22477 cat confdefs.h
- <<_ACEOF >conftest.c
22480 #include <linux/dcache.h>
22486 d_set_d_op(NULL, NULL);
22496 cat - <<_ACEOF >conftest.h
22501 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22502 echo "obj-m := conftest.o" >build
/Makefile
22504 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22505 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22507 (eval $ac_try) 2>&5
22509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22510 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512 (eval $ac_try) 2>&5
22514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515 test $ac_status = 0; }; }; then :
22518 $as_echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.
$ac_ext >&5
22527 if test $rc -ne 0; then :
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22533 if test "x$enable_linux_builtin" != xyes
; then
22535 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22538 if test $rc -ne 0; then
22540 for file in fs
/dcache.c
; do
22541 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22542 "$LINUX/$file" 2>/dev
/null
22544 if test $rc -eq 0; then
22549 if test $export -eq 0; then :
22559 if test $rc -ne 0; then :
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22567 $as_echo "yes" >&6; }
22569 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22578 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22581 cat confdefs.h
- <<_ACEOF >conftest.c
22584 #include <linux/dcache.h>
22586 int revalidate (struct dentry *dentry,
22587 struct nameidata *nidata) { return 0; }
22589 static const struct dentry_operations
22590 dops __attribute__ ((unused)) = {
22591 .d_revalidate = revalidate,
22607 cat - <<_ACEOF >conftest.h
22612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22613 echo "obj-m := conftest.o" >build
/Makefile
22615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22616 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }; then :
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22629 $as_echo "yes" >&6; }
22631 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22635 $as_echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.
$ac_ext >&5
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22650 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22653 cat confdefs.h
- <<_ACEOF >conftest.c
22656 #include <linux/dcache.h>
22658 const struct dentry_operations test_d_op = {
22659 .d_revalidate = NULL,
22666 struct dentry d __attribute__ ((unused));
22668 d.d_op = &test_d_op;
22678 cat - <<_ACEOF >conftest.h
22683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22684 echo "obj-m := conftest.o" >build
/Makefile
22686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22694 (eval $ac_try) 2>&5
22696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22697 test $ac_status = 0; }; }; then :
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22700 $as_echo "yes" >&6; }
22702 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22706 $as_echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.
$ac_ext >&5
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22710 $as_echo "no" >&6; }
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22720 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22724 cat confdefs.h
- <<_ACEOF >conftest.c
22727 #include <linux/mm.h>
22733 truncate_setsize(NULL, 0);
22743 cat - <<_ACEOF >conftest.h
22748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22749 echo "obj-m := conftest.o" >build
/Makefile
22751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }; then :
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.
$ac_ext >&5
22774 if test $rc -ne 0; then :
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22780 if test "x$enable_linux_builtin" != xyes
; then
22782 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22783 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22785 if test $rc -ne 0; then
22787 for file in mm
/truncate.c
; do
22788 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22789 "$LINUX/$file" 2>/dev
/null
22791 if test $rc -eq 0; then
22796 if test $export -eq 0; then :
22806 if test $rc -ne 0; then :
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814 $as_echo "yes" >&6; }
22816 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22825 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22828 cat confdefs.h
- <<_ACEOF >conftest.c
22831 #include <linux/security.h>
22837 struct inode *ip __attribute__ ((unused)) = NULL;
22838 struct inode *dip __attribute__ ((unused)) = NULL;
22839 const struct qstr *str __attribute__ ((unused)) = NULL;
22840 char *name __attribute__ ((unused)) = NULL;
22841 void *value __attribute__ ((unused)) = NULL;
22842 size_t len __attribute__ ((unused)) = 0;
22844 security_inode_init_security(ip, dip, str, &name, &value, &len);
22854 cat - <<_ACEOF >conftest.h
22859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22860 echo "obj-m := conftest.o" >build
/Makefile
22862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }; then :
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22876 $as_echo "yes" >&6; }
22878 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.
$ac_ext >&5
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22897 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22900 cat confdefs.h
- <<_ACEOF >conftest.c
22903 #include <linux/security.h>
22909 struct inode *ip __attribute__ ((unused)) = NULL;
22910 struct inode *dip __attribute__ ((unused)) = NULL;
22911 const struct qstr *str __attribute__ ((unused)) = NULL;
22912 initxattrs func __attribute__ ((unused)) = NULL;
22914 security_inode_init_security(ip, dip, str, func, NULL);
22924 cat - <<_ACEOF >conftest.h
22929 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22930 echo "obj-m := conftest.o" >build
/Makefile
22932 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22933 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }; then :
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22946 $as_echo "yes" >&6; }
22948 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22952 $as_echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.
$ac_ext >&5
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fst->mount() exists" >&5
22967 $as_echo_n "checking whether fst->mount() exists... " >&6; }
22970 cat confdefs.h
- <<_ACEOF >conftest.c
22973 #include <linux/fs.h>
22975 static struct dentry *
22976 mount(struct file_system_type *fs_type, int flags,
22977 const char *osname, void *data) {
22978 struct dentry *d = NULL;
22982 static struct file_system_type fst __attribute__ ((unused)) = {
22999 cat - <<_ACEOF >conftest.h
23004 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23005 echo "obj-m := conftest.o" >build
/Makefile
23007 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23008 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23010 (eval $ac_try) 2>&5
23012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23013 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23015 (eval $ac_try) 2>&5
23017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23018 test $ac_status = 0; }; }; then :
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23021 $as_echo "yes" >&6; }
23023 $as_echo "#define HAVE_FST_MOUNT 1" >>confdefs.h
23027 $as_echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.
$ac_ext >&5
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 $as_echo "no" >&6; }
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23042 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23045 cat confdefs.h
- <<_ACEOF >conftest.c
23048 #include <linux/fs.h>
23050 int shrink(struct shrinker *s, struct shrink_control *sc)
23053 static const struct super_block
23054 sb __attribute__ ((unused)) = {
23055 .s_shrink.shrink = shrink,
23056 .s_shrink.seeks = DEFAULT_SEEKS,
23057 .s_shrink.batch = 0,
23073 cat - <<_ACEOF >conftest.h
23078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23079 echo "obj-m := conftest.o" >build
/Makefile
23081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23082 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23084 (eval $ac_try) 2>&5
23086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23087 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }; then :
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23095 $as_echo "yes" >&6; }
23097 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23102 $as_echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.
$ac_ext >&5
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23106 $as_echo "no" >&6; }
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23117 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23120 cat confdefs.h
- <<_ACEOF >conftest.c
23123 #include <linux/fs.h>
23129 struct shrink_control sc __attribute__ ((unused));
23130 unsigned long scnidsize __attribute__ ((unused)) =
23141 cat - <<_ACEOF >conftest.h
23146 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23147 echo "obj-m := conftest.o" >build
/Makefile
23149 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23150 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }; then :
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 $as_echo "yes" >&6; }
23165 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23169 $as_echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.
$ac_ext >&5
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23173 $as_echo "no" >&6; }
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23184 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23187 cat confdefs.h
- <<_ACEOF >conftest.c
23190 #include <linux/fs.h>
23196 struct super_block sb __attribute__ ((unused));
23198 INIT_LIST_HEAD(&sb.s_instances);
23208 cat - <<_ACEOF >conftest.h
23213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23214 echo "obj-m := conftest.o" >build
/Makefile
23216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23217 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }; then :
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230 $as_echo "yes" >&6; }
23232 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23236 $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.
$ac_ext >&5
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23240 $as_echo "no" >&6; }
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23250 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23253 cat confdefs.h
- <<_ACEOF >conftest.c
23256 #include <linux/fs.h>
23262 struct super_block sb __attribute__ ((unused));
23273 cat - <<_ACEOF >conftest.h
23278 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23279 echo "obj-m := conftest.o" >build
/Makefile
23281 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23282 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23284 (eval $ac_try) 2>&5
23286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23287 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23289 (eval $ac_try) 2>&5
23291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23292 test $ac_status = 0; }; }; then :
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23295 $as_echo "yes" >&6; }
23297 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23301 $as_echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.
$ac_ext >&5
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23305 $as_echo "no" >&6; }
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23316 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23320 cat confdefs.h
- <<_ACEOF >conftest.c
23323 #include <linux/fs.h>
23324 struct super_block sb;
23330 char *name = "bdi";
23331 atomic_long_t zfs_bdi_seq;
23332 int error __attribute__((unused)) =
23333 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
23343 cat - <<_ACEOF >conftest.h
23348 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23349 echo "obj-m := conftest.o" >build
/Makefile
23351 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23352 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23354 (eval $ac_try) 2>&5
23356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23357 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23359 (eval $ac_try) 2>&5
23361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23362 test $ac_status = 0; }; }; then :
23365 $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.
$ac_ext >&5
23374 if test $rc -ne 0; then :
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377 $as_echo "no" >&6; }
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23379 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23383 cat confdefs.h
- <<_ACEOF >conftest.c
23386 #include <linux/backing-dev.h>
23387 struct backing_dev_info bdi;
23393 char *name = "bdi";
23394 int error __attribute__((unused)) =
23395 bdi_setup_and_register(&bdi, name);
23405 cat - <<_ACEOF >conftest.h
23410 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23411 echo "obj-m := conftest.o" >build
/Makefile
23413 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23414 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23416 (eval $ac_try) 2>&5
23418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23419 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }; then :
23427 $as_echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.
$ac_ext >&5
23436 if test $rc -ne 0; then :
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23439 $as_echo "no" >&6; }
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23441 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23445 cat confdefs.h
- <<_ACEOF >conftest.c
23448 #include <linux/backing-dev.h>
23449 struct backing_dev_info bdi;
23455 char *name = "bdi";
23456 unsigned int cap = BDI_CAP_MAP_COPY;
23457 int error __attribute__((unused)) =
23458 bdi_setup_and_register(&bdi, name, cap);
23468 cat - <<_ACEOF >conftest.h
23473 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23474 echo "obj-m := conftest.o" >build
/Makefile
23476 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23477 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23479 (eval $ac_try) 2>&5
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23484 (eval $ac_try) 2>&5
23486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487 test $ac_status = 0; }; }; then :
23490 $as_echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.
$ac_ext >&5
23499 if test $rc -ne 0; then :
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 $as_echo "no" >&6; }
23505 if test "x$enable_linux_builtin" != xyes
; then
23507 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23508 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23510 if test $rc -ne 0; then
23512 for file in mm
/backing-dev.c
; do
23513 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23514 "$LINUX/$file" 2>/dev
/null
23516 if test $rc -eq 0; then
23521 if test $export -eq 0; then :
23531 if test $rc -ne 0; then :
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23534 $as_echo "no" >&6; }
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23539 $as_echo "yes" >&6; }
23541 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23549 if test "x$enable_linux_builtin" != xyes
; then
23551 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23552 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23554 if test $rc -ne 0; then
23556 for file in mm
/backing-dev.c
; do
23557 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23558 "$LINUX/$file" 2>/dev
/null
23560 if test $rc -eq 0; then
23565 if test $export -eq 0; then :
23575 if test $rc -ne 0; then :
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23578 $as_echo "no" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23580 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23584 cat confdefs.h
- <<_ACEOF >conftest.c
23587 #include <linux/backing-dev.h>
23588 struct backing_dev_info bdi;
23594 char *name = "bdi";
23595 unsigned int cap = BDI_CAP_MAP_COPY;
23596 int error __attribute__((unused)) =
23597 bdi_setup_and_register(&bdi, name, cap);
23607 cat - <<_ACEOF >conftest.h
23612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23613 echo "obj-m := conftest.o" >build
/Makefile
23615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23616 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23618 (eval $ac_try) 2>&5
23620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }; then :
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.
$ac_ext >&5
23638 if test $rc -ne 0; then :
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641 $as_echo "no" >&6; }
23644 if test "x$enable_linux_builtin" != xyes
; then
23646 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23647 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23649 if test $rc -ne 0; then
23651 for file in mm
/backing-dev.c
; do
23652 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23653 "$LINUX/$file" 2>/dev
/null
23655 if test $rc -eq 0; then
23660 if test $export -eq 0; then :
23670 if test $rc -ne 0; then :
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23673 $as_echo "no" >&6; }
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23678 $as_echo "yes" >&6; }
23680 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23690 $as_echo "yes" >&6; }
23692 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23700 if test "x$enable_linux_builtin" != xyes
; then
23702 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23703 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23705 if test $rc -ne 0; then
23707 for file in fs
/super.c
; do
23708 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23709 "$LINUX/$file" 2>/dev
/null
23711 if test $rc -eq 0; then
23716 if test $export -eq 0; then :
23726 if test $rc -ne 0; then :
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23729 $as_echo "no" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23731 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23735 cat confdefs.h
- <<_ACEOF >conftest.c
23738 #include <linux/backing-dev.h>
23739 struct backing_dev_info bdi;
23745 char *name = "bdi";
23746 int error __attribute__((unused)) =
23747 bdi_setup_and_register(&bdi, name);
23757 cat - <<_ACEOF >conftest.h
23762 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23763 echo "obj-m := conftest.o" >build
/Makefile
23765 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23766 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23773 (eval $ac_try) 2>&5
23775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23776 test $ac_status = 0; }; }; then :
23779 $as_echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.
$ac_ext >&5
23788 if test $rc -ne 0; then :
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23791 $as_echo "no" >&6; }
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23793 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23797 cat confdefs.h
- <<_ACEOF >conftest.c
23800 #include <linux/backing-dev.h>
23801 struct backing_dev_info bdi;
23807 char *name = "bdi";
23808 unsigned int cap = BDI_CAP_MAP_COPY;
23809 int error __attribute__((unused)) =
23810 bdi_setup_and_register(&bdi, name, cap);
23820 cat - <<_ACEOF >conftest.h
23825 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23826 echo "obj-m := conftest.o" >build
/Makefile
23828 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23829 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23831 (eval $ac_try) 2>&5
23833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }; then :
23842 $as_echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.
$ac_ext >&5
23851 if test $rc -ne 0; then :
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23854 $as_echo "no" >&6; }
23857 if test "x$enable_linux_builtin" != xyes
; then
23859 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23860 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23862 if test $rc -ne 0; then
23864 for file in mm
/backing-dev.c
; do
23865 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23866 "$LINUX/$file" 2>/dev
/null
23868 if test $rc -eq 0; then
23873 if test $export -eq 0; then :
23883 if test $rc -ne 0; then :
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23886 $as_echo "no" >&6; }
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23891 $as_echo "yes" >&6; }
23893 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23901 if test "x$enable_linux_builtin" != xyes
; then
23903 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23904 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23906 if test $rc -ne 0; then
23908 for file in mm
/backing-dev.c
; do
23909 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23910 "$LINUX/$file" 2>/dev
/null
23912 if test $rc -eq 0; then
23917 if test $export -eq 0; then :
23927 if test $rc -ne 0; then :
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23932 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23936 cat confdefs.h
- <<_ACEOF >conftest.c
23939 #include <linux/backing-dev.h>
23940 struct backing_dev_info bdi;
23946 char *name = "bdi";
23947 unsigned int cap = BDI_CAP_MAP_COPY;
23948 int error __attribute__((unused)) =
23949 bdi_setup_and_register(&bdi, name, cap);
23959 cat - <<_ACEOF >conftest.h
23964 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23965 echo "obj-m := conftest.o" >build
/Makefile
23967 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23968 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975 (eval $ac_try) 2>&5
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; }; }; then :
23981 $as_echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.
$ac_ext >&5
23990 if test $rc -ne 0; then :
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23993 $as_echo "no" >&6; }
23996 if test "x$enable_linux_builtin" != xyes
; then
23998 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23999 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24001 if test $rc -ne 0; then
24003 for file in mm
/backing-dev.c
; do
24004 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24005 "$LINUX/$file" 2>/dev
/null
24007 if test $rc -eq 0; then
24012 if test $export -eq 0; then :
24022 if test $rc -ne 0; then :
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24025 $as_echo "no" >&6; }
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24030 $as_echo "yes" >&6; }
24032 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24042 $as_echo "yes" >&6; }
24044 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24054 $as_echo "yes" >&6; }
24056 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24065 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24068 cat confdefs.h
- <<_ACEOF >conftest.c
24071 #include <linux/fs.h>
24078 unsigned int link = 0;
24079 (void) set_nlink(&node, link);
24089 cat - <<_ACEOF >conftest.h
24094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24095 echo "obj-m := conftest.o" >build
/Makefile
24097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24105 (eval $ac_try) 2>&5
24107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24108 test $ac_status = 0; }; }; then :
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24111 $as_echo "yes" >&6; }
24113 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24117 $as_echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.
$ac_ext >&5
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24132 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24133 tmp_flags
="$EXTRA_KCFLAGS"
24134 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24137 cat confdefs.h
- <<_ACEOF >conftest.c
24140 #include <linux/blkdev.h>
24141 #include <linux/elevator.h>
24148 struct request_queue *q = NULL;
24149 char *elevator = NULL;
24150 ret = elevator_change(q, elevator);
24160 cat - <<_ACEOF >conftest.h
24165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24166 echo "obj-m := conftest.o" >build
/Makefile
24168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24176 (eval $ac_try) 2>&5
24178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179 test $ac_status = 0; }; }; then :
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24182 $as_echo "yes" >&6; }
24184 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24188 $as_echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.
$ac_ext >&5
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24192 $as_echo "no" >&6; }
24200 EXTRA_KCFLAGS
="$tmp_flags"
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24203 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24206 cat confdefs.h
- <<_ACEOF >conftest.c
24209 #include <linux/fs.h>
24215 struct file_system_type *type = NULL;
24216 int (*test)(struct super_block *,void *) = NULL;
24217 int (*set)(struct super_block *,void *) = NULL;
24220 (void) sget(type, test, set, flags, data);
24230 cat - <<_ACEOF >conftest.h
24235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24236 echo "obj-m := conftest.o" >build
/Makefile
24238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }; then :
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24252 $as_echo "yes" >&6; }
24254 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24258 $as_echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.
$ac_ext >&5
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24272 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24276 cat confdefs.h
- <<_ACEOF >conftest.c
24279 #include <linux/fs.h>
24285 struct file *fp __attribute__ ((unused)) = NULL;
24286 struct inode *ip __attribute__ ((unused)) = NULL;
24287 loff_t offset __attribute__ ((unused)) = 0;
24288 loff_t maxsize __attribute__ ((unused)) = 0;
24290 lseek_execute(fp, ip, offset, maxsize);
24300 cat - <<_ACEOF >conftest.h
24305 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24306 echo "obj-m := conftest.o" >build
/Makefile
24308 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24309 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24311 (eval $ac_try) 2>&5
24313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24314 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }; then :
24322 $as_echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.
$ac_ext >&5
24331 if test $rc -ne 0; then :
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24334 $as_echo "no" >&6; }
24337 if test "x$enable_linux_builtin" != xyes
; then
24339 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24340 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24342 if test $rc -ne 0; then
24344 for file in fs
/read_write.c
; do
24345 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24346 "$LINUX/$file" 2>/dev
/null
24348 if test $rc -eq 0; then
24353 if test $export -eq 0; then :
24363 if test $rc -ne 0; then :
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366 $as_echo "no" >&6; }
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24371 $as_echo "yes" >&6; }
24373 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24382 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24385 cat confdefs.h
- <<_ACEOF >conftest.c
24388 #include <linux/fs.h>
24389 int iterate(struct file *filp, struct dir_context * context)
24392 static const struct file_operations fops
24393 __attribute__ ((unused)) = {
24394 .iterate_shared = iterate,
24410 cat - <<_ACEOF >conftest.h
24415 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24416 echo "obj-m := conftest.o" >build
/Makefile
24418 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24419 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }; then :
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24432 $as_echo "yes" >&6; }
24434 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24438 $as_echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.
$ac_ext >&5
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24442 $as_echo "no" >&6; }
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24445 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24448 cat confdefs.h
- <<_ACEOF >conftest.c
24451 #include <linux/fs.h>
24452 int iterate(struct file *filp, struct dir_context * context)
24455 static const struct file_operations fops
24456 __attribute__ ((unused)) = {
24457 .iterate = iterate,
24473 cat - <<_ACEOF >conftest.h
24478 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24479 echo "obj-m := conftest.o" >build
/Makefile
24481 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24482 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489 (eval $ac_try) 2>&5
24491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492 test $ac_status = 0; }; }; then :
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24495 $as_echo "yes" >&6; }
24497 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24501 $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.
$ac_ext >&5
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 $as_echo "no" >&6; }
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24508 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24511 cat confdefs.h
- <<_ACEOF >conftest.c
24514 #include <linux/fs.h>
24515 int readdir(struct file *filp, void *entry, filldir_t func)
24518 static const struct file_operations fops
24519 __attribute__ ((unused)) = {
24520 .readdir = readdir,
24536 cat - <<_ACEOF >conftest.h
24541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24542 echo "obj-m := conftest.o" >build
/Makefile
24544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24552 (eval $ac_try) 2>&5
24554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24555 test $ac_status = 0; }; }; then :
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24558 $as_echo "yes" >&6; }
24560 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24564 $as_echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.
$ac_ext >&5
24567 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24591 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24594 cat confdefs.h
- <<_ACEOF >conftest.c
24597 #include <linux/fs.h>
24599 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24601 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24604 static const struct file_operations
24605 fops __attribute__ ((unused)) = {
24606 .read_iter = test_read,
24607 .write_iter = test_write,
24623 cat - <<_ACEOF >conftest.h
24628 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24629 echo "obj-m := conftest.o" >build
/Makefile
24631 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24632 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }; then :
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24645 $as_echo "yes" >&6; }
24647 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24651 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24654 cat confdefs.h
- <<_ACEOF >conftest.c
24657 #include <linux/fs.h>
24663 new_sync_read(NULL, NULL, 0, NULL);
24673 cat - <<_ACEOF >conftest.h
24678 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24679 echo "obj-m := conftest.o" >build
/Makefile
24681 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24682 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }; then :
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695 $as_echo "yes" >&6; }
24697 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24701 $as_echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.
$ac_ext >&5
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24705 $as_echo "no" >&6; }
24716 $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.
$ac_ext >&5
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720 $as_echo "no" >&6; }
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24730 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24733 cat confdefs.h
- <<_ACEOF >conftest.c
24736 #include <linux/fs.h>
24743 struct kiocb *iocb = NULL;
24744 struct iov_iter *iov = NULL;
24745 generic_write_checks(iocb, iov);
24755 cat - <<_ACEOF >conftest.h
24760 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24761 echo "obj-m := conftest.o" >build
/Makefile
24763 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24764 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24771 (eval $ac_try) 2>&5
24773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774 test $ac_status = 0; }; }; then :
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24777 $as_echo "yes" >&6; }
24779 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.
$ac_ext >&5
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24787 $as_echo "no" >&6; }
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24798 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24801 cat confdefs.h
- <<_ACEOF >conftest.c
24804 #include <linux/pagemap.h>
24811 kmap_atomic(&page);
24821 cat - <<_ACEOF >conftest.h
24826 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24827 echo "obj-m := conftest.o" >build
/Makefile
24829 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24830 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }; then :
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24843 $as_echo "yes" >&6; }
24845 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24849 $as_echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.
$ac_ext >&5
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24853 $as_echo "no" >&6; }
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24864 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24867 cat confdefs.h
- <<_ACEOF >conftest.c
24870 #include <linux/namei.h>
24876 struct path *p = NULL;
24877 follow_down_one(p);
24887 cat - <<_ACEOF >conftest.h
24892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24893 echo "obj-m := conftest.o" >build
/Makefile
24895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }; then :
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24909 $as_echo "yes" >&6; }
24911 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24915 $as_echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.
$ac_ext >&5
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24919 $as_echo "no" >&6; }
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24930 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24933 cat confdefs.h
- <<_ACEOF >conftest.c
24936 #include <linux/blkdev.h>
24938 int make_request(struct request_queue *q, struct bio *bio)
24947 blk_queue_make_request(NULL, &make_request);
24957 cat - <<_ACEOF >conftest.h
24962 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24963 echo "obj-m := conftest.o" >build
/Makefile
24965 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24966 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24968 (eval $ac_try) 2>&5
24970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }; then :
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24979 $as_echo "yes" >&6; }
24981 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24984 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24988 $as_echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.
$ac_ext >&5
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24992 $as_echo "no" >&6; }
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24994 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24997 cat confdefs.h
- <<_ACEOF >conftest.c
25000 #include <linux/blkdev.h>
25002 void make_request(struct request_queue *q, struct bio *bio)
25011 blk_queue_make_request(NULL, &make_request);
25021 cat - <<_ACEOF >conftest.h
25026 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25027 echo "obj-m := conftest.o" >build
/Makefile
25029 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25030 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }; then :
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25043 $as_echo "yes" >&6; }
25045 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25049 $as_echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.
$ac_ext >&5
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25053 $as_echo "no" >&6; }
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25055 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25058 cat confdefs.h
- <<_ACEOF >conftest.c
25061 #include <linux/blkdev.h>
25063 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25065 return (BLK_QC_T_NONE);
25072 blk_queue_make_request(NULL, &make_request);
25082 cat - <<_ACEOF >conftest.h
25087 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25088 echo "obj-m := conftest.o" >build
/Makefile
25090 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25091 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }; then :
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25104 $as_echo "yes" >&6; }
25106 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25109 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25113 $as_echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.
$ac_ext >&5
25116 as_fn_error $?
"no - Please file a bug report at
25117 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25142 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25146 cat confdefs.h
- <<_ACEOF >conftest.c
25149 #include <linux/bio.h>
25151 void (*generic_start_io_acct_f)(int, unsigned long,
25152 struct hd_struct *) = &generic_start_io_acct;
25153 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25154 unsigned long) = &generic_end_io_acct;
25160 generic_start_io_acct(0, 0, NULL);
25161 generic_end_io_acct(0, NULL, 0);
25171 cat - <<_ACEOF >conftest.h
25176 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25177 echo "obj-m := conftest.o" >build
/Makefile
25179 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25180 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25182 (eval $ac_try) 2>&5
25184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25185 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }; then :
25193 $as_echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.
$ac_ext >&5
25202 if test $rc -ne 0; then :
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25208 if test "x$enable_linux_builtin" != xyes
; then
25210 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25211 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25213 if test $rc -ne 0; then
25215 for file in block
/bio.c
; do
25216 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25217 "$LINUX/$file" 2>/dev
/null
25219 if test $rc -eq 0; then
25224 if test $export -eq 0; then :
25234 if test $rc -ne 0; then :
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25237 $as_echo "no" >&6; }
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25242 $as_echo "yes" >&6; }
25244 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25253 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25257 cat confdefs.h
- <<_ACEOF >conftest.c
25260 #include <linux/bio.h>
25262 void (*generic_start_io_acct_f)(struct request_queue *, int,
25263 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25264 void (*generic_end_io_acct_f)(struct request_queue *, int,
25265 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25271 generic_start_io_acct(NULL, 0, 0, NULL);
25272 generic_end_io_acct(NULL, 0, NULL, 0);
25282 cat - <<_ACEOF >conftest.h
25287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25288 echo "obj-m := conftest.o" >build
/Makefile
25290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25298 (eval $ac_try) 2>&5
25300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }; }; then :
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.
$ac_ext >&5
25313 if test $rc -ne 0; then :
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316 $as_echo "no" >&6; }
25319 if test "x$enable_linux_builtin" != xyes
; then
25321 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25322 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25324 if test $rc -ne 0; then
25326 for file in block
/bio.c
; do
25327 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25328 "$LINUX/$file" 2>/dev
/null
25330 if test $rc -eq 0; then
25335 if test $export -eq 0; then :
25345 if test $rc -ne 0; then :
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25348 $as_echo "no" >&6; }
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25353 $as_echo "yes" >&6; }
25355 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25364 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25367 cat confdefs.h
- <<_ACEOF >conftest.c
25370 #include <linux/kernel.h>
25371 #include <asm/fpu/api.h>
25377 __kernel_fpu_begin();
25387 cat - <<_ACEOF >conftest.h
25392 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25393 echo "obj-m := conftest.o" >build
/Makefile
25395 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25396 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }; then :
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25409 $as_echo "yes" >&6; }
25411 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25415 $as_echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.
$ac_ext >&5
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25419 $as_echo "no" >&6; }
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25430 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25433 cat confdefs.h
- <<_ACEOF >conftest.c
25436 #include <linux/fs.h>
25442 struct inode *ip = NULL;
25443 (void) i_uid_read(ip);
25453 cat - <<_ACEOF >conftest.h
25458 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25459 echo "obj-m := conftest.o" >build
/Makefile
25461 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25462 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25469 (eval $ac_try) 2>&5
25471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472 test $ac_status = 0; }; }; then :
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25475 $as_echo "yes" >&6; }
25477 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25481 $as_echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.
$ac_ext >&5
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25485 $as_echo "no" >&6; }
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25496 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25499 cat confdefs.h
- <<_ACEOF >conftest.c
25502 #include <linux/module.h>
25503 #include <linux/moduleparam.h>
25505 int param_get(char *b, const struct kernel_param *kp)
25510 int param_set(const char *b, const struct kernel_param *kp)
25515 module_param_call(p, param_set, param_get, NULL, 0644);
25530 cat - <<_ACEOF >conftest.h
25535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25536 echo "obj-m := conftest.o" >build
/Makefile
25538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25541 (eval $ac_try) 2>&5
25543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25546 (eval $ac_try) 2>&5
25548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25549 test $ac_status = 0; }; }; then :
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25552 $as_echo "yes" >&6; }
25554 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25558 $as_echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.
$ac_ext >&5
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25562 $as_echo "no" >&6; }
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25573 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25576 cat confdefs.h
- <<_ACEOF >conftest.c
25579 #include <linux/fs.h>
25580 int rename_fn(struct inode *sip, struct dentry *sdp,
25581 struct inode *tip, struct dentry *tdp,
25582 unsigned int flags) { return 0; }
25584 static const struct inode_operations
25585 iops __attribute__ ((unused)) = {
25586 .rename = rename_fn,
25602 cat - <<_ACEOF >conftest.h
25607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25608 echo "obj-m := conftest.o" >build
/Makefile
25610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }; then :
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25626 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25630 $as_echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.
$ac_ext >&5
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634 $as_echo "no" >&6; }
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25645 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25648 cat confdefs.h
- <<_ACEOF >conftest.c
25651 #include <linux/fs.h>
25652 #include <linux/xattr.h>
25654 static const struct inode_operations
25655 iops __attribute__ ((unused)) = {
25656 .setxattr = generic_setxattr
25672 cat - <<_ACEOF >conftest.h
25677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25678 echo "obj-m := conftest.o" >build
/Makefile
25680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25683 (eval $ac_try) 2>&5
25685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25686 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }; then :
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25694 $as_echo "yes" >&6; }
25696 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25700 $as_echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.
$ac_ext >&5
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25704 $as_echo "no" >&6; }
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25714 $as_echo_n "checking whether current_time() exists... " >&6; }
25718 cat confdefs.h
- <<_ACEOF >conftest.c
25721 #include <linux/fs.h>
25728 struct timespec now __attribute__ ((unused));
25730 now = current_time(&ip);
25740 cat - <<_ACEOF >conftest.h
25745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25746 echo "obj-m := conftest.o" >build
/Makefile
25748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25749 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25756 (eval $ac_try) 2>&5
25758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25759 test $ac_status = 0; }; }; then :
25762 $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.
$ac_ext >&5
25771 if test $rc -ne 0; then :
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25774 $as_echo "no" >&6; }
25777 if test "x$enable_linux_builtin" != xyes
; then
25779 grep -q -E '[[:space:]]current_time[[:space:]]' \
25780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25782 if test $rc -ne 0; then
25784 for file in fs
/inode.c
; do
25785 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25786 "$LINUX/$file" 2>/dev
/null
25788 if test $rc -eq 0; then
25793 if test $export -eq 0; then :
25803 if test $rc -ne 0; then :
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25806 $as_echo "no" >&6; }
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25811 $as_echo "yes" >&6; }
25813 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25822 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25825 cat confdefs.h
- <<_ACEOF >conftest.c
25828 #include <linux/mm.h>
25829 #include <linux/vmstat.h>
25835 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25836 long x __attribute__ ((unused)) =
25837 atomic_long_read(&vm_node_stat[0]);
25838 (void) global_node_page_state(0);
25848 cat - <<_ACEOF >conftest.h
25853 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25854 echo "obj-m := conftest.o" >build
/Makefile
25856 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25857 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864 (eval $ac_try) 2>&5
25866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867 test $ac_status = 0; }; }; then :
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870 $as_echo "yes" >&6; }
25872 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25876 $as_echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.
$ac_ext >&5
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880 $as_echo "no" >&6; }
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
25892 $as_echo_n "checking whether ns_capable exists... " >&6; }
25895 cat confdefs.h
- <<_ACEOF >conftest.c
25898 #include <linux/capability.h>
25904 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
25914 cat - <<_ACEOF >conftest.h
25919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25920 echo "obj-m := conftest.o" >build
/Makefile
25922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25923 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25930 (eval $ac_try) 2>&5
25932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25933 test $ac_status = 0; }; }; then :
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936 $as_echo "yes" >&6; }
25938 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
25942 $as_echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.
$ac_ext >&5
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25946 $as_echo "no" >&6; }
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
25957 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
25960 cat confdefs.h
- <<_ACEOF >conftest.c
25963 #include <linux/cred.h>
25970 cr.user_ns = (struct user_namespace *)NULL;
25980 cat - <<_ACEOF >conftest.h
25985 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25986 echo "obj-m := conftest.o" >build
/Makefile
25988 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25989 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996 (eval $ac_try) 2>&5
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; }; then :
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002 $as_echo "yes" >&6; }
26004 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
26008 $as_echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.
$ac_ext >&5
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26012 $as_echo "no" >&6; }
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
26023 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
26026 cat confdefs.h
- <<_ACEOF >conftest.c
26029 #include <linux/uidgid.h>
26035 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
26036 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
26046 cat - <<_ACEOF >conftest.h
26051 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26052 echo "obj-m := conftest.o" >build
/Makefile
26054 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26055 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; }; then :
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26068 $as_echo "yes" >&6; }
26070 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
26074 $as_echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.
$ac_ext >&5
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26078 $as_echo "no" >&6; }
26089 if test "$LINUX_OBJ" != "$LINUX"; then :
26091 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
26097 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
26098 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
26099 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
26100 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
26101 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
26102 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26109 $as_echo_n "checking for dkms.conf file... " >&6; }
26110 if test -e dkms.conf
; then :
26113 *** ZFS should not be manually built in the DKMS source tree.
26114 *** Remove all ZFS packages before compiling the ZoL sources.
26115 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26120 $as_echo "not found" >&6; }
26126 # Check whether --with-mounthelperdir was given.
26127 if test "${with_mounthelperdir+set}" = set; then :
26128 withval
=$with_mounthelperdir; mounthelperdir
=$withval
26130 mounthelperdir
=/sbin
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26138 $as_echo_n "checking for udev directories... " >&6; }
26140 # Check whether --with-udevdir was given.
26141 if test "${with_udevdir+set}" = set; then :
26142 withval
=$with_udevdir; udevdir
=$withval
26148 if test "x$udevdir" = xcheck
; then :
26151 path2
=/usr
/lib
/udev
26154 if test -d "$path1"; then :
26158 if test -d "$path2"; then :
26169 # Check whether --with-udevruledir was given.
26170 if test "${with_udevruledir+set}" = set; then :
26171 withval
=$with_udevruledir; udevruledir
=$withval
26173 udevruledir
="${udevdir}/rules.d"
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26180 $as_echo "$udevdir;$udevruledir" >&6; }
26183 # Check whether --enable-systemd was given.
26184 if test "${enable_systemd+set}" = set; then :
26185 enableval
=$enable_systemd;
26192 # Check whether --with-systemdunitdir was given.
26193 if test "${with_systemdunitdir+set}" = set; then :
26194 withval
=$with_systemdunitdir; systemdunitdir
=$withval
26196 systemdunitdir
=/usr
/lib
/systemd
/system
26201 # Check whether --with-systemdpresetdir was given.
26202 if test "${with_systemdpresetdir+set}" = set; then :
26203 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
26205 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
26210 # Check whether --with-systemdmodulesloaddir was given.
26211 if test "${with_systemdmodulesloaddir+set}" = set; then :
26212 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
26214 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
26219 if test "x$enable_systemd" = xyes
; then :
26221 ZFS_INIT_SYSTEMD
=systemd
26222 ZFS_MODULE_LOAD
=modules-load.d
26223 modulesloaddir
=$systemdmodulesloaddir
26234 # Check whether --enable-sysvinit was given.
26235 if test "${enable_sysvinit+set}" = set; then :
26236 enableval
=$enable_sysvinit;
26238 enable_sysvinit
=yes
26242 if test "x$enable_sysvinit" = xyes
; then :
26243 ZFS_INIT_SYSV
=init.d
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26250 $as_echo_n "checking for dracut directory... " >&6; }
26252 # Check whether --with-dracutdir was given.
26253 if test "${with_dracutdir+set}" = set; then :
26254 withval
=$with_dracutdir; dracutdir
=$withval
26260 if test "x$dracutdir" = xcheck
; then :
26262 path1
=/usr
/share
/dracut
26263 path2
=/usr
/lib
/dracut
26266 if test -d "$path1"; then :
26270 if test -d "$path2"; then :
26273 dracutdir
="$default"
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26282 $as_echo "$dracutdir" >&6; }
26287 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26288 if test "x$ac_cv_header_zlib_h" = xyes
; then :
26291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26294 *** zlib.h missing, zlib-devel package required
26295 See \`config.log' for more details" "$LINENO" 5; }
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26301 $as_echo_n "checking for library containing compress2... " >&6; }
26302 if ${ac_cv_search_compress2+:} false
; then :
26303 $as_echo_n "(cached) " >&6
26305 ac_func_search_save_LIBS
=$LIBS
26306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26309 /* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26319 return compress2 ();
26324 for ac_lib
in '' z
; do
26325 if test -z "$ac_lib"; then
26326 ac_res
="none required"
26329 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26331 if ac_fn_c_try_link
"$LINENO"; then :
26332 ac_cv_search_compress2
=$ac_res
26334 rm -f core conftest.err conftest.
$ac_objext \
26336 if ${ac_cv_search_compress2+:} false
; then :
26340 if ${ac_cv_search_compress2+:} false
; then :
26343 ac_cv_search_compress2
=no
26345 rm conftest.
$ac_ext
26346 LIBS
=$ac_func_search_save_LIBS
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26349 $as_echo "$ac_cv_search_compress2" >&6; }
26350 ac_res
=$ac_cv_search_compress2
26351 if test "$ac_res" != no
; then :
26352 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26358 *** compress2() missing, zlib-devel package required
26359 See \`config.log' for more details" "$LINENO" 5; }
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26364 $as_echo_n "checking for library containing uncompress... " >&6; }
26365 if ${ac_cv_search_uncompress+:} false
; then :
26366 $as_echo_n "(cached) " >&6
26368 ac_func_search_save_LIBS
=$LIBS
26369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26378 char uncompress ();
26382 return uncompress ();
26387 for ac_lib
in '' z
; do
26388 if test -z "$ac_lib"; then
26389 ac_res
="none required"
26392 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26394 if ac_fn_c_try_link
"$LINENO"; then :
26395 ac_cv_search_uncompress
=$ac_res
26397 rm -f core conftest.err conftest.
$ac_objext \
26399 if ${ac_cv_search_uncompress+:} false
; then :
26403 if ${ac_cv_search_uncompress+:} false
; then :
26406 ac_cv_search_uncompress
=no
26408 rm conftest.
$ac_ext
26409 LIBS
=$ac_func_search_save_LIBS
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26412 $as_echo "$ac_cv_search_uncompress" >&6; }
26413 ac_res
=$ac_cv_search_uncompress
26414 if test "$ac_res" != no
; then :
26415 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26421 *** uncompress() missing, zlib-devel package required
26422 See \`config.log' for more details" "$LINENO" 5; }
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26427 $as_echo_n "checking for library containing crc32... " >&6; }
26428 if ${ac_cv_search_crc32+:} false
; then :
26429 $as_echo_n "(cached) " >&6
26431 ac_func_search_save_LIBS
=$LIBS
26432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h. */
26435 /* Override any GCC internal prototype to avoid an error.
26436 Use char because int might match the return type of a GCC
26437 builtin and then its argument prototype would still apply. */
26450 for ac_lib
in '' z
; do
26451 if test -z "$ac_lib"; then
26452 ac_res
="none required"
26455 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26457 if ac_fn_c_try_link
"$LINENO"; then :
26458 ac_cv_search_crc32
=$ac_res
26460 rm -f core conftest.err conftest.
$ac_objext \
26462 if ${ac_cv_search_crc32+:} false
; then :
26466 if ${ac_cv_search_crc32+:} false
; then :
26469 ac_cv_search_crc32
=no
26471 rm conftest.
$ac_ext
26472 LIBS
=$ac_func_search_save_LIBS
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26475 $as_echo "$ac_cv_search_crc32" >&6; }
26476 ac_res
=$ac_cv_search_crc32
26477 if test "$ac_res" != no
; then :
26478 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26484 *** crc32() missing, zlib-devel package required
26485 See \`config.log' for more details" "$LINENO" 5; }
26492 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26498 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26499 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
26502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26505 *** uuid/uuid.h missing, libuuid-devel package required
26506 See \`config.log' for more details" "$LINENO" 5; }
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26512 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26513 if ${ac_cv_search_uuid_generate+:} false
; then :
26514 $as_echo_n "(cached) " >&6
26516 ac_func_search_save_LIBS
=$LIBS
26517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26518 /* end confdefs.h. */
26520 /* Override any GCC internal prototype to avoid an error.
26521 Use char because int might match the return type of a GCC
26522 builtin and then its argument prototype would still apply. */
26526 char uuid_generate ();
26530 return uuid_generate ();
26535 for ac_lib
in '' uuid
; do
26536 if test -z "$ac_lib"; then
26537 ac_res
="none required"
26540 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26542 if ac_fn_c_try_link
"$LINENO"; then :
26543 ac_cv_search_uuid_generate
=$ac_res
26545 rm -f core conftest.err conftest.
$ac_objext \
26547 if ${ac_cv_search_uuid_generate+:} false
; then :
26551 if ${ac_cv_search_uuid_generate+:} false
; then :
26554 ac_cv_search_uuid_generate
=no
26556 rm conftest.
$ac_ext
26557 LIBS
=$ac_func_search_save_LIBS
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26560 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26561 ac_res
=$ac_cv_search_uuid_generate
26562 if test "$ac_res" != no
; then :
26563 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26569 *** uuid_generate() missing, libuuid-devel package required
26570 See \`config.log' for more details" "$LINENO" 5; }
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26575 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26576 if ${ac_cv_search_uuid_is_null+:} false
; then :
26577 $as_echo_n "(cached) " >&6
26579 ac_func_search_save_LIBS
=$LIBS
26580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26581 /* end confdefs.h. */
26583 /* Override any GCC internal prototype to avoid an error.
26584 Use char because int might match the return type of a GCC
26585 builtin and then its argument prototype would still apply. */
26589 char uuid_is_null ();
26593 return uuid_is_null ();
26598 for ac_lib
in '' uuid
; do
26599 if test -z "$ac_lib"; then
26600 ac_res
="none required"
26603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26605 if ac_fn_c_try_link
"$LINENO"; then :
26606 ac_cv_search_uuid_is_null
=$ac_res
26608 rm -f core conftest.err conftest.
$ac_objext \
26610 if ${ac_cv_search_uuid_is_null+:} false
; then :
26614 if ${ac_cv_search_uuid_is_null+:} false
; then :
26617 ac_cv_search_uuid_is_null
=no
26619 rm conftest.
$ac_ext
26620 LIBS
=$ac_func_search_save_LIBS
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26623 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26624 ac_res
=$ac_cv_search_uuid_is_null
26625 if test "$ac_res" != no
; then :
26626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26632 *** uuid_is_null() missing, libuuid-devel package required
26633 See \`config.log' for more details" "$LINENO" 5; }
26640 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26645 # Check whether --with-tirpc was given.
26646 if test "${with_tirpc+set}" = set; then :
26647 withval
=$with_tirpc;
26656 if test "x$with_tirpc" != xno
; then :
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26658 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26659 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
26660 $as_echo_n "(cached) " >&6
26662 ac_check_lib_save_LIBS
=$LIBS
26663 LIBS
="-ltirpc $LIBS"
26664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h. */
26667 /* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26673 char xdrmem_create ();
26677 return xdrmem_create ();
26682 if ac_fn_c_try_link
"$LINENO"; then :
26683 ac_cv_lib_tirpc_xdrmem_create
=yes
26685 ac_cv_lib_tirpc_xdrmem_create
=no
26687 rm -f core conftest.err conftest.
$ac_objext \
26688 conftest
$ac_exeext conftest.
$ac_ext
26689 LIBS
=$ac_check_lib_save_LIBS
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26692 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26693 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
26696 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
26699 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26703 if test "x$with_tirpc" != xcheck
; then
26704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26706 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
26707 See \`config.log' for more details" "$LINENO" 5; }
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26710 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26711 if ${ac_cv_search_xdrmem_create+:} false
; then :
26712 $as_echo_n "(cached) " >&6
26714 ac_func_search_save_LIBS
=$LIBS
26715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26716 /* end confdefs.h. */
26718 /* Override any GCC internal prototype to avoid an error.
26719 Use char because int might match the return type of a GCC
26720 builtin and then its argument prototype would still apply. */
26724 char xdrmem_create ();
26728 return xdrmem_create ();
26733 for ac_lib
in '' tirpc
; do
26734 if test -z "$ac_lib"; then
26735 ac_res
="none required"
26738 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26740 if ac_fn_c_try_link
"$LINENO"; then :
26741 ac_cv_search_xdrmem_create
=$ac_res
26743 rm -f core conftest.err conftest.
$ac_objext \
26745 if ${ac_cv_search_xdrmem_create+:} false
; then :
26749 if ${ac_cv_search_xdrmem_create+:} false
; then :
26752 ac_cv_search_xdrmem_create
=no
26754 rm conftest.
$ac_ext
26755 LIBS
=$ac_func_search_save_LIBS
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26758 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26759 ac_res
=$ac_cv_search_xdrmem_create
26760 if test "$ac_res" != no
; then :
26761 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26767 as_fn_error $?
"xdrmem_create() requires tirpc or libc
26768 See \`config.log' for more details" "$LINENO" 5; }
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26776 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26777 if ${ac_cv_search_xdrmem_create+:} false
; then :
26778 $as_echo_n "(cached) " >&6
26780 ac_func_search_save_LIBS
=$LIBS
26781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26784 /* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26790 char xdrmem_create ();
26794 return xdrmem_create ();
26799 for ac_lib
in '' tirpc
; do
26800 if test -z "$ac_lib"; then
26801 ac_res
="none required"
26804 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26806 if ac_fn_c_try_link
"$LINENO"; then :
26807 ac_cv_search_xdrmem_create
=$ac_res
26809 rm -f core conftest.err conftest.
$ac_objext \
26811 if ${ac_cv_search_xdrmem_create+:} false
; then :
26815 if ${ac_cv_search_xdrmem_create+:} false
; then :
26818 ac_cv_search_xdrmem_create
=no
26820 rm conftest.
$ac_ext
26821 LIBS
=$ac_func_search_save_LIBS
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26824 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26825 ac_res
=$ac_cv_search_xdrmem_create
26826 if test "$ac_res" != no
; then :
26827 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26833 as_fn_error $?
"xdrmem_create() requires libc
26834 See \`config.log' for more details" "$LINENO" 5; }
26843 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26844 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
26847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26850 *** blkid.h missing, libblkid-devel package required
26851 See \`config.log' for more details" "$LINENO" 5; }
26859 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26865 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26866 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
26869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26872 *** attr/xattr.h missing, libattr-devel package required
26873 See \`config.log' for more details" "$LINENO" 5; }
26881 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26887 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26888 if test "x$ac_cv_header_libudev_h" = xyes
; then :
26894 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26906 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26907 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26908 $as_echo_n "(cached) " >&6
26910 ac_func_search_save_LIBS
=$LIBS
26911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26914 /* Override any GCC internal prototype to avoid an error.
26915 Use char because int might match the return type of a GCC
26916 builtin and then its argument prototype would still apply. */
26920 char udev_device_get_is_initialized ();
26924 return udev_device_get_is_initialized ();
26929 for ac_lib
in '' udev
; do
26930 if test -z "$ac_lib"; then
26931 ac_res
="none required"
26934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26936 if ac_fn_c_try_link
"$LINENO"; then :
26937 ac_cv_search_udev_device_get_is_initialized
=$ac_res
26939 rm -f core conftest.err conftest.
$ac_objext \
26941 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26945 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26948 ac_cv_search_udev_device_get_is_initialized
=no
26950 rm conftest.
$ac_ext
26951 LIBS
=$ac_func_search_save_LIBS
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26954 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26955 ac_res
=$ac_cv_search_udev_device_get_is_initialized
26956 if test "$ac_res" != no
; then :
26957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26960 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26969 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
26970 if test "x$ac_cv_header_libaio_h" = xyes
; then :
26976 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
26989 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26991 saved_flags
="$CFLAGS"
26992 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
26994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h. */
27005 if ac_fn_c_try_compile
"$LINENO"; then :
27007 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27009 $as_echo "yes" >&6; }
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27015 $as_echo "no" >&6; }
27018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27020 CFLAGS
="$saved_flags"
27024 if test "x$runstatedir" = x
; then
27025 runstatedir
='${localstatedir}/run'
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27031 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27035 #include <sys/sysmacros.h>
27048 if ac_fn_c_try_compile
"$LINENO"; then :
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27051 $as_echo "yes" >&6; }
27053 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27059 $as_echo "no" >&6; }
27062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27066 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27068 /* end confdefs.h. */
27070 #include <sys/mkdev.h>
27083 if ac_fn_c_try_compile
"$LINENO"; then :
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086 $as_echo "yes" >&6; }
27088 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 $as_echo "no" >&6; }
27097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27101 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27103 saved_flags
="$CFLAGS"
27104 CFLAGS
="$CFLAGS -Wno-format-truncation"
27106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27107 /* end confdefs.h. */
27117 if ac_fn_c_try_compile
"$LINENO"; then :
27119 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27121 $as_echo "yes" >&6; }
27125 NO_FORMAT_TRUNCATION
=
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27132 CFLAGS
="$saved_flags"
27137 ZONENAME
="echo global"
27143 for ac_func
in mlockall
27145 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
27146 if test "x$ac_cv_func_mlockall" = xyes
; then :
27147 cat >>confdefs.h
<<_ACEOF
27148 #define HAVE_MLOCKALL 1
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
27158 $as_echo_n "checking for dkms.conf file... " >&6; }
27159 if test -e dkms.conf
; then :
27162 *** ZFS should not be manually built in the DKMS source tree.
27163 *** Remove all ZFS packages before compiling the ZoL sources.
27164 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27169 $as_echo "not found" >&6; }
27175 # Check whether --with-mounthelperdir was given.
27176 if test "${with_mounthelperdir+set}" = set; then :
27177 withval
=$with_mounthelperdir; mounthelperdir
=$withval
27179 mounthelperdir
=/sbin
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
27187 $as_echo_n "checking for udev directories... " >&6; }
27189 # Check whether --with-udevdir was given.
27190 if test "${with_udevdir+set}" = set; then :
27191 withval
=$with_udevdir; udevdir
=$withval
27197 if test "x$udevdir" = xcheck
; then :
27200 path2
=/usr
/lib
/udev
27203 if test -d "$path1"; then :
27207 if test -d "$path2"; then :
27218 # Check whether --with-udevruledir was given.
27219 if test "${with_udevruledir+set}" = set; then :
27220 withval
=$with_udevruledir; udevruledir
=$withval
27222 udevruledir
="${udevdir}/rules.d"
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27229 $as_echo "$udevdir;$udevruledir" >&6; }
27232 # Check whether --enable-systemd was given.
27233 if test "${enable_systemd+set}" = set; then :
27234 enableval
=$enable_systemd;
27241 # Check whether --with-systemdunitdir was given.
27242 if test "${with_systemdunitdir+set}" = set; then :
27243 withval
=$with_systemdunitdir; systemdunitdir
=$withval
27245 systemdunitdir
=/usr
/lib
/systemd
/system
27250 # Check whether --with-systemdpresetdir was given.
27251 if test "${with_systemdpresetdir+set}" = set; then :
27252 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
27254 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
27259 # Check whether --with-systemdmodulesloaddir was given.
27260 if test "${with_systemdmodulesloaddir+set}" = set; then :
27261 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
27263 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
27268 if test "x$enable_systemd" = xyes
; then :
27270 ZFS_INIT_SYSTEMD
=systemd
27271 ZFS_MODULE_LOAD
=modules-load.d
27272 modulesloaddir
=$systemdmodulesloaddir
27283 # Check whether --enable-sysvinit was given.
27284 if test "${enable_sysvinit+set}" = set; then :
27285 enableval
=$enable_sysvinit;
27287 enable_sysvinit
=yes
27291 if test "x$enable_sysvinit" = xyes
; then :
27292 ZFS_INIT_SYSV
=init.d
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27299 $as_echo_n "checking for dracut directory... " >&6; }
27301 # Check whether --with-dracutdir was given.
27302 if test "${with_dracutdir+set}" = set; then :
27303 withval
=$with_dracutdir; dracutdir
=$withval
27309 if test "x$dracutdir" = xcheck
; then :
27311 path1
=/usr
/share
/dracut
27312 path2
=/usr
/lib
/dracut
27315 if test -d "$path1"; then :
27319 if test -d "$path2"; then :
27322 dracutdir
="$default"
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27331 $as_echo "$dracutdir" >&6; }
27336 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27337 if test "x$ac_cv_header_zlib_h" = xyes
; then :
27340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27343 *** zlib.h missing, zlib-devel package required
27344 See \`config.log' for more details" "$LINENO" 5; }
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27350 $as_echo_n "checking for library containing compress2... " >&6; }
27351 if ${ac_cv_search_compress2+:} false
; then :
27352 $as_echo_n "(cached) " >&6
27354 ac_func_search_save_LIBS
=$LIBS
27355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27356 /* end confdefs.h. */
27358 /* Override any GCC internal prototype to avoid an error.
27359 Use char because int might match the return type of a GCC
27360 builtin and then its argument prototype would still apply. */
27368 return compress2 ();
27373 for ac_lib
in '' z
; do
27374 if test -z "$ac_lib"; then
27375 ac_res
="none required"
27378 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27380 if ac_fn_c_try_link
"$LINENO"; then :
27381 ac_cv_search_compress2
=$ac_res
27383 rm -f core conftest.err conftest.
$ac_objext \
27385 if ${ac_cv_search_compress2+:} false
; then :
27389 if ${ac_cv_search_compress2+:} false
; then :
27392 ac_cv_search_compress2
=no
27394 rm conftest.
$ac_ext
27395 LIBS
=$ac_func_search_save_LIBS
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27398 $as_echo "$ac_cv_search_compress2" >&6; }
27399 ac_res
=$ac_cv_search_compress2
27400 if test "$ac_res" != no
; then :
27401 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27407 *** compress2() missing, zlib-devel package required
27408 See \`config.log' for more details" "$LINENO" 5; }
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27413 $as_echo_n "checking for library containing uncompress... " >&6; }
27414 if ${ac_cv_search_uncompress+:} false
; then :
27415 $as_echo_n "(cached) " >&6
27417 ac_func_search_save_LIBS
=$LIBS
27418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27421 /* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27427 char uncompress ();
27431 return uncompress ();
27436 for ac_lib
in '' z
; do
27437 if test -z "$ac_lib"; then
27438 ac_res
="none required"
27441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27443 if ac_fn_c_try_link
"$LINENO"; then :
27444 ac_cv_search_uncompress
=$ac_res
27446 rm -f core conftest.err conftest.
$ac_objext \
27448 if ${ac_cv_search_uncompress+:} false
; then :
27452 if ${ac_cv_search_uncompress+:} false
; then :
27455 ac_cv_search_uncompress
=no
27457 rm conftest.
$ac_ext
27458 LIBS
=$ac_func_search_save_LIBS
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27461 $as_echo "$ac_cv_search_uncompress" >&6; }
27462 ac_res
=$ac_cv_search_uncompress
27463 if test "$ac_res" != no
; then :
27464 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27470 *** uncompress() missing, zlib-devel package required
27471 See \`config.log' for more details" "$LINENO" 5; }
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27476 $as_echo_n "checking for library containing crc32... " >&6; }
27477 if ${ac_cv_search_crc32+:} false
; then :
27478 $as_echo_n "(cached) " >&6
27480 ac_func_search_save_LIBS
=$LIBS
27481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27482 /* end confdefs.h. */
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27499 for ac_lib
in '' z
; do
27500 if test -z "$ac_lib"; then
27501 ac_res
="none required"
27504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27506 if ac_fn_c_try_link
"$LINENO"; then :
27507 ac_cv_search_crc32
=$ac_res
27509 rm -f core conftest.err conftest.
$ac_objext \
27511 if ${ac_cv_search_crc32+:} false
; then :
27515 if ${ac_cv_search_crc32+:} false
; then :
27518 ac_cv_search_crc32
=no
27520 rm conftest.
$ac_ext
27521 LIBS
=$ac_func_search_save_LIBS
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27524 $as_echo "$ac_cv_search_crc32" >&6; }
27525 ac_res
=$ac_cv_search_crc32
27526 if test "$ac_res" != no
; then :
27527 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27533 *** crc32() missing, zlib-devel package required
27534 See \`config.log' for more details" "$LINENO" 5; }
27541 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27547 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27548 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
27551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27554 *** uuid/uuid.h missing, libuuid-devel package required
27555 See \`config.log' for more details" "$LINENO" 5; }
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27561 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27562 if ${ac_cv_search_uuid_generate+:} false
; then :
27563 $as_echo_n "(cached) " >&6
27565 ac_func_search_save_LIBS
=$LIBS
27566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27569 /* Override any GCC internal prototype to avoid an error.
27570 Use char because int might match the return type of a GCC
27571 builtin and then its argument prototype would still apply. */
27575 char uuid_generate ();
27579 return uuid_generate ();
27584 for ac_lib
in '' uuid
; do
27585 if test -z "$ac_lib"; then
27586 ac_res
="none required"
27589 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27591 if ac_fn_c_try_link
"$LINENO"; then :
27592 ac_cv_search_uuid_generate
=$ac_res
27594 rm -f core conftest.err conftest.
$ac_objext \
27596 if ${ac_cv_search_uuid_generate+:} false
; then :
27600 if ${ac_cv_search_uuid_generate+:} false
; then :
27603 ac_cv_search_uuid_generate
=no
27605 rm conftest.
$ac_ext
27606 LIBS
=$ac_func_search_save_LIBS
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27609 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27610 ac_res
=$ac_cv_search_uuid_generate
27611 if test "$ac_res" != no
; then :
27612 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27618 *** uuid_generate() missing, libuuid-devel package required
27619 See \`config.log' for more details" "$LINENO" 5; }
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27624 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27625 if ${ac_cv_search_uuid_is_null+:} false
; then :
27626 $as_echo_n "(cached) " >&6
27628 ac_func_search_save_LIBS
=$LIBS
27629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27630 /* end confdefs.h. */
27632 /* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
27638 char uuid_is_null ();
27642 return uuid_is_null ();
27647 for ac_lib
in '' uuid
; do
27648 if test -z "$ac_lib"; then
27649 ac_res
="none required"
27652 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27654 if ac_fn_c_try_link
"$LINENO"; then :
27655 ac_cv_search_uuid_is_null
=$ac_res
27657 rm -f core conftest.err conftest.
$ac_objext \
27659 if ${ac_cv_search_uuid_is_null+:} false
; then :
27663 if ${ac_cv_search_uuid_is_null+:} false
; then :
27666 ac_cv_search_uuid_is_null
=no
27668 rm conftest.
$ac_ext
27669 LIBS
=$ac_func_search_save_LIBS
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27672 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27673 ac_res
=$ac_cv_search_uuid_is_null
27674 if test "$ac_res" != no
; then :
27675 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27681 *** uuid_is_null() missing, libuuid-devel package required
27682 See \`config.log' for more details" "$LINENO" 5; }
27689 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27694 # Check whether --with-tirpc was given.
27695 if test "${with_tirpc+set}" = set; then :
27696 withval
=$with_tirpc;
27705 if test "x$with_tirpc" != xno
; then :
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27707 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27708 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
27709 $as_echo_n "(cached) " >&6
27711 ac_check_lib_save_LIBS
=$LIBS
27712 LIBS
="-ltirpc $LIBS"
27713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27714 /* end confdefs.h. */
27716 /* Override any GCC internal prototype to avoid an error.
27717 Use char because int might match the return type of a GCC
27718 builtin and then its argument prototype would still apply. */
27722 char xdrmem_create ();
27726 return xdrmem_create ();
27731 if ac_fn_c_try_link
"$LINENO"; then :
27732 ac_cv_lib_tirpc_xdrmem_create
=yes
27734 ac_cv_lib_tirpc_xdrmem_create
=no
27736 rm -f core conftest.err conftest.
$ac_objext \
27737 conftest
$ac_exeext conftest.
$ac_ext
27738 LIBS
=$ac_check_lib_save_LIBS
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27741 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27742 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
27745 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
27748 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27752 if test "x$with_tirpc" != xcheck
; then
27753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27755 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
27756 See \`config.log' for more details" "$LINENO" 5; }
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27759 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27760 if ${ac_cv_search_xdrmem_create+:} false
; then :
27761 $as_echo_n "(cached) " >&6
27763 ac_func_search_save_LIBS
=$LIBS
27764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h. */
27767 /* Override any GCC internal prototype to avoid an error.
27768 Use char because int might match the return type of a GCC
27769 builtin and then its argument prototype would still apply. */
27773 char xdrmem_create ();
27777 return xdrmem_create ();
27782 for ac_lib
in '' tirpc
; do
27783 if test -z "$ac_lib"; then
27784 ac_res
="none required"
27787 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27789 if ac_fn_c_try_link
"$LINENO"; then :
27790 ac_cv_search_xdrmem_create
=$ac_res
27792 rm -f core conftest.err conftest.
$ac_objext \
27794 if ${ac_cv_search_xdrmem_create+:} false
; then :
27798 if ${ac_cv_search_xdrmem_create+:} false
; then :
27801 ac_cv_search_xdrmem_create
=no
27803 rm conftest.
$ac_ext
27804 LIBS
=$ac_func_search_save_LIBS
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27807 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27808 ac_res
=$ac_cv_search_xdrmem_create
27809 if test "$ac_res" != no
; then :
27810 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27816 as_fn_error $?
"xdrmem_create() requires tirpc or libc
27817 See \`config.log' for more details" "$LINENO" 5; }
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27825 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27826 if ${ac_cv_search_xdrmem_create+:} false
; then :
27827 $as_echo_n "(cached) " >&6
27829 ac_func_search_save_LIBS
=$LIBS
27830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27833 /* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27839 char xdrmem_create ();
27843 return xdrmem_create ();
27848 for ac_lib
in '' tirpc
; do
27849 if test -z "$ac_lib"; then
27850 ac_res
="none required"
27853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27855 if ac_fn_c_try_link
"$LINENO"; then :
27856 ac_cv_search_xdrmem_create
=$ac_res
27858 rm -f core conftest.err conftest.
$ac_objext \
27860 if ${ac_cv_search_xdrmem_create+:} false
; then :
27864 if ${ac_cv_search_xdrmem_create+:} false
; then :
27867 ac_cv_search_xdrmem_create
=no
27869 rm conftest.
$ac_ext
27870 LIBS
=$ac_func_search_save_LIBS
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27873 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27874 ac_res
=$ac_cv_search_xdrmem_create
27875 if test "$ac_res" != no
; then :
27876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27882 as_fn_error $?
"xdrmem_create() requires libc
27883 See \`config.log' for more details" "$LINENO" 5; }
27892 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27893 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
27896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27899 *** blkid.h missing, libblkid-devel package required
27900 See \`config.log' for more details" "$LINENO" 5; }
27908 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27914 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27915 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
27918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27921 *** attr/xattr.h missing, libattr-devel package required
27922 See \`config.log' for more details" "$LINENO" 5; }
27930 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27936 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27937 if test "x$ac_cv_header_libudev_h" = xyes
; then :
27943 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27955 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27956 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27957 $as_echo_n "(cached) " >&6
27959 ac_func_search_save_LIBS
=$LIBS
27960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h. */
27963 /* Override any GCC internal prototype to avoid an error.
27964 Use char because int might match the return type of a GCC
27965 builtin and then its argument prototype would still apply. */
27969 char udev_device_get_is_initialized ();
27973 return udev_device_get_is_initialized ();
27978 for ac_lib
in '' udev
; do
27979 if test -z "$ac_lib"; then
27980 ac_res
="none required"
27983 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27985 if ac_fn_c_try_link
"$LINENO"; then :
27986 ac_cv_search_udev_device_get_is_initialized
=$ac_res
27988 rm -f core conftest.err conftest.
$ac_objext \
27990 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27994 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27997 ac_cv_search_udev_device_get_is_initialized
=no
27999 rm conftest.
$ac_ext
28000 LIBS
=$ac_func_search_save_LIBS
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
28003 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
28004 ac_res
=$ac_cv_search_udev_device_get_is_initialized
28005 if test "$ac_res" != no
; then :
28006 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28009 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
28018 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
28019 if test "x$ac_cv_header_libaio_h" = xyes
; then :
28025 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
28038 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
28040 saved_flags
="$CFLAGS"
28041 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
28043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h. */
28054 if ac_fn_c_try_compile
"$LINENO"; then :
28056 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28058 $as_echo "yes" >&6; }
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28064 $as_echo "no" >&6; }
28067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28069 CFLAGS
="$saved_flags"
28073 if test "x$runstatedir" = x
; then
28074 runstatedir
='${localstatedir}/run'
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
28080 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
28081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28082 /* end confdefs.h. */
28084 #include <sys/sysmacros.h>
28097 if ac_fn_c_try_compile
"$LINENO"; then :
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28100 $as_echo "yes" >&6; }
28102 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 $as_echo "no" >&6; }
28111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
28115 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
28116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28117 /* end confdefs.h. */
28119 #include <sys/mkdev.h>
28132 if ac_fn_c_try_compile
"$LINENO"; then :
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28135 $as_echo "yes" >&6; }
28137 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28143 $as_echo "no" >&6; }
28146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
28150 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
28152 saved_flags
="$CFLAGS"
28153 CFLAGS
="$CFLAGS -Wno-format-truncation"
28155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28156 /* end confdefs.h. */
28166 if ac_fn_c_try_compile
"$LINENO"; then :
28168 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28170 $as_echo "yes" >&6; }
28174 NO_FORMAT_TRUNCATION
=
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28176 $as_echo "no" >&6; }
28179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28181 CFLAGS
="$saved_flags"
28186 ZONENAME
="echo global"
28192 for ac_func
in mlockall
28194 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
28195 if test "x$ac_cv_func_mlockall" = xyes
; then :
28196 cat >>confdefs.h
<<_ACEOF
28197 #define HAVE_MLOCKALL 1
28207 # Check whether --with-linux was given.
28208 if test "${with_linux+set}" = set; then :
28209 withval
=$with_linux; kernelsrc
="$withval"
28214 # Check whether --with-linux-obj was given.
28215 if test "${with_linux_obj+set}" = set; then :
28216 withval
=$with_linux_obj; kernelbuild
="$withval"
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28221 $as_echo_n "checking kernel source directory... " >&6; }
28222 if test -z "$kernelsrc"; then :
28224 if test -e "/lib/modules/$(uname -r)/source"; then :
28226 headersdir
="/lib/modules/$(uname -r)/source"
28227 sourcelink
=$
(readlink
-f "$headersdir")
28229 elif test -e "/lib/modules/$(uname -r)/build"; then :
28231 headersdir
="/lib/modules/$(uname -r)/build"
28232 sourcelink
=$
(readlink
-f "$headersdir")
28236 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
28238 2>/dev
/null |
grep -v obj |
tail -1)
28242 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28244 kernelsrc
=`readlink -f ${sourcelink}`
28248 kernelsrc
="Not found"
28254 if test "$kernelsrc" = "NONE"; then :
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28264 $as_echo "$kernelsrc" >&6; }
28265 if test ! -d "$kernelsrc"; then :
28268 *** Please make sure the kernel devel package for your distribution
28269 *** is installed and then try again. If that fails, you can specify the
28270 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28275 $as_echo_n "checking kernel build directory... " >&6; }
28276 if test -z "$kernelbuild"; then :
28278 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
28280 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
28282 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28284 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28286 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
28288 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
28290 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
28292 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
28296 kernelbuild
=${kernelsrc}
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28302 $as_echo "$kernelbuild" >&6; }
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28305 $as_echo_n "checking kernel source version... " >&6; }
28306 utsrelease1
=$kernelbuild/include
/linux
/version.h
28307 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
28308 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
28309 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
28311 utsrelease
=linux
/version.h
28313 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
28315 utsrelease
=linux
/utsrelease.h
28317 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
28319 utsrelease
=generated
/utsrelease.h
28323 if test "$utsrelease"; then :
28325 kernsrcver
=`(echo "#include <$utsrelease>";
28326 echo "kernsrcver=UTS_RELEASE") |
28327 cpp -I $kernelbuild/include |
28328 grep "^kernsrcver=" | cut -d \" -f 2`
28330 if test -z "$kernsrcver"; then :
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28333 $as_echo "Not found" >&6; }
28334 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28341 $as_echo "Not found" >&6; }
28342 if test "x$enable_linux_builtin" != xyes
; then
28343 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28346 *** Cannot find UTS_RELEASE definition.
28347 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28353 $as_echo "$kernsrcver" >&6; }
28356 LINUX_OBJ
=${kernelbuild}
28357 LINUX_VERSION
=${kernsrcver}
28364 modpost
=$LINUX/scripts
/Makefile.modpost
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28366 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28367 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
28369 if grep -q Modules.symvers
$modpost; then :
28371 LINUX_SYMBOLS
=Modules.symvers
28375 LINUX_SYMBOLS
=Module.symvers
28379 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28382 *** Please make sure the kernel devel package for your distribution
28383 *** is installed. If you are building with a custom kernel, make sure the
28384 *** kernel is configured, built, and the '--with-linux=PATH' configure
28385 *** option refers to the location of the kernel source." "$LINENO" 5
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28395 $as_echo "$LINUX_SYMBOLS" >&6; }
28401 # Check whether --with-spl was given.
28402 if test "${with_spl+set}" = set; then :
28403 withval
=$with_spl; if test "$withval" = "yes"; then :
28404 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
28412 # Check whether --with-spl-obj was given.
28413 if test "${with_spl_obj+set}" = set; then :
28414 withval
=$with_spl_obj; splbuild
="$withval"
28419 # Check whether --with-spl-timeout was given.
28420 if test "${with_spl_timeout+set}" = set; then :
28421 withval
=$with_spl_timeout; timeout
="$withval"
28427 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
28428 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28429 splsrc2
="/usr/local/src/spl-${VERSION}"
28430 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28431 splsrc4
="/usr/src/spl-${VERSION}"
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28436 $as_echo_n "checking spl source directory... " >&6; }
28437 if test -z "${splsrc}"; then :
28447 if test -e "${splsrc0}/spl.release.in"; then :
28451 elif test -e "${splsrc1}/spl.release.in"; then :
28455 elif test -e "${splsrc2}/spl.release.in"; then :
28459 elif test -e "${splsrc3}/spl.release.in"; then :
28461 splsrc
=$
(readlink
-f "${splsrc3}")
28463 elif test -e "${splsrc4}/spl.release.in" ; then :
28467 elif test -e "${splsrc5}/spl.release.in"; then :
28469 splsrc
=$
(readlink
-f "${splsrc5}")
28471 elif test -e "${splsrc6}/spl.release.in" ; then :
28483 all_spl_sources
="$withval",
28484 if test "$splsrc" = "NONE"; then :
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28494 $as_echo "$splsrc" >&6; }
28495 if test ! -e "$splsrc/spl.release.in"; then :
28498 *** Please make sure the kmod spl devel package for your distribution
28499 *** is installed then try again. If that fails you can specify the
28500 *** location of the spl source with the '--with-spl=PATH' option.
28501 *** The spl version must match the version of ZFS you are building,
28502 *** ${VERSION}. Failed to find spl.release.in in the following:
28503 $all_spl_sources" "$LINENO" 5
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28508 $as_echo_n "checking spl build directory... " >&6; }
28510 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
28514 if test -z "$splbuild"; then :
28516 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28518 splbuild
="${splsrc}/${LINUX_VERSION}"
28520 elif test -e "${splsrc}/spl_config.h" ; then :
28522 splbuild
="${splsrc}"
28524 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
28526 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
28530 splbuild
="Not found"
28535 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28542 timeout
=$
((timeout-1
))
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28548 $as_echo "$splbuild" >&6; }
28549 if ! test -e "$splbuild/spl_config.h"; then :
28552 *** Please make sure the kmod spl devel <kernel> package for your
28553 *** distribution is installed then try again. If that fails you
28554 *** can specify the location of the spl objects with the
28555 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28556 *** any of the following:
28557 $all_spl_config_locs" "$LINENO" 5
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28562 $as_echo_n "checking spl source version... " >&6; }
28563 if test -r $splbuild/spl_config.h
&&
28564 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
28567 splsrcver
=`(echo "#include <spl_config.h>";
28568 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28570 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28574 if test -z "$splsrcver"; then :
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28577 $as_echo "Not found" >&6; }
28579 *** Cannot determine the version of the spl source.
28580 *** Please prepare the spl source before running this script" "$LINENO" 5
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28585 $as_echo "$splsrcver" >&6; }
28588 SPL_OBJ
=${splbuild}
28589 SPL_VERSION
=${splsrcver}
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28596 $as_echo_n "checking spl file name for module symbols... " >&6; }
28600 if test -r $SPL_OBJ/Module.symvers
; then :
28602 SPL_SYMBOLS
=Module.symvers
28604 elif test -r $SPL_OBJ/Modules.symvers
; then :
28606 SPL_SYMBOLS
=Modules.symvers
28608 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
28610 SPL_SYMBOLS
=Module.symvers
28612 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
28614 SPL_SYMBOLS
=Modules.symvers
28618 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
28625 timeout
=$
((timeout-1
))
28630 if test "$SPL_SYMBOLS" = NONE
; then :
28632 SPL_SYMBOLS
=$LINUX_SYMBOLS
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28637 $as_echo "$SPL_SYMBOLS" >&6; }
28642 # Check whether --with-qat was given.
28643 if test "${with_qat+set}" = set; then :
28644 withval
=$with_qat; if test "$withval" = "yes"; then :
28645 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
28653 # Check whether --with-qat-obj was given.
28654 if test "${with_qat_obj+set}" = set; then :
28655 withval
=$with_qat_obj; qatbuild
="$withval"
28659 if test ! -z "${qatsrc}"; then :
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28662 $as_echo_n "checking qat source directory... " >&6; }
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28664 $as_echo "$qatsrc" >&6; }
28665 QAT_SRC
="${qatsrc}/quickassist"
28666 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28669 *** Please make sure the qat driver package is installed
28670 *** and specify the location of the qat source with the
28671 *** '--with-qat=PATH' option then try again. Failed to
28673 ${QAT_SRC}/include" "$LINENO" 5
28679 if test ! -z "${qatsrc}"; then :
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28682 $as_echo_n "checking qat build directory... " >&6; }
28683 if test -z "$qatbuild"; then :
28685 qatbuild
="${qatsrc}/build"
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28690 $as_echo "$qatbuild" >&6; }
28691 QAT_OBJ
=${qatbuild}
28692 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
28695 *** Please make sure the qat driver is installed then try again.
28696 *** Failed to find icp_qa_al.ko or qat_api.ko in:
28697 $QAT_OBJ" "$LINENO" 5
28705 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28710 if test ! -z "${qatsrc}"; then :
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28713 $as_echo_n "checking qat file for module symbols... " >&6; }
28714 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
28716 if test -r $QAT_SYMBOLS; then :
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28719 $as_echo "$QAT_SYMBOLS" >&6; }
28725 *** Please make sure the qat driver is installed then try again.
28726 *** Failed to find Module.symvers in:
28727 $QAT_SYMBOLS" "$LINENO" 5
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28735 $as_echo_n "checking whether modules can be built... " >&6; }
28738 cat confdefs.h
- <<_ACEOF >conftest.c
28753 cat - <<_ACEOF >conftest.h
28758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28759 echo "obj-m := conftest.o" >build
/Makefile
28761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28764 (eval $ac_try) 2>&5
28766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28769 (eval $ac_try) 2>&5
28771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28772 test $ac_status = 0; }; }; then :
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28775 $as_echo "yes" >&6; }
28778 $as_echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.
$ac_ext >&5
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28782 $as_echo "no" >&6; }
28783 if test "x$enable_linux_builtin" != xyes
; then
28784 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
28787 *** Unable to build an empty module.
28788 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28800 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28803 cat confdefs.h
- <<_ACEOF >conftest.c
28806 #undef __ASSEMBLY__
28807 #include <asm/frame.h>
28813 #if !defined(FRAME_BEGIN)
28825 cat - <<_ACEOF >conftest.h
28830 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28831 echo "obj-m := conftest.o" >build
/Makefile
28833 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28834 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28836 (eval $ac_try) 2>&5
28838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28839 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28841 (eval $ac_try) 2>&5
28843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28844 test $ac_status = 0; }; }; then :
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28847 $as_echo "yes" >&6; }
28849 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28853 $as_echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.
$ac_ext >&5
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28857 $as_echo "no" >&6; }
28867 if test "x$cross_compiling" != xyes
; then :
28869 if test "$cross_compiling" = yes; then :
28870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28872 as_fn_error $?
"cannot run test program while cross compiling
28873 See \`config.log' for more details" "$LINENO" 5; }
28875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28876 /* end confdefs.h. */
28879 #include "$LINUX/include/linux/license.h"
28885 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28892 if ac_fn_c_try_run
"$LINENO"; then :
28895 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28908 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28911 cat confdefs.h
- <<_ACEOF >conftest.c
28914 #include <linux/module.h>
28920 #if (THREAD_SIZE < 16384)
28921 #error "THREAD_SIZE is less than 16K"
28932 cat - <<_ACEOF >conftest.h
28937 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28938 echo "obj-m := conftest.o" >build
/Makefile
28940 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28941 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28943 (eval $ac_try) 2>&5
28945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28946 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28948 (eval $ac_try) 2>&5
28950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28951 test $ac_status = 0; }; }; then :
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28954 $as_echo "yes" >&6; }
28956 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28960 $as_echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.
$ac_ext >&5
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28964 $as_echo "no" >&6; }
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
28976 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
28979 cat confdefs.h
- <<_ACEOF >conftest.c
28982 #include <linux/module.h>
28988 #ifndef CONFIG_DEBUG_LOCK_ALLOC
28989 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
29000 cat - <<_ACEOF >conftest.h
29005 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29006 echo "obj-m := conftest.o" >build
/Makefile
29008 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29009 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29011 (eval $ac_try) 2>&5
29013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29014 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29016 (eval $ac_try) 2>&5
29018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29019 test $ac_status = 0; }; }; then :
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29022 $as_echo "yes" >&6; }
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
29025 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
29026 tmp_flags
="$EXTRA_KCFLAGS"
29029 cat confdefs.h
- <<_ACEOF >conftest.c
29032 #include <linux/module.h>
29033 #include <linux/mutex.h>
29035 MODULE_LICENSE("$ZFS_META_LICENSE");
29045 mutex_unlock(&lock);
29055 cat - <<_ACEOF >conftest.h
29060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29061 echo "obj-m := conftest.o" >build
/Makefile
29063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29066 (eval $ac_try) 2>&5
29068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }; then :
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29077 $as_echo "no" >&6; }
29080 $as_echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.
$ac_ext >&5
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29084 $as_echo "yes" >&6; }
29086 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
29087 *** with the CDDL license and will prevent the module linking stage
29088 *** from succeeding. You must rebuild your kernel without this
29089 *** option enabled." "$LINENO" 5
29097 EXTRA_KCFLAGS
="$tmp_flags"
29101 $as_echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.
$ac_ext >&5
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29105 $as_echo "no" >&6; }
29118 tmp_flags
="$EXTRA_KCFLAGS"
29119 EXTRA_KCFLAGS
="-I\$(src)"
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
29122 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
29125 cat confdefs.h
- <<_ACEOF >conftest.c
29128 #include <linux/module.h>
29129 MODULE_LICENSE(ZFS_META_LICENSE);
29131 #define CREATE_TRACE_POINTS
29132 #include "conftest.h"
29138 trace_zfs_autoconf_event_one(1UL);
29139 trace_zfs_autoconf_event_two(2UL);
29149 cat - <<_ACEOF >conftest.h
29151 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
29152 #define _CONFTEST_H
29154 #undef TRACE_SYSTEM
29155 #define TRACE_SYSTEM zfs
29156 #include <linux/tracepoint.h>
29158 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
29159 TP_PROTO(unsigned long i),
29162 __field(unsigned long, i)
29167 TP_printk("i = %lu", __entry->i)
29170 #define DEFINE_AUTOCONF_EVENT(name) \
29171 DEFINE_EVENT(zfs_autoconf_event_class, name, \
29172 TP_PROTO(unsigned long i), \
29174 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
29175 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
29177 #endif /* _CONFTEST_H */
29179 #undef TRACE_INCLUDE_PATH
29180 #define TRACE_INCLUDE_PATH .
29181 #define TRACE_INCLUDE_FILE conftest
29182 #include <trace/define_trace.h>
29187 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29188 echo "obj-m := conftest.o" >build
/Makefile
29190 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29191 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29193 (eval $ac_try) 2>&5
29195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29198 (eval $ac_try) 2>&5
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; }; then :
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29206 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
29210 $as_echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.
$ac_ext >&5
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29214 $as_echo "no" >&6; }
29222 EXTRA_KCFLAGS
="$tmp_flags"
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29226 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29229 cat confdefs.h
- <<_ACEOF >conftest.c
29232 #include <linux/sched.h>
29238 current->bio_tail = (struct bio **) NULL;
29248 cat - <<_ACEOF >conftest.h
29253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29254 echo "obj-m := conftest.o" >build
/Makefile
29256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29259 (eval $ac_try) 2>&5
29261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29262 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29264 (eval $ac_try) 2>&5
29266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29267 test $ac_status = 0; }; }; then :
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29270 $as_echo "yes" >&6; }
29272 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29276 $as_echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.
$ac_ext >&5
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29280 $as_echo "no" >&6; }
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29282 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29285 cat confdefs.h
- <<_ACEOF >conftest.c
29288 #include <linux/sched.h>
29294 current->bio_list = (struct bio_list *) NULL;
29304 cat - <<_ACEOF >conftest.h
29309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29310 echo "obj-m := conftest.o" >build
/Makefile
29312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29315 (eval $ac_try) 2>&5
29317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29320 (eval $ac_try) 2>&5
29322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29323 test $ac_status = 0; }; }; then :
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29326 $as_echo "yes" >&6; }
29328 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29332 $as_echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.
$ac_ext >&5
29335 as_fn_error $?
"no - Please file a bug report at
29336 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29354 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29357 cat confdefs.h
- <<_ACEOF >conftest.c
29360 #include <linux/fs.h>
29361 #include <linux/user_namespace.h>
29367 struct super_block super;
29368 super.s_user_ns = (struct user_namespace *)NULL;
29378 cat - <<_ACEOF >conftest.h
29383 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29384 echo "obj-m := conftest.o" >build
/Makefile
29386 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29387 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29389 (eval $ac_try) 2>&5
29391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29392 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29394 (eval $ac_try) 2>&5
29396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29397 test $ac_status = 0; }; }; then :
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400 $as_echo "yes" >&6; }
29402 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29406 $as_echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.
$ac_ext >&5
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410 $as_echo "no" >&6; }
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29421 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29424 cat confdefs.h
- <<_ACEOF >conftest.c
29427 #include <linux/bio.h>
29434 struct bio *bio = NULL;
29435 blk_qc = submit_bio(bio);
29445 cat - <<_ACEOF >conftest.h
29450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29451 echo "obj-m := conftest.o" >build
/Makefile
29453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29456 (eval $ac_try) 2>&5
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29461 (eval $ac_try) 2>&5
29463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29464 test $ac_status = 0; }; }; then :
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467 $as_echo "yes" >&6; }
29469 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29473 $as_echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.
$ac_ext >&5
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29477 $as_echo "no" >&6; }
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29488 $as_echo_n "checking block device operation prototypes... " >&6; }
29489 tmp_flags
="$EXTRA_KCFLAGS"
29490 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29493 cat confdefs.h
- <<_ACEOF >conftest.c
29496 #include <linux/blkdev.h>
29498 int blk_open(struct block_device *bdev, fmode_t mode)
29500 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29501 unsigned x, unsigned long y) { return 0; }
29502 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29503 unsigned x, unsigned long y) { return 0; }
29505 static const struct block_device_operations
29506 bops __attribute__ ((unused)) = {
29509 .ioctl = blk_ioctl,
29510 .compat_ioctl = blk_compat_ioctl,
29526 cat - <<_ACEOF >conftest.h
29531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29532 echo "obj-m := conftest.o" >build
/Makefile
29534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29535 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29537 (eval $ac_try) 2>&5
29539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29540 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29542 (eval $ac_try) 2>&5
29544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29545 test $ac_status = 0; }; }; then :
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29548 $as_echo "struct block_device" >&6; }
29550 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29554 $as_echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.
$ac_ext >&5
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29558 $as_echo "struct inode" >&6; }
29566 EXTRA_KCFLAGS
="$tmp_flags"
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29570 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29571 tmp_flags
="$EXTRA_KCFLAGS"
29572 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29575 cat confdefs.h
- <<_ACEOF >conftest.c
29578 #include <linux/blkdev.h>
29580 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29582 static const struct block_device_operations
29583 bops __attribute__ ((unused)) = {
29585 .release = blk_release,
29587 .compat_ioctl = NULL,
29603 cat - <<_ACEOF >conftest.h
29608 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29609 echo "obj-m := conftest.o" >build
/Makefile
29611 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29612 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29614 (eval $ac_try) 2>&5
29616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29617 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29619 (eval $ac_try) 2>&5
29621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29622 test $ac_status = 0; }; }; then :
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29625 $as_echo "void" >&6; }
29627 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.
$ac_ext >&5
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29635 $as_echo "int" >&6; }
29643 EXTRA_KCFLAGS
="$tmp_flags"
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29646 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29649 cat confdefs.h
- <<_ACEOF >conftest.c
29652 #include <linux/types.h>
29658 fmode_t *ptr __attribute__ ((unused));
29668 cat - <<_ACEOF >conftest.h
29673 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29674 echo "obj-m := conftest.o" >build
/Makefile
29676 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29677 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29679 (eval $ac_try) 2>&5
29681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29684 (eval $ac_try) 2>&5
29686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29687 test $ac_status = 0; }; }; then :
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690 $as_echo "yes" >&6; }
29692 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29696 $as_echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.
$ac_ext >&5
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700 $as_echo "no" >&6; }
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29711 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29714 cat confdefs.h
- <<_ACEOF >conftest.c
29717 #include <linux/fs.h>
29723 struct block_device *bdev = NULL;
29724 (void) blkdev_get(bdev, 0, NULL);
29734 cat - <<_ACEOF >conftest.h
29739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29740 echo "obj-m := conftest.o" >build
/Makefile
29742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29745 (eval $ac_try) 2>&5
29747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29750 (eval $ac_try) 2>&5
29752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29753 test $ac_status = 0; }; }; then :
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29756 $as_echo "yes" >&6; }
29758 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29762 $as_echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.
$ac_ext >&5
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29766 $as_echo "no" >&6; }
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29776 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29780 cat confdefs.h
- <<_ACEOF >conftest.c
29783 #include <linux/fs.h>
29789 blkdev_get_by_path(NULL, 0, NULL);
29799 cat - <<_ACEOF >conftest.h
29804 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29805 echo "obj-m := conftest.o" >build
/Makefile
29807 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29808 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29810 (eval $ac_try) 2>&5
29812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29813 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29815 (eval $ac_try) 2>&5
29817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29818 test $ac_status = 0; }; }; then :
29821 $as_echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.
$ac_ext >&5
29830 if test $rc -ne 0; then :
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29833 $as_echo "no" >&6; }
29836 if test "x$enable_linux_builtin" != xyes
; then
29838 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29839 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29841 if test $rc -ne 0; then
29843 for file in fs
/block_dev.c
; do
29844 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29845 "$LINUX/$file" 2>/dev
/null
29847 if test $rc -eq 0; then
29852 if test $export -eq 0; then :
29862 if test $rc -ne 0; then :
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29865 $as_echo "no" >&6; }
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29870 $as_echo "yes" >&6; }
29872 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29880 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29884 cat confdefs.h
- <<_ACEOF >conftest.c
29887 #include <linux/fs.h>
29893 open_bdev_exclusive(NULL, 0, NULL);
29903 cat - <<_ACEOF >conftest.h
29908 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29909 echo "obj-m := conftest.o" >build
/Makefile
29911 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29912 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29914 (eval $ac_try) 2>&5
29916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29917 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29919 (eval $ac_try) 2>&5
29921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29922 test $ac_status = 0; }; }; then :
29925 $as_echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.
$ac_ext >&5
29934 if test $rc -ne 0; then :
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29937 $as_echo "no" >&6; }
29940 if test "x$enable_linux_builtin" != xyes
; then
29942 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29945 if test $rc -ne 0; then
29947 for file in fs
/block_dev.c
; do
29948 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29949 "$LINUX/$file" 2>/dev
/null
29951 if test $rc -eq 0; then
29956 if test $export -eq 0; then :
29966 if test $rc -ne 0; then :
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29969 $as_echo "no" >&6; }
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29974 $as_echo "yes" >&6; }
29976 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
29984 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
29988 cat confdefs.h
- <<_ACEOF >conftest.c
29991 #include <linux/fs.h>
30007 cat - <<_ACEOF >conftest.h
30012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30013 echo "obj-m := conftest.o" >build
/Makefile
30015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30018 (eval $ac_try) 2>&5
30020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30023 (eval $ac_try) 2>&5
30025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30026 test $ac_status = 0; }; }; then :
30029 $as_echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.
$ac_ext >&5
30038 if test $rc -ne 0; then :
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30043 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30047 cat confdefs.h
- <<_ACEOF >conftest.c
30050 #include <linux/fs.h>
30056 lookup_bdev(NULL, FMODE_READ);
30066 cat - <<_ACEOF >conftest.h
30071 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30072 echo "obj-m := conftest.o" >build
/Makefile
30074 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30075 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30077 (eval $ac_try) 2>&5
30079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30080 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30082 (eval $ac_try) 2>&5
30084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30085 test $ac_status = 0; }; }; then :
30088 $as_echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.
$ac_ext >&5
30097 if test $rc -ne 0; then :
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30100 $as_echo "no" >&6; }
30103 if test "x$enable_linux_builtin" != xyes
; then
30105 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30106 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30108 if test $rc -ne 0; then
30110 for file in fs
/block_dev.c
; do
30111 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30112 "$LINUX/$file" 2>/dev
/null
30114 if test $rc -eq 0; then
30119 if test $export -eq 0; then :
30129 if test $rc -ne 0; then :
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137 $as_echo "yes" >&6; }
30139 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30147 if test "x$enable_linux_builtin" != xyes
; then
30149 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30150 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30152 if test $rc -ne 0; then
30154 for file in fs
/block_dev.c
; do
30155 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30156 "$LINUX/$file" 2>/dev
/null
30158 if test $rc -eq 0; then
30163 if test $export -eq 0; then :
30173 if test $rc -ne 0; then :
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176 $as_echo "no" >&6; }
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30178 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30182 cat confdefs.h
- <<_ACEOF >conftest.c
30185 #include <linux/fs.h>
30191 lookup_bdev(NULL, FMODE_READ);
30201 cat - <<_ACEOF >conftest.h
30206 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30207 echo "obj-m := conftest.o" >build
/Makefile
30209 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30210 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30212 (eval $ac_try) 2>&5
30214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30215 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30217 (eval $ac_try) 2>&5
30219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30220 test $ac_status = 0; }; }; then :
30223 $as_echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.
$ac_ext >&5
30232 if test $rc -ne 0; then :
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30238 if test "x$enable_linux_builtin" != xyes
; then
30240 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30241 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30243 if test $rc -ne 0; then
30245 for file in fs
/block_dev.c
; do
30246 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30247 "$LINUX/$file" 2>/dev
/null
30249 if test $rc -eq 0; then
30254 if test $export -eq 0; then :
30264 if test $rc -ne 0; then :
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30272 $as_echo "yes" >&6; }
30274 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30284 $as_echo "yes" >&6; }
30286 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30295 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30298 cat confdefs.h
- <<_ACEOF >conftest.c
30301 #include <linux/buffer_head.h>
30307 struct block_device *bdev = NULL;
30308 invalidate_bdev(bdev);
30318 cat - <<_ACEOF >conftest.h
30323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30324 echo "obj-m := conftest.o" >build
/Makefile
30326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30327 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30329 (eval $ac_try) 2>&5
30331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30334 (eval $ac_try) 2>&5
30336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30337 test $ac_status = 0; }; }; then :
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30340 $as_echo "yes" >&6; }
30342 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30346 $as_echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.
$ac_ext >&5
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30350 $as_echo "no" >&6; }
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30361 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30362 tmp_flags
="$EXTRA_KCFLAGS"
30363 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30366 cat confdefs.h
- <<_ACEOF >conftest.c
30369 #include <linux/blkdev.h>
30375 struct block_device *bdev = NULL;
30376 bdev_logical_block_size(bdev);
30386 cat - <<_ACEOF >conftest.h
30391 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30392 echo "obj-m := conftest.o" >build
/Makefile
30394 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30395 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30397 (eval $ac_try) 2>&5
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30402 (eval $ac_try) 2>&5
30404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30405 test $ac_status = 0; }; }; then :
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30408 $as_echo "yes" >&6; }
30410 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30414 $as_echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.
$ac_ext >&5
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30418 $as_echo "no" >&6; }
30426 EXTRA_KCFLAGS
="$tmp_flags"
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30430 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30431 tmp_flags
="$EXTRA_KCFLAGS"
30432 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30435 cat confdefs.h
- <<_ACEOF >conftest.c
30438 #include <linux/blkdev.h>
30444 struct block_device *bdev = NULL;
30445 bdev_physical_block_size(bdev);
30455 cat - <<_ACEOF >conftest.h
30460 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30461 echo "obj-m := conftest.o" >build
/Makefile
30463 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30464 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30466 (eval $ac_try) 2>&5
30468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30469 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30471 (eval $ac_try) 2>&5
30473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30474 test $ac_status = 0; }; }; then :
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30477 $as_echo "yes" >&6; }
30479 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30483 $as_echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.
$ac_ext >&5
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30495 EXTRA_KCFLAGS
="$tmp_flags"
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30499 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30502 cat confdefs.h
- <<_ACEOF >conftest.c
30505 #include <linux/bio.h>
30512 bio.bi_iter.bi_sector = 0;
30522 cat - <<_ACEOF >conftest.h
30527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30528 echo "obj-m := conftest.o" >build
/Makefile
30530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30533 (eval $ac_try) 2>&5
30535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30538 (eval $ac_try) 2>&5
30540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30541 test $ac_status = 0; }; }; then :
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30544 $as_echo "yes" >&6; }
30546 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30550 $as_echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.
$ac_ext >&5
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30554 $as_echo "no" >&6; }
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30565 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30568 cat confdefs.h
- <<_ACEOF >conftest.c
30571 #include <linux/bio.h>
30577 int flags __attribute__ ((unused));
30578 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30579 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30580 (1 << BIO_RW_FAILFAST_DRIVER));
30590 cat - <<_ACEOF >conftest.h
30595 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30596 echo "obj-m := conftest.o" >build
/Makefile
30598 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30599 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30601 (eval $ac_try) 2>&5
30603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30604 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30606 (eval $ac_try) 2>&5
30608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609 test $ac_status = 0; }; }; then :
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30612 $as_echo "yes" >&6; }
30614 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30618 $as_echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.
$ac_ext >&5
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622 $as_echo "no" >&6; }
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30633 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30636 cat confdefs.h
- <<_ACEOF >conftest.c
30639 #include <linux/bio.h>
30640 #include <linux/fs.h>
30646 struct block_device *bdev = NULL;
30647 struct bio *bio = NULL;
30648 bio_set_dev(bio, bdev);
30658 cat - <<_ACEOF >conftest.h
30663 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30664 echo "obj-m := conftest.o" >build
/Makefile
30666 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30667 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30669 (eval $ac_try) 2>&5
30671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30672 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30674 (eval $ac_try) 2>&5
30676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30677 test $ac_status = 0; }; }; then :
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30680 $as_echo "yes" >&6; }
30682 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30686 $as_echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.
$ac_ext >&5
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690 $as_echo "no" >&6; }
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30701 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30704 cat confdefs.h
- <<_ACEOF >conftest.c
30707 #include <linux/bio.h>
30713 int flags __attribute__ ((unused));
30714 flags = REQ_FAILFAST_MASK;
30724 cat - <<_ACEOF >conftest.h
30729 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30730 echo "obj-m := conftest.o" >build
/Makefile
30732 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30733 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30735 (eval $ac_try) 2>&5
30737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30738 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30740 (eval $ac_try) 2>&5
30742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743 test $ac_status = 0; }; }; then :
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746 $as_echo "yes" >&6; }
30748 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30752 $as_echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.
$ac_ext >&5
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30756 $as_echo "no" >&6; }
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30767 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30770 cat confdefs.h
- <<_ACEOF >conftest.c
30773 #include <linux/blk_types.h>
30779 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30789 cat - <<_ACEOF >conftest.h
30794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30795 echo "obj-m := conftest.o" >build
/Makefile
30797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30800 (eval $ac_try) 2>&5
30802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30803 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30805 (eval $ac_try) 2>&5
30807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808 test $ac_status = 0; }; }; then :
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30811 $as_echo "yes" >&6; }
30813 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30817 $as_echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.
$ac_ext >&5
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30821 $as_echo "no" >&6; }
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30832 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30835 cat confdefs.h
- <<_ACEOF >conftest.c
30838 #include <linux/blk_types.h>
30844 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30854 cat - <<_ACEOF >conftest.h
30859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30860 echo "obj-m := conftest.o" >build
/Makefile
30862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30865 (eval $ac_try) 2>&5
30867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30870 (eval $ac_try) 2>&5
30872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30873 test $ac_status = 0; }; }; then :
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30876 $as_echo "yes" >&6; }
30878 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30882 $as_echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.
$ac_ext >&5
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30886 $as_echo "no" >&6; }
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30897 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30900 cat confdefs.h
- <<_ACEOF >conftest.c
30903 #include <linux/blk_types.h>
30909 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30919 cat - <<_ACEOF >conftest.h
30924 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30925 echo "obj-m := conftest.o" >build
/Makefile
30927 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30928 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30930 (eval $ac_try) 2>&5
30932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30933 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30935 (eval $ac_try) 2>&5
30937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938 test $ac_status = 0; }; }; then :
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30941 $as_echo "yes" >&6; }
30943 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30947 $as_echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.
$ac_ext >&5
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30951 $as_echo "no" >&6; }
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30962 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30965 cat confdefs.h
- <<_ACEOF >conftest.c
30968 #include <linux/bio.h>
30974 struct bio bio __attribute__ ((unused));
30985 cat - <<_ACEOF >conftest.h
30990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30991 echo "obj-m := conftest.o" >build
/Makefile
30993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30996 (eval $ac_try) 2>&5
30998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31001 (eval $ac_try) 2>&5
31003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31004 test $ac_status = 0; }; }; then :
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31007 $as_echo "yes" >&6; }
31009 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
31013 $as_echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.
$ac_ext >&5
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31017 $as_echo "no" >&6; }
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
31028 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
31031 cat confdefs.h
- <<_ACEOF >conftest.c
31034 #include <linux/bio.h>
31036 void wanted_end_io(struct bio *bio) { return; }
31038 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
31053 cat - <<_ACEOF >conftest.h
31058 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31059 echo "obj-m := conftest.o" >build
/Makefile
31061 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31062 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31064 (eval $ac_try) 2>&5
31066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31067 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31069 (eval $ac_try) 2>&5
31071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31072 test $ac_status = 0; }; }; then :
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31075 $as_echo "yes" >&6; }
31077 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
31081 $as_echo "$as_me: failed program was:" >&5
31082 sed 's/^/| /' conftest.
$ac_ext >&5
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31085 $as_echo "no" >&6; }
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
31096 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
31099 cat confdefs.h
- <<_ACEOF >conftest.c
31102 #include <linux/bio.h>
31108 struct bio bio __attribute__ ((unused));
31109 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
31111 bio.bi_status = status;
31121 cat - <<_ACEOF >conftest.h
31126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31127 echo "obj-m := conftest.o" >build
/Makefile
31129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31132 (eval $ac_try) 2>&5
31134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31135 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31137 (eval $ac_try) 2>&5
31139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31140 test $ac_status = 0; }; }; then :
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31143 $as_echo "yes" >&6; }
31145 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
31149 $as_echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.
$ac_ext >&5
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153 $as_echo "no" >&6; }
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
31164 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
31167 cat confdefs.h
- <<_ACEOF >conftest.c
31170 #include <linux/bio.h>
31176 int flags __attribute__ ((unused));
31177 flags = BIO_RW_BARRIER;
31187 cat - <<_ACEOF >conftest.h
31192 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31193 echo "obj-m := conftest.o" >build
/Makefile
31195 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31196 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31198 (eval $ac_try) 2>&5
31200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31201 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31203 (eval $ac_try) 2>&5
31205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31206 test $ac_status = 0; }; }; then :
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31211 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31215 $as_echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.
$ac_ext >&5
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31219 $as_echo "no" >&6; }
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31230 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31233 cat confdefs.h
- <<_ACEOF >conftest.c
31236 #include <linux/bio.h>
31242 int flags __attribute__ ((unused));
31243 flags = BIO_RW_DISCARD;
31253 cat - <<_ACEOF >conftest.h
31258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31259 echo "obj-m := conftest.o" >build
/Makefile
31261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31264 (eval $ac_try) 2>&5
31266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31269 (eval $ac_try) 2>&5
31271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31272 test $ac_status = 0; }; }; then :
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31275 $as_echo "yes" >&6; }
31277 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31281 $as_echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.
$ac_ext >&5
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31285 $as_echo "no" >&6; }
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31296 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31299 cat confdefs.h
- <<_ACEOF >conftest.c
31302 #include <linux/blkdev.h>
31308 struct request_queue q;
31309 struct backing_dev_info bdi;
31310 q.backing_dev_info = &bdi;
31320 cat - <<_ACEOF >conftest.h
31325 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31326 echo "obj-m := conftest.o" >build
/Makefile
31328 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31329 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31331 (eval $ac_try) 2>&5
31333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31334 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31336 (eval $ac_try) 2>&5
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; }; then :
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31342 $as_echo "yes" >&6; }
31344 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31348 $as_echo "$as_me: failed program was:" >&5
31349 sed 's/^/| /' conftest.
$ac_ext >&5
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31352 $as_echo "no" >&6; }
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31363 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31364 tmp_flags
="$EXTRA_KCFLAGS"
31365 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31368 cat confdefs.h
- <<_ACEOF >conftest.c
31371 #include <linux/blkdev.h>
31377 struct request_queue *q = NULL;
31378 (void) blk_queue_flush(q, REQ_FLUSH);
31388 cat - <<_ACEOF >conftest.h
31393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31394 echo "obj-m := conftest.o" >build
/Makefile
31396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31397 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31399 (eval $ac_try) 2>&5
31401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31402 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31404 (eval $ac_try) 2>&5
31406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31407 test $ac_status = 0; }; }; then :
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31410 $as_echo "yes" >&6; }
31412 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31416 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31419 cat confdefs.h
- <<_ACEOF >conftest.c
31422 #include <linux/module.h>
31423 #include <linux/blkdev.h>
31425 MODULE_LICENSE("$ZFS_META_LICENSE");
31431 struct request_queue *q = NULL;
31432 (void) blk_queue_flush(q, REQ_FLUSH);
31442 cat - <<_ACEOF >conftest.h
31447 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31448 echo "obj-m := conftest.o" >build
/Makefile
31450 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31451 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31453 (eval $ac_try) 2>&5
31455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31456 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31464 $as_echo "no" >&6; }
31467 $as_echo "$as_me: failed program was:" >&5
31468 sed 's/^/| /' conftest.
$ac_ext >&5
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31471 $as_echo "yes" >&6; }
31473 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31484 $as_echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.
$ac_ext >&5
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31488 $as_echo "no" >&6; }
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31498 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31501 cat confdefs.h
- <<_ACEOF >conftest.c
31504 #include <linux/kernel.h>
31505 #include <linux/blkdev.h>
31512 struct request_queue *q = NULL;
31513 blk_queue_write_cache(q, true, true);
31523 cat - <<_ACEOF >conftest.h
31528 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31529 echo "obj-m := conftest.o" >build
/Makefile
31531 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31532 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31534 (eval $ac_try) 2>&5
31536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31537 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31539 (eval $ac_try) 2>&5
31541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31542 test $ac_status = 0; }; }; then :
31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31545 $as_echo "yes" >&6; }
31547 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31551 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31554 cat confdefs.h
- <<_ACEOF >conftest.c
31557 #include <linux/kernel.h>
31558 #include <linux/module.h>
31559 #include <linux/blkdev.h>
31561 MODULE_LICENSE("$ZFS_META_LICENSE");
31567 struct request_queue *q = NULL;
31568 blk_queue_write_cache(q, true, true);
31578 cat - <<_ACEOF >conftest.h
31583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31584 echo "obj-m := conftest.o" >build
/Makefile
31586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31589 (eval $ac_try) 2>&5
31591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31594 (eval $ac_try) 2>&5
31596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31597 test $ac_status = 0; }; }; then :
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31600 $as_echo "no" >&6; }
31603 $as_echo "$as_me: failed program was:" >&5
31604 sed 's/^/| /' conftest.
$ac_ext >&5
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31609 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31620 $as_echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.
$ac_ext >&5
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31624 $as_echo "no" >&6; }
31633 EXTRA_KCFLAGS
="$tmp_flags"
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31637 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31638 tmp_flags
="$EXTRA_KCFLAGS"
31639 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31642 cat confdefs.h
- <<_ACEOF >conftest.c
31645 #include <linux/blkdev.h>
31651 struct request_queue *q = NULL;
31652 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31662 cat - <<_ACEOF >conftest.h
31667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31668 echo "obj-m := conftest.o" >build
/Makefile
31670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31678 (eval $ac_try) 2>&5
31680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31681 test $ac_status = 0; }; }; then :
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31684 $as_echo "yes" >&6; }
31686 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31690 $as_echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.
$ac_ext >&5
31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31694 $as_echo "no" >&6; }
31702 EXTRA_KCFLAGS
="$tmp_flags"
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31706 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31707 tmp_flags
="$EXTRA_KCFLAGS"
31708 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31711 cat confdefs.h
- <<_ACEOF >conftest.c
31714 #include <linux/blkdev.h>
31720 struct request_queue *q = NULL;
31721 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31731 cat - <<_ACEOF >conftest.h
31736 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31737 echo "obj-m := conftest.o" >build
/Makefile
31739 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31740 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31747 (eval $ac_try) 2>&5
31749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31750 test $ac_status = 0; }; }; then :
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31753 $as_echo "yes" >&6; }
31755 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31759 $as_echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.
$ac_ext >&5
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31763 $as_echo "no" >&6; }
31771 EXTRA_KCFLAGS
="$tmp_flags"
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31775 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31776 tmp_flags
="$EXTRA_KCFLAGS"
31777 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31780 cat confdefs.h
- <<_ACEOF >conftest.c
31783 #include <linux/blkdev.h>
31789 extern enum bio_rw_flags rw;
31791 rw = BIO_RW_UNPLUG;
31801 cat - <<_ACEOF >conftest.h
31806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31807 echo "obj-m := conftest.o" >build
/Makefile
31809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31812 (eval $ac_try) 2>&5
31814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31817 (eval $ac_try) 2>&5
31819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31820 test $ac_status = 0; }; }; then :
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31823 $as_echo "yes" >&6; }
31825 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31829 $as_echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.
$ac_ext >&5
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31833 $as_echo "no" >&6; }
31841 EXTRA_KCFLAGS
="$tmp_flags"
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31845 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31846 tmp_flags
="$EXTRA_KCFLAGS"
31847 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31850 cat confdefs.h
- <<_ACEOF >conftest.c
31853 #include <linux/blkdev.h>
31859 struct blk_plug plug;
31861 blk_start_plug(&plug);
31862 blk_finish_plug(&plug);
31872 cat - <<_ACEOF >conftest.h
31877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31878 echo "obj-m := conftest.o" >build
/Makefile
31880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31881 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31883 (eval $ac_try) 2>&5
31885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31886 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31888 (eval $ac_try) 2>&5
31890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31891 test $ac_status = 0; }; }; then :
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31896 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31900 $as_echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.
$ac_ext >&5
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31904 $as_echo "no" >&6; }
31912 EXTRA_KCFLAGS
="$tmp_flags"
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31916 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31917 tmp_flags
="$EXTRA_KCFLAGS"
31918 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31921 cat confdefs.h
- <<_ACEOF >conftest.c
31924 #include <linux/blkdev.h>
31930 struct gendisk *disk = NULL;
31931 (void) get_disk_ro(disk);
31941 cat - <<_ACEOF >conftest.h
31946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31947 echo "obj-m := conftest.o" >build
/Makefile
31949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31952 (eval $ac_try) 2>&5
31954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31957 (eval $ac_try) 2>&5
31959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31960 test $ac_status = 0; }; }; then :
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31963 $as_echo "yes" >&6; }
31965 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31969 $as_echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.
$ac_ext >&5
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31973 $as_echo "no" >&6; }
31981 EXTRA_KCFLAGS
="$tmp_flags"
31983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
31984 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
31988 cat confdefs.h
- <<_ACEOF >conftest.c
31991 #include <linux/genhd.h>
31997 get_gendisk(0, NULL);
32007 cat - <<_ACEOF >conftest.h
32012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32013 echo "obj-m := conftest.o" >build
/Makefile
32015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32018 (eval $ac_try) 2>&5
32020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32023 (eval $ac_try) 2>&5
32025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32026 test $ac_status = 0; }; }; then :
32029 $as_echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.
$ac_ext >&5
32038 if test $rc -ne 0; then :
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32044 if test "x$enable_linux_builtin" != xyes
; then
32046 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
32047 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32049 if test $rc -ne 0; then
32051 for file in block
/genhd.c
; do
32052 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
32053 "$LINUX/$file" 2>/dev
/null
32055 if test $rc -eq 0; then
32060 if test $export -eq 0; then :
32070 if test $rc -ne 0; then :
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32073 $as_echo "no" >&6; }
32077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32078 $as_echo "yes" >&6; }
32080 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
32089 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
32092 cat confdefs.h
- <<_ACEOF >conftest.c
32095 #include <linux/bio.h>
32101 struct bio *bio __attribute__ ((unused)) = NULL;
32103 bio_set_op_attrs(bio, 0, 0);
32113 cat - <<_ACEOF >conftest.h
32118 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32119 echo "obj-m := conftest.o" >build
/Makefile
32121 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32122 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32124 (eval $ac_try) 2>&5
32126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32127 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32129 (eval $ac_try) 2>&5
32131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32132 test $ac_status = 0; }; }; then :
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32135 $as_echo "yes" >&6; }
32137 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
32141 $as_echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.
$ac_ext >&5
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32145 $as_echo "no" >&6; }
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
32156 $as_echo_n "checking whether generic_readlink is global... " >&6; }
32159 cat confdefs.h
- <<_ACEOF >conftest.c
32162 #include <linux/fs.h>
32168 int i __attribute__ ((unused));
32170 i = generic_readlink(NULL, NULL, 0);
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_GENERIC_READLINK 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 ql->discard_granularity is available" >&5
32223 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32226 cat confdefs.h
- <<_ACEOF >conftest.c
32229 #include <linux/blkdev.h>
32235 struct queue_limits ql __attribute__ ((unused));
32237 ql.discard_granularity = 0;
32247 cat - <<_ACEOF >conftest.h
32252 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32253 echo "obj-m := conftest.o" >build
/Makefile
32255 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32256 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32258 (eval $ac_try) 2>&5
32260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32261 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32269 $as_echo "yes" >&6; }
32271 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32275 $as_echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.
$ac_ext >&5
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32279 $as_echo "no" >&6; }
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32290 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32293 cat confdefs.h
- <<_ACEOF >conftest.c
32296 #include <linux/fs.h>
32297 #include <linux/xattr.h>
32299 const struct xattr_handler xattr_test_handler = {
32305 const struct xattr_handler *xattr_handlers[] = {
32306 &xattr_test_handler,
32309 const struct super_block sb __attribute__ ((unused)) = {
32310 .s_xattr = xattr_handlers,
32326 cat - <<_ACEOF >conftest.h
32331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32332 echo "obj-m := conftest.o" >build
/Makefile
32334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32337 (eval $ac_try) 2>&5
32339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32340 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32342 (eval $ac_try) 2>&5
32344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32345 test $ac_status = 0; }; }; then :
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32348 $as_echo "yes" >&6; }
32350 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32354 $as_echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.
$ac_ext >&5
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358 $as_echo "no" >&6; }
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32369 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32372 cat confdefs.h
- <<_ACEOF >conftest.c
32375 #include <linux/xattr.h>
32377 static const struct xattr_handler
32378 xops __attribute__ ((unused)) = {
32379 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32395 cat - <<_ACEOF >conftest.h
32400 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32401 echo "obj-m := conftest.o" >build
/Makefile
32403 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32404 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32406 (eval $ac_try) 2>&5
32408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32409 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32411 (eval $ac_try) 2>&5
32413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32414 test $ac_status = 0; }; }; then :
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32417 $as_echo "yes" >&6; }
32419 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32423 $as_echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.
$ac_ext >&5
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32427 $as_echo "no" >&6; }
32437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32438 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32441 cat confdefs.h
- <<_ACEOF >conftest.c
32444 #include <linux/xattr.h>
32446 int get(const struct xattr_handler *handler,
32447 struct dentry *dentry, struct inode *inode,
32448 const char *name, void *buffer, size_t size) { return 0; }
32449 static const struct xattr_handler
32450 xops __attribute__ ((unused)) = {
32467 cat - <<_ACEOF >conftest.h
32472 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32473 echo "obj-m := conftest.o" >build
/Makefile
32475 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32476 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32478 (eval $ac_try) 2>&5
32480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32481 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32483 (eval $ac_try) 2>&5
32485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32486 test $ac_status = 0; }; }; then :
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32489 $as_echo "yes" >&6; }
32491 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32495 $as_echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.
$ac_ext >&5
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32499 $as_echo "no" >&6; }
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32501 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32504 cat confdefs.h
- <<_ACEOF >conftest.c
32507 #include <linux/xattr.h>
32509 int get(const struct xattr_handler *handler,
32510 struct dentry *dentry, const char *name,
32511 void *buffer, size_t size) { return 0; }
32512 static const struct xattr_handler
32513 xops __attribute__ ((unused)) = {
32530 cat - <<_ACEOF >conftest.h
32535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32536 echo "obj-m := conftest.o" >build
/Makefile
32538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32541 (eval $ac_try) 2>&5
32543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32546 (eval $ac_try) 2>&5
32548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32549 test $ac_status = 0; }; }; then :
32551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32552 $as_echo "yes" >&6; }
32554 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32558 $as_echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.
$ac_ext >&5
32561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32562 $as_echo "no" >&6; }
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32564 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32567 cat confdefs.h
- <<_ACEOF >conftest.c
32570 #include <linux/xattr.h>
32572 int get(struct dentry *dentry, const char *name,
32573 void *buffer, size_t size, int handler_flags)
32575 static const struct xattr_handler
32576 xops __attribute__ ((unused)) = {
32593 cat - <<_ACEOF >conftest.h
32598 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32599 echo "obj-m := conftest.o" >build
/Makefile
32601 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32602 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32604 (eval $ac_try) 2>&5
32606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32607 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32615 $as_echo "yes" >&6; }
32617 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32621 $as_echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.
$ac_ext >&5
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32627 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32630 cat confdefs.h
- <<_ACEOF >conftest.c
32633 #include <linux/xattr.h>
32635 int get(struct inode *ip, const char *name,
32636 void *buffer, size_t size) { return 0; }
32637 static const struct xattr_handler
32638 xops __attribute__ ((unused)) = {
32655 cat - <<_ACEOF >conftest.h
32660 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32661 echo "obj-m := conftest.o" >build
/Makefile
32663 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32664 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32666 (eval $ac_try) 2>&5
32668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32669 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32671 (eval $ac_try) 2>&5
32673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32674 test $ac_status = 0; }; }; then :
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32677 $as_echo "yes" >&6; }
32679 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32683 $as_echo "$as_me: failed program was:" >&5
32684 sed 's/^/| /' conftest.
$ac_ext >&5
32686 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32718 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32721 cat confdefs.h
- <<_ACEOF >conftest.c
32724 #include <linux/xattr.h>
32726 int set(const struct xattr_handler *handler,
32727 struct dentry *dentry, struct inode *inode,
32728 const char *name, const void *buffer,
32729 size_t size, int flags)
32731 static const struct xattr_handler
32732 xops __attribute__ ((unused)) = {
32749 cat - <<_ACEOF >conftest.h
32754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32755 echo "obj-m := conftest.o" >build
/Makefile
32757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32760 (eval $ac_try) 2>&5
32762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32765 (eval $ac_try) 2>&5
32767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32768 test $ac_status = 0; }; }; then :
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32771 $as_echo "yes" >&6; }
32773 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32777 $as_echo "$as_me: failed program was:" >&5
32778 sed 's/^/| /' conftest.
$ac_ext >&5
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32781 $as_echo "no" >&6; }
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32783 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32786 cat confdefs.h
- <<_ACEOF >conftest.c
32789 #include <linux/xattr.h>
32791 int set(const struct xattr_handler *handler,
32792 struct dentry *dentry, const char *name,
32793 const void *buffer, size_t size, int flags)
32795 static const struct xattr_handler
32796 xops __attribute__ ((unused)) = {
32813 cat - <<_ACEOF >conftest.h
32818 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32819 echo "obj-m := conftest.o" >build
/Makefile
32821 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32822 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32824 (eval $ac_try) 2>&5
32826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32827 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32829 (eval $ac_try) 2>&5
32831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32832 test $ac_status = 0; }; }; then :
32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32835 $as_echo "yes" >&6; }
32837 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32841 $as_echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.
$ac_ext >&5
32844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32845 $as_echo "no" >&6; }
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32847 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32850 cat confdefs.h
- <<_ACEOF >conftest.c
32853 #include <linux/xattr.h>
32855 int set(struct dentry *dentry, const char *name,
32856 const void *buffer, size_t size, int flags,
32857 int handler_flags) { return 0; }
32858 static const struct xattr_handler
32859 xops __attribute__ ((unused)) = {
32876 cat - <<_ACEOF >conftest.h
32881 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32882 echo "obj-m := conftest.o" >build
/Makefile
32884 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32885 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32887 (eval $ac_try) 2>&5
32889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32890 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32892 (eval $ac_try) 2>&5
32894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32895 test $ac_status = 0; }; }; then :
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32898 $as_echo "yes" >&6; }
32900 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32904 $as_echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.
$ac_ext >&5
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32908 $as_echo "no" >&6; }
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32910 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32913 cat confdefs.h
- <<_ACEOF >conftest.c
32916 #include <linux/xattr.h>
32918 int set(struct inode *ip, const char *name,
32919 const void *buffer, size_t size, int flags)
32921 static const struct xattr_handler
32922 xops __attribute__ ((unused)) = {
32939 cat - <<_ACEOF >conftest.h
32944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32945 echo "obj-m := conftest.o" >build
/Makefile
32947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32950 (eval $ac_try) 2>&5
32952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32955 (eval $ac_try) 2>&5
32957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32958 test $ac_status = 0; }; }; then :
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32961 $as_echo "yes" >&6; }
32963 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.
$ac_ext >&5
32970 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
33002 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
33005 cat confdefs.h
- <<_ACEOF >conftest.c
33008 #include <linux/xattr.h>
33010 bool list(struct dentry *dentry) { return 0; }
33011 static const struct xattr_handler
33012 xops __attribute__ ((unused)) = {
33029 cat - <<_ACEOF >conftest.h
33034 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33035 echo "obj-m := conftest.o" >build
/Makefile
33037 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33038 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33040 (eval $ac_try) 2>&5
33042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33043 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33045 (eval $ac_try) 2>&5
33047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33048 test $ac_status = 0; }; }; then :
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33051 $as_echo "yes" >&6; }
33053 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
33057 $as_echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.
$ac_ext >&5
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33061 $as_echo "no" >&6; }
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
33063 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
33066 cat confdefs.h
- <<_ACEOF >conftest.c
33069 #include <linux/xattr.h>
33071 size_t list(const struct xattr_handler *handler,
33072 struct dentry *dentry, char *list, size_t list_size,
33073 const char *name, size_t name_len) { return 0; }
33074 static const struct xattr_handler
33075 xops __attribute__ ((unused)) = {
33092 cat - <<_ACEOF >conftest.h
33097 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33098 echo "obj-m := conftest.o" >build
/Makefile
33100 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33101 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33103 (eval $ac_try) 2>&5
33105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33106 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33108 (eval $ac_try) 2>&5
33110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33111 test $ac_status = 0; }; }; then :
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33114 $as_echo "yes" >&6; }
33116 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
33120 $as_echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.
$ac_ext >&5
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33124 $as_echo "no" >&6; }
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
33126 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
33129 cat confdefs.h
- <<_ACEOF >conftest.c
33132 #include <linux/xattr.h>
33134 size_t list(struct dentry *dentry,
33135 char *list, size_t list_size,
33136 const char *name, size_t name_len,
33137 int handler_flags) { return 0; }
33138 static const struct xattr_handler
33139 xops __attribute__ ((unused)) = {
33156 cat - <<_ACEOF >conftest.h
33161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33162 echo "obj-m := conftest.o" >build
/Makefile
33164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33167 (eval $ac_try) 2>&5
33169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33170 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33172 (eval $ac_try) 2>&5
33174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33175 test $ac_status = 0; }; }; then :
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33180 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
33184 $as_echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.
$ac_ext >&5
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33188 $as_echo "no" >&6; }
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
33190 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
33193 cat confdefs.h
- <<_ACEOF >conftest.c
33196 #include <linux/xattr.h>
33198 size_t list(struct inode *ip, char *lst,
33199 size_t list_size, const char *name,
33200 size_t name_len) { return 0; }
33201 static const struct xattr_handler
33202 xops __attribute__ ((unused)) = {
33219 cat - <<_ACEOF >conftest.h
33224 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33225 echo "obj-m := conftest.o" >build
/Makefile
33227 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33228 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33230 (eval $ac_try) 2>&5
33232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33233 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33235 (eval $ac_try) 2>&5
33237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33238 test $ac_status = 0; }; }; then :
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33241 $as_echo "yes" >&6; }
33243 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33247 $as_echo "$as_me: failed program was:" >&5
33248 sed 's/^/| /' conftest.
$ac_ext >&5
33250 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33282 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33285 cat confdefs.h
- <<_ACEOF >conftest.c
33288 #include <linux/fs.h>
33294 struct inode *ip = NULL;
33295 (void) inode_owner_or_capable(ip);
33305 cat - <<_ACEOF >conftest.h
33310 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33311 echo "obj-m := conftest.o" >build
/Makefile
33313 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33314 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33316 (eval $ac_try) 2>&5
33318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33319 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33321 (eval $ac_try) 2>&5
33323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33324 test $ac_status = 0; }; }; then :
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33327 $as_echo "yes" >&6; }
33329 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33333 $as_echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.
$ac_ext >&5
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33337 $as_echo "no" >&6; }
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33339 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33342 cat confdefs.h
- <<_ACEOF >conftest.c
33345 #include <linux/fs.h>
33346 #include <linux/sched.h>
33352 struct inode *ip = NULL;
33353 (void) is_owner_or_cap(ip);
33363 cat - <<_ACEOF >conftest.h
33368 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33369 echo "obj-m := conftest.o" >build
/Makefile
33371 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33372 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33374 (eval $ac_try) 2>&5
33376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33377 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33379 (eval $ac_try) 2>&5
33381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33382 test $ac_status = 0; }; }; then :
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33385 $as_echo "yes" >&6; }
33387 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33391 $as_echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.
$ac_ext >&5
33394 as_fn_error $?
"no - Please file a bug report at
33395 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33413 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33416 cat confdefs.h
- <<_ACEOF >conftest.c
33419 #include <linux/cred.h>
33420 #include <linux/fs.h>
33421 #include <linux/posix_acl_xattr.h>
33427 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33437 cat - <<_ACEOF >conftest.h
33442 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33443 echo "obj-m := conftest.o" >build
/Makefile
33445 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33446 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33448 (eval $ac_try) 2>&5
33450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33451 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33453 (eval $ac_try) 2>&5
33455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33456 test $ac_status = 0; }; }; then :
33458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33459 $as_echo "yes" >&6; }
33461 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33465 $as_echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.
$ac_ext >&5
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33469 $as_echo "no" >&6; }
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33480 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33483 cat confdefs.h
- <<_ACEOF >conftest.c
33486 #include <linux/cred.h>
33487 #include <linux/fs.h>
33488 #include <linux/posix_acl.h>
33494 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33495 posix_acl_release(tmp);
33505 cat - <<_ACEOF >conftest.h
33510 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33511 echo "obj-m := conftest.o" >build
/Makefile
33513 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33514 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33516 (eval $ac_try) 2>&5
33518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33519 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33521 (eval $ac_try) 2>&5
33523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33524 test $ac_status = 0; }; }; then :
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33527 $as_echo "yes" >&6; }
33529 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33533 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33536 cat confdefs.h
- <<_ACEOF >conftest.c
33539 #include <linux/module.h>
33540 #include <linux/cred.h>
33541 #include <linux/fs.h>
33542 #include <linux/posix_acl.h>
33544 MODULE_LICENSE("$ZFS_META_LICENSE");
33550 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33551 posix_acl_release(tmp);
33561 cat - <<_ACEOF >conftest.h
33566 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33567 echo "obj-m := conftest.o" >build
/Makefile
33569 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33570 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33572 (eval $ac_try) 2>&5
33574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33575 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33577 (eval $ac_try) 2>&5
33579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33580 test $ac_status = 0; }; }; then :
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33583 $as_echo "no" >&6; }
33586 $as_echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.
$ac_ext >&5
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33590 $as_echo "yes" >&6; }
33592 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33603 $as_echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.
$ac_ext >&5
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33607 $as_echo "no" >&6; }
33617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33618 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33621 cat confdefs.h
- <<_ACEOF >conftest.c
33624 #include <linux/module.h>
33625 #include <linux/cred.h>
33626 #include <linux/fs.h>
33627 #include <linux/posix_acl.h>
33629 MODULE_LICENSE("$ZFS_META_LICENSE");
33635 struct inode *ip = NULL;
33636 struct posix_acl *acl = posix_acl_alloc(1, 0);
33637 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33638 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33648 cat - <<_ACEOF >conftest.h
33653 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33654 echo "obj-m := conftest.o" >build
/Makefile
33656 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33657 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33659 (eval $ac_try) 2>&5
33661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33662 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33664 (eval $ac_try) 2>&5
33666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33667 test $ac_status = 0; }; }; then :
33669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33670 $as_echo "yes" >&6; }
33672 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33676 $as_echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.
$ac_ext >&5
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33680 $as_echo "no" >&6; }
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33691 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33694 cat confdefs.h
- <<_ACEOF >conftest.c
33697 #include <linux/fs.h>
33698 #include <linux/posix_acl.h>
33704 posix_acl_chmod(NULL, 0, 0)
33714 cat - <<_ACEOF >conftest.h
33719 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33720 echo "obj-m := conftest.o" >build
/Makefile
33722 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33723 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33725 (eval $ac_try) 2>&5
33727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33728 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33730 (eval $ac_try) 2>&5
33732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33733 test $ac_status = 0; }; }; then :
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33736 $as_echo "yes" >&6; }
33738 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33742 $as_echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.
$ac_ext >&5
33745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33746 $as_echo "no" >&6; }
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33756 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33759 cat confdefs.h
- <<_ACEOF >conftest.c
33762 #include <linux/fs.h>
33763 #include <linux/posix_acl.h>
33769 __posix_acl_chmod(NULL, 0, 0)
33779 cat - <<_ACEOF >conftest.h
33784 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33785 echo "obj-m := conftest.o" >build
/Makefile
33787 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33788 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33790 (eval $ac_try) 2>&5
33792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33793 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33795 (eval $ac_try) 2>&5
33797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33798 test $ac_status = 0; }; }; then :
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33801 $as_echo "yes" >&6; }
33803 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33807 $as_echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.
$ac_ext >&5
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33811 $as_echo "no" >&6; }
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33822 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33825 cat confdefs.h
- <<_ACEOF >conftest.c
33828 #include <linux/fs.h>
33829 #include <linux/posix_acl.h>
33836 posix_acl_equiv_mode(NULL,&tmp);
33846 cat - <<_ACEOF >conftest.h
33851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33852 echo "obj-m := conftest.o" >build
/Makefile
33854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33857 (eval $ac_try) 2>&5
33859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33862 (eval $ac_try) 2>&5
33864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33865 test $ac_status = 0; }; }; then :
33867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33868 $as_echo "yes" >&6; }
33870 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33874 $as_echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.
$ac_ext >&5
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878 $as_echo "no" >&6; }
33888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33889 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33892 cat confdefs.h
- <<_ACEOF >conftest.c
33895 #include <linux/fs.h>
33896 #include <linux/posix_acl.h>
33902 struct user_namespace *user_ns = NULL;
33903 const struct posix_acl *acl = NULL;
33906 error = posix_acl_valid(user_ns, acl);
33916 cat - <<_ACEOF >conftest.h
33921 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33922 echo "obj-m := conftest.o" >build
/Makefile
33924 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33925 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33927 (eval $ac_try) 2>&5
33929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33930 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33932 (eval $ac_try) 2>&5
33934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33935 test $ac_status = 0; }; }; then :
33937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33938 $as_echo "yes" >&6; }
33940 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33944 $as_echo "$as_me: failed program was:" >&5
33945 sed 's/^/| /' conftest.
$ac_ext >&5
33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33948 $as_echo "no" >&6; }
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33959 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33962 cat confdefs.h
- <<_ACEOF >conftest.c
33965 #include <linux/fs.h>
33967 int permission_fn(struct inode *inode, int mask) { return 0; }
33969 static const struct inode_operations
33970 iops __attribute__ ((unused)) = {
33971 .permission = permission_fn,
33987 cat - <<_ACEOF >conftest.h
33992 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33993 echo "obj-m := conftest.o" >build
/Makefile
33995 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33996 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33998 (eval $ac_try) 2>&5
34000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34001 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34003 (eval $ac_try) 2>&5
34005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34006 test $ac_status = 0; }; }; then :
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34009 $as_echo "yes" >&6; }
34011 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34015 $as_echo "$as_me: failed program was:" >&5
34016 sed 's/^/| /' conftest.
$ac_ext >&5
34018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34019 $as_echo "no" >&6; }
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
34030 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
34033 cat confdefs.h
- <<_ACEOF >conftest.c
34036 #include <linux/fs.h>
34038 int permission_fn(struct inode *inode, int mask,
34039 struct nameidata *nd) { return 0; }
34041 static const struct inode_operations
34042 iops __attribute__ ((unused)) = {
34043 .permission = permission_fn,
34059 cat - <<_ACEOF >conftest.h
34064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34065 echo "obj-m := conftest.o" >build
/Makefile
34067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34070 (eval $ac_try) 2>&5
34072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34075 (eval $ac_try) 2>&5
34077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34078 test $ac_status = 0; }; }; then :
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34081 $as_echo "yes" >&6; }
34083 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34086 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
34090 $as_echo "$as_me: failed program was:" >&5
34091 sed 's/^/| /' conftest.
$ac_ext >&5
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34094 $as_echo "no" >&6; }
34104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
34105 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
34108 cat confdefs.h
- <<_ACEOF >conftest.c
34111 #include <linux/fs.h>
34113 int check_acl_fn(struct inode *inode, int mask) { return 0; }
34115 static const struct inode_operations
34116 iops __attribute__ ((unused)) = {
34117 .check_acl = check_acl_fn,
34133 cat - <<_ACEOF >conftest.h
34138 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34139 echo "obj-m := conftest.o" >build
/Makefile
34141 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34142 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34144 (eval $ac_try) 2>&5
34146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34147 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34149 (eval $ac_try) 2>&5
34151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34152 test $ac_status = 0; }; }; then :
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34155 $as_echo "yes" >&6; }
34157 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34161 $as_echo "$as_me: failed program was:" >&5
34162 sed 's/^/| /' conftest.
$ac_ext >&5
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34165 $as_echo "no" >&6; }
34175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
34176 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
34179 cat confdefs.h
- <<_ACEOF >conftest.c
34182 #include <linux/fs.h>
34184 int check_acl_fn(struct inode *inode, int mask,
34185 unsigned int flags) { return 0; }
34187 static const struct inode_operations
34188 iops __attribute__ ((unused)) = {
34189 .check_acl = check_acl_fn,
34205 cat - <<_ACEOF >conftest.h
34210 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34211 echo "obj-m := conftest.o" >build
/Makefile
34213 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34214 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34216 (eval $ac_try) 2>&5
34218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34219 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34221 (eval $ac_try) 2>&5
34223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34224 test $ac_status = 0; }; }; then :
34226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34227 $as_echo "yes" >&6; }
34229 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34232 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34236 $as_echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.
$ac_ext >&5
34239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34240 $as_echo "no" >&6; }
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34251 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34254 cat confdefs.h
- <<_ACEOF >conftest.c
34257 #include <linux/fs.h>
34259 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34262 static const struct inode_operations
34263 iops __attribute__ ((unused)) = {
34264 .get_acl = get_acl_fn,
34280 cat - <<_ACEOF >conftest.h
34285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34286 echo "obj-m := conftest.o" >build
/Makefile
34288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34291 (eval $ac_try) 2>&5
34293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34296 (eval $ac_try) 2>&5
34298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34299 test $ac_status = 0; }; }; then :
34301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34302 $as_echo "yes" >&6; }
34304 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34308 $as_echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.
$ac_ext >&5
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34312 $as_echo "no" >&6; }
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34323 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34326 cat confdefs.h
- <<_ACEOF >conftest.c
34329 #include <linux/fs.h>
34331 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34334 static const struct inode_operations
34335 iops __attribute__ ((unused)) = {
34336 .set_acl = set_acl_fn,
34352 cat - <<_ACEOF >conftest.h
34357 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34358 echo "obj-m := conftest.o" >build
/Makefile
34360 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34361 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34363 (eval $ac_try) 2>&5
34365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34366 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34368 (eval $ac_try) 2>&5
34370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34371 test $ac_status = 0; }; }; then :
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34374 $as_echo "yes" >&6; }
34376 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34380 $as_echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.
$ac_ext >&5
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34384 $as_echo "no" >&6; }
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34396 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34399 cat confdefs.h
- <<_ACEOF >conftest.c
34402 #include <linux/fs.h>
34405 const struct path *p, struct kstat *k,
34406 u32 request_mask, unsigned int query_flags)
34409 static const struct inode_operations
34410 iops __attribute__ ((unused)) = {
34411 .getattr = test_getattr,
34427 cat - <<_ACEOF >conftest.h
34432 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34433 echo "obj-m := conftest.o" >build
/Makefile
34435 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34436 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34438 (eval $ac_try) 2>&5
34440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34441 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34443 (eval $ac_try) 2>&5
34445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34446 test $ac_status = 0; }; }; then :
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34449 $as_echo "yes" >&6; }
34451 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34455 $as_echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.
$ac_ext >&5
34458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34459 $as_echo "no" >&6; }
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34470 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34473 cat confdefs.h
- <<_ACEOF >conftest.c
34476 #include <linux/fs.h>
34479 struct vfsmount *mnt, struct dentry *d,
34483 static const struct inode_operations
34484 iops __attribute__ ((unused)) = {
34485 .getattr = test_getattr,
34501 cat - <<_ACEOF >conftest.h
34506 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34507 echo "obj-m := conftest.o" >build
/Makefile
34509 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34510 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34512 (eval $ac_try) 2>&5
34514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34515 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34517 (eval $ac_try) 2>&5
34519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34520 test $ac_status = 0; }; }; then :
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34523 $as_echo "yes" >&6; }
34525 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34529 $as_echo "$as_me: failed program was:" >&5
34530 sed 's/^/| /' conftest.
$ac_ext >&5
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34533 $as_echo "no" >&6; }
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34545 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34548 cat confdefs.h
- <<_ACEOF >conftest.c
34551 #include <linux/fs.h>
34557 struct inode inode;
34558 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34568 cat - <<_ACEOF >conftest.h
34573 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34574 echo "obj-m := conftest.o" >build
/Makefile
34576 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34577 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34579 (eval $ac_try) 2>&5
34581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34582 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34584 (eval $ac_try) 2>&5
34586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34587 test $ac_status = 0; }; }; then :
34589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34590 $as_echo "yes" >&6; }
34592 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34596 $as_echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.
$ac_ext >&5
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34600 $as_echo "no" >&6; }
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34611 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34614 cat confdefs.h
- <<_ACEOF >conftest.c
34617 #include <linux/fs.h>
34623 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34633 cat - <<_ACEOF >conftest.h
34638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34639 echo "obj-m := conftest.o" >build
/Makefile
34641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34644 (eval $ac_try) 2>&5
34646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34649 (eval $ac_try) 2>&5
34651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34652 test $ac_status = 0; }; }; then :
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34655 $as_echo "yes" >&6; }
34657 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34661 $as_echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.
$ac_ext >&5
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34665 $as_echo "no" >&6; }
34675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34676 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34680 cat confdefs.h
- <<_ACEOF >conftest.c
34683 #include <linux/fs.h>
34685 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34686 static struct super_operations sops __attribute__ ((unused)) = {
34687 .show_options = show_options,
34703 cat - <<_ACEOF >conftest.h
34708 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34709 echo "obj-m := conftest.o" >build
/Makefile
34711 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34712 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34714 (eval $ac_try) 2>&5
34716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34717 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34719 (eval $ac_try) 2>&5
34721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34722 test $ac_status = 0; }; }; then :
34724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34725 $as_echo "yes" >&6; }
34727 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34731 $as_echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.
$ac_ext >&5
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34735 $as_echo "no" >&6; }
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34746 $as_echo_n "checking whether file_inode() is available... " >&6; }
34749 cat confdefs.h
- <<_ACEOF >conftest.c
34752 #include <linux/fs.h>
34758 struct file *f = NULL;
34769 cat - <<_ACEOF >conftest.h
34774 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34775 echo "obj-m := conftest.o" >build
/Makefile
34777 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34778 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34780 (eval $ac_try) 2>&5
34782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34783 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34785 (eval $ac_try) 2>&5
34787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34788 test $ac_status = 0; }; }; then :
34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34791 $as_echo "yes" >&6; }
34793 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34797 $as_echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.
$ac_ext >&5
34800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34801 $as_echo "no" >&6; }
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34812 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34815 cat confdefs.h
- <<_ACEOF >conftest.c
34818 #include <linux/fs.h>
34824 struct file *f = NULL;
34835 cat - <<_ACEOF >conftest.h
34840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34841 echo "obj-m := conftest.o" >build
/Makefile
34843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34846 (eval $ac_try) 2>&5
34848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34851 (eval $ac_try) 2>&5
34853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34854 test $ac_status = 0; }; }; then :
34856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34857 $as_echo "yes" >&6; }
34859 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34863 $as_echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.
$ac_ext >&5
34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34867 $as_echo "no" >&6; }
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34878 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34882 cat confdefs.h
- <<_ACEOF >conftest.c
34885 #include <linux/fs.h>
34887 int test_fsync(struct file *f, struct dentry *dentry, int x)
34890 static const struct file_operations
34891 fops __attribute__ ((unused)) = {
34892 .fsync = test_fsync,
34908 cat - <<_ACEOF >conftest.h
34913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34914 echo "obj-m := conftest.o" >build
/Makefile
34916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34919 (eval $ac_try) 2>&5
34921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34924 (eval $ac_try) 2>&5
34926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34927 test $ac_status = 0; }; }; then :
34929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34930 $as_echo "dentry" >&6; }
34932 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34936 $as_echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.
$ac_ext >&5
34950 cat confdefs.h
- <<_ACEOF >conftest.c
34953 #include <linux/fs.h>
34955 int test_fsync(struct file *f, int x) { return 0; }
34957 static const struct file_operations
34958 fops __attribute__ ((unused)) = {
34959 .fsync = test_fsync,
34975 cat - <<_ACEOF >conftest.h
34980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34981 echo "obj-m := conftest.o" >build
/Makefile
34983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34986 (eval $ac_try) 2>&5
34988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34989 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34991 (eval $ac_try) 2>&5
34993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34994 test $ac_status = 0; }; }; then :
34996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
34997 $as_echo "no dentry" >&6; }
34999 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
35003 $as_echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.
$ac_ext >&5
35017 cat confdefs.h
- <<_ACEOF >conftest.c
35020 #include <linux/fs.h>
35022 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
35025 static const struct file_operations
35026 fops __attribute__ ((unused)) = {
35027 .fsync = test_fsync,
35043 cat - <<_ACEOF >conftest.h
35048 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35049 echo "obj-m := conftest.o" >build
/Makefile
35051 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35052 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35054 (eval $ac_try) 2>&5
35056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35057 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35059 (eval $ac_try) 2>&5
35061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35062 test $ac_status = 0; }; }; then :
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
35065 $as_echo "range" >&6; }
35067 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
35071 $as_echo "$as_me: failed program was:" >&5
35072 sed 's/^/| /' conftest.
$ac_ext >&5
35084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
35085 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
35088 cat confdefs.h
- <<_ACEOF >conftest.c
35091 #include <linux/fs.h>
35092 void evict_inode (struct inode * t) { return; }
35093 static struct super_operations sops __attribute__ ((unused)) = {
35094 .evict_inode = evict_inode,
35110 cat - <<_ACEOF >conftest.h
35115 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35116 echo "obj-m := conftest.o" >build
/Makefile
35118 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35119 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35121 (eval $ac_try) 2>&5
35123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35124 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35126 (eval $ac_try) 2>&5
35128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35129 test $ac_status = 0; }; }; then :
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35132 $as_echo "yes" >&6; }
35134 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
35138 $as_echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.
$ac_ext >&5
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142 $as_echo "no" >&6; }
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
35153 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
35156 cat confdefs.h
- <<_ACEOF >conftest.c
35159 #include <linux/fs.h>
35161 void dirty_inode(struct inode *a, int b) { return; }
35163 static const struct super_operations
35164 sops __attribute__ ((unused)) = {
35165 .dirty_inode = dirty_inode,
35181 cat - <<_ACEOF >conftest.h
35186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35187 echo "obj-m := conftest.o" >build
/Makefile
35189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35192 (eval $ac_try) 2>&5
35194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35197 (eval $ac_try) 2>&5
35199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35200 test $ac_status = 0; }; }; then :
35202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35203 $as_echo "yes" >&6; }
35205 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
35209 $as_echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.
$ac_ext >&5
35212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35213 $as_echo "no" >&6; }
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35224 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35227 cat confdefs.h
- <<_ACEOF >conftest.c
35230 #include <linux/fs.h>
35232 int nr_cached_objects(struct super_block *sb) { return 0; }
35234 static const struct super_operations
35235 sops __attribute__ ((unused)) = {
35236 .nr_cached_objects = nr_cached_objects,
35252 cat - <<_ACEOF >conftest.h
35257 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35258 echo "obj-m := conftest.o" >build
/Makefile
35260 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35261 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35263 (eval $ac_try) 2>&5
35265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35266 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35268 (eval $ac_try) 2>&5
35270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35271 test $ac_status = 0; }; }; then :
35273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35274 $as_echo "yes" >&6; }
35276 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35280 $as_echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.
$ac_ext >&5
35283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35284 $as_echo "no" >&6; }
35294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35295 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35298 cat confdefs.h
- <<_ACEOF >conftest.c
35301 #include <linux/fs.h>
35303 void free_cached_objects(struct super_block *sb, int x)
35306 static const struct super_operations
35307 sops __attribute__ ((unused)) = {
35308 .free_cached_objects = free_cached_objects,
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_FREE_CACHED_OBJECTS 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; }
35367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35368 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35371 cat confdefs.h
- <<_ACEOF >conftest.c
35374 #include <linux/fs.h>
35376 long test_fallocate(struct file *file, int mode,
35377 loff_t offset, loff_t len) { return 0; }
35379 static const struct file_operations
35380 fops __attribute__ ((unused)) = {
35381 .fallocate = test_fallocate,
35397 cat - <<_ACEOF >conftest.h
35402 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35403 echo "obj-m := conftest.o" >build
/Makefile
35405 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35406 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35408 (eval $ac_try) 2>&5
35410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35411 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35413 (eval $ac_try) 2>&5
35415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35416 test $ac_status = 0; }; }; then :
35418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35419 $as_echo "yes" >&6; }
35421 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35425 $as_echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.
$ac_ext >&5
35428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35429 $as_echo "no" >&6; }
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35440 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35443 cat confdefs.h
- <<_ACEOF >conftest.c
35446 #include <linux/fs.h>
35448 long test_fallocate(struct inode *inode, int mode,
35449 loff_t offset, loff_t len) { return 0; }
35451 static const struct inode_operations
35452 fops __attribute__ ((unused)) = {
35453 .fallocate = test_fallocate,
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_INODE_FALLOCATE 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; }
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35513 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35516 cat confdefs.h
- <<_ACEOF >conftest.c
35519 #include <linux/fs.h>
35521 static const struct file_operations
35522 fops __attribute__ ((unused)) = {
35539 cat - <<_ACEOF >conftest.h
35544 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35545 echo "obj-m := conftest.o" >build
/Makefile
35547 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35548 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35550 (eval $ac_try) 2>&5
35552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35553 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35555 (eval $ac_try) 2>&5
35557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35558 test $ac_status = 0; }; }; then :
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35561 $as_echo "yes" >&6; }
35563 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35567 $as_echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.
$ac_ext >&5
35570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35571 $as_echo "no" >&6; }
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35582 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35585 cat confdefs.h
- <<_ACEOF >conftest.c
35588 #include <linux/fs.h>
35590 int mkdir(struct inode *inode, struct dentry *dentry,
35591 umode_t umode) { return 0; }
35593 static const struct inode_operations
35594 iops __attribute__ ((unused)) = {
35611 cat - <<_ACEOF >conftest.h
35616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35617 echo "obj-m := conftest.o" >build
/Makefile
35619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35622 (eval $ac_try) 2>&5
35624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35633 $as_echo "yes" >&6; }
35635 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35639 $as_echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.
$ac_ext >&5
35642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35643 $as_echo "no" >&6; }
35653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35654 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35657 cat confdefs.h
- <<_ACEOF >conftest.c
35660 #include <linux/fs.h>
35662 struct dentry *inode_lookup(struct inode *inode,
35663 struct dentry *dentry, struct nameidata *nidata)
35666 static const struct inode_operations iops
35667 __attribute__ ((unused)) = {
35668 .lookup = inode_lookup,
35684 cat - <<_ACEOF >conftest.h
35689 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35690 echo "obj-m := conftest.o" >build
/Makefile
35692 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35693 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35695 (eval $ac_try) 2>&5
35697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35698 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35700 (eval $ac_try) 2>&5
35702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35703 test $ac_status = 0; }; }; then :
35705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35706 $as_echo "yes" >&6; }
35708 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35712 $as_echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.
$ac_ext >&5
35715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35716 $as_echo "no" >&6; }
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35727 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35730 cat confdefs.h
- <<_ACEOF >conftest.c
35733 #include <linux/fs.h>
35735 #ifdef HAVE_MKDIR_UMODE_T
35736 int inode_create(struct inode *inode ,struct dentry *dentry,
35737 umode_t umode, struct nameidata *nidata) { return 0; }
35739 int inode_create(struct inode *inode,struct dentry *dentry,
35740 int umode, struct nameidata * nidata) { return 0; }
35743 static const struct inode_operations
35744 iops __attribute__ ((unused)) = {
35745 .create = inode_create,
35761 cat - <<_ACEOF >conftest.h
35766 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35767 echo "obj-m := conftest.o" >build
/Makefile
35769 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35770 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35772 (eval $ac_try) 2>&5
35774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35775 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35777 (eval $ac_try) 2>&5
35779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35780 test $ac_status = 0; }; }; then :
35782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35783 $as_echo "yes" >&6; }
35785 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35789 $as_echo "$as_me: failed program was:" >&5
35790 sed 's/^/| /' conftest.
$ac_ext >&5
35792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35793 $as_echo "no" >&6; }
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35804 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35807 cat confdefs.h
- <<_ACEOF >conftest.c
35810 #include <linux/fs.h>
35811 const char *get_link(struct dentry *de, struct inode *ip,
35812 struct delayed_call *done) { return "symlink"; }
35813 static struct inode_operations
35814 iops __attribute__ ((unused)) = {
35815 .get_link = get_link,
35831 cat - <<_ACEOF >conftest.h
35836 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35837 echo "obj-m := conftest.o" >build
/Makefile
35839 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35840 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35842 (eval $ac_try) 2>&5
35844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35845 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35847 (eval $ac_try) 2>&5
35849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35850 test $ac_status = 0; }; }; then :
35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35853 $as_echo "yes" >&6; }
35855 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35859 $as_echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.
$ac_ext >&5
35862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35863 $as_echo "no" >&6; }
35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35865 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35868 cat confdefs.h
- <<_ACEOF >conftest.c
35871 #include <linux/fs.h>
35872 const char *get_link(struct dentry *de, struct
35873 inode *ip, void **cookie) { return "symlink"; }
35874 static struct inode_operations
35875 iops __attribute__ ((unused)) = {
35876 .get_link = get_link,
35892 cat - <<_ACEOF >conftest.h
35897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35898 echo "obj-m := conftest.o" >build
/Makefile
35900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35903 (eval $ac_try) 2>&5
35905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35908 (eval $ac_try) 2>&5
35910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35911 test $ac_status = 0; }; }; then :
35913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35914 $as_echo "yes" >&6; }
35916 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35920 $as_echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.
$ac_ext >&5
35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35924 $as_echo "no" >&6; }
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35927 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35930 cat confdefs.h
- <<_ACEOF >conftest.c
35933 #include <linux/fs.h>
35934 const char *follow_link(struct dentry *de,
35935 void **cookie) { return "symlink"; }
35936 static struct inode_operations
35937 iops __attribute__ ((unused)) = {
35938 .follow_link = follow_link,
35954 cat - <<_ACEOF >conftest.h
35959 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35960 echo "obj-m := conftest.o" >build
/Makefile
35962 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35963 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35965 (eval $ac_try) 2>&5
35967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35968 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35970 (eval $ac_try) 2>&5
35972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35973 test $ac_status = 0; }; }; then :
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35976 $as_echo "yes" >&6; }
35978 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
35982 $as_echo "$as_me: failed program was:" >&5
35983 sed 's/^/| /' conftest.
$ac_ext >&5
35985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35986 $as_echo "no" >&6; }
35987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
35988 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
35991 cat confdefs.h
- <<_ACEOF >conftest.c
35994 #include <linux/fs.h>
35995 void *follow_link(struct dentry *de, struct
35996 nameidata *nd) { return (void *)NULL; }
35997 static struct inode_operations
35998 iops __attribute__ ((unused)) = {
35999 .follow_link = follow_link,
36015 cat - <<_ACEOF >conftest.h
36020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36021 echo "obj-m := conftest.o" >build
/Makefile
36023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36026 (eval $ac_try) 2>&5
36028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36029 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36031 (eval $ac_try) 2>&5
36033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36034 test $ac_status = 0; }; }; then :
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36037 $as_echo "yes" >&6; }
36039 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
36043 $as_echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.
$ac_ext >&5
36046 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36080 cat confdefs.h
- <<_ACEOF >conftest.c
36083 #if !defined(HAVE_GET_LINK_DELAYED)
36084 #error "Expecting get_link() delayed done"
36100 cat - <<_ACEOF >conftest.h
36105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36106 echo "obj-m := conftest.o" >build
/Makefile
36108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36111 (eval $ac_try) 2>&5
36113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36114 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36116 (eval $ac_try) 2>&5
36118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36119 test $ac_status = 0; }; }; then :
36122 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
36126 $as_echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.
$ac_ext >&5
36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
36130 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
36133 cat confdefs.h
- <<_ACEOF >conftest.c
36136 #include <linux/fs.h>
36137 void put_link(struct inode *ip, void *cookie)
36139 static struct inode_operations
36140 iops __attribute__ ((unused)) = {
36141 .put_link = put_link,
36157 cat - <<_ACEOF >conftest.h
36162 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36163 echo "obj-m := conftest.o" >build
/Makefile
36165 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36166 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36168 (eval $ac_try) 2>&5
36170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36171 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36173 (eval $ac_try) 2>&5
36175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36176 test $ac_status = 0; }; }; then :
36178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36179 $as_echo "yes" >&6; }
36181 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
36185 $as_echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.
$ac_ext >&5
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36189 $as_echo "no" >&6; }
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
36191 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
36194 cat confdefs.h
- <<_ACEOF >conftest.c
36197 #include <linux/fs.h>
36198 void put_link(struct dentry *de, struct
36199 nameidata *nd, void *ptr) { return; }
36200 static struct inode_operations
36201 iops __attribute__ ((unused)) = {
36202 .put_link = put_link,
36218 cat - <<_ACEOF >conftest.h
36223 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36224 echo "obj-m := conftest.o" >build
/Makefile
36226 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36227 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36229 (eval $ac_try) 2>&5
36231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36232 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36240 $as_echo "yes" >&6; }
36242 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36246 $as_echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.
$ac_ext >&5
36249 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36274 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36277 cat confdefs.h
- <<_ACEOF >conftest.c
36280 #include <linux/fs.h>
36281 int tmpfile(struct inode *inode, struct dentry *dentry,
36282 umode_t mode) { return 0; }
36283 static struct inode_operations
36284 iops __attribute__ ((unused)) = {
36285 .tmpfile = tmpfile,
36301 cat - <<_ACEOF >conftest.h
36306 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36307 echo "obj-m := conftest.o" >build
/Makefile
36309 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36310 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36312 (eval $ac_try) 2>&5
36314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36315 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36317 (eval $ac_try) 2>&5
36319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36320 test $ac_status = 0; }; }; then :
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36323 $as_echo "yes" >&6; }
36325 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36329 $as_echo "$as_me: failed program was:" >&5
36330 sed 's/^/| /' conftest.
$ac_ext >&5
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333 $as_echo "no" >&6; }
36343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36344 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36347 cat confdefs.h
- <<_ACEOF >conftest.c
36350 #include <linux/fs.h>
36351 void truncate_range(struct inode *inode, loff_t start,
36352 loff_t end) { return; }
36353 static struct inode_operations iops __attribute__ ((unused)) = {
36354 .truncate_range = truncate_range,
36370 cat - <<_ACEOF >conftest.h
36375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36376 echo "obj-m := conftest.o" >build
/Makefile
36378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36381 (eval $ac_try) 2>&5
36383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36386 (eval $ac_try) 2>&5
36388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36389 test $ac_status = 0; }; }; then :
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36392 $as_echo "yes" >&6; }
36394 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36398 $as_echo "$as_me: failed program was:" >&5
36399 sed 's/^/| /' conftest.
$ac_ext >&5
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36402 $as_echo "no" >&6; }
36412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36413 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36416 cat confdefs.h
- <<_ACEOF >conftest.c
36419 #include <linux/dcache.h>
36420 struct vfsmount *d_automount(struct path *p) { return NULL; }
36421 struct dentry_operations dops __attribute__ ((unused)) = {
36422 .d_automount = d_automount,
36438 cat - <<_ACEOF >conftest.h
36443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36444 echo "obj-m := conftest.o" >build
/Makefile
36446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36449 (eval $ac_try) 2>&5
36451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36454 (eval $ac_try) 2>&5
36456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36457 test $ac_status = 0; }; }; then :
36459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36460 $as_echo "yes" >&6; }
36462 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36466 $as_echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.
$ac_ext >&5
36469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36470 $as_echo "no" >&6; }
36480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36481 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36484 cat confdefs.h
- <<_ACEOF >conftest.c
36487 #include <linux/exportfs.h>
36488 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36489 struct inode *parent) { return 0; }
36490 static struct export_operations eops __attribute__ ((unused))={
36491 .encode_fh = encode_fh,
36507 cat - <<_ACEOF >conftest.h
36512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36513 echo "obj-m := conftest.o" >build
/Makefile
36515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36518 (eval $ac_try) 2>&5
36520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36521 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36523 (eval $ac_try) 2>&5
36525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36526 test $ac_status = 0; }; }; then :
36528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36529 $as_echo "yes" >&6; }
36531 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36535 $as_echo "$as_me: failed program was:" >&5
36536 sed 's/^/| /' conftest.
$ac_ext >&5
36538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36539 $as_echo "no" >&6; }
36549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36550 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36553 cat confdefs.h
- <<_ACEOF >conftest.c
36556 #include <linux/exportfs.h>
36557 int commit_metadata(struct inode *inode) { return 0; }
36558 static struct export_operations eops __attribute__ ((unused))={
36559 .commit_metadata = commit_metadata,
36575 cat - <<_ACEOF >conftest.h
36580 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36581 echo "obj-m := conftest.o" >build
/Makefile
36583 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36584 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36586 (eval $ac_try) 2>&5
36588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36589 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36591 (eval $ac_try) 2>&5
36593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36594 test $ac_status = 0; }; }; then :
36596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36597 $as_echo "yes" >&6; }
36599 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36603 $as_echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.
$ac_ext >&5
36606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36607 $as_echo "no" >&6; }
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36617 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36621 cat confdefs.h
- <<_ACEOF >conftest.c
36624 #include <linux/fs.h>
36640 cat - <<_ACEOF >conftest.h
36645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36646 echo "obj-m := conftest.o" >build
/Makefile
36648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36651 (eval $ac_try) 2>&5
36653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36654 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36656 (eval $ac_try) 2>&5
36658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36659 test $ac_status = 0; }; }; then :
36662 $as_echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.
$ac_ext >&5
36671 if test $rc -ne 0; then :
36673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36674 $as_echo "no" >&6; }
36677 if test "x$enable_linux_builtin" != xyes
; then
36679 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36680 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36682 if test $rc -ne 0; then
36684 for file in fs
/inode.c
; do
36685 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36686 "$LINUX/$file" 2>/dev
/null
36688 if test $rc -eq 0; then
36693 if test $export -eq 0; then :
36703 if test $rc -ne 0; then :
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36706 $as_echo "no" >&6; }
36710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36711 $as_echo "yes" >&6; }
36713 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36721 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36725 cat confdefs.h
- <<_ACEOF >conftest.c
36728 #include <linux/fs.h>
36734 struct dentry *dentry = NULL;
36735 struct iattr *attr = NULL;
36738 error = setattr_prepare(dentry, attr);
36748 cat - <<_ACEOF >conftest.h
36753 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36754 echo "obj-m := conftest.o" >build
/Makefile
36756 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36757 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36759 (eval $ac_try) 2>&5
36761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36762 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36764 (eval $ac_try) 2>&5
36766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36767 test $ac_status = 0; }; }; then :
36770 $as_echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.
$ac_ext >&5
36779 if test $rc -ne 0; then :
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36782 $as_echo "no" >&6; }
36785 if test "x$enable_linux_builtin" != xyes
; then
36787 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36788 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36790 if test $rc -ne 0; then
36792 for file in fs
/attr.c
; do
36793 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36794 "$LINUX/$file" 2>/dev
/null
36796 if test $rc -eq 0; then
36801 if test $export -eq 0; then :
36811 if test $rc -ne 0; then :
36813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36814 $as_echo "no" >&6; }
36818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36819 $as_echo "yes" >&6; }
36821 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36829 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36833 cat confdefs.h
- <<_ACEOF >conftest.c
36836 #include <linux/fs.h>
36842 insert_inode_locked(NULL);
36852 cat - <<_ACEOF >conftest.h
36857 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36858 echo "obj-m := conftest.o" >build
/Makefile
36860 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36861 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36863 (eval $ac_try) 2>&5
36865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36866 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36868 (eval $ac_try) 2>&5
36870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36871 test $ac_status = 0; }; }; then :
36874 $as_echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.
$ac_ext >&5
36883 if test $rc -ne 0; then :
36885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36886 $as_echo "no" >&6; }
36889 if test "x$enable_linux_builtin" != xyes
; then
36891 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36892 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36894 if test $rc -ne 0; then
36896 for file in fs
/inode.c
; do
36897 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36898 "$LINUX/$file" 2>/dev
/null
36900 if test $rc -eq 0; then
36905 if test $export -eq 0; then :
36915 if test $rc -ne 0; then :
36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36918 $as_echo "no" >&6; }
36922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36923 $as_echo "yes" >&6; }
36925 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36933 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36937 cat confdefs.h
- <<_ACEOF >conftest.c
36940 #include <linux/dcache.h>
36956 cat - <<_ACEOF >conftest.h
36961 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36962 echo "obj-m := conftest.o" >build
/Makefile
36964 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36965 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36967 (eval $ac_try) 2>&5
36969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36970 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36972 (eval $ac_try) 2>&5
36974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36975 test $ac_status = 0; }; }; then :
36978 $as_echo "$as_me: failed program was:" >&5
36979 sed 's/^/| /' conftest.
$ac_ext >&5
36987 if test $rc -ne 0; then :
36989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36990 $as_echo "no" >&6; }
36993 if test "x$enable_linux_builtin" != xyes
; then
36995 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
36996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36998 if test $rc -ne 0; then
37000 for file in fs
/dcache.c
; do
37001 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
37002 "$LINUX/$file" 2>/dev
/null
37004 if test $rc -eq 0; then
37009 if test $export -eq 0; then :
37019 if test $rc -ne 0; then :
37021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37022 $as_echo "no" >&6; }
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37027 $as_echo "yes" >&6; }
37029 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
37037 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
37041 cat confdefs.h
- <<_ACEOF >conftest.c
37044 #include <linux/dcache.h>
37050 d_obtain_alias(NULL);
37060 cat - <<_ACEOF >conftest.h
37065 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37066 echo "obj-m := conftest.o" >build
/Makefile
37068 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37069 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37071 (eval $ac_try) 2>&5
37073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37074 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37076 (eval $ac_try) 2>&5
37078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37079 test $ac_status = 0; }; }; then :
37082 $as_echo "$as_me: failed program was:" >&5
37083 sed 's/^/| /' conftest.
$ac_ext >&5
37091 if test $rc -ne 0; then :
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37094 $as_echo "no" >&6; }
37097 if test "x$enable_linux_builtin" != xyes
; then
37099 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
37100 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37102 if test $rc -ne 0; then
37104 for file in fs
/dcache.c
; do
37105 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
37106 "$LINUX/$file" 2>/dev
/null
37108 if test $rc -eq 0; then
37113 if test $export -eq 0; then :
37123 if test $rc -ne 0; then :
37125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37126 $as_echo "no" >&6; }
37130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37131 $as_echo "yes" >&6; }
37133 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
37140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
37141 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
37145 cat confdefs.h
- <<_ACEOF >conftest.c
37148 #include <linux/dcache.h>
37154 struct inode *ip = NULL;
37155 d_prune_aliases(ip);
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 :
37187 $as_echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.
$ac_ext >&5
37196 if test $rc -ne 0; then :
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37199 $as_echo "no" >&6; }
37202 if test "x$enable_linux_builtin" != xyes
; then
37204 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
37205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37207 if test $rc -ne 0; then
37209 for file in fs
/dcache.c
; do
37210 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
37211 "$LINUX/$file" 2>/dev
/null
37213 if test $rc -eq 0; then
37218 if test $export -eq 0; then :
37228 if test $rc -ne 0; then :
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37231 $as_echo "no" >&6; }
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236 $as_echo "yes" >&6; }
37238 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37246 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37250 cat confdefs.h
- <<_ACEOF >conftest.c
37253 #include <linux/dcache.h>
37259 d_set_d_op(NULL, NULL);
37269 cat - <<_ACEOF >conftest.h
37274 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37275 echo "obj-m := conftest.o" >build
/Makefile
37277 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37278 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37280 (eval $ac_try) 2>&5
37282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37283 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37285 (eval $ac_try) 2>&5
37287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37288 test $ac_status = 0; }; }; then :
37291 $as_echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.
$ac_ext >&5
37300 if test $rc -ne 0; then :
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 $as_echo "no" >&6; }
37306 if test "x$enable_linux_builtin" != xyes
; then
37308 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37309 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37311 if test $rc -ne 0; then
37313 for file in fs
/dcache.c
; do
37314 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37315 "$LINUX/$file" 2>/dev
/null
37317 if test $rc -eq 0; then
37322 if test $export -eq 0; then :
37332 if test $rc -ne 0; then :
37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37335 $as_echo "no" >&6; }
37339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 $as_echo "yes" >&6; }
37342 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37351 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37354 cat confdefs.h
- <<_ACEOF >conftest.c
37357 #include <linux/dcache.h>
37359 int revalidate (struct dentry *dentry,
37360 struct nameidata *nidata) { return 0; }
37362 static const struct dentry_operations
37363 dops __attribute__ ((unused)) = {
37364 .d_revalidate = revalidate,
37380 cat - <<_ACEOF >conftest.h
37385 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37386 echo "obj-m := conftest.o" >build
/Makefile
37388 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37389 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37391 (eval $ac_try) 2>&5
37393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37394 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37396 (eval $ac_try) 2>&5
37398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37399 test $ac_status = 0; }; }; then :
37401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37402 $as_echo "yes" >&6; }
37404 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37408 $as_echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.
$ac_ext >&5
37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37412 $as_echo "no" >&6; }
37422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37423 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37426 cat confdefs.h
- <<_ACEOF >conftest.c
37429 #include <linux/dcache.h>
37431 const struct dentry_operations test_d_op = {
37432 .d_revalidate = NULL,
37439 struct dentry d __attribute__ ((unused));
37441 d.d_op = &test_d_op;
37451 cat - <<_ACEOF >conftest.h
37456 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37457 echo "obj-m := conftest.o" >build
/Makefile
37459 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37460 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37462 (eval $ac_try) 2>&5
37464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37465 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37467 (eval $ac_try) 2>&5
37469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37470 test $ac_status = 0; }; }; then :
37472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37473 $as_echo "yes" >&6; }
37475 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37479 $as_echo "$as_me: failed program was:" >&5
37480 sed 's/^/| /' conftest.
$ac_ext >&5
37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37483 $as_echo "no" >&6; }
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37493 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37497 cat confdefs.h
- <<_ACEOF >conftest.c
37500 #include <linux/mm.h>
37506 truncate_setsize(NULL, 0);
37516 cat - <<_ACEOF >conftest.h
37521 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37522 echo "obj-m := conftest.o" >build
/Makefile
37524 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37525 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37527 (eval $ac_try) 2>&5
37529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37530 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37532 (eval $ac_try) 2>&5
37534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37535 test $ac_status = 0; }; }; then :
37538 $as_echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.
$ac_ext >&5
37547 if test $rc -ne 0; then :
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550 $as_echo "no" >&6; }
37553 if test "x$enable_linux_builtin" != xyes
; then
37555 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37556 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37558 if test $rc -ne 0; then
37560 for file in mm
/truncate.c
; do
37561 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37562 "$LINUX/$file" 2>/dev
/null
37564 if test $rc -eq 0; then
37569 if test $export -eq 0; then :
37579 if test $rc -ne 0; then :
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37582 $as_echo "no" >&6; }
37586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37587 $as_echo "yes" >&6; }
37589 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37598 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37601 cat confdefs.h
- <<_ACEOF >conftest.c
37604 #include <linux/security.h>
37610 struct inode *ip __attribute__ ((unused)) = NULL;
37611 struct inode *dip __attribute__ ((unused)) = NULL;
37612 const struct qstr *str __attribute__ ((unused)) = NULL;
37613 char *name __attribute__ ((unused)) = NULL;
37614 void *value __attribute__ ((unused)) = NULL;
37615 size_t len __attribute__ ((unused)) = 0;
37617 security_inode_init_security(ip, dip, str, &name, &value, &len);
37627 cat - <<_ACEOF >conftest.h
37632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37633 echo "obj-m := conftest.o" >build
/Makefile
37635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37636 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37638 (eval $ac_try) 2>&5
37640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37641 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37643 (eval $ac_try) 2>&5
37645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37646 test $ac_status = 0; }; }; then :
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37649 $as_echo "yes" >&6; }
37651 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37655 $as_echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.
$ac_ext >&5
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659 $as_echo "no" >&6; }
37669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37670 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37673 cat confdefs.h
- <<_ACEOF >conftest.c
37676 #include <linux/security.h>
37682 struct inode *ip __attribute__ ((unused)) = NULL;
37683 struct inode *dip __attribute__ ((unused)) = NULL;
37684 const struct qstr *str __attribute__ ((unused)) = NULL;
37685 initxattrs func __attribute__ ((unused)) = NULL;
37687 security_inode_init_security(ip, dip, str, func, NULL);
37697 cat - <<_ACEOF >conftest.h
37702 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37703 echo "obj-m := conftest.o" >build
/Makefile
37705 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37706 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37708 (eval $ac_try) 2>&5
37710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37711 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37713 (eval $ac_try) 2>&5
37715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37716 test $ac_status = 0; }; }; then :
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37719 $as_echo "yes" >&6; }
37721 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37725 $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.
$ac_ext >&5
37728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37729 $as_echo "no" >&6; }
37739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fst->mount() exists" >&5
37740 $as_echo_n "checking whether fst->mount() exists... " >&6; }
37743 cat confdefs.h
- <<_ACEOF >conftest.c
37746 #include <linux/fs.h>
37748 static struct dentry *
37749 mount(struct file_system_type *fs_type, int flags,
37750 const char *osname, void *data) {
37751 struct dentry *d = NULL;
37755 static struct file_system_type fst __attribute__ ((unused)) = {
37772 cat - <<_ACEOF >conftest.h
37777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37778 echo "obj-m := conftest.o" >build
/Makefile
37780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37781 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37783 (eval $ac_try) 2>&5
37785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37788 (eval $ac_try) 2>&5
37790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37791 test $ac_status = 0; }; }; then :
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37794 $as_echo "yes" >&6; }
37796 $as_echo "#define HAVE_FST_MOUNT 1" >>confdefs.h
37800 $as_echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.
$ac_ext >&5
37803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37804 $as_echo "no" >&6; }
37814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37815 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37818 cat confdefs.h
- <<_ACEOF >conftest.c
37821 #include <linux/fs.h>
37823 int shrink(struct shrinker *s, struct shrink_control *sc)
37826 static const struct super_block
37827 sb __attribute__ ((unused)) = {
37828 .s_shrink.shrink = shrink,
37829 .s_shrink.seeks = DEFAULT_SEEKS,
37830 .s_shrink.batch = 0,
37846 cat - <<_ACEOF >conftest.h
37851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37852 echo "obj-m := conftest.o" >build
/Makefile
37854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37857 (eval $ac_try) 2>&5
37859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37862 (eval $ac_try) 2>&5
37864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37865 test $ac_status = 0; }; }; then :
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37868 $as_echo "yes" >&6; }
37870 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37875 $as_echo "$as_me: failed program was:" >&5
37876 sed 's/^/| /' conftest.
$ac_ext >&5
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37879 $as_echo "no" >&6; }
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37890 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37893 cat confdefs.h
- <<_ACEOF >conftest.c
37896 #include <linux/fs.h>
37902 struct shrink_control sc __attribute__ ((unused));
37903 unsigned long scnidsize __attribute__ ((unused)) =
37914 cat - <<_ACEOF >conftest.h
37919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37920 echo "obj-m := conftest.o" >build
/Makefile
37922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37923 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37925 (eval $ac_try) 2>&5
37927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37930 (eval $ac_try) 2>&5
37932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37933 test $ac_status = 0; }; }; then :
37935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37936 $as_echo "yes" >&6; }
37938 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
37942 $as_echo "$as_me: failed program was:" >&5
37943 sed 's/^/| /' conftest.
$ac_ext >&5
37945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37946 $as_echo "no" >&6; }
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
37957 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
37960 cat confdefs.h
- <<_ACEOF >conftest.c
37963 #include <linux/fs.h>
37969 struct super_block sb __attribute__ ((unused));
37971 INIT_LIST_HEAD(&sb.s_instances);
37981 cat - <<_ACEOF >conftest.h
37986 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37987 echo "obj-m := conftest.o" >build
/Makefile
37989 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37990 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37992 (eval $ac_try) 2>&5
37994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37995 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37997 (eval $ac_try) 2>&5
37999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38000 test $ac_status = 0; }; }; then :
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38003 $as_echo "yes" >&6; }
38005 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
38009 $as_echo "$as_me: failed program was:" >&5
38010 sed 's/^/| /' conftest.
$ac_ext >&5
38012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38013 $as_echo "no" >&6; }
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
38023 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
38026 cat confdefs.h
- <<_ACEOF >conftest.c
38029 #include <linux/fs.h>
38035 struct super_block sb __attribute__ ((unused));
38046 cat - <<_ACEOF >conftest.h
38051 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38052 echo "obj-m := conftest.o" >build
/Makefile
38054 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38055 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38057 (eval $ac_try) 2>&5
38059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38060 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38062 (eval $ac_try) 2>&5
38064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38065 test $ac_status = 0; }; }; then :
38067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38068 $as_echo "yes" >&6; }
38070 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
38074 $as_echo "$as_me: failed program was:" >&5
38075 sed 's/^/| /' conftest.
$ac_ext >&5
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38078 $as_echo "no" >&6; }
38088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
38089 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
38093 cat confdefs.h
- <<_ACEOF >conftest.c
38096 #include <linux/fs.h>
38097 struct super_block sb;
38103 char *name = "bdi";
38104 atomic_long_t zfs_bdi_seq;
38105 int error __attribute__((unused)) =
38106 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
38116 cat - <<_ACEOF >conftest.h
38121 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38122 echo "obj-m := conftest.o" >build
/Makefile
38124 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38125 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38127 (eval $ac_try) 2>&5
38129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38130 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38132 (eval $ac_try) 2>&5
38134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38135 test $ac_status = 0; }; }; then :
38138 $as_echo "$as_me: failed program was:" >&5
38139 sed 's/^/| /' conftest.
$ac_ext >&5
38147 if test $rc -ne 0; then :
38149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38150 $as_echo "no" >&6; }
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38152 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38156 cat confdefs.h
- <<_ACEOF >conftest.c
38159 #include <linux/backing-dev.h>
38160 struct backing_dev_info bdi;
38166 char *name = "bdi";
38167 int error __attribute__((unused)) =
38168 bdi_setup_and_register(&bdi, name);
38178 cat - <<_ACEOF >conftest.h
38183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38184 echo "obj-m := conftest.o" >build
/Makefile
38186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38189 (eval $ac_try) 2>&5
38191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38194 (eval $ac_try) 2>&5
38196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38197 test $ac_status = 0; }; }; then :
38200 $as_echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.
$ac_ext >&5
38209 if test $rc -ne 0; then :
38211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38212 $as_echo "no" >&6; }
38213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38214 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38218 cat confdefs.h
- <<_ACEOF >conftest.c
38221 #include <linux/backing-dev.h>
38222 struct backing_dev_info bdi;
38228 char *name = "bdi";
38229 unsigned int cap = BDI_CAP_MAP_COPY;
38230 int error __attribute__((unused)) =
38231 bdi_setup_and_register(&bdi, name, cap);
38241 cat - <<_ACEOF >conftest.h
38246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38247 echo "obj-m := conftest.o" >build
/Makefile
38249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38252 (eval $ac_try) 2>&5
38254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38257 (eval $ac_try) 2>&5
38259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38260 test $ac_status = 0; }; }; then :
38263 $as_echo "$as_me: failed program was:" >&5
38264 sed 's/^/| /' conftest.
$ac_ext >&5
38272 if test $rc -ne 0; then :
38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38275 $as_echo "no" >&6; }
38278 if test "x$enable_linux_builtin" != xyes
; then
38280 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38281 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38283 if test $rc -ne 0; then
38285 for file in mm
/backing-dev.c
; do
38286 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38287 "$LINUX/$file" 2>/dev
/null
38289 if test $rc -eq 0; then
38294 if test $export -eq 0; then :
38304 if test $rc -ne 0; then :
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38307 $as_echo "no" >&6; }
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38312 $as_echo "yes" >&6; }
38314 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38322 if test "x$enable_linux_builtin" != xyes
; then
38324 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38325 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38327 if test $rc -ne 0; then
38329 for file in mm
/backing-dev.c
; do
38330 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38331 "$LINUX/$file" 2>/dev
/null
38333 if test $rc -eq 0; then
38338 if test $export -eq 0; then :
38348 if test $rc -ne 0; then :
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38351 $as_echo "no" >&6; }
38352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38353 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38357 cat confdefs.h
- <<_ACEOF >conftest.c
38360 #include <linux/backing-dev.h>
38361 struct backing_dev_info bdi;
38367 char *name = "bdi";
38368 unsigned int cap = BDI_CAP_MAP_COPY;
38369 int error __attribute__((unused)) =
38370 bdi_setup_and_register(&bdi, name, cap);
38380 cat - <<_ACEOF >conftest.h
38385 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38386 echo "obj-m := conftest.o" >build
/Makefile
38388 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38389 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38391 (eval $ac_try) 2>&5
38393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38394 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38396 (eval $ac_try) 2>&5
38398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38399 test $ac_status = 0; }; }; then :
38402 $as_echo "$as_me: failed program was:" >&5
38403 sed 's/^/| /' conftest.
$ac_ext >&5
38411 if test $rc -ne 0; then :
38413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38414 $as_echo "no" >&6; }
38417 if test "x$enable_linux_builtin" != xyes
; then
38419 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38420 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38422 if test $rc -ne 0; then
38424 for file in mm
/backing-dev.c
; do
38425 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38426 "$LINUX/$file" 2>/dev
/null
38428 if test $rc -eq 0; then
38433 if test $export -eq 0; then :
38443 if test $rc -ne 0; then :
38445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38446 $as_echo "no" >&6; }
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38451 $as_echo "yes" >&6; }
38453 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38463 $as_echo "yes" >&6; }
38465 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38473 if test "x$enable_linux_builtin" != xyes
; then
38475 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38476 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38478 if test $rc -ne 0; then
38480 for file in fs
/super.c
; do
38481 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38482 "$LINUX/$file" 2>/dev
/null
38484 if test $rc -eq 0; then
38489 if test $export -eq 0; then :
38499 if test $rc -ne 0; then :
38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38502 $as_echo "no" >&6; }
38503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38504 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38508 cat confdefs.h
- <<_ACEOF >conftest.c
38511 #include <linux/backing-dev.h>
38512 struct backing_dev_info bdi;
38518 char *name = "bdi";
38519 int error __attribute__((unused)) =
38520 bdi_setup_and_register(&bdi, name);
38530 cat - <<_ACEOF >conftest.h
38535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38536 echo "obj-m := conftest.o" >build
/Makefile
38538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38541 (eval $ac_try) 2>&5
38543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38546 (eval $ac_try) 2>&5
38548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38549 test $ac_status = 0; }; }; then :
38552 $as_echo "$as_me: failed program was:" >&5
38553 sed 's/^/| /' conftest.
$ac_ext >&5
38561 if test $rc -ne 0; then :
38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564 $as_echo "no" >&6; }
38565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38566 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38570 cat confdefs.h
- <<_ACEOF >conftest.c
38573 #include <linux/backing-dev.h>
38574 struct backing_dev_info bdi;
38580 char *name = "bdi";
38581 unsigned int cap = BDI_CAP_MAP_COPY;
38582 int error __attribute__((unused)) =
38583 bdi_setup_and_register(&bdi, name, cap);
38593 cat - <<_ACEOF >conftest.h
38598 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38599 echo "obj-m := conftest.o" >build
/Makefile
38601 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38602 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38604 (eval $ac_try) 2>&5
38606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38607 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38609 (eval $ac_try) 2>&5
38611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38612 test $ac_status = 0; }; }; then :
38615 $as_echo "$as_me: failed program was:" >&5
38616 sed 's/^/| /' conftest.
$ac_ext >&5
38624 if test $rc -ne 0; then :
38626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38627 $as_echo "no" >&6; }
38630 if test "x$enable_linux_builtin" != xyes
; then
38632 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38633 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38635 if test $rc -ne 0; then
38637 for file in mm
/backing-dev.c
; do
38638 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38639 "$LINUX/$file" 2>/dev
/null
38641 if test $rc -eq 0; then
38646 if test $export -eq 0; then :
38656 if test $rc -ne 0; then :
38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38659 $as_echo "no" >&6; }
38663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38664 $as_echo "yes" >&6; }
38666 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38674 if test "x$enable_linux_builtin" != xyes
; then
38676 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38677 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38679 if test $rc -ne 0; then
38681 for file in mm
/backing-dev.c
; do
38682 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38683 "$LINUX/$file" 2>/dev
/null
38685 if test $rc -eq 0; then
38690 if test $export -eq 0; then :
38700 if test $rc -ne 0; then :
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 $as_echo "no" >&6; }
38704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38705 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38709 cat confdefs.h
- <<_ACEOF >conftest.c
38712 #include <linux/backing-dev.h>
38713 struct backing_dev_info bdi;
38719 char *name = "bdi";
38720 unsigned int cap = BDI_CAP_MAP_COPY;
38721 int error __attribute__((unused)) =
38722 bdi_setup_and_register(&bdi, name, cap);
38732 cat - <<_ACEOF >conftest.h
38737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38738 echo "obj-m := conftest.o" >build
/Makefile
38740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38743 (eval $ac_try) 2>&5
38745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38748 (eval $ac_try) 2>&5
38750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38751 test $ac_status = 0; }; }; then :
38754 $as_echo "$as_me: failed program was:" >&5
38755 sed 's/^/| /' conftest.
$ac_ext >&5
38763 if test $rc -ne 0; then :
38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38766 $as_echo "no" >&6; }
38769 if test "x$enable_linux_builtin" != xyes
; then
38771 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38772 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38774 if test $rc -ne 0; then
38776 for file in mm
/backing-dev.c
; do
38777 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38778 "$LINUX/$file" 2>/dev
/null
38780 if test $rc -eq 0; then
38785 if test $export -eq 0; then :
38795 if test $rc -ne 0; then :
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38798 $as_echo "no" >&6; }
38802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38803 $as_echo "yes" >&6; }
38805 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38815 $as_echo "yes" >&6; }
38817 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38827 $as_echo "yes" >&6; }
38829 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38838 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38841 cat confdefs.h
- <<_ACEOF >conftest.c
38844 #include <linux/fs.h>
38851 unsigned int link = 0;
38852 (void) set_nlink(&node, link);
38862 cat - <<_ACEOF >conftest.h
38867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38868 echo "obj-m := conftest.o" >build
/Makefile
38870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38871 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38873 (eval $ac_try) 2>&5
38875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38876 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38878 (eval $ac_try) 2>&5
38880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38881 test $ac_status = 0; }; }; then :
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38884 $as_echo "yes" >&6; }
38886 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38890 $as_echo "$as_me: failed program was:" >&5
38891 sed 's/^/| /' conftest.
$ac_ext >&5
38893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38894 $as_echo "no" >&6; }
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38905 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38906 tmp_flags
="$EXTRA_KCFLAGS"
38907 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
38910 cat confdefs.h
- <<_ACEOF >conftest.c
38913 #include <linux/blkdev.h>
38914 #include <linux/elevator.h>
38921 struct request_queue *q = NULL;
38922 char *elevator = NULL;
38923 ret = elevator_change(q, elevator);
38933 cat - <<_ACEOF >conftest.h
38938 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38939 echo "obj-m := conftest.o" >build
/Makefile
38941 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38942 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38944 (eval $ac_try) 2>&5
38946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38947 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38949 (eval $ac_try) 2>&5
38951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38952 test $ac_status = 0; }; }; then :
38954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38955 $as_echo "yes" >&6; }
38957 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
38961 $as_echo "$as_me: failed program was:" >&5
38962 sed 's/^/| /' conftest.
$ac_ext >&5
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965 $as_echo "no" >&6; }
38973 EXTRA_KCFLAGS
="$tmp_flags"
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
38976 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
38979 cat confdefs.h
- <<_ACEOF >conftest.c
38982 #include <linux/fs.h>
38988 struct file_system_type *type = NULL;
38989 int (*test)(struct super_block *,void *) = NULL;
38990 int (*set)(struct super_block *,void *) = NULL;
38993 (void) sget(type, test, set, flags, data);
39003 cat - <<_ACEOF >conftest.h
39008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39009 echo "obj-m := conftest.o" >build
/Makefile
39011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39012 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39014 (eval $ac_try) 2>&5
39016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39017 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39019 (eval $ac_try) 2>&5
39021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39022 test $ac_status = 0; }; }; then :
39024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39025 $as_echo "yes" >&6; }
39027 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
39031 $as_echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.
$ac_ext >&5
39034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39035 $as_echo "no" >&6; }
39044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
39045 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
39049 cat confdefs.h
- <<_ACEOF >conftest.c
39052 #include <linux/fs.h>
39058 struct file *fp __attribute__ ((unused)) = NULL;
39059 struct inode *ip __attribute__ ((unused)) = NULL;
39060 loff_t offset __attribute__ ((unused)) = 0;
39061 loff_t maxsize __attribute__ ((unused)) = 0;
39063 lseek_execute(fp, ip, offset, maxsize);
39073 cat - <<_ACEOF >conftest.h
39078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39079 echo "obj-m := conftest.o" >build
/Makefile
39081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39082 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39084 (eval $ac_try) 2>&5
39086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39087 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39089 (eval $ac_try) 2>&5
39091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39092 test $ac_status = 0; }; }; then :
39095 $as_echo "$as_me: failed program was:" >&5
39096 sed 's/^/| /' conftest.
$ac_ext >&5
39104 if test $rc -ne 0; then :
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39107 $as_echo "no" >&6; }
39110 if test "x$enable_linux_builtin" != xyes
; then
39112 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
39113 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39115 if test $rc -ne 0; then
39117 for file in fs
/read_write.c
; do
39118 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
39119 "$LINUX/$file" 2>/dev
/null
39121 if test $rc -eq 0; then
39126 if test $export -eq 0; then :
39136 if test $rc -ne 0; then :
39138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139 $as_echo "no" >&6; }
39143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39144 $as_echo "yes" >&6; }
39146 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
39155 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
39158 cat confdefs.h
- <<_ACEOF >conftest.c
39161 #include <linux/fs.h>
39162 int iterate(struct file *filp, struct dir_context * context)
39165 static const struct file_operations fops
39166 __attribute__ ((unused)) = {
39167 .iterate_shared = iterate,
39183 cat - <<_ACEOF >conftest.h
39188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39189 echo "obj-m := conftest.o" >build
/Makefile
39191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39194 (eval $ac_try) 2>&5
39196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39199 (eval $ac_try) 2>&5
39201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39202 test $ac_status = 0; }; }; then :
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39207 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39211 $as_echo "$as_me: failed program was:" >&5
39212 sed 's/^/| /' conftest.
$ac_ext >&5
39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39215 $as_echo "no" >&6; }
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39218 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39221 cat confdefs.h
- <<_ACEOF >conftest.c
39224 #include <linux/fs.h>
39225 int iterate(struct file *filp, struct dir_context * context)
39228 static const struct file_operations fops
39229 __attribute__ ((unused)) = {
39230 .iterate = iterate,
39246 cat - <<_ACEOF >conftest.h
39251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39252 echo "obj-m := conftest.o" >build
/Makefile
39254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39257 (eval $ac_try) 2>&5
39259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39262 (eval $ac_try) 2>&5
39264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39265 test $ac_status = 0; }; }; then :
39267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39268 $as_echo "yes" >&6; }
39270 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39274 $as_echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.
$ac_ext >&5
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39278 $as_echo "no" >&6; }
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39281 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39284 cat confdefs.h
- <<_ACEOF >conftest.c
39287 #include <linux/fs.h>
39288 int readdir(struct file *filp, void *entry, filldir_t func)
39291 static const struct file_operations fops
39292 __attribute__ ((unused)) = {
39293 .readdir = readdir,
39309 cat - <<_ACEOF >conftest.h
39314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39315 echo "obj-m := conftest.o" >build
/Makefile
39317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39320 (eval $ac_try) 2>&5
39322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39323 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39325 (eval $ac_try) 2>&5
39327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39328 test $ac_status = 0; }; }; then :
39330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39331 $as_echo "yes" >&6; }
39333 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39337 $as_echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.
$ac_ext >&5
39340 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39364 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39367 cat confdefs.h
- <<_ACEOF >conftest.c
39370 #include <linux/fs.h>
39372 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39374 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39377 static const struct file_operations
39378 fops __attribute__ ((unused)) = {
39379 .read_iter = test_read,
39380 .write_iter = test_write,
39396 cat - <<_ACEOF >conftest.h
39401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39402 echo "obj-m := conftest.o" >build
/Makefile
39404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39407 (eval $ac_try) 2>&5
39409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39412 (eval $ac_try) 2>&5
39414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39415 test $ac_status = 0; }; }; then :
39417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39418 $as_echo "yes" >&6; }
39420 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39424 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39427 cat confdefs.h
- <<_ACEOF >conftest.c
39430 #include <linux/fs.h>
39436 new_sync_read(NULL, NULL, 0, NULL);
39446 cat - <<_ACEOF >conftest.h
39451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39452 echo "obj-m := conftest.o" >build
/Makefile
39454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39455 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39457 (eval $ac_try) 2>&5
39459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39460 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39462 (eval $ac_try) 2>&5
39464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39465 test $ac_status = 0; }; }; then :
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39468 $as_echo "yes" >&6; }
39470 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39474 $as_echo "$as_me: failed program was:" >&5
39475 sed 's/^/| /' conftest.
$ac_ext >&5
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39478 $as_echo "no" >&6; }
39489 $as_echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.
$ac_ext >&5
39492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39493 $as_echo "no" >&6; }
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39503 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39506 cat confdefs.h
- <<_ACEOF >conftest.c
39509 #include <linux/fs.h>
39516 struct kiocb *iocb = NULL;
39517 struct iov_iter *iov = NULL;
39518 generic_write_checks(iocb, iov);
39528 cat - <<_ACEOF >conftest.h
39533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39534 echo "obj-m := conftest.o" >build
/Makefile
39536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39539 (eval $ac_try) 2>&5
39541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39544 (eval $ac_try) 2>&5
39546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39547 test $ac_status = 0; }; }; then :
39549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39550 $as_echo "yes" >&6; }
39552 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39556 $as_echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.
$ac_ext >&5
39559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39560 $as_echo "no" >&6; }
39570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39571 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39574 cat confdefs.h
- <<_ACEOF >conftest.c
39577 #include <linux/pagemap.h>
39584 kmap_atomic(&page);
39594 cat - <<_ACEOF >conftest.h
39599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39600 echo "obj-m := conftest.o" >build
/Makefile
39602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39603 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39605 (eval $ac_try) 2>&5
39607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39608 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39610 (eval $ac_try) 2>&5
39612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39613 test $ac_status = 0; }; }; then :
39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39616 $as_echo "yes" >&6; }
39618 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39622 $as_echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.
$ac_ext >&5
39625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39626 $as_echo "no" >&6; }
39636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39637 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39640 cat confdefs.h
- <<_ACEOF >conftest.c
39643 #include <linux/namei.h>
39649 struct path *p = NULL;
39650 follow_down_one(p);
39660 cat - <<_ACEOF >conftest.h
39665 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39666 echo "obj-m := conftest.o" >build
/Makefile
39668 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39669 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39671 (eval $ac_try) 2>&5
39673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39674 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39676 (eval $ac_try) 2>&5
39678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39679 test $ac_status = 0; }; }; then :
39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39682 $as_echo "yes" >&6; }
39684 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39688 $as_echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.
$ac_ext >&5
39691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39692 $as_echo "no" >&6; }
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39703 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39706 cat confdefs.h
- <<_ACEOF >conftest.c
39709 #include <linux/blkdev.h>
39711 int make_request(struct request_queue *q, struct bio *bio)
39720 blk_queue_make_request(NULL, &make_request);
39730 cat - <<_ACEOF >conftest.h
39735 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39736 echo "obj-m := conftest.o" >build
/Makefile
39738 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39739 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39741 (eval $ac_try) 2>&5
39743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39744 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39746 (eval $ac_try) 2>&5
39748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39749 test $ac_status = 0; }; }; then :
39751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39752 $as_echo "yes" >&6; }
39754 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39757 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39761 $as_echo "$as_me: failed program was:" >&5
39762 sed 's/^/| /' conftest.
$ac_ext >&5
39764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39765 $as_echo "no" >&6; }
39766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39767 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39770 cat confdefs.h
- <<_ACEOF >conftest.c
39773 #include <linux/blkdev.h>
39775 void make_request(struct request_queue *q, struct bio *bio)
39784 blk_queue_make_request(NULL, &make_request);
39794 cat - <<_ACEOF >conftest.h
39799 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39800 echo "obj-m := conftest.o" >build
/Makefile
39802 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39803 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39805 (eval $ac_try) 2>&5
39807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39808 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39810 (eval $ac_try) 2>&5
39812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39813 test $ac_status = 0; }; }; then :
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39816 $as_echo "yes" >&6; }
39818 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39822 $as_echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.
$ac_ext >&5
39825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39826 $as_echo "no" >&6; }
39827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39828 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39831 cat confdefs.h
- <<_ACEOF >conftest.c
39834 #include <linux/blkdev.h>
39836 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39838 return (BLK_QC_T_NONE);
39845 blk_queue_make_request(NULL, &make_request);
39855 cat - <<_ACEOF >conftest.h
39860 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39861 echo "obj-m := conftest.o" >build
/Makefile
39863 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39864 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39866 (eval $ac_try) 2>&5
39868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39869 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39871 (eval $ac_try) 2>&5
39873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39874 test $ac_status = 0; }; }; then :
39876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39877 $as_echo "yes" >&6; }
39879 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39882 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39886 $as_echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.
$ac_ext >&5
39889 as_fn_error $?
"no - Please file a bug report at
39890 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39915 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39919 cat confdefs.h
- <<_ACEOF >conftest.c
39922 #include <linux/bio.h>
39924 void (*generic_start_io_acct_f)(int, unsigned long,
39925 struct hd_struct *) = &generic_start_io_acct;
39926 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39927 unsigned long) = &generic_end_io_acct;
39933 generic_start_io_acct(0, 0, NULL);
39934 generic_end_io_acct(0, NULL, 0);
39944 cat - <<_ACEOF >conftest.h
39949 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39950 echo "obj-m := conftest.o" >build
/Makefile
39952 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39953 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39955 (eval $ac_try) 2>&5
39957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39958 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39960 (eval $ac_try) 2>&5
39962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39963 test $ac_status = 0; }; }; then :
39966 $as_echo "$as_me: failed program was:" >&5
39967 sed 's/^/| /' conftest.
$ac_ext >&5
39975 if test $rc -ne 0; then :
39977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39978 $as_echo "no" >&6; }
39981 if test "x$enable_linux_builtin" != xyes
; then
39983 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39984 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39986 if test $rc -ne 0; then
39988 for file in block
/bio.c
; do
39989 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39990 "$LINUX/$file" 2>/dev
/null
39992 if test $rc -eq 0; then
39997 if test $export -eq 0; then :
40007 if test $rc -ne 0; then :
40009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40010 $as_echo "no" >&6; }
40014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 $as_echo "yes" >&6; }
40017 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
40025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
40026 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
40030 cat confdefs.h
- <<_ACEOF >conftest.c
40033 #include <linux/bio.h>
40035 void (*generic_start_io_acct_f)(struct request_queue *, int,
40036 unsigned long, struct hd_struct *) = &generic_start_io_acct;
40037 void (*generic_end_io_acct_f)(struct request_queue *, int,
40038 struct hd_struct *, unsigned long) = &generic_end_io_acct;
40044 generic_start_io_acct(NULL, 0, 0, NULL);
40045 generic_end_io_acct(NULL, 0, NULL, 0);
40055 cat - <<_ACEOF >conftest.h
40060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40061 echo "obj-m := conftest.o" >build
/Makefile
40063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40066 (eval $ac_try) 2>&5
40068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40071 (eval $ac_try) 2>&5
40073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40074 test $ac_status = 0; }; }; then :
40077 $as_echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.
$ac_ext >&5
40086 if test $rc -ne 0; then :
40088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40089 $as_echo "no" >&6; }
40092 if test "x$enable_linux_builtin" != xyes
; then
40094 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40097 if test $rc -ne 0; then
40099 for file in block
/bio.c
; do
40100 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40101 "$LINUX/$file" 2>/dev
/null
40103 if test $rc -eq 0; then
40108 if test $export -eq 0; then :
40118 if test $rc -ne 0; then :
40120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40121 $as_echo "no" >&6; }
40125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40126 $as_echo "yes" >&6; }
40128 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
40136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
40137 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
40140 cat confdefs.h
- <<_ACEOF >conftest.c
40143 #include <linux/kernel.h>
40144 #include <asm/fpu/api.h>
40150 __kernel_fpu_begin();
40160 cat - <<_ACEOF >conftest.h
40165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40166 echo "obj-m := conftest.o" >build
/Makefile
40168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40171 (eval $ac_try) 2>&5
40173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40174 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40176 (eval $ac_try) 2>&5
40178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40179 test $ac_status = 0; }; }; then :
40181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40182 $as_echo "yes" >&6; }
40184 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40188 $as_echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.
$ac_ext >&5
40191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40192 $as_echo "no" >&6; }
40202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40203 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40206 cat confdefs.h
- <<_ACEOF >conftest.c
40209 #include <linux/fs.h>
40215 struct inode *ip = NULL;
40216 (void) i_uid_read(ip);
40226 cat - <<_ACEOF >conftest.h
40231 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40232 echo "obj-m := conftest.o" >build
/Makefile
40234 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40235 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40237 (eval $ac_try) 2>&5
40239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40240 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40242 (eval $ac_try) 2>&5
40244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40245 test $ac_status = 0; }; }; then :
40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40248 $as_echo "yes" >&6; }
40250 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40254 $as_echo "$as_me: failed program was:" >&5
40255 sed 's/^/| /' conftest.
$ac_ext >&5
40257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40258 $as_echo "no" >&6; }
40268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40269 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40272 cat confdefs.h
- <<_ACEOF >conftest.c
40275 #include <linux/module.h>
40276 #include <linux/moduleparam.h>
40278 int param_get(char *b, const struct kernel_param *kp)
40283 int param_set(const char *b, const struct kernel_param *kp)
40288 module_param_call(p, param_set, param_get, NULL, 0644);
40303 cat - <<_ACEOF >conftest.h
40308 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40309 echo "obj-m := conftest.o" >build
/Makefile
40311 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40312 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40314 (eval $ac_try) 2>&5
40316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40317 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40319 (eval $ac_try) 2>&5
40321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40322 test $ac_status = 0; }; }; then :
40324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40325 $as_echo "yes" >&6; }
40327 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40331 $as_echo "$as_me: failed program was:" >&5
40332 sed 's/^/| /' conftest.
$ac_ext >&5
40334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40335 $as_echo "no" >&6; }
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40346 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40349 cat confdefs.h
- <<_ACEOF >conftest.c
40352 #include <linux/fs.h>
40353 int rename_fn(struct inode *sip, struct dentry *sdp,
40354 struct inode *tip, struct dentry *tdp,
40355 unsigned int flags) { return 0; }
40357 static const struct inode_operations
40358 iops __attribute__ ((unused)) = {
40359 .rename = rename_fn,
40375 cat - <<_ACEOF >conftest.h
40380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40381 echo "obj-m := conftest.o" >build
/Makefile
40383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40386 (eval $ac_try) 2>&5
40388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40391 (eval $ac_try) 2>&5
40393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40394 test $ac_status = 0; }; }; then :
40396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40397 $as_echo "yes" >&6; }
40399 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40403 $as_echo "$as_me: failed program was:" >&5
40404 sed 's/^/| /' conftest.
$ac_ext >&5
40406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40407 $as_echo "no" >&6; }
40417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40418 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40421 cat confdefs.h
- <<_ACEOF >conftest.c
40424 #include <linux/fs.h>
40425 #include <linux/xattr.h>
40427 static const struct inode_operations
40428 iops __attribute__ ((unused)) = {
40429 .setxattr = generic_setxattr
40445 cat - <<_ACEOF >conftest.h
40450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40451 echo "obj-m := conftest.o" >build
/Makefile
40453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40456 (eval $ac_try) 2>&5
40458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40461 (eval $ac_try) 2>&5
40463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40464 test $ac_status = 0; }; }; then :
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40467 $as_echo "yes" >&6; }
40469 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40473 $as_echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.
$ac_ext >&5
40476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40477 $as_echo "no" >&6; }
40486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40487 $as_echo_n "checking whether current_time() exists... " >&6; }
40491 cat confdefs.h
- <<_ACEOF >conftest.c
40494 #include <linux/fs.h>
40501 struct timespec now __attribute__ ((unused));
40503 now = current_time(&ip);
40513 cat - <<_ACEOF >conftest.h
40518 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40519 echo "obj-m := conftest.o" >build
/Makefile
40521 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40522 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40524 (eval $ac_try) 2>&5
40526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40527 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40529 (eval $ac_try) 2>&5
40531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40532 test $ac_status = 0; }; }; then :
40535 $as_echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.
$ac_ext >&5
40544 if test $rc -ne 0; then :
40546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40547 $as_echo "no" >&6; }
40550 if test "x$enable_linux_builtin" != xyes
; then
40552 grep -q -E '[[:space:]]current_time[[:space:]]' \
40553 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40555 if test $rc -ne 0; then
40557 for file in fs
/inode.c
; do
40558 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40559 "$LINUX/$file" 2>/dev
/null
40561 if test $rc -eq 0; then
40566 if test $export -eq 0; then :
40576 if test $rc -ne 0; then :
40578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 $as_echo "no" >&6; }
40583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40584 $as_echo "yes" >&6; }
40586 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40595 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40598 cat confdefs.h
- <<_ACEOF >conftest.c
40601 #include <linux/mm.h>
40602 #include <linux/vmstat.h>
40608 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40609 long x __attribute__ ((unused)) =
40610 atomic_long_read(&vm_node_stat[0]);
40611 (void) global_node_page_state(0);
40621 cat - <<_ACEOF >conftest.h
40626 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40627 echo "obj-m := conftest.o" >build
/Makefile
40629 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40630 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40632 (eval $ac_try) 2>&5
40634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40635 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40637 (eval $ac_try) 2>&5
40639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40640 test $ac_status = 0; }; }; then :
40642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40643 $as_echo "yes" >&6; }
40645 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40649 $as_echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.
$ac_ext >&5
40652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40653 $as_echo "no" >&6; }
40664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
40665 $as_echo_n "checking whether ns_capable exists... " >&6; }
40668 cat confdefs.h
- <<_ACEOF >conftest.c
40671 #include <linux/capability.h>
40677 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
40687 cat - <<_ACEOF >conftest.h
40692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40693 echo "obj-m := conftest.o" >build
/Makefile
40695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40698 (eval $ac_try) 2>&5
40700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40703 (eval $ac_try) 2>&5
40705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40706 test $ac_status = 0; }; }; then :
40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40709 $as_echo "yes" >&6; }
40711 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
40715 $as_echo "$as_me: failed program was:" >&5
40716 sed 's/^/| /' conftest.
$ac_ext >&5
40718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40719 $as_echo "no" >&6; }
40729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
40730 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
40733 cat confdefs.h
- <<_ACEOF >conftest.c
40736 #include <linux/cred.h>
40743 cr.user_ns = (struct user_namespace *)NULL;
40753 cat - <<_ACEOF >conftest.h
40758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40759 echo "obj-m := conftest.o" >build
/Makefile
40761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40764 (eval $ac_try) 2>&5
40766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40769 (eval $ac_try) 2>&5
40771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40772 test $ac_status = 0; }; }; then :
40774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40775 $as_echo "yes" >&6; }
40777 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
40781 $as_echo "$as_me: failed program was:" >&5
40782 sed 's/^/| /' conftest.
$ac_ext >&5
40784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40785 $as_echo "no" >&6; }
40795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
40796 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
40799 cat confdefs.h
- <<_ACEOF >conftest.c
40802 #include <linux/uidgid.h>
40808 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
40809 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
40819 cat - <<_ACEOF >conftest.h
40824 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40825 echo "obj-m := conftest.o" >build
/Makefile
40827 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40828 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40830 (eval $ac_try) 2>&5
40832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40833 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40835 (eval $ac_try) 2>&5
40837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40838 test $ac_status = 0; }; }; then :
40840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40841 $as_echo "yes" >&6; }
40843 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
40847 $as_echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.
$ac_ext >&5
40850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40851 $as_echo "no" >&6; }
40862 if test "$LINUX_OBJ" != "$LINUX"; then :
40864 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40870 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
40871 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40872 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40873 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40874 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40875 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40882 $as_echo "Error!" >&6; }
40883 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
40884 user kernel|user|all|srpm" "$LINENO" 5 ;;
40887 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
40889 CONFIG_USER_FALSE
='#'
40891 CONFIG_USER_TRUE
='#'
40895 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40896 test "x$enable_linux_builtin" != xyes
; then
40897 CONFIG_KERNEL_TRUE
=
40898 CONFIG_KERNEL_FALSE
='#'
40900 CONFIG_KERNEL_TRUE
='#'
40901 CONFIG_KERNEL_FALSE
=
40904 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40905 test "x$qatsrc" != x
; then
40907 CONFIG_QAT_FALSE
='#'
40909 CONFIG_QAT_TRUE
='#'
40913 if test "x$user_libudev" = xyes
; then
40914 WANT_DEVNAME2DEVID_TRUE
=
40915 WANT_DEVNAME2DEVID_FALSE
='#'
40917 WANT_DEVNAME2DEVID_TRUE
='#'
40918 WANT_DEVNAME2DEVID_FALSE
=
40921 if test "x$user_libaio" = xyes
; then
40922 WANT_MMAP_LIBAIO_TRUE
=
40923 WANT_MMAP_LIBAIO_FALSE
='#'
40925 WANT_MMAP_LIBAIO_TRUE
='#'
40926 WANT_MMAP_LIBAIO_FALSE
=
40931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40932 $as_echo_n "checking whether debugging is enabled... " >&6; }
40933 # Check whether --enable-debug was given.
40934 if test "${enable_debug+set}" = set; then :
40935 enableval
=$enable_debug;
40941 if test "x$enable_debug" = xyes
; then :
40943 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
40944 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
40945 DEBUG_CFLAGS
="-DDEBUG -Werror"
40946 DEBUG_STACKFLAGS
="-fstack-check"
40947 DEBUG_ZFS
="_with_debug"
40949 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
40954 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
40955 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
40956 DEBUG_CFLAGS
="-DNDEBUG"
40957 DEBUG_STACKFLAGS
=""
40958 DEBUG_ZFS
="_without_debug"
40965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
40966 $as_echo "$enable_debug" >&6; }
40969 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"
40973 cat >confcache
<<\_ACEOF
40974 # This file is a shell script that caches the results of configure
40975 # tests run on this system so they can be shared between configure
40976 # scripts and configure runs, see configure's option --config-cache.
40977 # It is not useful on other systems. If it contains results you don't
40978 # want to keep, you may remove or edit it.
40980 # config.status only pays attention to the cache file if you give it
40981 # the --recheck option to rerun configure.
40983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40985 # following values.
40989 # The following way of writing the cache mishandles newlines in values,
40990 # but we know of no workaround that is simple, portable, and efficient.
40991 # So, we kill variables containing newlines.
40992 # Ultrix sh set writes to stderr and can't be redirected directly,
40993 # and sets the high bit in the cache file unless we assign to the vars.
40995 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40996 eval ac_val
=\$
$ac_var
41000 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41004 _ | IFS | as_nl
) ;; #(
41005 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
41006 *) { eval $ac_var=; unset $ac_var;} ;;
41012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41013 *${as_nl}ac_space
=\
*)
41014 # `set' does not quote correctly, so add quotes: double-quote
41015 # substitution turns \\\\ into \\, and sed turns \\ into \.
41018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41021 # `set' quotes correctly as required by POSIX, so do not add quotes.
41022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41035 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
41036 if test -w "$cache_file"; then
41037 if test "x$cache_file" != "x/dev/null"; then
41038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41039 $as_echo "$as_me: updating cache $cache_file" >&6;}
41040 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
41041 cat confcache
>"$cache_file"
41043 case $cache_file in #(
41045 mv -f confcache
"$cache_file"$$
&&
41046 mv -f "$cache_file"$$
"$cache_file" ;; #(
41048 mv -f confcache
"$cache_file" ;;
41053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41059 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
41060 # Let make expand exec_prefix.
41061 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
41063 DEFS
=-DHAVE_CONFIG_H
41068 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
41069 # 1. Remove the extension, and $U if already installed.
41070 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
41071 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
41072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41073 # will be set to the directory where LIBOBJS objects are built.
41074 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41075 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
41077 LIBOBJS
=$ac_libobjs
41079 LTLIBOBJS
=$ac_ltlibobjs
41082 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41083 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
41084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41087 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41088 if test -n "$am_sleep_pid"; then
41089 # Hide warnings about reused PIDs.
41090 wait $am_sleep_pid 2>/dev
/null
41092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41093 $as_echo "done" >&6; }
41094 if test -n "$EXEEXT"; then
41096 am__EXEEXT_FALSE
='#'
41098 am__EXEEXT_TRUE
='#'
41102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41103 as_fn_error $?
"conditional \"AMDEP\" was never defined.
41104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41106 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41107 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41110 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41111 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41114 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
41115 as_fn_error $?
"conditional \"TARGET_ASM_X86_64\" was never defined.
41116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41118 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
41119 as_fn_error $?
"conditional \"TARGET_ASM_I386\" was never defined.
41120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41122 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
41123 as_fn_error $?
"conditional \"TARGET_ASM_GENERIC\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41126 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41127 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41130 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41131 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41134 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
41135 as_fn_error $?
"conditional \"CONFIG_QAT\" was never defined.
41136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41138 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
41139 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
41140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41142 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
41143 as_fn_error $?
"conditional \"WANT_MMAP_LIBAIO\" was never defined.
41144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41147 : "${CONFIG_STATUS=./config.status}"
41149 ac_clean_files_save
=$ac_clean_files
41150 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
41151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41156 # Generated by $as_me.
41157 # Run this file to recreate the current configuration.
41158 # Compiler output produced by configure, useful for debugging
41159 # configure, is in config.log if it exists.
41162 ac_cs_recheck=false
41165 SHELL=\${CONFIG_SHELL-$SHELL}
41168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
41169 ## -------------------- ##
41170 ## M4sh Initialization. ##
41171 ## -------------------- ##
41173 # Be more Bourne compatible
41174 DUALCASE
=1; export DUALCASE
# for MKS sh
41175 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
41178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41179 # is contrary to our usage. Disable this feature.
41180 alias -g '${1+"$@"}'='"$@"'
41181 setopt NO_GLOB_SUBST
41183 case `(set -o) 2>/dev/null` in #(
41195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41196 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41199 # Prefer a ksh shell builtin over an external printf program on Solaris,
41200 # but without wasting forks for bash or zsh.
41201 if test -z "$BASH_VERSION$ZSH_VERSION" \
41202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41203 as_echo='print
-r --'
41204 as_echo_n='print
-rn --'
41205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41206 as_echo='printf %s
\n'
41207 as_echo_n='printf %s
'
41209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41210 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
41211 as_echo_n='/usr
/ucb
/echo -n'
41213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41214 as_echo_n_body='eval
41218 expr "X$arg" : "X\\(.*\\)$as_nl";
41219 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41221 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
41223 export as_echo_n_body
41224 as_echo_n='sh
-c $as_echo_n_body as_echo
'
41226 export as_echo_body
41227 as_echo='sh
-c $as_echo_body as_echo
'
41230 # The user is always right.
41231 if test "${PATH_SEPARATOR+set}" != set; then
41233 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41234 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41241 # We need space, tab and new line, in precisely that order. Quoting is
41242 # there to prevent editors from complaining about space-tab.
41243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41244 # splitting by setting IFS to empty value.)
41247 # Find who we are. Look in the path if we contain no directory separator.
41250 *[\\/]* ) as_myself=$0 ;;
41251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41252 for as_dir in $PATH
41255 test -z "$as_dir" && as_dir=.
41256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41262 # We did not find ourselves, most probably we were run as `sh COMMAND'
41263 # in which case we are not to be found in the path.
41264 if test "x$as_myself" = x
; then
41267 if test ! -f "$as_myself"; then
41268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41272 # Unset variables that we do not need and which cause bugs (e.g. in
41273 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41274 # suppresses any "Segmentation fault" message there. '((' could
41275 # trigger a bug in pdksh 5.2.14.
41276 for as_var
in BASH_ENV ENV MAIL MAILPATH
41277 do eval test x\
${$as_var+set} = xset \
41278 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
41291 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
41294 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41295 # ----------------------------------------
41296 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41297 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41298 # script with STATUS, using 1 if that was 0.
41301 as_status
=$1; test $as_status -eq 0 && as_status
=1
41303 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
41304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41306 $as_echo "$as_me: error: $2" >&2
41307 as_fn_exit
$as_status
41311 # as_fn_set_status STATUS
41312 # -----------------------
41313 # Set $? to STATUS, without forking.
41314 as_fn_set_status
()
41317 } # as_fn_set_status
41319 # as_fn_exit STATUS
41320 # -----------------
41321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41325 as_fn_set_status
$1
41331 # Portably unset VAR.
41334 { eval $1=; unset $1;}
41336 as_unset
=as_fn_unset
41337 # as_fn_append VAR VALUE
41338 # ----------------------
41339 # Append the text in VALUE to the end of the definition contained in VAR. Take
41340 # advantage of any shell optimizations that allow amortized linear growth over
41341 # repeated appends, instead of the typical quadratic growth present in naive
41343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
41344 eval 'as_fn_append ()
41355 # as_fn_arith ARG...
41356 # ------------------
41357 # Perform arithmetic evaluation on the ARGs, and store the result in the
41358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41359 # must be portable across $(()) and expr.
41360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
41361 eval 'as_fn_arith ()
41368 as_val
=`expr "$@" || test $? -eq 1`
41373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
41374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
41380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41381 as_basename
=basename
41386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
41392 as_me
=`$as_basename -- "$0" ||
41393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41394 X"$0" : 'X\(//\)$' \| \
41395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41397 sed '/^.*\/\([^/][^/]*\)\/*$/{
41411 # Avoid depending upon Character Ranges.
41412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41415 as_cr_digits
='0123456789'
41416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41418 ECHO_C
= ECHO_N
= ECHO_T
=
41419 case `echo -n x` in #(((((
41421 case `echo 'xy\c'` in
41422 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
41424 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
41431 rm -f conf$$ conf$$.exe conf$$.
file
41432 if test -d conf$$.dir
; then
41433 rm -f conf$$.dir
/conf$$.
file
41436 mkdir conf$$.dir
2>/dev
/null
41438 if (echo >conf$$.
file) 2>/dev
/null
; then
41439 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41441 # ... but there are two gotchas:
41442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41444 # In both cases, we have to default to `cp -pR'.
41445 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
41447 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41455 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
41456 rmdir conf$$.dir
2>/dev
/null
41461 # Create "$as_dir" as a directory, including parents if necessary.
41466 -*) as_dir
=.
/$as_dir;;
41468 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
41472 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41473 *) as_qdir
=$as_dir;;
41475 as_dirs
="'$as_qdir' $as_dirs"
41476 as_dir
=`$as_dirname -- "$as_dir" ||
41477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41478 X"$as_dir" : 'X\(//\)[^/]' \| \
41479 X"$as_dir" : 'X\(//\)$' \| \
41480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41481 $as_echo X"$as_dir" |
41482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41486 /^X\(\/\/\)[^/].*/{
41499 test -d "$as_dir" && break
41501 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
41502 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
41506 if mkdir
-p .
2>/dev
/null
; then
41507 as_mkdir_p
='mkdir -p "$as_dir"'
41509 test -d .
/-p && rmdir .
/-p
41514 # as_fn_executable_p FILE
41515 # -----------------------
41516 # Test if FILE is an executable regular file.
41517 as_fn_executable_p
()
41519 test -f "$1" && test -x "$1"
41520 } # as_fn_executable_p
41521 as_test_x
='test -x'
41522 as_executable_p
=as_fn_executable_p
41524 # Sed expression to map a string onto a valid CPP name.
41525 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41527 # Sed expression to map a string onto a valid variable name.
41528 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41532 ## ----------------------------------- ##
41533 ## Main body of $CONFIG_STATUS script. ##
41534 ## ----------------------------------- ##
41536 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
41538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41539 # Save the log message, to keep $0 and so on meaningful, and to
41540 # report actual input values of CONFIG_FILES etc. instead of their
41541 # values after options handling.
41543 This file was extended by zfs $as_me 0.7.5, which was
41544 generated by GNU Autoconf 2.69. Invocation command line was
41546 CONFIG_FILES = $CONFIG_FILES
41547 CONFIG_HEADERS = $CONFIG_HEADERS
41548 CONFIG_LINKS = $CONFIG_LINKS
41549 CONFIG_COMMANDS = $CONFIG_COMMANDS
41552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41557 case $ac_config_files in *"
41558 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
41561 case $ac_config_headers in *"
41562 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
41566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41567 # Files that config.status was made for.
41568 config_files="$ac_config_files"
41569 config_headers="$ac_config_headers"
41570 config_commands="$ac_config_commands"
41574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41576 \`$as_me' instantiates files and other configuration actions
41577 from templates according to the current configuration. Unless the files
41578 and actions are specified as TAGs, all are instantiated by default.
41580 Usage: $0 [OPTION]... [TAG]...
41582 -h, --help print this help, then exit
41583 -V, --version print version number and configuration settings, then exit
41584 --config print configuration, then exit
41585 -q, --quiet, --silent
41586 do not print progress messages
41587 -d, --debug don't remove temporary files
41588 --recheck update $as_me by reconfiguring in the same conditions
41589 --file=FILE[:TEMPLATE]
41590 instantiate the configuration file FILE
41591 --header=FILE[:TEMPLATE]
41592 instantiate the configuration header FILE
41594 Configuration files:
41597 Configuration headers:
41600 Configuration commands:
41603 Report bugs to the package provider."
41606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41607 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41609 zfs config.status 0.7.5
41610 configured by $0, generated by GNU Autoconf 2.69,
41611 with options \\"\$ac_cs_config\\"
41613 Copyright (C) 2012 Free Software Foundation, Inc.
41614 This config.status script is free software; the Free Software Foundation
41615 gives unlimited permission to copy, distribute and modify it."
41622 test -n "\$AWK" || AWK=awk
41625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41626 # The default lists apply if the user does not specify any file.
41632 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41633 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
41637 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41649 # Handling of the options.
41650 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41652 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
41653 $as_echo "$ac_cs_version"; exit ;;
41654 --config |
--confi |
--conf |
--con |
--co |
--c )
41655 $as_echo "$ac_cs_config"; exit ;;
41656 --debug |
--debu |
--deb |
--de |
--d |
-d )
41658 --file |
--fil |
--fi |
--f )
41661 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41662 '') as_fn_error $?
"missing file argument" ;;
41664 as_fn_append CONFIG_FILES
" '$ac_optarg'"
41665 ac_need_defaults
=false
;;
41666 --header |
--heade |
--head |
--hea )
41669 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41671 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
41672 ac_need_defaults
=false
;;
41674 # Conflict between --help and --header
41675 as_fn_error $?
"ambiguous option: \`$1'
41676 Try \`$0 --help' for more information.";;
41677 --help |
--hel |
-h )
41678 $as_echo "$ac_cs_usage"; exit ;;
41679 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41680 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41683 # This is an error.
41684 -*) as_fn_error $?
"unrecognized option: \`$1'
41685 Try \`$0 --help' for more information." ;;
41687 *) as_fn_append ac_config_targets
" $1"
41688 ac_need_defaults
=false
;;
41694 ac_configure_extra_args
=
41696 if $ac_cs_silent; then
41698 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41703 if \$ac_cs_recheck; then
41704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41707 CONFIG_SHELL='$SHELL'
41708 export CONFIG_SHELL
41713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41718 ## Running $as_me. ##
41724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41728 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41731 # The HP-UX ksh and POSIX shell print the target directory to stdout
41732 # if CDPATH is set.
41733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41735 sed_quote_subst='$sed_quote_subst'
41736 double_quote_subst='$double_quote_subst'
41737 delay_variable_subst='$delay_variable_subst'
41738 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41739 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41740 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41741 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41742 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41743 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41744 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41745 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41746 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41747 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41748 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41749 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41750 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41751 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41752 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41753 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41754 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41755 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41756 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41757 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41758 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41759 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41760 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41768 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41769 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41770 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41771 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41772 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41773 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41774 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41775 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41776 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41778 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41779 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41780 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41781 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41782 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41783 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41784 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41785 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41786 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41787 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41788 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41789 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41790 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41791 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41792 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41793 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41794 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41795 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41796 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"`'
41797 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41798 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41799 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41800 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41801 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41802 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41803 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41804 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41805 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41806 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41807 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41808 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41809 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41810 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41811 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41812 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41813 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41814 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41815 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41816 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41817 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41818 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41819 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41820 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41821 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41822 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41823 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41824 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41825 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41826 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41827 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41828 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41829 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41830 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41831 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41832 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41833 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41834 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41835 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41836 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41837 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41838 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41839 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41840 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41841 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41842 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41843 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41844 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41845 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41846 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41847 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41848 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41849 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41850 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41851 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41852 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41853 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41854 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41855 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41856 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41857 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41858 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41859 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41860 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41861 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41862 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41863 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41864 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41865 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41866 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41867 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41868 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41869 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41870 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41871 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41872 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41875 LTCFLAGS='$LTCFLAGS'
41876 compiler='$compiler_DEFAULT'
41878 # A function that is used when there is no print builtin or printf.
41879 func_fallback_echo ()
41881 eval 'cat <<_LTECHO_EOF
41886 # Quote evaled strings.
41901 deplibs_check_method \
41906 sharedlib_from_linklib_cmd \
41909 archiver_list_spec \
41915 lt_cv_sys_global_symbol_pipe \
41916 lt_cv_sys_global_symbol_to_cdecl \
41917 lt_cv_sys_global_symbol_to_import \
41918 lt_cv_sys_global_symbol_to_c_name_address \
41919 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41920 lt_cv_nm_interface \
41921 nm_file_list_spec \
41922 lt_cv_truncate_bin \
41923 lt_prog_compiler_no_builtin_flag \
41924 lt_prog_compiler_pic \
41925 lt_prog_compiler_wl \
41926 lt_prog_compiler_static \
41927 lt_cv_prog_compiler_c_o \
41936 export_dynamic_flag_spec \
41937 whole_archive_flag_spec \
41938 compiler_needs_object \
41940 allow_undefined_flag \
41941 no_undefined_flag \
41942 hardcode_libdir_flag_spec \
41943 hardcode_libdir_separator \
41947 variables_saved_for_relink \
41949 library_names_spec \
41951 install_override_mode \
41955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41956 *[\\\\\\\`\\"\\\$]*)
41957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41965 # Double-quote double-evaled strings.
41966 for var in reload_cmds \
41967 old_postinstall_cmds \
41968 old_postuninstall_cmds \
41970 extract_expsyms_cmds \
41971 old_archive_from_new_cmds \
41972 old_archive_from_expsyms_cmds \
41974 archive_expsym_cmds \
41976 module_expsym_cmds \
41977 export_symbols_cmds \
41981 postuninstall_cmds \
41983 sys_lib_search_path_spec \
41984 configure_time_dlsearch_path \
41985 configure_time_lt_sys_library_path; do
41986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41987 *[\\\\\\\`\\"\\\$]*)
41988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41996 ac_aux_dir='$ac_aux_dir'
41998 # See if we are running on zsh, and set the options that allow our
41999 # commands through without removal of \ escapes INIT.
42000 if test -n "\${ZSH_VERSION+set}"; then
42001 setopt NO_GLOB_SUBST
42015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42017 # Handling of arguments.
42018 for ac_config_target
in $ac_config_targets
42020 case $ac_config_target in
42021 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
42022 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
42023 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
42024 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
42025 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
42026 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
42027 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
42028 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
42029 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
42030 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
42031 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
42032 "module/icp/Makefile") CONFIG_FILES
="$CONFIG_FILES module/icp/Makefile" ;;
42033 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
42034 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
42035 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
42036 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
42037 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
42038 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42039 "include/sys/crypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/crypto/Makefile" ;;
42040 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
42041 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
42043 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42048 # If the user did not use the arguments to specify the items to instantiate,
42049 # then the envvar interface is used. Set only those that are not.
42050 # We use the long form for the default assignment because of an extremely
42051 # bizarre bug on SunOS 4.1.3.
42052 if $ac_need_defaults; then
42053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
42054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
42055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
42058 # Have a temporary directory for convenience. Make it in the build tree
42059 # simply because there is no reason against having it here, and in addition,
42060 # creating and moving files from /tmp can sometimes cause problems.
42061 # Hook for its removal unless debugging.
42062 # Note that there is a small window in which the directory will not be cleaned:
42063 # after its creation but before its name has been assigned to `$tmp'.
42067 trap 'exit_status=$?
42068 : "${ac_tmp:=$tmp}"
42069 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42071 trap 'as_fn_exit 1' 1 2 13 15
42073 # Create a (secure) tmp directory for tmp files.
42076 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42080 tmp
=.
/conf$$
-$RANDOM
42081 (umask 077 && mkdir
"$tmp")
42082 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
42085 # Set up the scripts for CONFIG_FILES section.
42086 # No need to generate them if there are no CONFIG_FILES.
42087 # This happens for instance with `./config.status config.h'.
42088 if test -n "$CONFIG_FILES"; then
42091 ac_cr
=`echo X | tr X '\015'`
42092 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42093 # But we know of no other shell where ac_cr would be empty at this
42094 # point, so we can use a bashism as a fallback.
42095 if test "x$ac_cr" = x
; then
42096 eval ac_cr
=\$
\'\\r
\'
42098 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42099 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42102 ac_cs_awk_cr
=$ac_cr
42105 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42110 echo "cat >conf$$subs.awk <<_ACEOF" &&
42111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42113 } >conf$$subs.sh ||
42114 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42117 for ac_last_try in false false false false false :; do
42118 . ./conf$$subs.sh ||
42119 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42121 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
42122 if test $ac_delim_n = $ac_delim_num; then
42124 elif $ac_last_try; then
42125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42127 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42130 rm -f conf$$subs.sh
42132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42133 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
42137 s/^/S["/; s
/!.
*/"]=/
42147 s/\(.\{148\}\)..*/\1/
42149 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
42154 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42161 s/\(.\{148\}\)..*/\1/
42163 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
42167 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42172 ' <conf$$subs.awk | sed '
42177 ' >>$CONFIG_STATUS || ac_write_fail=1
42178 rm -f conf$$subs.awk
42179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42181 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
42182 for (key in S) S_is_set[key] = 1
42188 nfields = split(line, field, "@
")
42190 len = length(field[1])
42191 for (i = 2; i < nfields; i++) {
42193 keylen = length(key)
42194 if (S_is_set[key]) {
42196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42197 len += length(value) + length(field[++i])
42208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42209 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42210 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
42213 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
42214 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
42217 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42218 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
42219 # trailing colons and then remove the whole line if VPATH becomes empty
42220 # (actually we leave an empty line to preserve line numbers).
42221 if test "x
$srcdir" = x.; then
42222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42241 fi # test -n "$CONFIG_FILES"
42243 # Set up the scripts for CONFIG_HEADERS section.
42244 # No need to generate them if there are no CONFIG_HEADERS.
42245 # This happens for instance with `./config.status Makefile'.
42246 if test -n "$CONFIG_HEADERS"; then
42247 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
42251 # Transform confdefs.h into an awk script `defines.awk', embedded as
42252 # here-document in config.status, that substitutes the proper values into
42253 # config.h.in to produce config.h.
42255 # Create a delimiter string that does not exist in confdefs.h, to ease
42256 # handling of long lines.
42258 for ac_last_try in false false :; do
42259 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
42260 if test -z "$ac_tt"; then
42262 elif $ac_last_try; then
42263 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
42265 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42269 # For the awk script, D is an array of macro values keyed by name,
42270 # likewise P contains macro parameters if any. Preserve backslash
42271 # newline sequences.
42273 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42275 s/.\{148\}/&'"$ac_delim"'/g
42278 s/^[ ]*#[ ]*define[ ][ ]*/ /
42285 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
42287 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
42291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
42292 D["\
1"]=" \
3\\\\\\n
"\\/p
42294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
42299 s/.\{148\}/&'"$ac_delim"'/g
42304 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
42307 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
42309 ' <confdefs.h | sed '
42310 s/'"$ac_delim"'/"\\\
42311 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42314 for (key in D) D_is_set[key] = 1
42317 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42319 split(line, arg, " ")
42320 if (arg[1] == "#") {
42324 defundef
= substr
(arg
[1], 2)
42327 split(mac1
, mac2
, "(") #)
42329 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
42330 if (D_is_set
[macro
]) {
42331 # Preserve the white space surrounding the "#".
42332 print prefix
"define", macro P
[macro
] D
[macro
]
42335 # Replace #undef with comments. This is necessary, for example,
42336 # in the case of _POSIX_SOURCE, which is predefined and required
42337 # on some systems where configure will not decide to define it.
42338 if (defundef
== "undef") {
42339 print
"/*", prefix defundef
, macro
, "*/"
42347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42348 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
42349 fi # test -n "$CONFIG_HEADERS"
42352 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42357 :[FHLC
]) ac_mode
=$ac_tag; continue;;
42359 case $ac_mode$ac_tag in
42361 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
42362 :[FH
]-) ac_tag
=-:-;;
42363 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
42380 -) ac_f
="$ac_tmp/stdin";;
42381 *) # Look for the file first in the build tree, then in the source tree
42382 # (if the path is not absolute). The absolute path cannot be DOS-style,
42383 # because $ac_f cannot contain `:'.
42387 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
42389 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42391 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42392 as_fn_append ac_file_inputs
" '$ac_f'"
42395 # Let's still pretend it is `configure' which instantiates (i.e., don't
42396 # use $as_me), people would be surprised to read:
42397 # /* config.h. Generated by config.status. */
42398 configure_input
='Generated from '`
42399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42401 if test x
"$ac_file" != x-
; then
42402 configure_input
="$ac_file. $configure_input"
42403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42404 $as_echo "$as_me: creating $ac_file" >&6;}
42406 # Neutralize special characters interpreted by sed in replacement strings.
42407 case $configure_input in #(
42408 *\
&* |
*\|
* |
*\\* )
42409 ac_sed_conf_input
=`$as_echo "$configure_input" |
42410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42411 *) ac_sed_conf_input
=$configure_input;;
42415 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
42416 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
42421 ac_dir
=`$as_dirname -- "$ac_file" ||
42422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42423 X"$ac_file" : 'X\(//\)[^/]' \| \
42424 X"$ac_file" : 'X\(//\)$' \| \
42425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42426 $as_echo X"$ac_file" |
42427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42431 /^X\(\/\/\)[^/].*/{
42444 as_dir
="$ac_dir"; as_fn_mkdir_p
42448 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42450 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42451 # A ".." for each directory in $ac_dir_suffix.
42452 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42453 case $ac_top_builddir_sub in
42454 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42455 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
42458 ac_abs_top_builddir
=$ac_pwd
42459 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
42460 # for backward compatibility:
42461 ac_top_builddir
=$ac_top_build_prefix
42464 .
) # We are building in place.
42466 ac_top_srcdir
=$ac_top_builddir_sub
42467 ac_abs_top_srcdir
=$ac_pwd ;;
42468 [\\/]* | ?
:[\\/]* ) # Absolute name.
42469 ac_srcdir
=$srcdir$ac_dir_suffix;
42470 ac_top_srcdir
=$srcdir
42471 ac_abs_top_srcdir
=$srcdir ;;
42472 *) # Relative name.
42473 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
42474 ac_top_srcdir
=$ac_top_build_prefix$srcdir
42475 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
42477 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
42487 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42488 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
42490 ac_MKDIR_P
=$MKDIR_P
42492 [\\/$
]* | ?
:[\\/]* ) ;;
42493 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
42497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42498 # If the template does not know about datarootdir, expand it.
42499 # FIXME: This hack should be removed a few years after 2.60.
42500 ac_datarootdir_hack
=; ac_datarootdir_seen
=
42511 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42512 *datarootdir
*) ac_datarootdir_seen
=yes;;
42513 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
42514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42515 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42518 ac_datarootdir_hack='
42519 s&@datadir@&$datadir&g
42520 s&@docdir@&$docdir&g
42521 s&@infodir@&$infodir&g
42522 s&@localedir@&$localedir&g
42523 s&@mandir@&$mandir&g
42524 s&\\\${datarootdir}&$datarootdir&g' ;;
42528 # Neutralize VPATH when `$srcdir' = `.'.
42529 # Shell code in configure.ac might set extrasub.
42530 # FIXME: do we really want to maintain this feature?
42531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42532 ac_sed_extra="$ac_vpsub
42535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42537 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42538 s|@configure_input@|
$ac_sed_conf_input|
;t t
42539 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
42540 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
42541 s
&@srcdir@
&$ac_srcdir&;t t
42542 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
42543 s
&@top_srcdir@
&$ac_top_srcdir&;t t
42544 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
42545 s
&@builddir@
&$ac_builddir&;t t
42546 s
&@abs_builddir@
&$ac_abs_builddir&;t t
42547 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
42548 s
&@INSTALL@
&$ac_INSTALL&;t t
42549 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
42550 $ac_datarootdir_hack
42552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
42553 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
42555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
42557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42558 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
42559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
42560 which seems to be undefined. Please make sure it is defined" >&5
42561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
42562 which seems to be undefined. Please make sure it is defined" >&2;}
42564 rm -f "$ac_tmp/stdin"
42566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42575 if test x"$ac_file" != x-; then
42577 $as_echo "/* $configure_input */" \
42578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42579 } >"$ac_tmp/config.h" \
42580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42586 mv "$ac_tmp/config.h" "$ac_file" \
42587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42590 $as_echo "/* $configure_input */" \
42591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42592 || as_fn_error $? "could not create -" "$LINENO" 5
42594 # Compute "$ac_file"'s index
in $config_headers.
42597 for _am_header
in $config_headers :; do
42598 case $_am_header in
42599 $_am_arg |
$_am_arg:* )
42602 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42605 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42606 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42607 X"$_am_arg" : 'X\(//\)[^/]' \| \
42608 X"$_am_arg" : 'X\(//\)$' \| \
42609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42610 $as_echo X"$_am_arg" |
42611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42615 /^X\(\/\/\)[^/].*/{
42627 s/.*/./; q'`/stamp-h
$_am_stamp_count
42630 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42631 $as_echo "$as_me: executing $ac_file commands" >&6;}
42636 case $ac_file$ac_mode in
42638 (mv zfs_config.h zfs_config.h.tmp
&&
42639 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
42640 rm zfs_config.h.tmp
) ||
exit 1 ;;
42641 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
42642 # Older Autoconf quotes --file arguments for eval, but not when files
42643 # are listed without --file. Let's play safe and only enable the eval
42644 # if we detect the quoting.
42645 case $CONFIG_FILES in
42646 *\'*) eval set x
"$CONFIG_FILES" ;;
42647 *) set x
$CONFIG_FILES ;;
42652 # Strip MF so we end up with the name of the file.
42653 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42654 # Check whether this is an Automake generated Makefile or not.
42655 # We used to match only the files named 'Makefile.in', but
42656 # some people rename them; so instead we look at the file content.
42657 # Grep'ing the first line is not enough: some people post-process
42658 # each Makefile.in and add a new line on top of each file to say so.
42659 # Grep'ing the whole file is not good either: AIX grep has a line
42660 # limit of 2048, but all sed's we know have understand at least 4000.
42661 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
42662 dirpart
=`$as_dirname -- "$mf" ||
42663 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42664 X"$mf" : 'X\(//\)[^/]' \| \
42665 X"$mf" : 'X\(//\)$' \| \
42666 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42672 /^X\(\/\/\)[^/].*/{
42688 # Extract the definition of DEPDIR, am__include, and am__quote
42689 # from the Makefile without running 'make'.
42690 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
42691 test -z "$DEPDIR" && continue
42692 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
42693 test -z "$am__include" && continue
42694 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
42695 # Find all dependency output files, they are included files with
42696 # $(DEPDIR) in their names. We invoke sed twice because it is the
42697 # simplest approach to changing $(DEPDIR) to its actual value in the
42699 for file in `sed -n "
42700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42702 # Make sure the directory exists.
42703 test -f "$dirpart/$file" && continue
42704 fdir
=`$as_dirname -- "$file" ||
42705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42706 X"$file" : 'X\(//\)[^/]' \| \
42707 X"$file" : 'X\(//\)$' \| \
42708 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42709 $as_echo X"$file" |
42710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42714 /^X\(\/\/\)[^/].*/{
42727 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
42728 # echo "creating $dirpart/$file"
42729 echo '# dummy' > "$dirpart/$file"
42736 # See if we are running on zsh, and set the options that allow our
42737 # commands through without removal of \ escapes.
42738 if test -n "${ZSH_VERSION+set}"; then
42739 setopt NO_GLOB_SUBST
42743 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42746 cat <<_LT_EOF >> "$cfgfile"
42748 # Generated automatically by $as_me ($PACKAGE) $VERSION
42749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42751 # Provide generalized library-building support services.
42752 # Written by Gordon Matzigkeit, 1996
42754 # Copyright (C) 2014 Free Software Foundation, Inc.
42755 # This is free software; see the source for copying conditions. There is NO
42756 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42758 # GNU Libtool is free software; you can redistribute it and/or modify
42759 # it under the terms of the GNU General Public License as published by
42760 # the Free Software Foundation; either version 2 of of the License, or
42761 # (at your option) any later version.
42763 # As a special exception to the GNU General Public License, if you
42764 # distribute this file as part of a program or library that is built
42765 # using GNU Libtool, you may include this file under the same
42766 # distribution terms that you use for the rest of that program.
42768 # GNU Libtool is distributed in the hope that it will be useful, but
42769 # WITHOUT ANY WARRANTY; without even the implied warranty of
42770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42771 # GNU General Public License for more details.
42773 # You should have received a copy of the GNU General Public License
42774 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42777 # The names of the tagged configurations supported by this script.
42780 # Configured defaults for sys_lib_dlsearch_path munging.
42781 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42783 # ### BEGIN LIBTOOL CONFIG
42785 # Which release of libtool.m4 was used?
42786 macro_version=$macro_version
42787 macro_revision=$macro_revision
42789 # Whether or not to build shared libraries.
42790 build_libtool_libs=$enable_shared
42792 # Whether or not to build static libraries.
42793 build_old_libs=$enable_static
42795 # What type of objects to build.
42798 # Whether or not to optimize for fast installation.
42799 fast_install=$enable_fast_install
42801 # Shared archive member basename,for filename based shared library versioning on AIX.
42802 shared_archive_member_spec=$shared_archive_member_spec
42804 # Shell to use when invoking shell scripts.
42807 # An echo program that protects backslashes.
42810 # The PATH separator for the build system.
42811 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42814 host_alias=$host_alias
42818 # The build system.
42819 build_alias=$build_alias
42823 # A sed program that does not truncate output.
42826 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42827 Xsed="\$SED -e 1s/^X//"
42829 # A grep program that handles long lines.
42835 # A literal string matcher.
42838 # A BSD- or MS-compatible name lister.
42841 # Whether we need soft or hard links.
42844 # What is the maximum length of a command?
42845 max_cmd_len=$max_cmd_len
42847 # Object file suffix (normally "o").
42850 # Executable file suffix (normally "").
42853 # whether the shell understands "unset".
42856 # turn spaces into newlines.
42859 # turn newlines into spaces.
42862 # convert \$build file names to \$host format.
42863 to_host_file_cmd=$lt_cv_to_host_file_cmd
42865 # convert \$build files to toolchain format.
42866 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42868 # An object symbol dumper.
42869 OBJDUMP=$lt_OBJDUMP
42871 # Method to check whether dependent libraries are shared objects.
42872 deplibs_check_method=$lt_deplibs_check_method
42874 # Command to use when deplibs_check_method = "file_magic".
42875 file_magic_cmd=$lt_file_magic_cmd
42877 # How to find potential files when deplibs_check_method = "file_magic".
42878 file_magic_glob=$lt_file_magic_glob
42880 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42881 want_nocaseglob=$lt_want_nocaseglob
42883 # DLL creation program.
42884 DLLTOOL=$lt_DLLTOOL
42886 # Command to associate shared and link libraries.
42887 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42892 # Flags to create an archive.
42893 AR_FLAGS=$lt_AR_FLAGS
42895 # How to feed a file listing to the archiver.
42896 archiver_list_spec=$lt_archiver_list_spec
42898 # A symbol stripping program.
42901 # Commands used to install an old-style archive.
42903 old_postinstall_cmds=$lt_old_postinstall_cmds
42904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42906 # Whether to use a lock for old archive extraction.
42907 lock_old_archive_extraction=$lock_old_archive_extraction
42912 # LTCC compiler flags.
42913 LTCFLAGS=$lt_CFLAGS
42915 # Take the output of nm and produce a listing of raw symbols and C names.
42916 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42918 # Transform the output of nm in a proper C declaration.
42919 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42921 # Transform the output of nm into a list of symbols to manually relocate.
42922 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42924 # Transform the output of nm in a C name address pair.
42925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42927 # Transform the output of nm in a C name address pair when lib prefix is needed.
42928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42930 # The name lister interface.
42931 nm_interface=$lt_lt_cv_nm_interface
42933 # Specify filename containing input files for \$NM.
42934 nm_file_list_spec=$lt_nm_file_list_spec
42936 # The root where to search for dependent libraries,and where our libraries should be installed.
42937 lt_sysroot=$lt_sysroot
42939 # Command to truncate a binary pipe.
42940 lt_truncate_bin=$lt_lt_cv_truncate_bin
42942 # The name of the directory that contains temporary libtool files.
42945 # Used to examine libraries when file_magic_cmd begins with "file".
42946 MAGIC_CMD=$MAGIC_CMD
42948 # Must we lock files when doing compilation?
42949 need_locks=$lt_need_locks
42952 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42954 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42955 DSYMUTIL=$lt_DSYMUTIL
42957 # Tool to change global to local symbols on Mac OS X.
42960 # Tool to manipulate fat objects and archives on Mac OS X.
42963 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42966 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42967 OTOOL64=$lt_OTOOL64
42969 # Old archive suffix (normally "a").
42972 # Shared library suffix (normally ".so").
42973 shrext_cmds=$lt_shrext_cmds
42975 # The commands to extract the exported symbol list from a shared archive.
42976 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42978 # Variables whose values should be saved in libtool wrapper scripts and
42979 # restored at link time.
42980 variables_saved_for_relink=$lt_variables_saved_for_relink
42982 # Do we need the "lib" prefix for modules?
42983 need_lib_prefix=$need_lib_prefix
42985 # Do we need a version for libraries?
42986 need_version=$need_version
42988 # Library versioning type.
42989 version_type=$version_type
42991 # Shared library runtime path variable.
42992 runpath_var=$runpath_var
42994 # Shared library path variable.
42995 shlibpath_var=$shlibpath_var
42997 # Is shlibpath searched before the hard-coded library search path?
42998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43000 # Format of library name prefix.
43001 libname_spec=$lt_libname_spec
43003 # List of archive names. First name is the real one, the rest are links.
43004 # The last name is the one that the linker finds with -lNAME
43005 library_names_spec=$lt_library_names_spec
43007 # The coded name of the library, if different from the real name.
43008 soname_spec=$lt_soname_spec
43010 # Permission mode override for installation of shared libraries.
43011 install_override_mode=$lt_install_override_mode
43013 # Command to use after installation of a shared archive.
43014 postinstall_cmds=$lt_postinstall_cmds
43016 # Command to use after uninstallation of a shared archive.
43017 postuninstall_cmds=$lt_postuninstall_cmds
43019 # Commands used to finish a libtool library installation in a directory.
43020 finish_cmds=$lt_finish_cmds
43022 # As "finish_cmds", except a single script fragment to be evaled but
43024 finish_eval=$lt_finish_eval
43026 # Whether we should hardcode library paths into libraries.
43027 hardcode_into_libs=$hardcode_into_libs
43029 # Compile-time system search path for libraries.
43030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43032 # Detected run-time system search path for libraries.
43033 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43035 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43036 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43038 # Whether dlopen is supported.
43039 dlopen_support=$enable_dlopen
43041 # Whether dlopen of programs is supported.
43042 dlopen_self=$enable_dlopen_self
43044 # Whether dlopen of statically linked programs is supported.
43045 dlopen_self_static=$enable_dlopen_self_static
43047 # Commands to strip libraries.
43048 old_striplib=$lt_old_striplib
43049 striplib=$lt_striplib
43052 # The linker used to build libraries.
43055 # How to create reloadable object files.
43056 reload_flag=$lt_reload_flag
43057 reload_cmds=$lt_reload_cmds
43059 # Commands used to build an old-style archive.
43060 old_archive_cmds=$lt_old_archive_cmds
43062 # A language specific compiler.
43065 # Is the compiler the GNU compiler?
43068 # Compiler flag to turn off builtin functions.
43069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43071 # Additional compiler flags for building library objects.
43072 pic_flag=$lt_lt_prog_compiler_pic
43074 # How to pass a linker flag through the compiler.
43075 wl=$lt_lt_prog_compiler_wl
43077 # Compiler flag to prevent dynamic linking.
43078 link_static_flag=$lt_lt_prog_compiler_static
43080 # Does compiler simultaneously support -c and -o options?
43081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43083 # Whether or not to add -lc for building shared libraries.
43084 build_libtool_need_lc=$archive_cmds_need_lc
43086 # Whether or not to disallow shared libs when runtime libs are static.
43087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43089 # Compiler flag to allow reflexive dlopens.
43090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43092 # Compiler flag to generate shared objects directly from archives.
43093 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43095 # Whether the compiler copes with passing no objects directly.
43096 compiler_needs_object=$lt_compiler_needs_object
43098 # Create an old-style archive from a shared archive.
43099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43101 # Create a temporary old-style archive to link instead of a shared archive.
43102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43104 # Commands used to build a shared archive.
43105 archive_cmds=$lt_archive_cmds
43106 archive_expsym_cmds=$lt_archive_expsym_cmds
43108 # Commands used to build a loadable module if different from building
43109 # a shared archive.
43110 module_cmds=$lt_module_cmds
43111 module_expsym_cmds=$lt_module_expsym_cmds
43113 # Whether we are building with GNU ld or not.
43114 with_gnu_ld=$lt_with_gnu_ld
43116 # Flag that allows shared libraries with undefined symbols to be built.
43117 allow_undefined_flag=$lt_allow_undefined_flag
43119 # Flag that enforces no undefined symbols.
43120 no_undefined_flag=$lt_no_undefined_flag
43122 # Flag to hardcode \$libdir into a binary during linking.
43123 # This must work even if \$libdir does not exist
43124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43126 # Whether we need a single "-rpath" flag with a separated argument.
43127 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43129 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43130 # DIR into the resulting binary.
43131 hardcode_direct=$hardcode_direct
43133 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43134 # DIR into the resulting binary and the resulting library dependency is
43135 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43136 # library is relocated.
43137 hardcode_direct_absolute=$hardcode_direct_absolute
43139 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43140 # into the resulting binary.
43141 hardcode_minus_L=$hardcode_minus_L
43143 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43144 # into the resulting binary.
43145 hardcode_shlibpath_var=$hardcode_shlibpath_var
43147 # Set to "yes" if building a shared library automatically hardcodes DIR
43148 # into the library and all subsequent libraries and executables linked
43150 hardcode_automatic=$hardcode_automatic
43152 # Set to yes if linker adds runtime paths of dependent libraries
43153 # to runtime path list.
43154 inherit_rpath=$inherit_rpath
43156 # Whether libtool must link a program against all its dependency libraries.
43157 link_all_deplibs=$link_all_deplibs
43159 # Set to "yes" if exported symbols are required.
43160 always_export_symbols=$always_export_symbols
43162 # The commands to list exported symbols.
43163 export_symbols_cmds=$lt_export_symbols_cmds
43165 # Symbols that should not be listed in the preloaded symbols.
43166 exclude_expsyms=$lt_exclude_expsyms
43168 # Symbols that must always be exported.
43169 include_expsyms=$lt_include_expsyms
43171 # Commands necessary for linking programs (against libraries) with templates.
43172 prelink_cmds=$lt_prelink_cmds
43174 # Commands necessary for finishing linking programs.
43175 postlink_cmds=$lt_postlink_cmds
43177 # Specify filename containing input files.
43178 file_list_spec=$lt_file_list_spec
43180 # How to hardcode a shared library path into an executable.
43181 hardcode_action=$hardcode_action
43183 # ### END LIBTOOL CONFIG
43187 cat <<'_LT_EOF' >> "$cfgfile"
43189 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43191 # func_munge_path_list VARIABLE PATH
43192 # -----------------------------------
43193 # VARIABLE is name of variable containing _space_ separated list of
43194 # directories to be munged by the contents of PATH, which is string
43197 # string "DIR[ DIR]" will be prepended to VARIABLE
43199 # string "DIR[ DIR]" will be appended to VARIABLE
43200 # "DIRP[:DIRP]::[DIRA:]DIRA"
43201 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43202 # "DIRA[ DIRA]" will be appended to VARIABLE
43204 # VARIABLE will be replaced by "DIR[ DIR]"
43205 func_munge_path_list ()
43211 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43214 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43217 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43218 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43221 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43227 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43228 func_cc_basename ()
43230 for cc_temp in $*""; do
43232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43238 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43242 # ### END FUNCTIONS SHARED WITH CONFIGURE
43248 cat <<\_LT_EOF
>> "$cfgfile"
43249 # AIX sometimes has problems with the GCC collect2 program. For some
43250 # reason, if we set the COLLECT_NAMES environment variable, the problems
43251 # vanish in a puff of smoke.
43252 if test set != "${COLLECT_NAMES+set}"; then
43254 export COLLECT_NAMES
43261 ltmain
=$ac_aux_dir/ltmain.sh
43264 # We use sed instead of cat because bash on DJGPP gets confused if
43265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43266 # text mode, it properly converts lines to CR/LF. This bash problem
43267 # is reportedly fixed, but why not run on old versions too?
43268 sed '$q' "$ltmain" >> "$cfgfile" \
43269 ||
(rm -f "$cfgfile"; exit 1)
43271 mv -f "$cfgfile" "$ofile" ||
43272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43283 ac_clean_files
=$ac_clean_files_save
43285 test $ac_write_fail = 0 ||
43286 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
43289 # configure is writing to config.log, and then calls config.status.
43290 # config.status does its own redirection, appending to config.log.
43291 # Unfortunately, on DOS this fails, as config.log is still kept open
43292 # by configure, so config.status won't be able to write to it; its
43293 # output is simply discarded. So we exec the FD to /dev/null,
43294 # effectively closing config.log, so it can be properly (re)opened and
43295 # appended to by config.status. When coming back to configure, we
43296 # need to make the FD available again.
43297 if test "$no_create" != yes; then
43299 ac_config_status_args
=
43300 test "$silent" = yes &&
43301 ac_config_status_args
="$ac_config_status_args --quiet"
43303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
43305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43306 # would make configure fail if this is the last instruction.
43307 $ac_cs_success || as_fn_exit
1
43309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
43310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}