2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.11.
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.6.5.11'
591 PACKAGE_STRING
='zfs 0.6.5.11'
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
669 NO_UNUSED_BUT_SET_VARIABLE
702 am__fastdepCCAS_FALSE
754 INSTALL_STRIP_PROGRAM
774 MAINTAINER_MODE_FALSE
828 program_transform_name
841 enable_option_checking
842 enable_maintainer_mode
844 enable_dependency_tracking
861 with_systemdpresetdir
862 with_systemdmodulesloaddir
874 ac_precious_vars
='build_alias
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 runstatedir
='${localstatedir}/run'
925 includedir
='${prefix}/include'
926 oldincludedir
='/usr/include'
927 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir
='${datarootdir}/info'
933 libdir
='${exec_prefix}/lib'
934 localedir
='${datarootdir}/locale'
935 mandir
='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\
$ac_option
949 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
962 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
965 -build |
--build |
--buil |
--bui |
--bu)
966 ac_prev
=build_alias
;;
967 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
968 build_alias
=$ac_optarg ;;
970 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
971 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
972 ac_prev
=cache_file
;;
973 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
974 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
975 cache_file
=$ac_optarg ;;
978 cache_file
=config.cache
;;
980 -datadir |
--datadir |
--datadi |
--datad)
982 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
983 datadir
=$ac_optarg ;;
985 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
986 |
--dataroo |
--dataro |
--datar)
987 ac_prev
=datarootdir
;;
988 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
989 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
990 datarootdir
=$ac_optarg ;;
992 -disable-* |
--disable-*)
993 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
996 as_fn_error $?
"invalid feature name: $ac_useropt"
997 ac_useropt_orig
=$ac_useropt
998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_
$ac_useropt"
1003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep
=', ';;
1006 eval enable_
$ac_useropt=no
;;
1008 -docdir |
--docdir |
--docdi |
--doc |
--do)
1010 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1011 docdir
=$ac_optarg ;;
1013 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1015 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1016 dvidir
=$ac_optarg ;;
1018 -enable-* |
--enable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=\
$ac_optarg ;;
1034 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1035 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1036 |
--exec |
--exe |
--ex)
1037 ac_prev
=exec_prefix
;;
1038 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1039 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1040 |
--exec=* |
--exe=* |
--ex=*)
1041 exec_prefix
=$ac_optarg ;;
1043 -gas |
--gas |
--ga |
--g)
1044 # Obsolete; use --with-gas.
1047 -help |
--help |
--hel |
--he |
-h)
1048 ac_init_help
=long
;;
1049 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1050 ac_init_help
=recursive
;;
1051 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1052 ac_init_help
=short
;;
1054 -host |
--host |
--hos |
--ho)
1055 ac_prev
=host_alias
;;
1056 -host=* |
--host=* |
--hos=* |
--ho=*)
1057 host_alias
=$ac_optarg ;;
1059 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1061 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1063 htmldir
=$ac_optarg ;;
1065 -includedir |
--includedir |
--includedi |
--included |
--include \
1066 |
--includ |
--inclu |
--incl |
--inc)
1067 ac_prev
=includedir
;;
1068 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1069 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1070 includedir
=$ac_optarg ;;
1072 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1074 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1075 infodir
=$ac_optarg ;;
1077 -libdir |
--libdir |
--libdi |
--libd)
1079 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1080 libdir
=$ac_optarg ;;
1082 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1083 |
--libexe |
--libex |
--libe)
1084 ac_prev
=libexecdir
;;
1085 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1086 |
--libexe=* |
--libex=* |
--libe=*)
1087 libexecdir
=$ac_optarg ;;
1089 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1090 ac_prev
=localedir
;;
1091 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1092 localedir
=$ac_optarg ;;
1094 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1095 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1096 ac_prev
=localstatedir
;;
1097 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1098 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1099 localstatedir
=$ac_optarg ;;
1101 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1103 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1104 mandir
=$ac_optarg ;;
1106 -nfp |
--nfp |
--nf)
1107 # Obsolete; use --without-fp.
1110 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1111 |
--no-cr |
--no-c |
-n)
1114 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1115 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1118 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1119 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1120 |
--oldin |
--oldi |
--old |
--ol |
--o)
1121 ac_prev
=oldincludedir
;;
1122 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1123 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1124 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1125 oldincludedir
=$ac_optarg ;;
1127 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1129 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1130 prefix
=$ac_optarg ;;
1132 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1133 |
--program-pre |
--program-pr |
--program-p)
1134 ac_prev
=program_prefix
;;
1135 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1136 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1137 program_prefix
=$ac_optarg ;;
1139 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1140 |
--program-suf |
--program-su |
--program-s)
1141 ac_prev
=program_suffix
;;
1142 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1143 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1144 program_suffix
=$ac_optarg ;;
1146 -program-transform-name |
--program-transform-name \
1147 |
--program-transform-nam |
--program-transform-na \
1148 |
--program-transform-n |
--program-transform- \
1149 |
--program-transform |
--program-transfor \
1150 |
--program-transfo |
--program-transf \
1151 |
--program-trans |
--program-tran \
1152 |
--progr-tra |
--program-tr |
--program-t)
1153 ac_prev
=program_transform_name
;;
1154 -program-transform-name=* |
--program-transform-name=* \
1155 |
--program-transform-nam=* |
--program-transform-na=* \
1156 |
--program-transform-n=* |
--program-transform-=* \
1157 |
--program-transform=* |
--program-transfor=* \
1158 |
--program-transfo=* |
--program-transf=* \
1159 |
--program-trans=* |
--program-tran=* \
1160 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1161 program_transform_name
=$ac_optarg ;;
1163 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1165 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1166 pdfdir
=$ac_optarg ;;
1168 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1170 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1174 |
-silent |
--silent |
--silen |
--sile |
--sil)
1177 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1178 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1179 |
--run |
--ru |
--r)
1180 ac_prev
=runstatedir
;;
1181 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1182 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1183 |
--run=* |
--ru=* |
--r=*)
1184 runstatedir
=$ac_optarg ;;
1186 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1188 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1190 sbindir
=$ac_optarg ;;
1192 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1193 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1194 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1196 ac_prev
=sharedstatedir
;;
1197 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1198 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1199 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1201 sharedstatedir
=$ac_optarg ;;
1203 -site |
--site |
--sit)
1205 -site=* |
--site=* |
--sit=*)
1208 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1210 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1211 srcdir
=$ac_optarg ;;
1213 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1214 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1215 ac_prev
=sysconfdir
;;
1216 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1217 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1218 sysconfdir
=$ac_optarg ;;
1220 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1221 ac_prev
=target_alias
;;
1222 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1223 target_alias
=$ac_optarg ;;
1225 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1228 -version |
--version |
--versio |
--versi |
--vers |
-V)
1229 ac_init_version
=: ;;
1232 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 as_fn_error $?
"invalid package name: $ac_useropt"
1236 ac_useropt_orig
=$ac_useropt
1237 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep
=', ';;
1245 eval with_
$ac_useropt=\
$ac_optarg ;;
1247 -without-* |
--without-*)
1248 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1251 as_fn_error $?
"invalid package name: $ac_useropt"
1252 ac_useropt_orig
=$ac_useropt
1253 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep
=', ';;
1261 eval with_
$ac_useropt=no
;;
1264 # Obsolete; use --with-x.
1267 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1268 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1269 ac_prev
=x_includes
;;
1270 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1271 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1272 x_includes
=$ac_optarg ;;
1274 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1275 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1276 ac_prev
=x_libraries
;;
1277 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1278 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1279 x_libraries
=$ac_optarg ;;
1281 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1286 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1290 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1292 eval $ac_envvar=\
$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 if test -n "$ac_prev"; then
1307 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $?
"missing argument to $ac_option"
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1314 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 # Check all directory arguments for consistency.
1320 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1325 eval ac_val
=\$
$ac_var
1326 # Remove trailing slashes.
1329 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\
$ac_val;;
1332 # Be sure to have absolute directory names.
1334 [\\/$
]* | ?
:[\\/]* ) continue;;
1335 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1337 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1345 target
=$target_alias
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x
; then
1349 if test "x$build_alias" = x
; then
1350 cross_compiling
=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1357 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1359 test "$silent" = yes && exec 6>/dev
/null
1362 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di
=`ls -di .` &&
1364 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $?
"working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $?
"pwd does not report name of working directory"
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1408 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1420 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 for ac_var
in $ac_precious_vars; do
1423 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1425 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1436 \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1500 --build=BUILD configure
for building on BUILD
[guessed
]
1501 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive
) echo "Configuration of zfs 0.6.5.11:";;
1513 --disable-option-checking ignore unrecognized
--enable/--with options
1514 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1515 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1516 --enable-maintainer-mode
1517 enable make rules and dependencies not useful
(and
1518 sometimes confusing
) to the casual installer
1519 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1520 --disable-silent-rules verbose build output
(undo
: "make V=0")
1521 --enable-dependency-tracking
1522 do not reject slow dependency extractors
1523 --disable-dependency-tracking
1524 speeds up one-time build
1525 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1526 --enable-static[=PKGS
] build static libraries
[default
=yes]
1527 --enable-fast-install[=PKGS
]
1528 optimize
for fast installation
[default
=yes]
1529 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1530 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1532 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1533 --enable-sysvinit install SysV init scripts
[default
: yes]
1534 --enable-debug Enable generic debug support
[default
=no
]
1535 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1538 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1539 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1540 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1542 --with-aix-soname=aix|svr4|both
1543 shared library versioning
(aka
"SONAME") variant to
1544 provide on AIX
, [default
=aix
].
1545 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1546 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1547 compiler
's sysroot if not specified).
1548 --with-spec=SPEC Spec files 'generic|redhat
'
1549 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1550 --with-mounthelperdir=DIR
1551 install mount.zfs in dir [[/sbin]]
1552 --with-udevdir=DIR install udev helpers [default=check]
1553 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1554 --with-systemdunitdir=DIR
1555 install systemd unit files in dir
1556 [[/usr/lib/systemd/system]]
1557 --with-systemdpresetdir=DIR
1558 install systemd preset files in dir
1559 [[/usr/lib/systemd/system-preset]]
1560 --with-systemdmodulesloaddir=DIR
1561 install systemd module load files into dir
1562 [[/usr/lib/modules-load.d]]
1563 --with-dracutdir=DIR install dracut helpers [default=check]
1564 --with-blkid support blkid caching [default=check]
1565 --with-linux=PATH Path to kernel source
1566 --with-linux-obj=PATH Path to kernel build objects
1567 --with-spl=PATH Path to spl source
1568 --with-spl-obj=PATH Path to spl build objects
1569 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1580 User-defined run-time library search path.
1582 CCAS assembler compiler command (defaults to CC)
1583 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1585 Use these variables to override the choices made by `configure' or to
help
1586 it to
find libraries and programs with nonstandard names
/locations.
1588 Report bugs to the package provider.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1604 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir
=$ac_pwd
1613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir
=$ac_top_build_prefix
1618 .
) # We are building in place.
1620 ac_top_srcdir
=$ac_top_builddir_sub
1621 ac_abs_top_srcdir
=$ac_pwd ;;
1622 [\\/]* | ?
:[\\/]* ) # Absolute name.
1623 ac_srcdir
=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir
=$srcdir
1625 ac_abs_top_srcdir
=$srcdir ;;
1627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 zfs configure
0.6.5.11
1652 generated by GNU Autoconf
2.69
1654 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1655 This configure
script is free software
; the Free Software Foundation
1656 gives unlimited permission to copy
, distribute and modify it.
1661 ## ------------------------ ##
1662 ## Autoconf initialization. ##
1663 ## ------------------------ ##
1665 # ac_fn_c_try_compile LINENO
1666 # --------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_compile
()
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 rm -f conftest.
$ac_objext
1672 if { { ac_try
="$ac_compile"
1674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_compile
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1713 *) ac_try_echo
=$ac_try;;
1715 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1719 if test -s conftest.err
; then
1720 grep -v '^ *+' conftest.err
>conftest.er1
1721 cat conftest.er1
>&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest
$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest
$ac_exeext
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.
$ac_ext >&5
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status
$ac_retval
1747 } # ac_fn_c_try_link
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile
()
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \
${$3+:} false
; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile
"$LINENO"; then :
1771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1786 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1827 *) ac_try_echo
=$ac_try;;
1829 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=$ac_status
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1882 # include <limits.h>
1884 # include <assert.h>
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1911 if ac_fn_c_try_link "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 } # ac_fn_c_check_func
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1931 ac_fn_c_check_header_mongrel ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1955 ac_header_compiler=no
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1971 ac_header_preproc=no
1973 rm -f conftest.err conftest.i conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 eval "$3=\$ac_header_compiler"
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_header_mongrel
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2016 It was created by zfs $as_me 0.6.5.11, which was
2017 generated by GNU Autoconf 2.69. Invocation command line was
2029 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2030 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2031 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2032 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2033 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2035 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2036 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2038 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2039 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2040 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2041 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2042 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2043 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2044 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_must_keep_next=false
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2088 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 -* ) ac_must_keep_next=true ;;
2109 as_fn_append ac_configure_args " '$ac_arg'"
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2127 $as_echo "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2131 # The following way of writing the cache mishandles newlines in values,
2133 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2134 eval ac_val=\$$ac_var
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2149 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163 $as_echo "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2167 for ac_var in $ac_subst_vars
2169 eval ac_val=\$$ac_var
2171 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 $as_echo "$ac_var='\''$ac_val'\''"
2177 if test -n "$ac_subst_files"; then
2178 $as_echo "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2182 for ac_var in $ac_subst_files
2184 eval ac_val=\$$ac_var
2186 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 $as_echo "$ac_var='\''$ac_val'\''"
2193 if test -s confdefs.h; then
2194 $as_echo "## ----------- ##
2201 test "$ac_signal" != 0 &&
2202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2217 $as_echo "/* confdefs.h */" > confdefs.h
2219 # Predefined preprocessor variables.
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_NAME "$PACKAGE_NAME"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_STRING "$PACKAGE_STRING"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_URL "$PACKAGE_URL"
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2250 if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 as_fn_error $? "failed to load site
script $ac_site_file
2275 See \
`config.log' for more details" "$LINENO" 5; }
2279 if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292 $as_echo "$as_me: creating cache $cache_file" >&6;}
2296 # Check that the precious variables saved in the cache have kept the same
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2307 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2311 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x
$ac_old_val`
2318 ac_new_val_w=`echo x
$ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2322 ac_cache_corrupted=:
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2346 if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 for ac_prog in gawk mawk nawk awk
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_AWK+:} false; then :
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_AWK="$ac_prog"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test -n "$AWK"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2406 $as_echo "$AWK" >&6; }
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2413 test -n "$AWK" && break
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2417 $as_echo_n "checking metadata... " >&6; }
2420 _zfs_ac_meta_type="none"
2421 if test -f "$META"; then
2422 _zfs_ac_meta_type="META file"
2423 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2425 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2426 if test -n "$ZFS_META_NAME"; then
2428 cat >>confdefs.h <<_ACEOF
2429 #define ZFS_META_NAME "$ZFS_META_NAME"
2435 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2436 if test -n "$ZFS_META_VERSION"; then
2438 cat >>confdefs.h <<_ACEOF
2439 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2445 if test -n "${_dpkg_parsechangelog}"; then
2446 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2447 | $AWK '$1 == "Version:" { print $2; }' \
2449 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2451 *** Version $ZFS_META_VERSION in the META file is different than
2452 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2453 *** packaging require that these files have the same version.
2458 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2460 if test -n "${_dpkg_parsechangelog}"; then
2461 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2462 | $AWK '$1 == "Version:" { print $2; }' \
2464 if test -n "${_dpkg_release}"; then
2465 ZFS_META_RELEASE=${_dpkg_release}
2466 _zfs_ac_meta_type="dpkg-parsechangelog"
2468 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2469 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2470 _alias=$(git describe --match=${_match} 2>/dev/null)
2471 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2472 if test -n "${_release}"; then
2473 ZFS_META_RELEASE=${_release}
2474 _zfs_ac_meta_type="git describe"
2478 if test -n "$ZFS_META_RELEASE"; then
2480 cat >>confdefs.h <<_ACEOF
2481 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2486 RELEASE="$ZFS_META_RELEASE"
2490 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2491 if test -n "$ZFS_META_LICENSE"; then
2493 cat >>confdefs.h <<_ACEOF
2494 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2500 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2501 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2502 test -n "$ZFS_META_RELEASE" &&
2503 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2505 cat >>confdefs.h <<_ACEOF
2506 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2512 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2513 if test -n "$ZFS_META_DATA"; then
2515 cat >>confdefs.h <<_ACEOF
2516 #define ZFS_META_DATA "$ZFS_META_DATA"
2522 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2523 if test -n "$ZFS_META_AUTHOR"; then
2525 cat >>confdefs.h <<_ACEOF
2526 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2533 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2534 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2535 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2536 if test -n "$ZFS_META_LT_CURRENT" \
2537 -o -n "$ZFS_META_LT_REVISION" \
2538 -o -n "$ZFS_META_LT_AGE"; then
2539 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2540 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2541 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2543 cat >>confdefs.h <<_ACEOF
2544 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2548 cat >>confdefs.h <<_ACEOF
2549 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2553 cat >>confdefs.h <<_ACEOF
2554 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2564 $as_echo "$_zfs_ac_meta_type" >&6; }
2568 for ac_dir in config "$srcdir"/config; do
2569 if test -f "$ac_dir/install-sh"; then
2571 ac_install_sh="$ac_aux_dir/install-sh -c"
2573 elif test -f "$ac_dir/install.sh"; then
2575 ac_install_sh="$ac_aux_dir/install.sh -c"
2577 elif test -f "$ac_dir/shtool"; then
2579 ac_install_sh="$ac_aux_dir/shtool install -c"
2583 if test -z "$ac_aux_dir"; then
2584 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2587 # These three variables are undocumented and unsupported,
2588 # and are intended to be withdrawn in a future Autoconf release.
2589 # They can cause serious problems if a builder's source tree is in a directory
2590 # whose full name contains unusual characters.
2591 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2592 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2593 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2597 # Make sure we can run config.sub.
2598 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2599 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2602 $as_echo_n "checking build system type... " >&6; }
2603 if ${ac_cv_build+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 ac_build_alias=$build_alias
2607 test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609 test "x$ac_build_alias" = x &&
2610 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2612 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2616 $as_echo "$ac_cv_build" >&6; }
2617 case $ac_cv_build in
2619 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2622 ac_save_IFS=$IFS; IFS='-'
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2632 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2636 $as_echo_n "checking host system type... " >&6; }
2637 if ${ac_cv_host+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 if test "x$host_alias" = x; then
2641 ac_cv_host=$ac_cv_build
2643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2649 $as_echo "$ac_cv_host" >&6; }
2652 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2655 ac_save_IFS=$IFS; IFS='-'
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2665 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2669 $as_echo_n "checking target system type... " >&6; }
2670 if ${ac_cv_target+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 if test "x$target_alias" = x; then
2674 ac_cv_target=$ac_cv_host
2676 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2682 $as_echo "$ac_cv_target" >&6; }
2683 case $ac_cv_target in
2685 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2687 target=$ac_cv_target
2688 ac_save_IFS=$IFS; IFS='-'
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2698 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2701 # The aliases save the names the user supplied, while $host etc.
2702 # will get canonicalized.
2703 test -n "$target_alias" &&
2704 test "$program_prefix$program_suffix$program_transform_name" = \
2706 program_prefix=${target_alias}-
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2710 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2711 # Check whether --enable-maintainer-mode was given.
2712 if test "${enable_maintainer_mode+set}" = set; then :
2713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2715 USE_MAINTAINER_MODE=no
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2719 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2720 if test $USE_MAINTAINER_MODE = yes; then
2721 MAINTAINER_MODE_TRUE=
2722 MAINTAINER_MODE_FALSE='#'
2724 MAINTAINER_MODE_TRUE='#'
2725 MAINTAINER_MODE_FALSE=
2728 MAINT=$MAINTAINER_MODE_TRUE
2731 # Check whether --enable-silent-rules was given.
2732 if test "${enable_silent_rules+set}" = set; then :
2733 enableval=$enable_silent_rules;
2736 case $enable_silent_rules in # (((
2737 yes) AM_DEFAULT_VERBOSITY=0;;
2738 no) AM_DEFAULT_VERBOSITY=1;;
2739 *) AM_DEFAULT_VERBOSITY=0;;
2741 am_make=${MAKE-make}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2744 if ${am_cv_make_support_nested_variables+:} false; then :
2745 $as_echo_n "(cached) " >&6
2747 if $as_echo 'TRUE=$(BAR$(V))
2753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2754 am_cv_make_support_nested_variables=yes
2756 am_cv_make_support_nested_variables=no
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2761 if test $am_cv_make_support_nested_variables = yes; then
2763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2765 AM_V=$AM_DEFAULT_VERBOSITY
2766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2770 am__api_version='1.15'
2772 # Find a good install program. We prefer a C program (faster),
2773 # so one script is as good as another. But avoid the broken or
2774 # incompatible versions:
2775 # SysV /etc/install, /usr/sbin/install
2776 # SunOS /usr/etc/install
2777 # IRIX /sbin/install
2779 # AmigaOS /C/install, which installs bootblocks on floppy discs
2780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2783 # OS/2's system install, which has a completely different semantic
2784 # ./install, which can be erroneously created by make from ./install.sh.
2785 # Reject install programs that cannot install multiple files.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2787 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2788 if test -z "$INSTALL"; then
2789 if ${ac_cv_path_install+:} false; then :
2790 $as_echo_n "(cached) " >&6
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 # Account for people who put trailing slashes in PATH elements.
2798 case $as_dir/ in #((
2799 ./ | .// | /[cC]/* | \
2800 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2801 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2804 # OSF1 and SCO ODT 3.0 have their own names for install.
2805 # Don't use installbsd from OSF since it installs stuff as root
2807 for ac_prog in ginstall scoinst install; do
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2810 if test $ac_prog = install &&
2811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # AIX install. It has an incompatible calling convention.
2814 elif test $ac_prog = install &&
2815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # program-specific install script used by HP pwplus--don't use.
2819 rm -rf conftest.one conftest.two conftest.dir
2820 echo one > conftest.one
2821 echo two > conftest.two
2823 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2824 test -s conftest.one && test -s conftest.two &&
2825 test -s conftest.dir/conftest.one &&
2826 test -s conftest.dir/conftest.two
2828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2841 rm -rf conftest.one conftest.two conftest.dir
2844 if test "${ac_cv_path_install+set}" = set; then
2845 INSTALL=$ac_cv_path_install
2847 # As a last resort, use the slow shell script. Don't cache a
2848 # value for INSTALL within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the value is a relative name.
2851 INSTALL=$ac_install_sh
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2855 $as_echo "$INSTALL" >&6; }
2857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858 # It thinks the first close brace ends the variable substitution.
2859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2866 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2876 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2880 # Do 'set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2887 for am_try
in 1 2; do
2888 echo "timestamp, slept: $am_has_slept" > conftest.
file
2889 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2890 if test "$*" = "X"; then
2892 set X
`ls -t "$srcdir/configure" conftest.file`
2894 if test "$*" != "X $srcdir/configure conftest.file" \
2895 && test "$*" != "X conftest.file $srcdir/configure"; then
2897 # If neither matched, then we have a broken ls. This can happen
2898 # if, for instance, CONFIG_SHELL is bash and it inherits a
2899 # broken ls alias from the environment. This has actually
2900 # happened. Such a system could not be considered "sane".
2901 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2902 alias in your environment" "$LINENO" 5
2904 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2911 test "$2" = conftest.
file
2917 as_fn_error $?
"newly created file is older than distributed files!
2918 Check your system clock" "$LINENO" 5
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921 $as_echo "yes" >&6; }
2922 # If we didn't sleep, we still need to ensure time stamps of config.status and
2923 # generated files are strictly newer.
2925 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2932 test "$program_prefix" != NONE
&&
2933 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2934 # Use a double $ so make ignores it.
2935 test "$program_suffix" != NONE
&&
2936 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2937 # Double any \ or $.
2938 # By default was `s,x,x', remove it if useless.
2939 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2940 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2942 # Expand $ac_aux_dir to an absolute path.
2943 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2945 if test x
"${MISSING+set}" != xset
; then
2948 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2950 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --is-lightweight"; then
2955 am_missing_run
="$MISSING "
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2959 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2962 if test x
"${install_sh+set}" != xset
; then
2965 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2967 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2971 # Installed binaries are usually stripped using 'strip' when the user
2972 # run "make install-strip". However 'strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the 'STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no
; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_STRIP+:} false
; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$STRIP"; then
2985 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir
=.
2992 for ac_exec_ext
in '' $ac_executable_extensions; do
2993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 STRIP
=$ac_cv_prog_STRIP
3005 if test -n "$STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3007 $as_echo "$STRIP" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3015 if test -z "$ac_cv_prog_STRIP"; then
3017 # Extract the first word of "strip", so it can be a program name with args.
3018 set dummy strip
; ac_word
=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$ac_ct_STRIP"; then
3025 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir
=.
3032 for ac_exec_ext
in '' $ac_executable_extensions; do
3033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_STRIP
="strip"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3045 if test -n "$ac_ct_STRIP"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3047 $as_echo "$ac_ct_STRIP" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3053 if test "x$ac_ct_STRIP" = x
; then
3056 case $cross_compiling:$ac_tool_warned in
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned
=yes ;;
3065 STRIP
="$ac_cv_prog_STRIP"
3069 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3073 if test -z "$MKDIR_P"; then
3074 if ${ac_cv_path_mkdir+:} false
; then :
3075 $as_echo_n "(cached) " >&6
3077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3081 test -z "$as_dir" && as_dir
=.
3082 for ac_prog
in mkdir gmkdir
; do
3083 for ac_exec_ext
in '' $ac_executable_extensions; do
3084 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3086 'mkdir (GNU coreutils) '* | \
3087 'mkdir (coreutils) '* | \
3088 'mkdir (fileutils) '4.1*)
3089 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3099 test -d .
/--version && rmdir .
/--version
3100 if test "${ac_cv_path_mkdir+set}" = set; then
3101 MKDIR_P
="$ac_cv_path_mkdir -p"
3103 # As a last resort, use the slow shell script. Don't cache a
3104 # value for MKDIR_P within a source directory, because that will
3105 # break other packages using the cache if that directory is
3106 # removed, or if the value is a relative name.
3107 MKDIR_P
="$ac_install_sh -d"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3111 $as_echo "$MKDIR_P" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3114 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3116 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3117 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3118 $as_echo_n "(cached) " >&6
3120 cat >conftest.
make <<\_ACEOF
3123 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3126 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3128 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3130 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3134 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 SET_MAKE
="MAKE=${MAKE-make}"
3144 rm -rf .tst
2>/dev
/null
3145 mkdir .tst
2>/dev
/null
3146 if test -d .tst
; then
3151 rmdir .tst
2>/dev
/null
3153 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155 # is not polluted with repeated "-I."
3156 am__isrc
=' -I$(srcdir)'
3157 # test to see if srcdir already configured
3158 if test -f $srcdir/config.status
; then
3159 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3163 # test whether we have cygpath
3164 if test -z "$CYGPATH_W"; then
3165 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3166 CYGPATH_W
='cygpath -w'
3173 # Define the identity of the package.
3178 cat >>confdefs.h
<<_ACEOF
3179 #define PACKAGE "$PACKAGE"
3183 cat >>confdefs.h
<<_ACEOF
3184 #define VERSION "$VERSION"
3187 # Some tools Automake needs.
3189 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3195 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3201 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3203 # For better backward compatibility. To be removed once Automake 1.9.x
3204 # dies out for good. For more background, see:
3205 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3206 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3207 mkdir_p
='$(MKDIR_P)'
3209 # We need awk for the "check" target (and possibly the TAP driver). The
3210 # system "awk" is bad on some platforms.
3211 # Always define AMTAR for backward compatibility. Yes, it's still used
3212 # in the wild :-( We should find a proper way to deprecate it ...
3216 # We'll loop over all known methods to create a tar archive until one works.
3217 _am_tools
='gnutar pax cpio none'
3219 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3226 # POSIX will say in a future version that running "rm -f" with no argument
3227 # is OK; and we want to be able to make that assumption in our Makefile
3228 # recipes. So use an aggressive probe to check that the usage we want is
3229 # actually supported "in the wild" to an acceptable degree.
3230 # See automake bug#10828.
3231 # To make any issue more visible, cause the running configure to be aborted
3232 # by default if the 'rm' program in use doesn't match our expectations; the
3233 # user can still override this though.
3234 if rm -f && rm -fr && rm -rf; then : OK
; else
3238 Your 'rm' program seems unable to run without file operands specified
3239 on the command line, even when the '-f' option is present. This is contrary
3240 to the behaviour of most rm programs out there, and not conforming with
3241 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3243 Please tell bug-automake@gnu.org about your system, including the value
3244 of your $PATH and any error possibly output before this message. This
3245 can help us improve future automake versions.
3248 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3249 echo 'Configuration will proceed anyway, since you have set the' >&2
3250 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3254 Aborting the configuration process, to ensure you take notice of the issue.
3256 You can download and install GNU coreutils to get an 'rm' implementation
3257 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3259 If you want to complete the configuration process using your problematic
3260 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3261 to "yes", and re-run configure.
3264 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3268 ac_config_headers
="$ac_config_headers zfs_config.h"
3273 ac_cpp
='$CPP $CPPFLAGS'
3274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false
; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC
="$CC" # Let the user override the test.
3288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir
=.
3293 for ac_exec_ext
in '' $ac_executable_extensions; do
3294 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3316 if test -z "$ac_cv_prog_CC"; then
3318 # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc
; ac_word
=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir
=.
3333 for ac_exec_ext
in '' $ac_executable_extensions; do
3334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC
="gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3354 if test "x$ac_ct_CC" = x
; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned
=yes ;;
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false
; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC
="$CC" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc
; ac_word
=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false
; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC
="$CC" # Let the user override the test.
3422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir
=.
3427 for ac_exec_ext
in '' $ac_executable_extensions; do
3428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected
=yes
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy
$ac_cv_prog_CC
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3450 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog
in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false
; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC
="$CC" # Let the user override the test.
3480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir
=.
3485 for ac_exec_ext
in '' $ac_executable_extensions; do
3486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$CC" && break
3510 if test -z "$CC"; then
3512 for ac_prog
in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy
$ac_prog; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_CC
="$ac_prog"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3551 test -n "$ac_ct_CC" && break
3554 if test "x$ac_ct_CC" = x
; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned
=yes ;;
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $?
"no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579 for ac_option
in --version -v -V -qversion; do
3580 { { ac_try
="$ac_compiler $ac_option >&5"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3589 if test -s conftest.err; then
3591 ... rest of stderr output deleted ...
3592 10q' conftest.err >conftest.er1
3593 cat conftest.er1 >&5
3595 rm -f conftest.er1 conftest.err
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3624 for ac_file in $ac_files
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 if { { ac_try="$ac_link_default"
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link_default") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; then :
3644 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3649 for ac_file
in $ac_files ''
3651 test -f "$ac_file" ||
continue
3653 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3656 # We found the default executable, but exeext='' is most
3660 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3662 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 # We set ac_cv_exeext here because the later test for it is not
3665 # safe: cross compilers may not add the suffix if given an `-o'
3666 # argument, so we may need to know it at that point already.
3667 # Even if this section looks crufty: it has the advantage of
3674 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3679 if test -z "$ac_file"; then :
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error
77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext
=$ac_cv_exeext
3699 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3700 ac_clean_files
=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try
="$ac_link"
3705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link") 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3715 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3718 for ac_file
in conftest.exe conftest conftest.
*; do
3719 test -f "$ac_file" ||
continue
3721 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3722 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3733 rm -f conftest conftest
$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3737 rm -f conftest.
$ac_ext
3738 EXEEXT
=$ac_cv_exeext
3740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3746 FILE *f = fopen ("conftest.out", "w");
3747 return ferror (f) || fclose (f) != 0;
3753 ac_clean_files
="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759 { { ac_try
="$ac_link"
3761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 if { ac_try='./conftest$ac_cv_exeext'
3771 { { case "(($ac_try" in
3772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3773 *) ac_try_echo
=$ac_try;;
3775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_try") 2>&5
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; }; then
3783 if test "$cross_compiling" = maybe
; then
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $?
"cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3797 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3798 ac_clean_files
=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false
; then :
3802 $as_echo_n "(cached) " >&6
3804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try
="$ac_compile"
3818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compile") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 for ac_file in conftest.o conftest.obj conftest.*; do
3828 test -f "$ac_file" || continue;
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3842 See \
`config.log' for more details" "$LINENO" 5; }
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3959 if test "$GCC" = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_cv_prog_cc_c89=no
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3991 s = g (p, va_arg (v,int));
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997 function prototypes and stuff, but not '\xHH' hex character constants.
3998 These don't provoke an error unfortunately, instead are silently treated
3999 as 'x'. The following induces an error, until -std is added to get
4000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001 array size at least. It's necessary to write '\x00'==0 to get something
4002 that's true only with -std. */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006 inside strings and character constants. */
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_c89=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext
4032 test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 rm -f conftest.$ac_ext
4039 case "x$ac_cv_prog_cc_c89" in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4047 CC="$CC $ac_cv_prog_cc_c89"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051 if test "x$ac_cv_prog_cc_c89" != xno; then :
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4068 if ${am_cv_prog_cc_c_o+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 # Make sure it works both with $CC and with simple cc.
4083 # Following AC_PROG_CC_C_O, we do the test twice because some
4084 # compilers refuse to overwrite an existing .o file with -o,
4085 # though they will create one.
4086 am_cv_prog_cc_c_o=yes
4088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } \
4093 && test -f conftest2.$ac_objext; then
4096 am_cv_prog_cc_c_o=no
4100 rm -f core conftest*
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4105 if test "$am_cv_prog_cc_c_o" != yes; then
4106 # Losing compiler, so override with the script.
4107 # FIXME: It is wrong to rewrite CC.
4108 # But if we don't then we get into trouble of one sort or another.
4109 # A longer-term fix would be to have automake use am__CC in this case,
4110 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4111 CC="$am_aux_dir/compile $CC"
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 DEPDIR="${am__leading_dot}deps"
4121 ac_config_commands="$ac_config_commands depfiles"
4124 am_make=${MAKE-make}
4125 cat > confinc << 'END'
4127 @echo this is the am__doit target
4130 # If we don't find an include directive, just comment out the code.
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4136 # First try GNU make style include.
4137 echo "include confinc" > confmf
4138 # Ignore all kinds of additional output from 'make'.
4139 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4140 *the\ am__doit\ target*)
4146 # Now try BSD make style include.
4147 if test "$am__include" = "#"; then
4148 echo '.include "confinc"' > confmf
4149 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4150 *the\ am__doit\ target*)
4151 am__include=.include
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4160 $as_echo "$_am_result" >&6; }
4161 rm -f confinc confmf
4163 # Check whether --enable-dependency-tracking was given.
4164 if test "${enable_dependency_tracking+set}" = set; then :
4165 enableval=$enable_dependency_tracking;
4168 if test "x$enable_dependency_tracking" != xno; then
4169 am_depcomp="$ac_aux_dir/depcomp"
4173 if test "x$enable_dependency_tracking" != xno; then
4183 depcc="$CC" am_compiler_list=
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191 # We make a subdir and do the tests there. Otherwise we can end up
4192 # making bogus files that we don't know about and never remove. For
4193 # instance it was reported that on HP-UX the gcc test will end up
4194 # making a dummy file named 'D' -- because '-MD' means "put the output
4198 # Copy depcomp to subdir because otherwise we won't find it if we're
4199 # using a relative directory.
4200 cp "$am_depcomp" conftest.dir
4202 # We will build objects and dependencies in a subdirectory because
4203 # it helps to detect inapplicable dependency modes. For instance
4204 # both Tru64's cc and ICC support -MD to output dependencies as a
4205 # side effect of compilation, but ICC will put the dependencies in
4206 # the current directory while Tru64 will put them in the object
4210 am_cv_CC_dependencies_compiler_type=none
4211 if test "$am_compiler_list" = ""; then
4212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4215 case " $depcc " in #(
4216 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4231 # Solaris 10 /bin/sh.
4232 echo '/* dummy */' > sub/conftst$i.h
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle '-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs.
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4248 # After this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested.
4250 if test "x$enable_dependency_tracking" = xyes; then
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257 # This compiler won't grok '-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CC_dependencies_compiler_type=$depmode
4292 am_cv_CC_dependencies_compiler_type=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4298 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4304 am__fastdepCC_FALSE='#'
4306 am__fastdepCC_TRUE='#'
4307 am__fastdepCC_FALSE=
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4314 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4319 macro_version='2.4.6'
4320 macro_revision='2.4.6'
4334 ltmain=$ac_aux_dir/ltmain.sh
4336 # Backslashify metacharacters that are still active within
4337 # double-quoted strings.
4338 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4340 # Same as above, but do not quote variable references.
4341 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4343 # Sed substitution to delay expansion of an escaped shell variable in a
4344 # double_quote_subst'ed string.
4345 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4347 # Sed substitution to delay expansion of an escaped single quote.
4348 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4350 # Sed substitution to avoid accidental globbing in evaled expressions
4351 no_glob_subst='s/\*/\\\*/g'
4353 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4355 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4358 $as_echo_n "checking how to print
strings...
" >&6; }
4359 # Test print first, because it will be a builtin if present.
4360 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4361 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4363 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4366 # Use this function as a fallback that always works.
4367 func_fallback_echo ()
4369 eval 'cat <<_LTECHO_EOF
4373 ECHO='func_fallback_echo'
4376 # func_echo_all arg...
4377 # Invoke $ECHO with all args, space-separated.
4384 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4385 $as_echo "printf" >&6; } ;;
4386 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4387 $as_echo "print
-r" >&6; } ;;
4388 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4389 $as_echo "cat" >&6; } ;;
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4406 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4407 if ${ac_cv_path_SED+:} false; then :
4408 $as_echo_n "(cached
) " >&6
4410 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4411 for ac_i in 1 2 3 4 5 6 7; do
4412 ac_script="$ac_script$as_nl$ac_script"
4414 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4415 { ac_script=; unset ac_script;}
4416 if test -z "$SED"; then
4417 ac_path_SED_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in sed gsed; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_SED" || continue
4428 # Check for GNU ac_path_SED and select it if it is found.
4429 # Check for GNU $ac_path_SED
4430 case `"$ac_path_SED" --version 2>&1` in
4432 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4435 $as_echo_n 0123456789 >"conftest.
in"
4438 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4439 mv "conftest.tmp
" "conftest.
in"
4440 cp "conftest.
in" "conftest.
nl"
4441 $as_echo '' >> "conftest.
nl"
4442 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4443 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_SED_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_SED="$ac_path_SED"
4448 ac_path_SED_max=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 $ac_path_SED_found && break 3
4461 if test -z "$ac_cv_path_SED"; then
4462 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4470 $as_echo "$ac_cv_path_SED" >&6; }
4471 SED="$ac_cv_path_SED"
4474 test -z "$SED" && SED=sed
4475 Xsed="$SED -e 1s
/^X
//"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4488 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4489 if ${ac_cv_path_GREP+:} false; then :
4490 $as_echo_n "(cached
) " >&6
4492 if test -z "$GREP"; then
4493 ac_path_GREP_found=false
4494 # Loop through the user's path and test for each of PROGNAME-LIST
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 test -z "$as_dir" && as_dir=.
4500 for ac_prog in grep ggrep; do
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4503 as_fn_executable_p "$ac_path_GREP" || continue
4504 # Check for GNU ac_path_GREP and select it if it is found.
4505 # Check for GNU $ac_path_GREP
4506 case `"$ac_path_GREP" --version 2>&1` in
4508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 $as_echo_n 0123456789 >"conftest.
in"
4514 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4515 mv "conftest.tmp
" "conftest.
in"
4516 cp "conftest.
in" "conftest.
nl"
4517 $as_echo 'GREP' >> "conftest.
nl"
4518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4519 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4520 as_fn_arith $ac_count + 1 && ac_count=$as_val
4521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4522 # Best one so far, save it but keep looking for a better one
4523 ac_cv_path_GREP="$ac_path_GREP"
4524 ac_path_GREP_max=$ac_count
4526 # 10*(2^10) chars as input seems more than enough
4527 test $ac_count -gt 10 && break
4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 $ac_path_GREP_found && break 3
4537 if test -z "$ac_cv_path_GREP"; then
4538 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4541 ac_cv_path_GREP=$GREP
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4546 $as_echo "$ac_cv_path_GREP" >&6; }
4547 GREP="$ac_cv_path_GREP"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4551 $as_echo_n "checking
for egrep...
" >&6; }
4552 if ${ac_cv_path_EGREP+:} false; then :
4553 $as_echo_n "(cached
) " >&6
4555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4556 then ac_cv_path_EGREP="$GREP -E"
4558 if test -z "$EGREP"; then
4559 ac_path_EGREP_found=false
4560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 test -z "$as_dir" && as_dir=.
4566 for ac_prog in egrep; do
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_EGREP" || continue
4570 # Check for GNU ac_path_EGREP and select it if it is found.
4571 # Check for GNU $ac_path_EGREP
4572 case `"$ac_path_EGREP" --version 2>&1` in
4574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 $as_echo_n 0123456789 >"conftest.
in"
4580 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4581 mv "conftest.tmp
" "conftest.
in"
4582 cp "conftest.
in" "conftest.
nl"
4583 $as_echo 'EGREP' >> "conftest.
nl"
4584 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4585 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_EGREP="$ac_path_EGREP"
4590 ac_path_EGREP_max=$ac_count
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 $ac_path_EGREP_found && break 3
4603 if test -z "$ac_cv_path_EGREP"; then
4604 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4607 ac_cv_path_EGREP=$EGREP
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4613 $as_echo "$ac_cv_path_EGREP" >&6; }
4614 EGREP="$ac_cv_path_EGREP"
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4618 $as_echo_n "checking
for fgrep...
" >&6; }
4619 if ${ac_cv_path_FGREP+:} false; then :
4620 $as_echo_n "(cached
) " >&6
4622 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4623 then ac_cv_path_FGREP="$GREP -F"
4625 if test -z "$FGREP"; then
4626 ac_path_FGREP_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 test -z "$as_dir" && as_dir=.
4633 for ac_prog in fgrep; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4636 as_fn_executable_p "$ac_path_FGREP" || continue
4637 # Check for GNU ac_path_FGREP and select it if it is found.
4638 # Check for GNU $ac_path_FGREP
4639 case `"$ac_path_FGREP" --version 2>&1` in
4641 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4644 $as_echo_n 0123456789 >"conftest.
in"
4647 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4648 mv "conftest.tmp
" "conftest.
in"
4649 cp "conftest.
in" "conftest.
nl"
4650 $as_echo 'FGREP' >> "conftest.
nl"
4651 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4652 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4653 as_fn_arith $ac_count + 1 && ac_count=$as_val
4654 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_FGREP="$ac_path_FGREP"
4657 ac_path_FGREP_max=$ac_count
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 $ac_path_FGREP_found && break 3
4670 if test -z "$ac_cv_path_FGREP"; then
4671 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4674 ac_cv_path_FGREP=$FGREP
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4680 $as_echo "$ac_cv_path_FGREP" >&6; }
4681 FGREP="$ac_cv_path_FGREP"
4684 test -z "$GREP" && GREP=grep
4704 # Check whether --with-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4712 if test yes = "$GCC"; then
4713 # Check if gcc -print-prog-name=ld gives a path.
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4715 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4718 # gcc leaves a trailing carriage return, which upsets mingw
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4724 # Accept absolute paths.
4726 re_direlt='/[^/][^/]*/\.\./'
4727 # Canonicalize the pathname of ld
4728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4732 test -z "$LD" && LD=$ac_prog
4735 # If it fails, then pretend we aren't using GCC.
4739 # If it is relative, then search for the first ld in PATH.
4743 elif test yes = "$with_gnu_ld"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4745 $as_echo_n "checking
for GNU ld...
" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4748 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4750 if ${lt_cv_path_LD+:} false; then :
4751 $as_echo_n "(cached
) " >&6
4753 if test -z "$LD"; then
4754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH; do
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759 lt_cv_path_LD=$ac_dir/$ac_prog
4760 # Check to see if the program is GNU ld. I'd rather use --version,
4761 # but apparently some variants of GNU ld only accept -v.
4762 # Break only if it was the GNU/non-GNU ld that we prefer.
4763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4764 *GNU* | *'with BFD'*)
4765 test no != "$with_gnu_ld" && break
4768 test yes != "$with_gnu_ld" && break
4775 lt_cv_path_LD=$LD # Let the user override the test with a path.
4780 if test -n "$LD"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4782 $as_echo "$LD" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4785 $as_echo "no
" >&6; }
4787 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4789 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4790 if ${lt_cv_prog_gnu_ld+:} false; then :
4791 $as_echo_n "(cached
) " >&6
4793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4794 case `$LD -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 lt_cv_prog_gnu_ld=yes
4799 lt_cv_prog_gnu_ld=no
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4804 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4805 with_gnu_ld=$lt_cv_prog_gnu_ld
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4816 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4817 if ${lt_cv_path_NM+:} false; then :
4818 $as_echo_n "(cached
) " >&6
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4824 lt_nm_to_check=${ac_tool_prefix}nm
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm
"
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm=$ac_dir/$lt_tmp_nm
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B
" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4841 mingw*) lt_bad_file=conftest.nm/nofile ;;
4842 *) lt_bad_file=/dev/null ;;
4844 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4845 *$lt_bad_file* | *'Invalid file or object type'*)
4846 lt_cv_path_NM="$tmp_nm -B"
4850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4852 lt_cv_path_NM="$tmp_nm -p"
4856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4857 continue # so that we can try to find one that supports BSD flags
4866 : ${lt_cv_path_NM=no}
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4870 $as_echo "$lt_cv_path_NM" >&6; }
4871 if test no != "$lt_cv_path_NM"; then
4874 # Didn't find any BSD compatible name lister, look for dumpbin.
4875 if test -n "$DUMPBIN"; then :
4876 # Let the user override the test.
4878 if test -n "$ac_tool_prefix"; then
4879 for ac_prog in dumpbin "link
-dump"
4881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4884 $as_echo_n "checking
for $ac_word...
" >&6; }
4885 if ${ac_cv_prog_DUMPBIN+:} false; then :
4886 $as_echo_n "(cached
) " >&6
4888 if test -n "$DUMPBIN"; then
4889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4908 DUMPBIN=$ac_cv_prog_DUMPBIN
4909 if test -n "$DUMPBIN"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4911 $as_echo "$DUMPBIN" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4914 $as_echo "no
" >&6; }
4918 test -n "$DUMPBIN" && break
4921 if test -z "$DUMPBIN"; then
4922 ac_ct_DUMPBIN=$DUMPBIN
4923 for ac_prog in dumpbin "link
-dump"
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4928 $as_echo_n "checking
for $ac_word...
" >&6; }
4929 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4930 $as_echo_n "(cached
) " >&6
4932 if test -n "$ac_ct_DUMPBIN"; then
4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4953 if test -n "$ac_ct_DUMPBIN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4955 $as_echo "$ac_ct_DUMPBIN" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4958 $as_echo "no
" >&6; }
4962 test -n "$ac_ct_DUMPBIN" && break
4965 if test "x
$ac_ct_DUMPBIN" = x; then
4968 case $cross_compiling:$ac_tool_warned in
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4971 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4972 ac_tool_warned=yes ;;
4974 DUMPBIN=$ac_ct_DUMPBIN
4978 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4980 DUMPBIN="$DUMPBIN -symbols -headers"
4988 if test : != "$DUMPBIN"; then
4992 test -z "$NM" && NM=nm
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5000 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5001 if ${lt_cv_nm_interface+:} false; then :
5002 $as_echo_n "(cached
) " >&6
5004 lt_cv_nm_interface="BSD nm
"
5005 echo "int some_variable
= 0;" > conftest.$ac_ext
5006 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5007 (eval "$ac_compile" 2>conftest.err)
5008 cat conftest.err >&5
5009 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5010 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5011 cat conftest.err >&5
5012 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5013 cat conftest.out >&5
5014 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5015 lt_cv_nm_interface="MS dumpbin
"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5020 $as_echo "$lt_cv_nm_interface" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5023 $as_echo_n "checking whether
ln -s works...
" >&6; }
5025 if test "$LN_S" = "ln -s"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5027 $as_echo "yes" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5030 $as_echo "no
, using
$LN_S" >&6; }
5033 # find the maximum length of command line arguments
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5035 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5036 if ${lt_cv_sys_max_cmd_len+:} false; then :
5037 $as_echo_n "(cached
) " >&6
5044 # On DJGPP, this test can blow up pretty badly due to problems in libc
5045 # (any single argument exceeding 2000 bytes causes a buffer overrun
5046 # during glob expansion). Even if it were fixed, the result of this
5047 # check would be larger than it should be.
5048 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5052 # Under GNU Hurd, this test is not required because there is
5053 # no limit to the length of command line arguments.
5054 # Libtool will interpret -1 as no limit whatsoever
5055 lt_cv_sys_max_cmd_len=-1;
5058 cygwin* | mingw* | cegcc*)
5059 # On Win9x/ME, this test blows up -- it succeeds, but takes
5060 # about 5 minutes as the teststring grows exponentially.
5061 # Worse, since 9x/ME are not pre-emptively multitasking,
5062 # you end up with a "frozen
" computer, even though with patience
5063 # the test eventually succeeds (with a max line length of 256k).
5064 # Instead, let's just punt: use the minimum linelength reported by
5065 # all of the supported platforms: 8192 (on NT/2K/XP).
5066 lt_cv_sys_max_cmd_len=8192;
5070 # On MiNT this can take a long time and run out of memory.
5071 lt_cv_sys_max_cmd_len=8192;
5075 # On AmigaOS with pdksh, this test takes hours, literally.
5076 # So we just punt and use a minimum line length of 8192.
5077 lt_cv_sys_max_cmd_len=8192;
5080 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5081 # This has been around since 386BSD, at least. Likely further.
5082 if test -x /sbin/sysctl; then
5083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5084 elif test -x /usr/sbin/sysctl; then
5085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5089 # And add a safety zone
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5096 lt_cv_sys_max_cmd_len=196608
5100 # The test takes a long time on OS/2.
5101 lt_cv_sys_max_cmd_len=8192
5105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5107 # nice to cause kernel panics so lets avoid the loop below.
5108 # First set a reasonable default.
5109 lt_cv_sys_max_cmd_len=16384
5111 if test -x /sbin/sysconfig; then
5112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5113 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5118 lt_cv_sys_max_cmd_len=102400
5120 sysv5* | sco5v6* | sysv4.2uw2*)
5121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5122 if test -n "$kargmax"; then
5123 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5125 lt_cv_sys_max_cmd_len=32768
5129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5130 if test -n "$lt_cv_sys_max_cmd_len" && \
5131 test undefined != "$lt_cv_sys_max_cmd_len"; then
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135 # Make teststring a little bigger before we do anything with it.
5136 # a 1K string should be a reasonable start.
5137 for i in 1 2 3 4 5 6 7 8; do
5138 teststring=$teststring$teststring
5140 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5141 # If test is not a shell built-in, we'll probably end up computing a
5142 # maximum length that is only half of the actual maximum length, but
5144 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5145 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5146 test 17 != "$i" # 1/2 MB should be enough
5149 teststring=$teststring$teststring
5151 # Only check the string length outside the loop.
5152 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5154 # Add a significant safety factor because C++ compilers can tack on
5155 # massive amounts of additional arguments before passing them to the
5156 # linker. It appears as though 1/2 is a usable value.
5157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5164 if test -n "$lt_cv_sys_max_cmd_len"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5166 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5169 $as_echo "none
" >&6; }
5171 max_cmd_len=$lt_cv_sys_max_cmd_len
5182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5192 # test EBCDIC or ASCII
5193 case `echo X|tr X '\101'` in
5194 A) # ASCII based system
5195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5196 lt_SP2NL='tr \040 \012'
5197 lt_NL2SP='tr \015\012 \040\040'
5199 *) # EBCDIC based system
5200 lt_SP2NL='tr \100 \n'
5201 lt_NL2SP='tr \r\n \100\100'
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5214 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5215 if ${lt_cv_to_host_file_cmd+:} false; then :
5216 $as_echo_n "(cached
) " >&6
5221 *-*-mingw* ) # actually msys
5222 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5225 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5227 * ) # otherwise, assume *nix
5228 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5234 *-*-mingw* ) # actually msys
5235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5238 lt_cv_to_host_file_cmd=func_convert_file_noop
5240 * ) # otherwise, assume *nix
5241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5245 * ) # unhandled hosts (and "normal
" native builds)
5246 lt_cv_to_host_file_cmd=func_convert_file_noop
5252 to_host_file_cmd=$lt_cv_to_host_file_cmd
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5254 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5261 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5262 if ${lt_cv_to_tool_file_cmd+:} false; then :
5263 $as_echo_n "(cached
) " >&6
5265 #assume ordinary cross tools, or native build.
5266 lt_cv_to_tool_file_cmd=func_convert_file_noop
5270 *-*-mingw* ) # actually msys
5271 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5279 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5281 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5288 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5289 if ${lt_cv_ld_reload_flag+:} false; then :
5290 $as_echo_n "(cached
) " >&6
5292 lt_cv_ld_reload_flag='-r'
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5295 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5296 reload_flag=$lt_cv_ld_reload_flag
5297 case $reload_flag in
5299 *) reload_flag=" $reload_flag" ;;
5301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303 cygwin* | mingw* | pw32* | cegcc*)
5304 if test yes != "$GCC"; then
5309 if test yes = "$GCC"; then
5310 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5329 $as_echo_n "checking
for $ac_word...
" >&6; }
5330 if ${ac_cv_prog_OBJDUMP+:} false; then :
5331 $as_echo_n "(cached
) " >&6
5333 if test -n "$OBJDUMP"; then
5334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5353 OBJDUMP=$ac_cv_prog_OBJDUMP
5354 if test -n "$OBJDUMP"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5356 $as_echo "$OBJDUMP" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5359 $as_echo "no
" >&6; }
5364 if test -z "$ac_cv_prog_OBJDUMP"; then
5365 ac_ct_OBJDUMP=$OBJDUMP
5366 # Extract the first word of "objdump
", so it can be a program name with args.
5367 set dummy objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5369 $as_echo_n "checking
for $ac_word...
" >&6; }
5370 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5373 if test -n "$ac_ct_OBJDUMP"; then
5374 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5393 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5394 if test -n "$ac_ct_OBJDUMP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5396 $as_echo "$ac_ct_OBJDUMP" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5399 $as_echo "no
" >&6; }
5402 if test "x
$ac_ct_OBJDUMP" = x; then
5405 case $cross_compiling:$ac_tool_warned in
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5408 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5409 ac_tool_warned=yes ;;
5411 OBJDUMP=$ac_ct_OBJDUMP
5414 OBJDUMP="$ac_cv_prog_OBJDUMP"
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5428 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5429 if ${lt_cv_deplibs_check_method+:} false; then :
5430 $as_echo_n "(cached
) " >&6
5432 lt_cv_file_magic_cmd='$MAGIC_CMD'
5433 lt_cv_file_magic_test_file=
5434 lt_cv_deplibs_check_method='unknown'
5435 # Need to set the preceding variable on all platforms that support
5436 # interlibrary dependencies.
5437 # 'none' -- dependencies not supported.
5438 # 'unknown' -- same as none, but documents that we really don't know.
5439 # 'pass_all' -- all dependencies passed with no checks.
5440 # 'test_compile' -- check by making test program.
5441 # 'file_magic [[regex]]' -- check by looking for files in library path
5442 # that responds to the $file_magic_cmd with a given extended regex.
5443 # If you have 'file' or equivalent on your system and you're not sure
5444 # whether 'pass_all' will *always* work, you probably want this one.
5448 lt_cv_deplibs_check_method=pass_all
5452 lt_cv_deplibs_check_method=pass_all
5456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5457 lt_cv_file_magic_cmd='/usr/bin/file -L'
5458 lt_cv_file_magic_test_file=/shlib/libc.so
5462 # func_win32_libid is a shell function defined in ltmain.sh
5463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5464 lt_cv_file_magic_cmd='func_win32_libid'
5468 # Base MSYS/MinGW do not provide the 'file' command needed by
5469 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5470 # unless we find 'file', for example because we are cross-compiling.
5471 if ( file / ) >/dev/null 2>&1; then
5472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5473 lt_cv_file_magic_cmd='func_win32_libid'
5475 # Keep this pattern in sync with the one in func_win32_libid.
5476 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5477 lt_cv_file_magic_cmd='$OBJDUMP -f'
5482 # use the weaker test based on 'objdump'. See mingw*.
5483 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5484 lt_cv_file_magic_cmd='$OBJDUMP -f'
5487 darwin* | rhapsody*)
5488 lt_cv_deplibs_check_method=pass_all
5491 freebsd* | dragonfly*)
5492 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5495 # Not sure whether the presence of OpenBSD here was a mistake.
5496 # Let's accept both of them until this is cleared up.
5497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5498 lt_cv_file_magic_cmd=/usr/bin/file
5499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5503 lt_cv_deplibs_check_method=pass_all
5508 lt_cv_deplibs_check_method=pass_all
5511 hpux10.20* | hpux11*)
5512 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5519 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]'
5520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5534 irix5* | irix6* | nonstopux*)
5536 *-32|*"-32 ") libmagic=32-bit;;
5537 *-n32|*"-n32 ") libmagic=N32;;
5538 *-64|*"-64 ") libmagic=64-bit;;
5539 *) libmagic=never-match;;
5541 lt_cv_deplibs_check_method=pass_all
5544 # This must be glibc/ELF.
5545 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5546 lt_cv_deplibs_check_method=pass_all
5549 netbsd* | netbsdelf*-gnu)
5550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5559 lt_cv_file_magic_cmd=/usr/bin/file
5560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5564 lt_cv_deplibs_check_method=pass_all
5568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5575 osf3* | osf4* | osf5*)
5576 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5588 lt_cv_deplibs_check_method=pass_all
5592 case $host_vendor in
5594 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]'
5595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5598 lt_cv_deplibs_check_method=pass_all
5601 lt_cv_file_magic_cmd='/bin/file'
5602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5605 lt_cv_file_magic_cmd='/bin/file'
5606 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5607 lt_cv_file_magic_test_file=/lib/libc.so
5610 lt_cv_deplibs_check_method=pass_all
5613 lt_cv_deplibs_check_method=pass_all
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_deplibs_check_method=pass_all
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5628 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5632 if test "$build" = "$host"; then
5635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5673 $as_echo_n "checking
for $ac_word...
" >&6; }
5674 if ${ac_cv_prog_DLLTOOL+:} false; then :
5675 $as_echo_n "(cached
) " >&6
5677 if test -n "$DLLTOOL"; then
5678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5697 DLLTOOL=$ac_cv_prog_DLLTOOL
5698 if test -n "$DLLTOOL"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5700 $as_echo "$DLLTOOL" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5703 $as_echo "no
" >&6; }
5708 if test -z "$ac_cv_prog_DLLTOOL"; then
5709 ac_ct_DLLTOOL=$DLLTOOL
5710 # Extract the first word of "dlltool
", so it can be a program name with args.
5711 set dummy dlltool; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5713 $as_echo_n "checking
for $ac_word...
" >&6; }
5714 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5715 $as_echo_n "(cached
) " >&6
5717 if test -n "$ac_ct_DLLTOOL"; then
5718 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5737 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5738 if test -n "$ac_ct_DLLTOOL"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5740 $as_echo "$ac_ct_DLLTOOL" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5743 $as_echo "no
" >&6; }
5746 if test "x
$ac_ct_DLLTOOL" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5752 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5753 ac_tool_warned=yes ;;
5755 DLLTOOL=$ac_ct_DLLTOOL
5758 DLLTOOL="$ac_cv_prog_DLLTOOL"
5761 test -z "$DLLTOOL" && DLLTOOL=dlltool
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5773 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5774 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5775 $as_echo_n "(cached
) " >&6
5777 lt_cv_sharedlib_from_linklib_cmd='unknown'
5780 cygwin* | mingw* | pw32* | cegcc*)
5781 # two different shell functions defined in ltmain.sh;
5782 # decide which one to use based on capabilities of $DLLTOOL
5783 case `$DLLTOOL --help 2>&1` in
5784 *--identify-strict*)
5785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5788 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5793 # fallback: assume linklib IS sharedlib
5794 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5800 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5801 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5802 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5811 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5817 $as_echo_n "checking
for $ac_word...
" >&6; }
5818 if ${ac_cv_prog_AR+:} false; then :
5819 $as_echo_n "(cached
) " >&6
5821 if test -n "$AR"; then
5822 ac_cv_prog_AR="$AR" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5842 if test -n "$AR"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5844 $as_echo "$AR" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5847 $as_echo "no
" >&6; }
5851 test -n "$AR" && break
5854 if test -z "$AR"; then
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5861 $as_echo_n "checking
for $ac_word...
" >&6; }
5862 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5863 $as_echo_n "(cached
) " >&6
5865 if test -n "$ac_ct_AR"; then
5866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_AR="$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5886 if test -n "$ac_ct_AR"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5888 $as_echo "$ac_ct_AR" >&6; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5891 $as_echo "no
" >&6; }
5895 test -n "$ac_ct_AR" && break
5898 if test "x
$ac_ct_AR" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5904 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5905 ac_tool_warned=yes ;;
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5925 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5926 if ${lt_cv_ar_at_file+:} false; then :
5927 $as_echo_n "(cached
) " >&6
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 echo conftest.$ac_objext > conftest.lst
5943 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5944 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5945 (eval $lt_ar_try) 2>&5
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5948 test $ac_status = 0; }
5949 if test 0 -eq "$ac_status"; then
5950 # Ensure the archiver fails upon bogus file names.
5951 rm -f conftest.$ac_objext libconftest.a
5952 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5953 (eval $lt_ar_try) 2>&5
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5956 test $ac_status = 0; }
5957 if test 0 -ne "$ac_status"; then
5961 rm -f conftest.* libconftest.a
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5968 $as_echo "$lt_cv_ar_at_file" >&6; }
5970 if test no = "$lt_cv_ar_at_file"; then
5973 archiver_list_spec=$lt_cv_ar_at_file
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5986 $as_echo_n "checking
for $ac_word...
" >&6; }
5987 if ${ac_cv_prog_STRIP+:} false; then :
5988 $as_echo_n "(cached
) " >&6
5990 if test -n "$STRIP"; then
5991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6010 STRIP=$ac_cv_prog_STRIP
6011 if test -n "$STRIP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6013 $as_echo "$STRIP" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6016 $as_echo "no
" >&6; }
6021 if test -z "$ac_cv_prog_STRIP"; then
6023 # Extract the first word of "strip
", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6026 $as_echo_n "checking
for $ac_word...
" >&6; }
6027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6028 $as_echo_n "(cached
) " >&6
6030 if test -n "$ac_ct_STRIP"; then
6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_STRIP="strip
"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6053 $as_echo "$ac_ct_STRIP" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6056 $as_echo "no
" >&6; }
6059 if test "x
$ac_ct_STRIP" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6065 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6066 ac_tool_warned=yes ;;
6071 STRIP="$ac_cv_prog_STRIP"
6074 test -z "$STRIP" && STRIP=:
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6085 $as_echo_n "checking
for $ac_word...
" >&6; }
6086 if ${ac_cv_prog_RANLIB+:} false; then :
6087 $as_echo_n "(cached
) " >&6
6089 if test -n "$RANLIB"; then
6090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6109 RANLIB=$ac_cv_prog_RANLIB
6110 if test -n "$RANLIB"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6112 $as_echo "$RANLIB" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6115 $as_echo "no
" >&6; }
6120 if test -z "$ac_cv_prog_RANLIB"; then
6121 ac_ct_RANLIB=$RANLIB
6122 # Extract the first word of "ranlib
", so it can be a program name with args.
6123 set dummy ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6125 $as_echo_n "checking
for $ac_word...
" >&6; }
6126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6127 $as_echo_n "(cached
) " >&6
6129 if test -n "$ac_ct_RANLIB"; then
6130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6150 if test -n "$ac_ct_RANLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6152 $as_echo "$ac_ct_RANLIB" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6155 $as_echo "no
" >&6; }
6158 if test "x
$ac_ct_RANLIB" = x; then
6161 case $cross_compiling:$ac_tool_warned in
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6164 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6165 ac_tool_warned=yes ;;
6167 RANLIB=$ac_ct_RANLIB
6170 RANLIB="$ac_cv_prog_RANLIB"
6173 test -z "$RANLIB" && RANLIB=:
6180 # Determine commands to create old-style static archives.
6181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6182 old_postinstall_cmds='chmod 644 $oldlib'
6183 old_postuninstall_cmds=
6185 if test -n "$RANLIB"; then
6188 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6191 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6194 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6199 lock_old_archive_extraction=yes ;;
6201 lock_old_archive_extraction=no ;;
6242 # If no C compiler was specified, use CC.
6245 # If no C compiler flags were specified, use CFLAGS.
6246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6248 # Allow CC to be a program name with arguments.
6252 # Check for command to grab the raw symbol name followed by C symbol from nm.
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6254 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6255 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6256 $as_echo_n "(cached
) " >&6
6259 # These are sane defaults that work on at least a few old systems.
6260 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6262 # Character class describing NM global symbol codes.
6263 symcode='[BCDEGRST]'
6265 # Regexp to match symbols that can be accessed directly from C.
6266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6268 # Define system-specific variables.
6273 cygwin* | mingw* | pw32* | cegcc*)
6274 symcode='[ABCDGISTW]'
6277 if test ia64 = "$host_cpu"; then
6278 symcode='[ABCDEGRST]'
6282 symcode='[BCDEGRST]'
6285 symcode='[BCDEGQRST]'
6296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6304 # If we're using GNU nm, then use its standard symbol codes.
6305 case `$NM -V 2>&1` in
6306 *GNU* | *'with BFD'*)
6307 symcode='[ABCDGIRSTW]' ;;
6310 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6311 # Gets list of data symbols to import.
6312 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6313 # Adjust the below global symbol transforms to fixup imported variables.
6314 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6315 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6316 lt_c_name_lib_hook="\
6317 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6318 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6320 # Disable hooks by default.
6321 lt_cv_sys_global_symbol_to_import=
6327 # Transform an extracted symbol line into a proper C declaration.
6328 # Some systems (esp. on ia64) link data and code symbols differently,
6329 # so use this general approach.
6330 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6332 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6333 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6335 # Transform an extracted symbol line into symbol name and symbol address
6336 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6338 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6339 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6341 # Transform an extracted symbol line into symbol name with lib prefix and
6343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6344 $lt_c_name_lib_hook\
6345 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6346 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6347 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6349 # Handle CRLF in mingw tool chain
6353 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357 # Try without a prefix underscore, then with it.
6358 for ac_symprfx in "" "_
"; do
6360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6361 symxfrm="\\1 $ac_symprfx\\2 \\2"
6363 # Write the raw and C identifiers.
6364 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6365 # Fake it for dumpbin and say T for any non-static function,
6366 # D for any global variable and I for any imported variable.
6367 # Also find C++ and __fastcall symbols from MSVC++,
6368 # which start with @ or ?.
6369 lt_cv_sys_global_symbol_pipe="$AWK '"\
6370 " {last_section=section; section=\$ 3};"\
6371 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6372 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6373 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6374 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6375 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6376 " \$ 0!~/External *\|/{next};"\
6377 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6378 " {if(hide[section]) next};"\
6379 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6380 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6381 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6382 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6383 " ' prfx
=^
$ac_symprfx"
6385 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6387 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6389 # Check to see that the pipe works correctly.
6393 cat > conftest.$ac_ext <<_LT_EOF
6398 void nm_test_func(void);
6399 void nm_test_func(void){}
6403 int main(){nm_test_var='a';nm_test_func();return(0);}
6406 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 # Now try to grab the symbols.
6413 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6414 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6417 test $ac_status = 0; } && test -s "$nlist"; then
6418 # Try sorting and uniquifying the output.
6419 if sort "$nlist" | uniq > "$nlist"T; then
6420 mv -f "$nlist"T "$nlist"
6425 # Make sure that we snagged all the symbols we need.
6426 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6427 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6428 cat <<_LT_EOF > conftest.$ac_ext
6429 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6430 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6431 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6432 relocations are performed -- see ld's documentation on pseudo-relocs. */
6433 # define LT_DLSYM_CONST
6434 #elif defined __osf__
6435 /* This system does not cope well with relocations in const data. */
6436 # define LT_DLSYM_CONST
6438 # define LT_DLSYM_CONST const
6446 # Now generate the symbol file.
6447 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6449 cat <<_LT_EOF >> conftest.$ac_ext
6451 /* The mapping between symbol names and symbols. */
6452 LT_DLSYM_CONST struct {
6456 lt__PROGRAM__LTX_preloaded_symbols[] =
6458 { "@PROGRAM@
", (void *) 0 },
6460 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6461 cat <<\_LT_EOF >> conftest.$ac_ext
6465 /* This works around a problem in FreeBSD linker */
6466 #ifdef FREEBSD_WORKAROUND
6467 static const void *lt_preloaded_setup() {
6468 return lt__PROGRAM__LTX_preloaded_symbols;
6476 # Now try linking the two files.
6477 mv conftest.$ac_objext conftstm.$ac_objext
6478 lt_globsym_save_LIBS=$LIBS
6479 lt_globsym_save_CFLAGS=$CFLAGS
6480 LIBS=conftstm.$ac_objext
6481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6482 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6483 (eval $ac_link) 2>&5
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6486 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6489 LIBS=$lt_globsym_save_LIBS
6490 CFLAGS=$lt_globsym_save_CFLAGS
6492 echo "cannot
find nm_test_func
in $nlist" >&5
6495 echo "cannot
find nm_test_var
in $nlist" >&5
6498 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6501 echo "$progname: failed program was
:" >&5
6502 cat conftest.$ac_ext >&5
6504 rm -rf conftest* conftst*
6506 # Do not use the global_symbol_pipe unless it works.
6507 if test yes = "$pipe_works"; then
6510 lt_cv_sys_global_symbol_pipe=
6516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6517 lt_cv_sys_global_symbol_to_cdecl=
6519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6521 $as_echo "failed
" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6524 $as_echo "ok
" >&6; }
6527 # Response file support.
6528 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6529 nm_file_list_spec='@'
6530 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6531 nm_file_list_spec='@'
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6571 $as_echo_n "checking
for sysroot...
" >&6; }
6573 # Check whether --with-sysroot was given.
6574 if test "${with_sysroot+set}" = set; then :
6575 withval=$with_sysroot;
6582 case $with_sysroot in #(
6584 if test yes = "$GCC"; then
6585 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6589 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6595 $as_echo "$with_sysroot" >&6; }
6596 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6601 $as_echo "${lt_sysroot:-no}" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6608 $as_echo_n "checking
for a working
dd...
" >&6; }
6609 if ${ac_cv_path_lt_DD+:} false; then :
6610 $as_echo_n "(cached
) " >&6
6612 printf 0123456789abcdef0123456789abcdef >conftest.i
6613 cat conftest.i conftest.i >conftest2.i
6615 if test -z "$lt_DD"; then
6616 ac_path_lt_DD_found=false
6617 # Loop through the user's path and test for each of PROGNAME-LIST
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_prog in dd; do
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6626 as_fn_executable_p "$ac_path_lt_DD" || continue
6627 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6628 cmp -s conftest.i conftest.out \
6629 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6631 $ac_path_lt_DD_found && break 3
6636 if test -z "$ac_cv_path_lt_DD"; then
6640 ac_cv_path_lt_DD=$lt_DD
6643 rm -f conftest.i conftest2.i conftest.out
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6646 $as_echo "$ac_cv_path_lt_DD" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6650 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6651 if ${lt_cv_truncate_bin+:} false; then :
6652 $as_echo_n "(cached
) " >&6
6654 printf 0123456789abcdef0123456789abcdef >conftest.i
6655 cat conftest.i conftest.i >conftest2.i
6657 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6658 cmp -s conftest.i conftest.out \
6659 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6661 rm -f conftest.i conftest2.i conftest.out
6662 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6665 $as_echo "$lt_cv_truncate_bin" >&6; }
6673 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6676 for cc_temp in $*""; do
6678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6684 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6687 # Check whether --enable-libtool-lock was given.
6688 if test "${enable_libtool_lock+set}" = set; then :
6689 enableval=$enable_libtool_lock;
6692 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6694 # Some flags need to be propagated to the compiler or linker for good
6698 # Find out what ABI is being produced by ac_compile, and set mode
6699 # options accordingly.
6700 echo 'int i;' > conftest.$ac_ext
6701 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 case `/usr/bin/file conftest.$ac_objext` in
6718 # Find out what ABI is being produced by ac_compile, and set linker
6719 # options accordingly.
6720 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6721 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6722 (eval $ac_compile) 2>&5
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6725 test $ac_status = 0; }; then
6726 if test yes = "$lt_cv_prog_gnu_ld"; then
6727 case `/usr/bin/file conftest.$ac_objext` in
6729 LD="${LD-ld} -melf32bsmip"
6732 LD="${LD-ld} -melf32bmipn32"
6735 LD="${LD-ld} -melf64bmip"
6739 case `/usr/bin/file conftest.$ac_objext` in
6756 # Find out what ABI is being produced by ac_compile, and set linker
6757 # options accordingly.
6758 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6759 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760 (eval $ac_compile) 2>&5
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6763 test $ac_status = 0; }; then
6765 case `/usr/bin/file conftest.$ac_objext` in
6773 case `/usr/bin/file conftest.$ac_objext` in
6775 emul="${emul}btsmip
"
6778 emul="${emul}ltsmip
"
6781 case `/usr/bin/file conftest.$ac_objext` in
6786 LD="${LD-ld} -m $emul"
6791 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6792 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6793 # Find out what ABI is being produced by ac_compile, and set linker
6794 # options accordingly. Note that the listed cases only cover the
6795 # situations where additional linker options are needed (such as when
6796 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6797 # vice versa); the common cases where no linker options are needed do
6798 # not appear in the list.
6799 echo 'int i;' > conftest.$ac_ext
6800 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 case `/usr/bin/file conftest.o` in
6808 x86_64-*kfreebsd*-gnu)
6809 LD="${LD-ld} -m elf_i386_fbsd
"
6812 case `/usr/bin/file conftest.o` in
6814 LD="${LD-ld} -m elf32_x86_64
"
6817 LD="${LD-ld} -m elf_i386
"
6821 powerpc64le-*linux*)
6822 LD="${LD-ld} -m elf32lppclinux
"
6825 LD="${LD-ld} -m elf32ppclinux
"
6828 LD="${LD-ld} -m elf_s390
"
6831 LD="${LD-ld} -m elf32_sparc
"
6837 x86_64-*kfreebsd*-gnu)
6838 LD="${LD-ld} -m elf_x86_64_fbsd
"
6841 LD="${LD-ld} -m elf_x86_64
"
6844 LD="${LD-ld} -m elf64lppc
"
6847 LD="${LD-ld} -m elf64ppc
"
6849 s390*-*linux*|s390*-*tpf*)
6850 LD="${LD-ld} -m elf64_s390
"
6853 LD="${LD-ld} -m elf64_sparc
"
6863 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6865 CFLAGS="$CFLAGS -belf"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6867 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6868 if ${lt_cv_cc_needs_belf+:} false; then :
6869 $as_echo_n "(cached
) " >&6
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 lt_cv_cc_needs_belf=yes
6891 lt_cv_cc_needs_belf=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6903 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6904 if test yes != "$lt_cv_cc_needs_belf"; then
6905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6910 # Find out what ABI is being produced by ac_compile, and set linker
6911 # options accordingly.
6912 echo 'int i;' > conftest.$ac_ext
6913 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6914 (eval $ac_compile) 2>&5
6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6917 test $ac_status = 0; }; then
6918 case `/usr/bin/file conftest.o` in
6920 case $lt_cv_prog_gnu_ld in
6923 i?86-*-solaris*|x86_64-*-solaris*)
6924 LD="${LD-ld} -m elf_x86_64
"
6927 LD="${LD-ld} -m elf64_sparc
"
6930 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6931 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6948 need_locks=$enable_libtool_lock
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}mt; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6954 $as_echo_n "checking
for $ac_word...
" >&6; }
6955 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6956 $as_echo_n "(cached
) " >&6
6958 if test -n "$MANIFEST_TOOL"; then
6959 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6978 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6979 if test -n "$MANIFEST_TOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6981 $as_echo "$MANIFEST_TOOL" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6984 $as_echo "no
" >&6; }
6989 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6990 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6991 # Extract the first word of "mt
", so it can be a program name with args.
6992 set dummy mt; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6994 $as_echo_n "checking
for $ac_word...
" >&6; }
6995 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6996 $as_echo_n "(cached
) " >&6
6998 if test -n "$ac_ct_MANIFEST_TOOL"; then
6999 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7018 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7019 if test -n "$ac_ct_MANIFEST_TOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7021 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7024 $as_echo "no
" >&6; }
7027 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7030 case $cross_compiling:$ac_tool_warned in
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7033 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7034 ac_tool_warned=yes ;;
7036 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7039 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7042 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7044 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7045 if ${lt_cv_path_mainfest_tool+:} false; then :
7046 $as_echo_n "(cached
) " >&6
7048 lt_cv_path_mainfest_tool=no
7049 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7050 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7051 cat conftest.err >&5
7052 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7053 lt_cv_path_mainfest_tool=yes
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7058 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7059 if test yes != "$lt_cv_path_mainfest_tool"; then
7069 rhapsody* | darwin*)
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7074 $as_echo_n "checking
for $ac_word...
" >&6; }
7075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7076 $as_echo_n "(cached
) " >&6
7078 if test -n "$DSYMUTIL"; then
7079 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7099 if test -n "$DSYMUTIL"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7101 $as_echo "$DSYMUTIL" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7104 $as_echo "no
" >&6; }
7109 if test -z "$ac_cv_prog_DSYMUTIL"; then
7110 ac_ct_DSYMUTIL=$DSYMUTIL
7111 # Extract the first word of "dsymutil
", so it can be a program name with args.
7112 set dummy dsymutil; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7114 $as_echo_n "checking
for $ac_word...
" >&6; }
7115 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7116 $as_echo_n "(cached
) " >&6
7118 if test -n "$ac_ct_DSYMUTIL"; then
7119 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7139 if test -n "$ac_ct_DSYMUTIL"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7141 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7144 $as_echo "no
" >&6; }
7147 if test "x
$ac_ct_DSYMUTIL" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7153 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7154 ac_tool_warned=yes ;;
7156 DSYMUTIL=$ac_ct_DSYMUTIL
7159 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7166 $as_echo_n "checking
for $ac_word...
" >&6; }
7167 if ${ac_cv_prog_NMEDIT+:} false; then :
7168 $as_echo_n "(cached
) " >&6
7170 if test -n "$NMEDIT"; then
7171 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7190 NMEDIT=$ac_cv_prog_NMEDIT
7191 if test -n "$NMEDIT"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7193 $as_echo "$NMEDIT" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7196 $as_echo "no
" >&6; }
7201 if test -z "$ac_cv_prog_NMEDIT"; then
7202 ac_ct_NMEDIT=$NMEDIT
7203 # Extract the first word of "nmedit
", so it can be a program name with args.
7204 set dummy nmedit; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7206 $as_echo_n "checking
for $ac_word...
" >&6; }
7207 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7208 $as_echo_n "(cached
) " >&6
7210 if test -n "$ac_ct_NMEDIT"; then
7211 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7231 if test -n "$ac_ct_NMEDIT"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7233 $as_echo "$ac_ct_NMEDIT" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7236 $as_echo "no
" >&6; }
7239 if test "x
$ac_ct_NMEDIT" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7245 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7246 ac_tool_warned=yes ;;
7248 NMEDIT=$ac_ct_NMEDIT
7251 NMEDIT="$ac_cv_prog_NMEDIT"
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7258 $as_echo_n "checking
for $ac_word...
" >&6; }
7259 if ${ac_cv_prog_LIPO+:} false; then :
7260 $as_echo_n "(cached
) " >&6
7262 if test -n "$LIPO"; then
7263 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7282 LIPO=$ac_cv_prog_LIPO
7283 if test -n "$LIPO"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7285 $as_echo "$LIPO" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7288 $as_echo "no
" >&6; }
7293 if test -z "$ac_cv_prog_LIPO"; then
7295 # Extract the first word of "lipo
", so it can be a program name with args.
7296 set dummy lipo; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7298 $as_echo_n "checking
for $ac_word...
" >&6; }
7299 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7300 $as_echo_n "(cached
) " >&6
7302 if test -n "$ac_ct_LIPO"; then
7303 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_LIPO="lipo
"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7323 if test -n "$ac_ct_LIPO"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7325 $as_echo "$ac_ct_LIPO" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7328 $as_echo "no
" >&6; }
7331 if test "x
$ac_ct_LIPO" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7337 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7338 ac_tool_warned=yes ;;
7343 LIPO="$ac_cv_prog_LIPO"
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7350 $as_echo_n "checking
for $ac_word...
" >&6; }
7351 if ${ac_cv_prog_OTOOL+:} false; then :
7352 $as_echo_n "(cached
) " >&6
7354 if test -n "$OTOOL"; then
7355 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7374 OTOOL=$ac_cv_prog_OTOOL
7375 if test -n "$OTOOL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7377 $as_echo "$OTOOL" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7380 $as_echo "no
" >&6; }
7385 if test -z "$ac_cv_prog_OTOOL"; then
7387 # Extract the first word of "otool
", so it can be a program name with args.
7388 set dummy otool; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7390 $as_echo_n "checking
for $ac_word...
" >&6; }
7391 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7392 $as_echo_n "(cached
) " >&6
7394 if test -n "$ac_ct_OTOOL"; then
7395 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_OTOOL="otool
"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7415 if test -n "$ac_ct_OTOOL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7417 $as_echo "$ac_ct_OTOOL" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7420 $as_echo "no
" >&6; }
7423 if test "x
$ac_ct_OTOOL" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7429 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7430 ac_tool_warned=yes ;;
7435 OTOOL="$ac_cv_prog_OTOOL"
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7442 $as_echo_n "checking
for $ac_word...
" >&6; }
7443 if ${ac_cv_prog_OTOOL64+:} false; then :
7444 $as_echo_n "(cached
) " >&6
7446 if test -n "$OTOOL64"; then
7447 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7466 OTOOL64=$ac_cv_prog_OTOOL64
7467 if test -n "$OTOOL64"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7469 $as_echo "$OTOOL64" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7472 $as_echo "no
" >&6; }
7477 if test -z "$ac_cv_prog_OTOOL64"; then
7478 ac_ct_OTOOL64=$OTOOL64
7479 # Extract the first word of "otool64
", so it can be a program name with args.
7480 set dummy otool64; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7482 $as_echo_n "checking
for $ac_word...
" >&6; }
7483 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7484 $as_echo_n "(cached
) " >&6
7486 if test -n "$ac_ct_OTOOL64"; then
7487 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7506 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7507 if test -n "$ac_ct_OTOOL64"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7509 $as_echo "$ac_ct_OTOOL64" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7512 $as_echo "no
" >&6; }
7515 if test "x
$ac_ct_OTOOL64" = x; then
7518 case $cross_compiling:$ac_tool_warned in
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7521 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7522 ac_tool_warned=yes ;;
7524 OTOOL64=$ac_ct_OTOOL64
7527 OTOOL64="$ac_cv_prog_OTOOL64"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7557 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7558 if ${lt_cv_apple_cc_single_mod+:} false; then :
7559 $as_echo_n "(cached
) " >&6
7561 lt_cv_apple_cc_single_mod=no
7562 if test -z "$LT_MULTI_MODULE"; then
7563 # By default we will add the -single_module flag. You can override
7564 # by either setting the environment variable LT_MULTI_MODULE
7565 # non-empty at configure time, or by adding -multi_module to the
7567 rm -rf libconftest.dylib*
7568 echo "int foo
(void
){return 1;}" > conftest.c
7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570 -dynamiclib -Wl,-single_module conftest.c
" >&5
7571 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7572 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7574 # If there is a non-empty error log, and "single_module
"
7575 # appears in it, assume the flag caused a linker warning
7576 if test -s conftest.err && $GREP single_module conftest.err; then
7577 cat conftest.err >&5
7578 # Otherwise, if the output was created with a 0 exit code from
7579 # the compiler, it worked.
7580 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7581 lt_cv_apple_cc_single_mod=yes
7583 cat conftest.err >&5
7585 rm -rf libconftest.dylib*
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7593 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7595 $as_echo_n "(cached
) " >&6
7597 lt_cv_ld_exported_symbols_list=no
7598 save_LDFLAGS=$LDFLAGS
7599 echo "_main
" > conftest.sym
7600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 lt_cv_ld_exported_symbols_list=yes
7615 lt_cv_ld_exported_symbols_list=no
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LDFLAGS=$save_LDFLAGS
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7623 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7626 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7627 if ${lt_cv_ld_force_load+:} false; then :
7628 $as_echo_n "(cached
) " >&6
7630 lt_cv_ld_force_load=no
7631 cat > conftest.c << _LT_EOF
7632 int forced_loaded() { return 2;}
7634 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7635 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7636 echo "$AR cru libconftest.a conftest.o
" >&5
7637 $AR cru libconftest.a conftest.o 2>&5
7638 echo "$RANLIB libconftest.a
" >&5
7639 $RANLIB libconftest.a 2>&5
7640 cat > conftest.c << _LT_EOF
7641 int main() { return 0;}
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7646 if test -s conftest.err && $GREP force_load conftest.err; then
7647 cat conftest.err >&5
7648 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7649 lt_cv_ld_force_load=yes
7651 cat conftest.err >&5
7653 rm -f conftest.err libconftest.a conftest conftest.c
7654 rm -rf conftest.dSYM
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7658 $as_echo "$lt_cv_ld_force_load" >&6; }
7660 rhapsody* | darwin1.[012])
7661 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7663 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7664 darwin*) # darwin 5.x on
7665 # if running on 10.5 or later, the deployment target defaults
7666 # to the OS version, if on x86, and 10.4, the deployment
7667 # target defaults to 10.4. Don't you love it?
7668 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7669 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7670 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7672 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7674 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7678 if test yes = "$lt_cv_apple_cc_single_mod"; then
7679 _lt_dar_single_mod='$single_module'
7681 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7682 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7684 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7686 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7687 _lt_dsymutil='~$DSYMUTIL $lib || :'
7694 # func_munge_path_list VARIABLE PATH
7695 # -----------------------------------
7696 # VARIABLE is name of variable containing _space_ separated list of
7697 # directories to be munged by the contents of PATH, which is string
7700 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7702 # string "DIR
[ DIR
]" will be appended to VARIABLE
7703 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7704 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7705 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7707 # VARIABLE will be replaced by "DIR
[ DIR
]"
7708 func_munge_path_list ()
7714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7717 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7720 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7721 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7724 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7735 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7736 # On Suns, sometimes $CPP names a directory.
7737 if test -n "$CPP" && test -d "$CPP"; then
7740 if test -z "$CPP"; then
7741 if ${ac_cv_prog_CPP+:} false; then :
7742 $as_echo_n "(cached
) " >&6
7744 # Double quotes because CPP needs to be expanded
7745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7748 for ac_c_preproc_warn_flag in '' yes
7750 # Use a header file that comes with gcc, so configuring glibc
7751 # with a fresh cross-compiler works.
7752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753 # <limits.h> exists even on freestanding compilers.
7754 # On the NeXT, cc -E runs the code through the compiler's parser,
7755 # not just through cpp. "Syntax error
" is here to catch this case.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 # include <limits.h>
7761 # include <assert.h>
7765 if ac_fn_c_try_cpp "$LINENO"; then :
7768 # Broken: fails on valid input.
7771 rm -f conftest.err conftest.i conftest.$ac_ext
7773 # OK, works on sane cases. Now check whether nonexistent headers
7774 # can be detected and how.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #include <ac_nonexistent.h>
7779 if ac_fn_c_try_cpp "$LINENO"; then :
7780 # Broken: success on invalid input.
7783 # Passes both tests.
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7791 rm -f conftest.i conftest.err conftest.$ac_ext
7792 if $ac_preproc_ok; then :
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7805 $as_echo "$CPP" >&6; }
7807 for ac_c_preproc_warn_flag in '' yes
7809 # Use a header file that comes with gcc, so configuring glibc
7810 # with a fresh cross-compiler works.
7811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812 # <limits.h> exists even on freestanding compilers.
7813 # On the NeXT, cc -E runs the code through the compiler's parser,
7814 # not just through cpp. "Syntax error
" is here to catch this case.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7818 # include <limits.h>
7820 # include <assert.h>
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7827 # Broken: fails on valid input.
7830 rm -f conftest.err conftest.i conftest.$ac_ext
7832 # OK, works on sane cases. Now check whether nonexistent headers
7833 # can be detected and how.
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <ac_nonexistent.h>
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7839 # Broken: success on invalid input.
7842 # Passes both tests.
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7850 rm -f conftest.i conftest.err conftest.$ac_ext
7851 if $ac_preproc_ok; then :
7854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7857 See \`config.log' for more details
" "$LINENO" 5; }
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7868 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7869 if ${ac_cv_header_stdc+:} false; then :
7870 $as_echo_n "(cached
) " >&6
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 ac_cv_header_stdc=yes
7890 ac_cv_header_stdc=no
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 if test $ac_cv_header_stdc = yes; then
7895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7901 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7902 $EGREP "memchr
" >/dev/null 2>&1; then :
7905 ac_cv_header_stdc=no
7911 if test $ac_cv_header_stdc = yes; then
7912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7918 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7919 $EGREP "free
" >/dev/null 2>&1; then :
7922 ac_cv_header_stdc=no
7928 if test $ac_cv_header_stdc = yes; then
7929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7930 if test "$cross_compiling" = yes; then :
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7937 #if ((' ' & 0x0FF) == 0x020)
7938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7941 # define ISLOWER(c) \
7942 (('a' <= (c) && (c) <= 'i') \
7943 || ('j' <= (c) && (c) <= 'r') \
7944 || ('s' <= (c) && (c) <= 'z'))
7945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953 for (i = 0; i < 256; i++)
7954 if (XOR (islower (i), ISLOWER (i))
7955 || toupper (i) != TOUPPER (i))
7960 if ac_fn_c_try_run "$LINENO"; then :
7963 ac_cv_header_stdc=no
7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7966 conftest.$ac_objext conftest.beam conftest.$ac_ext
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7972 $as_echo "$ac_cv_header_stdc" >&6; }
7973 if test $ac_cv_header_stdc = yes; then
7975 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7980 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7981 inttypes.h stdint.h unistd.h
7983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7986 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7987 cat >>confdefs.h
<<_ACEOF
7988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996 for ac_header
in dlfcn.h
7998 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8000 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8001 cat >>confdefs.h
<<_ACEOF
8002 #define HAVE_DLFCN_H 1
8023 # Check whether --enable-shared was given.
8024 if test "${enable_shared+set}" = set; then :
8025 enableval
=$enable_shared; p
=${PACKAGE-default}
8027 yes) enable_shared
=yes ;;
8028 no
) enable_shared
=no
;;
8031 # Look at the argument we got. We use all the common list separators.
8032 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8033 for pkg
in $enableval; do
8035 if test "X$pkg" = "X$p"; then
8054 # Check whether --enable-static was given.
8055 if test "${enable_static+set}" = set; then :
8056 enableval
=$enable_static; p
=${PACKAGE-default}
8058 yes) enable_static
=yes ;;
8059 no
) enable_static
=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
8086 # Check whether --with-pic was given.
8087 if test "${with_pic+set}" = set; then :
8088 withval
=$with_pic; lt_p
=${PACKAGE-default}
8090 yes|no
) pic_mode
=$withval ;;
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 lt_pkg
in $withval; do
8097 if test "X$lt_pkg" = "X$lt_p"; then
8115 # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8119 yes) enable_fast_install
=yes ;;
8120 no
) enable_fast_install
=no
;;
8122 enable_fast_install
=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8125 for pkg
in $enableval; do
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install
=yes
8135 enable_fast_install
=yes
8145 shared_archive_member_spec
=
8146 case $host,$enable_shared in
8147 power
*-*-aix[5-9]*,yes)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8149 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8151 # Check whether --with-aix-soname was given.
8152 if test "${with_aix_soname+set}" = set; then :
8153 withval
=$with_aix_soname; case $withval in
8157 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8160 lt_cv_with_aix_soname
=$with_aix_soname
8162 if ${lt_cv_with_aix_soname+:} false
; then :
8163 $as_echo_n "(cached) " >&6
8165 lt_cv_with_aix_soname
=aix
8168 with_aix_soname
=$lt_cv_with_aix_soname
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8172 $as_echo "$with_aix_soname" >&6; }
8173 if test aix
!= "$with_aix_soname"; then
8174 # For the AIX way of multilib, we name the shared archive member
8175 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8176 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8177 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8178 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8179 if test 64 = "${OBJECT_MODE-32}"; then
8180 shared_archive_member_spec
=shr_64
8182 shared_archive_member_spec
=shr
8200 # This can be used to rebuild libtool when needed
8201 LIBTOOL_DEPS
=$ltmain
8203 # Always use our own libtool.
8204 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8235 test -z "$LN_S" && LN_S
="ln -s"
8250 if test -n "${ZSH_VERSION+set}"; then
8251 setopt NO_GLOB_SUBST
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8255 $as_echo_n "checking for objdir... " >&6; }
8256 if ${lt_cv_objdir+:} false
; then :
8257 $as_echo_n "(cached) " >&6
8259 rm -f .libs
2>/dev
/null
8260 mkdir .libs
2>/dev
/null
8261 if test -d .libs
; then
8264 # MS-DOS does not allow filenames that begin with a dot.
8267 rmdir .libs
2>/dev
/null
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8270 $as_echo "$lt_cv_objdir" >&6; }
8271 objdir
=$lt_cv_objdir
8277 cat >>confdefs.h
<<_ACEOF
8278 #define LT_OBJDIR "$lt_cv_objdir/"
8286 # AIX sometimes has problems with the GCC collect2 program. For some
8287 # reason, if we set the COLLECT_NAMES environment variable, the problems
8288 # vanish in a puff of smoke.
8289 if test set != "${COLLECT_NAMES+set}"; then
8291 export COLLECT_NAMES
8298 can_build_shared
=yes
8300 # All known linkers require a '.a' archive for static linking (except MSVC,
8301 # which needs '.lib').
8304 with_gnu_ld
=$lt_cv_prog_gnu_ld
8309 # Set sane defaults for various variables
8310 test -z "$CC" && CC
=cc
8311 test -z "$LTCC" && LTCC
=$CC
8312 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8313 test -z "$LD" && LD
=ld
8314 test -z "$ac_objext" && ac_objext
=o
8316 func_cc_basename
$compiler
8317 cc_basename
=$func_cc_basename_result
8320 # Only perform the check for file, if the check method requires it
8321 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8322 case $deplibs_check_method in
8324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8326 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8327 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8328 $as_echo_n "(cached) " >&6
8332 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8335 lt_save_MAGIC_CMD
=$MAGIC_CMD
8336 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8337 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8338 for ac_dir
in $ac_dummy; do
8340 test -z "$ac_dir" && ac_dir
=.
8341 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8342 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8343 if test -n "$file_magic_test_file"; then
8344 case $deplibs_check_method in
8346 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8348 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8349 $EGREP "$file_magic_regex" > /dev
/null
; then
8354 *** Warning: the command libtool uses to detect shared libraries,
8355 *** $file_magic_cmd, produces output that libtool cannot recognize.
8356 *** The result is that libtool may fail to recognize shared libraries
8357 *** as such. This will affect the creation of libtool libraries that
8358 *** depend on shared libraries, but programs linked with such libtool
8359 *** libraries will work regardless of this problem. Nevertheless, you
8360 *** may want to report the problem to your system manager and/or to
8361 *** bug-libtool@gnu.org
8371 MAGIC_CMD
=$lt_save_MAGIC_CMD
8376 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8377 if test -n "$MAGIC_CMD"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379 $as_echo "$MAGIC_CMD" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8389 if test -z "$lt_cv_path_MAGIC_CMD"; then
8390 if test -n "$ac_tool_prefix"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8392 $as_echo_n "checking for file... " >&6; }
8393 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8394 $as_echo_n "(cached) " >&6
8398 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8401 lt_save_MAGIC_CMD
=$MAGIC_CMD
8402 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8403 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8404 for ac_dir
in $ac_dummy; do
8406 test -z "$ac_dir" && ac_dir
=.
8407 if test -f "$ac_dir/file"; then
8408 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8409 if test -n "$file_magic_test_file"; then
8410 case $deplibs_check_method in
8412 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8414 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8415 $EGREP "$file_magic_regex" > /dev
/null
; then
8420 *** Warning: the command libtool uses to detect shared libraries,
8421 *** $file_magic_cmd, produces output that libtool cannot recognize.
8422 *** The result is that libtool may fail to recognize shared libraries
8423 *** as such. This will affect the creation of libtool libraries that
8424 *** depend on shared libraries, but programs linked with such libtool
8425 *** libraries will work regardless of this problem. Nevertheless, you
8426 *** may want to report the problem to your system manager and/or to
8427 *** bug-libtool@gnu.org
8437 MAGIC_CMD
=$lt_save_MAGIC_CMD
8442 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8443 if test -n "$MAGIC_CMD"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8445 $as_echo "$MAGIC_CMD" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8461 # Use C for the default configuration in the libtool script
8465 ac_cpp
='$CPP $CPPFLAGS'
8466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8471 # Source file extension for C test sources.
8474 # Object file extension for compiled C test sources.
8478 # Code to be used in simple compile tests
8479 lt_simple_compile_test_code
="int some_variable = 0;"
8481 # Code to be used in simple link tests
8482 lt_simple_link_test_code
='int main(){return(0);}'
8490 # If no C compiler was specified, use CC.
8493 # If no C compiler flags were specified, use CFLAGS.
8494 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8496 # Allow CC to be a program name with arguments.
8499 # Save the default compiler, since it gets overwritten when the other
8500 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8501 compiler_DEFAULT
=$CC
8503 # save warnings/boilerplate of simple test code
8504 ac_outfile
=conftest.
$ac_objext
8505 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8506 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8507 _lt_compiler_boilerplate
=`cat conftest.err`
8510 ac_outfile
=conftest.
$ac_objext
8511 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8512 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_linker_boilerplate
=`cat conftest.err`
8518 ## There is no encapsulation within the following macros, do not change
8519 ## the running order or otherwise move them around unless you know exactly
8520 ## what you are doing...
8521 if test -n "$compiler"; then
8523 lt_prog_compiler_no_builtin_flag
=
8525 if test yes = "$GCC"; then
8526 case $cc_basename in
8528 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8530 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8534 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8535 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8536 $as_echo_n "(cached) " >&6
8538 lt_cv_prog_compiler_rtti_exceptions
=no
8539 ac_outfile
=conftest.
$ac_objext
8540 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8541 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8542 # Insert the option either (1) after the last *FLAGS variable, or
8543 # (2) before a word containing "conftest.", or (3) at the end.
8544 # Note that $ac_compile itself does not contain backslashes and begins
8545 # with a dollar sign (not a hyphen), so the echo should work correctly.
8546 # The option is referenced via a variable to avoid confusing sed.
8547 lt_compile
=`echo "$ac_compile" | $SED \
8548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8550 -e 's:$: $lt_compiler_flag:'`
8551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8552 (eval "$lt_compile" 2>conftest.err
)
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 if (exit $ac_status) && test -s "$ac_outfile"; then
8557 # The compiler can only warn and ignore the option if not recognized
8558 # So say no if there are warnings other than the usual output.
8559 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8561 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8562 lt_cv_prog_compiler_rtti_exceptions
=yes
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8569 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8571 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8572 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8584 lt_prog_compiler_wl
=
8585 lt_prog_compiler_pic
=
8586 lt_prog_compiler_static
=
8589 if test yes = "$GCC"; then
8590 lt_prog_compiler_wl
='-Wl,'
8591 lt_prog_compiler_static
='-static'
8595 # All AIX code is PIC.
8596 if test ia64
= "$host_cpu"; then
8597 # AIX 5 now supports IA64 processor
8598 lt_prog_compiler_static
='-Bstatic'
8600 lt_prog_compiler_pic
='-fPIC'
8606 # see comment about AmigaOS4 .so support
8607 lt_prog_compiler_pic
='-fPIC'
8610 # FIXME: we need at least 68020 code to build shared libraries, but
8611 # adding the '-m68020' flag to GCC prevents building anything better,
8613 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8618 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8619 # PIC is the default for these OSes.
8622 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8623 # This hack is so that the source file can tell whether it is being
8624 # built for inclusion in a dll (and should export symbols for example).
8625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8626 # (--disable-auto-import) libraries
8627 lt_prog_compiler_pic
='-DDLL_EXPORT'
8630 lt_prog_compiler_static
='$wl-static'
8635 darwin
* | rhapsody
*)
8636 # PIC is the default on this platform
8637 # Common symbols not allowed in MH_DYLIB files
8638 lt_prog_compiler_pic
='-fno-common'
8642 # PIC is the default for Haiku.
8643 # The "-static" flag exists, but is broken.
8644 lt_prog_compiler_static
=
8648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8650 # sets the default TLS model and affects inlining.
8656 lt_prog_compiler_pic
='-fPIC'
8662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663 # Instead, we relocate shared libraries at runtime.
8667 # Just because we use GCC doesn't mean we suddenly get shared libraries
8668 # on systems that don't support them.
8669 lt_prog_compiler_can_build_shared
=no
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8676 lt_prog_compiler_pic
='-fPIC -shared'
8680 if test -d /usr
/nec
; then
8681 lt_prog_compiler_pic
=-Kconform_pic
8686 lt_prog_compiler_pic
='-fPIC'
8690 case $cc_basename in
8691 nvcc
*) # Cuda Compiler Driver 2.2
8692 lt_prog_compiler_wl
='-Xlinker '
8693 if test -n "$lt_prog_compiler_pic"; then
8694 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8699 # PORTME Check for flag to pass linker flags through the system compiler.
8702 lt_prog_compiler_wl
='-Wl,'
8703 if test ia64
= "$host_cpu"; then
8704 # AIX 5 now supports IA64 processor
8705 lt_prog_compiler_static
='-Bstatic'
8707 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8711 darwin
* | rhapsody
*)
8712 # PIC is the default on this platform
8713 # Common symbols not allowed in MH_DYLIB files
8714 lt_prog_compiler_pic
='-fno-common'
8715 case $cc_basename in
8717 # NAG Fortran compiler
8718 lt_prog_compiler_wl
='-Wl,-Wl,,'
8719 lt_prog_compiler_pic
='-PIC'
8720 lt_prog_compiler_static
='-Bstatic'
8725 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8726 # This hack is so that the source file can tell whether it is being
8727 # built for inclusion in a dll (and should export symbols for example).
8728 lt_prog_compiler_pic
='-DDLL_EXPORT'
8731 lt_prog_compiler_static
='$wl-static'
8736 hpux9
* | hpux10
* | hpux11
*)
8737 lt_prog_compiler_wl
='-Wl,'
8738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8745 lt_prog_compiler_pic
='+Z'
8748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8749 lt_prog_compiler_static
='$wl-a ${wl}archive'
8752 irix5
* | irix6
* | nonstopux
*)
8753 lt_prog_compiler_wl
='-Wl,'
8754 # PIC (with -KPIC) is the default.
8755 lt_prog_compiler_static
='-non_shared'
8758 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8759 case $cc_basename in
8760 # old Intel for x86_64, which still supported -KPIC.
8762 lt_prog_compiler_wl
='-Wl,'
8763 lt_prog_compiler_pic
='-KPIC'
8764 lt_prog_compiler_static
='-static'
8766 # icc used to be incompatible with GCC.
8767 # ICC 10 doesn't accept -KPIC any more.
8769 lt_prog_compiler_wl
='-Wl,'
8770 lt_prog_compiler_pic
='-fPIC'
8771 lt_prog_compiler_static
='-static'
8773 # Lahey Fortran 8.1.
8775 lt_prog_compiler_wl
='-Wl,'
8776 lt_prog_compiler_pic
='--shared'
8777 lt_prog_compiler_static
='--static'
8780 # NAG Fortran compiler
8781 lt_prog_compiler_wl
='-Wl,-Wl,,'
8782 lt_prog_compiler_pic
='-PIC'
8783 lt_prog_compiler_static
='-Bstatic'
8786 # Fabrice Bellard et al's Tiny C Compiler
8787 lt_prog_compiler_wl
='-Wl,'
8788 lt_prog_compiler_pic
='-fPIC'
8789 lt_prog_compiler_static
='-static'
8791 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8792 # Portland Group compilers (*not* the Pentium gcc compiler,
8793 # which looks to be a dead project)
8794 lt_prog_compiler_wl
='-Wl,'
8795 lt_prog_compiler_pic
='-fpic'
8796 lt_prog_compiler_static
='-Bstatic'
8799 lt_prog_compiler_wl
='-Wl,'
8800 # All Alpha code is PIC.
8801 lt_prog_compiler_static
='-non_shared'
8803 xl
* | bgxl
* | bgf
* | mpixl
*)
8804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8805 lt_prog_compiler_wl
='-Wl,'
8806 lt_prog_compiler_pic
='-qpic'
8807 lt_prog_compiler_static
='-qstaticlink'
8810 case `$CC -V 2>&1 | sed 5q` in
8811 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8812 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8813 lt_prog_compiler_pic
='-KPIC'
8814 lt_prog_compiler_static
='-Bstatic'
8815 lt_prog_compiler_wl
=''
8817 *Sun\ F
* |
*Sun
*Fortran
*)
8818 lt_prog_compiler_pic
='-KPIC'
8819 lt_prog_compiler_static
='-Bstatic'
8820 lt_prog_compiler_wl
='-Qoption ld '
8824 lt_prog_compiler_pic
='-KPIC'
8825 lt_prog_compiler_static
='-Bstatic'
8826 lt_prog_compiler_wl
='-Wl,'
8828 *Intel
*\
[CF
]*Compiler
*)
8829 lt_prog_compiler_wl
='-Wl,'
8830 lt_prog_compiler_pic
='-fPIC'
8831 lt_prog_compiler_static
='-static'
8834 lt_prog_compiler_wl
='-Wl,'
8835 lt_prog_compiler_pic
='-fpic'
8836 lt_prog_compiler_static
='-Bstatic'
8844 lt_prog_compiler_pic
='-KPIC'
8845 lt_prog_compiler_static
='-Bstatic'
8849 # QNX uses GNU C++, but need to define -shared option too, otherwise
8851 lt_prog_compiler_pic
='-fPIC -shared'
8854 osf3
* | osf4
* | osf5
*)
8855 lt_prog_compiler_wl
='-Wl,'
8856 # All OSF/1 code is PIC.
8857 lt_prog_compiler_static
='-non_shared'
8861 lt_prog_compiler_static
='-non_shared'
8865 lt_prog_compiler_pic
='-KPIC'
8866 lt_prog_compiler_static
='-Bstatic'
8867 case $cc_basename in
8868 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8869 lt_prog_compiler_wl
='-Qoption ld ';;
8871 lt_prog_compiler_wl
='-Wl,';;
8876 lt_prog_compiler_wl
='-Qoption ld '
8877 lt_prog_compiler_pic
='-PIC'
8878 lt_prog_compiler_static
='-Bstatic'
8881 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8882 lt_prog_compiler_wl
='-Wl,'
8883 lt_prog_compiler_pic
='-KPIC'
8884 lt_prog_compiler_static
='-Bstatic'
8888 if test -d /usr
/nec
; then
8889 lt_prog_compiler_pic
='-Kconform_pic'
8890 lt_prog_compiler_static
='-Bstatic'
8894 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8895 lt_prog_compiler_wl
='-Wl,'
8896 lt_prog_compiler_pic
='-KPIC'
8897 lt_prog_compiler_static
='-Bstatic'
8901 lt_prog_compiler_wl
='-Wl,'
8902 lt_prog_compiler_can_build_shared
=no
8906 lt_prog_compiler_pic
='-pic'
8907 lt_prog_compiler_static
='-Bstatic'
8911 lt_prog_compiler_can_build_shared
=no
8917 # For platforms that do not support PIC, -DPIC is meaningless:
8919 lt_prog_compiler_pic
=
8922 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8928 if ${lt_cv_prog_compiler_pic+:} false
; then :
8929 $as_echo_n "(cached) " >&6
8931 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8935 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8938 # Check to make sure the PIC flag actually works.
8940 if test -n "$lt_prog_compiler_pic"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8942 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8943 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8944 $as_echo_n "(cached) " >&6
8946 lt_cv_prog_compiler_pic_works
=no
8947 ac_outfile
=conftest.
$ac_objext
8948 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8949 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8950 # Insert the option either (1) after the last *FLAGS variable, or
8951 # (2) before a word containing "conftest.", or (3) at the end.
8952 # Note that $ac_compile itself does not contain backslashes and begins
8953 # with a dollar sign (not a hyphen), so the echo should work correctly.
8954 # The option is referenced via a variable to avoid confusing sed.
8955 lt_compile
=`echo "$ac_compile" | $SED \
8956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958 -e 's:$: $lt_compiler_flag:'`
8959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960 (eval "$lt_compile" 2>conftest.err
)
8962 cat conftest.err
>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 if (exit $ac_status) && test -s "$ac_outfile"; then
8965 # The compiler can only warn and ignore the option if not recognized
8966 # So say no if there are warnings other than the usual output.
8967 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8968 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8969 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8970 lt_cv_prog_compiler_pic_works
=yes
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8977 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8979 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8980 case $lt_prog_compiler_pic in
8982 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8985 lt_prog_compiler_pic
=
8986 lt_prog_compiler_can_build_shared
=no
9002 # Check to make sure the static flag actually works.
9004 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9006 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9007 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9008 $as_echo_n "(cached) " >&6
9010 lt_cv_prog_compiler_static_works
=no
9011 save_LDFLAGS
=$LDFLAGS
9012 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9013 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9014 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9015 # The linker can only warn and ignore the option if not recognized
9016 # So say no if there are warnings
9017 if test -s conftest.err
; then
9018 # Append any errors to the config.log.
9019 cat conftest.err
1>&5
9020 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9021 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9022 if diff conftest.exp conftest.er2
>/dev
/null
; then
9023 lt_cv_prog_compiler_static_works
=yes
9026 lt_cv_prog_compiler_static_works
=yes
9030 LDFLAGS
=$save_LDFLAGS
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9034 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9036 if test yes = "$lt_cv_prog_compiler_static_works"; then
9039 lt_prog_compiler_static
=
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9050 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9051 $as_echo_n "(cached) " >&6
9053 lt_cv_prog_compiler_c_o
=no
9054 $RM -r conftest
2>/dev
/null
9058 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9060 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 lt_compile
=`echo "$ac_compile" | $SED \
9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068 -e 's:$: $lt_compiler_flag:'`
9069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9070 (eval "$lt_compile" 2>out
/conftest.err
)
9072 cat out
/conftest.err
>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9079 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9080 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9081 lt_cv_prog_compiler_c_o
=yes
9086 # SGI C++ compiler will create directory out/ii_files/ for
9087 # template instantiation
9088 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9089 $RM out
/* && rmdir out
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9096 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9105 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9106 $as_echo_n "(cached) " >&6
9108 lt_cv_prog_compiler_c_o
=no
9109 $RM -r conftest
2>/dev
/null
9113 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9115 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9116 # Insert the option either (1) after the last *FLAGS variable, or
9117 # (2) before a word containing "conftest.", or (3) at the end.
9118 # Note that $ac_compile itself does not contain backslashes and begins
9119 # with a dollar sign (not a hyphen), so the echo should work correctly.
9120 lt_compile
=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>out
/conftest.err
)
9127 cat out
/conftest.err
>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9131 # The compiler can only warn and ignore the option if not recognized
9132 # So say no if there are warnings
9133 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9134 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9135 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9136 lt_cv_prog_compiler_c_o
=yes
9141 # SGI C++ compiler will create directory out/ii_files/ for
9142 # template instantiation
9143 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9144 $RM out
/* && rmdir out
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9151 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9156 hard_links
=nottested
9157 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9158 # do not overwrite the value of need_locks provided by the user
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9160 $as_echo_n "checking if we can lock with hard links... " >&6; }
9163 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9165 ln conftest.a conftest.b
2>&5 || hard_links
=no
9166 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9168 $as_echo "$hard_links" >&6; }
9169 if test no
= "$hard_links"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9171 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9187 allow_undefined_flag
=
9188 always_export_symbols
=no
9190 archive_expsym_cmds
=
9191 compiler_needs_object
=no
9192 enable_shared_with_static_runtimes
=no
9193 export_dynamic_flag_spec
=
9194 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9195 hardcode_automatic
=no
9197 hardcode_direct_absolute
=no
9198 hardcode_libdir_flag_spec
=
9199 hardcode_libdir_separator
=
9201 hardcode_shlibpath_var
=unsupported
9203 link_all_deplibs
=unknown
9206 old_archive_from_new_cmds
=
9207 old_archive_from_expsyms_cmds
=
9208 thread_safe_flag_spec
=
9209 whole_archive_flag_spec
=
9210 # include_expsyms should be a list of space-separated symbols to be *always*
9211 # included in the symbol list
9213 # exclude_expsyms can be an extended regexp of symbols to exclude
9214 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9215 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9216 # as well as any symbol that contains 'd'.
9217 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9218 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9219 # platforms (ab)use it in PIC code, but their linkers get confused if
9220 # the symbol is explicitly referenced. Since portable code cannot
9221 # rely on this symbol name, it's probably fine to never include it in
9222 # preloaded symbol tables.
9223 # Exclude shared library initialization/finalization symbols.
9224 extract_expsyms_cmds
=
9227 cygwin
* | mingw
* | pw32
* | cegcc
*)
9228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9229 # When not using gcc, we currently assume that we are using
9230 # Microsoft Visual C++.
9231 if test yes != "$GCC"; then
9236 # we just hope/assume this is gcc and not c89 (= MSVC++)
9242 linux
* | k
*bsd
*-gnu | gnu
*)
9249 # On some targets, GNU ld is compatible enough with the native linker
9250 # that we're better off using the native interface for both.
9251 lt_use_gnu_ld_interface
=no
9252 if test yes = "$with_gnu_ld"; then
9255 # The AIX port of GNU ld has always aspired to compatibility
9256 # with the native linker. However, as the warning in the GNU ld
9257 # block says, versions before 2.19.5* couldn't really create working
9258 # shared libraries, regardless of the interface used.
9259 case `$LD -v 2>&1` in
9260 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9261 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9262 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9264 lt_use_gnu_ld_interface
=yes
9269 lt_use_gnu_ld_interface
=yes
9274 if test yes = "$lt_use_gnu_ld_interface"; then
9275 # If archive_cmds runs LD, not CC, wlarc should be empty
9278 # Set some defaults for GNU ld with shared library support. These
9279 # are reset later if shared libraries are not supported. Putting them
9280 # here allows them to be overridden if necessary.
9281 runpath_var
=LD_RUN_PATH
9282 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9283 export_dynamic_flag_spec
='$wl--export-dynamic'
9284 # ancient GNU ld didn't support --whole-archive et. al.
9285 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9286 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9288 whole_archive_flag_spec
=
9290 supports_anon_versioning
=no
9291 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9292 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9293 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9294 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9295 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9296 *\
2.11.
*) ;; # other 2.11 versions
9297 *) supports_anon_versioning
=yes ;;
9300 # See if GNU ld supports shared libraries.
9303 # On AIX/PPC, the GNU linker is very broken
9304 if test ia64
!= "$host_cpu"; then
9308 *** Warning: the GNU linker, at least up to release 2.19, is reported
9309 *** to be unable to reliably create shared libraries on AIX.
9310 *** Therefore, libtool is disabling shared libraries support. If you
9311 *** really care for shared libraries, you may want to install binutils
9312 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9313 *** You will then need to restart the configuration process.
9322 # see comment about AmigaOS4 .so support
9323 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324 archive_expsym_cmds
=''
9327 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)'
9328 hardcode_libdir_flag_spec
='-L$libdir'
9329 hardcode_minus_L
=yes
9335 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9336 allow_undefined_flag
=unsupported
9337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9338 # support --undefined. This deserves some investigation. FIXME
9339 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9345 cygwin
* | mingw
* | pw32
* | cegcc
*)
9346 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9347 # as there is no search path for DLLs.
9348 hardcode_libdir_flag_spec
='-L$libdir'
9349 export_dynamic_flag_spec
='$wl--export-all-symbols'
9350 allow_undefined_flag
=unsupported
9351 always_export_symbols
=no
9352 enable_shared_with_static_runtimes
=yes
9353 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'
9354 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9356 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9357 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358 # If the export-symbols file already is a .def file, use it as
9359 # is; otherwise, prepend EXPORTS...
9360 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9361 cp $export_symbols $output_objdir/$soname.def;
9363 echo EXPORTS > $output_objdir/$soname.def;
9364 cat $export_symbols >> $output_objdir/$soname.def;
9366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9373 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9374 link_all_deplibs
=yes
9378 hardcode_libdir_flag_spec
='-L$libdir'
9379 hardcode_minus_L
=yes
9380 allow_undefined_flag
=unsupported
9382 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9383 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9384 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9385 $ECHO EXPORTS >> $output_objdir/$libname.def~
9386 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9387 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9388 emximp -o $lib $output_objdir/$libname.def'
9389 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9392 $ECHO EXPORTS >> $output_objdir/$libname.def~
9394 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9395 prefix_cmds="$prefix_cmds -e 1d";
9397 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9398 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9400 emximp -o $lib $output_objdir/$libname.def'
9401 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9402 enable_shared_with_static_runtimes
=yes
9407 hardcode_shlibpath_var
=no
9408 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9409 export_dynamic_flag_spec
='$wl-E'
9410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9411 # Instead, shared libraries are loaded at an image base (0x10000000 by
9412 # default) and relocated if they conflict, which is a slow very memory
9413 # consuming and fragmenting process. To avoid this, we pick a random,
9414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9416 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9417 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'
9420 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9422 if test linux-dietlibc
= "$host_os"; then
9423 case $cc_basename in
9424 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9427 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9428 && test no
= "$tmp_diet"
9430 tmp_addflag
=' $pic_flag'
9431 tmp_sharedflag
='-shared'
9432 case $cc_basename,$host_cpu in
9433 pgcc
*) # Portland Group C compiler
9434 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'
9435 tmp_addflag
=' $pic_flag'
9437 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9438 # Portland Group f77 and f90 compilers
9439 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'
9440 tmp_addflag
=' $pic_flag -Mnomain' ;;
9441 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9442 tmp_addflag
=' -i_dynamic' ;;
9443 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9444 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9445 ifc
* | ifort
*) # Intel Fortran compiler
9446 tmp_addflag
=' -nofor_main' ;;
9447 lf95
*) # Lahey Fortran 8.1
9448 whole_archive_flag_spec
=
9449 tmp_sharedflag
='--shared' ;;
9450 nagfor
*) # NAGFOR 5.3
9451 tmp_sharedflag
='-Wl,-shared' ;;
9452 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9453 tmp_sharedflag
='-qmkshrobj'
9455 nvcc
*) # Cuda Compiler Driver 2.2
9456 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'
9457 compiler_needs_object
=yes
9460 case `$CC -V 2>&1 | sed 5q` in
9461 *Sun\ C
*) # Sun C 5.9
9462 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'
9463 compiler_needs_object
=yes
9464 tmp_sharedflag
='-G' ;;
9465 *Sun\ F
*) # Sun Fortran 8.3
9466 tmp_sharedflag
='-G' ;;
9468 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9470 if test yes = "$supports_anon_versioning"; then
9471 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9473 echo "local: *; };" >> $output_objdir/$libname.ver~
9474 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9477 case $cc_basename in
9479 export_dynamic_flag_spec
='-rdynamic'
9481 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9483 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9484 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9485 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9486 if test yes = "$supports_anon_versioning"; then
9487 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9489 echo "local: *; };" >> $output_objdir/$libname.ver~
9490 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9499 netbsd
* | netbsdelf
*-gnu)
9500 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9501 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9504 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9510 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9515 *** create shared libraries on Solaris systems. Therefore, libtool
9516 *** is disabling shared libraries support. We urge you to upgrade GNU
9517 *** binutils to release 2.9.1 or newer. Another option is to modify
9518 *** your PATH or compiler configuration so that the native linker is
9519 *** used, and then restart.
9522 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9523 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9524 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9530 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9531 case `$LD -v 2>&1` in
9532 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9537 *** reliably create shared libraries on SCO systems. Therefore, libtool
9538 *** is disabling shared libraries support. We urge you to upgrade GNU
9539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9540 *** your PATH or compiler configuration so that the native linker is
9541 *** used, and then restart.
9546 # For security reasons, it is highly recommended that you always
9547 # use absolute paths for naming shared libraries, and exclude the
9548 # DT_RUNPATH tag from executables and libraries. But doing so
9549 # requires that you compile everything twice, which is a pain.
9550 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9551 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9553 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9562 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_shlibpath_var
=no
9569 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9570 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9571 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9578 if test no
= "$ld_shlibs"; then
9580 hardcode_libdir_flag_spec
=
9581 export_dynamic_flag_spec
=
9582 whole_archive_flag_spec
=
9585 # PORTME fill in a description of your system's linker (not GNU ld)
9588 allow_undefined_flag
=unsupported
9589 always_export_symbols
=yes
9590 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'
9591 # Note: this linker hardcodes the directories in LIBPATH if there
9592 # are no directories specified by -L.
9593 hardcode_minus_L
=yes
9594 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9595 # Neither direct hardcoding nor static linking is supported with a
9597 hardcode_direct
=unsupported
9602 if test ia64
= "$host_cpu"; then
9603 # On IA64, the linker does run time linking by default, so we don't
9604 # have to do anything special.
9605 aix_use_runtimelinking
=no
9606 exp_sym_flag
='-Bexport'
9609 # If we're using GNU nm, then we don't want the "-C" option.
9610 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9611 # Without the "-l" option, or with the "-B" option, AIX nm treats
9612 # weak defined symbols like other global defined symbols, whereas
9613 # GNU nm marks them as "W".
9614 # While the 'weak' keyword is ignored in the Export File, we need
9615 # it in the Import File for the 'aix-soname' feature, so we have
9616 # to replace the "-B" option with "-P" for AIX nm.
9617 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9618 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'
9620 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'
9622 aix_use_runtimelinking
=no
9624 # Test if we are trying to use run time linking or normal
9625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626 # have runtime linking enabled, and use it for executables.
9627 # For shared libraries, we enable/disable runtime linking
9628 # depending on the kind of the shared library created -
9629 # when "with_aix_soname,aix_use_runtimelinking" is:
9630 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9631 # "aix,yes" lib.so shared, rtl:yes, for executables
9632 # lib.a static archive
9633 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9634 # lib.a(lib.so.V) shared, rtl:no, for executables
9635 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9636 # lib.a(lib.so.V) shared, rtl:no
9637 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9638 # lib.a static archive
9639 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9640 for ld_flag
in $LDFLAGS; do
9641 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9642 aix_use_runtimelinking
=yes
9646 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9647 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9648 # so we don't have lib.a shared libs to link our executables.
9649 # We have to force runtime linking in this case.
9650 aix_use_runtimelinking
=yes
9651 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9656 exp_sym_flag
='-bexport'
9657 no_entry_flag
='-bnoentry'
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668 hardcode_direct_absolute
=yes
9669 hardcode_libdir_separator
=':'
9670 link_all_deplibs
=yes
9671 file_list_spec
='$wl-f,'
9672 case $with_aix_soname,$aix_use_runtimelinking in
9673 aix
,*) ;; # traditional, no import file
9674 svr4
,* |
*,yes) # use import file
9675 # The Import File defines what to hardcode.
9677 hardcode_direct_absolute
=no
9681 if test yes = "$GCC"; then
9682 case $host_os in aix4.
[012]|aix4.
[012].
*)
9683 # We only want to do this on AIX 4.2 and lower, the check
9684 # below for broken collect2 doesn't work under 4.3+
9685 collect2name
=`$CC -print-prog-name=collect2`
9686 if test -f "$collect2name" &&
9687 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9689 # We have reworked collect2
9692 # We have old collect2
9693 hardcode_direct
=unsupported
9694 # It fails to find uninstalled libraries when the uninstalled
9695 # path is not listed in the libpath. Setting hardcode_minus_L
9696 # to unsupported forces relinking
9697 hardcode_minus_L
=yes
9698 hardcode_libdir_flag_spec
='-L$libdir'
9699 hardcode_libdir_separator
=
9703 shared_flag
='-shared'
9704 if test yes = "$aix_use_runtimelinking"; then
9705 shared_flag
="$shared_flag "'$wl-G'
9707 # Need to ensure runtime linking is disabled for the traditional
9708 # shared library, or the linker may eventually find shared libraries
9709 # /with/ Import File - we do not want to mix them.
9710 shared_flag_aix
='-shared'
9711 shared_flag_svr4
='-shared $wl-G'
9714 if test ia64
= "$host_cpu"; then
9715 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9716 # chokes on -Wl,-G. The following line is correct:
9719 if test yes = "$aix_use_runtimelinking"; then
9722 shared_flag
='$wl-bM:SRE'
9724 shared_flag_aix
='$wl-bM:SRE'
9725 shared_flag_svr4
='$wl-G'
9729 export_dynamic_flag_spec
='$wl-bexpall'
9730 # It seems that -bexpall does not export symbols beginning with
9731 # underscore (_), so it is better to generate a list of symbols to export.
9732 always_export_symbols
=yes
9733 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9734 # Warning - without using the other runtime loading flags (-brtl),
9735 # -berok will link without error, but may produce a broken library.
9736 allow_undefined_flag
='-berok'
9737 # Determine the default libpath from the value encoded in an
9739 if test set = "${lt_cv_aix_libpath+set}"; then
9740 aix_libpath
=$lt_cv_aix_libpath
9742 if ${lt_cv_aix_libpath_+:} false
; then :
9743 $as_echo_n "(cached) " >&6
9745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9756 if ac_fn_c_try_link
"$LINENO"; then :
9758 lt_aix_libpath_sed
='
9759 /Import File Strings/,/^$/ {
9761 s/^0 *\([^ ]*\) *$/\1/
9765 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766 # Check for a 64-bit object if we didn't find anything.
9767 if test -z "$lt_cv_aix_libpath_"; then
9768 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771 rm -f core conftest.err conftest.
$ac_objext \
9772 conftest
$ac_exeext conftest.
$ac_ext
9773 if test -z "$lt_cv_aix_libpath_"; then
9774 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9779 aix_libpath
=$lt_cv_aix_libpath_
9782 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9783 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
9785 if test ia64
= "$host_cpu"; then
9786 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9787 allow_undefined_flag
="-z nodefs"
9788 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"
9790 # Determine the default libpath from the value encoded in an
9792 if test set = "${lt_cv_aix_libpath+set}"; then
9793 aix_libpath
=$lt_cv_aix_libpath
9795 if ${lt_cv_aix_libpath_+:} false
; then :
9796 $as_echo_n "(cached) " >&6
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9809 if ac_fn_c_try_link
"$LINENO"; then :
9811 lt_aix_libpath_sed
='
9812 /Import File Strings/,/^$/ {
9814 s/^0 *\([^ ]*\) *$/\1/
9818 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819 # Check for a 64-bit object if we didn't find anything.
9820 if test -z "$lt_cv_aix_libpath_"; then
9821 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824 rm -f core conftest.err conftest.
$ac_objext \
9825 conftest
$ac_exeext conftest.
$ac_ext
9826 if test -z "$lt_cv_aix_libpath_"; then
9827 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9832 aix_libpath
=$lt_cv_aix_libpath_
9835 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9836 # Warning - without using the other run time loading flags,
9837 # -berok will link without error, but may produce a broken library.
9838 no_undefined_flag
=' $wl-bernotok'
9839 allow_undefined_flag
=' $wl-berok'
9840 if test yes = "$with_gnu_ld"; then
9841 # We only use this code for GNU lds that support --whole-archive.
9842 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9844 # Exported symbols can be pulled into shared objects from archives
9845 whole_archive_flag_spec
='$convenience'
9847 archive_cmds_need_lc
=yes
9848 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9849 # -brtl affects multiple linker settings, -berok does not and is overridden later
9850 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9851 if test svr4
!= "$with_aix_soname"; then
9852 # This is similar to how AIX traditionally builds its shared libraries.
9853 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'
9855 if test aix
!= "$with_aix_soname"; then
9856 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'
9858 # used by -dlpreopen to get the symbols
9859 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9861 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9869 # see comment about AmigaOS4 .so support
9870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9871 archive_expsym_cmds
=''
9874 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)'
9875 hardcode_libdir_flag_spec
='-L$libdir'
9876 hardcode_minus_L
=yes
9882 export_dynamic_flag_spec
=-rdynamic
9885 cygwin
* | mingw
* | pw32
* | cegcc
*)
9886 # When not using gcc, we currently assume that we are using
9887 # Microsoft Visual C++.
9888 # hardcode_libdir_flag_spec is actually meaningless, as there is
9889 # no search path for DLLs.
9890 case $cc_basename in
9893 hardcode_libdir_flag_spec
=' '
9894 allow_undefined_flag
=unsupported
9895 always_export_symbols
=yes
9897 # Tell ltmain to make .lib files, not .a files.
9899 # Tell ltmain to make .dll files, not .so files.
9901 # FIXME: Setting linknames here is a bad hack.
9902 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9903 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9904 cp "$export_symbols" "$output_objdir/$soname.def";
9905 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9907 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9909 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9911 # The linker will not automatically build a static lib if we build a DLL.
9912 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9913 enable_shared_with_static_runtimes
=yes
9914 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9915 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9917 old_postinstall_cmds
='chmod 644 $oldlib'
9918 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9919 lt_tool_outputfile="@TOOL_OUTPUT@"~
9920 case $lt_outputfile in
9923 lt_outputfile=$lt_outputfile.exe
9924 lt_tool_outputfile=$lt_tool_outputfile.exe
9927 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9928 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9929 $RM "$lt_outputfile.manifest";
9933 # Assume MSVC wrapper
9934 hardcode_libdir_flag_spec
=' '
9935 allow_undefined_flag
=unsupported
9936 # Tell ltmain to make .lib files, not .a files.
9938 # Tell ltmain to make .dll files, not .so files.
9940 # FIXME: Setting linknames here is a bad hack.
9941 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9942 # The linker will automatically build a .lib file if we build a DLL.
9943 old_archive_from_new_cmds
='true'
9944 # FIXME: Should let the user specify the lib program.
9945 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9946 enable_shared_with_static_runtimes
=yes
9951 darwin
* | rhapsody
*)
9954 archive_cmds_need_lc
=no
9956 hardcode_automatic
=yes
9957 hardcode_shlibpath_var
=unsupported
9958 if test yes = "$lt_cv_ld_force_load"; then
9959 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\"`'
9962 whole_archive_flag_spec
=''
9964 link_all_deplibs
=yes
9965 allow_undefined_flag
=$_lt_dar_allow_undefined
9966 case $cc_basename in
9967 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9968 *) _lt_dar_can_shared
=$GCC ;;
9970 if test yes = "$_lt_dar_can_shared"; then
9971 output_verbose_link_cmd
=func_echo_all
9972 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9973 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9974 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"
9975 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"
9984 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_libdir_flag_spec
='-L$libdir'
9986 hardcode_shlibpath_var
=no
9989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9990 # support. Future versions do this automatically, but an explicit c++rt0.o
9991 # does not break anything, and helps significantly (at the cost of a little
9994 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9995 hardcode_libdir_flag_spec
='-R$libdir'
9997 hardcode_shlibpath_var
=no
10000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10002 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct
=yes
10004 hardcode_minus_L
=yes
10005 hardcode_shlibpath_var
=no
10008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10009 freebsd
* | dragonfly
*)
10010 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011 hardcode_libdir_flag_spec
='-R$libdir'
10012 hardcode_direct
=yes
10013 hardcode_shlibpath_var
=no
10017 if test yes = "$GCC"; then
10018 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'
10020 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'
10022 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10023 hardcode_libdir_separator
=:
10024 hardcode_direct
=yes
10026 # hardcode_minus_L: Not really in the search PATH,
10027 # but as the default location of the library.
10028 hardcode_minus_L
=yes
10029 export_dynamic_flag_spec
='$wl-E'
10033 if test yes,no
= "$GCC,$with_gnu_ld"; then
10034 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10038 if test no
= "$with_gnu_ld"; then
10039 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10040 hardcode_libdir_separator
=:
10041 hardcode_direct
=yes
10042 hardcode_direct_absolute
=yes
10043 export_dynamic_flag_spec
='$wl-E'
10044 # hardcode_minus_L: Not really in the search PATH,
10045 # but as the default location of the library.
10046 hardcode_minus_L
=yes
10051 if test yes,no
= "$GCC,$with_gnu_ld"; then
10054 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073 # Older versions of the 11.00 compiler do not understand -b yet
10074 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10076 $as_echo_n "checking if $CC understands -b... " >&6; }
10077 if ${lt_cv_prog_compiler__b+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10080 lt_cv_prog_compiler__b
=no
10081 save_LDFLAGS
=$LDFLAGS
10082 LDFLAGS
="$LDFLAGS -b"
10083 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10084 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10085 # The linker can only warn and ignore the option if not recognized
10086 # So say no if there are warnings
10087 if test -s conftest.err
; then
10088 # Append any errors to the config.log.
10089 cat conftest.err
1>&5
10090 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10091 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10092 if diff conftest.exp conftest.er2
>/dev
/null
; then
10093 lt_cv_prog_compiler__b
=yes
10096 lt_cv_prog_compiler__b
=yes
10100 LDFLAGS
=$save_LDFLAGS
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10104 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10106 if test yes = "$lt_cv_prog_compiler__b"; then
10107 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10115 if test no
= "$with_gnu_ld"; then
10116 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10117 hardcode_libdir_separator
=:
10122 hardcode_shlibpath_var
=no
10125 hardcode_direct
=yes
10126 hardcode_direct_absolute
=yes
10127 export_dynamic_flag_spec
='$wl-E'
10129 # hardcode_minus_L: Not really in the search PATH,
10130 # but as the default location of the library.
10131 hardcode_minus_L
=yes
10137 irix5
* | irix6
* | nonstopux
*)
10138 if test yes = "$GCC"; then
10139 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'
10140 # Try to use the -exported_symbol ld option, if it does not
10141 # work, assume that -exports_file does not work either and
10142 # implicitly export all symbols.
10143 # This should be the same for all languages, so no per-tag cache variable.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10145 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10146 if ${lt_cv_irix_exported_symbol+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10149 save_LDFLAGS
=$LDFLAGS
10150 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 int foo (void) { return 0; }
10155 if ac_fn_c_try_link
"$LINENO"; then :
10156 lt_cv_irix_exported_symbol
=yes
10158 lt_cv_irix_exported_symbol
=no
10160 rm -f core conftest.err conftest.
$ac_objext \
10161 conftest
$ac_exeext conftest.
$ac_ext
10162 LDFLAGS
=$save_LDFLAGS
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10165 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10166 if test yes = "$lt_cv_irix_exported_symbol"; then
10167 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'
10169 link_all_deplibs
=no
10171 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'
10172 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'
10174 archive_cmds_need_lc
='no'
10175 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10176 hardcode_libdir_separator
=:
10178 link_all_deplibs
=yes
10182 case $cc_basename in
10184 # Fabrice Bellard et al's Tiny C Compiler
10186 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10191 netbsd
* | netbsdelf
*-gnu)
10192 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10193 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10195 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10197 hardcode_libdir_flag_spec
='-R$libdir'
10198 hardcode_direct
=yes
10199 hardcode_shlibpath_var
=no
10203 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct
=yes
10205 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10206 hardcode_libdir_separator
=:
10207 hardcode_shlibpath_var
=no
10213 openbsd
* | bitrig
*)
10214 if test -f /usr
/libexec
/ld.so
; then
10215 hardcode_direct
=yes
10216 hardcode_shlibpath_var
=no
10217 hardcode_direct_absolute
=yes
10218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10219 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10221 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10222 export_dynamic_flag_spec
='$wl-E'
10224 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10225 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10233 hardcode_libdir_flag_spec
='-L$libdir'
10234 hardcode_minus_L
=yes
10235 allow_undefined_flag
=unsupported
10237 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10240 $ECHO EXPORTS >> $output_objdir/$libname.def~
10241 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10243 emximp -o $lib $output_objdir/$libname.def'
10244 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10245 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10246 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10247 $ECHO EXPORTS >> $output_objdir/$libname.def~
10248 prefix_cmds="$SED"~
10249 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10250 prefix_cmds="$prefix_cmds -e 1d";
10252 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10253 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10255 emximp -o $lib $output_objdir/$libname.def'
10256 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10257 enable_shared_with_static_runtimes
=yes
10261 if test yes = "$GCC"; then
10262 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10263 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'
10265 allow_undefined_flag
=' -expect_unresolved \*'
10266 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'
10268 archive_cmds_need_lc
='no'
10269 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10270 hardcode_libdir_separator
=:
10273 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10274 if test yes = "$GCC"; then
10275 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10276 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'
10277 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10279 allow_undefined_flag
=' -expect_unresolved \*'
10280 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'
10281 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~
10282 $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'
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec
='-rpath $libdir'
10287 archive_cmds_need_lc
='no'
10288 hardcode_libdir_separator
=:
10292 no_undefined_flag
=' -z defs'
10293 if test yes = "$GCC"; then
10295 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $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'
10299 case `$CC -V 2>&1` in
10302 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10308 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10314 hardcode_libdir_flag_spec
='-R$libdir'
10315 hardcode_shlibpath_var
=no
10317 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands '-z linker_flag'. GCC discards it without '$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test yes = "$GCC"; then
10324 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10326 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10330 link_all_deplibs
=yes
10334 if test sequent
= "$host_vendor"; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_libdir_flag_spec
='-L$libdir'
10342 hardcode_direct
=yes
10343 hardcode_minus_L
=yes
10344 hardcode_shlibpath_var
=no
10348 case $host_vendor in
10350 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct
=yes # is this really true???
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds
='$CC -r -o $output$reload_objs'
10361 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10365 runpath_var
='LD_RUN_PATH'
10366 hardcode_shlibpath_var
=no
10370 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var
=no
10372 export_dynamic_flag_spec
='-Bexport'
10376 if test -d /usr
/nec
; then
10377 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var
=no
10379 runpath_var
=LD_RUN_PATH
10380 hardcode_runpath_var
=yes
10385 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10386 no_undefined_flag
='$wl-z,text'
10387 archive_cmds_need_lc
=no
10388 hardcode_shlibpath_var
=no
10389 runpath_var
='LD_RUN_PATH'
10391 if test yes = "$GCC"; then
10392 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 sysv5
* | sco3.2v5
* | sco5v6
*)
10401 # Note: We CANNOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10407 no_undefined_flag
='$wl-z,text'
10408 allow_undefined_flag
='$wl-z,nodefs'
10409 archive_cmds_need_lc
=no
10410 hardcode_shlibpath_var
=no
10411 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10412 hardcode_libdir_separator
=':'
10413 link_all_deplibs
=yes
10414 export_dynamic_flag_spec
='$wl-Bexport'
10415 runpath_var
='LD_RUN_PATH'
10417 if test yes = "$GCC"; then
10418 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec
='-L$libdir'
10429 hardcode_shlibpath_var
=no
10437 if test sni
= "$host_vendor"; then
10439 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10440 export_dynamic_flag_spec
='$wl-Blargedynsym'
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test no
= "$ld_shlibs" && can_build_shared
=no
10450 with_gnu_ld
=$with_gnu_ld
10467 # Do we need to explicitly link libc?
10469 case "x$archive_cmds_need_lc" in
10471 # Assume -lc should be added
10472 archive_cmds_need_lc
=yes
10474 if test yes,yes = "$GCC,$enable_shared"; then
10475 case $archive_cmds in
10477 # FIXME: we may have to deal with multi-command sequences.
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10489 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err
; then
10498 libobjs
=conftest.
$ac_objext
10500 wl
=$lt_prog_compiler_wl
10501 pic_flag
=$lt_prog_compiler_pic
10507 lt_save_allow_undefined_flag
=$allow_undefined_flag
10508 allow_undefined_flag
=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10515 lt_cv_archive_cmds_need_lc
=no
10517 lt_cv_archive_cmds_need_lc
=yes
10519 allow_undefined_flag
=$lt_save_allow_undefined_flag
10521 cat conftest.err
1>&5
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10689 if test yes = "$GCC"; then
10691 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10692 *) lt_awk_arg
='/^libraries:/' ;;
10695 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10696 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10698 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699 case $lt_search_path_spec in
10701 # if the path contains ";" then we assume it to be the separator
10702 # otherwise default to the standard path separator (i.e. ":") - it is
10703 # assumed that no part of a normal pathname contains ";" but that should
10704 # okay in the real world where ";" in dirpaths is itself problematic.
10705 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10708 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10711 # Ok, now we have the path, separated by spaces, we can step through it
10712 # and add multilib dir if necessary...
10713 lt_tmp_lt_search_path_spec
=
10714 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 # ...but if some path component already ends with the multilib dir we assume
10716 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10717 case "$lt_multi_os_dir; $lt_search_path_spec " in
10718 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10722 for lt_sys_path
in $lt_search_path_spec; do
10723 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10724 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10725 elif test -n "$lt_multi_os_dir"; then
10726 test -d "$lt_sys_path" && \
10727 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10730 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10731 BEGIN {RS = " "; FS = "/|\n";} {
10734 for (lt_i = NF; lt_i > 0; lt_i--) {
10735 if ($lt_i != "" && $lt_i != ".") {
10736 if ($lt_i == "..") {
10739 if (lt_count == 0) {
10740 lt_foo = "/" $lt_i lt_foo;
10747 if (lt_foo != "") { lt_freq[lt_foo]++; }
10748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10750 # AWK program above erroneously prepends '/' to C:/dos/paths
10753 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10754 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10756 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10758 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10760 library_names_spec
=
10761 libname_spec
='lib$name'
10765 postuninstall_cmds
=
10769 shlibpath_overrides_runpath
=unknown
10771 dynamic_linker
="$host_os ld.so"
10772 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10773 need_lib_prefix
=unknown
10774 hardcode_into_libs
=no
10776 # when you set need_version to no, make sure it does not cause -set_version
10777 # flags to be left without arguments
10778 need_version
=unknown
10784 version_type
=linux
# correct to gnu/linux during the next big refactor
10785 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10786 shlibpath_var
=LIBPATH
10788 # AIX 3 has no versioning support, so we append a major version to the name.
10789 soname_spec
='$libname$release$shared_ext$major'
10793 version_type
=linux
# correct to gnu/linux during the next big refactor
10796 hardcode_into_libs
=yes
10797 if test ia64
= "$host_cpu"; then
10798 # AIX 5 supports IA64
10799 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10800 shlibpath_var
=LD_LIBRARY_PATH
10802 # With GCC up to 2.95.x, collect2 would create an import file
10803 # for dependence libraries. The import file would start with
10804 # the line '#! .'. This would cause the generated library to
10805 # depend on '.', always an invalid library. This was fixed in
10806 # development snapshots of GCC prior to 3.0.
10808 aix4 | aix4.
[01] | aix4.
[01].
*)
10809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10811 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10814 can_build_shared
=no
10818 # Using Import Files as archive members, it is possible to support
10819 # filename-based versioning of shared library archives on AIX. While
10820 # this would work for both with and without runtime linking, it will
10821 # prevent static linking of such archives. So we do filename-based
10822 # shared library versioning with .so extension only, which is used
10823 # when both runtime linking and shared linking is enabled.
10824 # Unfortunately, runtime linking may impact performance, so we do
10825 # not want this to be the default eventually. Also, we use the
10826 # versioned .so libs for executables only if there is the -brtl
10827 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10828 # To allow for filename-based versioning support, we need to create
10829 # libNAME.so.V as an archive file, containing:
10830 # *) an Import File, referring to the versioned filename of the
10831 # archive as well as the shared archive member, telling the
10832 # bitwidth (32 or 64) of that shared object, and providing the
10833 # list of exported symbols of that shared object, eventually
10834 # decorated with the 'weak' keyword
10835 # *) the shared object with the F_LOADONLY flag set, to really avoid
10836 # it being seen by the linker.
10837 # At run time we better use the real file rather than another symlink,
10838 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10840 case $with_aix_soname,$aix_use_runtimelinking in
10841 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10842 # soname into executable. Probably we can add versioning support to
10843 # collect2, so additional links can be useful in future.
10844 aix
,yes) # traditional libtool
10845 dynamic_linker
='AIX unversionable lib.so'
10846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10847 # instead of lib<name>.a to let people know that these are not
10848 # typical AIX shared libraries.
10849 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10851 aix
,no
) # traditional AIX only
10852 dynamic_linker
='AIX lib.a(lib.so.V)'
10853 # We preserve .a as extension for shared libraries through AIX4.2
10854 # and later when we are not doing run time linking.
10855 library_names_spec
='$libname$release.a $libname.a'
10856 soname_spec
='$libname$release$shared_ext$major'
10858 svr4
,*) # full svr4 only
10859 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10860 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10861 # We do not specify a path in Import Files, so LIBPATH fires.
10862 shlibpath_overrides_runpath
=yes
10864 *,yes) # both, prefer svr4
10865 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10866 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10867 # unpreferred sharedlib libNAME.a needs extra handling
10868 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"'
10869 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"'
10870 # We do not specify a path in Import Files, so LIBPATH fires.
10871 shlibpath_overrides_runpath
=yes
10873 *,no
) # both, prefer aix
10874 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10875 library_names_spec
='$libname$release.a $libname.a'
10876 soname_spec
='$libname$release$shared_ext$major'
10877 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10878 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)'
10879 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"'
10882 shlibpath_var
=LIBPATH
10889 # Since July 2007 AmigaOS4 officially supports .so libraries.
10890 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10891 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 library_names_spec
='$libname.ixlibrary $libname.a'
10895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10896 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'
10902 library_names_spec
='$libname$shared_ext'
10903 dynamic_linker
="$host_os ld.so"
10904 shlibpath_var
=LIBRARY_PATH
10908 version_type
=linux
# correct to gnu/linux during the next big refactor
10910 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10911 soname_spec
='$libname$release$shared_ext$major'
10912 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10913 shlibpath_var
=LD_LIBRARY_PATH
10914 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10915 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10916 # the default ld.so.conf also contains /usr/contrib/lib and
10917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10918 # libtool to hard-code these into programs
10921 cygwin
* | mingw
* | pw32
* | cegcc
*)
10922 version_type
=windows
10927 case $GCC,$cc_basename in
10930 library_names_spec
='$libname.dll.a'
10931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10932 postinstall_cmds
='base_file=`basename \$file`~
10933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10934 dldir=$destdir/`dirname \$dlpath`~
10935 test -d \$dldir || mkdir -p \$dldir~
10936 $install_prog $dir/$dlname \$dldir/$dlname~
10937 chmod a+x \$dldir/$dlname~
10938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10941 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10942 dlpath=$dir/\$dldll~
10944 shlibpath_overrides_runpath
=yes
10948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10949 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10954 # MinGW DLLs use traditional 'lib' prefix
10955 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10958 # pw32 DLLs use 'pw' prefix rather than 'lib'
10959 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10962 dynamic_linker
='Win32 ld.exe'
10967 libname_spec
='$name'
10968 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10969 library_names_spec
='$libname.dll.lib'
10973 sys_lib_search_path_spec
=
10976 for lt_path
in $LIB
10979 # Let DOS variable expansion print the short 8.3 style file name.
10980 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10981 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10984 # Convert to MSYS style.
10985 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10988 # Convert to unix form, then to dos form, then back to unix form
10989 # but this time dos style (no spaces!) so that the unix form looks
10990 # like /cygdrive/c/PROGRA~1:/cygdr...
10991 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10992 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10993 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10996 sys_lib_search_path_spec
=$LIB
10997 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10998 # It is most probably a Windows format PATH.
10999 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11001 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11003 # FIXME: find the short name or the path components, as spaces are
11004 # common. (e.g. "Program Files" -> "PROGRA~1")
11008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11009 postinstall_cmds
='base_file=`basename \$file`~
11010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11011 dldir=$destdir/`dirname \$dlpath`~
11012 test -d \$dldir || mkdir -p \$dldir~
11013 $install_prog $dir/$dlname \$dldir/$dlname'
11014 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11015 dlpath=$dir/\$dldll~
11017 shlibpath_overrides_runpath
=yes
11018 dynamic_linker
='Win32 link.exe'
11022 # Assume MSVC wrapper
11023 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11024 dynamic_linker
='Win32 ld.exe'
11027 # FIXME: first we should search . and the directory the executable is in
11031 darwin
* | rhapsody
*)
11032 dynamic_linker
="$host_os dyld"
11033 version_type
=darwin
11036 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11037 soname_spec
='$libname$release$major$shared_ext'
11038 shlibpath_overrides_runpath
=yes
11039 shlibpath_var
=DYLD_LIBRARY_PATH
11040 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11042 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11043 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11047 version_type
=linux
# correct to gnu/linux during the next big refactor
11050 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 soname_spec
='$libname$release$shared_ext$major'
11052 shlibpath_var
=LD_LIBRARY_PATH
11055 freebsd
* | dragonfly
*)
11056 # DragonFly does not have aout. When/if they implement a new
11057 # versioning mechanism, adjust this.
11058 if test -x /usr
/bin
/objformat
; then
11059 objformat
=`/usr/bin/objformat`
11062 freebsd
[23].
*) objformat
=aout
;;
11063 *) objformat
=elf
;;
11066 version_type
=freebsd-
$objformat
11067 case $version_type in
11069 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 soname_spec
='$libname$release$shared_ext$major'
11075 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11079 shlibpath_var
=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath
=yes
11084 freebsd3.
[01]* | freebsdelf3.
[01]*)
11085 shlibpath_overrides_runpath
=yes
11086 hardcode_into_libs
=yes
11088 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11089 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11090 shlibpath_overrides_runpath
=no
11091 hardcode_into_libs
=yes
11093 *) # from 4.6 on, and DragonFly
11094 shlibpath_overrides_runpath
=yes
11095 hardcode_into_libs
=yes
11101 version_type
=linux
# correct to gnu/linux during the next big refactor
11104 dynamic_linker
="$host_os runtime_loader"
11105 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 soname_spec
='$libname$release$shared_ext$major'
11107 shlibpath_var
=LIBRARY_PATH
11108 shlibpath_overrides_runpath
=no
11109 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11110 hardcode_into_libs
=yes
11113 hpux9
* | hpux10
* | hpux11
*)
11114 # Give a soname corresponding to the major version so that dld.sl refuses to
11115 # link against other versions.
11122 hardcode_into_libs
=yes
11123 dynamic_linker
="$host_os dld.so"
11124 shlibpath_var
=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11126 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127 soname_spec
='$libname$release$shared_ext$major'
11128 if test 32 = "$HPUX_IA64_MODE"; then
11129 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11130 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11132 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11133 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11138 hardcode_into_libs
=yes
11139 dynamic_linker
="$host_os dld.sl"
11140 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11141 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11142 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143 soname_spec
='$libname$release$shared_ext$major'
11144 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11145 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11149 dynamic_linker
="$host_os dld.sl"
11150 shlibpath_var
=SHLIB_PATH
11151 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11152 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec
='$libname$release$shared_ext$major'
11156 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11157 postinstall_cmds
='chmod 555 $lib'
11158 # or fails outright, so override atomically:
11159 install_override_mode
=555
11163 version_type
=linux
# correct to gnu/linux during the next big refactor
11166 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167 soname_spec
='$libname$release$shared_ext$major'
11168 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11169 shlibpath_var
=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath
=no
11171 hardcode_into_libs
=yes
11174 irix5
* | irix6
* | nonstopux
*)
11176 nonstopux
*) version_type
=nonstopux
;;
11178 if test yes = "$lt_cv_prog_gnu_ld"; then
11179 version_type
=linux
# correct to gnu/linux during the next big refactor
11186 soname_spec
='$libname$release$shared_ext$major'
11187 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11189 irix5
* | nonstopux
*)
11190 libsuff
= shlibsuff
=
11193 case $LD in # libtool.m4 will add one of these switches to LD
11194 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11195 libsuff
= shlibsuff
= libmagic
=32-bit;;
11196 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11197 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11198 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11199 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11200 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11204 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11205 shlibpath_overrides_runpath
=no
11206 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11207 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11208 hardcode_into_libs
=yes
11211 # No shared lib support for Linux oldld, aout, or coff.
11212 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11217 version_type
=none
# Android doesn't support versioned libraries.
11220 library_names_spec
='$libname$release$shared_ext'
11221 soname_spec
='$libname$release$shared_ext'
11223 shlibpath_var
=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath
=yes
11226 # This implies no fast_install, which is unacceptable.
11227 # Some rework will be needed to allow for fast_install
11228 # before this can be enabled.
11229 hardcode_into_libs
=yes
11231 dynamic_linker
='Android linker'
11232 # Don't embed -rpath directories since the linker doesn't support them.
11233 hardcode_libdir_flag_spec
='-L$libdir'
11236 # This must be glibc/ELF.
11237 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11238 version_type
=linux
# correct to gnu/linux during the next big refactor
11241 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242 soname_spec
='$libname$release$shared_ext$major'
11243 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11244 shlibpath_var
=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath
=no
11247 # Some binutils ld are patched to set DT_RUNPATH
11248 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11249 $as_echo_n "(cached) " >&6
11251 lt_cv_shlibpath_overrides_runpath
=no
11252 save_LDFLAGS
=$LDFLAGS
11253 save_libdir
=$libdir
11254 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11255 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11267 if ac_fn_c_try_link
"$LINENO"; then :
11268 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11269 lt_cv_shlibpath_overrides_runpath
=yes
11272 rm -f core conftest.err conftest.
$ac_objext \
11273 conftest
$ac_exeext conftest.
$ac_ext
11274 LDFLAGS
=$save_LDFLAGS
11275 libdir
=$save_libdir
11279 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11281 # This implies no fast_install, which is unacceptable.
11282 # Some rework will be needed to allow for fast_install
11283 # before this can be enabled.
11284 hardcode_into_libs
=yes
11286 # Ideally, we could use ldconfig to report *all* directores which are
11287 # searched for libraries, however this is still not possible. Aside from not
11288 # being certain /sbin/ldconfig is available, command
11289 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11290 # even though it is searched at run-time. Try to do the best guess by
11291 # appending ld.so.conf contents (and includes) to the search path.
11292 if test -f /etc
/ld.so.conf
; then
11293 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' ' '`
11294 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11297 # We used to test for /lib/ld.so.1 and disable shared libraries on
11298 # powerpc, because MkLinux only supported shared libraries with the
11299 # GNU dynamic linker. Since this was broken with cross compilers,
11300 # most powerpc-linux boxes support dynamic linking these days and
11301 # people can always --disable-shared, the test was removed, and we
11302 # assume the GNU/Linux dynamic linker is in use.
11303 dynamic_linker
='GNU/Linux ld.so'
11310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11311 soname_spec
='${libname}${release}${shared_ext}$major'
11312 shlibpath_var
=LD_LIBRARY_PATH
11313 shlibpath_overrides_runpath
=no
11314 hardcode_into_libs
=yes
11315 dynamic_linker
='NetBSD ld.elf_so'
11322 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11323 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11325 dynamic_linker
='NetBSD (a.out) ld.so'
11327 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328 soname_spec
='$libname$release$shared_ext$major'
11329 dynamic_linker
='NetBSD ld.elf_so'
11331 shlibpath_var
=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath
=yes
11333 hardcode_into_libs
=yes
11337 version_type
=linux
# correct to gnu/linux during the next big refactor
11338 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339 shlibpath_var
=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath
=yes
11347 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348 soname_spec
='$libname$release$shared_ext$major'
11349 shlibpath_var
=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath
=no
11351 hardcode_into_libs
=yes
11352 dynamic_linker
='ldqnx.so'
11355 openbsd
* | bitrig
*)
11357 sys_lib_dlsearch_path_spec
=/usr
/lib
11359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11364 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11365 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11366 shlibpath_var
=LD_LIBRARY_PATH
11367 shlibpath_overrides_runpath
=yes
11371 libname_spec
='$name'
11372 version_type
=windows
11376 # OS/2 can only load a DLL with a base name of 8 characters or less.
11377 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11378 v=$($ECHO $release$versuffix | tr -d .-);
11379 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11380 $ECHO $n$v`$shared_ext'
11381 library_names_spec
='${libname}_dll.$libext'
11382 dynamic_linker
='OS/2 ld.exe'
11383 shlibpath_var
=BEGINLIBPATH
11384 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11385 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11386 postinstall_cmds
='base_file=`basename \$file`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname~
11391 chmod a+x \$dldir/$dlname~
11392 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11393 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11395 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11396 dlpath=$dir/\$dldll~
11400 osf3
* | osf4
* | osf5
*)
11404 soname_spec
='$libname$release$shared_ext$major'
11405 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406 shlibpath_var
=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11408 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11416 version_type
=linux
# correct to gnu/linux during the next big refactor
11419 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11420 soname_spec
='$libname$release$shared_ext$major'
11421 shlibpath_var
=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath
=yes
11423 hardcode_into_libs
=yes
11424 # ldd complains unless libraries are executable
11425 postinstall_cmds
='chmod +x $lib'
11430 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11431 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11432 shlibpath_var
=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath
=yes
11434 if test yes = "$with_gnu_ld"; then
11441 version_type
=linux
# correct to gnu/linux during the next big refactor
11442 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443 soname_spec
='$libname$release$shared_ext$major'
11444 shlibpath_var
=LD_LIBRARY_PATH
11445 case $host_vendor in
11447 shlibpath_overrides_runpath
=no
11449 runpath_var
=LD_RUN_PATH
11457 shlibpath_overrides_runpath
=no
11458 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11464 if test -d /usr
/nec
; then
11465 version_type
=linux
# correct to gnu/linux during the next big refactor
11466 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11467 soname_spec
='$libname$shared_ext.$major'
11468 shlibpath_var
=LD_LIBRARY_PATH
11472 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11476 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11477 soname_spec
='$libname$release$shared_ext$major'
11478 shlibpath_var
=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath
=yes
11480 hardcode_into_libs
=yes
11481 if test yes = "$with_gnu_ld"; then
11482 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11484 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11487 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11491 sys_lib_dlsearch_path_spec
='/usr/lib'
11495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11496 version_type
=linux
# correct to gnu/linux during the next big refactor
11499 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500 shlibpath_var
=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath
=no
11502 hardcode_into_libs
=yes
11506 version_type
=linux
# correct to gnu/linux during the next big refactor
11507 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508 soname_spec
='$libname$release$shared_ext$major'
11509 shlibpath_var
=LD_LIBRARY_PATH
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11517 $as_echo "$dynamic_linker" >&6; }
11518 test no
= "$dynamic_linker" && can_build_shared
=no
11520 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11521 if test yes = "$GCC"; then
11522 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11525 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11526 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11529 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11530 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11533 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11534 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11536 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11537 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11539 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11540 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11639 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11641 if test -n "$hardcode_libdir_flag_spec" ||
11642 test -n "$runpath_var" ||
11643 test yes = "$hardcode_automatic"; then
11645 # We can hardcode non-existent directories.
11646 if test no
!= "$hardcode_direct" &&
11647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11648 # have to relink, otherwise we might link with an installed library
11649 # when we should be linking with a yet-to-be-installed one
11650 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11651 test no
!= "$hardcode_minus_L"; then
11652 # Linking always hardcodes the temporary library directory.
11653 hardcode_action
=relink
11655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11656 hardcode_action
=immediate
11659 # We cannot hardcode anything, or else we can only hardcode existing
11661 hardcode_action
=unsupported
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11664 $as_echo "$hardcode_action" >&6; }
11666 if test relink
= "$hardcode_action" ||
11667 test yes = "$inherit_rpath"; then
11668 # Fast installation is not supported
11669 enable_fast_install
=no
11670 elif test yes = "$shlibpath_overrides_runpath" ||
11671 test no
= "$enable_shared"; then
11672 # Fast installation is not necessary
11673 enable_fast_install
=needless
11681 if test yes != "$enable_dlopen"; then
11682 enable_dlopen
=unknown
11683 enable_dlopen_self
=unknown
11684 enable_dlopen_self_static
=unknown
11691 lt_cv_dlopen
=load_add_on
11693 lt_cv_dlopen_self
=yes
11696 mingw
* | pw32
* | cegcc
*)
11697 lt_cv_dlopen
=LoadLibrary
11702 lt_cv_dlopen
=dlopen
11707 # if libdl is installed we need to link against it
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11710 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11711 $as_echo_n "(cached) " >&6
11713 ac_check_lib_save_LIBS
=$LIBS
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11733 if ac_fn_c_try_link
"$LINENO"; then :
11734 ac_cv_lib_dl_dlopen
=yes
11736 ac_cv_lib_dl_dlopen
=no
11738 rm -f core conftest.err conftest.
$ac_objext \
11739 conftest
$ac_exeext conftest.
$ac_ext
11740 LIBS
=$ac_check_lib_save_LIBS
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11744 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11745 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11750 lt_cv_dlopen_self
=yes
11757 # Don't try to run any link tests for TPF. We know it's impossible
11758 # because TPF is a cross-compiler, and we know how we open DSOs.
11759 lt_cv_dlopen
=dlopen
11761 lt_cv_dlopen_self
=no
11765 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11766 if test "x$ac_cv_func_shl_load" = xyes
; then :
11767 lt_cv_dlopen
=shl_load
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11770 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11771 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11772 $as_echo_n "(cached) " >&6
11774 ac_check_lib_save_LIBS
=$LIBS
11776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11789 return shl_load ();
11794 if ac_fn_c_try_link
"$LINENO"; then :
11795 ac_cv_lib_dld_shl_load
=yes
11797 ac_cv_lib_dld_shl_load
=no
11799 rm -f core conftest.err conftest.
$ac_objext \
11800 conftest
$ac_exeext conftest.
$ac_ext
11801 LIBS
=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11804 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11805 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11806 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11808 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11809 if test "x$ac_cv_func_dlopen" = xyes
; then :
11810 lt_cv_dlopen
=dlopen
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11814 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11815 $as_echo_n "(cached) " >&6
11817 ac_check_lib_save_LIBS
=$LIBS
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11837 if ac_fn_c_try_link
"$LINENO"; then :
11838 ac_cv_lib_dl_dlopen
=yes
11840 ac_cv_lib_dl_dlopen
=no
11842 rm -f core conftest.err conftest.
$ac_objext \
11843 conftest
$ac_exeext conftest.
$ac_ext
11844 LIBS
=$ac_check_lib_save_LIBS
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11848 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11849 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11852 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11853 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11854 $as_echo_n "(cached) " >&6
11856 ac_check_lib_save_LIBS
=$LIBS
11857 LIBS
="-lsvld $LIBS"
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11876 if ac_fn_c_try_link
"$LINENO"; then :
11877 ac_cv_lib_svld_dlopen
=yes
11879 ac_cv_lib_svld_dlopen
=no
11881 rm -f core conftest.err conftest.
$ac_objext \
11882 conftest
$ac_exeext conftest.
$ac_ext
11883 LIBS
=$ac_check_lib_save_LIBS
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11887 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11888 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11892 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11893 $as_echo_n "(cached) " >&6
11895 ac_check_lib_save_LIBS
=$LIBS
11897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11910 return dld_link ();
11915 if ac_fn_c_try_link
"$LINENO"; then :
11916 ac_cv_lib_dld_dld_link
=yes
11918 ac_cv_lib_dld_dld_link
=no
11920 rm -f core conftest.err conftest.
$ac_objext \
11921 conftest
$ac_exeext conftest.
$ac_ext
11922 LIBS
=$ac_check_lib_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11925 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11926 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11927 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11948 if test no
= "$lt_cv_dlopen"; then
11954 case $lt_cv_dlopen in
11956 save_CPPFLAGS
=$CPPFLAGS
11957 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11959 save_LDFLAGS
=$LDFLAGS
11960 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11963 LIBS
="$lt_cv_dlopen_libs $LIBS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11966 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11967 if ${lt_cv_dlopen_self+:} false
; then :
11968 $as_echo_n "(cached) " >&6
11970 if test yes = "$cross_compiling"; then :
11971 lt_cv_dlopen_self
=cross
11973 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11974 lt_status
=$lt_dlunknown
11975 cat > conftest.
$ac_ext <<_LT_EOF
11976 #line $LINENO "configure"
11977 #include "confdefs.h"
11986 # define LT_DLGLOBAL RTLD_GLOBAL
11989 # define LT_DLGLOBAL DL_GLOBAL
11991 # define LT_DLGLOBAL 0
11995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11996 find out it does not work in some platform. */
11997 #ifndef LT_DLLAZY_OR_NOW
11999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12002 # define LT_DLLAZY_OR_NOW DL_LAZY
12005 # define LT_DLLAZY_OR_NOW RTLD_NOW
12008 # define LT_DLLAZY_OR_NOW DL_NOW
12010 # define LT_DLLAZY_OR_NOW 0
12017 /* When -fvisibility=hidden is used, assume the code has been annotated
12018 correspondingly for the symbols needed. */
12019 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020 int fnord () __attribute__((visibility("default")));
12023 int fnord () { return 42; }
12026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12027 int status = $lt_dlunknown;
12031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12035 else puts (dlerror ());
12037 /* dlclose (self); */
12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12046 (eval $ac_link) 2>&5
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12050 (.
/conftest
; exit; ) >&5 2>/dev
/null
12052 case x
$lt_status in
12053 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12054 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12055 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12058 # compilation failed
12059 lt_cv_dlopen_self
=no
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12067 $as_echo "$lt_cv_dlopen_self" >&6; }
12069 if test yes = "$lt_cv_dlopen_self"; then
12070 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12072 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12073 if ${lt_cv_dlopen_self_static+:} false
; then :
12074 $as_echo_n "(cached) " >&6
12076 if test yes = "$cross_compiling"; then :
12077 lt_cv_dlopen_self_static
=cross
12079 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12080 lt_status
=$lt_dlunknown
12081 cat > conftest.
$ac_ext <<_LT_EOF
12082 #line $LINENO "configure"
12083 #include "confdefs.h"
12092 # define LT_DLGLOBAL RTLD_GLOBAL
12095 # define LT_DLGLOBAL DL_GLOBAL
12097 # define LT_DLGLOBAL 0
12101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12102 find out it does not work in some platform. */
12103 #ifndef LT_DLLAZY_OR_NOW
12105 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12108 # define LT_DLLAZY_OR_NOW DL_LAZY
12111 # define LT_DLLAZY_OR_NOW RTLD_NOW
12114 # define LT_DLLAZY_OR_NOW DL_NOW
12116 # define LT_DLLAZY_OR_NOW 0
12123 /* When -fvisibility=hidden is used, assume the code has been annotated
12124 correspondingly for the symbols needed. */
12125 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12126 int fnord () __attribute__((visibility("default")));
12129 int fnord () { return 42; }
12132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12133 int status = $lt_dlunknown;
12137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12141 else puts (dlerror ());
12143 /* dlclose (self); */
12151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12152 (eval $ac_link) 2>&5
12154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12155 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12156 (.
/conftest
; exit; ) >&5 2>/dev
/null
12158 case x
$lt_status in
12159 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12160 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12161 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12164 # compilation failed
12165 lt_cv_dlopen_self_static
=no
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12173 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12176 CPPFLAGS
=$save_CPPFLAGS
12177 LDFLAGS
=$save_LDFLAGS
12182 case $lt_cv_dlopen_self in
12183 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12184 *) enable_dlopen_self
=unknown
;;
12187 case $lt_cv_dlopen_self_static in
12188 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12189 *) enable_dlopen_self_static
=unknown
;;
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12213 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12214 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12215 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12217 $as_echo "yes" >&6; }
12219 # FIXME - insert some real tests, host_os isn't really good enough
12222 if test -n "$STRIP"; then
12223 striplib
="$STRIP -x"
12224 old_striplib
="$STRIP -S"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12226 $as_echo "yes" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12250 # Report what library types will actually be built
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12252 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12254 $as_echo "$can_build_shared" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12257 $as_echo_n "checking whether to build shared libraries... " >&6; }
12258 test no
= "$can_build_shared" && enable_shared
=no
12260 # On AIX, shared libraries and static libraries use the same namespace, and
12261 # are all built from PIC.
12264 test yes = "$enable_shared" && enable_static
=no
12265 if test -n "$RANLIB"; then
12266 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12267 postinstall_cmds
='$RANLIB $lib'
12272 if test ia64
!= "$host_cpu"; then
12273 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12274 yes,aix
,yes) ;; # shared object as lib.so file only
12275 yes,svr4
,*) ;; # shared object as lib.so archive member only
12276 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12282 $as_echo "$enable_shared" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12285 $as_echo_n "checking whether to build static libraries... " >&6; }
12286 # Make sure either enable_shared or enable_static is yes.
12287 test yes = "$enable_shared" || enable_static
=yes
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12289 $as_echo "$enable_static" >&6; }
12296 ac_cpp
='$CPP $CPPFLAGS'
12297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12317 ac_config_commands
="$ac_config_commands libtool"
12322 # Only expand once:
12325 # By default we simply use the C compiler to build assembly code.
12327 test "${CCAS+set}" = set || CCAS
=$CC
12328 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12332 depcc
="$CCAS" am_compiler_list
=
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12335 $as_echo_n "checking dependency style of $depcc... " >&6; }
12336 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12337 $as_echo_n "(cached) " >&6
12339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12340 # We make a subdir and do the tests there. Otherwise we can end up
12341 # making bogus files that we don't know about and never remove. For
12342 # instance it was reported that on HP-UX the gcc test will end up
12343 # making a dummy file named 'D' -- because '-MD' means "put the output
12345 rm -rf conftest.dir
12347 # Copy depcomp to subdir because otherwise we won't find it if we're
12348 # using a relative directory.
12349 cp "$am_depcomp" conftest.dir
12351 # We will build objects and dependencies in a subdirectory because
12352 # it helps to detect inapplicable dependency modes. For instance
12353 # both Tru64's cc and ICC support -MD to output dependencies as a
12354 # side effect of compilation, but ICC will put the dependencies in
12355 # the current directory while Tru64 will put them in the object
12359 am_cv_CCAS_dependencies_compiler_type
=none
12360 if test "$am_compiler_list" = ""; then
12361 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12363 am__universal
=false
12366 for depmode
in $am_compiler_list; do
12367 # Setup a source with many dependencies, because some compilers
12368 # like to wrap large dependency lists on column 80 (with \), and
12369 # we should not choose a depcomp mode which is confused by this.
12371 # We need to recreate these files for each test, as the compiler may
12372 # overwrite some of them when testing with obscure command lines.
12373 # This happens at least with the AIX C compiler.
12375 for i
in 1 2 3 4 5 6; do
12376 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12378 # Solaris 10 /bin/sh.
12379 echo '/* dummy */' > sub
/conftst
$i.h
12381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12384 # mode. It turns out that the SunPro C++ compiler does not properly
12385 # handle '-M -o', and we need to detect this. Also, some Intel
12386 # versions had trouble with output in subdirs.
12387 am__obj
=sub
/conftest.
${OBJEXT-o}
12388 am__minus_obj
="-o $am__obj"
12391 # This depmode causes a compiler race in universal mode.
12392 test "$am__universal" = false ||
continue
12395 # After this tag, mechanisms are not by side-effect, so they'll
12396 # only be used when explicitly requested.
12397 if test "x$enable_dependency_tracking" = xyes
; then
12403 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12404 # This compiler won't grok '-c -o', but also, the minuso test has
12405 # not run yet. These depmodes are late enough in the game, and
12406 # so weak that their functioning should not be impacted.
12407 am__obj
=conftest.
${OBJEXT-o}
12412 if depmode
=$depmode \
12413 source=sub
/conftest.c object
=$am__obj \
12414 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12415 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12416 >/dev
/null
2>conftest.err
&&
12417 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12418 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12419 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12420 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12421 # icc doesn't choke on unknown options, it will just issue warnings
12422 # or remarks (even with -Werror). So we grep stderr for any message
12423 # that says an option was ignored or not supported.
12424 # When given -MP, icc 7.0 and 7.1 complain thusly:
12425 # icc: Command line warning: ignoring option '-M'; no argument required
12426 # The diagnosis changed in icc 8.0:
12427 # icc: Command line remark: option '-MP' not supported
12428 if (grep 'ignoring option' conftest.err ||
12429 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12430 am_cv_CCAS_dependencies_compiler_type
=$depmode
12437 rm -rf conftest.dir
12439 am_cv_CCAS_dependencies_compiler_type
=none
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12444 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12445 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12448 test "x$enable_dependency_tracking" != xno \
12449 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12450 am__fastdepCCAS_TRUE
=
12451 am__fastdepCCAS_FALSE
='#'
12453 am__fastdepCCAS_TRUE
='#'
12454 am__fastdepCCAS_FALSE
=
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12461 $as_echo_n "checking zfs author... " >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12463 $as_echo "$ZFS_META_AUTHOR" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12466 $as_echo_n "checking zfs license... " >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12468 $as_echo "$ZFS_META_LICENSE" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12473 $as_echo_n "checking linux distribution... " >&6; }
12474 if test -f /etc
/toss-release
; then
12476 elif test -f /etc
/fedora-release
; then
12478 elif test -f /etc
/redhat-release
; then
12480 elif test -f /etc
/gentoo-release
; then
12482 elif test -f /etc
/arch-release
; then
12484 elif test -f /etc
/SuSE-release
; then
12486 elif test -f /etc
/slackware-version
; then
12488 elif test -f /etc
/lunar.release
; then
12490 elif test -f /etc
/lsb-release
; then
12492 elif test -f /etc
/debian_version
; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12498 $as_echo "$VENDOR" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12502 $as_echo_n "checking default package type... " >&6; }
12504 toss
) DEFAULT_PACKAGE
=rpm
;;
12505 redhat
) DEFAULT_PACKAGE
=rpm
;;
12506 fedora
) DEFAULT_PACKAGE
=rpm
;;
12507 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12508 arch
) DEFAULT_PACKAGE
=tgz
;;
12509 sles
) DEFAULT_PACKAGE
=rpm
;;
12510 slackware
) DEFAULT_PACKAGE
=tgz
;;
12511 lunar
) DEFAULT_PACKAGE
=tgz
;;
12512 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12513 debian
) DEFAULT_PACKAGE
=deb
;;
12514 *) DEFAULT_PACKAGE
=rpm
;;
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12517 $as_echo "$DEFAULT_PACKAGE" >&6; }
12520 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12522 $as_echo_n "checking default init directory... " >&6; }
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12524 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12528 $as_echo_n "checking default init script type... " >&6; }
12530 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12531 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12532 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12533 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12534 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12535 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12536 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12537 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12538 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12539 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12540 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12543 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12547 $as_echo_n "checking default init config direectory... " >&6; }
12549 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12550 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12551 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12552 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12553 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12554 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12555 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12556 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12559 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12563 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12564 if test -d /usr
/share
/initramfs-tools
; then
12565 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12567 $as_echo "yes" >&6; }
12569 DEFINE_INITRAMFS
=''
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12580 $as_echo_n "checking whether $RPM is available... " >&6; }
12581 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12583 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12586 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12592 $as_echo "$HAVE_RPM" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12597 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12598 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12600 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12603 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12609 $as_echo "$HAVE_RPMBUILD" >&6; }
12613 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12614 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12615 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12618 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12623 RPM_SPEC_DIR
="rpm/generic"
12625 # Check whether --with-spec was given.
12626 if test "${with_spec+set}" = set; then :
12627 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12632 $as_echo_n "checking whether spec files are available... " >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12634 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12656 DPKGBUILD
=dpkg-buildpackage
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12659 $as_echo_n "checking whether $DPKG is available... " >&6; }
12660 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12662 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12665 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12671 $as_echo "$HAVE_DPKG" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12676 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12677 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12679 DPKGBUILD_VERSION
=$
(echo $tmp | \
12680 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12683 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12689 $as_echo "$HAVE_DPKGBUILD" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12705 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12706 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12708 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12711 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12717 $as_echo "$HAVE_ALIEN" >&6; }
12727 TARGET_ASM_DIR
=asm-generic
12732 # Check whether --with-config was given.
12733 if test "${with_config+set}" = set; then :
12734 withval
=$with_config; ZFS_CONFIG
="$withval"
12737 # Check whether --enable-linux-builtin was given.
12738 if test "${enable_linux_builtin+set}" = set; then :
12739 enableval
=$enable_linux_builtin;
12741 enable_linux_builtin
=no
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12746 $as_echo_n "checking zfs config... " >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12748 $as_echo "$ZFS_CONFIG" >&6; };
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12754 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12756 saved_flags
="$CFLAGS"
12757 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12770 if ac_fn_c_try_compile
"$LINENO"; then :
12772 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12778 NO_UNUSED_BUT_SET_VARIABLE
=
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12785 CFLAGS
="$saved_flags"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12790 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12792 saved_flags
="$CFLAGS"
12793 CFLAGS
="$CFLAGS -Wbool-compare"
12795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12806 if ac_fn_c_try_compile
"$LINENO"; then :
12808 NO_BOOL_COMPARE
=-Wno-bool-compare
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810 $as_echo "yes" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12821 CFLAGS
="$saved_flags"
12826 case "$ZFS_CONFIG" in
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12830 $as_echo_n "checking for dkms.conf file... " >&6; }
12831 if test -e dkms.conf
; then :
12834 *** ZFS should not be manually built in the DKMS source tree.
12835 *** Remove all ZFS packages before compiling the ZoL sources.
12836 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12841 $as_echo "not found" >&6; }
12847 # Check whether --with-mounthelperdir was given.
12848 if test "${with_mounthelperdir+set}" = set; then :
12849 withval
=$with_mounthelperdir; mounthelperdir
=$withval
12851 mounthelperdir
=/sbin
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12859 $as_echo_n "checking for udev directories... " >&6; }
12861 # Check whether --with-udevdir was given.
12862 if test "${with_udevdir+set}" = set; then :
12863 withval
=$with_udevdir; udevdir
=$withval
12869 if test "x$udevdir" = xcheck
; then :
12872 path2
=/usr
/lib
/udev
12875 if test -d "$path1"; then :
12879 if test -d "$path2"; then :
12890 # Check whether --with-udevruledir was given.
12891 if test "${with_udevruledir+set}" = set; then :
12892 withval
=$with_udevruledir; udevruledir
=$withval
12894 udevruledir
="${udevdir}/rules.d"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12901 $as_echo "$udevdir;$udevruledir" >&6; }
12904 # Check whether --enable-systemd was given.
12905 if test "${enable_systemd+set}" = set; then :
12906 enableval
=$enable_systemd;
12913 # Check whether --with-systemdunitdir was given.
12914 if test "${with_systemdunitdir+set}" = set; then :
12915 withval
=$with_systemdunitdir; systemdunitdir
=$withval
12917 systemdunitdir
=/usr
/lib
/systemd
/system
12922 # Check whether --with-systemdpresetdir was given.
12923 if test "${with_systemdpresetdir+set}" = set; then :
12924 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
12926 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
12931 # Check whether --with-systemdmodulesloaddir was given.
12932 if test "${with_systemdmodulesloaddir+set}" = set; then :
12933 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
12935 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
12940 if test "x$enable_systemd" = xyes
; then :
12942 ZFS_INIT_SYSTEMD
=systemd
12943 ZFS_MODULE_LOAD
=modules-load.d
12944 modulesloaddir
=$systemdmodulesloaddir
12955 # Check whether --enable-sysvinit was given.
12956 if test "${enable_sysvinit+set}" = set; then :
12957 enableval
=$enable_sysvinit;
12959 enable_sysvinit
=yes
12963 if test "x$enable_sysvinit" = xyes
; then :
12964 ZFS_INIT_SYSV
=init.d
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12971 $as_echo_n "checking for dracut directory... " >&6; }
12973 # Check whether --with-dracutdir was given.
12974 if test "${with_dracutdir+set}" = set; then :
12975 withval
=$with_dracutdir; dracutdir
=$withval
12981 if test "x$dracutdir" = xcheck
; then :
12983 path1
=/usr
/share
/dracut
12984 path2
=/usr
/lib
/dracut
12987 if test -d "$path1"; then :
12991 if test -d "$path2"; then :
12994 dracutdir
="$default"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13003 $as_echo "$dracutdir" >&6; }
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13007 $as_echo_n "checking for target asm dir... " >&6; }
13008 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13010 case $TARGET_ARCH in
13012 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13015 TARGET_ASM_DIR
=asm-generic
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13021 $as_echo "$TARGET_ASM_DIR" >&6; }
13026 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13027 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13033 *** zlib.h missing, zlib-devel package required
13034 See \`config.log' for more details" "$LINENO" 5; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13040 $as_echo_n "checking for compress2 in -lz... " >&6; }
13041 if ${ac_cv_lib_z_compress2+:} false
; then :
13042 $as_echo_n "(cached) " >&6
13044 ac_check_lib_save_LIBS
=$LIBS
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13059 return compress2 ();
13064 if ac_fn_c_try_link
"$LINENO"; then :
13065 ac_cv_lib_z_compress2
=yes
13067 ac_cv_lib_z_compress2
=no
13069 rm -f core conftest.err conftest.
$ac_objext \
13070 conftest
$ac_exeext conftest.
$ac_ext
13071 LIBS
=$ac_check_lib_save_LIBS
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13074 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13075 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define HAVE_LIBZ 1
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13086 *** compress2() missing, zlib-devel package required
13087 See \`config.log' for more details" "$LINENO" 5; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13092 $as_echo_n "checking for uncompress in -lz... " >&6; }
13093 if ${ac_cv_lib_z_uncompress+:} false
; then :
13094 $as_echo_n "(cached) " >&6
13096 ac_check_lib_save_LIBS
=$LIBS
13098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char uncompress ();
13111 return uncompress ();
13116 if ac_fn_c_try_link
"$LINENO"; then :
13117 ac_cv_lib_z_uncompress
=yes
13119 ac_cv_lib_z_uncompress
=no
13121 rm -f core conftest.err conftest.
$ac_objext \
13122 conftest
$ac_exeext conftest.
$ac_ext
13123 LIBS
=$ac_check_lib_save_LIBS
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13126 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13127 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
13128 cat >>confdefs.h
<<_ACEOF
13129 #define HAVE_LIBZ 1
13135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13138 *** uncompress() missing, zlib-devel package required
13139 See \`config.log' for more details" "$LINENO" 5; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13144 $as_echo_n "checking for crc32 in -lz... " >&6; }
13145 if ${ac_cv_lib_z_crc32+:} false
; then :
13146 $as_echo_n "(cached) " >&6
13148 ac_check_lib_save_LIBS
=$LIBS
13150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13168 if ac_fn_c_try_link
"$LINENO"; then :
13169 ac_cv_lib_z_crc32
=yes
13171 ac_cv_lib_z_crc32
=no
13173 rm -f core conftest.err conftest.
$ac_objext \
13174 conftest
$ac_exeext conftest.
$ac_ext
13175 LIBS
=$ac_check_lib_save_LIBS
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13178 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13179 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
13180 cat >>confdefs.h
<<_ACEOF
13181 #define HAVE_LIBZ 1
13187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13190 *** crc32() missing, zlib-devel package required
13191 See \`config.log' for more details" "$LINENO" 5; }
13198 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13204 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13205 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13211 *** uuid/uuid.h missing, libuuid-devel package required
13212 See \`config.log' for more details" "$LINENO" 5; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13218 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13219 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13220 $as_echo_n "(cached) " >&6
13222 ac_check_lib_save_LIBS
=$LIBS
13223 LIBS
="-luuid $LIBS"
13224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13233 char uuid_generate ();
13237 return uuid_generate ();
13242 if ac_fn_c_try_link
"$LINENO"; then :
13243 ac_cv_lib_uuid_uuid_generate
=yes
13245 ac_cv_lib_uuid_uuid_generate
=no
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13249 LIBS
=$ac_check_lib_save_LIBS
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13252 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13253 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13254 cat >>confdefs.h
<<_ACEOF
13255 #define HAVE_LIBUUID 1
13258 LIBS
="-luuid $LIBS"
13261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13264 *** uuid_generate() missing, libuuid-devel package required
13265 See \`config.log' for more details" "$LINENO" 5; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13270 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13271 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS
=$LIBS
13275 LIBS
="-luuid $LIBS"
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char uuid_is_null ();
13289 return uuid_is_null ();
13294 if ac_fn_c_try_link
"$LINENO"; then :
13295 ac_cv_lib_uuid_uuid_is_null
=yes
13297 ac_cv_lib_uuid_uuid_is_null
=no
13299 rm -f core conftest.err conftest.
$ac_objext \
13300 conftest
$ac_exeext conftest.
$ac_ext
13301 LIBS
=$ac_check_lib_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13304 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13305 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
13306 cat >>confdefs.h
<<_ACEOF
13307 #define HAVE_LIBUUID 1
13310 LIBS
="-luuid $LIBS"
13313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13316 *** uuid_is_null() missing, libuuid-devel package required
13317 See \`config.log' for more details" "$LINENO" 5; }
13324 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13329 # Check whether --with-blkid was given.
13330 if test "${with_blkid+set}" = set; then :
13331 withval
=$with_blkid;
13338 if test "x$with_blkid" = xyes
; then :
13343 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13348 if test "x$with_blkid" = xcheck
; then :
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13351 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13352 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS
=$LIBS
13356 LIBS
="-lblkid $LIBS"
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13366 char blkid_get_cache ();
13370 return blkid_get_cache ();
13375 if ac_fn_c_try_link
"$LINENO"; then :
13376 ac_cv_lib_blkid_blkid_get_cache
=yes
13378 ac_cv_lib_blkid_blkid_get_cache
=no
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13382 LIBS
=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13385 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13386 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13389 $as_echo_n "checking for blkid zfs support... " >&6; }
13392 truncate
-s 64M
$ZFS_DEV
13393 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13394 dd of
=$ZFS_DEV bs
=1k count
=8 \
13395 seek
=128 conv
=notrunc
&>/dev
/null \
13396 >/dev
/null
2>/dev
/null
13397 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13398 dd of
=$ZFS_DEV bs
=1k count
=8 \
13399 seek
=132 conv
=notrunc
&>/dev
/null \
13400 >/dev
/null
2>/dev
/null
13401 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13402 dd of
=$ZFS_DEV bs
=1k count
=8 \
13403 seek
=136 conv
=notrunc
&>/dev
/null \
13404 >/dev
/null
2>/dev
/null
13405 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13406 dd of
=$ZFS_DEV bs
=1k count
=8 \
13407 seek
=140 conv
=notrunc
&>/dev
/null \
13408 >/dev
/null
2>/dev
/null
13413 if test "$cross_compiling" = yes; then :
13414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13416 as_fn_error $?
"cannot run test program while cross compiling
13417 See \`config.log' for more details" "$LINENO" 5; }
13419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13423 #include <stdlib.h>
13424 #include <blkid/blkid.h>
13433 if (blkid_get_cache(&cache, NULL) < 0)
13436 value = blkid_get_tag_value(cache, "TYPE",
13439 blkid_put_cache(cache);
13443 if (strcmp(value, "zfs_member")) {
13445 blkid_put_cache(cache);
13450 blkid_put_cache(cache);
13456 if ac_fn_c_try_run
"$LINENO"; then :
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13460 $as_echo "yes" >&6; }
13464 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 if test "x$with_blkid" != xcheck
; then :
13473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13475 as_fn_error $?
"--with-blkid given but unavailable
13476 See \`config.log' for more details" "$LINENO" 5; }
13480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13489 if test "x$with_blkid" != xcheck
; then :
13490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13492 as_fn_error $?
"--with-blkid given but unavailable
13493 See \`config.log' for more details" "$LINENO" 5; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13504 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13506 saved_flags
="$CFLAGS"
13507 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13520 if ac_fn_c_try_compile
"$LINENO"; then :
13522 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13535 CFLAGS
="$saved_flags"
13539 if test "x$runstatedir" = x
; then
13540 runstatedir
='${localstatedir}/run'
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
13546 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
13547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13550 #include <sys/sysmacros.h>
13563 if ac_fn_c_try_compile
"$LINENO"; then :
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13568 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
13581 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13585 #include <sys/mkdev.h>
13598 if ac_fn_c_try_compile
"$LINENO"; then :
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13603 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
13616 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
13618 saved_flags
="$CFLAGS"
13619 CFLAGS
="$CFLAGS -Wno-format-truncation"
13621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13632 if ac_fn_c_try_compile
"$LINENO"; then :
13634 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13640 NO_FORMAT_TRUNCATION
=
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13647 CFLAGS
="$saved_flags"
13650 for ac_func
in mlockall
13652 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13653 if test "x$ac_cv_func_mlockall" = xyes
; then :
13654 cat >>confdefs.h
<<_ACEOF
13655 #define HAVE_MLOCKALL 1
13665 # Check whether --with-linux was given.
13666 if test "${with_linux+set}" = set; then :
13667 withval
=$with_linux; kernelsrc
="$withval"
13672 # Check whether --with-linux-obj was given.
13673 if test "${with_linux_obj+set}" = set; then :
13674 withval
=$with_linux_obj; kernelbuild
="$withval"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13679 $as_echo_n "checking kernel source directory... " >&6; }
13680 if test -z "$kernelsrc"; then :
13682 if test -e "/lib/modules/$(uname -r)/source"; then :
13684 headersdir
="/lib/modules/$(uname -r)/source"
13685 sourcelink
=$
(readlink
-f "$headersdir")
13687 elif test -e "/lib/modules/$(uname -r)/build"; then :
13689 headersdir
="/lib/modules/$(uname -r)/build"
13690 sourcelink
=$
(readlink
-f "$headersdir")
13694 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13696 2>/dev
/null |
grep -v obj |
tail -1)
13700 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13702 kernelsrc
=`readlink -f ${sourcelink}`
13706 kernelsrc
="Not found"
13712 if test "$kernelsrc" = "NONE"; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13721 $as_echo "$kernelsrc" >&6; }
13722 if test ! -d "$kernelsrc"; then :
13725 *** Please make sure the kernel devel package for your distribution
13726 *** is installed and then try again. If that fails, you can specify the
13727 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13732 $as_echo_n "checking kernel build directory... " >&6; }
13733 if test -z "$kernelbuild"; then :
13735 if test -e "/lib/modules/$(uname -r)/build"; then :
13737 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13739 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13741 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13743 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13745 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13747 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13749 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13753 kernelbuild
=${kernelsrc}
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13759 $as_echo "$kernelbuild" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13762 $as_echo_n "checking kernel source version... " >&6; }
13763 utsrelease1
=$kernelbuild/include
/linux
/version.h
13764 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13765 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13766 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13768 utsrelease
=linux
/version.h
13770 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13772 utsrelease
=linux
/utsrelease.h
13774 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13776 utsrelease
=generated
/utsrelease.h
13780 if test "$utsrelease"; then :
13782 kernsrcver
=`(echo "#include <$utsrelease>";
13783 echo "kernsrcver=UTS_RELEASE") |
13784 cpp -I $kernelbuild/include |
13785 grep "^kernsrcver=" | cut -d \" -f 2`
13787 if test -z "$kernsrcver"; then :
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13790 $as_echo "Not found" >&6; }
13791 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13798 $as_echo "Not found" >&6; }
13799 if test "x$enable_linux_builtin" != xyes
; then
13800 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13803 *** Cannot find UTS_RELEASE definition.
13804 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13810 $as_echo "$kernsrcver" >&6; }
13813 LINUX_OBJ
=${kernelbuild}
13814 LINUX_VERSION
=${kernsrcver}
13821 modpost
=$LINUX/scripts
/Makefile.modpost
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13823 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13824 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13826 if grep -q Modules.symvers
$modpost; then :
13828 LINUX_SYMBOLS
=Modules.symvers
13832 LINUX_SYMBOLS
=Module.symvers
13836 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13839 *** Please make sure the kernel devel package for your distribution
13840 *** is installed. If you are building with a custom kernel, make sure the
13841 *** kernel is configured, built, and the '--with-linux=PATH' configure
13842 *** option refers to the location of the kernel source." "$LINENO" 5
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13852 $as_echo "$LINUX_SYMBOLS" >&6; }
13858 # Check whether --with-spl was given.
13859 if test "${with_spl+set}" = set; then :
13860 withval
=$with_spl; splsrc
="$withval"
13865 # Check whether --with-spl-obj was given.
13866 if test "${with_spl_obj+set}" = set; then :
13867 withval
=$with_spl_obj; splbuild
="$withval"
13872 # Check whether --with-spl-timeout was given.
13873 if test "${with_spl_timeout+set}" = set; then :
13874 withval
=$with_spl_timeout; timeout
="$withval"
13880 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13881 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13882 splsrc2
="/usr/local/src/spl-${VERSION}"
13883 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13884 splsrc4
="/usr/src/spl-${VERSION}"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13889 $as_echo_n "checking spl source directory... " >&6; }
13890 if test -z "${splsrc}"; then :
13892 if test -e "${splsrc0}/spl.release.in"; then :
13896 elif test -e "${splsrc1}/spl.release.in"; then :
13900 elif test -e "${splsrc2}/spl.release.in"; then :
13904 elif test -e "${splsrc3}/spl.release.in"; then :
13906 splsrc
=$
(readlink
-f "${splsrc3}")
13908 elif test -e "${splsrc4}/spl.release.in" ; then :
13912 elif test -e "${splsrc5}/spl.release.in"; then :
13914 splsrc
=$
(readlink
-f "${splsrc5}")
13916 elif test -e "${splsrc6}/spl.release.in" ; then :
13928 if test "$splsrc" = "NONE"; then :
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13938 $as_echo "$splsrc" >&6; }
13939 if test ! -e "$splsrc/spl.release.in"; then :
13942 *** Please make sure the kmod spl devel package for your distribution
13943 *** is installed then try again. If that fails you can specify the
13944 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13949 $as_echo_n "checking spl build directory... " >&6; }
13951 if test -z "$splbuild"; then :
13953 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13955 splbuild
="${splsrc}/${LINUX_VERSION}"
13957 elif test -e "${splsrc}/spl_config.h" ; then :
13959 splbuild
="${splsrc}"
13961 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13963 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13967 splbuild
="Not found"
13972 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13979 timeout
=$
((timeout-1
))
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13985 $as_echo "$splbuild" >&6; }
13986 if ! test -e "$splbuild/spl_config.h"; then :
13989 *** Please make sure the kmod spl devel <kernel> package for your
13990 *** distribution is installed then try again. If that fails you
13991 *** can specify the location of the spl objects with the
13992 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13997 $as_echo_n "checking spl source version... " >&6; }
13998 if test -r $splbuild/spl_config.h
&&
13999 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
14002 splsrcver
=`(echo "#include <spl_config.h>";
14003 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14005 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
14009 if test -z "$splsrcver"; then :
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
14012 $as_echo "Not found" >&6; }
14014 *** Cannot determine the version of the spl source.
14015 *** Please prepare the spl source before running this script" "$LINENO" 5
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
14020 $as_echo "$splsrcver" >&6; }
14023 SPL_OBJ
=${splbuild}
14024 SPL_VERSION
=${splsrcver}
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
14031 $as_echo_n "checking spl file name for module symbols... " >&6; }
14035 if test -r $SPL_OBJ/Module.symvers
; then :
14037 SPL_SYMBOLS
=Module.symvers
14039 elif test -r $SPL_OBJ/Modules.symvers
; then :
14041 SPL_SYMBOLS
=Modules.symvers
14043 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
14045 SPL_SYMBOLS
=Module.symvers
14047 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
14049 SPL_SYMBOLS
=Modules.symvers
14053 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
14060 timeout
=$
((timeout-1
))
14065 if test "$SPL_SYMBOLS" = NONE
; then :
14067 SPL_SYMBOLS
=$LINUX_SYMBOLS
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
14072 $as_echo "$SPL_SYMBOLS" >&6; }
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
14077 $as_echo_n "checking whether modules can be built... " >&6; }
14080 cat confdefs.h
- <<_ACEOF >conftest.c
14095 cat - <<_ACEOF >conftest.h
14100 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14101 echo "obj-m := conftest.o" >build
/Makefile
14103 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14104 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14106 (eval $ac_try) 2>&5
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14111 (eval $ac_try) 2>&5
14113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14114 test $ac_status = 0; }; }; then :
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14117 $as_echo "yes" >&6; }
14120 $as_echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.
$ac_ext >&5
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125 if test "x$enable_linux_builtin" != xyes
; then
14126 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14129 *** Unable to build an empty module.
14130 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14141 if test "x$cross_compiling" != xyes
; then :
14143 if test "$cross_compiling" = yes; then :
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14146 as_fn_error $?
"cannot run test program while cross compiling
14147 See \`config.log' for more details" "$LINENO" 5; }
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14153 #include "$LINUX/include/linux/license.h"
14159 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14166 if ac_fn_c_try_run
"$LINENO"; then :
14169 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14182 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14185 cat confdefs.h
- <<_ACEOF >conftest.c
14188 #include <linux/module.h>
14194 #if (THREAD_SIZE < 16384)
14195 #error "THREAD_SIZE is less than 16K"
14206 cat - <<_ACEOF >conftest.h
14211 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14212 echo "obj-m := conftest.o" >build
/Makefile
14214 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14215 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14217 (eval $ac_try) 2>&5
14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14222 (eval $ac_try) 2>&5
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; }; then :
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14230 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14234 $as_echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.
$ac_ext >&5
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14250 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14253 cat confdefs.h
- <<_ACEOF >conftest.c
14256 #include <linux/module.h>
14262 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14263 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14274 cat - <<_ACEOF >conftest.h
14279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14280 echo "obj-m := conftest.o" >build
/Makefile
14282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14283 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14285 (eval $ac_try) 2>&5
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; }; then :
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14299 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14300 tmp_flags
="$EXTRA_KCFLAGS"
14303 cat confdefs.h
- <<_ACEOF >conftest.c
14306 #include <linux/module.h>
14307 #include <linux/mutex.h>
14309 MODULE_LICENSE("$ZFS_META_LICENSE");
14319 mutex_unlock(&lock);
14329 cat - <<_ACEOF >conftest.h
14334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14335 echo "obj-m := conftest.o" >build
/Makefile
14337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14338 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14340 (eval $ac_try) 2>&5
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14345 (eval $ac_try) 2>&5
14347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348 test $ac_status = 0; }; }; then :
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14354 $as_echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.
$ac_ext >&5
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 $as_echo "yes" >&6; }
14360 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14361 *** with the CDDL license and will prevent the module linking stage
14362 *** from succeeding. You must rebuild your kernel without this
14363 *** option enabled." "$LINENO" 5
14371 EXTRA_KCFLAGS
="$tmp_flags"
14375 $as_echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.
$ac_ext >&5
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 $as_echo "no" >&6; }
14392 tmp_flags
="$EXTRA_KCFLAGS"
14393 EXTRA_KCFLAGS
="-I\$(src)"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14396 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14399 cat confdefs.h
- <<_ACEOF >conftest.c
14402 #include <linux/module.h>
14403 MODULE_LICENSE(ZFS_META_LICENSE);
14405 #define CREATE_TRACE_POINTS
14406 #include "conftest.h"
14412 trace_zfs_autoconf_event_one(1UL);
14413 trace_zfs_autoconf_event_two(2UL);
14423 cat - <<_ACEOF >conftest.h
14425 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14426 #define _CONFTEST_H
14428 #undef TRACE_SYSTEM
14429 #define TRACE_SYSTEM zfs
14430 #include <linux/tracepoint.h>
14432 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14433 TP_PROTO(unsigned long i),
14436 __field(unsigned long, i)
14441 TP_printk("i = %lu", __entry->i)
14444 #define DEFINE_AUTOCONF_EVENT(name) \
14445 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14446 TP_PROTO(unsigned long i), \
14448 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14449 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14451 #endif /* _CONFTEST_H */
14453 #undef TRACE_INCLUDE_PATH
14454 #define TRACE_INCLUDE_PATH .
14455 #define TRACE_INCLUDE_FILE conftest
14456 #include <trace/define_trace.h>
14461 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14462 echo "obj-m := conftest.o" >build
/Makefile
14464 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14465 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14467 (eval $ac_try) 2>&5
14469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14472 (eval $ac_try) 2>&5
14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; }; }; then :
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14478 $as_echo "yes" >&6; }
14480 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14484 $as_echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.
$ac_ext >&5
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14496 EXTRA_KCFLAGS
="$tmp_flags"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14500 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14503 cat confdefs.h
- <<_ACEOF >conftest.c
14506 #include <linux/sched.h>
14512 current->bio_tail = (struct bio **) NULL;
14522 cat - <<_ACEOF >conftest.h
14527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14528 echo "obj-m := conftest.o" >build
/Makefile
14530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14533 (eval $ac_try) 2>&5
14535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14538 (eval $ac_try) 2>&5
14540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14541 test $ac_status = 0; }; }; then :
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14544 $as_echo "yes" >&6; }
14546 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14550 $as_echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14556 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14559 cat confdefs.h
- <<_ACEOF >conftest.c
14562 #include <linux/sched.h>
14568 current->bio_list = (struct bio_list *) NULL;
14578 cat - <<_ACEOF >conftest.h
14583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14584 echo "obj-m := conftest.o" >build
/Makefile
14586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14589 (eval $ac_try) 2>&5
14591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14594 (eval $ac_try) 2>&5
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }; }; then :
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14600 $as_echo "yes" >&6; }
14602 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14606 $as_echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.
$ac_ext >&5
14609 as_fn_error $?
"no - Please file a bug report at
14610 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14628 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14631 cat confdefs.h
- <<_ACEOF >conftest.c
14634 #include <linux/bio.h>
14641 struct bio *bio = NULL;
14642 blk_qc = submit_bio(bio);
14652 cat - <<_ACEOF >conftest.h
14657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14658 echo "obj-m := conftest.o" >build
/Makefile
14660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14663 (eval $ac_try) 2>&5
14665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14668 (eval $ac_try) 2>&5
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }; }; then :
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14674 $as_echo "yes" >&6; }
14676 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.
$ac_ext >&5
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14695 $as_echo_n "checking block device operation prototypes... " >&6; }
14696 tmp_flags
="$EXTRA_KCFLAGS"
14697 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14700 cat confdefs.h
- <<_ACEOF >conftest.c
14703 #include <linux/blkdev.h>
14705 int blk_open(struct block_device *bdev, fmode_t mode)
14707 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14708 unsigned x, unsigned long y) { return 0; }
14709 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14710 unsigned x, unsigned long y) { return 0; }
14712 static const struct block_device_operations
14713 bops __attribute__ ((unused)) = {
14716 .ioctl = blk_ioctl,
14717 .compat_ioctl = blk_compat_ioctl,
14733 cat - <<_ACEOF >conftest.h
14738 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14739 echo "obj-m := conftest.o" >build
/Makefile
14741 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14742 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14744 (eval $ac_try) 2>&5
14746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14747 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14749 (eval $ac_try) 2>&5
14751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752 test $ac_status = 0; }; }; then :
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14755 $as_echo "struct block_device" >&6; }
14757 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14761 $as_echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.
$ac_ext >&5
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14765 $as_echo "struct inode" >&6; }
14773 EXTRA_KCFLAGS
="$tmp_flags"
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14777 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14778 tmp_flags
="$EXTRA_KCFLAGS"
14779 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14782 cat confdefs.h
- <<_ACEOF >conftest.c
14785 #include <linux/blkdev.h>
14787 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14789 static const struct block_device_operations
14790 bops __attribute__ ((unused)) = {
14792 .release = blk_release,
14794 .compat_ioctl = NULL,
14810 cat - <<_ACEOF >conftest.h
14815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14816 echo "obj-m := conftest.o" >build
/Makefile
14818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14821 (eval $ac_try) 2>&5
14823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14826 (eval $ac_try) 2>&5
14828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14829 test $ac_status = 0; }; }; then :
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14832 $as_echo "void" >&6; }
14834 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14838 $as_echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.
$ac_ext >&5
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14842 $as_echo "int" >&6; }
14850 EXTRA_KCFLAGS
="$tmp_flags"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14853 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14856 cat confdefs.h
- <<_ACEOF >conftest.c
14859 #include <linux/types.h>
14865 fmode_t *ptr __attribute__ ((unused));
14875 cat - <<_ACEOF >conftest.h
14880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14881 echo "obj-m := conftest.o" >build
/Makefile
14883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14886 (eval $ac_try) 2>&5
14888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14891 (eval $ac_try) 2>&5
14893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14894 test $ac_status = 0; }; }; then :
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14897 $as_echo "yes" >&6; }
14899 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14903 $as_echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 $as_echo "no" >&6; }
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14918 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14921 cat confdefs.h
- <<_ACEOF >conftest.c
14924 #include <linux/kobject.h>
14930 int val __attribute__ ((unused));
14931 val = KOBJ_NAME_LEN;
14941 cat - <<_ACEOF >conftest.h
14946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14947 echo "obj-m := conftest.o" >build
/Makefile
14949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14952 (eval $ac_try) 2>&5
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14957 (eval $ac_try) 2>&5
14959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960 test $ac_status = 0; }; }; then :
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14963 $as_echo "yes" >&6; }
14965 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14969 $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.
$ac_ext >&5
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973 $as_echo "no" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14984 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14987 cat confdefs.h
- <<_ACEOF >conftest.c
14990 #include <linux/fs.h>
14996 struct block_device *bdev = NULL;
14997 (void) blkdev_get(bdev, 0, NULL);
15007 cat - <<_ACEOF >conftest.h
15012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15013 echo "obj-m := conftest.o" >build
/Makefile
15015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15018 (eval $ac_try) 2>&5
15020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15023 (eval $ac_try) 2>&5
15025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15026 test $ac_status = 0; }; }; then :
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029 $as_echo "yes" >&6; }
15031 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
15035 $as_echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15049 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15053 cat confdefs.h
- <<_ACEOF >conftest.c
15056 #include <linux/fs.h>
15062 blkdev_get_by_path(NULL, 0, NULL);
15072 cat - <<_ACEOF >conftest.h
15077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15078 echo "obj-m := conftest.o" >build
/Makefile
15080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15083 (eval $ac_try) 2>&5
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15088 (eval $ac_try) 2>&5
15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15091 test $ac_status = 0; }; }; then :
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15103 if test $rc -ne 0; then :
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15106 $as_echo "no" >&6; }
15109 if test "x$enable_linux_builtin" != xyes
; then
15111 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15112 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15114 if test $rc -ne 0; then
15116 for file in fs
/block_dev.c
; do
15117 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15118 "$LINUX/$file" 2>/dev
/null
15120 if test $rc -eq 0; then
15125 if test $export -eq 0; then :
15135 if test $rc -ne 0; then :
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15138 $as_echo "no" >&6; }
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 $as_echo "yes" >&6; }
15145 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15153 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15157 cat confdefs.h
- <<_ACEOF >conftest.c
15160 #include <linux/fs.h>
15166 open_bdev_exclusive(NULL, 0, NULL);
15176 cat - <<_ACEOF >conftest.h
15181 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15182 echo "obj-m := conftest.o" >build
/Makefile
15184 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15185 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15187 (eval $ac_try) 2>&5
15189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15190 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15192 (eval $ac_try) 2>&5
15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195 test $ac_status = 0; }; }; then :
15198 $as_echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.
$ac_ext >&5
15207 if test $rc -ne 0; then :
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15213 if test "x$enable_linux_builtin" != xyes
; then
15215 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15216 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15218 if test $rc -ne 0; then
15220 for file in fs
/block_dev.c
; do
15221 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15222 "$LINUX/$file" 2>/dev
/null
15224 if test $rc -eq 0; then
15229 if test $export -eq 0; then :
15239 if test $rc -ne 0; then :
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15247 $as_echo "yes" >&6; }
15249 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15257 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15261 cat confdefs.h
- <<_ACEOF >conftest.c
15264 #include <linux/fs.h>
15280 cat - <<_ACEOF >conftest.h
15285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15286 echo "obj-m := conftest.o" >build
/Makefile
15288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15291 (eval $ac_try) 2>&5
15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15296 (eval $ac_try) 2>&5
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; }; }; then :
15302 $as_echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.
$ac_ext >&5
15311 if test $rc -ne 0; then :
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314 $as_echo "no" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15316 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15320 cat confdefs.h
- <<_ACEOF >conftest.c
15323 #include <linux/fs.h>
15329 lookup_bdev(NULL, FMODE_READ);
15339 cat - <<_ACEOF >conftest.h
15344 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15345 echo "obj-m := conftest.o" >build
/Makefile
15347 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15348 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15350 (eval $ac_try) 2>&5
15352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15353 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15355 (eval $ac_try) 2>&5
15357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15358 test $ac_status = 0; }; }; then :
15361 $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.
$ac_ext >&5
15370 if test $rc -ne 0; then :
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15376 if test "x$enable_linux_builtin" != xyes
; then
15378 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15379 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15381 if test $rc -ne 0; then
15383 for file in fs
/block_dev.c
; do
15384 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15385 "$LINUX/$file" 2>/dev
/null
15387 if test $rc -eq 0; then
15392 if test $export -eq 0; then :
15402 if test $rc -ne 0; then :
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405 $as_echo "no" >&6; }
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15410 $as_echo "yes" >&6; }
15412 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15420 if test "x$enable_linux_builtin" != xyes
; then
15422 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15423 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15425 if test $rc -ne 0; then
15427 for file in fs
/block_dev.c
; do
15428 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15429 "$LINUX/$file" 2>/dev
/null
15431 if test $rc -eq 0; then
15436 if test $export -eq 0; then :
15446 if test $rc -ne 0; then :
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15451 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15455 cat confdefs.h
- <<_ACEOF >conftest.c
15458 #include <linux/fs.h>
15464 lookup_bdev(NULL, FMODE_READ);
15474 cat - <<_ACEOF >conftest.h
15479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15480 echo "obj-m := conftest.o" >build
/Makefile
15482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15485 (eval $ac_try) 2>&5
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15490 (eval $ac_try) 2>&5
15492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15493 test $ac_status = 0; }; }; then :
15496 $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.
$ac_ext >&5
15505 if test $rc -ne 0; then :
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15511 if test "x$enable_linux_builtin" != xyes
; then
15513 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15516 if test $rc -ne 0; then
15518 for file in fs
/block_dev.c
; do
15519 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15520 "$LINUX/$file" 2>/dev
/null
15522 if test $rc -eq 0; then
15527 if test $export -eq 0; then :
15537 if test $rc -ne 0; then :
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15545 $as_echo "yes" >&6; }
15547 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15557 $as_echo "yes" >&6; }
15559 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15568 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15571 cat confdefs.h
- <<_ACEOF >conftest.c
15574 #include <linux/buffer_head.h>
15580 struct block_device *bdev = NULL;
15581 invalidate_bdev(bdev);
15591 cat - <<_ACEOF >conftest.h
15596 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15597 echo "obj-m := conftest.o" >build
/Makefile
15599 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15600 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15602 (eval $ac_try) 2>&5
15604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15605 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15607 (eval $ac_try) 2>&5
15609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15610 test $ac_status = 0; }; }; then :
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15613 $as_echo "yes" >&6; }
15615 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15619 $as_echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.
$ac_ext >&5
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623 $as_echo "no" >&6; }
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15634 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15635 tmp_flags
="$EXTRA_KCFLAGS"
15636 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15639 cat confdefs.h
- <<_ACEOF >conftest.c
15642 #include <linux/blkdev.h>
15648 struct block_device *bdev = NULL;
15649 bdev_logical_block_size(bdev);
15659 cat - <<_ACEOF >conftest.h
15664 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15665 echo "obj-m := conftest.o" >build
/Makefile
15667 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15668 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15670 (eval $ac_try) 2>&5
15672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15675 (eval $ac_try) 2>&5
15677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15678 test $ac_status = 0; }; }; then :
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15681 $as_echo "yes" >&6; }
15683 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15687 $as_echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.
$ac_ext >&5
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15699 EXTRA_KCFLAGS
="$tmp_flags"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15703 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15704 tmp_flags
="$EXTRA_KCFLAGS"
15705 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15708 cat confdefs.h
- <<_ACEOF >conftest.c
15711 #include <linux/blkdev.h>
15717 struct block_device *bdev = NULL;
15718 bdev_physical_block_size(bdev);
15728 cat - <<_ACEOF >conftest.h
15733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15734 echo "obj-m := conftest.o" >build
/Makefile
15736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15739 (eval $ac_try) 2>&5
15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15744 (eval $ac_try) 2>&5
15746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15747 test $ac_status = 0; }; }; then :
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15750 $as_echo "yes" >&6; }
15752 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15756 $as_echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.
$ac_ext >&5
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760 $as_echo "no" >&6; }
15768 EXTRA_KCFLAGS
="$tmp_flags"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15772 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15775 cat confdefs.h
- <<_ACEOF >conftest.c
15778 #include <linux/bio.h>
15785 bio.bi_iter.bi_sector = 0;
15795 cat - <<_ACEOF >conftest.h
15800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15801 echo "obj-m := conftest.o" >build
/Makefile
15803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15806 (eval $ac_try) 2>&5
15808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15811 (eval $ac_try) 2>&5
15813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814 test $ac_status = 0; }; }; then :
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 $as_echo "yes" >&6; }
15819 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15823 $as_echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.
$ac_ext >&5
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15838 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15841 cat confdefs.h
- <<_ACEOF >conftest.c
15844 #include <linux/bio.h>
15850 int flags __attribute__ ((unused));
15851 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15852 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15853 (1 << BIO_RW_FAILFAST_DRIVER));
15863 cat - <<_ACEOF >conftest.h
15868 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15869 echo "obj-m := conftest.o" >build
/Makefile
15871 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15872 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15874 (eval $ac_try) 2>&5
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15879 (eval $ac_try) 2>&5
15881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882 test $ac_status = 0; }; }; then :
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 $as_echo "yes" >&6; }
15887 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15891 $as_echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.
$ac_ext >&5
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 $as_echo "no" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15906 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15909 cat confdefs.h
- <<_ACEOF >conftest.c
15912 #include <linux/bio.h>
15918 int flags __attribute__ ((unused));
15919 flags = REQ_FAILFAST_MASK;
15929 cat - <<_ACEOF >conftest.h
15934 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15935 echo "obj-m := conftest.o" >build
/Makefile
15937 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15938 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15940 (eval $ac_try) 2>&5
15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15945 (eval $ac_try) 2>&5
15947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15948 test $ac_status = 0; }; }; then :
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951 $as_echo "yes" >&6; }
15953 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15957 $as_echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.
$ac_ext >&5
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15972 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15975 cat confdefs.h
- <<_ACEOF >conftest.c
15978 #include <linux/blk_types.h>
15984 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
15994 cat - <<_ACEOF >conftest.h
15999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16000 echo "obj-m := conftest.o" >build
/Makefile
16002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16005 (eval $ac_try) 2>&5
16007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16010 (eval $ac_try) 2>&5
16012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013 test $ac_status = 0; }; }; then :
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16016 $as_echo "yes" >&6; }
16018 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16022 $as_echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.
$ac_ext >&5
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026 $as_echo "no" >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16037 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16040 cat confdefs.h
- <<_ACEOF >conftest.c
16043 #include <linux/blk_types.h>
16049 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16059 cat - <<_ACEOF >conftest.h
16064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16065 echo "obj-m := conftest.o" >build
/Makefile
16067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16070 (eval $ac_try) 2>&5
16072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16075 (eval $ac_try) 2>&5
16077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078 test $ac_status = 0; }; }; then :
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16081 $as_echo "yes" >&6; }
16083 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16087 $as_echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.
$ac_ext >&5
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16102 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16105 cat confdefs.h
- <<_ACEOF >conftest.c
16108 #include <linux/blk_types.h>
16114 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16124 cat - <<_ACEOF >conftest.h
16129 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16130 echo "obj-m := conftest.o" >build
/Makefile
16132 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16133 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16135 (eval $ac_try) 2>&5
16137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16140 (eval $ac_try) 2>&5
16142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16143 test $ac_status = 0; }; }; then :
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16146 $as_echo "yes" >&6; }
16148 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.
$ac_ext >&5
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156 $as_echo "no" >&6; }
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16167 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16170 cat confdefs.h
- <<_ACEOF >conftest.c
16173 #include <linux/bio.h>
16179 struct bio bio __attribute__ ((unused));
16190 cat - <<_ACEOF >conftest.h
16195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16196 echo "obj-m := conftest.o" >build
/Makefile
16198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16199 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16201 (eval $ac_try) 2>&5
16203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16204 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16206 (eval $ac_try) 2>&5
16208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16209 test $ac_status = 0; }; }; then :
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212 $as_echo "yes" >&6; }
16214 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16218 $as_echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.
$ac_ext >&5
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16233 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16236 cat confdefs.h
- <<_ACEOF >conftest.c
16239 #include <linux/bio.h>
16241 void wanted_end_io(struct bio *bio) { return; }
16243 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16258 cat - <<_ACEOF >conftest.h
16263 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16264 echo "obj-m := conftest.o" >build
/Makefile
16266 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16267 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16269 (eval $ac_try) 2>&5
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; }; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16280 $as_echo "yes" >&6; }
16282 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.
$ac_ext >&5
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16301 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16304 cat confdefs.h
- <<_ACEOF >conftest.c
16307 #include <linux/bio.h>
16313 int flags __attribute__ ((unused));
16314 flags = BIO_RW_BARRIER;
16324 cat - <<_ACEOF >conftest.h
16329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16330 echo "obj-m := conftest.o" >build
/Makefile
16332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16335 (eval $ac_try) 2>&5
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16340 (eval $ac_try) 2>&5
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }; }; then :
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16348 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.
$ac_ext >&5
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16367 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16370 cat confdefs.h
- <<_ACEOF >conftest.c
16373 #include <linux/bio.h>
16379 int flags __attribute__ ((unused));
16380 flags = BIO_RW_DISCARD;
16390 cat - <<_ACEOF >conftest.h
16395 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16396 echo "obj-m := conftest.o" >build
/Makefile
16398 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16399 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16401 (eval $ac_try) 2>&5
16403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16404 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16406 (eval $ac_try) 2>&5
16408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16409 test $ac_status = 0; }; }; then :
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16412 $as_echo "yes" >&6; }
16414 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16418 $as_echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.
$ac_ext >&5
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16433 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16434 tmp_flags
="$EXTRA_KCFLAGS"
16435 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16438 cat confdefs.h
- <<_ACEOF >conftest.c
16441 #include <linux/blkdev.h>
16447 struct request_queue *q = NULL;
16448 (void) blk_queue_flush(q, REQ_FLUSH);
16458 cat - <<_ACEOF >conftest.h
16463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16464 echo "obj-m := conftest.o" >build
/Makefile
16466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16467 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16469 (eval $ac_try) 2>&5
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16474 (eval $ac_try) 2>&5
16476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16477 test $ac_status = 0; }; }; then :
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 $as_echo "yes" >&6; }
16482 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16486 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16489 cat confdefs.h
- <<_ACEOF >conftest.c
16492 #include <linux/module.h>
16493 #include <linux/blkdev.h>
16495 MODULE_LICENSE("$ZFS_META_LICENSE");
16501 struct request_queue *q = NULL;
16502 (void) blk_queue_flush(q, REQ_FLUSH);
16512 cat - <<_ACEOF >conftest.h
16517 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16518 echo "obj-m := conftest.o" >build
/Makefile
16520 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16521 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16523 (eval $ac_try) 2>&5
16525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16526 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16528 (eval $ac_try) 2>&5
16530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531 test $ac_status = 0; }; }; then :
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16537 $as_echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.
$ac_ext >&5
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541 $as_echo "yes" >&6; }
16543 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16554 $as_echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.
$ac_ext >&5
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558 $as_echo "no" >&6; }
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16568 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16571 cat confdefs.h
- <<_ACEOF >conftest.c
16574 #include <linux/kernel.h>
16575 #include <linux/blkdev.h>
16582 struct request_queue *q = NULL;
16583 blk_queue_write_cache(q, true, true);
16593 cat - <<_ACEOF >conftest.h
16598 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16599 echo "obj-m := conftest.o" >build
/Makefile
16601 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16602 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16604 (eval $ac_try) 2>&5
16606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16607 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16609 (eval $ac_try) 2>&5
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; }; }; then :
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615 $as_echo "yes" >&6; }
16617 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16621 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16624 cat confdefs.h
- <<_ACEOF >conftest.c
16627 #include <linux/kernel.h>
16628 #include <linux/module.h>
16629 #include <linux/blkdev.h>
16631 MODULE_LICENSE("$ZFS_META_LICENSE");
16637 struct request_queue *q = NULL;
16638 blk_queue_write_cache(q, true, true);
16648 cat - <<_ACEOF >conftest.h
16653 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16654 echo "obj-m := conftest.o" >build
/Makefile
16656 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16657 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16659 (eval $ac_try) 2>&5
16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16662 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16664 (eval $ac_try) 2>&5
16666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16667 test $ac_status = 0; }; }; then :
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16673 $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.
$ac_ext >&5
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16677 $as_echo "yes" >&6; }
16679 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16690 $as_echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.
$ac_ext >&5
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16703 EXTRA_KCFLAGS
="$tmp_flags"
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16707 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16708 tmp_flags
="$EXTRA_KCFLAGS"
16709 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16712 cat confdefs.h
- <<_ACEOF >conftest.c
16715 #include <linux/blkdev.h>
16721 struct request_queue *q = NULL;
16722 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16732 cat - <<_ACEOF >conftest.h
16737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16738 echo "obj-m := conftest.o" >build
/Makefile
16740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16743 (eval $ac_try) 2>&5
16745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16748 (eval $ac_try) 2>&5
16750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16751 test $ac_status = 0; }; }; then :
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16754 $as_echo "yes" >&6; }
16756 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16760 $as_echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.
$ac_ext >&5
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16772 EXTRA_KCFLAGS
="$tmp_flags"
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16776 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16777 tmp_flags
="$EXTRA_KCFLAGS"
16778 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16781 cat confdefs.h
- <<_ACEOF >conftest.c
16784 #include <linux/blkdev.h>
16790 struct request_queue *q = NULL;
16791 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16801 cat - <<_ACEOF >conftest.h
16806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16807 echo "obj-m := conftest.o" >build
/Makefile
16809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16812 (eval $ac_try) 2>&5
16814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16817 (eval $ac_try) 2>&5
16819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16820 test $ac_status = 0; }; }; then :
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16823 $as_echo "yes" >&6; }
16825 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16829 $as_echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.
$ac_ext >&5
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833 $as_echo "no" >&6; }
16841 EXTRA_KCFLAGS
="$tmp_flags"
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16845 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
16846 tmp_flags
="$EXTRA_KCFLAGS"
16847 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16850 cat confdefs.h
- <<_ACEOF >conftest.c
16853 #include <linux/blkdev.h>
16859 extern enum bio_rw_flags rw;
16861 rw = BIO_RW_UNPLUG;
16871 cat - <<_ACEOF >conftest.h
16876 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16877 echo "obj-m := conftest.o" >build
/Makefile
16879 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16880 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16882 (eval $ac_try) 2>&5
16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16887 (eval $ac_try) 2>&5
16889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16890 test $ac_status = 0; }; }; then :
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893 $as_echo "yes" >&6; }
16895 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16899 $as_echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.
$ac_ext >&5
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903 $as_echo "no" >&6; }
16911 EXTRA_KCFLAGS
="$tmp_flags"
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
16915 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
16916 tmp_flags
="$EXTRA_KCFLAGS"
16917 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16920 cat confdefs.h
- <<_ACEOF >conftest.c
16923 #include <linux/blkdev.h>
16929 struct blk_plug plug;
16931 blk_start_plug(&plug);
16932 blk_finish_plug(&plug);
16942 cat - <<_ACEOF >conftest.h
16947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16948 echo "obj-m := conftest.o" >build
/Makefile
16950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16951 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16953 (eval $ac_try) 2>&5
16955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16956 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16958 (eval $ac_try) 2>&5
16960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961 test $ac_status = 0; }; }; then :
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16964 $as_echo "yes" >&6; }
16966 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
16970 $as_echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.
$ac_ext >&5
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16982 EXTRA_KCFLAGS
="$tmp_flags"
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16986 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16987 tmp_flags
="$EXTRA_KCFLAGS"
16988 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16991 cat confdefs.h
- <<_ACEOF >conftest.c
16994 #include <linux/blkdev.h>
17000 struct gendisk *disk = NULL;
17001 (void) get_disk_ro(disk);
17011 cat - <<_ACEOF >conftest.h
17016 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17017 echo "obj-m := conftest.o" >build
/Makefile
17019 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17020 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17022 (eval $ac_try) 2>&5
17024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17025 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17027 (eval $ac_try) 2>&5
17029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17030 test $ac_status = 0; }; }; then :
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17033 $as_echo "yes" >&6; }
17035 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17039 $as_echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.
$ac_ext >&5
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 $as_echo "no" >&6; }
17051 EXTRA_KCFLAGS
="$tmp_flags"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17054 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17058 cat confdefs.h
- <<_ACEOF >conftest.c
17061 #include <linux/genhd.h>
17067 get_gendisk(0, NULL);
17077 cat - <<_ACEOF >conftest.h
17082 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17083 echo "obj-m := conftest.o" >build
/Makefile
17085 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17086 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17088 (eval $ac_try) 2>&5
17090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17091 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17093 (eval $ac_try) 2>&5
17095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17096 test $ac_status = 0; }; }; then :
17099 $as_echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.
$ac_ext >&5
17108 if test $rc -ne 0; then :
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 $as_echo "no" >&6; }
17114 if test "x$enable_linux_builtin" != xyes
; then
17116 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17117 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17119 if test $rc -ne 0; then
17121 for file in block
/genhd.c
; do
17122 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17123 "$LINUX/$file" 2>/dev
/null
17125 if test $rc -eq 0; then
17130 if test $export -eq 0; then :
17140 if test $rc -ne 0; then :
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143 $as_echo "no" >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17148 $as_echo "yes" >&6; }
17150 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17159 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17162 cat confdefs.h
- <<_ACEOF >conftest.c
17165 #include <linux/bio.h>
17171 struct bio *bio __attribute__ ((unused)) = NULL;
17173 bio_set_op_attrs(bio, 0, 0);
17183 cat - <<_ACEOF >conftest.h
17188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17189 echo "obj-m := conftest.o" >build
/Makefile
17191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17194 (eval $ac_try) 2>&5
17196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17199 (eval $ac_try) 2>&5
17201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17202 test $ac_status = 0; }; }; then :
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17205 $as_echo "yes" >&6; }
17207 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.
$ac_ext >&5
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17226 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17229 cat confdefs.h
- <<_ACEOF >conftest.c
17232 #include <linux/fs.h>
17238 int i __attribute__ ((unused));
17240 i = generic_readlink(NULL, NULL, 0);
17250 cat - <<_ACEOF >conftest.h
17255 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17256 echo "obj-m := conftest.o" >build
/Makefile
17258 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17259 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17261 (eval $ac_try) 2>&5
17263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17264 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17266 (eval $ac_try) 2>&5
17268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17269 test $ac_status = 0; }; }; then :
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272 $as_echo "yes" >&6; }
17274 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17278 $as_echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.
$ac_ext >&5
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17293 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17296 cat confdefs.h
- <<_ACEOF >conftest.c
17299 #include <linux/blkdev.h>
17305 struct queue_limits ql __attribute__ ((unused));
17307 ql.discard_granularity = 0;
17317 cat - <<_ACEOF >conftest.h
17322 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17323 echo "obj-m := conftest.o" >build
/Makefile
17325 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17326 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17328 (eval $ac_try) 2>&5
17330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17331 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17333 (eval $ac_try) 2>&5
17335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17336 test $ac_status = 0; }; }; then :
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17339 $as_echo "yes" >&6; }
17341 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17345 $as_echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.
$ac_ext >&5
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17360 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17363 cat confdefs.h
- <<_ACEOF >conftest.c
17366 #include <linux/fs.h>
17367 #include <linux/xattr.h>
17369 const struct xattr_handler xattr_test_handler = {
17375 const struct xattr_handler *xattr_handlers[] = {
17376 &xattr_test_handler,
17379 const struct super_block sb __attribute__ ((unused)) = {
17380 .s_xattr = xattr_handlers,
17396 cat - <<_ACEOF >conftest.h
17401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17402 echo "obj-m := conftest.o" >build
/Makefile
17404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17407 (eval $ac_try) 2>&5
17409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17412 (eval $ac_try) 2>&5
17414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415 test $ac_status = 0; }; }; then :
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17418 $as_echo "yes" >&6; }
17420 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17424 $as_echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.
$ac_ext >&5
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428 $as_echo "no" >&6; }
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17439 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17442 cat confdefs.h
- <<_ACEOF >conftest.c
17445 #include <linux/xattr.h>
17447 static const struct xattr_handler
17448 xops __attribute__ ((unused)) = {
17449 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17465 cat - <<_ACEOF >conftest.h
17470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17471 echo "obj-m := conftest.o" >build
/Makefile
17473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17476 (eval $ac_try) 2>&5
17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17481 (eval $ac_try) 2>&5
17483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17484 test $ac_status = 0; }; }; then :
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17487 $as_echo "yes" >&6; }
17489 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17493 $as_echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.
$ac_ext >&5
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 $as_echo "no" >&6; }
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17508 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17511 cat confdefs.h
- <<_ACEOF >conftest.c
17514 #include <linux/xattr.h>
17516 int get(const struct xattr_handler *handler,
17517 struct dentry *dentry, struct inode *inode,
17518 const char *name, void *buffer, size_t size) { return 0; }
17519 static const struct xattr_handler
17520 xops __attribute__ ((unused)) = {
17537 cat - <<_ACEOF >conftest.h
17542 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17543 echo "obj-m := conftest.o" >build
/Makefile
17545 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17546 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17548 (eval $ac_try) 2>&5
17550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17551 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17553 (eval $ac_try) 2>&5
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; }; }; then :
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17559 $as_echo "yes" >&6; }
17561 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17565 $as_echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17569 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17572 cat confdefs.h
- <<_ACEOF >conftest.c
17575 #include <linux/xattr.h>
17577 int get(const struct xattr_handler *handler,
17578 struct dentry *dentry, const char *name,
17579 void *buffer, size_t size) { return 0; }
17580 static const struct xattr_handler
17581 xops __attribute__ ((unused)) = {
17598 cat - <<_ACEOF >conftest.h
17603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17604 echo "obj-m := conftest.o" >build
/Makefile
17606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17609 (eval $ac_try) 2>&5
17611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17614 (eval $ac_try) 2>&5
17616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17617 test $ac_status = 0; }; }; then :
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17620 $as_echo "yes" >&6; }
17622 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17626 $as_echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.
$ac_ext >&5
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630 $as_echo "no" >&6; }
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17632 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17635 cat confdefs.h
- <<_ACEOF >conftest.c
17638 #include <linux/xattr.h>
17640 int get(struct dentry *dentry, const char *name,
17641 void *buffer, size_t size, int handler_flags)
17643 static const struct xattr_handler
17644 xops __attribute__ ((unused)) = {
17661 cat - <<_ACEOF >conftest.h
17666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17667 echo "obj-m := conftest.o" >build
/Makefile
17669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17672 (eval $ac_try) 2>&5
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17677 (eval $ac_try) 2>&5
17679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680 test $ac_status = 0; }; }; then :
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17683 $as_echo "yes" >&6; }
17685 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17689 $as_echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.
$ac_ext >&5
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17693 $as_echo "no" >&6; }
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17695 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17698 cat confdefs.h
- <<_ACEOF >conftest.c
17701 #include <linux/xattr.h>
17703 int get(struct inode *ip, const char *name,
17704 void *buffer, size_t size) { return 0; }
17705 static const struct xattr_handler
17706 xops __attribute__ ((unused)) = {
17723 cat - <<_ACEOF >conftest.h
17728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17729 echo "obj-m := conftest.o" >build
/Makefile
17731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17732 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17734 (eval $ac_try) 2>&5
17736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17737 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17739 (eval $ac_try) 2>&5
17741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17742 test $ac_status = 0; }; }; then :
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17745 $as_echo "yes" >&6; }
17747 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17751 $as_echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.
$ac_ext >&5
17754 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17786 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17789 cat confdefs.h
- <<_ACEOF >conftest.c
17792 #include <linux/xattr.h>
17794 int set(const struct xattr_handler *handler,
17795 struct dentry *dentry, struct inode *inode,
17796 const char *name, const void *buffer,
17797 size_t size, int flags)
17799 static const struct xattr_handler
17800 xops __attribute__ ((unused)) = {
17817 cat - <<_ACEOF >conftest.h
17822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17823 echo "obj-m := conftest.o" >build
/Makefile
17825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17828 (eval $ac_try) 2>&5
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17833 (eval $ac_try) 2>&5
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; }; then :
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17839 $as_echo "yes" >&6; }
17841 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
17849 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
17852 cat confdefs.h
- <<_ACEOF >conftest.c
17855 #include <linux/xattr.h>
17857 int set(const struct xattr_handler *handler,
17858 struct dentry *dentry, const char *name,
17859 const void *buffer, size_t size, int flags)
17861 static const struct xattr_handler
17862 xops __attribute__ ((unused)) = {
17879 cat - <<_ACEOF >conftest.h
17884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17885 echo "obj-m := conftest.o" >build
/Makefile
17887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17890 (eval $ac_try) 2>&5
17892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17895 (eval $ac_try) 2>&5
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; }; then :
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17901 $as_echo "yes" >&6; }
17903 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
17907 $as_echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.
$ac_ext >&5
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911 $as_echo "no" >&6; }
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
17913 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17916 cat confdefs.h
- <<_ACEOF >conftest.c
17919 #include <linux/xattr.h>
17921 int set(struct dentry *dentry, const char *name,
17922 const void *buffer, size_t size, int flags,
17923 int handler_flags) { return 0; }
17924 static const struct xattr_handler
17925 xops __attribute__ ((unused)) = {
17942 cat - <<_ACEOF >conftest.h
17947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17948 echo "obj-m := conftest.o" >build
/Makefile
17950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17951 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17953 (eval $ac_try) 2>&5
17955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17956 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17958 (eval $ac_try) 2>&5
17960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; }; }; then :
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17964 $as_echo "yes" >&6; }
17966 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
17970 $as_echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.
$ac_ext >&5
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17974 $as_echo "no" >&6; }
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
17976 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
17979 cat confdefs.h
- <<_ACEOF >conftest.c
17982 #include <linux/xattr.h>
17984 int set(struct inode *ip, const char *name,
17985 const void *buffer, size_t size, int flags)
17987 static const struct xattr_handler
17988 xops __attribute__ ((unused)) = {
18005 cat - <<_ACEOF >conftest.h
18010 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18011 echo "obj-m := conftest.o" >build
/Makefile
18013 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18014 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18016 (eval $ac_try) 2>&5
18018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18019 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18021 (eval $ac_try) 2>&5
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; }; }; then :
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18029 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18033 $as_echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.
$ac_ext >&5
18036 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18068 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18071 cat confdefs.h
- <<_ACEOF >conftest.c
18074 #include <linux/xattr.h>
18076 bool list(struct dentry *dentry) { return 0; }
18077 static const struct xattr_handler
18078 xops __attribute__ ((unused)) = {
18095 cat - <<_ACEOF >conftest.h
18100 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18101 echo "obj-m := conftest.o" >build
/Makefile
18103 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18104 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18106 (eval $ac_try) 2>&5
18108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18109 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18111 (eval $ac_try) 2>&5
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; }; }; then :
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18117 $as_echo "yes" >&6; }
18119 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18123 $as_echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.
$ac_ext >&5
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18127 $as_echo "no" >&6; }
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18129 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18132 cat confdefs.h
- <<_ACEOF >conftest.c
18135 #include <linux/xattr.h>
18137 size_t list(const struct xattr_handler *handler,
18138 struct dentry *dentry, char *list, size_t list_size,
18139 const char *name, size_t name_len) { return 0; }
18140 static const struct xattr_handler
18141 xops __attribute__ ((unused)) = {
18158 cat - <<_ACEOF >conftest.h
18163 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18164 echo "obj-m := conftest.o" >build
/Makefile
18166 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18167 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18169 (eval $ac_try) 2>&5
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; }; then :
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180 $as_echo "yes" >&6; }
18182 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18186 $as_echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.
$ac_ext >&5
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18192 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18195 cat confdefs.h
- <<_ACEOF >conftest.c
18198 #include <linux/xattr.h>
18200 size_t list(struct dentry *dentry,
18201 char *list, size_t list_size,
18202 const char *name, size_t name_len,
18203 int handler_flags) { return 0; }
18204 static const struct xattr_handler
18205 xops __attribute__ ((unused)) = {
18222 cat - <<_ACEOF >conftest.h
18227 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18228 echo "obj-m := conftest.o" >build
/Makefile
18230 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18231 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18233 (eval $ac_try) 2>&5
18235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18236 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18238 (eval $ac_try) 2>&5
18240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241 test $ac_status = 0; }; }; then :
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244 $as_echo "yes" >&6; }
18246 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18250 $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.
$ac_ext >&5
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254 $as_echo "no" >&6; }
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18256 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18259 cat confdefs.h
- <<_ACEOF >conftest.c
18262 #include <linux/xattr.h>
18264 size_t list(struct inode *ip, char *lst,
18265 size_t list_size, const char *name,
18266 size_t name_len) { return 0; }
18267 static const struct xattr_handler
18268 xops __attribute__ ((unused)) = {
18285 cat - <<_ACEOF >conftest.h
18290 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18291 echo "obj-m := conftest.o" >build
/Makefile
18293 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18294 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18296 (eval $ac_try) 2>&5
18298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18299 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18301 (eval $ac_try) 2>&5
18303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18304 test $ac_status = 0; }; }; then :
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18307 $as_echo "yes" >&6; }
18309 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18313 $as_echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.
$ac_ext >&5
18316 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18348 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18351 cat confdefs.h
- <<_ACEOF >conftest.c
18354 #include <linux/fs.h>
18360 struct inode *ip = NULL;
18361 (void) inode_owner_or_capable(ip);
18371 cat - <<_ACEOF >conftest.h
18376 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18377 echo "obj-m := conftest.o" >build
/Makefile
18379 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18380 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18382 (eval $ac_try) 2>&5
18384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18385 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18387 (eval $ac_try) 2>&5
18389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18390 test $ac_status = 0; }; }; then :
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18393 $as_echo "yes" >&6; }
18395 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18399 $as_echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.
$ac_ext >&5
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403 $as_echo "no" >&6; }
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18405 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18408 cat confdefs.h
- <<_ACEOF >conftest.c
18411 #include <linux/fs.h>
18412 #include <linux/sched.h>
18418 struct inode *ip = NULL;
18419 (void) is_owner_or_cap(ip);
18429 cat - <<_ACEOF >conftest.h
18434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18435 echo "obj-m := conftest.o" >build
/Makefile
18437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18440 (eval $ac_try) 2>&5
18442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18445 (eval $ac_try) 2>&5
18447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18448 test $ac_status = 0; }; }; then :
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18451 $as_echo "yes" >&6; }
18453 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18457 $as_echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.
$ac_ext >&5
18460 as_fn_error $?
"no - Please file a bug report at
18461 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18479 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18482 cat confdefs.h
- <<_ACEOF >conftest.c
18485 #include <linux/cred.h>
18486 #include <linux/fs.h>
18487 #include <linux/posix_acl_xattr.h>
18493 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18503 cat - <<_ACEOF >conftest.h
18508 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18509 echo "obj-m := conftest.o" >build
/Makefile
18511 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18512 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18514 (eval $ac_try) 2>&5
18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18519 (eval $ac_try) 2>&5
18521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18522 test $ac_status = 0; }; }; then :
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18525 $as_echo "yes" >&6; }
18527 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18531 $as_echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.
$ac_ext >&5
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18535 $as_echo "no" >&6; }
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18546 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18549 cat confdefs.h
- <<_ACEOF >conftest.c
18552 #include <linux/cred.h>
18553 #include <linux/fs.h>
18554 #include <linux/posix_acl.h>
18560 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18561 posix_acl_release(tmp);
18571 cat - <<_ACEOF >conftest.h
18576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18577 echo "obj-m := conftest.o" >build
/Makefile
18579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18580 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18582 (eval $ac_try) 2>&5
18584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18587 (eval $ac_try) 2>&5
18589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590 test $ac_status = 0; }; }; then :
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18593 $as_echo "yes" >&6; }
18595 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18599 $as_echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.
$ac_ext >&5
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603 $as_echo "no" >&6; }
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18613 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18616 cat confdefs.h
- <<_ACEOF >conftest.c
18619 #include <linux/cred.h>
18620 #include <linux/fs.h>
18621 #include <linux/posix_acl.h>
18623 MODULE_LICENSE("$ZFS_META_LICENSE");
18629 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18630 posix_acl_release(tmp);
18640 cat - <<_ACEOF >conftest.h
18645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18646 echo "obj-m := conftest.o" >build
/Makefile
18648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18651 (eval $ac_try) 2>&5
18653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18654 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18656 (eval $ac_try) 2>&5
18658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18659 test $ac_status = 0; }; }; then :
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18665 $as_echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.
$ac_ext >&5
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18669 $as_echo "yes" >&6; }
18671 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18683 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18686 cat confdefs.h
- <<_ACEOF >conftest.c
18689 #include <linux/module.h>
18690 #include <linux/cred.h>
18691 #include <linux/fs.h>
18692 #include <linux/posix_acl.h>
18694 MODULE_LICENSE("$ZFS_META_LICENSE");
18700 struct inode *ip = NULL;
18701 struct posix_acl *acl = posix_acl_alloc(1, 0);
18702 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18703 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18713 cat - <<_ACEOF >conftest.h
18718 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18719 echo "obj-m := conftest.o" >build
/Makefile
18721 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18722 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18724 (eval $ac_try) 2>&5
18726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18727 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18729 (eval $ac_try) 2>&5
18731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18732 test $ac_status = 0; }; }; then :
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18735 $as_echo "yes" >&6; }
18737 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18741 $as_echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.
$ac_ext >&5
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745 $as_echo "no" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18756 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18759 cat confdefs.h
- <<_ACEOF >conftest.c
18762 #include <linux/fs.h>
18763 #include <linux/posix_acl.h>
18769 posix_acl_chmod(NULL, 0, 0)
18779 cat - <<_ACEOF >conftest.h
18784 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18785 echo "obj-m := conftest.o" >build
/Makefile
18787 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18788 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18790 (eval $ac_try) 2>&5
18792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18793 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18795 (eval $ac_try) 2>&5
18797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18798 test $ac_status = 0; }; }; then :
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18801 $as_echo "yes" >&6; }
18803 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18807 $as_echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.
$ac_ext >&5
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18811 $as_echo "no" >&6; }
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18821 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18824 cat confdefs.h
- <<_ACEOF >conftest.c
18827 #include <linux/fs.h>
18828 #include <linux/posix_acl.h>
18834 __posix_acl_chmod(NULL, 0, 0)
18844 cat - <<_ACEOF >conftest.h
18849 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18850 echo "obj-m := conftest.o" >build
/Makefile
18852 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18853 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18855 (eval $ac_try) 2>&5
18857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18858 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18860 (eval $ac_try) 2>&5
18862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18863 test $ac_status = 0; }; }; then :
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18866 $as_echo "yes" >&6; }
18868 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18872 $as_echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.
$ac_ext >&5
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876 $as_echo "no" >&6; }
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18887 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18890 cat confdefs.h
- <<_ACEOF >conftest.c
18893 #include <linux/fs.h>
18894 #include <linux/posix_acl.h>
18901 posix_acl_equiv_mode(NULL,&tmp);
18911 cat - <<_ACEOF >conftest.h
18916 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18917 echo "obj-m := conftest.o" >build
/Makefile
18919 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18920 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18922 (eval $ac_try) 2>&5
18924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18925 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18927 (eval $ac_try) 2>&5
18929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18930 test $ac_status = 0; }; }; then :
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18933 $as_echo "yes" >&6; }
18935 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
18939 $as_echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.
$ac_ext >&5
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 $as_echo "no" >&6; }
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
18954 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
18957 cat confdefs.h
- <<_ACEOF >conftest.c
18960 #include <linux/fs.h>
18961 #include <linux/posix_acl.h>
18967 struct user_namespace *user_ns = NULL;
18968 const struct posix_acl *acl = NULL;
18971 error = posix_acl_valid(user_ns, acl);
18981 cat - <<_ACEOF >conftest.h
18986 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18987 echo "obj-m := conftest.o" >build
/Makefile
18989 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18990 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18992 (eval $ac_try) 2>&5
18994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18995 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18997 (eval $ac_try) 2>&5
18999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19000 test $ac_status = 0; }; }; then :
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19005 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19009 $as_echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.
$ac_ext >&5
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013 $as_echo "no" >&6; }
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19024 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19027 cat confdefs.h
- <<_ACEOF >conftest.c
19030 #include <linux/fs.h>
19032 int permission_fn(struct inode *inode, int mask) { return 0; }
19034 static const struct inode_operations
19035 iops __attribute__ ((unused)) = {
19036 .permission = permission_fn,
19052 cat - <<_ACEOF >conftest.h
19057 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19058 echo "obj-m := conftest.o" >build
/Makefile
19060 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19061 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19063 (eval $ac_try) 2>&5
19065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19066 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19068 (eval $ac_try) 2>&5
19070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19071 test $ac_status = 0; }; }; then :
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19074 $as_echo "yes" >&6; }
19076 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19080 $as_echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.
$ac_ext >&5
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19084 $as_echo "no" >&6; }
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19095 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19098 cat confdefs.h
- <<_ACEOF >conftest.c
19101 #include <linux/fs.h>
19103 int permission_fn(struct inode *inode, int mask,
19104 struct nameidata *nd) { return 0; }
19106 static const struct inode_operations
19107 iops __attribute__ ((unused)) = {
19108 .permission = permission_fn,
19124 cat - <<_ACEOF >conftest.h
19129 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19130 echo "obj-m := conftest.o" >build
/Makefile
19132 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19133 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19135 (eval $ac_try) 2>&5
19137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19138 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19140 (eval $ac_try) 2>&5
19142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19143 test $ac_status = 0; }; }; then :
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19146 $as_echo "yes" >&6; }
19148 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19151 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19155 $as_echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.
$ac_ext >&5
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19159 $as_echo "no" >&6; }
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19170 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19173 cat confdefs.h
- <<_ACEOF >conftest.c
19176 #include <linux/fs.h>
19178 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19180 static const struct inode_operations
19181 iops __attribute__ ((unused)) = {
19182 .check_acl = check_acl_fn,
19198 cat - <<_ACEOF >conftest.h
19203 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19204 echo "obj-m := conftest.o" >build
/Makefile
19206 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19207 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19209 (eval $ac_try) 2>&5
19211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19212 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19214 (eval $ac_try) 2>&5
19216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19217 test $ac_status = 0; }; }; then :
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19222 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19226 $as_echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19241 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19244 cat confdefs.h
- <<_ACEOF >conftest.c
19247 #include <linux/fs.h>
19249 int check_acl_fn(struct inode *inode, int mask,
19250 unsigned int flags) { return 0; }
19252 static const struct inode_operations
19253 iops __attribute__ ((unused)) = {
19254 .check_acl = check_acl_fn,
19270 cat - <<_ACEOF >conftest.h
19275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19276 echo "obj-m := conftest.o" >build
/Makefile
19278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19281 (eval $ac_try) 2>&5
19283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19286 (eval $ac_try) 2>&5
19288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19289 test $ac_status = 0; }; }; then :
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292 $as_echo "yes" >&6; }
19294 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19297 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19301 $as_echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.
$ac_ext >&5
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19316 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19319 cat confdefs.h
- <<_ACEOF >conftest.c
19322 #include <linux/fs.h>
19324 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19327 static const struct inode_operations
19328 iops __attribute__ ((unused)) = {
19329 .get_acl = get_acl_fn,
19345 cat - <<_ACEOF >conftest.h
19350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19351 echo "obj-m := conftest.o" >build
/Makefile
19353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19356 (eval $ac_try) 2>&5
19358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19361 (eval $ac_try) 2>&5
19363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19364 test $ac_status = 0; }; }; then :
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367 $as_echo "yes" >&6; }
19369 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19373 $as_echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.
$ac_ext >&5
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377 $as_echo "no" >&6; }
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19388 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19391 cat confdefs.h
- <<_ACEOF >conftest.c
19394 #include <linux/fs.h>
19396 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19399 static const struct inode_operations
19400 iops __attribute__ ((unused)) = {
19401 .set_acl = set_acl_fn,
19417 cat - <<_ACEOF >conftest.h
19422 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19423 echo "obj-m := conftest.o" >build
/Makefile
19425 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19426 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19428 (eval $ac_try) 2>&5
19430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19431 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19433 (eval $ac_try) 2>&5
19435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19436 test $ac_status = 0; }; }; then :
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439 $as_echo "yes" >&6; }
19441 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19445 $as_echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.
$ac_ext >&5
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449 $as_echo "no" >&6; }
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19461 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19464 cat confdefs.h
- <<_ACEOF >conftest.c
19467 #include <linux/fs.h>
19470 const struct path *p, struct kstat *k,
19471 u32 request_mask, unsigned int query_flags)
19474 static const struct inode_operations
19475 iops __attribute__ ((unused)) = {
19476 .getattr = test_getattr,
19492 cat - <<_ACEOF >conftest.h
19497 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19498 echo "obj-m := conftest.o" >build
/Makefile
19500 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19501 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19503 (eval $ac_try) 2>&5
19505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19506 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19508 (eval $ac_try) 2>&5
19510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19511 test $ac_status = 0; }; }; then :
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514 $as_echo "yes" >&6; }
19516 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19520 $as_echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.
$ac_ext >&5
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524 $as_echo "no" >&6; }
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19535 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19538 cat confdefs.h
- <<_ACEOF >conftest.c
19541 #include <linux/fs.h>
19544 struct vfsmount *mnt, struct dentry *d,
19548 static const struct inode_operations
19549 iops __attribute__ ((unused)) = {
19550 .getattr = test_getattr,
19566 cat - <<_ACEOF >conftest.h
19571 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19572 echo "obj-m := conftest.o" >build
/Makefile
19574 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19575 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19577 (eval $ac_try) 2>&5
19579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19580 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19582 (eval $ac_try) 2>&5
19584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19585 test $ac_status = 0; }; }; then :
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 $as_echo "yes" >&6; }
19590 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19594 $as_echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.
$ac_ext >&5
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19598 $as_echo "no" >&6; }
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19610 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19613 cat confdefs.h
- <<_ACEOF >conftest.c
19616 #include <linux/fs.h>
19622 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19632 cat - <<_ACEOF >conftest.h
19637 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19638 echo "obj-m := conftest.o" >build
/Makefile
19640 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19641 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19643 (eval $ac_try) 2>&5
19645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19646 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19648 (eval $ac_try) 2>&5
19650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19651 test $ac_status = 0; }; }; then :
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19654 $as_echo "yes" >&6; }
19656 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19660 $as_echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.
$ac_ext >&5
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664 $as_echo "no" >&6; }
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19675 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19679 cat confdefs.h
- <<_ACEOF >conftest.c
19682 #include <linux/fs.h>
19684 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19685 static struct super_operations sops __attribute__ ((unused)) = {
19686 .show_options = show_options,
19702 cat - <<_ACEOF >conftest.h
19707 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19708 echo "obj-m := conftest.o" >build
/Makefile
19710 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19711 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19713 (eval $ac_try) 2>&5
19715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19716 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19718 (eval $ac_try) 2>&5
19720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19721 test $ac_status = 0; }; }; then :
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19724 $as_echo "yes" >&6; }
19726 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19730 $as_echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.
$ac_ext >&5
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19734 $as_echo "no" >&6; }
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19745 $as_echo_n "checking whether file_inode() is available... " >&6; }
19748 cat confdefs.h
- <<_ACEOF >conftest.c
19751 #include <linux/fs.h>
19757 struct file *f = NULL;
19768 cat - <<_ACEOF >conftest.h
19773 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19774 echo "obj-m := conftest.o" >build
/Makefile
19776 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19777 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19779 (eval $ac_try) 2>&5
19781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19784 (eval $ac_try) 2>&5
19786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19787 test $ac_status = 0; }; }; then :
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19790 $as_echo "yes" >&6; }
19792 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
19796 $as_echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.
$ac_ext >&5
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19800 $as_echo "no" >&6; }
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
19811 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19815 cat confdefs.h
- <<_ACEOF >conftest.c
19818 #include <linux/fs.h>
19820 int test_fsync(struct file *f, struct dentry *dentry, int x)
19823 static const struct file_operations
19824 fops __attribute__ ((unused)) = {
19825 .fsync = test_fsync,
19841 cat - <<_ACEOF >conftest.h
19846 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19847 echo "obj-m := conftest.o" >build
/Makefile
19849 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19850 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19852 (eval $ac_try) 2>&5
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19857 (eval $ac_try) 2>&5
19859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860 test $ac_status = 0; }; }; then :
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
19863 $as_echo "dentry" >&6; }
19865 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
19869 $as_echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.
$ac_ext >&5
19883 cat confdefs.h
- <<_ACEOF >conftest.c
19886 #include <linux/fs.h>
19888 int test_fsync(struct file *f, int x) { return 0; }
19890 static const struct file_operations
19891 fops __attribute__ ((unused)) = {
19892 .fsync = test_fsync,
19908 cat - <<_ACEOF >conftest.h
19913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19914 echo "obj-m := conftest.o" >build
/Makefile
19916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19919 (eval $ac_try) 2>&5
19921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19924 (eval $ac_try) 2>&5
19926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19927 test $ac_status = 0; }; }; then :
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
19930 $as_echo "no dentry" >&6; }
19932 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
19936 $as_echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.
$ac_ext >&5
19950 cat confdefs.h
- <<_ACEOF >conftest.c
19953 #include <linux/fs.h>
19955 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
19958 static const struct file_operations
19959 fops __attribute__ ((unused)) = {
19960 .fsync = test_fsync,
19976 cat - <<_ACEOF >conftest.h
19981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19982 echo "obj-m := conftest.o" >build
/Makefile
19984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19985 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19987 (eval $ac_try) 2>&5
19989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19992 (eval $ac_try) 2>&5
19994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19995 test $ac_status = 0; }; }; then :
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
19998 $as_echo "range" >&6; }
20000 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20004 $as_echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.
$ac_ext >&5
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20018 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20021 cat confdefs.h
- <<_ACEOF >conftest.c
20024 #include <linux/fs.h>
20025 void evict_inode (struct inode * t) { return; }
20026 static struct super_operations sops __attribute__ ((unused)) = {
20027 .evict_inode = evict_inode,
20043 cat - <<_ACEOF >conftest.h
20048 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20049 echo "obj-m := conftest.o" >build
/Makefile
20051 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20052 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20054 (eval $ac_try) 2>&5
20056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20057 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20059 (eval $ac_try) 2>&5
20061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20062 test $ac_status = 0; }; }; then :
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20065 $as_echo "yes" >&6; }
20067 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20071 $as_echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.
$ac_ext >&5
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 $as_echo "no" >&6; }
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20086 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20089 cat confdefs.h
- <<_ACEOF >conftest.c
20092 #include <linux/fs.h>
20094 void dirty_inode(struct inode *a, int b) { return; }
20096 static const struct super_operations
20097 sops __attribute__ ((unused)) = {
20098 .dirty_inode = dirty_inode,
20114 cat - <<_ACEOF >conftest.h
20119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20120 echo "obj-m := conftest.o" >build
/Makefile
20122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20125 (eval $ac_try) 2>&5
20127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20130 (eval $ac_try) 2>&5
20132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20133 test $ac_status = 0; }; }; then :
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20136 $as_echo "yes" >&6; }
20138 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20142 $as_echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.
$ac_ext >&5
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20157 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20160 cat confdefs.h
- <<_ACEOF >conftest.c
20163 #include <linux/fs.h>
20165 int nr_cached_objects(struct super_block *sb) { return 0; }
20167 static const struct super_operations
20168 sops __attribute__ ((unused)) = {
20169 .nr_cached_objects = nr_cached_objects,
20185 cat - <<_ACEOF >conftest.h
20190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20191 echo "obj-m := conftest.o" >build
/Makefile
20193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20196 (eval $ac_try) 2>&5
20198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20201 (eval $ac_try) 2>&5
20203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20204 test $ac_status = 0; }; }; then :
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20207 $as_echo "yes" >&6; }
20209 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20213 $as_echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.
$ac_ext >&5
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20217 $as_echo "no" >&6; }
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20228 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20231 cat confdefs.h
- <<_ACEOF >conftest.c
20234 #include <linux/fs.h>
20236 void free_cached_objects(struct super_block *sb, int x)
20239 static const struct super_operations
20240 sops __attribute__ ((unused)) = {
20241 .free_cached_objects = free_cached_objects,
20257 cat - <<_ACEOF >conftest.h
20262 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20263 echo "obj-m := conftest.o" >build
/Makefile
20265 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20266 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20268 (eval $ac_try) 2>&5
20270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20271 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20273 (eval $ac_try) 2>&5
20275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20276 test $ac_status = 0; }; }; then :
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20279 $as_echo "yes" >&6; }
20281 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20285 $as_echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.
$ac_ext >&5
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20289 $as_echo "no" >&6; }
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20301 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20304 cat confdefs.h
- <<_ACEOF >conftest.c
20307 #include <linux/fs.h>
20309 long test_fallocate(struct file *file, int mode,
20310 loff_t offset, loff_t len) { return 0; }
20312 static const struct file_operations
20313 fops __attribute__ ((unused)) = {
20314 .fallocate = test_fallocate,
20330 cat - <<_ACEOF >conftest.h
20335 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20336 echo "obj-m := conftest.o" >build
/Makefile
20338 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20339 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20341 (eval $ac_try) 2>&5
20343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20346 (eval $ac_try) 2>&5
20348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20349 test $ac_status = 0; }; }; then :
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20352 $as_echo "yes" >&6; }
20354 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20358 $as_echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.
$ac_ext >&5
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 $as_echo "no" >&6; }
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20373 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20376 cat confdefs.h
- <<_ACEOF >conftest.c
20379 #include <linux/fs.h>
20381 long test_fallocate(struct inode *inode, int mode,
20382 loff_t offset, loff_t len) { return 0; }
20384 static const struct inode_operations
20385 fops __attribute__ ((unused)) = {
20386 .fallocate = test_fallocate,
20402 cat - <<_ACEOF >conftest.h
20407 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20408 echo "obj-m := conftest.o" >build
/Makefile
20410 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20411 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20413 (eval $ac_try) 2>&5
20415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20416 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20418 (eval $ac_try) 2>&5
20420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20421 test $ac_status = 0; }; }; then :
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20424 $as_echo "yes" >&6; }
20426 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20430 $as_echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.
$ac_ext >&5
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434 $as_echo "no" >&6; }
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20446 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20449 cat confdefs.h
- <<_ACEOF >conftest.c
20452 #include <linux/fs.h>
20454 static const struct file_operations
20455 fops __attribute__ ((unused)) = {
20472 cat - <<_ACEOF >conftest.h
20477 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20478 echo "obj-m := conftest.o" >build
/Makefile
20480 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20481 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20483 (eval $ac_try) 2>&5
20485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20486 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20488 (eval $ac_try) 2>&5
20490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20491 test $ac_status = 0; }; }; then :
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494 $as_echo "yes" >&6; }
20496 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20500 $as_echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.
$ac_ext >&5
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20515 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20518 cat confdefs.h
- <<_ACEOF >conftest.c
20521 #include <linux/fs.h>
20523 int mkdir(struct inode *inode, struct dentry *dentry,
20524 umode_t umode) { return 0; }
20526 static const struct inode_operations
20527 iops __attribute__ ((unused)) = {
20544 cat - <<_ACEOF >conftest.h
20549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20550 echo "obj-m := conftest.o" >build
/Makefile
20552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20555 (eval $ac_try) 2>&5
20557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20560 (eval $ac_try) 2>&5
20562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20563 test $ac_status = 0; }; }; then :
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20566 $as_echo "yes" >&6; }
20568 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20572 $as_echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.
$ac_ext >&5
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 $as_echo "no" >&6; }
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20587 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20590 cat confdefs.h
- <<_ACEOF >conftest.c
20593 #include <linux/fs.h>
20595 struct dentry *inode_lookup(struct inode *inode,
20596 struct dentry *dentry, struct nameidata *nidata)
20599 static const struct inode_operations iops
20600 __attribute__ ((unused)) = {
20601 .lookup = inode_lookup,
20617 cat - <<_ACEOF >conftest.h
20622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20623 echo "obj-m := conftest.o" >build
/Makefile
20625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20628 (eval $ac_try) 2>&5
20630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20631 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20633 (eval $ac_try) 2>&5
20635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20636 test $ac_status = 0; }; }; then :
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20639 $as_echo "yes" >&6; }
20641 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20645 $as_echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.
$ac_ext >&5
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20649 $as_echo "no" >&6; }
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20660 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20663 cat confdefs.h
- <<_ACEOF >conftest.c
20666 #include <linux/fs.h>
20668 #ifdef HAVE_MKDIR_UMODE_T
20669 int inode_create(struct inode *inode ,struct dentry *dentry,
20670 umode_t umode, struct nameidata *nidata) { return 0; }
20672 int inode_create(struct inode *inode,struct dentry *dentry,
20673 int umode, struct nameidata * nidata) { return 0; }
20676 static const struct inode_operations
20677 iops __attribute__ ((unused)) = {
20678 .create = inode_create,
20694 cat - <<_ACEOF >conftest.h
20699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20700 echo "obj-m := conftest.o" >build
/Makefile
20702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20705 (eval $ac_try) 2>&5
20707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20710 (eval $ac_try) 2>&5
20712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20713 test $ac_status = 0; }; }; then :
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20716 $as_echo "yes" >&6; }
20718 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
20722 $as_echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.
$ac_ext >&5
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726 $as_echo "no" >&6; }
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
20737 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
20740 cat confdefs.h
- <<_ACEOF >conftest.c
20743 #include <linux/fs.h>
20744 const char *get_link(struct dentry *de, struct inode *ip,
20745 struct delayed_call *done) { return "symlink"; }
20746 static struct inode_operations
20747 iops __attribute__ ((unused)) = {
20748 .get_link = get_link,
20764 cat - <<_ACEOF >conftest.h
20769 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20770 echo "obj-m := conftest.o" >build
/Makefile
20772 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20773 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20775 (eval $ac_try) 2>&5
20777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20778 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20780 (eval $ac_try) 2>&5
20782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20783 test $ac_status = 0; }; }; then :
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20786 $as_echo "yes" >&6; }
20788 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
20792 $as_echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.
$ac_ext >&5
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
20798 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
20801 cat confdefs.h
- <<_ACEOF >conftest.c
20804 #include <linux/fs.h>
20805 const char *get_link(struct dentry *de, struct
20806 inode *ip, void **cookie) { return "symlink"; }
20807 static struct inode_operations
20808 iops __attribute__ ((unused)) = {
20809 .get_link = get_link,
20825 cat - <<_ACEOF >conftest.h
20830 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20831 echo "obj-m := conftest.o" >build
/Makefile
20833 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20834 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20836 (eval $ac_try) 2>&5
20838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20839 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20841 (eval $ac_try) 2>&5
20843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20844 test $ac_status = 0; }; }; then :
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20847 $as_echo "yes" >&6; }
20849 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
20853 $as_echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.
$ac_ext >&5
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20857 $as_echo "no" >&6; }
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
20860 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
20863 cat confdefs.h
- <<_ACEOF >conftest.c
20866 #include <linux/fs.h>
20867 const char *follow_link(struct dentry *de,
20868 void **cookie) { return "symlink"; }
20869 static struct inode_operations
20870 iops __attribute__ ((unused)) = {
20871 .follow_link = follow_link,
20887 cat - <<_ACEOF >conftest.h
20892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20893 echo "obj-m := conftest.o" >build
/Makefile
20895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20898 (eval $ac_try) 2>&5
20900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20903 (eval $ac_try) 2>&5
20905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20906 test $ac_status = 0; }; }; then :
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20909 $as_echo "yes" >&6; }
20911 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
20915 $as_echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.
$ac_ext >&5
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20919 $as_echo "no" >&6; }
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
20921 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
20924 cat confdefs.h
- <<_ACEOF >conftest.c
20927 #include <linux/fs.h>
20928 void *follow_link(struct dentry *de, struct
20929 nameidata *nd) { return (void *)NULL; }
20930 static struct inode_operations
20931 iops __attribute__ ((unused)) = {
20932 .follow_link = follow_link,
20948 cat - <<_ACEOF >conftest.h
20953 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20954 echo "obj-m := conftest.o" >build
/Makefile
20956 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20957 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20959 (eval $ac_try) 2>&5
20961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20962 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20964 (eval $ac_try) 2>&5
20966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967 test $ac_status = 0; }; }; then :
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20970 $as_echo "yes" >&6; }
20972 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
20976 $as_echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.
$ac_ext >&5
20979 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21013 cat confdefs.h
- <<_ACEOF >conftest.c
21016 #if !defined(HAVE_GET_LINK_DELAYED)
21017 #error "Expecting get_link() delayed done"
21033 cat - <<_ACEOF >conftest.h
21038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21039 echo "obj-m := conftest.o" >build
/Makefile
21041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21044 (eval $ac_try) 2>&5
21046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21049 (eval $ac_try) 2>&5
21051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21052 test $ac_status = 0; }; }; then :
21055 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21059 $as_echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.
$ac_ext >&5
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21063 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21066 cat confdefs.h
- <<_ACEOF >conftest.c
21069 #include <linux/fs.h>
21070 void put_link(struct inode *ip, void *cookie)
21072 static struct inode_operations
21073 iops __attribute__ ((unused)) = {
21074 .put_link = put_link,
21090 cat - <<_ACEOF >conftest.h
21095 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21096 echo "obj-m := conftest.o" >build
/Makefile
21098 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21099 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21101 (eval $ac_try) 2>&5
21103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21104 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21106 (eval $ac_try) 2>&5
21108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21109 test $ac_status = 0; }; }; then :
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21112 $as_echo "yes" >&6; }
21114 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21118 $as_echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.
$ac_ext >&5
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; }
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21124 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21127 cat confdefs.h
- <<_ACEOF >conftest.c
21130 #include <linux/fs.h>
21131 void put_link(struct dentry *de, struct
21132 nameidata *nd, void *ptr) { return; }
21133 static struct inode_operations
21134 iops __attribute__ ((unused)) = {
21135 .put_link = put_link,
21151 cat - <<_ACEOF >conftest.h
21156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21157 echo "obj-m := conftest.o" >build
/Makefile
21159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21162 (eval $ac_try) 2>&5
21164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21167 (eval $ac_try) 2>&5
21169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21170 test $ac_status = 0; }; }; then :
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21173 $as_echo "yes" >&6; }
21175 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21179 $as_echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.
$ac_ext >&5
21182 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21207 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21210 cat confdefs.h
- <<_ACEOF >conftest.c
21213 #include <linux/fs.h>
21214 void truncate_range(struct inode *inode, loff_t start,
21215 loff_t end) { return; }
21216 static struct inode_operations iops __attribute__ ((unused)) = {
21217 .truncate_range = truncate_range,
21233 cat - <<_ACEOF >conftest.h
21238 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21239 echo "obj-m := conftest.o" >build
/Makefile
21241 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21242 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21244 (eval $ac_try) 2>&5
21246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21247 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21249 (eval $ac_try) 2>&5
21251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21252 test $ac_status = 0; }; }; then :
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21255 $as_echo "yes" >&6; }
21257 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21261 $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.
$ac_ext >&5
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21265 $as_echo "no" >&6; }
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21276 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21279 cat confdefs.h
- <<_ACEOF >conftest.c
21282 #include <linux/dcache.h>
21283 struct vfsmount *d_automount(struct path *p) { return NULL; }
21284 struct dentry_operations dops __attribute__ ((unused)) = {
21285 .d_automount = d_automount,
21301 cat - <<_ACEOF >conftest.h
21306 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21307 echo "obj-m := conftest.o" >build
/Makefile
21309 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21310 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21312 (eval $ac_try) 2>&5
21314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21315 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21317 (eval $ac_try) 2>&5
21319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21320 test $ac_status = 0; }; }; then :
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21323 $as_echo "yes" >&6; }
21325 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21329 $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.
$ac_ext >&5
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 $as_echo "no" >&6; }
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21344 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21347 cat confdefs.h
- <<_ACEOF >conftest.c
21350 #include <linux/exportfs.h>
21351 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21352 struct inode *parent) { return 0; }
21353 static struct export_operations eops __attribute__ ((unused))={
21354 .encode_fh = encode_fh,
21370 cat - <<_ACEOF >conftest.h
21375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21376 echo "obj-m := conftest.o" >build
/Makefile
21378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21381 (eval $ac_try) 2>&5
21383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21386 (eval $ac_try) 2>&5
21388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21389 test $ac_status = 0; }; }; then :
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21392 $as_echo "yes" >&6; }
21394 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21398 $as_echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.
$ac_ext >&5
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21402 $as_echo "no" >&6; }
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21413 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21416 cat confdefs.h
- <<_ACEOF >conftest.c
21419 #include <linux/exportfs.h>
21420 int commit_metadata(struct inode *inode) { return 0; }
21421 static struct export_operations eops __attribute__ ((unused))={
21422 .commit_metadata = commit_metadata,
21438 cat - <<_ACEOF >conftest.h
21443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21444 echo "obj-m := conftest.o" >build
/Makefile
21446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21449 (eval $ac_try) 2>&5
21451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21454 (eval $ac_try) 2>&5
21456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21457 test $ac_status = 0; }; }; then :
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21460 $as_echo "yes" >&6; }
21462 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.
$ac_ext >&5
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21480 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21484 cat confdefs.h
- <<_ACEOF >conftest.c
21487 #include <linux/fs.h>
21503 cat - <<_ACEOF >conftest.h
21508 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21509 echo "obj-m := conftest.o" >build
/Makefile
21511 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21512 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21514 (eval $ac_try) 2>&5
21516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21517 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21519 (eval $ac_try) 2>&5
21521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522 test $ac_status = 0; }; }; then :
21525 $as_echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.
$ac_ext >&5
21534 if test $rc -ne 0; then :
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537 $as_echo "no" >&6; }
21540 if test "x$enable_linux_builtin" != xyes
; then
21542 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21543 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21545 if test $rc -ne 0; then
21547 for file in fs
/inode.c
; do
21548 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21549 "$LINUX/$file" 2>/dev
/null
21551 if test $rc -eq 0; then
21556 if test $export -eq 0; then :
21566 if test $rc -ne 0; then :
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21569 $as_echo "no" >&6; }
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21574 $as_echo "yes" >&6; }
21576 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21584 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21588 cat confdefs.h
- <<_ACEOF >conftest.c
21591 #include <linux/fs.h>
21597 struct dentry *dentry = NULL;
21598 struct iattr *attr = NULL;
21601 error = setattr_prepare(dentry, attr);
21611 cat - <<_ACEOF >conftest.h
21616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21617 echo "obj-m := conftest.o" >build
/Makefile
21619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21622 (eval $ac_try) 2>&5
21624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21627 (eval $ac_try) 2>&5
21629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21630 test $ac_status = 0; }; }; then :
21633 $as_echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.
$ac_ext >&5
21642 if test $rc -ne 0; then :
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21648 if test "x$enable_linux_builtin" != xyes
; then
21650 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
21651 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21653 if test $rc -ne 0; then
21655 for file in fs
/attr.c
; do
21656 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
21657 "$LINUX/$file" 2>/dev
/null
21659 if test $rc -eq 0; then
21664 if test $export -eq 0; then :
21674 if test $rc -ne 0; then :
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21682 $as_echo "yes" >&6; }
21684 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
21692 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
21696 cat confdefs.h
- <<_ACEOF >conftest.c
21699 #include <linux/fs.h>
21705 insert_inode_locked(NULL);
21715 cat - <<_ACEOF >conftest.h
21720 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21721 echo "obj-m := conftest.o" >build
/Makefile
21723 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21724 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21726 (eval $ac_try) 2>&5
21728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21729 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21731 (eval $ac_try) 2>&5
21733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21734 test $ac_status = 0; }; }; then :
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.
$ac_ext >&5
21746 if test $rc -ne 0; then :
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21749 $as_echo "no" >&6; }
21752 if test "x$enable_linux_builtin" != xyes
; then
21754 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21755 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21757 if test $rc -ne 0; then
21759 for file in fs
/inode.c
; do
21760 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
21761 "$LINUX/$file" 2>/dev
/null
21763 if test $rc -eq 0; then
21768 if test $export -eq 0; then :
21778 if test $rc -ne 0; then :
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21781 $as_echo "no" >&6; }
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 $as_echo "yes" >&6; }
21788 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
21796 $as_echo_n "checking whether d_make_root() is available... " >&6; }
21800 cat confdefs.h
- <<_ACEOF >conftest.c
21803 #include <linux/dcache.h>
21819 cat - <<_ACEOF >conftest.h
21824 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21825 echo "obj-m := conftest.o" >build
/Makefile
21827 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21828 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21830 (eval $ac_try) 2>&5
21832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21833 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }; then :
21841 $as_echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.
$ac_ext >&5
21850 if test $rc -ne 0; then :
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21853 $as_echo "no" >&6; }
21856 if test "x$enable_linux_builtin" != xyes
; then
21858 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
21859 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21861 if test $rc -ne 0; then
21863 for file in fs
/dcache.c
; do
21864 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
21865 "$LINUX/$file" 2>/dev
/null
21867 if test $rc -eq 0; then
21872 if test $export -eq 0; then :
21882 if test $rc -ne 0; then :
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21890 $as_echo "yes" >&6; }
21892 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
21900 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
21904 cat confdefs.h
- <<_ACEOF >conftest.c
21907 #include <linux/dcache.h>
21913 d_obtain_alias(NULL);
21923 cat - <<_ACEOF >conftest.h
21928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21929 echo "obj-m := conftest.o" >build
/Makefile
21931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21932 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21939 (eval $ac_try) 2>&5
21941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21942 test $ac_status = 0; }; }; then :
21945 $as_echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.
$ac_ext >&5
21954 if test $rc -ne 0; then :
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957 $as_echo "no" >&6; }
21960 if test "x$enable_linux_builtin" != xyes
; then
21962 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21963 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21965 if test $rc -ne 0; then
21967 for file in fs
/dcache.c
; do
21968 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
21969 "$LINUX/$file" 2>/dev
/null
21971 if test $rc -eq 0; then
21976 if test $export -eq 0; then :
21986 if test $rc -ne 0; then :
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21994 $as_echo "yes" >&6; }
21996 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22004 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22008 cat confdefs.h
- <<_ACEOF >conftest.c
22011 #include <linux/dcache.h>
22017 struct inode *ip = NULL;
22018 d_prune_aliases(ip);
22028 cat - <<_ACEOF >conftest.h
22033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22034 echo "obj-m := conftest.o" >build
/Makefile
22036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22037 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22039 (eval $ac_try) 2>&5
22041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22042 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; }; then :
22050 $as_echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.
$ac_ext >&5
22059 if test $rc -ne 0; then :
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22062 $as_echo "no" >&6; }
22065 if test "x$enable_linux_builtin" != xyes
; then
22067 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22068 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22070 if test $rc -ne 0; then
22072 for file in fs
/dcache.c
; do
22073 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22074 "$LINUX/$file" 2>/dev
/null
22076 if test $rc -eq 0; then
22081 if test $export -eq 0; then :
22091 if test $rc -ne 0; then :
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22094 $as_echo "no" >&6; }
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22101 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22109 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22113 cat confdefs.h
- <<_ACEOF >conftest.c
22116 #include <linux/dcache.h>
22122 d_set_d_op(NULL, NULL);
22132 cat - <<_ACEOF >conftest.h
22137 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22138 echo "obj-m := conftest.o" >build
/Makefile
22140 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22141 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22143 (eval $ac_try) 2>&5
22145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22146 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22148 (eval $ac_try) 2>&5
22150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22151 test $ac_status = 0; }; }; then :
22154 $as_echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.
$ac_ext >&5
22163 if test $rc -ne 0; then :
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22166 $as_echo "no" >&6; }
22169 if test "x$enable_linux_builtin" != xyes
; then
22171 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22172 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22174 if test $rc -ne 0; then
22176 for file in fs
/dcache.c
; do
22177 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22178 "$LINUX/$file" 2>/dev
/null
22180 if test $rc -eq 0; then
22185 if test $export -eq 0; then :
22195 if test $rc -ne 0; then :
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198 $as_echo "no" >&6; }
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22203 $as_echo "yes" >&6; }
22205 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22214 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22217 cat confdefs.h
- <<_ACEOF >conftest.c
22220 #include <linux/dcache.h>
22222 int revalidate (struct dentry *dentry,
22223 struct nameidata *nidata) { return 0; }
22225 static const struct dentry_operations
22226 dops __attribute__ ((unused)) = {
22227 .d_revalidate = revalidate,
22243 cat - <<_ACEOF >conftest.h
22248 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22249 echo "obj-m := conftest.o" >build
/Makefile
22251 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22252 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22254 (eval $ac_try) 2>&5
22256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22257 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22259 (eval $ac_try) 2>&5
22261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22262 test $ac_status = 0; }; }; then :
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265 $as_echo "yes" >&6; }
22267 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22271 $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.
$ac_ext >&5
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22286 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22289 cat confdefs.h
- <<_ACEOF >conftest.c
22292 #include <linux/dcache.h>
22294 const struct dentry_operations test_d_op = {
22295 .d_revalidate = NULL,
22302 struct dentry d __attribute__ ((unused));
22304 d.d_op = &test_d_op;
22314 cat - <<_ACEOF >conftest.h
22319 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22320 echo "obj-m := conftest.o" >build
/Makefile
22322 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22323 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22325 (eval $ac_try) 2>&5
22327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22328 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22330 (eval $ac_try) 2>&5
22332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22333 test $ac_status = 0; }; }; then :
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22336 $as_echo "yes" >&6; }
22338 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22342 $as_echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.
$ac_ext >&5
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22346 $as_echo "no" >&6; }
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22356 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22360 cat confdefs.h
- <<_ACEOF >conftest.c
22363 #include <linux/fs.h>
22369 check_disk_size_change(NULL, NULL);
22379 cat - <<_ACEOF >conftest.h
22384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22385 echo "obj-m := conftest.o" >build
/Makefile
22387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22395 (eval $ac_try) 2>&5
22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398 test $ac_status = 0; }; }; then :
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.
$ac_ext >&5
22410 if test $rc -ne 0; then :
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413 $as_echo "no" >&6; }
22416 if test "x$enable_linux_builtin" != xyes
; then
22418 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
22419 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22421 if test $rc -ne 0; then
22423 for file in fs
/block_dev.c
; do
22424 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
22425 "$LINUX/$file" 2>/dev
/null
22427 if test $rc -eq 0; then
22432 if test $export -eq 0; then :
22442 if test $rc -ne 0; then :
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22445 $as_echo "no" >&6; }
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22450 $as_echo "yes" >&6; }
22452 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22460 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22464 cat confdefs.h
- <<_ACEOF >conftest.c
22467 #include <linux/mm.h>
22473 truncate_setsize(NULL, 0);
22483 cat - <<_ACEOF >conftest.h
22488 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22489 echo "obj-m := conftest.o" >build
/Makefile
22491 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22492 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22494 (eval $ac_try) 2>&5
22496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22497 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22499 (eval $ac_try) 2>&5
22501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22502 test $ac_status = 0; }; }; then :
22505 $as_echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.
$ac_ext >&5
22514 if test $rc -ne 0; then :
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517 $as_echo "no" >&6; }
22520 if test "x$enable_linux_builtin" != xyes
; then
22522 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22523 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22525 if test $rc -ne 0; then
22527 for file in mm
/truncate.c
; do
22528 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22529 "$LINUX/$file" 2>/dev
/null
22531 if test $rc -eq 0; then
22536 if test $export -eq 0; then :
22546 if test $rc -ne 0; then :
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22549 $as_echo "no" >&6; }
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22554 $as_echo "yes" >&6; }
22556 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22565 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22568 cat confdefs.h
- <<_ACEOF >conftest.c
22571 #include <linux/security.h>
22577 struct inode *ip __attribute__ ((unused)) = NULL;
22578 struct inode *dip __attribute__ ((unused)) = NULL;
22579 const struct qstr *str __attribute__ ((unused)) = NULL;
22580 char *name __attribute__ ((unused)) = NULL;
22581 void *value __attribute__ ((unused)) = NULL;
22582 size_t len __attribute__ ((unused)) = 0;
22584 security_inode_init_security(ip, dip, str, &name, &value, &len);
22594 cat - <<_ACEOF >conftest.h
22599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22600 echo "obj-m := conftest.o" >build
/Makefile
22602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22603 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605 (eval $ac_try) 2>&5
22607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22610 (eval $ac_try) 2>&5
22612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22613 test $ac_status = 0; }; }; then :
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22616 $as_echo "yes" >&6; }
22618 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22622 $as_echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.
$ac_ext >&5
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22626 $as_echo "no" >&6; }
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22637 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22640 cat confdefs.h
- <<_ACEOF >conftest.c
22643 #include <linux/security.h>
22649 struct inode *ip __attribute__ ((unused)) = NULL;
22650 struct inode *dip __attribute__ ((unused)) = NULL;
22651 const struct qstr *str __attribute__ ((unused)) = NULL;
22652 initxattrs func __attribute__ ((unused)) = NULL;
22654 security_inode_init_security(ip, dip, str, func, NULL);
22664 cat - <<_ACEOF >conftest.h
22669 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22670 echo "obj-m := conftest.o" >build
/Makefile
22672 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22673 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675 (eval $ac_try) 2>&5
22677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22680 (eval $ac_try) 2>&5
22682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22683 test $ac_status = 0; }; }; then :
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22686 $as_echo "yes" >&6; }
22688 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22692 $as_echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.
$ac_ext >&5
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22696 $as_echo "no" >&6; }
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22706 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22710 cat confdefs.h
- <<_ACEOF >conftest.c
22713 #include <linux/fs.h>
22719 mount_nodev(NULL, 0, NULL, NULL);
22729 cat - <<_ACEOF >conftest.h
22734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22735 echo "obj-m := conftest.o" >build
/Makefile
22737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22738 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }; then :
22751 $as_echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.
$ac_ext >&5
22760 if test $rc -ne 0; then :
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22763 $as_echo "no" >&6; }
22766 if test "x$enable_linux_builtin" != xyes
; then
22768 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22769 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22771 if test $rc -ne 0; then
22773 for file in fs
/super.c
; do
22774 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
22775 "$LINUX/$file" 2>/dev
/null
22777 if test $rc -eq 0; then
22782 if test $export -eq 0; then :
22792 if test $rc -ne 0; then :
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22795 $as_echo "no" >&6; }
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22800 $as_echo "yes" >&6; }
22802 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
22811 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22814 cat confdefs.h
- <<_ACEOF >conftest.c
22817 #include <linux/fs.h>
22819 int shrink(struct shrinker *s, struct shrink_control *sc)
22822 static const struct super_block
22823 sb __attribute__ ((unused)) = {
22824 .s_shrink.shrink = shrink,
22825 .s_shrink.seeks = DEFAULT_SEEKS,
22826 .s_shrink.batch = 0,
22842 cat - <<_ACEOF >conftest.h
22847 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22848 echo "obj-m := conftest.o" >build
/Makefile
22850 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22851 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22853 (eval $ac_try) 2>&5
22855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22856 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }; then :
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22864 $as_echo "yes" >&6; }
22866 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
22871 $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.
$ac_ext >&5
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875 $as_echo "no" >&6; }
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
22886 $as_echo_n "checking whether shrink_control has nid... " >&6; }
22889 cat confdefs.h
- <<_ACEOF >conftest.c
22892 #include <linux/fs.h>
22898 struct shrink_control sc __attribute__ ((unused));
22899 unsigned long scnidsize __attribute__ ((unused)) =
22910 cat - <<_ACEOF >conftest.h
22915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22916 echo "obj-m := conftest.o" >build
/Makefile
22918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }; then :
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22934 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
22938 $as_echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.
$ac_ext >&5
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942 $as_echo "no" >&6; }
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
22953 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
22956 cat confdefs.h
- <<_ACEOF >conftest.c
22959 #include <linux/fs.h>
22965 struct super_block sb __attribute__ ((unused));
22967 INIT_LIST_HEAD(&sb.s_instances);
22977 cat - <<_ACEOF >conftest.h
22982 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22983 echo "obj-m := conftest.o" >build
/Makefile
22985 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22986 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }; then :
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22999 $as_echo "yes" >&6; }
23001 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23005 $as_echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.
$ac_ext >&5
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23009 $as_echo "no" >&6; }
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23019 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23022 cat confdefs.h
- <<_ACEOF >conftest.c
23025 #include <linux/fs.h>
23031 struct super_block sb __attribute__ ((unused));
23042 cat - <<_ACEOF >conftest.h
23047 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23048 echo "obj-m := conftest.o" >build
/Makefile
23050 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23051 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23053 (eval $ac_try) 2>&5
23055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23056 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23058 (eval $ac_try) 2>&5
23060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23061 test $ac_status = 0; }; }; then :
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23064 $as_echo "yes" >&6; }
23066 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23070 $as_echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.
$ac_ext >&5
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23074 $as_echo "no" >&6; }
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23085 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23089 cat confdefs.h
- <<_ACEOF >conftest.c
23092 #include <linux/fs.h>
23093 struct super_block sb;
23099 char *name = "bdi";
23100 int error __attribute__((unused)) =
23101 super_setup_bdi_name(&sb, name);
23111 cat - <<_ACEOF >conftest.h
23116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23117 echo "obj-m := conftest.o" >build
/Makefile
23119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23122 (eval $ac_try) 2>&5
23124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23127 (eval $ac_try) 2>&5
23129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23130 test $ac_status = 0; }; }; then :
23133 $as_echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.
$ac_ext >&5
23142 if test $rc -ne 0; then :
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23145 $as_echo "no" >&6; }
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23147 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23151 cat confdefs.h
- <<_ACEOF >conftest.c
23154 #include <linux/backing-dev.h>
23155 struct backing_dev_info bdi;
23161 char *name = "bdi";
23162 int error __attribute__((unused)) =
23163 bdi_setup_and_register(&bdi, name);
23173 cat - <<_ACEOF >conftest.h
23178 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23179 echo "obj-m := conftest.o" >build
/Makefile
23181 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23182 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23184 (eval $ac_try) 2>&5
23186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23187 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }; then :
23195 $as_echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.
$ac_ext >&5
23204 if test $rc -ne 0; then :
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23207 $as_echo "no" >&6; }
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23209 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23213 cat confdefs.h
- <<_ACEOF >conftest.c
23216 #include <linux/backing-dev.h>
23217 struct backing_dev_info bdi;
23223 char *name = "bdi";
23224 unsigned int cap = BDI_CAP_MAP_COPY;
23225 int error __attribute__((unused)) =
23226 bdi_setup_and_register(&bdi, name, cap);
23236 cat - <<_ACEOF >conftest.h
23241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23242 echo "obj-m := conftest.o" >build
/Makefile
23244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23247 (eval $ac_try) 2>&5
23249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23252 (eval $ac_try) 2>&5
23254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255 test $ac_status = 0; }; }; then :
23258 $as_echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.
$ac_ext >&5
23267 if test $rc -ne 0; then :
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23270 $as_echo "no" >&6; }
23273 if test "x$enable_linux_builtin" != xyes
; then
23275 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23276 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23278 if test $rc -ne 0; then
23280 for file in mm
/backing-dev.c
; do
23281 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23282 "$LINUX/$file" 2>/dev
/null
23284 if test $rc -eq 0; then
23289 if test $export -eq 0; then :
23299 if test $rc -ne 0; then :
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23307 $as_echo "yes" >&6; }
23309 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23317 if test "x$enable_linux_builtin" != xyes
; then
23319 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23320 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23322 if test $rc -ne 0; then
23324 for file in mm
/backing-dev.c
; do
23325 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23326 "$LINUX/$file" 2>/dev
/null
23328 if test $rc -eq 0; then
23333 if test $export -eq 0; then :
23343 if test $rc -ne 0; then :
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23346 $as_echo "no" >&6; }
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23348 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23352 cat confdefs.h
- <<_ACEOF >conftest.c
23355 #include <linux/backing-dev.h>
23356 struct backing_dev_info bdi;
23362 char *name = "bdi";
23363 unsigned int cap = BDI_CAP_MAP_COPY;
23364 int error __attribute__((unused)) =
23365 bdi_setup_and_register(&bdi, name, cap);
23375 cat - <<_ACEOF >conftest.h
23380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23381 echo "obj-m := conftest.o" >build
/Makefile
23383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23386 (eval $ac_try) 2>&5
23388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23391 (eval $ac_try) 2>&5
23393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23394 test $ac_status = 0; }; }; then :
23397 $as_echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.
$ac_ext >&5
23406 if test $rc -ne 0; then :
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23409 $as_echo "no" >&6; }
23412 if test "x$enable_linux_builtin" != xyes
; then
23414 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23415 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23417 if test $rc -ne 0; then
23419 for file in mm
/backing-dev.c
; do
23420 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23421 "$LINUX/$file" 2>/dev
/null
23423 if test $rc -eq 0; then
23428 if test $export -eq 0; then :
23438 if test $rc -ne 0; then :
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23441 $as_echo "no" >&6; }
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23446 $as_echo "yes" >&6; }
23448 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23458 $as_echo "yes" >&6; }
23460 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23468 if test "x$enable_linux_builtin" != xyes
; then
23470 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23471 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23473 if test $rc -ne 0; then
23475 for file in fs
/super.c
; do
23476 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23477 "$LINUX/$file" 2>/dev
/null
23479 if test $rc -eq 0; then
23484 if test $export -eq 0; then :
23494 if test $rc -ne 0; then :
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23497 $as_echo "no" >&6; }
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23499 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23503 cat confdefs.h
- <<_ACEOF >conftest.c
23506 #include <linux/backing-dev.h>
23507 struct backing_dev_info bdi;
23513 char *name = "bdi";
23514 int error __attribute__((unused)) =
23515 bdi_setup_and_register(&bdi, name);
23525 cat - <<_ACEOF >conftest.h
23530 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23531 echo "obj-m := conftest.o" >build
/Makefile
23533 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23534 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23536 (eval $ac_try) 2>&5
23538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23539 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23541 (eval $ac_try) 2>&5
23543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23544 test $ac_status = 0; }; }; then :
23547 $as_echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.
$ac_ext >&5
23556 if test $rc -ne 0; then :
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23559 $as_echo "no" >&6; }
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23561 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23565 cat confdefs.h
- <<_ACEOF >conftest.c
23568 #include <linux/backing-dev.h>
23569 struct backing_dev_info bdi;
23575 char *name = "bdi";
23576 unsigned int cap = BDI_CAP_MAP_COPY;
23577 int error __attribute__((unused)) =
23578 bdi_setup_and_register(&bdi, name, cap);
23588 cat - <<_ACEOF >conftest.h
23593 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23594 echo "obj-m := conftest.o" >build
/Makefile
23596 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23597 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23599 (eval $ac_try) 2>&5
23601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23602 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23604 (eval $ac_try) 2>&5
23606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607 test $ac_status = 0; }; }; then :
23610 $as_echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.
$ac_ext >&5
23619 if test $rc -ne 0; then :
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23625 if test "x$enable_linux_builtin" != xyes
; then
23627 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23628 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23630 if test $rc -ne 0; then
23632 for file in mm
/backing-dev.c
; do
23633 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23634 "$LINUX/$file" 2>/dev
/null
23636 if test $rc -eq 0; then
23641 if test $export -eq 0; then :
23651 if test $rc -ne 0; then :
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23654 $as_echo "no" >&6; }
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23659 $as_echo "yes" >&6; }
23661 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23669 if test "x$enable_linux_builtin" != xyes
; then
23671 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23672 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23674 if test $rc -ne 0; then
23676 for file in mm
/backing-dev.c
; do
23677 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23678 "$LINUX/$file" 2>/dev
/null
23680 if test $rc -eq 0; then
23685 if test $export -eq 0; then :
23695 if test $rc -ne 0; then :
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23698 $as_echo "no" >&6; }
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23700 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23704 cat confdefs.h
- <<_ACEOF >conftest.c
23707 #include <linux/backing-dev.h>
23708 struct backing_dev_info bdi;
23714 char *name = "bdi";
23715 unsigned int cap = BDI_CAP_MAP_COPY;
23716 int error __attribute__((unused)) =
23717 bdi_setup_and_register(&bdi, name, cap);
23727 cat - <<_ACEOF >conftest.h
23732 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23733 echo "obj-m := conftest.o" >build
/Makefile
23735 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23736 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23738 (eval $ac_try) 2>&5
23740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23741 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23743 (eval $ac_try) 2>&5
23745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23746 test $ac_status = 0; }; }; then :
23749 $as_echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.
$ac_ext >&5
23758 if test $rc -ne 0; then :
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23761 $as_echo "no" >&6; }
23764 if test "x$enable_linux_builtin" != xyes
; then
23766 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23767 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23769 if test $rc -ne 0; then
23771 for file in mm
/backing-dev.c
; do
23772 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23773 "$LINUX/$file" 2>/dev
/null
23775 if test $rc -eq 0; then
23780 if test $export -eq 0; then :
23790 if test $rc -ne 0; then :
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23793 $as_echo "no" >&6; }
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23798 $as_echo "yes" >&6; }
23800 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23810 $as_echo "yes" >&6; }
23812 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23822 $as_echo "yes" >&6; }
23824 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23833 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23836 cat confdefs.h
- <<_ACEOF >conftest.c
23839 #include <linux/fs.h>
23846 unsigned int link = 0;
23847 (void) set_nlink(&node, link);
23857 cat - <<_ACEOF >conftest.h
23862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23863 echo "obj-m := conftest.o" >build
/Makefile
23865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23868 (eval $ac_try) 2>&5
23870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }; then :
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23879 $as_echo "yes" >&6; }
23881 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
23885 $as_echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.
$ac_ext >&5
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23889 $as_echo "no" >&6; }
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
23900 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23901 tmp_flags
="$EXTRA_KCFLAGS"
23902 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23905 cat confdefs.h
- <<_ACEOF >conftest.c
23908 #include <linux/blkdev.h>
23909 #include <linux/elevator.h>
23916 struct request_queue *q = NULL;
23917 char *elevator = NULL;
23918 ret = elevator_change(q, elevator);
23928 cat - <<_ACEOF >conftest.h
23933 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23934 echo "obj-m := conftest.o" >build
/Makefile
23936 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23937 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23944 (eval $ac_try) 2>&5
23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947 test $ac_status = 0; }; }; then :
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23950 $as_echo "yes" >&6; }
23952 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
23956 $as_echo "$as_me: failed program was:" >&5
23957 sed 's/^/| /' conftest.
$ac_ext >&5
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23960 $as_echo "no" >&6; }
23968 EXTRA_KCFLAGS
="$tmp_flags"
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
23971 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
23974 cat confdefs.h
- <<_ACEOF >conftest.c
23977 #include <linux/fs.h>
23983 struct file_system_type *type = NULL;
23984 int (*test)(struct super_block *,void *) = NULL;
23985 int (*set)(struct super_block *,void *) = NULL;
23988 (void) sget(type, test, set, flags, data);
23998 cat - <<_ACEOF >conftest.h
24003 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24004 echo "obj-m := conftest.o" >build
/Makefile
24006 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24007 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24009 (eval $ac_try) 2>&5
24011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24012 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }; then :
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24020 $as_echo "yes" >&6; }
24022 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24026 $as_echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.
$ac_ext >&5
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24030 $as_echo "no" >&6; }
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24040 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24044 cat confdefs.h
- <<_ACEOF >conftest.c
24047 #include <linux/fs.h>
24053 struct file *fp __attribute__ ((unused)) = NULL;
24054 struct inode *ip __attribute__ ((unused)) = NULL;
24055 loff_t offset __attribute__ ((unused)) = 0;
24056 loff_t maxsize __attribute__ ((unused)) = 0;
24058 lseek_execute(fp, ip, offset, maxsize);
24068 cat - <<_ACEOF >conftest.h
24073 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24074 echo "obj-m := conftest.o" >build
/Makefile
24076 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24077 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24079 (eval $ac_try) 2>&5
24081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24082 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }; then :
24090 $as_echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.
$ac_ext >&5
24099 if test $rc -ne 0; then :
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24102 $as_echo "no" >&6; }
24105 if test "x$enable_linux_builtin" != xyes
; then
24107 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24108 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24110 if test $rc -ne 0; then
24112 for file in fs
/read_write.c
; do
24113 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24114 "$LINUX/$file" 2>/dev
/null
24116 if test $rc -eq 0; then
24121 if test $export -eq 0; then :
24131 if test $rc -ne 0; then :
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24134 $as_echo "no" >&6; }
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24139 $as_echo "yes" >&6; }
24141 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24150 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24153 cat confdefs.h
- <<_ACEOF >conftest.c
24156 #include <linux/fs.h>
24157 int iterate(struct file *filp, struct dir_context * context)
24160 static const struct file_operations fops
24161 __attribute__ ((unused)) = {
24162 .iterate_shared = iterate,
24178 cat - <<_ACEOF >conftest.h
24183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24184 echo "obj-m := conftest.o" >build
/Makefile
24186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }; then :
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24200 $as_echo "yes" >&6; }
24202 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24206 $as_echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.
$ac_ext >&5
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24210 $as_echo "no" >&6; }
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24213 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24216 cat confdefs.h
- <<_ACEOF >conftest.c
24219 #include <linux/fs.h>
24220 int iterate(struct file *filp, struct dir_context * context)
24223 static const struct file_operations fops
24224 __attribute__ ((unused)) = {
24225 .iterate = iterate,
24241 cat - <<_ACEOF >conftest.h
24246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24247 echo "obj-m := conftest.o" >build
/Makefile
24249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24252 (eval $ac_try) 2>&5
24254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; }; then :
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24263 $as_echo "yes" >&6; }
24265 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24269 $as_echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.
$ac_ext >&5
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24273 $as_echo "no" >&6; }
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24276 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24279 cat confdefs.h
- <<_ACEOF >conftest.c
24282 #include <linux/fs.h>
24283 int readdir(struct file *filp, void *entry, filldir_t func)
24286 static const struct file_operations fops
24287 __attribute__ ((unused)) = {
24288 .readdir = readdir,
24304 cat - <<_ACEOF >conftest.h
24309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24310 echo "obj-m := conftest.o" >build
/Makefile
24312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }; then :
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24326 $as_echo "yes" >&6; }
24328 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24332 $as_echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.
$ac_ext >&5
24335 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24359 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24362 cat confdefs.h
- <<_ACEOF >conftest.c
24365 #include <linux/fs.h>
24367 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24369 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24372 static const struct file_operations
24373 fops __attribute__ ((unused)) = {
24374 .read_iter = test_read,
24375 .write_iter = test_write,
24391 cat - <<_ACEOF >conftest.h
24396 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24397 echo "obj-m := conftest.o" >build
/Makefile
24399 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24400 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24402 (eval $ac_try) 2>&5
24404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24405 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24407 (eval $ac_try) 2>&5
24409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24410 test $ac_status = 0; }; }; then :
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24413 $as_echo "yes" >&6; }
24415 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24419 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24422 cat confdefs.h
- <<_ACEOF >conftest.c
24425 #include <linux/fs.h>
24431 new_sync_read(NULL, NULL, 0, NULL);
24441 cat - <<_ACEOF >conftest.h
24446 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24447 echo "obj-m := conftest.o" >build
/Makefile
24449 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24450 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }; then :
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24463 $as_echo "yes" >&6; }
24465 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24469 $as_echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.
$ac_ext >&5
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24473 $as_echo "no" >&6; }
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.
$ac_ext >&5
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24488 $as_echo "no" >&6; }
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24498 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24501 cat confdefs.h
- <<_ACEOF >conftest.c
24504 #include <linux/fs.h>
24511 struct kiocb *iocb = NULL;
24512 struct iov_iter *iov = NULL;
24513 generic_write_checks(iocb, iov);
24523 cat - <<_ACEOF >conftest.h
24528 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24529 echo "obj-m := conftest.o" >build
/Makefile
24531 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24532 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }; then :
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24545 $as_echo "yes" >&6; }
24547 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24551 $as_echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.
$ac_ext >&5
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24555 $as_echo "no" >&6; }
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24566 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24569 cat confdefs.h
- <<_ACEOF >conftest.c
24572 #include <linux/pagemap.h>
24579 kmap_atomic(&page);
24589 cat - <<_ACEOF >conftest.h
24594 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24595 echo "obj-m := conftest.o" >build
/Makefile
24597 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24598 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24600 (eval $ac_try) 2>&5
24602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24603 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24605 (eval $ac_try) 2>&5
24607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24608 test $ac_status = 0; }; }; then :
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24611 $as_echo "yes" >&6; }
24613 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24617 $as_echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.
$ac_ext >&5
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24621 $as_echo "no" >&6; }
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24632 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24635 cat confdefs.h
- <<_ACEOF >conftest.c
24638 #include <linux/namei.h>
24644 struct path *p = NULL;
24645 follow_down_one(p);
24655 cat - <<_ACEOF >conftest.h
24660 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24661 echo "obj-m := conftest.o" >build
/Makefile
24663 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24664 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24666 (eval $ac_try) 2>&5
24668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24669 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }; then :
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24677 $as_echo "yes" >&6; }
24679 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24683 $as_echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.
$ac_ext >&5
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24687 $as_echo "no" >&6; }
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24698 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24701 cat confdefs.h
- <<_ACEOF >conftest.c
24704 #include <linux/blkdev.h>
24706 int make_request(struct request_queue *q, struct bio *bio)
24715 blk_queue_make_request(NULL, &make_request);
24725 cat - <<_ACEOF >conftest.h
24730 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24731 echo "obj-m := conftest.o" >build
/Makefile
24733 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24734 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24736 (eval $ac_try) 2>&5
24738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24739 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }; then :
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24747 $as_echo "yes" >&6; }
24749 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24752 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24756 $as_echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.
$ac_ext >&5
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24760 $as_echo "no" >&6; }
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24762 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24765 cat confdefs.h
- <<_ACEOF >conftest.c
24768 #include <linux/blkdev.h>
24770 void make_request(struct request_queue *q, struct bio *bio)
24779 blk_queue_make_request(NULL, &make_request);
24789 cat - <<_ACEOF >conftest.h
24794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24795 echo "obj-m := conftest.o" >build
/Makefile
24797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }; then :
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24811 $as_echo "yes" >&6; }
24813 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
24817 $as_echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.
$ac_ext >&5
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24821 $as_echo "no" >&6; }
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
24823 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
24826 cat confdefs.h
- <<_ACEOF >conftest.c
24829 #include <linux/blkdev.h>
24831 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
24833 return (BLK_QC_T_NONE);
24840 blk_queue_make_request(NULL, &make_request);
24850 cat - <<_ACEOF >conftest.h
24855 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24856 echo "obj-m := conftest.o" >build
/Makefile
24858 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24859 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }; then :
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24872 $as_echo "yes" >&6; }
24874 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
24877 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
24881 $as_echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.
$ac_ext >&5
24884 as_fn_error $?
"no - Please file a bug report at
24885 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
24910 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
24914 cat confdefs.h
- <<_ACEOF >conftest.c
24917 #include <linux/bio.h>
24919 void (*generic_start_io_acct_f)(int, unsigned long,
24920 struct hd_struct *) = &generic_start_io_acct;
24921 void (*generic_end_io_acct_f)(int, struct hd_struct *,
24922 unsigned long) = &generic_end_io_acct;
24928 generic_start_io_acct(0, 0, NULL);
24929 generic_end_io_acct(0, NULL, 0);
24939 cat - <<_ACEOF >conftest.h
24944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24945 echo "obj-m := conftest.o" >build
/Makefile
24947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955 (eval $ac_try) 2>&5
24957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958 test $ac_status = 0; }; }; then :
24961 $as_echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.
$ac_ext >&5
24970 if test $rc -ne 0; then :
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24973 $as_echo "no" >&6; }
24976 if test "x$enable_linux_builtin" != xyes
; then
24978 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
24979 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24981 if test $rc -ne 0; then
24983 for file in block
/bio.c
; do
24984 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
24985 "$LINUX/$file" 2>/dev
/null
24987 if test $rc -eq 0; then
24992 if test $export -eq 0; then :
25002 if test $rc -ne 0; then :
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25005 $as_echo "no" >&6; }
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25010 $as_echo "yes" >&6; }
25012 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25021 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25024 cat confdefs.h
- <<_ACEOF >conftest.c
25027 #include <linux/fs.h>
25028 int rename_fn(struct inode *sip, struct dentry *sdp,
25029 struct inode *tip, struct dentry *tdp,
25030 unsigned int flags) { return 0; }
25032 static const struct inode_operations
25033 iops __attribute__ ((unused)) = {
25034 .rename = rename_fn,
25050 cat - <<_ACEOF >conftest.h
25055 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25056 echo "obj-m := conftest.o" >build
/Makefile
25058 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25059 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066 (eval $ac_try) 2>&5
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; }; then :
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25072 $as_echo "yes" >&6; }
25074 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25078 $as_echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.
$ac_ext >&5
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25093 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25096 cat confdefs.h
- <<_ACEOF >conftest.c
25099 #include <linux/fs.h>
25100 #include <linux/xattr.h>
25102 static const struct inode_operations
25103 iops __attribute__ ((unused)) = {
25104 .setxattr = generic_setxattr
25120 cat - <<_ACEOF >conftest.h
25125 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25126 echo "obj-m := conftest.o" >build
/Makefile
25128 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25129 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25136 (eval $ac_try) 2>&5
25138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25139 test $ac_status = 0; }; }; then :
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25142 $as_echo "yes" >&6; }
25144 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25148 $as_echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.
$ac_ext >&5
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25152 $as_echo "no" >&6; }
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25162 $as_echo_n "checking whether current_time() exists... " >&6; }
25166 cat confdefs.h
- <<_ACEOF >conftest.c
25169 #include <linux/fs.h>
25176 struct timespec now __attribute__ ((unused));
25178 now = current_time(&ip);
25188 cat - <<_ACEOF >conftest.h
25193 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25194 echo "obj-m := conftest.o" >build
/Makefile
25196 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25197 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }; then :
25210 $as_echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.
$ac_ext >&5
25219 if test $rc -ne 0; then :
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25222 $as_echo "no" >&6; }
25225 if test "x$enable_linux_builtin" != xyes
; then
25227 grep -q -E '[[:space:]]current_time[[:space:]]' \
25228 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25230 if test $rc -ne 0; then
25232 for file in fs
/inode.c
; do
25233 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25234 "$LINUX/$file" 2>/dev
/null
25236 if test $rc -eq 0; then
25241 if test $export -eq 0; then :
25251 if test $rc -ne 0; then :
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25254 $as_echo "no" >&6; }
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25259 $as_echo "yes" >&6; }
25261 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25269 if test "$LINUX_OBJ" != "$LINUX"; then :
25271 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25277 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25278 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25279 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25280 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25287 # Check whether --with-linux was given.
25288 if test "${with_linux+set}" = set; then :
25289 withval
=$with_linux; kernelsrc
="$withval"
25294 # Check whether --with-linux-obj was given.
25295 if test "${with_linux_obj+set}" = set; then :
25296 withval
=$with_linux_obj; kernelbuild
="$withval"
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
25301 $as_echo_n "checking kernel source directory... " >&6; }
25302 if test -z "$kernelsrc"; then :
25304 if test -e "/lib/modules/$(uname -r)/source"; then :
25306 headersdir
="/lib/modules/$(uname -r)/source"
25307 sourcelink
=$
(readlink
-f "$headersdir")
25309 elif test -e "/lib/modules/$(uname -r)/build"; then :
25311 headersdir
="/lib/modules/$(uname -r)/build"
25312 sourcelink
=$
(readlink
-f "$headersdir")
25316 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
25318 2>/dev
/null |
grep -v obj |
tail -1)
25322 if test -n "$sourcelink" && test -e ${sourcelink}; then :
25324 kernelsrc
=`readlink -f ${sourcelink}`
25328 kernelsrc
="Not found"
25334 if test "$kernelsrc" = "NONE"; then :
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
25343 $as_echo "$kernelsrc" >&6; }
25344 if test ! -d "$kernelsrc"; then :
25347 *** Please make sure the kernel devel package for your distribution
25348 *** is installed and then try again. If that fails, you can specify the
25349 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
25354 $as_echo_n "checking kernel build directory... " >&6; }
25355 if test -z "$kernelbuild"; then :
25357 if test -e "/lib/modules/$(uname -r)/build"; then :
25359 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
25361 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
25363 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
25365 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
25367 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
25369 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
25371 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
25375 kernelbuild
=${kernelsrc}
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
25381 $as_echo "$kernelbuild" >&6; }
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
25384 $as_echo_n "checking kernel source version... " >&6; }
25385 utsrelease1
=$kernelbuild/include
/linux
/version.h
25386 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
25387 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
25388 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
25390 utsrelease
=linux
/version.h
25392 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
25394 utsrelease
=linux
/utsrelease.h
25396 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
25398 utsrelease
=generated
/utsrelease.h
25402 if test "$utsrelease"; then :
25404 kernsrcver
=`(echo "#include <$utsrelease>";
25405 echo "kernsrcver=UTS_RELEASE") |
25406 cpp -I $kernelbuild/include |
25407 grep "^kernsrcver=" | cut -d \" -f 2`
25409 if test -z "$kernsrcver"; then :
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25412 $as_echo "Not found" >&6; }
25413 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25420 $as_echo "Not found" >&6; }
25421 if test "x$enable_linux_builtin" != xyes
; then
25422 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
25425 *** Cannot find UTS_RELEASE definition.
25426 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
25432 $as_echo "$kernsrcver" >&6; }
25435 LINUX_OBJ
=${kernelbuild}
25436 LINUX_VERSION
=${kernsrcver}
25443 modpost
=$LINUX/scripts
/Makefile.modpost
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
25445 $as_echo_n "checking kernel file name for module symbols... " >&6; }
25446 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
25448 if grep -q Modules.symvers
$modpost; then :
25450 LINUX_SYMBOLS
=Modules.symvers
25454 LINUX_SYMBOLS
=Module.symvers
25458 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
25461 *** Please make sure the kernel devel package for your distribution
25462 *** is installed. If you are building with a custom kernel, make sure the
25463 *** kernel is configured, built, and the '--with-linux=PATH' configure
25464 *** option refers to the location of the kernel source." "$LINENO" 5
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
25474 $as_echo "$LINUX_SYMBOLS" >&6; }
25480 # Check whether --with-spl was given.
25481 if test "${with_spl+set}" = set; then :
25482 withval
=$with_spl; splsrc
="$withval"
25487 # Check whether --with-spl-obj was given.
25488 if test "${with_spl_obj+set}" = set; then :
25489 withval
=$with_spl_obj; splbuild
="$withval"
25494 # Check whether --with-spl-timeout was given.
25495 if test "${with_spl_timeout+set}" = set; then :
25496 withval
=$with_spl_timeout; timeout
="$withval"
25502 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
25503 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
25504 splsrc2
="/usr/local/src/spl-${VERSION}"
25505 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
25506 splsrc4
="/usr/src/spl-${VERSION}"
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
25511 $as_echo_n "checking spl source directory... " >&6; }
25512 if test -z "${splsrc}"; then :
25514 if test -e "${splsrc0}/spl.release.in"; then :
25518 elif test -e "${splsrc1}/spl.release.in"; then :
25522 elif test -e "${splsrc2}/spl.release.in"; then :
25526 elif test -e "${splsrc3}/spl.release.in"; then :
25528 splsrc
=$
(readlink
-f "${splsrc3}")
25530 elif test -e "${splsrc4}/spl.release.in" ; then :
25534 elif test -e "${splsrc5}/spl.release.in"; then :
25536 splsrc
=$
(readlink
-f "${splsrc5}")
25538 elif test -e "${splsrc6}/spl.release.in" ; then :
25550 if test "$splsrc" = "NONE"; then :
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
25560 $as_echo "$splsrc" >&6; }
25561 if test ! -e "$splsrc/spl.release.in"; then :
25564 *** Please make sure the kmod spl devel package for your distribution
25565 *** is installed then try again. If that fails you can specify the
25566 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
25571 $as_echo_n "checking spl build directory... " >&6; }
25573 if test -z "$splbuild"; then :
25575 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
25577 splbuild
="${splsrc}/${LINUX_VERSION}"
25579 elif test -e "${splsrc}/spl_config.h" ; then :
25581 splbuild
="${splsrc}"
25583 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
25585 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
25589 splbuild
="Not found"
25594 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
25601 timeout
=$
((timeout-1
))
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
25607 $as_echo "$splbuild" >&6; }
25608 if ! test -e "$splbuild/spl_config.h"; then :
25611 *** Please make sure the kmod spl devel <kernel> package for your
25612 *** distribution is installed then try again. If that fails you
25613 *** can specify the location of the spl objects with the
25614 *** '--with-spl-obj=PATH' option." "$LINENO" 5
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
25619 $as_echo_n "checking spl source version... " >&6; }
25620 if test -r $splbuild/spl_config.h
&&
25621 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
25624 splsrcver
=`(echo "#include <spl_config.h>";
25625 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
25627 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
25631 if test -z "$splsrcver"; then :
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25634 $as_echo "Not found" >&6; }
25636 *** Cannot determine the version of the spl source.
25637 *** Please prepare the spl source before running this script" "$LINENO" 5
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
25642 $as_echo "$splsrcver" >&6; }
25645 SPL_OBJ
=${splbuild}
25646 SPL_VERSION
=${splsrcver}
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
25653 $as_echo_n "checking spl file name for module symbols... " >&6; }
25657 if test -r $SPL_OBJ/Module.symvers
; then :
25659 SPL_SYMBOLS
=Module.symvers
25661 elif test -r $SPL_OBJ/Modules.symvers
; then :
25663 SPL_SYMBOLS
=Modules.symvers
25665 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
25667 SPL_SYMBOLS
=Module.symvers
25669 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
25671 SPL_SYMBOLS
=Modules.symvers
25675 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
25682 timeout
=$
((timeout-1
))
25687 if test "$SPL_SYMBOLS" = NONE
; then :
25689 SPL_SYMBOLS
=$LINUX_SYMBOLS
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
25694 $as_echo "$SPL_SYMBOLS" >&6; }
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
25699 $as_echo_n "checking whether modules can be built... " >&6; }
25702 cat confdefs.h
- <<_ACEOF >conftest.c
25717 cat - <<_ACEOF >conftest.h
25722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25723 echo "obj-m := conftest.o" >build
/Makefile
25725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25726 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25728 (eval $ac_try) 2>&5
25730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25731 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }; then :
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25739 $as_echo "yes" >&6; }
25742 $as_echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.
$ac_ext >&5
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25746 $as_echo "no" >&6; }
25747 if test "x$enable_linux_builtin" != xyes
; then
25748 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
25751 *** Unable to build an empty module.
25752 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
25763 if test "x$cross_compiling" != xyes
; then :
25765 if test "$cross_compiling" = yes; then :
25766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25768 as_fn_error $?
"cannot run test program while cross compiling
25769 See \`config.log' for more details" "$LINENO" 5; }
25771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25775 #include "$LINUX/include/linux/license.h"
25781 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
25788 if ac_fn_c_try_run
"$LINENO"; then :
25791 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
25795 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25796 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
25804 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
25807 cat confdefs.h
- <<_ACEOF >conftest.c
25810 #include <linux/module.h>
25816 #if (THREAD_SIZE < 16384)
25817 #error "THREAD_SIZE is less than 16K"
25828 cat - <<_ACEOF >conftest.h
25833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25834 echo "obj-m := conftest.o" >build
/Makefile
25836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25837 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }; then :
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25850 $as_echo "yes" >&6; }
25852 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
25856 $as_echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.
$ac_ext >&5
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860 $as_echo "no" >&6; }
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
25872 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
25875 cat confdefs.h
- <<_ACEOF >conftest.c
25878 #include <linux/module.h>
25884 #ifndef CONFIG_DEBUG_LOCK_ALLOC
25885 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
25896 cat - <<_ACEOF >conftest.h
25901 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25902 echo "obj-m := conftest.o" >build
/Makefile
25904 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25905 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }; then :
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25918 $as_echo "yes" >&6; }
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
25921 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
25922 tmp_flags
="$EXTRA_KCFLAGS"
25925 cat confdefs.h
- <<_ACEOF >conftest.c
25928 #include <linux/module.h>
25929 #include <linux/mutex.h>
25931 MODULE_LICENSE("$ZFS_META_LICENSE");
25941 mutex_unlock(&lock);
25951 cat - <<_ACEOF >conftest.h
25956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25957 echo "obj-m := conftest.o" >build
/Makefile
25959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; }; then :
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25973 $as_echo "no" >&6; }
25976 $as_echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.
$ac_ext >&5
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25980 $as_echo "yes" >&6; }
25982 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
25983 *** with the CDDL license and will prevent the module linking stage
25984 *** from succeeding. You must rebuild your kernel without this
25985 *** option enabled." "$LINENO" 5
25993 EXTRA_KCFLAGS
="$tmp_flags"
25997 $as_echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.
$ac_ext >&5
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26001 $as_echo "no" >&6; }
26014 tmp_flags
="$EXTRA_KCFLAGS"
26015 EXTRA_KCFLAGS
="-I\$(src)"
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
26018 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
26021 cat confdefs.h
- <<_ACEOF >conftest.c
26024 #include <linux/module.h>
26025 MODULE_LICENSE(ZFS_META_LICENSE);
26027 #define CREATE_TRACE_POINTS
26028 #include "conftest.h"
26034 trace_zfs_autoconf_event_one(1UL);
26035 trace_zfs_autoconf_event_two(2UL);
26045 cat - <<_ACEOF >conftest.h
26047 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
26048 #define _CONFTEST_H
26050 #undef TRACE_SYSTEM
26051 #define TRACE_SYSTEM zfs
26052 #include <linux/tracepoint.h>
26054 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
26055 TP_PROTO(unsigned long i),
26058 __field(unsigned long, i)
26063 TP_printk("i = %lu", __entry->i)
26066 #define DEFINE_AUTOCONF_EVENT(name) \
26067 DEFINE_EVENT(zfs_autoconf_event_class, name, \
26068 TP_PROTO(unsigned long i), \
26070 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
26071 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
26073 #endif /* _CONFTEST_H */
26075 #undef TRACE_INCLUDE_PATH
26076 #define TRACE_INCLUDE_PATH .
26077 #define TRACE_INCLUDE_FILE conftest
26078 #include <trace/define_trace.h>
26083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26084 echo "obj-m := conftest.o" >build
/Makefile
26086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26087 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26089 (eval $ac_try) 2>&5
26091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26092 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; }; then :
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26100 $as_echo "yes" >&6; }
26102 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
26106 $as_echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.
$ac_ext >&5
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26110 $as_echo "no" >&6; }
26118 EXTRA_KCFLAGS
="$tmp_flags"
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
26122 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
26125 cat confdefs.h
- <<_ACEOF >conftest.c
26128 #include <linux/sched.h>
26134 current->bio_tail = (struct bio **) NULL;
26144 cat - <<_ACEOF >conftest.h
26149 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26150 echo "obj-m := conftest.o" >build
/Makefile
26152 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26153 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }; then :
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26166 $as_echo "yes" >&6; }
26168 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
26172 $as_echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.
$ac_ext >&5
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176 $as_echo "no" >&6; }
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
26178 $as_echo_n "checking whether current->bio_list exists... " >&6; }
26181 cat confdefs.h
- <<_ACEOF >conftest.c
26184 #include <linux/sched.h>
26190 current->bio_list = (struct bio_list *) NULL;
26200 cat - <<_ACEOF >conftest.h
26205 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26206 echo "obj-m := conftest.o" >build
/Makefile
26208 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26209 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26211 (eval $ac_try) 2>&5
26213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26214 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26216 (eval $ac_try) 2>&5
26218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26219 test $ac_status = 0; }; }; then :
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 $as_echo "yes" >&6; }
26224 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
26228 $as_echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.
$ac_ext >&5
26231 as_fn_error $?
"no - Please file a bug report at
26232 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
26250 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
26253 cat confdefs.h
- <<_ACEOF >conftest.c
26256 #include <linux/bio.h>
26263 struct bio *bio = NULL;
26264 blk_qc = submit_bio(bio);
26274 cat - <<_ACEOF >conftest.h
26279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26280 echo "obj-m := conftest.o" >build
/Makefile
26282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26283 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26285 (eval $ac_try) 2>&5
26287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26288 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }; then :
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26296 $as_echo "yes" >&6; }
26298 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
26302 $as_echo "$as_me: failed program was:" >&5
26303 sed 's/^/| /' conftest.
$ac_ext >&5
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26306 $as_echo "no" >&6; }
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
26317 $as_echo_n "checking block device operation prototypes... " >&6; }
26318 tmp_flags
="$EXTRA_KCFLAGS"
26319 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26322 cat confdefs.h
- <<_ACEOF >conftest.c
26325 #include <linux/blkdev.h>
26327 int blk_open(struct block_device *bdev, fmode_t mode)
26329 int blk_ioctl(struct block_device *bdev, fmode_t mode,
26330 unsigned x, unsigned long y) { return 0; }
26331 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
26332 unsigned x, unsigned long y) { return 0; }
26334 static const struct block_device_operations
26335 bops __attribute__ ((unused)) = {
26338 .ioctl = blk_ioctl,
26339 .compat_ioctl = blk_compat_ioctl,
26355 cat - <<_ACEOF >conftest.h
26360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26361 echo "obj-m := conftest.o" >build
/Makefile
26363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26366 (eval $ac_try) 2>&5
26368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }; then :
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
26377 $as_echo "struct block_device" >&6; }
26379 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
26383 $as_echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.
$ac_ext >&5
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
26387 $as_echo "struct inode" >&6; }
26395 EXTRA_KCFLAGS
="$tmp_flags"
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
26399 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
26400 tmp_flags
="$EXTRA_KCFLAGS"
26401 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26404 cat confdefs.h
- <<_ACEOF >conftest.c
26407 #include <linux/blkdev.h>
26409 void blk_release(struct gendisk *g, fmode_t mode) { return; }
26411 static const struct block_device_operations
26412 bops __attribute__ ((unused)) = {
26414 .release = blk_release,
26416 .compat_ioctl = NULL,
26432 cat - <<_ACEOF >conftest.h
26437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26438 echo "obj-m := conftest.o" >build
/Makefile
26440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26441 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26448 (eval $ac_try) 2>&5
26450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451 test $ac_status = 0; }; }; then :
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
26454 $as_echo "void" >&6; }
26456 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
26460 $as_echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.
$ac_ext >&5
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
26464 $as_echo "int" >&6; }
26472 EXTRA_KCFLAGS
="$tmp_flags"
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
26475 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
26478 cat confdefs.h
- <<_ACEOF >conftest.c
26481 #include <linux/types.h>
26487 fmode_t *ptr __attribute__ ((unused));
26497 cat - <<_ACEOF >conftest.h
26502 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26503 echo "obj-m := conftest.o" >build
/Makefile
26505 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26506 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26508 (eval $ac_try) 2>&5
26510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26511 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }; then :
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26519 $as_echo "yes" >&6; }
26521 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
26525 $as_echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.
$ac_ext >&5
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26529 $as_echo "no" >&6; }
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
26540 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
26543 cat confdefs.h
- <<_ACEOF >conftest.c
26546 #include <linux/kobject.h>
26552 int val __attribute__ ((unused));
26553 val = KOBJ_NAME_LEN;
26563 cat - <<_ACEOF >conftest.h
26568 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26569 echo "obj-m := conftest.o" >build
/Makefile
26571 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26572 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26574 (eval $ac_try) 2>&5
26576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26577 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26579 (eval $ac_try) 2>&5
26581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26582 test $ac_status = 0; }; }; then :
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26585 $as_echo "yes" >&6; }
26587 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
26591 $as_echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.
$ac_ext >&5
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26595 $as_echo "no" >&6; }
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
26606 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
26609 cat confdefs.h
- <<_ACEOF >conftest.c
26612 #include <linux/fs.h>
26618 struct block_device *bdev = NULL;
26619 (void) blkdev_get(bdev, 0, NULL);
26629 cat - <<_ACEOF >conftest.h
26634 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26635 echo "obj-m := conftest.o" >build
/Makefile
26637 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26638 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26640 (eval $ac_try) 2>&5
26642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26643 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }; then :
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26651 $as_echo "yes" >&6; }
26653 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
26657 $as_echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.
$ac_ext >&5
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26661 $as_echo "no" >&6; }
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
26671 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
26675 cat confdefs.h
- <<_ACEOF >conftest.c
26678 #include <linux/fs.h>
26684 blkdev_get_by_path(NULL, 0, NULL);
26694 cat - <<_ACEOF >conftest.h
26699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26700 echo "obj-m := conftest.o" >build
/Makefile
26702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26705 (eval $ac_try) 2>&5
26707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26710 (eval $ac_try) 2>&5
26712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26713 test $ac_status = 0; }; }; then :
26716 $as_echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.
$ac_ext >&5
26725 if test $rc -ne 0; then :
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26728 $as_echo "no" >&6; }
26731 if test "x$enable_linux_builtin" != xyes
; then
26733 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
26734 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26736 if test $rc -ne 0; then
26738 for file in fs
/block_dev.c
; do
26739 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
26740 "$LINUX/$file" 2>/dev
/null
26742 if test $rc -eq 0; then
26747 if test $export -eq 0; then :
26757 if test $rc -ne 0; then :
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26760 $as_echo "no" >&6; }
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26765 $as_echo "yes" >&6; }
26767 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
26775 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
26779 cat confdefs.h
- <<_ACEOF >conftest.c
26782 #include <linux/fs.h>
26788 open_bdev_exclusive(NULL, 0, NULL);
26798 cat - <<_ACEOF >conftest.h
26803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26804 echo "obj-m := conftest.o" >build
/Makefile
26806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26809 (eval $ac_try) 2>&5
26811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }; then :
26820 $as_echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.
$ac_ext >&5
26829 if test $rc -ne 0; then :
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26832 $as_echo "no" >&6; }
26835 if test "x$enable_linux_builtin" != xyes
; then
26837 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
26838 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26840 if test $rc -ne 0; then
26842 for file in fs
/block_dev.c
; do
26843 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
26844 "$LINUX/$file" 2>/dev
/null
26846 if test $rc -eq 0; then
26851 if test $export -eq 0; then :
26861 if test $rc -ne 0; then :
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26864 $as_echo "no" >&6; }
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26869 $as_echo "yes" >&6; }
26871 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
26879 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
26883 cat confdefs.h
- <<_ACEOF >conftest.c
26886 #include <linux/fs.h>
26902 cat - <<_ACEOF >conftest.h
26907 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26908 echo "obj-m := conftest.o" >build
/Makefile
26910 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26911 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26913 (eval $ac_try) 2>&5
26915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26916 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26918 (eval $ac_try) 2>&5
26920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26921 test $ac_status = 0; }; }; then :
26924 $as_echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.
$ac_ext >&5
26933 if test $rc -ne 0; then :
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26936 $as_echo "no" >&6; }
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26938 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26942 cat confdefs.h
- <<_ACEOF >conftest.c
26945 #include <linux/fs.h>
26951 lookup_bdev(NULL, FMODE_READ);
26961 cat - <<_ACEOF >conftest.h
26966 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26967 echo "obj-m := conftest.o" >build
/Makefile
26969 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26970 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26972 (eval $ac_try) 2>&5
26974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26975 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26977 (eval $ac_try) 2>&5
26979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26980 test $ac_status = 0; }; }; then :
26983 $as_echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.
$ac_ext >&5
26992 if test $rc -ne 0; then :
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26995 $as_echo "no" >&6; }
26998 if test "x$enable_linux_builtin" != xyes
; then
27000 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27001 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27003 if test $rc -ne 0; then
27005 for file in fs
/block_dev.c
; do
27006 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27007 "$LINUX/$file" 2>/dev
/null
27009 if test $rc -eq 0; then
27014 if test $export -eq 0; then :
27024 if test $rc -ne 0; then :
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27027 $as_echo "no" >&6; }
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27032 $as_echo "yes" >&6; }
27034 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27042 if test "x$enable_linux_builtin" != xyes
; then
27044 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27045 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27047 if test $rc -ne 0; then
27049 for file in fs
/block_dev.c
; do
27050 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27051 "$LINUX/$file" 2>/dev
/null
27053 if test $rc -eq 0; then
27058 if test $export -eq 0; then :
27068 if test $rc -ne 0; then :
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27071 $as_echo "no" >&6; }
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
27073 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
27077 cat confdefs.h
- <<_ACEOF >conftest.c
27080 #include <linux/fs.h>
27086 lookup_bdev(NULL, FMODE_READ);
27096 cat - <<_ACEOF >conftest.h
27101 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27102 echo "obj-m := conftest.o" >build
/Makefile
27104 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27105 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27107 (eval $ac_try) 2>&5
27109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27110 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27112 (eval $ac_try) 2>&5
27114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27115 test $ac_status = 0; }; }; then :
27118 $as_echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.
$ac_ext >&5
27127 if test $rc -ne 0; then :
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27130 $as_echo "no" >&6; }
27133 if test "x$enable_linux_builtin" != xyes
; then
27135 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27136 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27138 if test $rc -ne 0; then
27140 for file in fs
/block_dev.c
; do
27141 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27142 "$LINUX/$file" 2>/dev
/null
27144 if test $rc -eq 0; then
27149 if test $export -eq 0; then :
27159 if test $rc -ne 0; then :
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27162 $as_echo "no" >&6; }
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27167 $as_echo "yes" >&6; }
27169 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27179 $as_echo "yes" >&6; }
27181 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
27190 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
27193 cat confdefs.h
- <<_ACEOF >conftest.c
27196 #include <linux/buffer_head.h>
27202 struct block_device *bdev = NULL;
27203 invalidate_bdev(bdev);
27213 cat - <<_ACEOF >conftest.h
27218 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27219 echo "obj-m := conftest.o" >build
/Makefile
27221 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27222 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27224 (eval $ac_try) 2>&5
27226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27227 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27229 (eval $ac_try) 2>&5
27231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27232 test $ac_status = 0; }; }; then :
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27235 $as_echo "yes" >&6; }
27237 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
27241 $as_echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.
$ac_ext >&5
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27245 $as_echo "no" >&6; }
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
27256 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
27257 tmp_flags
="$EXTRA_KCFLAGS"
27258 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27261 cat confdefs.h
- <<_ACEOF >conftest.c
27264 #include <linux/blkdev.h>
27270 struct block_device *bdev = NULL;
27271 bdev_logical_block_size(bdev);
27281 cat - <<_ACEOF >conftest.h
27286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27287 echo "obj-m := conftest.o" >build
/Makefile
27289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27292 (eval $ac_try) 2>&5
27294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27295 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }; then :
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27303 $as_echo "yes" >&6; }
27305 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
27309 $as_echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.
$ac_ext >&5
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27313 $as_echo "no" >&6; }
27321 EXTRA_KCFLAGS
="$tmp_flags"
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
27325 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
27326 tmp_flags
="$EXTRA_KCFLAGS"
27327 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27330 cat confdefs.h
- <<_ACEOF >conftest.c
27333 #include <linux/blkdev.h>
27339 struct block_device *bdev = NULL;
27340 bdev_physical_block_size(bdev);
27350 cat - <<_ACEOF >conftest.h
27355 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27356 echo "obj-m := conftest.o" >build
/Makefile
27358 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27359 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }; then :
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27372 $as_echo "yes" >&6; }
27374 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
27378 $as_echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.
$ac_ext >&5
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27382 $as_echo "no" >&6; }
27390 EXTRA_KCFLAGS
="$tmp_flags"
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
27394 $as_echo_n "checking whether bio has bi_iter... " >&6; }
27397 cat confdefs.h
- <<_ACEOF >conftest.c
27400 #include <linux/bio.h>
27407 bio.bi_iter.bi_sector = 0;
27417 cat - <<_ACEOF >conftest.h
27422 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27423 echo "obj-m := conftest.o" >build
/Makefile
27425 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27426 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27428 (eval $ac_try) 2>&5
27430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27431 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27433 (eval $ac_try) 2>&5
27435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27436 test $ac_status = 0; }; }; then :
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27439 $as_echo "yes" >&6; }
27441 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
27445 $as_echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.
$ac_ext >&5
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27449 $as_echo "no" >&6; }
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
27460 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
27463 cat confdefs.h
- <<_ACEOF >conftest.c
27466 #include <linux/bio.h>
27472 int flags __attribute__ ((unused));
27473 flags = ((1 << BIO_RW_FAILFAST_DEV) |
27474 (1 << BIO_RW_FAILFAST_TRANSPORT) |
27475 (1 << BIO_RW_FAILFAST_DRIVER));
27485 cat - <<_ACEOF >conftest.h
27490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27491 echo "obj-m := conftest.o" >build
/Makefile
27493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27496 (eval $ac_try) 2>&5
27498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27501 (eval $ac_try) 2>&5
27503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27504 test $ac_status = 0; }; }; then :
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27507 $as_echo "yes" >&6; }
27509 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
27513 $as_echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.
$ac_ext >&5
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27517 $as_echo "no" >&6; }
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
27528 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
27531 cat confdefs.h
- <<_ACEOF >conftest.c
27534 #include <linux/bio.h>
27540 int flags __attribute__ ((unused));
27541 flags = REQ_FAILFAST_MASK;
27551 cat - <<_ACEOF >conftest.h
27556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27557 echo "obj-m := conftest.o" >build
/Makefile
27559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27562 (eval $ac_try) 2>&5
27564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27565 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27567 (eval $ac_try) 2>&5
27569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27570 test $ac_status = 0; }; }; then :
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27573 $as_echo "yes" >&6; }
27575 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
27579 $as_echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.
$ac_ext >&5
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27583 $as_echo "no" >&6; }
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
27594 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
27597 cat confdefs.h
- <<_ACEOF >conftest.c
27600 #include <linux/blk_types.h>
27606 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
27616 cat - <<_ACEOF >conftest.h
27621 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27622 echo "obj-m := conftest.o" >build
/Makefile
27624 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27625 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27632 (eval $ac_try) 2>&5
27634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27635 test $ac_status = 0; }; }; then :
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27638 $as_echo "yes" >&6; }
27640 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
27644 $as_echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.
$ac_ext >&5
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27648 $as_echo "no" >&6; }
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
27659 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
27662 cat confdefs.h
- <<_ACEOF >conftest.c
27665 #include <linux/blk_types.h>
27671 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
27681 cat - <<_ACEOF >conftest.h
27686 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27687 echo "obj-m := conftest.o" >build
/Makefile
27689 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27690 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27692 (eval $ac_try) 2>&5
27694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27695 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27697 (eval $ac_try) 2>&5
27699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700 test $ac_status = 0; }; }; then :
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27703 $as_echo "yes" >&6; }
27705 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
27709 $as_echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.
$ac_ext >&5
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
27724 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
27727 cat confdefs.h
- <<_ACEOF >conftest.c
27730 #include <linux/blk_types.h>
27736 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
27746 cat - <<_ACEOF >conftest.h
27751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27752 echo "obj-m := conftest.o" >build
/Makefile
27754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27757 (eval $ac_try) 2>&5
27759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27762 (eval $ac_try) 2>&5
27764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27765 test $ac_status = 0; }; }; then :
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27768 $as_echo "yes" >&6; }
27770 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
27774 $as_echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.
$ac_ext >&5
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27778 $as_echo "no" >&6; }
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
27789 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
27792 cat confdefs.h
- <<_ACEOF >conftest.c
27795 #include <linux/bio.h>
27801 struct bio bio __attribute__ ((unused));
27812 cat - <<_ACEOF >conftest.h
27817 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27818 echo "obj-m := conftest.o" >build
/Makefile
27820 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27821 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27823 (eval $ac_try) 2>&5
27825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27826 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27828 (eval $ac_try) 2>&5
27830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27831 test $ac_status = 0; }; }; then :
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27834 $as_echo "yes" >&6; }
27836 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
27840 $as_echo "$as_me: failed program was:" >&5
27841 sed 's/^/| /' conftest.
$ac_ext >&5
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27844 $as_echo "no" >&6; }
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
27855 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
27858 cat confdefs.h
- <<_ACEOF >conftest.c
27861 #include <linux/bio.h>
27863 void wanted_end_io(struct bio *bio) { return; }
27865 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
27880 cat - <<_ACEOF >conftest.h
27885 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27886 echo "obj-m := conftest.o" >build
/Makefile
27888 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27889 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891 (eval $ac_try) 2>&5
27893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27896 (eval $ac_try) 2>&5
27898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27899 test $ac_status = 0; }; }; then :
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27902 $as_echo "yes" >&6; }
27904 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
27908 $as_echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.
$ac_ext >&5
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27912 $as_echo "no" >&6; }
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
27923 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
27926 cat confdefs.h
- <<_ACEOF >conftest.c
27929 #include <linux/bio.h>
27935 int flags __attribute__ ((unused));
27936 flags = BIO_RW_BARRIER;
27946 cat - <<_ACEOF >conftest.h
27951 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27952 echo "obj-m := conftest.o" >build
/Makefile
27954 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27955 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27957 (eval $ac_try) 2>&5
27959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27960 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27962 (eval $ac_try) 2>&5
27964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27965 test $ac_status = 0; }; }; then :
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27968 $as_echo "yes" >&6; }
27970 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
27974 $as_echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.
$ac_ext >&5
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27978 $as_echo "no" >&6; }
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
27989 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
27992 cat confdefs.h
- <<_ACEOF >conftest.c
27995 #include <linux/bio.h>
28001 int flags __attribute__ ((unused));
28002 flags = BIO_RW_DISCARD;
28012 cat - <<_ACEOF >conftest.h
28017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28018 echo "obj-m := conftest.o" >build
/Makefile
28020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28023 (eval $ac_try) 2>&5
28025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28028 (eval $ac_try) 2>&5
28030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031 test $ac_status = 0; }; }; then :
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28034 $as_echo "yes" >&6; }
28036 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
28040 $as_echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.
$ac_ext >&5
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28044 $as_echo "no" >&6; }
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
28055 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
28056 tmp_flags
="$EXTRA_KCFLAGS"
28057 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28060 cat confdefs.h
- <<_ACEOF >conftest.c
28063 #include <linux/blkdev.h>
28069 struct request_queue *q = NULL;
28070 (void) blk_queue_flush(q, REQ_FLUSH);
28080 cat - <<_ACEOF >conftest.h
28085 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28086 echo "obj-m := conftest.o" >build
/Makefile
28088 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28089 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28091 (eval $ac_try) 2>&5
28093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28094 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28096 (eval $ac_try) 2>&5
28098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28099 test $ac_status = 0; }; }; then :
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28102 $as_echo "yes" >&6; }
28104 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
28108 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
28111 cat confdefs.h
- <<_ACEOF >conftest.c
28114 #include <linux/module.h>
28115 #include <linux/blkdev.h>
28117 MODULE_LICENSE("$ZFS_META_LICENSE");
28123 struct request_queue *q = NULL;
28124 (void) blk_queue_flush(q, REQ_FLUSH);
28134 cat - <<_ACEOF >conftest.h
28139 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28140 echo "obj-m := conftest.o" >build
/Makefile
28142 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28143 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28150 (eval $ac_try) 2>&5
28152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28153 test $ac_status = 0; }; }; then :
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28156 $as_echo "no" >&6; }
28159 $as_echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.
$ac_ext >&5
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28163 $as_echo "yes" >&6; }
28165 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
28176 $as_echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.
$ac_ext >&5
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28180 $as_echo "no" >&6; }
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
28190 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
28193 cat confdefs.h
- <<_ACEOF >conftest.c
28196 #include <linux/kernel.h>
28197 #include <linux/blkdev.h>
28204 struct request_queue *q = NULL;
28205 blk_queue_write_cache(q, true, true);
28215 cat - <<_ACEOF >conftest.h
28220 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28221 echo "obj-m := conftest.o" >build
/Makefile
28223 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28224 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28226 (eval $ac_try) 2>&5
28228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28229 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231 (eval $ac_try) 2>&5
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; }; then :
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28237 $as_echo "yes" >&6; }
28239 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
28243 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
28246 cat confdefs.h
- <<_ACEOF >conftest.c
28249 #include <linux/kernel.h>
28250 #include <linux/module.h>
28251 #include <linux/blkdev.h>
28253 MODULE_LICENSE("$ZFS_META_LICENSE");
28259 struct request_queue *q = NULL;
28260 blk_queue_write_cache(q, true, true);
28270 cat - <<_ACEOF >conftest.h
28275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28276 echo "obj-m := conftest.o" >build
/Makefile
28278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28281 (eval $ac_try) 2>&5
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28286 (eval $ac_try) 2>&5
28288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28289 test $ac_status = 0; }; }; then :
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28292 $as_echo "no" >&6; }
28295 $as_echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.
$ac_ext >&5
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28299 $as_echo "yes" >&6; }
28301 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
28312 $as_echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.
$ac_ext >&5
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28316 $as_echo "no" >&6; }
28325 EXTRA_KCFLAGS
="$tmp_flags"
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
28329 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
28330 tmp_flags
="$EXTRA_KCFLAGS"
28331 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28334 cat confdefs.h
- <<_ACEOF >conftest.c
28337 #include <linux/blkdev.h>
28343 struct request_queue *q = NULL;
28344 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
28354 cat - <<_ACEOF >conftest.h
28359 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28360 echo "obj-m := conftest.o" >build
/Makefile
28362 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28363 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28365 (eval $ac_try) 2>&5
28367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28368 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28370 (eval $ac_try) 2>&5
28372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28373 test $ac_status = 0; }; }; then :
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28376 $as_echo "yes" >&6; }
28378 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
28382 $as_echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.
$ac_ext >&5
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28386 $as_echo "no" >&6; }
28394 EXTRA_KCFLAGS
="$tmp_flags"
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
28398 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
28399 tmp_flags
="$EXTRA_KCFLAGS"
28400 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28403 cat confdefs.h
- <<_ACEOF >conftest.c
28406 #include <linux/blkdev.h>
28412 struct request_queue *q = NULL;
28413 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
28423 cat - <<_ACEOF >conftest.h
28428 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28429 echo "obj-m := conftest.o" >build
/Makefile
28431 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28432 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28434 (eval $ac_try) 2>&5
28436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28437 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28439 (eval $ac_try) 2>&5
28441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28442 test $ac_status = 0; }; }; then :
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28445 $as_echo "yes" >&6; }
28447 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
28451 $as_echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.
$ac_ext >&5
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455 $as_echo "no" >&6; }
28463 EXTRA_KCFLAGS
="$tmp_flags"
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
28467 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
28468 tmp_flags
="$EXTRA_KCFLAGS"
28469 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28472 cat confdefs.h
- <<_ACEOF >conftest.c
28475 #include <linux/blkdev.h>
28481 extern enum bio_rw_flags rw;
28483 rw = BIO_RW_UNPLUG;
28493 cat - <<_ACEOF >conftest.h
28498 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28499 echo "obj-m := conftest.o" >build
/Makefile
28501 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28502 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28504 (eval $ac_try) 2>&5
28506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28509 (eval $ac_try) 2>&5
28511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28512 test $ac_status = 0; }; }; then :
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28515 $as_echo "yes" >&6; }
28517 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
28521 $as_echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.
$ac_ext >&5
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525 $as_echo "no" >&6; }
28533 EXTRA_KCFLAGS
="$tmp_flags"
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
28537 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
28538 tmp_flags
="$EXTRA_KCFLAGS"
28539 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28542 cat confdefs.h
- <<_ACEOF >conftest.c
28545 #include <linux/blkdev.h>
28551 struct blk_plug plug;
28553 blk_start_plug(&plug);
28554 blk_finish_plug(&plug);
28564 cat - <<_ACEOF >conftest.h
28569 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28570 echo "obj-m := conftest.o" >build
/Makefile
28572 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28573 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28575 (eval $ac_try) 2>&5
28577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28578 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28580 (eval $ac_try) 2>&5
28582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28583 test $ac_status = 0; }; }; then :
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28586 $as_echo "yes" >&6; }
28588 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
28592 $as_echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.
$ac_ext >&5
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28596 $as_echo "no" >&6; }
28604 EXTRA_KCFLAGS
="$tmp_flags"
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
28608 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
28609 tmp_flags
="$EXTRA_KCFLAGS"
28610 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28613 cat confdefs.h
- <<_ACEOF >conftest.c
28616 #include <linux/blkdev.h>
28622 struct gendisk *disk = NULL;
28623 (void) get_disk_ro(disk);
28633 cat - <<_ACEOF >conftest.h
28638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28639 echo "obj-m := conftest.o" >build
/Makefile
28641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28644 (eval $ac_try) 2>&5
28646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28649 (eval $ac_try) 2>&5
28651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28652 test $ac_status = 0; }; }; then :
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28655 $as_echo "yes" >&6; }
28657 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
28661 $as_echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.
$ac_ext >&5
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665 $as_echo "no" >&6; }
28673 EXTRA_KCFLAGS
="$tmp_flags"
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
28676 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
28680 cat confdefs.h
- <<_ACEOF >conftest.c
28683 #include <linux/genhd.h>
28689 get_gendisk(0, NULL);
28699 cat - <<_ACEOF >conftest.h
28704 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28705 echo "obj-m := conftest.o" >build
/Makefile
28707 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28708 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28710 (eval $ac_try) 2>&5
28712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28713 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28715 (eval $ac_try) 2>&5
28717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28718 test $ac_status = 0; }; }; then :
28721 $as_echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.
$ac_ext >&5
28730 if test $rc -ne 0; then :
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28733 $as_echo "no" >&6; }
28736 if test "x$enable_linux_builtin" != xyes
; then
28738 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
28739 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28741 if test $rc -ne 0; then
28743 for file in block
/genhd.c
; do
28744 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
28745 "$LINUX/$file" 2>/dev
/null
28747 if test $rc -eq 0; then
28752 if test $export -eq 0; then :
28762 if test $rc -ne 0; then :
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28765 $as_echo "no" >&6; }
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28770 $as_echo "yes" >&6; }
28772 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
28781 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
28784 cat confdefs.h
- <<_ACEOF >conftest.c
28787 #include <linux/bio.h>
28793 struct bio *bio __attribute__ ((unused)) = NULL;
28795 bio_set_op_attrs(bio, 0, 0);
28805 cat - <<_ACEOF >conftest.h
28810 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28811 echo "obj-m := conftest.o" >build
/Makefile
28813 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28814 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28816 (eval $ac_try) 2>&5
28818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28819 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28821 (eval $ac_try) 2>&5
28823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28824 test $ac_status = 0; }; }; then :
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28827 $as_echo "yes" >&6; }
28829 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
28833 $as_echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.
$ac_ext >&5
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28837 $as_echo "no" >&6; }
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
28848 $as_echo_n "checking whether generic_readlink is global... " >&6; }
28851 cat confdefs.h
- <<_ACEOF >conftest.c
28854 #include <linux/fs.h>
28860 int i __attribute__ ((unused));
28862 i = generic_readlink(NULL, NULL, 0);
28872 cat - <<_ACEOF >conftest.h
28877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28878 echo "obj-m := conftest.o" >build
/Makefile
28880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28881 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28883 (eval $ac_try) 2>&5
28885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28886 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28888 (eval $ac_try) 2>&5
28890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28891 test $ac_status = 0; }; }; then :
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28894 $as_echo "yes" >&6; }
28896 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
28900 $as_echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.
$ac_ext >&5
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28904 $as_echo "no" >&6; }
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
28915 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
28918 cat confdefs.h
- <<_ACEOF >conftest.c
28921 #include <linux/blkdev.h>
28927 struct queue_limits ql __attribute__ ((unused));
28929 ql.discard_granularity = 0;
28939 cat - <<_ACEOF >conftest.h
28944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28945 echo "obj-m := conftest.o" >build
/Makefile
28947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28950 (eval $ac_try) 2>&5
28952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }; then :
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28961 $as_echo "yes" >&6; }
28963 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
28967 $as_echo "$as_me: failed program was:" >&5
28968 sed 's/^/| /' conftest.
$ac_ext >&5
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28971 $as_echo "no" >&6; }
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
28982 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
28985 cat confdefs.h
- <<_ACEOF >conftest.c
28988 #include <linux/fs.h>
28989 #include <linux/xattr.h>
28991 const struct xattr_handler xattr_test_handler = {
28997 const struct xattr_handler *xattr_handlers[] = {
28998 &xattr_test_handler,
29001 const struct super_block sb __attribute__ ((unused)) = {
29002 .s_xattr = xattr_handlers,
29018 cat - <<_ACEOF >conftest.h
29023 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29024 echo "obj-m := conftest.o" >build
/Makefile
29026 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29027 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29029 (eval $ac_try) 2>&5
29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29032 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29034 (eval $ac_try) 2>&5
29036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037 test $ac_status = 0; }; }; then :
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040 $as_echo "yes" >&6; }
29042 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
29046 $as_echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.
$ac_ext >&5
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29050 $as_echo "no" >&6; }
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
29061 $as_echo_n "checking whether xattr_handler has name... " >&6; }
29064 cat confdefs.h
- <<_ACEOF >conftest.c
29067 #include <linux/xattr.h>
29069 static const struct xattr_handler
29070 xops __attribute__ ((unused)) = {
29071 .name = XATTR_NAME_POSIX_ACL_ACCESS,
29087 cat - <<_ACEOF >conftest.h
29092 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29093 echo "obj-m := conftest.o" >build
/Makefile
29095 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29096 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29098 (eval $ac_try) 2>&5
29100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29101 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29103 (eval $ac_try) 2>&5
29105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29106 test $ac_status = 0; }; }; then :
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29109 $as_echo "yes" >&6; }
29111 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
29115 $as_echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.
$ac_ext >&5
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29119 $as_echo "no" >&6; }
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
29130 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
29133 cat confdefs.h
- <<_ACEOF >conftest.c
29136 #include <linux/xattr.h>
29138 int get(const struct xattr_handler *handler,
29139 struct dentry *dentry, struct inode *inode,
29140 const char *name, void *buffer, size_t size) { return 0; }
29141 static const struct xattr_handler
29142 xops __attribute__ ((unused)) = {
29159 cat - <<_ACEOF >conftest.h
29164 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29165 echo "obj-m := conftest.o" >build
/Makefile
29167 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29168 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29170 (eval $ac_try) 2>&5
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29175 (eval $ac_try) 2>&5
29177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29178 test $ac_status = 0; }; }; then :
29180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29181 $as_echo "yes" >&6; }
29183 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
29187 $as_echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.
$ac_ext >&5
29190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
29191 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
29194 cat confdefs.h
- <<_ACEOF >conftest.c
29197 #include <linux/xattr.h>
29199 int get(const struct xattr_handler *handler,
29200 struct dentry *dentry, const char *name,
29201 void *buffer, size_t size) { return 0; }
29202 static const struct xattr_handler
29203 xops __attribute__ ((unused)) = {
29220 cat - <<_ACEOF >conftest.h
29225 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29226 echo "obj-m := conftest.o" >build
/Makefile
29228 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29229 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29231 (eval $ac_try) 2>&5
29233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29236 (eval $ac_try) 2>&5
29238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29239 test $ac_status = 0; }; }; then :
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29242 $as_echo "yes" >&6; }
29244 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
29248 $as_echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.
$ac_ext >&5
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29252 $as_echo "no" >&6; }
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
29254 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
29257 cat confdefs.h
- <<_ACEOF >conftest.c
29260 #include <linux/xattr.h>
29262 int get(struct dentry *dentry, const char *name,
29263 void *buffer, size_t size, int handler_flags)
29265 static const struct xattr_handler
29266 xops __attribute__ ((unused)) = {
29283 cat - <<_ACEOF >conftest.h
29288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29289 echo "obj-m := conftest.o" >build
/Makefile
29291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29294 (eval $ac_try) 2>&5
29296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29299 (eval $ac_try) 2>&5
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; }; then :
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29305 $as_echo "yes" >&6; }
29307 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
29311 $as_echo "$as_me: failed program was:" >&5
29312 sed 's/^/| /' conftest.
$ac_ext >&5
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29315 $as_echo "no" >&6; }
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
29317 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
29320 cat confdefs.h
- <<_ACEOF >conftest.c
29323 #include <linux/xattr.h>
29325 int get(struct inode *ip, const char *name,
29326 void *buffer, size_t size) { return 0; }
29327 static const struct xattr_handler
29328 xops __attribute__ ((unused)) = {
29345 cat - <<_ACEOF >conftest.h
29350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29351 echo "obj-m := conftest.o" >build
/Makefile
29353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29356 (eval $ac_try) 2>&5
29358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29361 (eval $ac_try) 2>&5
29363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29364 test $ac_status = 0; }; }; then :
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29367 $as_echo "yes" >&6; }
29369 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
29373 $as_echo "$as_me: failed program was:" >&5
29374 sed 's/^/| /' conftest.
$ac_ext >&5
29376 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
29408 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
29411 cat confdefs.h
- <<_ACEOF >conftest.c
29414 #include <linux/xattr.h>
29416 int set(const struct xattr_handler *handler,
29417 struct dentry *dentry, struct inode *inode,
29418 const char *name, const void *buffer,
29419 size_t size, int flags)
29421 static const struct xattr_handler
29422 xops __attribute__ ((unused)) = {
29439 cat - <<_ACEOF >conftest.h
29444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29445 echo "obj-m := conftest.o" >build
/Makefile
29447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29450 (eval $ac_try) 2>&5
29452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29455 (eval $ac_try) 2>&5
29457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29458 test $ac_status = 0; }; }; then :
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29461 $as_echo "yes" >&6; }
29463 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
29467 $as_echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.
$ac_ext >&5
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
29471 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
29474 cat confdefs.h
- <<_ACEOF >conftest.c
29477 #include <linux/xattr.h>
29479 int set(const struct xattr_handler *handler,
29480 struct dentry *dentry, const char *name,
29481 const void *buffer, size_t size, int flags)
29483 static const struct xattr_handler
29484 xops __attribute__ ((unused)) = {
29501 cat - <<_ACEOF >conftest.h
29506 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29507 echo "obj-m := conftest.o" >build
/Makefile
29509 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29510 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29512 (eval $ac_try) 2>&5
29514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29515 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29517 (eval $ac_try) 2>&5
29519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29520 test $ac_status = 0; }; }; then :
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29523 $as_echo "yes" >&6; }
29525 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
29529 $as_echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.
$ac_ext >&5
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533 $as_echo "no" >&6; }
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
29535 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
29538 cat confdefs.h
- <<_ACEOF >conftest.c
29541 #include <linux/xattr.h>
29543 int set(struct dentry *dentry, const char *name,
29544 const void *buffer, size_t size, int flags,
29545 int handler_flags) { return 0; }
29546 static const struct xattr_handler
29547 xops __attribute__ ((unused)) = {
29564 cat - <<_ACEOF >conftest.h
29569 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29570 echo "obj-m := conftest.o" >build
/Makefile
29572 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29573 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29575 (eval $ac_try) 2>&5
29577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29578 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29580 (eval $ac_try) 2>&5
29582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29583 test $ac_status = 0; }; }; then :
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29586 $as_echo "yes" >&6; }
29588 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
29592 $as_echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.
$ac_ext >&5
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29596 $as_echo "no" >&6; }
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
29598 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
29601 cat confdefs.h
- <<_ACEOF >conftest.c
29604 #include <linux/xattr.h>
29606 int set(struct inode *ip, const char *name,
29607 const void *buffer, size_t size, int flags)
29609 static const struct xattr_handler
29610 xops __attribute__ ((unused)) = {
29627 cat - <<_ACEOF >conftest.h
29632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29633 echo "obj-m := conftest.o" >build
/Makefile
29635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29636 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29638 (eval $ac_try) 2>&5
29640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29641 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29643 (eval $ac_try) 2>&5
29645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29646 test $ac_status = 0; }; }; then :
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29649 $as_echo "yes" >&6; }
29651 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
29655 $as_echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.
$ac_ext >&5
29658 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
29690 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
29693 cat confdefs.h
- <<_ACEOF >conftest.c
29696 #include <linux/xattr.h>
29698 bool list(struct dentry *dentry) { return 0; }
29699 static const struct xattr_handler
29700 xops __attribute__ ((unused)) = {
29717 cat - <<_ACEOF >conftest.h
29722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29723 echo "obj-m := conftest.o" >build
/Makefile
29725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29726 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29728 (eval $ac_try) 2>&5
29730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29731 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29733 (eval $ac_try) 2>&5
29735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29736 test $ac_status = 0; }; }; then :
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29739 $as_echo "yes" >&6; }
29741 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
29745 $as_echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.
$ac_ext >&5
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29749 $as_echo "no" >&6; }
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
29751 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
29754 cat confdefs.h
- <<_ACEOF >conftest.c
29757 #include <linux/xattr.h>
29759 size_t list(const struct xattr_handler *handler,
29760 struct dentry *dentry, char *list, size_t list_size,
29761 const char *name, size_t name_len) { return 0; }
29762 static const struct xattr_handler
29763 xops __attribute__ ((unused)) = {
29780 cat - <<_ACEOF >conftest.h
29785 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29786 echo "obj-m := conftest.o" >build
/Makefile
29788 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29789 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29791 (eval $ac_try) 2>&5
29793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29794 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29796 (eval $ac_try) 2>&5
29798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29799 test $ac_status = 0; }; }; then :
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29802 $as_echo "yes" >&6; }
29804 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
29808 $as_echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.
$ac_ext >&5
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29812 $as_echo "no" >&6; }
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
29814 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
29817 cat confdefs.h
- <<_ACEOF >conftest.c
29820 #include <linux/xattr.h>
29822 size_t list(struct dentry *dentry,
29823 char *list, size_t list_size,
29824 const char *name, size_t name_len,
29825 int handler_flags) { return 0; }
29826 static const struct xattr_handler
29827 xops __attribute__ ((unused)) = {
29844 cat - <<_ACEOF >conftest.h
29849 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29850 echo "obj-m := conftest.o" >build
/Makefile
29852 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29853 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29855 (eval $ac_try) 2>&5
29857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29858 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29860 (eval $ac_try) 2>&5
29862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29863 test $ac_status = 0; }; }; then :
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29866 $as_echo "yes" >&6; }
29868 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
29872 $as_echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.
$ac_ext >&5
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29876 $as_echo "no" >&6; }
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
29878 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
29881 cat confdefs.h
- <<_ACEOF >conftest.c
29884 #include <linux/xattr.h>
29886 size_t list(struct inode *ip, char *lst,
29887 size_t list_size, const char *name,
29888 size_t name_len) { return 0; }
29889 static const struct xattr_handler
29890 xops __attribute__ ((unused)) = {
29907 cat - <<_ACEOF >conftest.h
29912 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29913 echo "obj-m := conftest.o" >build
/Makefile
29915 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29916 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29918 (eval $ac_try) 2>&5
29920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29921 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29923 (eval $ac_try) 2>&5
29925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29926 test $ac_status = 0; }; }; then :
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29929 $as_echo "yes" >&6; }
29931 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
29935 $as_echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.
$ac_ext >&5
29938 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
29970 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
29973 cat confdefs.h
- <<_ACEOF >conftest.c
29976 #include <linux/fs.h>
29982 struct inode *ip = NULL;
29983 (void) inode_owner_or_capable(ip);
29993 cat - <<_ACEOF >conftest.h
29998 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29999 echo "obj-m := conftest.o" >build
/Makefile
30001 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30002 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30004 (eval $ac_try) 2>&5
30006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30007 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30009 (eval $ac_try) 2>&5
30011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30012 test $ac_status = 0; }; }; then :
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015 $as_echo "yes" >&6; }
30017 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
30021 $as_echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.
$ac_ext >&5
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
30027 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
30030 cat confdefs.h
- <<_ACEOF >conftest.c
30033 #include <linux/fs.h>
30034 #include <linux/sched.h>
30040 struct inode *ip = NULL;
30041 (void) is_owner_or_cap(ip);
30051 cat - <<_ACEOF >conftest.h
30056 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30057 echo "obj-m := conftest.o" >build
/Makefile
30059 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30060 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30062 (eval $ac_try) 2>&5
30064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30065 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30067 (eval $ac_try) 2>&5
30069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30070 test $ac_status = 0; }; }; then :
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30073 $as_echo "yes" >&6; }
30075 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
30079 $as_echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.
$ac_ext >&5
30082 as_fn_error $?
"no - Please file a bug report at
30083 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
30100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
30101 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
30104 cat confdefs.h
- <<_ACEOF >conftest.c
30107 #include <linux/cred.h>
30108 #include <linux/fs.h>
30109 #include <linux/posix_acl_xattr.h>
30115 posix_acl_from_xattr(&init_user_ns, NULL, 0);
30125 cat - <<_ACEOF >conftest.h
30130 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30131 echo "obj-m := conftest.o" >build
/Makefile
30133 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30134 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30136 (eval $ac_try) 2>&5
30138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30139 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30141 (eval $ac_try) 2>&5
30143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30144 test $ac_status = 0; }; }; then :
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30147 $as_echo "yes" >&6; }
30149 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
30153 $as_echo "$as_me: failed program was:" >&5
30154 sed 's/^/| /' conftest.
$ac_ext >&5
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30157 $as_echo "no" >&6; }
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
30168 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
30171 cat confdefs.h
- <<_ACEOF >conftest.c
30174 #include <linux/cred.h>
30175 #include <linux/fs.h>
30176 #include <linux/posix_acl.h>
30182 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30183 posix_acl_release(tmp);
30193 cat - <<_ACEOF >conftest.h
30198 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30199 echo "obj-m := conftest.o" >build
/Makefile
30201 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30202 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30204 (eval $ac_try) 2>&5
30206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30207 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30209 (eval $ac_try) 2>&5
30211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30212 test $ac_status = 0; }; }; then :
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30215 $as_echo "yes" >&6; }
30217 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
30221 $as_echo "$as_me: failed program was:" >&5
30222 sed 's/^/| /' conftest.
$ac_ext >&5
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30225 $as_echo "no" >&6; }
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
30235 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
30238 cat confdefs.h
- <<_ACEOF >conftest.c
30241 #include <linux/cred.h>
30242 #include <linux/fs.h>
30243 #include <linux/posix_acl.h>
30245 MODULE_LICENSE("$ZFS_META_LICENSE");
30251 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30252 posix_acl_release(tmp);
30262 cat - <<_ACEOF >conftest.h
30267 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30268 echo "obj-m := conftest.o" >build
/Makefile
30270 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30271 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30273 (eval $ac_try) 2>&5
30275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30276 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30278 (eval $ac_try) 2>&5
30280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30281 test $ac_status = 0; }; }; then :
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284 $as_echo "no" >&6; }
30287 $as_echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.
$ac_ext >&5
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30291 $as_echo "yes" >&6; }
30293 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
30305 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
30308 cat confdefs.h
- <<_ACEOF >conftest.c
30311 #include <linux/module.h>
30312 #include <linux/cred.h>
30313 #include <linux/fs.h>
30314 #include <linux/posix_acl.h>
30316 MODULE_LICENSE("$ZFS_META_LICENSE");
30322 struct inode *ip = NULL;
30323 struct posix_acl *acl = posix_acl_alloc(1, 0);
30324 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
30325 forget_cached_acl(ip, ACL_TYPE_ACCESS);
30335 cat - <<_ACEOF >conftest.h
30340 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30341 echo "obj-m := conftest.o" >build
/Makefile
30343 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30344 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30346 (eval $ac_try) 2>&5
30348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30349 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30351 (eval $ac_try) 2>&5
30353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30354 test $ac_status = 0; }; }; then :
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30357 $as_echo "yes" >&6; }
30359 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
30363 $as_echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.
$ac_ext >&5
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30367 $as_echo "no" >&6; }
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
30378 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
30381 cat confdefs.h
- <<_ACEOF >conftest.c
30384 #include <linux/fs.h>
30385 #include <linux/posix_acl.h>
30391 posix_acl_chmod(NULL, 0, 0)
30401 cat - <<_ACEOF >conftest.h
30406 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30407 echo "obj-m := conftest.o" >build
/Makefile
30409 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30410 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30412 (eval $ac_try) 2>&5
30414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30415 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30417 (eval $ac_try) 2>&5
30419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30420 test $ac_status = 0; }; }; then :
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30423 $as_echo "yes" >&6; }
30425 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
30429 $as_echo "$as_me: failed program was:" >&5
30430 sed 's/^/| /' conftest.
$ac_ext >&5
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30433 $as_echo "no" >&6; }
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
30443 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
30446 cat confdefs.h
- <<_ACEOF >conftest.c
30449 #include <linux/fs.h>
30450 #include <linux/posix_acl.h>
30456 __posix_acl_chmod(NULL, 0, 0)
30466 cat - <<_ACEOF >conftest.h
30471 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30472 echo "obj-m := conftest.o" >build
/Makefile
30474 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30475 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30477 (eval $ac_try) 2>&5
30479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30480 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30482 (eval $ac_try) 2>&5
30484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30485 test $ac_status = 0; }; }; then :
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30488 $as_echo "yes" >&6; }
30490 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
30494 $as_echo "$as_me: failed program was:" >&5
30495 sed 's/^/| /' conftest.
$ac_ext >&5
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498 $as_echo "no" >&6; }
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
30509 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
30512 cat confdefs.h
- <<_ACEOF >conftest.c
30515 #include <linux/fs.h>
30516 #include <linux/posix_acl.h>
30523 posix_acl_equiv_mode(NULL,&tmp);
30533 cat - <<_ACEOF >conftest.h
30538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30539 echo "obj-m := conftest.o" >build
/Makefile
30541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30542 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30544 (eval $ac_try) 2>&5
30546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30547 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30549 (eval $ac_try) 2>&5
30551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552 test $ac_status = 0; }; }; then :
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30555 $as_echo "yes" >&6; }
30557 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
30561 $as_echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.
$ac_ext >&5
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30565 $as_echo "no" >&6; }
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
30576 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
30579 cat confdefs.h
- <<_ACEOF >conftest.c
30582 #include <linux/fs.h>
30583 #include <linux/posix_acl.h>
30589 struct user_namespace *user_ns = NULL;
30590 const struct posix_acl *acl = NULL;
30593 error = posix_acl_valid(user_ns, acl);
30603 cat - <<_ACEOF >conftest.h
30608 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30609 echo "obj-m := conftest.o" >build
/Makefile
30611 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30612 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30614 (eval $ac_try) 2>&5
30616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30617 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30619 (eval $ac_try) 2>&5
30621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30622 test $ac_status = 0; }; }; then :
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30625 $as_echo "yes" >&6; }
30627 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
30631 $as_echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.
$ac_ext >&5
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30635 $as_echo "no" >&6; }
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
30646 $as_echo_n "checking whether iops->permission() exists... " >&6; }
30649 cat confdefs.h
- <<_ACEOF >conftest.c
30652 #include <linux/fs.h>
30654 int permission_fn(struct inode *inode, int mask) { return 0; }
30656 static const struct inode_operations
30657 iops __attribute__ ((unused)) = {
30658 .permission = permission_fn,
30674 cat - <<_ACEOF >conftest.h
30679 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30680 echo "obj-m := conftest.o" >build
/Makefile
30682 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30683 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30685 (eval $ac_try) 2>&5
30687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30688 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30690 (eval $ac_try) 2>&5
30692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30693 test $ac_status = 0; }; }; then :
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30696 $as_echo "yes" >&6; }
30698 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30702 $as_echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.
$ac_ext >&5
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30706 $as_echo "no" >&6; }
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
30717 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
30720 cat confdefs.h
- <<_ACEOF >conftest.c
30723 #include <linux/fs.h>
30725 int permission_fn(struct inode *inode, int mask,
30726 struct nameidata *nd) { return 0; }
30728 static const struct inode_operations
30729 iops __attribute__ ((unused)) = {
30730 .permission = permission_fn,
30746 cat - <<_ACEOF >conftest.h
30751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30752 echo "obj-m := conftest.o" >build
/Makefile
30754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30757 (eval $ac_try) 2>&5
30759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30762 (eval $ac_try) 2>&5
30764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30765 test $ac_status = 0; }; }; then :
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30768 $as_echo "yes" >&6; }
30770 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30773 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
30777 $as_echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.
$ac_ext >&5
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30781 $as_echo "no" >&6; }
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
30792 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
30795 cat confdefs.h
- <<_ACEOF >conftest.c
30798 #include <linux/fs.h>
30800 int check_acl_fn(struct inode *inode, int mask) { return 0; }
30802 static const struct inode_operations
30803 iops __attribute__ ((unused)) = {
30804 .check_acl = check_acl_fn,
30820 cat - <<_ACEOF >conftest.h
30825 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30826 echo "obj-m := conftest.o" >build
/Makefile
30828 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30829 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30831 (eval $ac_try) 2>&5
30833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30834 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30836 (eval $ac_try) 2>&5
30838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30839 test $ac_status = 0; }; }; then :
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30842 $as_echo "yes" >&6; }
30844 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30848 $as_echo "$as_me: failed program was:" >&5
30849 sed 's/^/| /' conftest.
$ac_ext >&5
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30852 $as_echo "no" >&6; }
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
30863 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
30866 cat confdefs.h
- <<_ACEOF >conftest.c
30869 #include <linux/fs.h>
30871 int check_acl_fn(struct inode *inode, int mask,
30872 unsigned int flags) { return 0; }
30874 static const struct inode_operations
30875 iops __attribute__ ((unused)) = {
30876 .check_acl = check_acl_fn,
30892 cat - <<_ACEOF >conftest.h
30897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30898 echo "obj-m := conftest.o" >build
/Makefile
30900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30903 (eval $ac_try) 2>&5
30905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30908 (eval $ac_try) 2>&5
30910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30911 test $ac_status = 0; }; }; then :
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30914 $as_echo "yes" >&6; }
30916 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30919 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
30923 $as_echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.
$ac_ext >&5
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30927 $as_echo "no" >&6; }
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
30938 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
30941 cat confdefs.h
- <<_ACEOF >conftest.c
30944 #include <linux/fs.h>
30946 struct posix_acl *get_acl_fn(struct inode *inode, int type)
30949 static const struct inode_operations
30950 iops __attribute__ ((unused)) = {
30951 .get_acl = get_acl_fn,
30967 cat - <<_ACEOF >conftest.h
30972 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30973 echo "obj-m := conftest.o" >build
/Makefile
30975 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30976 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30978 (eval $ac_try) 2>&5
30980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30981 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30983 (eval $ac_try) 2>&5
30985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30986 test $ac_status = 0; }; }; then :
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989 $as_echo "yes" >&6; }
30991 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
30995 $as_echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.
$ac_ext >&5
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999 $as_echo "no" >&6; }
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
31010 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
31013 cat confdefs.h
- <<_ACEOF >conftest.c
31016 #include <linux/fs.h>
31018 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
31021 static const struct inode_operations
31022 iops __attribute__ ((unused)) = {
31023 .set_acl = set_acl_fn,
31039 cat - <<_ACEOF >conftest.h
31044 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31045 echo "obj-m := conftest.o" >build
/Makefile
31047 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31048 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31050 (eval $ac_try) 2>&5
31052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31053 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31055 (eval $ac_try) 2>&5
31057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31058 test $ac_status = 0; }; }; then :
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31061 $as_echo "yes" >&6; }
31063 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
31067 $as_echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.
$ac_ext >&5
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071 $as_echo "no" >&6; }
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
31083 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
31086 cat confdefs.h
- <<_ACEOF >conftest.c
31089 #include <linux/fs.h>
31092 const struct path *p, struct kstat *k,
31093 u32 request_mask, unsigned int query_flags)
31096 static const struct inode_operations
31097 iops __attribute__ ((unused)) = {
31098 .getattr = test_getattr,
31114 cat - <<_ACEOF >conftest.h
31119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31120 echo "obj-m := conftest.o" >build
/Makefile
31122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31125 (eval $ac_try) 2>&5
31127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31130 (eval $ac_try) 2>&5
31132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31133 test $ac_status = 0; }; }; then :
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31136 $as_echo "yes" >&6; }
31138 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
31142 $as_echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.
$ac_ext >&5
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
31157 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
31160 cat confdefs.h
- <<_ACEOF >conftest.c
31163 #include <linux/fs.h>
31166 struct vfsmount *mnt, struct dentry *d,
31170 static const struct inode_operations
31171 iops __attribute__ ((unused)) = {
31172 .getattr = test_getattr,
31188 cat - <<_ACEOF >conftest.h
31193 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31194 echo "obj-m := conftest.o" >build
/Makefile
31196 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31197 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31199 (eval $ac_try) 2>&5
31201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31202 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31204 (eval $ac_try) 2>&5
31206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31207 test $ac_status = 0; }; }; then :
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31210 $as_echo "yes" >&6; }
31212 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
31216 $as_echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.
$ac_ext >&5
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31220 $as_echo "no" >&6; }
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
31232 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
31235 cat confdefs.h
- <<_ACEOF >conftest.c
31238 #include <linux/fs.h>
31244 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
31254 cat - <<_ACEOF >conftest.h
31259 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31260 echo "obj-m := conftest.o" >build
/Makefile
31262 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31263 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31265 (eval $ac_try) 2>&5
31267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31268 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31270 (eval $ac_try) 2>&5
31272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31273 test $ac_status = 0; }; }; then :
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31276 $as_echo "yes" >&6; }
31278 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
31282 $as_echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.
$ac_ext >&5
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31286 $as_echo "no" >&6; }
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
31297 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
31301 cat confdefs.h
- <<_ACEOF >conftest.c
31304 #include <linux/fs.h>
31306 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
31307 static struct super_operations sops __attribute__ ((unused)) = {
31308 .show_options = show_options,
31324 cat - <<_ACEOF >conftest.h
31329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31330 echo "obj-m := conftest.o" >build
/Makefile
31332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31335 (eval $ac_try) 2>&5
31337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31340 (eval $ac_try) 2>&5
31342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31343 test $ac_status = 0; }; }; then :
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31346 $as_echo "yes" >&6; }
31348 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
31352 $as_echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.
$ac_ext >&5
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31356 $as_echo "no" >&6; }
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
31367 $as_echo_n "checking whether file_inode() is available... " >&6; }
31370 cat confdefs.h
- <<_ACEOF >conftest.c
31373 #include <linux/fs.h>
31379 struct file *f = NULL;
31390 cat - <<_ACEOF >conftest.h
31395 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31396 echo "obj-m := conftest.o" >build
/Makefile
31398 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31399 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31401 (eval $ac_try) 2>&5
31403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31404 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31406 (eval $ac_try) 2>&5
31408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31409 test $ac_status = 0; }; }; then :
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412 $as_echo "yes" >&6; }
31414 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
31418 $as_echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.
$ac_ext >&5
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31422 $as_echo "no" >&6; }
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
31433 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
31437 cat confdefs.h
- <<_ACEOF >conftest.c
31440 #include <linux/fs.h>
31442 int test_fsync(struct file *f, struct dentry *dentry, int x)
31445 static const struct file_operations
31446 fops __attribute__ ((unused)) = {
31447 .fsync = test_fsync,
31463 cat - <<_ACEOF >conftest.h
31468 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31469 echo "obj-m := conftest.o" >build
/Makefile
31471 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31472 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31474 (eval $ac_try) 2>&5
31476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31477 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31479 (eval $ac_try) 2>&5
31481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31482 test $ac_status = 0; }; }; then :
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
31485 $as_echo "dentry" >&6; }
31487 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
31491 $as_echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.
$ac_ext >&5
31505 cat confdefs.h
- <<_ACEOF >conftest.c
31508 #include <linux/fs.h>
31510 int test_fsync(struct file *f, int x) { return 0; }
31512 static const struct file_operations
31513 fops __attribute__ ((unused)) = {
31514 .fsync = test_fsync,
31530 cat - <<_ACEOF >conftest.h
31535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31536 echo "obj-m := conftest.o" >build
/Makefile
31538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31541 (eval $ac_try) 2>&5
31543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31546 (eval $ac_try) 2>&5
31548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31549 test $ac_status = 0; }; }; then :
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
31552 $as_echo "no dentry" >&6; }
31554 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
31558 $as_echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.
$ac_ext >&5
31572 cat confdefs.h
- <<_ACEOF >conftest.c
31575 #include <linux/fs.h>
31577 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
31580 static const struct file_operations
31581 fops __attribute__ ((unused)) = {
31582 .fsync = test_fsync,
31598 cat - <<_ACEOF >conftest.h
31603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31604 echo "obj-m := conftest.o" >build
/Makefile
31606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31609 (eval $ac_try) 2>&5
31611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31614 (eval $ac_try) 2>&5
31616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31617 test $ac_status = 0; }; }; then :
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
31620 $as_echo "range" >&6; }
31622 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
31626 $as_echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.
$ac_ext >&5
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
31640 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
31643 cat confdefs.h
- <<_ACEOF >conftest.c
31646 #include <linux/fs.h>
31647 void evict_inode (struct inode * t) { return; }
31648 static struct super_operations sops __attribute__ ((unused)) = {
31649 .evict_inode = evict_inode,
31665 cat - <<_ACEOF >conftest.h
31670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31671 echo "obj-m := conftest.o" >build
/Makefile
31673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31676 (eval $ac_try) 2>&5
31678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31681 (eval $ac_try) 2>&5
31683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31684 test $ac_status = 0; }; }; then :
31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31687 $as_echo "yes" >&6; }
31689 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
31693 $as_echo "$as_me: failed program was:" >&5
31694 sed 's/^/| /' conftest.
$ac_ext >&5
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31697 $as_echo "no" >&6; }
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
31708 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
31711 cat confdefs.h
- <<_ACEOF >conftest.c
31714 #include <linux/fs.h>
31716 void dirty_inode(struct inode *a, int b) { return; }
31718 static const struct super_operations
31719 sops __attribute__ ((unused)) = {
31720 .dirty_inode = dirty_inode,
31736 cat - <<_ACEOF >conftest.h
31741 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31742 echo "obj-m := conftest.o" >build
/Makefile
31744 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31745 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31752 (eval $ac_try) 2>&5
31754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31755 test $ac_status = 0; }; }; then :
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758 $as_echo "yes" >&6; }
31760 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
31764 $as_echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.
$ac_ext >&5
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31768 $as_echo "no" >&6; }
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
31779 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
31782 cat confdefs.h
- <<_ACEOF >conftest.c
31785 #include <linux/fs.h>
31787 int nr_cached_objects(struct super_block *sb) { return 0; }
31789 static const struct super_operations
31790 sops __attribute__ ((unused)) = {
31791 .nr_cached_objects = nr_cached_objects,
31807 cat - <<_ACEOF >conftest.h
31812 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31813 echo "obj-m := conftest.o" >build
/Makefile
31815 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31816 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31818 (eval $ac_try) 2>&5
31820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31821 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31823 (eval $ac_try) 2>&5
31825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31826 test $ac_status = 0; }; }; then :
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31829 $as_echo "yes" >&6; }
31831 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
31835 $as_echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.
$ac_ext >&5
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31839 $as_echo "no" >&6; }
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
31850 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
31853 cat confdefs.h
- <<_ACEOF >conftest.c
31856 #include <linux/fs.h>
31858 void free_cached_objects(struct super_block *sb, int x)
31861 static const struct super_operations
31862 sops __attribute__ ((unused)) = {
31863 .free_cached_objects = free_cached_objects,
31879 cat - <<_ACEOF >conftest.h
31884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31885 echo "obj-m := conftest.o" >build
/Makefile
31887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31890 (eval $ac_try) 2>&5
31892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31895 (eval $ac_try) 2>&5
31897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31898 test $ac_status = 0; }; }; then :
31900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31901 $as_echo "yes" >&6; }
31903 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
31907 $as_echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.
$ac_ext >&5
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31911 $as_echo "no" >&6; }
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
31923 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
31926 cat confdefs.h
- <<_ACEOF >conftest.c
31929 #include <linux/fs.h>
31931 long test_fallocate(struct file *file, int mode,
31932 loff_t offset, loff_t len) { return 0; }
31934 static const struct file_operations
31935 fops __attribute__ ((unused)) = {
31936 .fallocate = test_fallocate,
31952 cat - <<_ACEOF >conftest.h
31957 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31958 echo "obj-m := conftest.o" >build
/Makefile
31960 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31961 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31963 (eval $ac_try) 2>&5
31965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31966 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31968 (eval $ac_try) 2>&5
31970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31971 test $ac_status = 0; }; }; then :
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31974 $as_echo "yes" >&6; }
31976 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
31980 $as_echo "$as_me: failed program was:" >&5
31981 sed 's/^/| /' conftest.
$ac_ext >&5
31983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31984 $as_echo "no" >&6; }
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
31995 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
31998 cat confdefs.h
- <<_ACEOF >conftest.c
32001 #include <linux/fs.h>
32003 long test_fallocate(struct inode *inode, int mode,
32004 loff_t offset, loff_t len) { return 0; }
32006 static const struct inode_operations
32007 fops __attribute__ ((unused)) = {
32008 .fallocate = test_fallocate,
32024 cat - <<_ACEOF >conftest.h
32029 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32030 echo "obj-m := conftest.o" >build
/Makefile
32032 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32033 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32035 (eval $ac_try) 2>&5
32037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32038 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32040 (eval $ac_try) 2>&5
32042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32043 test $ac_status = 0; }; }; then :
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32046 $as_echo "yes" >&6; }
32048 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
32052 $as_echo "$as_me: failed program was:" >&5
32053 sed 's/^/| /' conftest.
$ac_ext >&5
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32056 $as_echo "no" >&6; }
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
32068 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
32071 cat confdefs.h
- <<_ACEOF >conftest.c
32074 #include <linux/fs.h>
32076 static const struct file_operations
32077 fops __attribute__ ((unused)) = {
32094 cat - <<_ACEOF >conftest.h
32099 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32100 echo "obj-m := conftest.o" >build
/Makefile
32102 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32103 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32105 (eval $ac_try) 2>&5
32107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32108 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32110 (eval $ac_try) 2>&5
32112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32113 test $ac_status = 0; }; }; then :
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32116 $as_echo "yes" >&6; }
32118 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
32122 $as_echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.
$ac_ext >&5
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32126 $as_echo "no" >&6; }
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
32137 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
32140 cat confdefs.h
- <<_ACEOF >conftest.c
32143 #include <linux/fs.h>
32145 int mkdir(struct inode *inode, struct dentry *dentry,
32146 umode_t umode) { return 0; }
32148 static const struct inode_operations
32149 iops __attribute__ ((unused)) = {
32166 cat - <<_ACEOF >conftest.h
32171 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32172 echo "obj-m := conftest.o" >build
/Makefile
32174 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32175 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32177 (eval $ac_try) 2>&5
32179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32180 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32182 (eval $ac_try) 2>&5
32184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32185 test $ac_status = 0; }; }; then :
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32188 $as_echo "yes" >&6; }
32190 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
32194 $as_echo "$as_me: failed program was:" >&5
32195 sed 's/^/| /' conftest.
$ac_ext >&5
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32198 $as_echo "no" >&6; }
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
32209 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
32212 cat confdefs.h
- <<_ACEOF >conftest.c
32215 #include <linux/fs.h>
32217 struct dentry *inode_lookup(struct inode *inode,
32218 struct dentry *dentry, struct nameidata *nidata)
32221 static const struct inode_operations iops
32222 __attribute__ ((unused)) = {
32223 .lookup = inode_lookup,
32239 cat - <<_ACEOF >conftest.h
32244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32245 echo "obj-m := conftest.o" >build
/Makefile
32247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32250 (eval $ac_try) 2>&5
32252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32255 (eval $ac_try) 2>&5
32257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32258 test $ac_status = 0; }; }; then :
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32261 $as_echo "yes" >&6; }
32263 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
32267 $as_echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.
$ac_ext >&5
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32271 $as_echo "no" >&6; }
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
32282 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
32285 cat confdefs.h
- <<_ACEOF >conftest.c
32288 #include <linux/fs.h>
32290 #ifdef HAVE_MKDIR_UMODE_T
32291 int inode_create(struct inode *inode ,struct dentry *dentry,
32292 umode_t umode, struct nameidata *nidata) { return 0; }
32294 int inode_create(struct inode *inode,struct dentry *dentry,
32295 int umode, struct nameidata * nidata) { return 0; }
32298 static const struct inode_operations
32299 iops __attribute__ ((unused)) = {
32300 .create = inode_create,
32316 cat - <<_ACEOF >conftest.h
32321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32322 echo "obj-m := conftest.o" >build
/Makefile
32324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32327 (eval $ac_try) 2>&5
32329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32332 (eval $ac_try) 2>&5
32334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32335 test $ac_status = 0; }; }; then :
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32338 $as_echo "yes" >&6; }
32340 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
32344 $as_echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.
$ac_ext >&5
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32348 $as_echo "no" >&6; }
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
32359 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
32362 cat confdefs.h
- <<_ACEOF >conftest.c
32365 #include <linux/fs.h>
32366 const char *get_link(struct dentry *de, struct inode *ip,
32367 struct delayed_call *done) { return "symlink"; }
32368 static struct inode_operations
32369 iops __attribute__ ((unused)) = {
32370 .get_link = get_link,
32386 cat - <<_ACEOF >conftest.h
32391 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32392 echo "obj-m := conftest.o" >build
/Makefile
32394 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32395 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32397 (eval $ac_try) 2>&5
32399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32400 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32402 (eval $ac_try) 2>&5
32404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32405 test $ac_status = 0; }; }; then :
32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32408 $as_echo "yes" >&6; }
32410 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
32414 $as_echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.
$ac_ext >&5
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32418 $as_echo "no" >&6; }
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
32420 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
32423 cat confdefs.h
- <<_ACEOF >conftest.c
32426 #include <linux/fs.h>
32427 const char *get_link(struct dentry *de, struct
32428 inode *ip, void **cookie) { return "symlink"; }
32429 static struct inode_operations
32430 iops __attribute__ ((unused)) = {
32431 .get_link = get_link,
32447 cat - <<_ACEOF >conftest.h
32452 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32453 echo "obj-m := conftest.o" >build
/Makefile
32455 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32456 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32458 (eval $ac_try) 2>&5
32460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32461 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32463 (eval $ac_try) 2>&5
32465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32466 test $ac_status = 0; }; }; then :
32468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32469 $as_echo "yes" >&6; }
32471 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
32475 $as_echo "$as_me: failed program was:" >&5
32476 sed 's/^/| /' conftest.
$ac_ext >&5
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32479 $as_echo "no" >&6; }
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
32482 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
32485 cat confdefs.h
- <<_ACEOF >conftest.c
32488 #include <linux/fs.h>
32489 const char *follow_link(struct dentry *de,
32490 void **cookie) { return "symlink"; }
32491 static struct inode_operations
32492 iops __attribute__ ((unused)) = {
32493 .follow_link = follow_link,
32509 cat - <<_ACEOF >conftest.h
32514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32515 echo "obj-m := conftest.o" >build
/Makefile
32517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32518 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32520 (eval $ac_try) 2>&5
32522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32523 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32525 (eval $ac_try) 2>&5
32527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32528 test $ac_status = 0; }; }; then :
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32531 $as_echo "yes" >&6; }
32533 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
32537 $as_echo "$as_me: failed program was:" >&5
32538 sed 's/^/| /' conftest.
$ac_ext >&5
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32541 $as_echo "no" >&6; }
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
32543 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
32546 cat confdefs.h
- <<_ACEOF >conftest.c
32549 #include <linux/fs.h>
32550 void *follow_link(struct dentry *de, struct
32551 nameidata *nd) { return (void *)NULL; }
32552 static struct inode_operations
32553 iops __attribute__ ((unused)) = {
32554 .follow_link = follow_link,
32570 cat - <<_ACEOF >conftest.h
32575 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32576 echo "obj-m := conftest.o" >build
/Makefile
32578 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32579 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32581 (eval $ac_try) 2>&5
32583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32584 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32586 (eval $ac_try) 2>&5
32588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32589 test $ac_status = 0; }; }; then :
32591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32592 $as_echo "yes" >&6; }
32594 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
32598 $as_echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.
$ac_ext >&5
32601 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32635 cat confdefs.h
- <<_ACEOF >conftest.c
32638 #if !defined(HAVE_GET_LINK_DELAYED)
32639 #error "Expecting get_link() delayed done"
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 :
32677 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
32681 $as_echo "$as_me: failed program was:" >&5
32682 sed 's/^/| /' conftest.
$ac_ext >&5
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
32685 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
32688 cat confdefs.h
- <<_ACEOF >conftest.c
32691 #include <linux/fs.h>
32692 void put_link(struct inode *ip, void *cookie)
32694 static struct inode_operations
32695 iops __attribute__ ((unused)) = {
32696 .put_link = put_link,
32712 cat - <<_ACEOF >conftest.h
32717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32718 echo "obj-m := conftest.o" >build
/Makefile
32720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32721 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32723 (eval $ac_try) 2>&5
32725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32728 (eval $ac_try) 2>&5
32730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32731 test $ac_status = 0; }; }; then :
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32734 $as_echo "yes" >&6; }
32736 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
32740 $as_echo "$as_me: failed program was:" >&5
32741 sed 's/^/| /' conftest.
$ac_ext >&5
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32744 $as_echo "no" >&6; }
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
32746 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
32749 cat confdefs.h
- <<_ACEOF >conftest.c
32752 #include <linux/fs.h>
32753 void put_link(struct dentry *de, struct
32754 nameidata *nd, void *ptr) { return; }
32755 static struct inode_operations
32756 iops __attribute__ ((unused)) = {
32757 .put_link = put_link,
32773 cat - <<_ACEOF >conftest.h
32778 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32779 echo "obj-m := conftest.o" >build
/Makefile
32781 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32782 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32784 (eval $ac_try) 2>&5
32786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32787 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32789 (eval $ac_try) 2>&5
32791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32792 test $ac_status = 0; }; }; then :
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32795 $as_echo "yes" >&6; }
32797 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
32801 $as_echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.
$ac_ext >&5
32804 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
32829 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
32832 cat confdefs.h
- <<_ACEOF >conftest.c
32835 #include <linux/fs.h>
32836 void truncate_range(struct inode *inode, loff_t start,
32837 loff_t end) { return; }
32838 static struct inode_operations iops __attribute__ ((unused)) = {
32839 .truncate_range = truncate_range,
32855 cat - <<_ACEOF >conftest.h
32860 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32861 echo "obj-m := conftest.o" >build
/Makefile
32863 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32864 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32866 (eval $ac_try) 2>&5
32868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32869 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32871 (eval $ac_try) 2>&5
32873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32874 test $ac_status = 0; }; }; then :
32876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32877 $as_echo "yes" >&6; }
32879 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
32883 $as_echo "$as_me: failed program was:" >&5
32884 sed 's/^/| /' conftest.
$ac_ext >&5
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32887 $as_echo "no" >&6; }
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
32898 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
32901 cat confdefs.h
- <<_ACEOF >conftest.c
32904 #include <linux/dcache.h>
32905 struct vfsmount *d_automount(struct path *p) { return NULL; }
32906 struct dentry_operations dops __attribute__ ((unused)) = {
32907 .d_automount = d_automount,
32923 cat - <<_ACEOF >conftest.h
32928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32929 echo "obj-m := conftest.o" >build
/Makefile
32931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32932 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32934 (eval $ac_try) 2>&5
32936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32937 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32939 (eval $ac_try) 2>&5
32941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32942 test $ac_status = 0; }; }; then :
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32945 $as_echo "yes" >&6; }
32947 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
32951 $as_echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.
$ac_ext >&5
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32955 $as_echo "no" >&6; }
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
32966 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
32969 cat confdefs.h
- <<_ACEOF >conftest.c
32972 #include <linux/exportfs.h>
32973 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
32974 struct inode *parent) { return 0; }
32975 static struct export_operations eops __attribute__ ((unused))={
32976 .encode_fh = encode_fh,
32992 cat - <<_ACEOF >conftest.h
32997 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32998 echo "obj-m := conftest.o" >build
/Makefile
33000 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33001 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33003 (eval $ac_try) 2>&5
33005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33006 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33008 (eval $ac_try) 2>&5
33010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33011 test $ac_status = 0; }; }; then :
33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33014 $as_echo "yes" >&6; }
33016 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
33020 $as_echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.
$ac_ext >&5
33023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33024 $as_echo "no" >&6; }
33034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
33035 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
33038 cat confdefs.h
- <<_ACEOF >conftest.c
33041 #include <linux/exportfs.h>
33042 int commit_metadata(struct inode *inode) { return 0; }
33043 static struct export_operations eops __attribute__ ((unused))={
33044 .commit_metadata = commit_metadata,
33060 cat - <<_ACEOF >conftest.h
33065 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33066 echo "obj-m := conftest.o" >build
/Makefile
33068 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33069 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33071 (eval $ac_try) 2>&5
33073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33074 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33076 (eval $ac_try) 2>&5
33078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33079 test $ac_status = 0; }; }; then :
33081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33082 $as_echo "yes" >&6; }
33084 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
33088 $as_echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.
$ac_ext >&5
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33092 $as_echo "no" >&6; }
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
33102 $as_echo_n "checking whether clear_inode() is available... " >&6; }
33106 cat confdefs.h
- <<_ACEOF >conftest.c
33109 #include <linux/fs.h>
33125 cat - <<_ACEOF >conftest.h
33130 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33131 echo "obj-m := conftest.o" >build
/Makefile
33133 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33134 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33136 (eval $ac_try) 2>&5
33138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33139 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33141 (eval $ac_try) 2>&5
33143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33144 test $ac_status = 0; }; }; then :
33147 $as_echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.
$ac_ext >&5
33156 if test $rc -ne 0; then :
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33159 $as_echo "no" >&6; }
33162 if test "x$enable_linux_builtin" != xyes
; then
33164 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
33165 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33167 if test $rc -ne 0; then
33169 for file in fs
/inode.c
; do
33170 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
33171 "$LINUX/$file" 2>/dev
/null
33173 if test $rc -eq 0; then
33178 if test $export -eq 0; then :
33188 if test $rc -ne 0; then :
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33191 $as_echo "no" >&6; }
33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196 $as_echo "yes" >&6; }
33198 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
33205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
33206 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
33210 cat confdefs.h
- <<_ACEOF >conftest.c
33213 #include <linux/fs.h>
33219 struct dentry *dentry = NULL;
33220 struct iattr *attr = NULL;
33223 error = setattr_prepare(dentry, attr);
33233 cat - <<_ACEOF >conftest.h
33238 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33239 echo "obj-m := conftest.o" >build
/Makefile
33241 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33242 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33244 (eval $ac_try) 2>&5
33246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33247 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33249 (eval $ac_try) 2>&5
33251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33252 test $ac_status = 0; }; }; then :
33255 $as_echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.
$ac_ext >&5
33264 if test $rc -ne 0; then :
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33267 $as_echo "no" >&6; }
33270 if test "x$enable_linux_builtin" != xyes
; then
33272 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
33273 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33275 if test $rc -ne 0; then
33277 for file in fs
/attr.c
; do
33278 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
33279 "$LINUX/$file" 2>/dev
/null
33281 if test $rc -eq 0; then
33286 if test $export -eq 0; then :
33296 if test $rc -ne 0; then :
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33299 $as_echo "no" >&6; }
33303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33304 $as_echo "yes" >&6; }
33306 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
33314 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
33318 cat confdefs.h
- <<_ACEOF >conftest.c
33321 #include <linux/fs.h>
33327 insert_inode_locked(NULL);
33337 cat - <<_ACEOF >conftest.h
33342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33343 echo "obj-m := conftest.o" >build
/Makefile
33345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33348 (eval $ac_try) 2>&5
33350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33353 (eval $ac_try) 2>&5
33355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33356 test $ac_status = 0; }; }; then :
33359 $as_echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.
$ac_ext >&5
33368 if test $rc -ne 0; then :
33370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33371 $as_echo "no" >&6; }
33374 if test "x$enable_linux_builtin" != xyes
; then
33376 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
33377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33379 if test $rc -ne 0; then
33381 for file in fs
/inode.c
; do
33382 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
33383 "$LINUX/$file" 2>/dev
/null
33385 if test $rc -eq 0; then
33390 if test $export -eq 0; then :
33400 if test $rc -ne 0; then :
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33403 $as_echo "no" >&6; }
33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33408 $as_echo "yes" >&6; }
33410 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
33418 $as_echo_n "checking whether d_make_root() is available... " >&6; }
33422 cat confdefs.h
- <<_ACEOF >conftest.c
33425 #include <linux/dcache.h>
33441 cat - <<_ACEOF >conftest.h
33446 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33447 echo "obj-m := conftest.o" >build
/Makefile
33449 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33450 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33452 (eval $ac_try) 2>&5
33454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33455 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33457 (eval $ac_try) 2>&5
33459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33460 test $ac_status = 0; }; }; then :
33463 $as_echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.
$ac_ext >&5
33472 if test $rc -ne 0; then :
33474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33475 $as_echo "no" >&6; }
33478 if test "x$enable_linux_builtin" != xyes
; then
33480 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
33481 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33483 if test $rc -ne 0; then
33485 for file in fs
/dcache.c
; do
33486 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
33487 "$LINUX/$file" 2>/dev
/null
33489 if test $rc -eq 0; then
33494 if test $export -eq 0; then :
33504 if test $rc -ne 0; then :
33506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33507 $as_echo "no" >&6; }
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33512 $as_echo "yes" >&6; }
33514 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
33522 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
33526 cat confdefs.h
- <<_ACEOF >conftest.c
33529 #include <linux/dcache.h>
33535 d_obtain_alias(NULL);
33545 cat - <<_ACEOF >conftest.h
33550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33551 echo "obj-m := conftest.o" >build
/Makefile
33553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33556 (eval $ac_try) 2>&5
33558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33561 (eval $ac_try) 2>&5
33563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33564 test $ac_status = 0; }; }; then :
33567 $as_echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.
$ac_ext >&5
33576 if test $rc -ne 0; then :
33578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33579 $as_echo "no" >&6; }
33582 if test "x$enable_linux_builtin" != xyes
; then
33584 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
33585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33587 if test $rc -ne 0; then
33589 for file in fs
/dcache.c
; do
33590 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
33591 "$LINUX/$file" 2>/dev
/null
33593 if test $rc -eq 0; then
33598 if test $export -eq 0; then :
33608 if test $rc -ne 0; then :
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33611 $as_echo "no" >&6; }
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33616 $as_echo "yes" >&6; }
33618 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
33626 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
33630 cat confdefs.h
- <<_ACEOF >conftest.c
33633 #include <linux/dcache.h>
33639 struct inode *ip = NULL;
33640 d_prune_aliases(ip);
33650 cat - <<_ACEOF >conftest.h
33655 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33656 echo "obj-m := conftest.o" >build
/Makefile
33658 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33659 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33661 (eval $ac_try) 2>&5
33663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33664 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33666 (eval $ac_try) 2>&5
33668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33669 test $ac_status = 0; }; }; then :
33672 $as_echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.
$ac_ext >&5
33681 if test $rc -ne 0; then :
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33684 $as_echo "no" >&6; }
33687 if test "x$enable_linux_builtin" != xyes
; then
33689 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
33690 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33692 if test $rc -ne 0; then
33694 for file in fs
/dcache.c
; do
33695 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
33696 "$LINUX/$file" 2>/dev
/null
33698 if test $rc -eq 0; then
33703 if test $export -eq 0; then :
33713 if test $rc -ne 0; then :
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33716 $as_echo "no" >&6; }
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33721 $as_echo "yes" >&6; }
33723 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
33730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
33731 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
33735 cat confdefs.h
- <<_ACEOF >conftest.c
33738 #include <linux/dcache.h>
33744 d_set_d_op(NULL, NULL);
33754 cat - <<_ACEOF >conftest.h
33759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33760 echo "obj-m := conftest.o" >build
/Makefile
33762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33765 (eval $ac_try) 2>&5
33767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33768 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33770 (eval $ac_try) 2>&5
33772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33773 test $ac_status = 0; }; }; then :
33776 $as_echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.
$ac_ext >&5
33785 if test $rc -ne 0; then :
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33788 $as_echo "no" >&6; }
33791 if test "x$enable_linux_builtin" != xyes
; then
33793 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
33794 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33796 if test $rc -ne 0; then
33798 for file in fs
/dcache.c
; do
33799 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
33800 "$LINUX/$file" 2>/dev
/null
33802 if test $rc -eq 0; then
33807 if test $export -eq 0; then :
33817 if test $rc -ne 0; then :
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33820 $as_echo "no" >&6; }
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33825 $as_echo "yes" >&6; }
33827 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
33835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
33836 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
33839 cat confdefs.h
- <<_ACEOF >conftest.c
33842 #include <linux/dcache.h>
33844 int revalidate (struct dentry *dentry,
33845 struct nameidata *nidata) { return 0; }
33847 static const struct dentry_operations
33848 dops __attribute__ ((unused)) = {
33849 .d_revalidate = revalidate,
33865 cat - <<_ACEOF >conftest.h
33870 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33871 echo "obj-m := conftest.o" >build
/Makefile
33873 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33874 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33876 (eval $ac_try) 2>&5
33878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33879 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33881 (eval $ac_try) 2>&5
33883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33884 test $ac_status = 0; }; }; then :
33886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33887 $as_echo "yes" >&6; }
33889 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
33893 $as_echo "$as_me: failed program was:" >&5
33894 sed 's/^/| /' conftest.
$ac_ext >&5
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33897 $as_echo "no" >&6; }
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
33908 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
33911 cat confdefs.h
- <<_ACEOF >conftest.c
33914 #include <linux/dcache.h>
33916 const struct dentry_operations test_d_op = {
33917 .d_revalidate = NULL,
33924 struct dentry d __attribute__ ((unused));
33926 d.d_op = &test_d_op;
33936 cat - <<_ACEOF >conftest.h
33941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33942 echo "obj-m := conftest.o" >build
/Makefile
33944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33947 (eval $ac_try) 2>&5
33949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33952 (eval $ac_try) 2>&5
33954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33955 test $ac_status = 0; }; }; then :
33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33958 $as_echo "yes" >&6; }
33960 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
33964 $as_echo "$as_me: failed program was:" >&5
33965 sed 's/^/| /' conftest.
$ac_ext >&5
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33968 $as_echo "no" >&6; }
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
33978 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
33982 cat confdefs.h
- <<_ACEOF >conftest.c
33985 #include <linux/fs.h>
33991 check_disk_size_change(NULL, NULL);
34001 cat - <<_ACEOF >conftest.h
34006 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34007 echo "obj-m := conftest.o" >build
/Makefile
34009 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34010 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34012 (eval $ac_try) 2>&5
34014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34015 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34017 (eval $ac_try) 2>&5
34019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34020 test $ac_status = 0; }; }; then :
34023 $as_echo "$as_me: failed program was:" >&5
34024 sed 's/^/| /' conftest.
$ac_ext >&5
34032 if test $rc -ne 0; then :
34034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34035 $as_echo "no" >&6; }
34038 if test "x$enable_linux_builtin" != xyes
; then
34040 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
34041 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34043 if test $rc -ne 0; then
34045 for file in fs
/block_dev.c
; do
34046 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
34047 "$LINUX/$file" 2>/dev
/null
34049 if test $rc -eq 0; then
34054 if test $export -eq 0; then :
34064 if test $rc -ne 0; then :
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34067 $as_echo "no" >&6; }
34071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34072 $as_echo "yes" >&6; }
34074 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
34081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
34082 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
34086 cat confdefs.h
- <<_ACEOF >conftest.c
34089 #include <linux/mm.h>
34095 truncate_setsize(NULL, 0);
34105 cat - <<_ACEOF >conftest.h
34110 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34111 echo "obj-m := conftest.o" >build
/Makefile
34113 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34114 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34116 (eval $ac_try) 2>&5
34118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34119 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34121 (eval $ac_try) 2>&5
34123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34124 test $ac_status = 0; }; }; then :
34127 $as_echo "$as_me: failed program was:" >&5
34128 sed 's/^/| /' conftest.
$ac_ext >&5
34136 if test $rc -ne 0; then :
34138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34139 $as_echo "no" >&6; }
34142 if test "x$enable_linux_builtin" != xyes
; then
34144 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
34145 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34147 if test $rc -ne 0; then
34149 for file in mm
/truncate.c
; do
34150 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
34151 "$LINUX/$file" 2>/dev
/null
34153 if test $rc -eq 0; then
34158 if test $export -eq 0; then :
34168 if test $rc -ne 0; then :
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34171 $as_echo "no" >&6; }
34175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34176 $as_echo "yes" >&6; }
34178 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
34186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
34187 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
34190 cat confdefs.h
- <<_ACEOF >conftest.c
34193 #include <linux/security.h>
34199 struct inode *ip __attribute__ ((unused)) = NULL;
34200 struct inode *dip __attribute__ ((unused)) = NULL;
34201 const struct qstr *str __attribute__ ((unused)) = NULL;
34202 char *name __attribute__ ((unused)) = NULL;
34203 void *value __attribute__ ((unused)) = NULL;
34204 size_t len __attribute__ ((unused)) = 0;
34206 security_inode_init_security(ip, dip, str, &name, &value, &len);
34216 cat - <<_ACEOF >conftest.h
34221 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34222 echo "obj-m := conftest.o" >build
/Makefile
34224 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34225 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34227 (eval $ac_try) 2>&5
34229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34230 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34232 (eval $ac_try) 2>&5
34234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34235 test $ac_status = 0; }; }; then :
34237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34238 $as_echo "yes" >&6; }
34240 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34244 $as_echo "$as_me: failed program was:" >&5
34245 sed 's/^/| /' conftest.
$ac_ext >&5
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34248 $as_echo "no" >&6; }
34258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
34259 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
34262 cat confdefs.h
- <<_ACEOF >conftest.c
34265 #include <linux/security.h>
34271 struct inode *ip __attribute__ ((unused)) = NULL;
34272 struct inode *dip __attribute__ ((unused)) = NULL;
34273 const struct qstr *str __attribute__ ((unused)) = NULL;
34274 initxattrs func __attribute__ ((unused)) = NULL;
34276 security_inode_init_security(ip, dip, str, func, NULL);
34286 cat - <<_ACEOF >conftest.h
34291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34292 echo "obj-m := conftest.o" >build
/Makefile
34294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34295 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34297 (eval $ac_try) 2>&5
34299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34300 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34302 (eval $ac_try) 2>&5
34304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34305 test $ac_status = 0; }; }; then :
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34308 $as_echo "yes" >&6; }
34310 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34314 $as_echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.
$ac_ext >&5
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34318 $as_echo "no" >&6; }
34327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
34328 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
34332 cat confdefs.h
- <<_ACEOF >conftest.c
34335 #include <linux/fs.h>
34341 mount_nodev(NULL, 0, NULL, NULL);
34351 cat - <<_ACEOF >conftest.h
34356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34357 echo "obj-m := conftest.o" >build
/Makefile
34359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34362 (eval $ac_try) 2>&5
34364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34367 (eval $ac_try) 2>&5
34369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34370 test $ac_status = 0; }; }; then :
34373 $as_echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.
$ac_ext >&5
34382 if test $rc -ne 0; then :
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385 $as_echo "no" >&6; }
34388 if test "x$enable_linux_builtin" != xyes
; then
34390 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
34391 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34393 if test $rc -ne 0; then
34395 for file in fs
/super.c
; do
34396 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
34397 "$LINUX/$file" 2>/dev
/null
34399 if test $rc -eq 0; then
34404 if test $export -eq 0; then :
34414 if test $rc -ne 0; then :
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34417 $as_echo "no" >&6; }
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34422 $as_echo "yes" >&6; }
34424 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
34432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
34433 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
34436 cat confdefs.h
- <<_ACEOF >conftest.c
34439 #include <linux/fs.h>
34441 int shrink(struct shrinker *s, struct shrink_control *sc)
34444 static const struct super_block
34445 sb __attribute__ ((unused)) = {
34446 .s_shrink.shrink = shrink,
34447 .s_shrink.seeks = DEFAULT_SEEKS,
34448 .s_shrink.batch = 0,
34464 cat - <<_ACEOF >conftest.h
34469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34470 echo "obj-m := conftest.o" >build
/Makefile
34472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34475 (eval $ac_try) 2>&5
34477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34478 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34480 (eval $ac_try) 2>&5
34482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34483 test $ac_status = 0; }; }; then :
34485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34486 $as_echo "yes" >&6; }
34488 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
34493 $as_echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.
$ac_ext >&5
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34497 $as_echo "no" >&6; }
34507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
34508 $as_echo_n "checking whether shrink_control has nid... " >&6; }
34511 cat confdefs.h
- <<_ACEOF >conftest.c
34514 #include <linux/fs.h>
34520 struct shrink_control sc __attribute__ ((unused));
34521 unsigned long scnidsize __attribute__ ((unused)) =
34532 cat - <<_ACEOF >conftest.h
34537 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34538 echo "obj-m := conftest.o" >build
/Makefile
34540 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34541 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34543 (eval $ac_try) 2>&5
34545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34546 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34548 (eval $ac_try) 2>&5
34550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34551 test $ac_status = 0; }; }; then :
34553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34554 $as_echo "yes" >&6; }
34556 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
34560 $as_echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.
$ac_ext >&5
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34564 $as_echo "no" >&6; }
34574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
34575 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
34578 cat confdefs.h
- <<_ACEOF >conftest.c
34581 #include <linux/fs.h>
34587 struct super_block sb __attribute__ ((unused));
34589 INIT_LIST_HEAD(&sb.s_instances);
34599 cat - <<_ACEOF >conftest.h
34604 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34605 echo "obj-m := conftest.o" >build
/Makefile
34607 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34608 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34610 (eval $ac_try) 2>&5
34612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34613 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34615 (eval $ac_try) 2>&5
34617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34618 test $ac_status = 0; }; }; then :
34620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34621 $as_echo "yes" >&6; }
34623 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
34627 $as_echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.
$ac_ext >&5
34630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34631 $as_echo "no" >&6; }
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
34641 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
34644 cat confdefs.h
- <<_ACEOF >conftest.c
34647 #include <linux/fs.h>
34653 struct super_block sb __attribute__ ((unused));
34664 cat - <<_ACEOF >conftest.h
34669 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34670 echo "obj-m := conftest.o" >build
/Makefile
34672 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34673 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34675 (eval $ac_try) 2>&5
34677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34678 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34680 (eval $ac_try) 2>&5
34682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34683 test $ac_status = 0; }; }; then :
34685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34686 $as_echo "yes" >&6; }
34688 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
34692 $as_echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.
$ac_ext >&5
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34696 $as_echo "no" >&6; }
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
34707 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
34711 cat confdefs.h
- <<_ACEOF >conftest.c
34714 #include <linux/fs.h>
34715 struct super_block sb;
34721 char *name = "bdi";
34722 int error __attribute__((unused)) =
34723 super_setup_bdi_name(&sb, name);
34733 cat - <<_ACEOF >conftest.h
34738 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34739 echo "obj-m := conftest.o" >build
/Makefile
34741 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34742 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34744 (eval $ac_try) 2>&5
34746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34747 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34749 (eval $ac_try) 2>&5
34751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34752 test $ac_status = 0; }; }; then :
34755 $as_echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.
$ac_ext >&5
34764 if test $rc -ne 0; then :
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
34769 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
34773 cat confdefs.h
- <<_ACEOF >conftest.c
34776 #include <linux/backing-dev.h>
34777 struct backing_dev_info bdi;
34783 char *name = "bdi";
34784 int error __attribute__((unused)) =
34785 bdi_setup_and_register(&bdi, name);
34795 cat - <<_ACEOF >conftest.h
34800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34801 echo "obj-m := conftest.o" >build
/Makefile
34803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34806 (eval $ac_try) 2>&5
34808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34811 (eval $ac_try) 2>&5
34813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34814 test $ac_status = 0; }; }; then :
34817 $as_echo "$as_me: failed program was:" >&5
34818 sed 's/^/| /' conftest.
$ac_ext >&5
34826 if test $rc -ne 0; then :
34828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34829 $as_echo "no" >&6; }
34830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34831 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34835 cat confdefs.h
- <<_ACEOF >conftest.c
34838 #include <linux/backing-dev.h>
34839 struct backing_dev_info bdi;
34845 char *name = "bdi";
34846 unsigned int cap = BDI_CAP_MAP_COPY;
34847 int error __attribute__((unused)) =
34848 bdi_setup_and_register(&bdi, name, cap);
34858 cat - <<_ACEOF >conftest.h
34863 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34864 echo "obj-m := conftest.o" >build
/Makefile
34866 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34867 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34869 (eval $ac_try) 2>&5
34871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34872 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34874 (eval $ac_try) 2>&5
34876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34877 test $ac_status = 0; }; }; then :
34880 $as_echo "$as_me: failed program was:" >&5
34881 sed 's/^/| /' conftest.
$ac_ext >&5
34889 if test $rc -ne 0; then :
34891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34892 $as_echo "no" >&6; }
34895 if test "x$enable_linux_builtin" != xyes
; then
34897 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
34898 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34900 if test $rc -ne 0; then
34902 for file in mm
/backing-dev.c
; do
34903 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
34904 "$LINUX/$file" 2>/dev
/null
34906 if test $rc -eq 0; then
34911 if test $export -eq 0; then :
34921 if test $rc -ne 0; then :
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34924 $as_echo "no" >&6; }
34928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34929 $as_echo "yes" >&6; }
34931 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
34939 if test "x$enable_linux_builtin" != xyes
; then
34941 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
34942 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34944 if test $rc -ne 0; then
34946 for file in mm
/backing-dev.c
; do
34947 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
34948 "$LINUX/$file" 2>/dev
/null
34950 if test $rc -eq 0; then
34955 if test $export -eq 0; then :
34965 if test $rc -ne 0; then :
34967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34968 $as_echo "no" >&6; }
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34970 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34974 cat confdefs.h
- <<_ACEOF >conftest.c
34977 #include <linux/backing-dev.h>
34978 struct backing_dev_info bdi;
34984 char *name = "bdi";
34985 unsigned int cap = BDI_CAP_MAP_COPY;
34986 int error __attribute__((unused)) =
34987 bdi_setup_and_register(&bdi, name, cap);
34997 cat - <<_ACEOF >conftest.h
35002 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35003 echo "obj-m := conftest.o" >build
/Makefile
35005 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35006 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35008 (eval $ac_try) 2>&5
35010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35011 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35013 (eval $ac_try) 2>&5
35015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35016 test $ac_status = 0; }; }; then :
35019 $as_echo "$as_me: failed program was:" >&5
35020 sed 's/^/| /' conftest.
$ac_ext >&5
35028 if test $rc -ne 0; then :
35030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35031 $as_echo "no" >&6; }
35034 if test "x$enable_linux_builtin" != xyes
; then
35036 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35037 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35039 if test $rc -ne 0; then
35041 for file in mm
/backing-dev.c
; do
35042 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35043 "$LINUX/$file" 2>/dev
/null
35045 if test $rc -eq 0; then
35050 if test $export -eq 0; then :
35060 if test $rc -ne 0; then :
35062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35063 $as_echo "no" >&6; }
35067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35068 $as_echo "yes" >&6; }
35070 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35080 $as_echo "yes" >&6; }
35082 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35090 if test "x$enable_linux_builtin" != xyes
; then
35092 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
35093 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35095 if test $rc -ne 0; then
35097 for file in fs
/super.c
; do
35098 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
35099 "$LINUX/$file" 2>/dev
/null
35101 if test $rc -eq 0; then
35106 if test $export -eq 0; then :
35116 if test $rc -ne 0; then :
35118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35119 $as_echo "no" >&6; }
35120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
35121 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
35125 cat confdefs.h
- <<_ACEOF >conftest.c
35128 #include <linux/backing-dev.h>
35129 struct backing_dev_info bdi;
35135 char *name = "bdi";
35136 int error __attribute__((unused)) =
35137 bdi_setup_and_register(&bdi, name);
35147 cat - <<_ACEOF >conftest.h
35152 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35153 echo "obj-m := conftest.o" >build
/Makefile
35155 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35156 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35158 (eval $ac_try) 2>&5
35160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35161 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35163 (eval $ac_try) 2>&5
35165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35166 test $ac_status = 0; }; }; then :
35169 $as_echo "$as_me: failed program was:" >&5
35170 sed 's/^/| /' conftest.
$ac_ext >&5
35178 if test $rc -ne 0; then :
35180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35181 $as_echo "no" >&6; }
35182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35183 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35187 cat confdefs.h
- <<_ACEOF >conftest.c
35190 #include <linux/backing-dev.h>
35191 struct backing_dev_info bdi;
35197 char *name = "bdi";
35198 unsigned int cap = BDI_CAP_MAP_COPY;
35199 int error __attribute__((unused)) =
35200 bdi_setup_and_register(&bdi, name, cap);
35210 cat - <<_ACEOF >conftest.h
35215 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35216 echo "obj-m := conftest.o" >build
/Makefile
35218 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35219 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35221 (eval $ac_try) 2>&5
35223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35224 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35226 (eval $ac_try) 2>&5
35228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35229 test $ac_status = 0; }; }; then :
35232 $as_echo "$as_me: failed program was:" >&5
35233 sed 's/^/| /' conftest.
$ac_ext >&5
35241 if test $rc -ne 0; then :
35243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35244 $as_echo "no" >&6; }
35247 if test "x$enable_linux_builtin" != xyes
; then
35249 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35250 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35252 if test $rc -ne 0; then
35254 for file in mm
/backing-dev.c
; do
35255 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35256 "$LINUX/$file" 2>/dev
/null
35258 if test $rc -eq 0; then
35263 if test $export -eq 0; then :
35273 if test $rc -ne 0; then :
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35276 $as_echo "no" >&6; }
35280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35281 $as_echo "yes" >&6; }
35283 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35291 if test "x$enable_linux_builtin" != xyes
; then
35293 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35294 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35296 if test $rc -ne 0; then
35298 for file in mm
/backing-dev.c
; do
35299 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35300 "$LINUX/$file" 2>/dev
/null
35302 if test $rc -eq 0; then
35307 if test $export -eq 0; then :
35317 if test $rc -ne 0; then :
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35320 $as_echo "no" >&6; }
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35322 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35326 cat confdefs.h
- <<_ACEOF >conftest.c
35329 #include <linux/backing-dev.h>
35330 struct backing_dev_info bdi;
35336 char *name = "bdi";
35337 unsigned int cap = BDI_CAP_MAP_COPY;
35338 int error __attribute__((unused)) =
35339 bdi_setup_and_register(&bdi, name, cap);
35349 cat - <<_ACEOF >conftest.h
35354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35355 echo "obj-m := conftest.o" >build
/Makefile
35357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35360 (eval $ac_try) 2>&5
35362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35363 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35365 (eval $ac_try) 2>&5
35367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35368 test $ac_status = 0; }; }; then :
35371 $as_echo "$as_me: failed program was:" >&5
35372 sed 's/^/| /' conftest.
$ac_ext >&5
35380 if test $rc -ne 0; then :
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35383 $as_echo "no" >&6; }
35386 if test "x$enable_linux_builtin" != xyes
; then
35388 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35389 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35391 if test $rc -ne 0; then
35393 for file in mm
/backing-dev.c
; do
35394 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35395 "$LINUX/$file" 2>/dev
/null
35397 if test $rc -eq 0; then
35402 if test $export -eq 0; then :
35412 if test $rc -ne 0; then :
35414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35415 $as_echo "no" >&6; }
35419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35420 $as_echo "yes" >&6; }
35422 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35432 $as_echo "yes" >&6; }
35434 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35444 $as_echo "yes" >&6; }
35446 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
35454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
35455 $as_echo_n "checking whether set_nlink() is available... " >&6; }
35458 cat confdefs.h
- <<_ACEOF >conftest.c
35461 #include <linux/fs.h>
35468 unsigned int link = 0;
35469 (void) set_nlink(&node, link);
35479 cat - <<_ACEOF >conftest.h
35484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35485 echo "obj-m := conftest.o" >build
/Makefile
35487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35490 (eval $ac_try) 2>&5
35492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35495 (eval $ac_try) 2>&5
35497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35498 test $ac_status = 0; }; }; then :
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35501 $as_echo "yes" >&6; }
35503 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
35507 $as_echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.
$ac_ext >&5
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35511 $as_echo "no" >&6; }
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
35522 $as_echo_n "checking whether elevator_change() is available... " >&6; }
35523 tmp_flags
="$EXTRA_KCFLAGS"
35524 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
35527 cat confdefs.h
- <<_ACEOF >conftest.c
35530 #include <linux/blkdev.h>
35531 #include <linux/elevator.h>
35538 struct request_queue *q = NULL;
35539 char *elevator = NULL;
35540 ret = elevator_change(q, elevator);
35550 cat - <<_ACEOF >conftest.h
35555 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35556 echo "obj-m := conftest.o" >build
/Makefile
35558 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35559 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35561 (eval $ac_try) 2>&5
35563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35564 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35566 (eval $ac_try) 2>&5
35568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35569 test $ac_status = 0; }; }; then :
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35572 $as_echo "yes" >&6; }
35574 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
35578 $as_echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.
$ac_ext >&5
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35582 $as_echo "no" >&6; }
35590 EXTRA_KCFLAGS
="$tmp_flags"
35592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
35593 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
35596 cat confdefs.h
- <<_ACEOF >conftest.c
35599 #include <linux/fs.h>
35605 struct file_system_type *type = NULL;
35606 int (*test)(struct super_block *,void *) = NULL;
35607 int (*set)(struct super_block *,void *) = NULL;
35610 (void) sget(type, test, set, flags, data);
35620 cat - <<_ACEOF >conftest.h
35625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35626 echo "obj-m := conftest.o" >build
/Makefile
35628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35629 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35631 (eval $ac_try) 2>&5
35633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35634 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35636 (eval $ac_try) 2>&5
35638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35639 test $ac_status = 0; }; }; then :
35641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35642 $as_echo "yes" >&6; }
35644 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
35648 $as_echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.
$ac_ext >&5
35651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35652 $as_echo "no" >&6; }
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
35662 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
35666 cat confdefs.h
- <<_ACEOF >conftest.c
35669 #include <linux/fs.h>
35675 struct file *fp __attribute__ ((unused)) = NULL;
35676 struct inode *ip __attribute__ ((unused)) = NULL;
35677 loff_t offset __attribute__ ((unused)) = 0;
35678 loff_t maxsize __attribute__ ((unused)) = 0;
35680 lseek_execute(fp, ip, offset, maxsize);
35690 cat - <<_ACEOF >conftest.h
35695 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35696 echo "obj-m := conftest.o" >build
/Makefile
35698 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35699 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35701 (eval $ac_try) 2>&5
35703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35704 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35706 (eval $ac_try) 2>&5
35708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35709 test $ac_status = 0; }; }; then :
35712 $as_echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.
$ac_ext >&5
35721 if test $rc -ne 0; then :
35723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35724 $as_echo "no" >&6; }
35727 if test "x$enable_linux_builtin" != xyes
; then
35729 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
35730 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35732 if test $rc -ne 0; then
35734 for file in fs
/read_write.c
; do
35735 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
35736 "$LINUX/$file" 2>/dev
/null
35738 if test $rc -eq 0; then
35743 if test $export -eq 0; then :
35753 if test $rc -ne 0; then :
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35756 $as_echo "no" >&6; }
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35761 $as_echo "yes" >&6; }
35763 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
35771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
35772 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
35775 cat confdefs.h
- <<_ACEOF >conftest.c
35778 #include <linux/fs.h>
35779 int iterate(struct file *filp, struct dir_context * context)
35782 static const struct file_operations fops
35783 __attribute__ ((unused)) = {
35784 .iterate_shared = iterate,
35800 cat - <<_ACEOF >conftest.h
35805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35806 echo "obj-m := conftest.o" >build
/Makefile
35808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35809 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35811 (eval $ac_try) 2>&5
35813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35814 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35816 (eval $ac_try) 2>&5
35818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35819 test $ac_status = 0; }; }; then :
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822 $as_echo "yes" >&6; }
35824 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
35828 $as_echo "$as_me: failed program was:" >&5
35829 sed 's/^/| /' conftest.
$ac_ext >&5
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35832 $as_echo "no" >&6; }
35834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
35835 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
35838 cat confdefs.h
- <<_ACEOF >conftest.c
35841 #include <linux/fs.h>
35842 int iterate(struct file *filp, struct dir_context * context)
35845 static const struct file_operations fops
35846 __attribute__ ((unused)) = {
35847 .iterate = iterate,
35863 cat - <<_ACEOF >conftest.h
35868 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35869 echo "obj-m := conftest.o" >build
/Makefile
35871 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35872 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35874 (eval $ac_try) 2>&5
35876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35877 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35879 (eval $ac_try) 2>&5
35881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35882 test $ac_status = 0; }; }; then :
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35885 $as_echo "yes" >&6; }
35887 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
35891 $as_echo "$as_me: failed program was:" >&5
35892 sed 's/^/| /' conftest.
$ac_ext >&5
35894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35895 $as_echo "no" >&6; }
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
35898 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
35901 cat confdefs.h
- <<_ACEOF >conftest.c
35904 #include <linux/fs.h>
35905 int readdir(struct file *filp, void *entry, filldir_t func)
35908 static const struct file_operations fops
35909 __attribute__ ((unused)) = {
35910 .readdir = readdir,
35926 cat - <<_ACEOF >conftest.h
35931 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35932 echo "obj-m := conftest.o" >build
/Makefile
35934 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35935 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35937 (eval $ac_try) 2>&5
35939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35940 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35942 (eval $ac_try) 2>&5
35944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35945 test $ac_status = 0; }; }; then :
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948 $as_echo "yes" >&6; }
35950 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
35954 $as_echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.
$ac_ext >&5
35957 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
35980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
35981 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
35984 cat confdefs.h
- <<_ACEOF >conftest.c
35987 #include <linux/fs.h>
35989 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
35991 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
35994 static const struct file_operations
35995 fops __attribute__ ((unused)) = {
35996 .read_iter = test_read,
35997 .write_iter = test_write,
36013 cat - <<_ACEOF >conftest.h
36018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36019 echo "obj-m := conftest.o" >build
/Makefile
36021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36024 (eval $ac_try) 2>&5
36026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36029 (eval $ac_try) 2>&5
36031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36032 test $ac_status = 0; }; }; then :
36034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36035 $as_echo "yes" >&6; }
36037 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
36040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
36041 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
36044 cat confdefs.h
- <<_ACEOF >conftest.c
36047 #include <linux/fs.h>
36053 new_sync_read(NULL, NULL, 0, NULL);
36063 cat - <<_ACEOF >conftest.h
36068 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36069 echo "obj-m := conftest.o" >build
/Makefile
36071 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36072 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36074 (eval $ac_try) 2>&5
36076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36077 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36079 (eval $ac_try) 2>&5
36081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36082 test $ac_status = 0; }; }; then :
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36085 $as_echo "yes" >&6; }
36087 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
36091 $as_echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.
$ac_ext >&5
36094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36095 $as_echo "no" >&6; }
36106 $as_echo "$as_me: failed program was:" >&5
36107 sed 's/^/| /' conftest.
$ac_ext >&5
36109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36110 $as_echo "no" >&6; }
36119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
36120 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
36123 cat confdefs.h
- <<_ACEOF >conftest.c
36126 #include <linux/fs.h>
36133 struct kiocb *iocb = NULL;
36134 struct iov_iter *iov = NULL;
36135 generic_write_checks(iocb, iov);
36145 cat - <<_ACEOF >conftest.h
36150 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36151 echo "obj-m := conftest.o" >build
/Makefile
36153 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36154 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36156 (eval $ac_try) 2>&5
36158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36159 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36161 (eval $ac_try) 2>&5
36163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36164 test $ac_status = 0; }; }; then :
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36167 $as_echo "yes" >&6; }
36169 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
36173 $as_echo "$as_me: failed program was:" >&5
36174 sed 's/^/| /' conftest.
$ac_ext >&5
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36177 $as_echo "no" >&6; }
36187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
36188 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
36191 cat confdefs.h
- <<_ACEOF >conftest.c
36194 #include <linux/pagemap.h>
36201 kmap_atomic(&page);
36211 cat - <<_ACEOF >conftest.h
36216 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36217 echo "obj-m := conftest.o" >build
/Makefile
36219 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36220 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36222 (eval $ac_try) 2>&5
36224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36225 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36227 (eval $ac_try) 2>&5
36229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36230 test $ac_status = 0; }; }; then :
36232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36233 $as_echo "yes" >&6; }
36235 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
36239 $as_echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.
$ac_ext >&5
36242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36243 $as_echo "no" >&6; }
36253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
36254 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
36257 cat confdefs.h
- <<_ACEOF >conftest.c
36260 #include <linux/namei.h>
36266 struct path *p = NULL;
36267 follow_down_one(p);
36277 cat - <<_ACEOF >conftest.h
36282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36283 echo "obj-m := conftest.o" >build
/Makefile
36285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36288 (eval $ac_try) 2>&5
36290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36293 (eval $ac_try) 2>&5
36295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36296 test $ac_status = 0; }; }; then :
36298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36299 $as_echo "yes" >&6; }
36301 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
36305 $as_echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.
$ac_ext >&5
36308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36309 $as_echo "no" >&6; }
36319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
36320 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
36323 cat confdefs.h
- <<_ACEOF >conftest.c
36326 #include <linux/blkdev.h>
36328 int make_request(struct request_queue *q, struct bio *bio)
36337 blk_queue_make_request(NULL, &make_request);
36347 cat - <<_ACEOF >conftest.h
36352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36353 echo "obj-m := conftest.o" >build
/Makefile
36355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36358 (eval $ac_try) 2>&5
36360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36361 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36363 (eval $ac_try) 2>&5
36365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36366 test $ac_status = 0; }; }; then :
36368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36369 $as_echo "yes" >&6; }
36371 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
36374 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
36378 $as_echo "$as_me: failed program was:" >&5
36379 sed 's/^/| /' conftest.
$ac_ext >&5
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36382 $as_echo "no" >&6; }
36383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
36384 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
36387 cat confdefs.h
- <<_ACEOF >conftest.c
36390 #include <linux/blkdev.h>
36392 void make_request(struct request_queue *q, struct bio *bio)
36401 blk_queue_make_request(NULL, &make_request);
36411 cat - <<_ACEOF >conftest.h
36416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36417 echo "obj-m := conftest.o" >build
/Makefile
36419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36422 (eval $ac_try) 2>&5
36424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36427 (eval $ac_try) 2>&5
36429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36430 test $ac_status = 0; }; }; then :
36432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36433 $as_echo "yes" >&6; }
36435 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
36439 $as_echo "$as_me: failed program was:" >&5
36440 sed 's/^/| /' conftest.
$ac_ext >&5
36442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36443 $as_echo "no" >&6; }
36444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
36445 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
36448 cat confdefs.h
- <<_ACEOF >conftest.c
36451 #include <linux/blkdev.h>
36453 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
36455 return (BLK_QC_T_NONE);
36462 blk_queue_make_request(NULL, &make_request);
36472 cat - <<_ACEOF >conftest.h
36477 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36478 echo "obj-m := conftest.o" >build
/Makefile
36480 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36481 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36483 (eval $ac_try) 2>&5
36485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36486 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36488 (eval $ac_try) 2>&5
36490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36491 test $ac_status = 0; }; }; then :
36493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36494 $as_echo "yes" >&6; }
36496 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
36499 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
36503 $as_echo "$as_me: failed program was:" >&5
36504 sed 's/^/| /' conftest.
$ac_ext >&5
36506 as_fn_error $?
"no - Please file a bug report at
36507 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
36531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
36532 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
36536 cat confdefs.h
- <<_ACEOF >conftest.c
36539 #include <linux/bio.h>
36541 void (*generic_start_io_acct_f)(int, unsigned long,
36542 struct hd_struct *) = &generic_start_io_acct;
36543 void (*generic_end_io_acct_f)(int, struct hd_struct *,
36544 unsigned long) = &generic_end_io_acct;
36550 generic_start_io_acct(0, 0, NULL);
36551 generic_end_io_acct(0, NULL, 0);
36561 cat - <<_ACEOF >conftest.h
36566 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36567 echo "obj-m := conftest.o" >build
/Makefile
36569 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36570 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36572 (eval $ac_try) 2>&5
36574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36575 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36577 (eval $ac_try) 2>&5
36579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36580 test $ac_status = 0; }; }; then :
36583 $as_echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.
$ac_ext >&5
36592 if test $rc -ne 0; then :
36594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36595 $as_echo "no" >&6; }
36598 if test "x$enable_linux_builtin" != xyes
; then
36600 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
36601 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36603 if test $rc -ne 0; then
36605 for file in block
/bio.c
; do
36606 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
36607 "$LINUX/$file" 2>/dev
/null
36609 if test $rc -eq 0; then
36614 if test $export -eq 0; then :
36624 if test $rc -ne 0; then :
36626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36627 $as_echo "no" >&6; }
36631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36632 $as_echo "yes" >&6; }
36634 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
36642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
36643 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
36646 cat confdefs.h
- <<_ACEOF >conftest.c
36649 #include <linux/fs.h>
36650 int rename_fn(struct inode *sip, struct dentry *sdp,
36651 struct inode *tip, struct dentry *tdp,
36652 unsigned int flags) { return 0; }
36654 static const struct inode_operations
36655 iops __attribute__ ((unused)) = {
36656 .rename = rename_fn,
36672 cat - <<_ACEOF >conftest.h
36677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36678 echo "obj-m := conftest.o" >build
/Makefile
36680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36683 (eval $ac_try) 2>&5
36685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36686 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36688 (eval $ac_try) 2>&5
36690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36691 test $ac_status = 0; }; }; then :
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36694 $as_echo "yes" >&6; }
36696 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
36700 $as_echo "$as_me: failed program was:" >&5
36701 sed 's/^/| /' conftest.
$ac_ext >&5
36703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36704 $as_echo "no" >&6; }
36714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
36715 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
36718 cat confdefs.h
- <<_ACEOF >conftest.c
36721 #include <linux/fs.h>
36722 #include <linux/xattr.h>
36724 static const struct inode_operations
36725 iops __attribute__ ((unused)) = {
36726 .setxattr = generic_setxattr
36742 cat - <<_ACEOF >conftest.h
36747 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36748 echo "obj-m := conftest.o" >build
/Makefile
36750 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36751 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36753 (eval $ac_try) 2>&5
36755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36756 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36758 (eval $ac_try) 2>&5
36760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36761 test $ac_status = 0; }; }; then :
36763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36764 $as_echo "yes" >&6; }
36766 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
36770 $as_echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.
$ac_ext >&5
36773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36774 $as_echo "no" >&6; }
36783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
36784 $as_echo_n "checking whether current_time() exists... " >&6; }
36788 cat confdefs.h
- <<_ACEOF >conftest.c
36791 #include <linux/fs.h>
36798 struct timespec now __attribute__ ((unused));
36800 now = current_time(&ip);
36810 cat - <<_ACEOF >conftest.h
36815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36816 echo "obj-m := conftest.o" >build
/Makefile
36818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36821 (eval $ac_try) 2>&5
36823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36826 (eval $ac_try) 2>&5
36828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36829 test $ac_status = 0; }; }; then :
36832 $as_echo "$as_me: failed program was:" >&5
36833 sed 's/^/| /' conftest.
$ac_ext >&5
36841 if test $rc -ne 0; then :
36843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36844 $as_echo "no" >&6; }
36847 if test "x$enable_linux_builtin" != xyes
; then
36849 grep -q -E '[[:space:]]current_time[[:space:]]' \
36850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36852 if test $rc -ne 0; then
36854 for file in fs
/inode.c
; do
36855 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
36856 "$LINUX/$file" 2>/dev
/null
36858 if test $rc -eq 0; then
36863 if test $export -eq 0; then :
36873 if test $rc -ne 0; then :
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36876 $as_echo "no" >&6; }
36880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36881 $as_echo "yes" >&6; }
36883 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
36891 if test "$LINUX_OBJ" != "$LINUX"; then :
36893 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
36899 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
36900 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
36901 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
36902 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
36909 $as_echo_n "checking for dkms.conf file... " >&6; }
36910 if test -e dkms.conf
; then :
36913 *** ZFS should not be manually built in the DKMS source tree.
36914 *** Remove all ZFS packages before compiling the ZoL sources.
36915 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
36919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36920 $as_echo "not found" >&6; }
36926 # Check whether --with-mounthelperdir was given.
36927 if test "${with_mounthelperdir+set}" = set; then :
36928 withval
=$with_mounthelperdir; mounthelperdir
=$withval
36930 mounthelperdir
=/sbin
36937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
36938 $as_echo_n "checking for udev directories... " >&6; }
36940 # Check whether --with-udevdir was given.
36941 if test "${with_udevdir+set}" = set; then :
36942 withval
=$with_udevdir; udevdir
=$withval
36948 if test "x$udevdir" = xcheck
; then :
36951 path2
=/usr
/lib
/udev
36954 if test -d "$path1"; then :
36958 if test -d "$path2"; then :
36969 # Check whether --with-udevruledir was given.
36970 if test "${with_udevruledir+set}" = set; then :
36971 withval
=$with_udevruledir; udevruledir
=$withval
36973 udevruledir
="${udevdir}/rules.d"
36979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
36980 $as_echo "$udevdir;$udevruledir" >&6; }
36983 # Check whether --enable-systemd was given.
36984 if test "${enable_systemd+set}" = set; then :
36985 enableval
=$enable_systemd;
36992 # Check whether --with-systemdunitdir was given.
36993 if test "${with_systemdunitdir+set}" = set; then :
36994 withval
=$with_systemdunitdir; systemdunitdir
=$withval
36996 systemdunitdir
=/usr
/lib
/systemd
/system
37001 # Check whether --with-systemdpresetdir was given.
37002 if test "${with_systemdpresetdir+set}" = set; then :
37003 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
37005 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
37010 # Check whether --with-systemdmodulesloaddir was given.
37011 if test "${with_systemdmodulesloaddir+set}" = set; then :
37012 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
37014 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
37019 if test "x$enable_systemd" = xyes
; then :
37021 ZFS_INIT_SYSTEMD
=systemd
37022 ZFS_MODULE_LOAD
=modules-load.d
37023 modulesloaddir
=$systemdmodulesloaddir
37034 # Check whether --enable-sysvinit was given.
37035 if test "${enable_sysvinit+set}" = set; then :
37036 enableval
=$enable_sysvinit;
37038 enable_sysvinit
=yes
37042 if test "x$enable_sysvinit" = xyes
; then :
37043 ZFS_INIT_SYSV
=init.d
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
37050 $as_echo_n "checking for dracut directory... " >&6; }
37052 # Check whether --with-dracutdir was given.
37053 if test "${with_dracutdir+set}" = set; then :
37054 withval
=$with_dracutdir; dracutdir
=$withval
37060 if test "x$dracutdir" = xcheck
; then :
37062 path1
=/usr
/share
/dracut
37063 path2
=/usr
/lib
/dracut
37066 if test -d "$path1"; then :
37070 if test -d "$path2"; then :
37073 dracutdir
="$default"
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
37082 $as_echo "$dracutdir" >&6; }
37085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
37086 $as_echo_n "checking for target asm dir... " >&6; }
37087 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
37089 case $TARGET_ARCH in
37091 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
37094 TARGET_ASM_DIR
=asm-generic
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
37100 $as_echo "$TARGET_ASM_DIR" >&6; }
37105 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
37106 if test "x$ac_cv_header_zlib_h" = xyes
; then :
37109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37112 *** zlib.h missing, zlib-devel package required
37113 See \`config.log' for more details" "$LINENO" 5; }
37118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
37119 $as_echo_n "checking for compress2 in -lz... " >&6; }
37120 if ${ac_cv_lib_z_compress2+:} false
; then :
37121 $as_echo_n "(cached) " >&6
37123 ac_check_lib_save_LIBS
=$LIBS
37125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37126 /* end confdefs.h. */
37128 /* Override any GCC internal prototype to avoid an error.
37129 Use char because int might match the return type of a GCC
37130 builtin and then its argument prototype would still apply. */
37138 return compress2 ();
37143 if ac_fn_c_try_link
"$LINENO"; then :
37144 ac_cv_lib_z_compress2
=yes
37146 ac_cv_lib_z_compress2
=no
37148 rm -f core conftest.err conftest.
$ac_objext \
37149 conftest
$ac_exeext conftest.
$ac_ext
37150 LIBS
=$ac_check_lib_save_LIBS
37152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
37153 $as_echo "$ac_cv_lib_z_compress2" >&6; }
37154 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
37155 cat >>confdefs.h
<<_ACEOF
37156 #define HAVE_LIBZ 1
37162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37165 *** compress2() missing, zlib-devel package required
37166 See \`config.log' for more details" "$LINENO" 5; }
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
37171 $as_echo_n "checking for uncompress in -lz... " >&6; }
37172 if ${ac_cv_lib_z_uncompress+:} false
; then :
37173 $as_echo_n "(cached) " >&6
37175 ac_check_lib_save_LIBS
=$LIBS
37177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37178 /* end confdefs.h. */
37180 /* Override any GCC internal prototype to avoid an error.
37181 Use char because int might match the return type of a GCC
37182 builtin and then its argument prototype would still apply. */
37186 char uncompress ();
37190 return uncompress ();
37195 if ac_fn_c_try_link
"$LINENO"; then :
37196 ac_cv_lib_z_uncompress
=yes
37198 ac_cv_lib_z_uncompress
=no
37200 rm -f core conftest.err conftest.
$ac_objext \
37201 conftest
$ac_exeext conftest.
$ac_ext
37202 LIBS
=$ac_check_lib_save_LIBS
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
37205 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
37206 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
37207 cat >>confdefs.h
<<_ACEOF
37208 #define HAVE_LIBZ 1
37214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37217 *** uncompress() missing, zlib-devel package required
37218 See \`config.log' for more details" "$LINENO" 5; }
37222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
37223 $as_echo_n "checking for crc32 in -lz... " >&6; }
37224 if ${ac_cv_lib_z_crc32+:} false
; then :
37225 $as_echo_n "(cached) " >&6
37227 ac_check_lib_save_LIBS
=$LIBS
37229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37230 /* end confdefs.h. */
37232 /* Override any GCC internal prototype to avoid an error.
37233 Use char because int might match the return type of a GCC
37234 builtin and then its argument prototype would still apply. */
37247 if ac_fn_c_try_link
"$LINENO"; then :
37248 ac_cv_lib_z_crc32
=yes
37250 ac_cv_lib_z_crc32
=no
37252 rm -f core conftest.err conftest.
$ac_objext \
37253 conftest
$ac_exeext conftest.
$ac_ext
37254 LIBS
=$ac_check_lib_save_LIBS
37256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
37257 $as_echo "$ac_cv_lib_z_crc32" >&6; }
37258 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
37259 cat >>confdefs.h
<<_ACEOF
37260 #define HAVE_LIBZ 1
37266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37269 *** crc32() missing, zlib-devel package required
37270 See \`config.log' for more details" "$LINENO" 5; }
37277 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
37283 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
37284 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
37287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37290 *** uuid/uuid.h missing, libuuid-devel package required
37291 See \`config.log' for more details" "$LINENO" 5; }
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
37297 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
37298 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
37299 $as_echo_n "(cached) " >&6
37301 ac_check_lib_save_LIBS
=$LIBS
37302 LIBS
="-luuid $LIBS"
37303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37304 /* end confdefs.h. */
37306 /* Override any GCC internal prototype to avoid an error.
37307 Use char because int might match the return type of a GCC
37308 builtin and then its argument prototype would still apply. */
37312 char uuid_generate ();
37316 return uuid_generate ();
37321 if ac_fn_c_try_link
"$LINENO"; then :
37322 ac_cv_lib_uuid_uuid_generate
=yes
37324 ac_cv_lib_uuid_uuid_generate
=no
37326 rm -f core conftest.err conftest.
$ac_objext \
37327 conftest
$ac_exeext conftest.
$ac_ext
37328 LIBS
=$ac_check_lib_save_LIBS
37330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
37331 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
37332 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
37333 cat >>confdefs.h
<<_ACEOF
37334 #define HAVE_LIBUUID 1
37337 LIBS
="-luuid $LIBS"
37340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37343 *** uuid_generate() missing, libuuid-devel package required
37344 See \`config.log' for more details" "$LINENO" 5; }
37348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
37349 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
37350 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
37351 $as_echo_n "(cached) " >&6
37353 ac_check_lib_save_LIBS
=$LIBS
37354 LIBS
="-luuid $LIBS"
37355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37356 /* end confdefs.h. */
37358 /* Override any GCC internal prototype to avoid an error.
37359 Use char because int might match the return type of a GCC
37360 builtin and then its argument prototype would still apply. */
37364 char uuid_is_null ();
37368 return uuid_is_null ();
37373 if ac_fn_c_try_link
"$LINENO"; then :
37374 ac_cv_lib_uuid_uuid_is_null
=yes
37376 ac_cv_lib_uuid_uuid_is_null
=no
37378 rm -f core conftest.err conftest.
$ac_objext \
37379 conftest
$ac_exeext conftest.
$ac_ext
37380 LIBS
=$ac_check_lib_save_LIBS
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
37383 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
37384 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
37385 cat >>confdefs.h
<<_ACEOF
37386 #define HAVE_LIBUUID 1
37389 LIBS
="-luuid $LIBS"
37392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37395 *** uuid_is_null() missing, libuuid-devel package required
37396 See \`config.log' for more details" "$LINENO" 5; }
37403 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
37408 # Check whether --with-blkid was given.
37409 if test "${with_blkid+set}" = set; then :
37410 withval
=$with_blkid;
37417 if test "x$with_blkid" = xyes
; then :
37422 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37427 if test "x$with_blkid" = xcheck
; then :
37429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
37430 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
37431 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
37432 $as_echo_n "(cached) " >&6
37434 ac_check_lib_save_LIBS
=$LIBS
37435 LIBS
="-lblkid $LIBS"
37436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37437 /* end confdefs.h. */
37439 /* Override any GCC internal prototype to avoid an error.
37440 Use char because int might match the return type of a GCC
37441 builtin and then its argument prototype would still apply. */
37445 char blkid_get_cache ();
37449 return blkid_get_cache ();
37454 if ac_fn_c_try_link
"$LINENO"; then :
37455 ac_cv_lib_blkid_blkid_get_cache
=yes
37457 ac_cv_lib_blkid_blkid_get_cache
=no
37459 rm -f core conftest.err conftest.
$ac_objext \
37460 conftest
$ac_exeext conftest.
$ac_ext
37461 LIBS
=$ac_check_lib_save_LIBS
37463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
37464 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
37465 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
37468 $as_echo_n "checking for blkid zfs support... " >&6; }
37471 truncate
-s 64M
$ZFS_DEV
37472 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37473 dd of
=$ZFS_DEV bs
=1k count
=8 \
37474 seek
=128 conv
=notrunc
&>/dev
/null \
37475 >/dev
/null
2>/dev
/null
37476 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37477 dd of
=$ZFS_DEV bs
=1k count
=8 \
37478 seek
=132 conv
=notrunc
&>/dev
/null \
37479 >/dev
/null
2>/dev
/null
37480 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37481 dd of
=$ZFS_DEV bs
=1k count
=8 \
37482 seek
=136 conv
=notrunc
&>/dev
/null \
37483 >/dev
/null
2>/dev
/null
37484 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37485 dd of
=$ZFS_DEV bs
=1k count
=8 \
37486 seek
=140 conv
=notrunc
&>/dev
/null \
37487 >/dev
/null
2>/dev
/null
37492 if test "$cross_compiling" = yes; then :
37493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37495 as_fn_error $?
"cannot run test program while cross compiling
37496 See \`config.log' for more details" "$LINENO" 5; }
37498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37499 /* end confdefs.h. */
37502 #include <stdlib.h>
37503 #include <blkid/blkid.h>
37512 if (blkid_get_cache(&cache, NULL) < 0)
37515 value = blkid_get_tag_value(cache, "TYPE",
37518 blkid_put_cache(cache);
37522 if (strcmp(value, "zfs_member")) {
37524 blkid_put_cache(cache);
37529 blkid_put_cache(cache);
37535 if ac_fn_c_try_run
"$LINENO"; then :
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539 $as_echo "yes" >&6; }
37543 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550 $as_echo "no" >&6; }
37551 if test "x$with_blkid" != xcheck
; then :
37552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37554 as_fn_error $?
"--with-blkid given but unavailable
37555 See \`config.log' for more details" "$LINENO" 5; }
37559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
37560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
37568 if test "x$with_blkid" != xcheck
; then :
37569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37571 as_fn_error $?
"--with-blkid given but unavailable
37572 See \`config.log' for more details" "$LINENO" 5; }
37582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
37583 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
37585 saved_flags
="$CFLAGS"
37586 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
37588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37589 /* end confdefs.h. */
37599 if ac_fn_c_try_compile
"$LINENO"; then :
37601 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
37602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37603 $as_echo "yes" >&6; }
37608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37609 $as_echo "no" >&6; }
37612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37614 CFLAGS
="$saved_flags"
37618 if test "x$runstatedir" = x
; then
37619 runstatedir
='${localstatedir}/run'
37624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
37625 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
37626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37627 /* end confdefs.h. */
37629 #include <sys/sysmacros.h>
37642 if ac_fn_c_try_compile
"$LINENO"; then :
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37645 $as_echo "yes" >&6; }
37647 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
37652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37653 $as_echo "no" >&6; }
37656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
37660 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
37661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37662 /* end confdefs.h. */
37664 #include <sys/mkdev.h>
37677 if ac_fn_c_try_compile
"$LINENO"; then :
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37680 $as_echo "yes" >&6; }
37682 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
37687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37688 $as_echo "no" >&6; }
37691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
37695 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
37697 saved_flags
="$CFLAGS"
37698 CFLAGS
="$CFLAGS -Wno-format-truncation"
37700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37701 /* end confdefs.h. */
37711 if ac_fn_c_try_compile
"$LINENO"; then :
37713 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
37714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37715 $as_echo "yes" >&6; }
37719 NO_FORMAT_TRUNCATION
=
37720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37721 $as_echo "no" >&6; }
37724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37726 CFLAGS
="$saved_flags"
37729 for ac_func
in mlockall
37731 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
37732 if test "x$ac_cv_func_mlockall" = xyes
; then :
37733 cat >>confdefs.h
<<_ACEOF
37734 #define HAVE_MLOCKALL 1
37743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
37744 $as_echo "Error!" >&6; }
37745 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
37746 user kernel|user|all|srpm" "$LINENO" 5 ;;
37749 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
37751 CONFIG_USER_FALSE
='#'
37753 CONFIG_USER_TRUE
='#'
37757 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
37758 test "x$enable_linux_builtin" != xyes
; then
37759 CONFIG_KERNEL_TRUE
=
37760 CONFIG_KERNEL_FALSE
='#'
37762 CONFIG_KERNEL_TRUE
='#'
37763 CONFIG_KERNEL_FALSE
=
37768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
37769 $as_echo_n "checking whether debugging is enabled... " >&6; }
37770 # Check whether --enable-debug was given.
37771 if test "${enable_debug+set}" = set; then :
37772 enableval
=$enable_debug;
37778 if test "x$enable_debug" = xyes
; then :
37780 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
37781 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
37782 DEBUG_CFLAGS
="-DDEBUG -Werror"
37783 DEBUG_STACKFLAGS
="-fstack-check"
37784 DEBUG_ZFS
="_with_debug"
37786 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
37791 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
37792 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
37793 DEBUG_CFLAGS
="-DNDEBUG"
37794 DEBUG_STACKFLAGS
=""
37795 DEBUG_ZFS
="_without_debug"
37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
37803 $as_echo "$enable_debug" >&6; }
37806 # Check whether --enable-debug-dmu-tx was given.
37807 if test "${enable_debug_dmu_tx+set}" = set; then :
37808 enableval
=$enable_debug_dmu_tx;
37810 enable_debug_dmu_tx
=no
37814 if test "x$enable_debug_dmu_tx" = xyes
; then :
37816 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
37817 DEBUG_DMU_TX
="_with_debug_dmu_tx"
37819 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
37824 DEBUG_DMU_TX
="_without_debug_dmu_tx"
37829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
37830 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
37831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
37832 $as_echo "$enable_debug_dmu_tx" >&6; }
37835 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 include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile zfs.release"
37838 cat >confcache
<<\_ACEOF
37839 # This file is a shell script that caches the results of configure
37840 # tests run on this system so they can be shared between configure
37841 # scripts and configure runs, see configure's option --config-cache.
37842 # It is not useful on other systems. If it contains results you don't
37843 # want to keep, you may remove or edit it.
37845 # config.status only pays attention to the cache file if you give it
37846 # the --recheck option to rerun configure.
37848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37850 # following values.
37854 # The following way of writing the cache mishandles newlines in values,
37855 # but we know of no workaround that is simple, portable, and efficient.
37856 # So, we kill variables containing newlines.
37857 # Ultrix sh set writes to stderr and can't be redirected directly,
37858 # and sets the high bit in the cache file unless we assign to the vars.
37860 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37861 eval ac_val
=\$
$ac_var
37865 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37869 _ | IFS | as_nl
) ;; #(
37870 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
37871 *) { eval $ac_var=; unset $ac_var;} ;;
37877 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37878 *${as_nl}ac_space
=\
*)
37879 # `set' does not quote correctly, so add quotes: double-quote
37880 # substitution turns \\\\ into \\, and sed turns \\ into \.
37883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37886 # `set' quotes correctly as required by POSIX, so do not add quotes.
37887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37900 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
37901 if test -w "$cache_file"; then
37902 if test "x$cache_file" != "x/dev/null"; then
37903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37904 $as_echo "$as_me: updating cache $cache_file" >&6;}
37905 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
37906 cat confcache
>"$cache_file"
37908 case $cache_file in #(
37910 mv -f confcache
"$cache_file"$$
&&
37911 mv -f "$cache_file"$$
"$cache_file" ;; #(
37913 mv -f confcache
"$cache_file" ;;
37918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37924 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
37925 # Let make expand exec_prefix.
37926 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
37928 DEFS
=-DHAVE_CONFIG_H
37933 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
37934 # 1. Remove the extension, and $U if already installed.
37935 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
37936 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
37937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37938 # will be set to the directory where LIBOBJS objects are built.
37939 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37940 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
37942 LIBOBJS
=$ac_libobjs
37944 LTLIBOBJS
=$ac_ltlibobjs
37947 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
37948 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
37949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37952 $as_echo_n "checking that generated files are newer than configure... " >&6; }
37953 if test -n "$am_sleep_pid"; then
37954 # Hide warnings about reused PIDs.
37955 wait $am_sleep_pid 2>/dev
/null
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37958 $as_echo "done" >&6; }
37959 if test -n "$EXEEXT"; then
37961 am__EXEEXT_FALSE
='#'
37963 am__EXEEXT_TRUE
='#'
37967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37968 as_fn_error $?
"conditional \"AMDEP\" was never defined.
37969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37972 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
37973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37975 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
37976 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
37977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37979 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
37980 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
37981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37983 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
37984 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
37985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37988 : "${CONFIG_STATUS=./config.status}"
37990 ac_clean_files_save
=$ac_clean_files
37991 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37997 # Generated by $as_me.
37998 # Run this file to recreate the current configuration.
37999 # Compiler output produced by configure, useful for debugging
38000 # configure, is in config.log if it exists.
38003 ac_cs_recheck=false
38006 SHELL=\${CONFIG_SHELL-$SHELL}
38009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
38010 ## -------------------- ##
38011 ## M4sh Initialization. ##
38012 ## -------------------- ##
38014 # Be more Bourne compatible
38015 DUALCASE
=1; export DUALCASE
# for MKS sh
38016 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
38019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38020 # is contrary to our usage. Disable this feature.
38021 alias -g '${1+"$@"}'='"$@"'
38022 setopt NO_GLOB_SUBST
38024 case `(set -o) 2>/dev/null` in #(
38036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38037 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38040 # Prefer a ksh shell builtin over an external printf program on Solaris,
38041 # but without wasting forks for bash or zsh.
38042 if test -z "$BASH_VERSION$ZSH_VERSION" \
38043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38044 as_echo='print
-r --'
38045 as_echo_n='print
-rn --'
38046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38047 as_echo='printf %s
\n'
38048 as_echo_n='printf %s
'
38050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38051 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
38052 as_echo_n='/usr
/ucb
/echo -n'
38054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38055 as_echo_n_body='eval
38059 expr "X$arg" : "X\\(.*\\)$as_nl";
38060 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38062 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
38064 export as_echo_n_body
38065 as_echo_n='sh
-c $as_echo_n_body as_echo
'
38067 export as_echo_body
38068 as_echo='sh
-c $as_echo_body as_echo
'
38071 # The user is always right.
38072 if test "${PATH_SEPARATOR+set}" != set; then
38074 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38075 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38082 # We need space, tab and new line, in precisely that order. Quoting is
38083 # there to prevent editors from complaining about space-tab.
38084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38085 # splitting by setting IFS to empty value.)
38088 # Find who we are. Look in the path if we contain no directory separator.
38091 *[\\/]* ) as_myself=$0 ;;
38092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38093 for as_dir in $PATH
38096 test -z "$as_dir" && as_dir=.
38097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38103 # We did not find ourselves, most probably we were run as `sh COMMAND'
38104 # in which case we are not to be found in the path.
38105 if test "x$as_myself" = x
; then
38108 if test ! -f "$as_myself"; then
38109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38113 # Unset variables that we do not need and which cause bugs (e.g. in
38114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
38115 # suppresses any "Segmentation fault" message there. '((' could
38116 # trigger a bug in pdksh 5.2.14.
38117 for as_var
in BASH_ENV ENV MAIL MAILPATH
38118 do eval test x\
${$as_var+set} = xset \
38119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
38132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
38135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
38136 # ----------------------------------------
38137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38139 # script with STATUS, using 1 if that was 0.
38142 as_status
=$1; test $as_status -eq 0 && as_status
=1
38144 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
38145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38147 $as_echo "$as_me: error: $2" >&2
38148 as_fn_exit
$as_status
38152 # as_fn_set_status STATUS
38153 # -----------------------
38154 # Set $? to STATUS, without forking.
38155 as_fn_set_status
()
38158 } # as_fn_set_status
38160 # as_fn_exit STATUS
38161 # -----------------
38162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
38166 as_fn_set_status
$1
38172 # Portably unset VAR.
38175 { eval $1=; unset $1;}
38177 as_unset
=as_fn_unset
38178 # as_fn_append VAR VALUE
38179 # ----------------------
38180 # Append the text in VALUE to the end of the definition contained in VAR. Take
38181 # advantage of any shell optimizations that allow amortized linear growth over
38182 # repeated appends, instead of the typical quadratic growth present in naive
38184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
38185 eval 'as_fn_append ()
38196 # as_fn_arith ARG...
38197 # ------------------
38198 # Perform arithmetic evaluation on the ARGs, and store the result in the
38199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
38200 # must be portable across $(()) and expr.
38201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
38202 eval 'as_fn_arith ()
38209 as_val
=`expr "$@" || test $? -eq 1`
38214 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
38215 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
38221 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38222 as_basename
=basename
38227 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
38233 as_me
=`$as_basename -- "$0" ||
38234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38235 X"$0" : 'X\(//\)$' \| \
38236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38238 sed '/^.*\/\([^/][^/]*\)\/*$/{
38252 # Avoid depending upon Character Ranges.
38253 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38254 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38255 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38256 as_cr_digits
='0123456789'
38257 as_cr_alnum
=$as_cr_Letters$as_cr_digits
38259 ECHO_C
= ECHO_N
= ECHO_T
=
38260 case `echo -n x` in #(((((
38262 case `echo 'xy\c'` in
38263 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
38265 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
38272 rm -f conf$$ conf$$.exe conf$$.
file
38273 if test -d conf$$.dir
; then
38274 rm -f conf$$.dir
/conf$$.
file
38277 mkdir conf$$.dir
2>/dev
/null
38279 if (echo >conf$$.
file) 2>/dev
/null
; then
38280 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
38282 # ... but there are two gotchas:
38283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38285 # In both cases, we have to default to `cp -pR'.
38286 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
38288 elif ln conf$$.
file conf$$
2>/dev
/null
; then
38296 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
38297 rmdir conf$$.dir
2>/dev
/null
38302 # Create "$as_dir" as a directory, including parents if necessary.
38307 -*) as_dir
=.
/$as_dir;;
38309 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
38313 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38314 *) as_qdir
=$as_dir;;
38316 as_dirs
="'$as_qdir' $as_dirs"
38317 as_dir
=`$as_dirname -- "$as_dir" ||
38318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38319 X"$as_dir" : 'X\(//\)[^/]' \| \
38320 X"$as_dir" : 'X\(//\)$' \| \
38321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38322 $as_echo X"$as_dir" |
38323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38327 /^X\(\/\/\)[^/].*/{
38340 test -d "$as_dir" && break
38342 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
38343 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
38347 if mkdir
-p .
2>/dev
/null
; then
38348 as_mkdir_p
='mkdir -p "$as_dir"'
38350 test -d .
/-p && rmdir .
/-p
38355 # as_fn_executable_p FILE
38356 # -----------------------
38357 # Test if FILE is an executable regular file.
38358 as_fn_executable_p
()
38360 test -f "$1" && test -x "$1"
38361 } # as_fn_executable_p
38362 as_test_x
='test -x'
38363 as_executable_p
=as_fn_executable_p
38365 # Sed expression to map a string onto a valid CPP name.
38366 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38368 # Sed expression to map a string onto a valid variable name.
38369 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38373 ## ----------------------------------- ##
38374 ## Main body of $CONFIG_STATUS script. ##
38375 ## ----------------------------------- ##
38377 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
38379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38380 # Save the log message, to keep $0 and so on meaningful, and to
38381 # report actual input values of CONFIG_FILES etc. instead of their
38382 # values after options handling.
38384 This file was extended by zfs $as_me 0.6.5.11, which was
38385 generated by GNU Autoconf 2.69. Invocation command line was
38387 CONFIG_FILES = $CONFIG_FILES
38388 CONFIG_HEADERS = $CONFIG_HEADERS
38389 CONFIG_LINKS = $CONFIG_LINKS
38390 CONFIG_COMMANDS = $CONFIG_COMMANDS
38393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38398 case $ac_config_files in *"
38399 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
38402 case $ac_config_headers in *"
38403 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
38407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38408 # Files that config.status was made for.
38409 config_files="$ac_config_files"
38410 config_headers="$ac_config_headers"
38411 config_commands="$ac_config_commands"
38415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38417 \`$as_me' instantiates files and other configuration actions
38418 from templates according to the current configuration. Unless the files
38419 and actions are specified as TAGs, all are instantiated by default.
38421 Usage: $0 [OPTION]... [TAG]...
38423 -h, --help print this help, then exit
38424 -V, --version print version number and configuration settings, then exit
38425 --config print configuration, then exit
38426 -q, --quiet, --silent
38427 do not print progress messages
38428 -d, --debug don't remove temporary files
38429 --recheck update $as_me by reconfiguring in the same conditions
38430 --file=FILE[:TEMPLATE]
38431 instantiate the configuration file FILE
38432 --header=FILE[:TEMPLATE]
38433 instantiate the configuration header FILE
38435 Configuration files:
38438 Configuration headers:
38441 Configuration commands:
38444 Report bugs to the package provider."
38447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38450 zfs config.status 0.6.5.11
38451 configured by $0, generated by GNU Autoconf 2.69,
38452 with options \\"\$ac_cs_config\\"
38454 Copyright (C) 2012 Free Software Foundation, Inc.
38455 This config.status script is free software; the Free Software Foundation
38456 gives unlimited permission to copy, distribute and modify it."
38463 test -n "\$AWK" || AWK=awk
38466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38467 # The default lists apply if the user does not specify any file.
38473 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38474 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
38478 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38490 # Handling of the options.
38491 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
38493 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
38494 $as_echo "$ac_cs_version"; exit ;;
38495 --config |
--confi |
--conf |
--con |
--co |
--c )
38496 $as_echo "$ac_cs_config"; exit ;;
38497 --debug |
--debu |
--deb |
--de |
--d |
-d )
38499 --file |
--fil |
--fi |
--f )
38502 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38503 '') as_fn_error $?
"missing file argument" ;;
38505 as_fn_append CONFIG_FILES
" '$ac_optarg'"
38506 ac_need_defaults
=false
;;
38507 --header |
--heade |
--head |
--hea )
38510 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38512 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
38513 ac_need_defaults
=false
;;
38515 # Conflict between --help and --header
38516 as_fn_error $?
"ambiguous option: \`$1'
38517 Try \`$0 --help' for more information.";;
38518 --help |
--hel |
-h )
38519 $as_echo "$ac_cs_usage"; exit ;;
38520 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
38521 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
38524 # This is an error.
38525 -*) as_fn_error $?
"unrecognized option: \`$1'
38526 Try \`$0 --help' for more information." ;;
38528 *) as_fn_append ac_config_targets
" $1"
38529 ac_need_defaults
=false
;;
38535 ac_configure_extra_args
=
38537 if $ac_cs_silent; then
38539 ac_configure_extra_args
="$ac_configure_extra_args --silent"
38543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38544 if \$ac_cs_recheck; then
38545 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38548 CONFIG_SHELL='$SHELL'
38549 export CONFIG_SHELL
38554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38559 ## Running $as_me. ##
38565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38569 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38572 # The HP-UX ksh and POSIX shell print the target directory to stdout
38573 # if CDPATH is set.
38574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38576 sed_quote_subst='$sed_quote_subst'
38577 double_quote_subst='$double_quote_subst'
38578 delay_variable_subst='$delay_variable_subst'
38579 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38580 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38581 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38582 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38583 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38584 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38585 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
38586 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38587 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38588 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
38589 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38590 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38591 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38592 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38593 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38594 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38595 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38596 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38597 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38598 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38599 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38600 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38601 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38602 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38603 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38604 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38605 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38606 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38607 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38608 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38609 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38610 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38611 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38612 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38613 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38614 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38615 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38616 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38617 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38618 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38619 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38620 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38621 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38622 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38623 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38624 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38625 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38626 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38627 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38628 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38629 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38630 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38631 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38632 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38633 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38635 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38636 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38637 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"`'
38638 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38639 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38640 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38641 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38642 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38643 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38644 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38645 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38646 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38647 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38648 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38649 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38650 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38651 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38652 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38653 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38654 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38655 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38656 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38657 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38658 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38659 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38660 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38661 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38662 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38663 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38664 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38665 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38666 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38667 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38668 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38669 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38670 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38671 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38672 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38673 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38674 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38675 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38676 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38677 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38678 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38679 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38680 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38681 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38682 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38683 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38684 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38685 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38686 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38687 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38688 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38689 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38690 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38691 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38692 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38693 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38694 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38695 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38696 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38697 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38698 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38699 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38700 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38701 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38702 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38703 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38704 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38705 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38706 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38707 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38708 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38709 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38710 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38711 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38712 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38713 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38716 LTCFLAGS='$LTCFLAGS'
38717 compiler='$compiler_DEFAULT'
38719 # A function that is used when there is no print builtin or printf.
38720 func_fallback_echo ()
38722 eval 'cat <<_LTECHO_EOF
38727 # Quote evaled strings.
38742 deplibs_check_method \
38747 sharedlib_from_linklib_cmd \
38750 archiver_list_spec \
38756 lt_cv_sys_global_symbol_pipe \
38757 lt_cv_sys_global_symbol_to_cdecl \
38758 lt_cv_sys_global_symbol_to_import \
38759 lt_cv_sys_global_symbol_to_c_name_address \
38760 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38761 lt_cv_nm_interface \
38762 nm_file_list_spec \
38763 lt_cv_truncate_bin \
38764 lt_prog_compiler_no_builtin_flag \
38765 lt_prog_compiler_pic \
38766 lt_prog_compiler_wl \
38767 lt_prog_compiler_static \
38768 lt_cv_prog_compiler_c_o \
38777 export_dynamic_flag_spec \
38778 whole_archive_flag_spec \
38779 compiler_needs_object \
38781 allow_undefined_flag \
38782 no_undefined_flag \
38783 hardcode_libdir_flag_spec \
38784 hardcode_libdir_separator \
38788 variables_saved_for_relink \
38790 library_names_spec \
38792 install_override_mode \
38796 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38797 *[\\\\\\\`\\"\\\$]*)
38798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38806 # Double-quote double-evaled strings.
38807 for var in reload_cmds \
38808 old_postinstall_cmds \
38809 old_postuninstall_cmds \
38811 extract_expsyms_cmds \
38812 old_archive_from_new_cmds \
38813 old_archive_from_expsyms_cmds \
38815 archive_expsym_cmds \
38817 module_expsym_cmds \
38818 export_symbols_cmds \
38822 postuninstall_cmds \
38824 sys_lib_search_path_spec \
38825 configure_time_dlsearch_path \
38826 configure_time_lt_sys_library_path; do
38827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38828 *[\\\\\\\`\\"\\\$]*)
38829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38837 ac_aux_dir='$ac_aux_dir'
38839 # See if we are running on zsh, and set the options that allow our
38840 # commands through without removal of \ escapes INIT.
38841 if test -n "\${ZSH_VERSION+set}"; then
38842 setopt NO_GLOB_SUBST
38856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38858 # Handling of arguments.
38859 for ac_config_target
in $ac_config_targets
38861 case $ac_config_target in
38862 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
38863 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
38864 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
38865 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
38866 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
38867 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
38868 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
38869 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
38870 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
38871 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
38872 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
38873 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
38874 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
38875 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
38876 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
38877 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
38878 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
38879 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
38881 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38886 # If the user did not use the arguments to specify the items to instantiate,
38887 # then the envvar interface is used. Set only those that are not.
38888 # We use the long form for the default assignment because of an extremely
38889 # bizarre bug on SunOS 4.1.3.
38890 if $ac_need_defaults; then
38891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
38892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
38893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
38896 # Have a temporary directory for convenience. Make it in the build tree
38897 # simply because there is no reason against having it here, and in addition,
38898 # creating and moving files from /tmp can sometimes cause problems.
38899 # Hook for its removal unless debugging.
38900 # Note that there is a small window in which the directory will not be cleaned:
38901 # after its creation but before its name has been assigned to `$tmp'.
38905 trap 'exit_status=$?
38906 : "${ac_tmp:=$tmp}"
38907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38909 trap 'as_fn_exit 1' 1 2 13 15
38911 # Create a (secure) tmp directory for tmp files.
38914 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38918 tmp
=.
/conf$$
-$RANDOM
38919 (umask 077 && mkdir
"$tmp")
38920 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
38923 # Set up the scripts for CONFIG_FILES section.
38924 # No need to generate them if there are no CONFIG_FILES.
38925 # This happens for instance with `./config.status config.h'.
38926 if test -n "$CONFIG_FILES"; then
38929 ac_cr
=`echo X | tr X '\015'`
38930 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38931 # But we know of no other shell where ac_cr would be empty at this
38932 # point, so we can use a bashism as a fallback.
38933 if test "x$ac_cr" = x
; then
38934 eval ac_cr
=\$
\'\\r
\'
38936 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38937 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38940 ac_cs_awk_cr
=$ac_cr
38943 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38948 echo "cat >conf$$subs.awk <<_ACEOF" &&
38949 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38951 } >conf$$subs.sh ||
38952 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
38953 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38955 for ac_last_try in false false false false false :; do
38956 . ./conf$$subs.sh ||
38957 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
38959 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
38960 if test $ac_delim_n = $ac_delim_num; then
38962 elif $ac_last_try; then
38963 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
38965 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
38968 rm -f conf$$subs.sh
38970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38971 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
38975 s/^/S["/; s
/!.
*/"]=/
38985 s/\(.\{148\}\)..*/\1/
38987 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
38992 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
38999 s/\(.\{148\}\)..*/\1/
39001 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
39005 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
39010 ' <conf$$subs.awk | sed '
39015 ' >>$CONFIG_STATUS || ac_write_fail=1
39016 rm -f conf$$subs.awk
39017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39019 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
39020 for (key in S) S_is_set[key] = 1
39026 nfields = split(line, field, "@
")
39028 len = length(field[1])
39029 for (i = 2; i < nfields; i++) {
39031 keylen = length(key)
39032 if (S_is_set[key]) {
39034 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39035 len += length(value) + length(field[++i])
39046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39047 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39048 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
39051 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
39052 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
39055 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
39056 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
39057 # trailing colons and then remove the whole line if VPATH becomes empty
39058 # (actually we leave an empty line to preserve line numbers).
39059 if test "x
$srcdir" = x.; then
39060 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
39078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39079 fi # test -n "$CONFIG_FILES"
39081 # Set up the scripts for CONFIG_HEADERS section.
39082 # No need to generate them if there are no CONFIG_HEADERS.
39083 # This happens for instance with `./config.status Makefile'.
39084 if test -n "$CONFIG_HEADERS"; then
39085 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
39089 # Transform confdefs.h into an awk script `defines.awk', embedded as
39090 # here-document in config.status, that substitutes the proper values into
39091 # config.h.in to produce config.h.
39093 # Create a delimiter string that does not exist in confdefs.h, to ease
39094 # handling of long lines.
39096 for ac_last_try in false false :; do
39097 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
39098 if test -z "$ac_tt"; then
39100 elif $ac_last_try; then
39101 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
39103 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
39107 # For the awk script, D is an array of macro values keyed by name,
39108 # likewise P contains macro parameters if any. Preserve backslash
39109 # newline sequences.
39111 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39113 s/.\{148\}/&'"$ac_delim"'/g
39116 s/^[ ]*#[ ]*define[ ][ ]*/ /
39123 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
39125 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
39129 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
39130 D["\
1"]=" \
3\\\\\\n
"\\/p
39132 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
39137 s/.\{148\}/&'"$ac_delim"'/g
39142 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
39145 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
39147 ' <confdefs.h | sed '
39148 s/'"$ac_delim"'/"\\\
39149 "/g' >>$CONFIG_STATUS || ac_write_fail=1
39151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39152 for (key in D) D_is_set[key] = 1
39155 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39157 split(line, arg, " ")
39158 if (arg[1] == "#") {
39162 defundef
= substr
(arg
[1], 2)
39165 split(mac1
, mac2
, "(") #)
39167 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
39168 if (D_is_set
[macro
]) {
39169 # Preserve the white space surrounding the "#".
39170 print prefix
"define", macro P
[macro
] D
[macro
]
39173 # Replace #undef with comments. This is necessary, for example,
39174 # in the case of _POSIX_SOURCE, which is predefined and required
39175 # on some systems where configure will not decide to define it.
39176 if (defundef
== "undef") {
39177 print
"/*", prefix defundef
, macro
, "*/"
39185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39186 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
39187 fi # test -n "$CONFIG_HEADERS"
39190 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39195 :[FHLC
]) ac_mode
=$ac_tag; continue;;
39197 case $ac_mode$ac_tag in
39199 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
39200 :[FH
]-) ac_tag
=-:-;;
39201 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
39218 -) ac_f
="$ac_tmp/stdin";;
39219 *) # Look for the file first in the build tree, then in the source tree
39220 # (if the path is not absolute). The absolute path cannot be DOS-style,
39221 # because $ac_f cannot contain `:'.
39225 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
39227 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39229 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39230 as_fn_append ac_file_inputs
" '$ac_f'"
39233 # Let's still pretend it is `configure' which instantiates (i.e., don't
39234 # use $as_me), people would be surprised to read:
39235 # /* config.h. Generated by config.status. */
39236 configure_input
='Generated from '`
39237 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39239 if test x
"$ac_file" != x-
; then
39240 configure_input
="$ac_file. $configure_input"
39241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39242 $as_echo "$as_me: creating $ac_file" >&6;}
39244 # Neutralize special characters interpreted by sed in replacement strings.
39245 case $configure_input in #(
39246 *\
&* |
*\|
* |
*\\* )
39247 ac_sed_conf_input
=`$as_echo "$configure_input" |
39248 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39249 *) ac_sed_conf_input
=$configure_input;;
39253 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
39254 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
39259 ac_dir
=`$as_dirname -- "$ac_file" ||
39260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39261 X"$ac_file" : 'X\(//\)[^/]' \| \
39262 X"$ac_file" : 'X\(//\)$' \| \
39263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39264 $as_echo X"$ac_file" |
39265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39269 /^X\(\/\/\)[^/].*/{
39282 as_dir
="$ac_dir"; as_fn_mkdir_p
39286 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39288 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39289 # A ".." for each directory in $ac_dir_suffix.
39290 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39291 case $ac_top_builddir_sub in
39292 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39293 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
39296 ac_abs_top_builddir
=$ac_pwd
39297 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
39298 # for backward compatibility:
39299 ac_top_builddir
=$ac_top_build_prefix
39302 .
) # We are building in place.
39304 ac_top_srcdir
=$ac_top_builddir_sub
39305 ac_abs_top_srcdir
=$ac_pwd ;;
39306 [\\/]* | ?
:[\\/]* ) # Absolute name.
39307 ac_srcdir
=$srcdir$ac_dir_suffix;
39308 ac_top_srcdir
=$srcdir
39309 ac_abs_top_srcdir
=$srcdir ;;
39310 *) # Relative name.
39311 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
39312 ac_top_srcdir
=$ac_top_build_prefix$srcdir
39313 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
39315 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
39325 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
39326 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
39328 ac_MKDIR_P
=$MKDIR_P
39330 [\\/$
]* | ?
:[\\/]* ) ;;
39331 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
39335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39336 # If the template does not know about datarootdir, expand it.
39337 # FIXME: This hack should be removed a few years after 2.60.
39338 ac_datarootdir_hack
=; ac_datarootdir_seen
=
39349 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39350 *datarootdir
*) ac_datarootdir_seen
=yes;;
39351 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
39352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39353 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39356 ac_datarootdir_hack='
39357 s&@datadir@&$datadir&g
39358 s&@docdir@&$docdir&g
39359 s&@infodir@&$infodir&g
39360 s&@localedir@&$localedir&g
39361 s&@mandir@&$mandir&g
39362 s&\\\${datarootdir}&$datarootdir&g' ;;
39366 # Neutralize VPATH when `$srcdir' = `.'.
39367 # Shell code in configure.ac might set extrasub.
39368 # FIXME: do we really want to maintain this feature?
39369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39370 ac_sed_extra="$ac_vpsub
39373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39375 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
39376 s|@configure_input@|
$ac_sed_conf_input|
;t t
39377 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
39378 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
39379 s
&@srcdir@
&$ac_srcdir&;t t
39380 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
39381 s
&@top_srcdir@
&$ac_top_srcdir&;t t
39382 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
39383 s
&@builddir@
&$ac_builddir&;t t
39384 s
&@abs_builddir@
&$ac_abs_builddir&;t t
39385 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
39386 s
&@INSTALL@
&$ac_INSTALL&;t t
39387 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
39388 $ac_datarootdir_hack
39390 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
39391 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
39393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39394 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
39395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39396 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
39397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
39398 which seems to be undefined. Please make sure it is defined" >&5
39399 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
39400 which seems to be undefined. Please make sure it is defined" >&2;}
39402 rm -f "$ac_tmp/stdin"
39404 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39405 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39413 if test x"$ac_file" != x-; then
39415 $as_echo "/* $configure_input */" \
39416 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39417 } >"$ac_tmp/config.h" \
39418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39419 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39421 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39424 mv "$ac_tmp/config.h" "$ac_file" \
39425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39428 $as_echo "/* $configure_input */" \
39429 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39430 || as_fn_error $? "could not create -" "$LINENO" 5
39432 # Compute "$ac_file"'s index
in $config_headers.
39435 for _am_header
in $config_headers :; do
39436 case $_am_header in
39437 $_am_arg |
$_am_arg:* )
39440 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
39443 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39444 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39445 X"$_am_arg" : 'X\(//\)[^/]' \| \
39446 X"$_am_arg" : 'X\(//\)$' \| \
39447 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39448 $as_echo X"$_am_arg" |
39449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39453 /^X\(\/\/\)[^/].*/{
39465 s/.*/./; q'`/stamp-h
$_am_stamp_count
39468 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39469 $as_echo "$as_me: executing $ac_file commands" >&6;}
39474 case $ac_file$ac_mode in
39476 (mv zfs_config.h zfs_config.h.tmp
&&
39477 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
39478 rm zfs_config.h.tmp
) ||
exit 1 ;;
39479 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
39480 # Older Autoconf quotes --file arguments for eval, but not when files
39481 # are listed without --file. Let's play safe and only enable the eval
39482 # if we detect the quoting.
39483 case $CONFIG_FILES in
39484 *\'*) eval set x
"$CONFIG_FILES" ;;
39485 *) set x
$CONFIG_FILES ;;
39490 # Strip MF so we end up with the name of the file.
39491 mf
=`echo "$mf" | sed -e 's/:.*$//'`
39492 # Check whether this is an Automake generated Makefile or not.
39493 # We used to match only the files named 'Makefile.in', but
39494 # some people rename them; so instead we look at the file content.
39495 # Grep'ing the first line is not enough: some people post-process
39496 # each Makefile.in and add a new line on top of each file to say so.
39497 # Grep'ing the whole file is not good either: AIX grep has a line
39498 # limit of 2048, but all sed's we know have understand at least 4000.
39499 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
39500 dirpart
=`$as_dirname -- "$mf" ||
39501 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39502 X"$mf" : 'X\(//\)[^/]' \| \
39503 X"$mf" : 'X\(//\)$' \| \
39504 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39510 /^X\(\/\/\)[^/].*/{
39526 # Extract the definition of DEPDIR, am__include, and am__quote
39527 # from the Makefile without running 'make'.
39528 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
39529 test -z "$DEPDIR" && continue
39530 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
39531 test -z "$am__include" && continue
39532 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
39533 # Find all dependency output files, they are included files with
39534 # $(DEPDIR) in their names. We invoke sed twice because it is the
39535 # simplest approach to changing $(DEPDIR) to its actual value in the
39537 for file in `sed -n "
39538 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39539 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39540 # Make sure the directory exists.
39541 test -f "$dirpart/$file" && continue
39542 fdir
=`$as_dirname -- "$file" ||
39543 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39544 X"$file" : 'X\(//\)[^/]' \| \
39545 X"$file" : 'X\(//\)$' \| \
39546 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39547 $as_echo X"$file" |
39548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39552 /^X\(\/\/\)[^/].*/{
39565 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
39566 # echo "creating $dirpart/$file"
39567 echo '# dummy' > "$dirpart/$file"
39574 # See if we are running on zsh, and set the options that allow our
39575 # commands through without removal of \ escapes.
39576 if test -n "${ZSH_VERSION+set}"; then
39577 setopt NO_GLOB_SUBST
39581 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39584 cat <<_LT_EOF >> "$cfgfile"
39586 # Generated automatically by $as_me ($PACKAGE) $VERSION
39587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39589 # Provide generalized library-building support services.
39590 # Written by Gordon Matzigkeit, 1996
39592 # Copyright (C) 2014 Free Software Foundation, Inc.
39593 # This is free software; see the source for copying conditions. There is NO
39594 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39596 # GNU Libtool is free software; you can redistribute it and/or modify
39597 # it under the terms of the GNU General Public License as published by
39598 # the Free Software Foundation; either version 2 of of the License, or
39599 # (at your option) any later version.
39601 # As a special exception to the GNU General Public License, if you
39602 # distribute this file as part of a program or library that is built
39603 # using GNU Libtool, you may include this file under the same
39604 # distribution terms that you use for the rest of that program.
39606 # GNU Libtool is distributed in the hope that it will be useful, but
39607 # WITHOUT ANY WARRANTY; without even the implied warranty of
39608 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39609 # GNU General Public License for more details.
39611 # You should have received a copy of the GNU General Public License
39612 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39615 # The names of the tagged configurations supported by this script.
39618 # Configured defaults for sys_lib_dlsearch_path munging.
39619 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39621 # ### BEGIN LIBTOOL CONFIG
39623 # Which release of libtool.m4 was used?
39624 macro_version=$macro_version
39625 macro_revision=$macro_revision
39627 # Whether or not to build shared libraries.
39628 build_libtool_libs=$enable_shared
39630 # Whether or not to build static libraries.
39631 build_old_libs=$enable_static
39633 # What type of objects to build.
39636 # Whether or not to optimize for fast installation.
39637 fast_install=$enable_fast_install
39639 # Shared archive member basename,for filename based shared library versioning on AIX.
39640 shared_archive_member_spec=$shared_archive_member_spec
39642 # Shell to use when invoking shell scripts.
39645 # An echo program that protects backslashes.
39648 # The PATH separator for the build system.
39649 PATH_SEPARATOR=$lt_PATH_SEPARATOR
39652 host_alias=$host_alias
39656 # The build system.
39657 build_alias=$build_alias
39661 # A sed program that does not truncate output.
39664 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39665 Xsed="\$SED -e 1s/^X//"
39667 # A grep program that handles long lines.
39673 # A literal string matcher.
39676 # A BSD- or MS-compatible name lister.
39679 # Whether we need soft or hard links.
39682 # What is the maximum length of a command?
39683 max_cmd_len=$max_cmd_len
39685 # Object file suffix (normally "o").
39688 # Executable file suffix (normally "").
39691 # whether the shell understands "unset".
39694 # turn spaces into newlines.
39697 # turn newlines into spaces.
39700 # convert \$build file names to \$host format.
39701 to_host_file_cmd=$lt_cv_to_host_file_cmd
39703 # convert \$build files to toolchain format.
39704 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39706 # An object symbol dumper.
39707 OBJDUMP=$lt_OBJDUMP
39709 # Method to check whether dependent libraries are shared objects.
39710 deplibs_check_method=$lt_deplibs_check_method
39712 # Command to use when deplibs_check_method = "file_magic".
39713 file_magic_cmd=$lt_file_magic_cmd
39715 # How to find potential files when deplibs_check_method = "file_magic".
39716 file_magic_glob=$lt_file_magic_glob
39718 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39719 want_nocaseglob=$lt_want_nocaseglob
39721 # DLL creation program.
39722 DLLTOOL=$lt_DLLTOOL
39724 # Command to associate shared and link libraries.
39725 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39730 # Flags to create an archive.
39731 AR_FLAGS=$lt_AR_FLAGS
39733 # How to feed a file listing to the archiver.
39734 archiver_list_spec=$lt_archiver_list_spec
39736 # A symbol stripping program.
39739 # Commands used to install an old-style archive.
39741 old_postinstall_cmds=$lt_old_postinstall_cmds
39742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39744 # Whether to use a lock for old archive extraction.
39745 lock_old_archive_extraction=$lock_old_archive_extraction
39750 # LTCC compiler flags.
39751 LTCFLAGS=$lt_CFLAGS
39753 # Take the output of nm and produce a listing of raw symbols and C names.
39754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39756 # Transform the output of nm in a proper C declaration.
39757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39759 # Transform the output of nm into a list of symbols to manually relocate.
39760 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39762 # Transform the output of nm in a C name address pair.
39763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39765 # Transform the output of nm in a C name address pair when lib prefix is needed.
39766 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39768 # The name lister interface.
39769 nm_interface=$lt_lt_cv_nm_interface
39771 # Specify filename containing input files for \$NM.
39772 nm_file_list_spec=$lt_nm_file_list_spec
39774 # The root where to search for dependent libraries,and where our libraries should be installed.
39775 lt_sysroot=$lt_sysroot
39777 # Command to truncate a binary pipe.
39778 lt_truncate_bin=$lt_lt_cv_truncate_bin
39780 # The name of the directory that contains temporary libtool files.
39783 # Used to examine libraries when file_magic_cmd begins with "file".
39784 MAGIC_CMD=$MAGIC_CMD
39786 # Must we lock files when doing compilation?
39787 need_locks=$lt_need_locks
39790 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39792 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39793 DSYMUTIL=$lt_DSYMUTIL
39795 # Tool to change global to local symbols on Mac OS X.
39798 # Tool to manipulate fat objects and archives on Mac OS X.
39801 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39804 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39805 OTOOL64=$lt_OTOOL64
39807 # Old archive suffix (normally "a").
39810 # Shared library suffix (normally ".so").
39811 shrext_cmds=$lt_shrext_cmds
39813 # The commands to extract the exported symbol list from a shared archive.
39814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39816 # Variables whose values should be saved in libtool wrapper scripts and
39817 # restored at link time.
39818 variables_saved_for_relink=$lt_variables_saved_for_relink
39820 # Do we need the "lib" prefix for modules?
39821 need_lib_prefix=$need_lib_prefix
39823 # Do we need a version for libraries?
39824 need_version=$need_version
39826 # Library versioning type.
39827 version_type=$version_type
39829 # Shared library runtime path variable.
39830 runpath_var=$runpath_var
39832 # Shared library path variable.
39833 shlibpath_var=$shlibpath_var
39835 # Is shlibpath searched before the hard-coded library search path?
39836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39838 # Format of library name prefix.
39839 libname_spec=$lt_libname_spec
39841 # List of archive names. First name is the real one, the rest are links.
39842 # The last name is the one that the linker finds with -lNAME
39843 library_names_spec=$lt_library_names_spec
39845 # The coded name of the library, if different from the real name.
39846 soname_spec=$lt_soname_spec
39848 # Permission mode override for installation of shared libraries.
39849 install_override_mode=$lt_install_override_mode
39851 # Command to use after installation of a shared archive.
39852 postinstall_cmds=$lt_postinstall_cmds
39854 # Command to use after uninstallation of a shared archive.
39855 postuninstall_cmds=$lt_postuninstall_cmds
39857 # Commands used to finish a libtool library installation in a directory.
39858 finish_cmds=$lt_finish_cmds
39860 # As "finish_cmds", except a single script fragment to be evaled but
39862 finish_eval=$lt_finish_eval
39864 # Whether we should hardcode library paths into libraries.
39865 hardcode_into_libs=$hardcode_into_libs
39867 # Compile-time system search path for libraries.
39868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39870 # Detected run-time system search path for libraries.
39871 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39873 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39874 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39876 # Whether dlopen is supported.
39877 dlopen_support=$enable_dlopen
39879 # Whether dlopen of programs is supported.
39880 dlopen_self=$enable_dlopen_self
39882 # Whether dlopen of statically linked programs is supported.
39883 dlopen_self_static=$enable_dlopen_self_static
39885 # Commands to strip libraries.
39886 old_striplib=$lt_old_striplib
39887 striplib=$lt_striplib
39890 # The linker used to build libraries.
39893 # How to create reloadable object files.
39894 reload_flag=$lt_reload_flag
39895 reload_cmds=$lt_reload_cmds
39897 # Commands used to build an old-style archive.
39898 old_archive_cmds=$lt_old_archive_cmds
39900 # A language specific compiler.
39903 # Is the compiler the GNU compiler?
39906 # Compiler flag to turn off builtin functions.
39907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39909 # Additional compiler flags for building library objects.
39910 pic_flag=$lt_lt_prog_compiler_pic
39912 # How to pass a linker flag through the compiler.
39913 wl=$lt_lt_prog_compiler_wl
39915 # Compiler flag to prevent dynamic linking.
39916 link_static_flag=$lt_lt_prog_compiler_static
39918 # Does compiler simultaneously support -c and -o options?
39919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39921 # Whether or not to add -lc for building shared libraries.
39922 build_libtool_need_lc=$archive_cmds_need_lc
39924 # Whether or not to disallow shared libs when runtime libs are static.
39925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39927 # Compiler flag to allow reflexive dlopens.
39928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39930 # Compiler flag to generate shared objects directly from archives.
39931 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39933 # Whether the compiler copes with passing no objects directly.
39934 compiler_needs_object=$lt_compiler_needs_object
39936 # Create an old-style archive from a shared archive.
39937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39939 # Create a temporary old-style archive to link instead of a shared archive.
39940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39942 # Commands used to build a shared archive.
39943 archive_cmds=$lt_archive_cmds
39944 archive_expsym_cmds=$lt_archive_expsym_cmds
39946 # Commands used to build a loadable module if different from building
39947 # a shared archive.
39948 module_cmds=$lt_module_cmds
39949 module_expsym_cmds=$lt_module_expsym_cmds
39951 # Whether we are building with GNU ld or not.
39952 with_gnu_ld=$lt_with_gnu_ld
39954 # Flag that allows shared libraries with undefined symbols to be built.
39955 allow_undefined_flag=$lt_allow_undefined_flag
39957 # Flag that enforces no undefined symbols.
39958 no_undefined_flag=$lt_no_undefined_flag
39960 # Flag to hardcode \$libdir into a binary during linking.
39961 # This must work even if \$libdir does not exist
39962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39964 # Whether we need a single "-rpath" flag with a separated argument.
39965 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39967 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39968 # DIR into the resulting binary.
39969 hardcode_direct=$hardcode_direct
39971 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39972 # DIR into the resulting binary and the resulting library dependency is
39973 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
39974 # library is relocated.
39975 hardcode_direct_absolute=$hardcode_direct_absolute
39977 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39978 # into the resulting binary.
39979 hardcode_minus_L=$hardcode_minus_L
39981 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39982 # into the resulting binary.
39983 hardcode_shlibpath_var=$hardcode_shlibpath_var
39985 # Set to "yes" if building a shared library automatically hardcodes DIR
39986 # into the library and all subsequent libraries and executables linked
39988 hardcode_automatic=$hardcode_automatic
39990 # Set to yes if linker adds runtime paths of dependent libraries
39991 # to runtime path list.
39992 inherit_rpath=$inherit_rpath
39994 # Whether libtool must link a program against all its dependency libraries.
39995 link_all_deplibs=$link_all_deplibs
39997 # Set to "yes" if exported symbols are required.
39998 always_export_symbols=$always_export_symbols
40000 # The commands to list exported symbols.
40001 export_symbols_cmds=$lt_export_symbols_cmds
40003 # Symbols that should not be listed in the preloaded symbols.
40004 exclude_expsyms=$lt_exclude_expsyms
40006 # Symbols that must always be exported.
40007 include_expsyms=$lt_include_expsyms
40009 # Commands necessary for linking programs (against libraries) with templates.
40010 prelink_cmds=$lt_prelink_cmds
40012 # Commands necessary for finishing linking programs.
40013 postlink_cmds=$lt_postlink_cmds
40015 # Specify filename containing input files.
40016 file_list_spec=$lt_file_list_spec
40018 # How to hardcode a shared library path into an executable.
40019 hardcode_action=$hardcode_action
40021 # ### END LIBTOOL CONFIG
40025 cat <<'_LT_EOF' >> "$cfgfile"
40027 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40029 # func_munge_path_list VARIABLE PATH
40030 # -----------------------------------
40031 # VARIABLE is name of variable containing _space_ separated list of
40032 # directories to be munged by the contents of PATH, which is string
40035 # string "DIR[ DIR]" will be prepended to VARIABLE
40037 # string "DIR[ DIR]" will be appended to VARIABLE
40038 # "DIRP[:DIRP]::[DIRA:]DIRA"
40039 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40040 # "DIRA[ DIRA]" will be appended to VARIABLE
40042 # VARIABLE will be replaced by "DIR[ DIR]"
40043 func_munge_path_list ()
40049 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40052 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40055 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40056 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40059 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40065 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
40066 func_cc_basename ()
40068 for cc_temp in $*""; do
40070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40076 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40080 # ### END FUNCTIONS SHARED WITH CONFIGURE
40086 cat <<\_LT_EOF
>> "$cfgfile"
40087 # AIX sometimes has problems with the GCC collect2 program. For some
40088 # reason, if we set the COLLECT_NAMES environment variable, the problems
40089 # vanish in a puff of smoke.
40090 if test set != "${COLLECT_NAMES+set}"; then
40092 export COLLECT_NAMES
40099 ltmain
=$ac_aux_dir/ltmain.sh
40102 # We use sed instead of cat because bash on DJGPP gets confused if
40103 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40104 # text mode, it properly converts lines to CR/LF. This bash problem
40105 # is reportedly fixed, but why not run on old versions too?
40106 sed '$q' "$ltmain" >> "$cfgfile" \
40107 ||
(rm -f "$cfgfile"; exit 1)
40109 mv -f "$cfgfile" "$ofile" ||
40110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40121 ac_clean_files
=$ac_clean_files_save
40123 test $ac_write_fail = 0 ||
40124 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
40127 # configure is writing to config.log, and then calls config.status.
40128 # config.status does its own redirection, appending to config.log.
40129 # Unfortunately, on DOS this fails, as config.log is still kept open
40130 # by configure, so config.status won't be able to write to it; its
40131 # output is simply discarded. So we exec the FD to /dev/null,
40132 # effectively closing config.log, so it can be properly (re)opened and
40133 # appended to by config.status. When coming back to configure, we
40134 # need to make the FD available again.
40135 if test "$no_create" != yes; then
40137 ac_config_status_args
=
40138 test "$silent" = yes &&
40139 ac_config_status_args
="$ac_config_status_args --quiet"
40141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40144 # would make configure fail if this is the last instruction.
40145 $ac_cs_success || as_fn_exit
1
40147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}