2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.9.
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.9'
591 PACKAGE_STRING
='zfs 0.6.5.9'
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
668 NO_UNUSED_BUT_SET_VARIABLE
701 am__fastdepCCAS_FALSE
753 INSTALL_STRIP_PROGRAM
773 MAINTAINER_MODE_FALSE
827 program_transform_name
840 enable_option_checking
841 enable_maintainer_mode
843 enable_dependency_tracking
860 with_systemdpresetdir
861 with_systemdmodulesloaddir
873 ac_precious_vars
='build_alias
887 # Initialize some variables set by options.
889 ac_init_version
=false
890 ac_unrecognized_opts
=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name
=s
,x
,x
,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir
='${exec_prefix}/bin'
916 sbindir
='${exec_prefix}/sbin'
917 libexecdir
='${exec_prefix}/libexec'
918 datarootdir
='${prefix}/share'
919 datadir
='${datarootdir}'
920 sysconfdir
='${prefix}/etc'
921 sharedstatedir
='${prefix}/com'
922 localstatedir
='${prefix}/var'
923 runstatedir
='${localstatedir}/run'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
961 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
964 -build |
--build |
--buil |
--bui |
--bu)
965 ac_prev
=build_alias
;;
966 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
967 build_alias
=$ac_optarg ;;
969 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
970 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
971 ac_prev
=cache_file
;;
972 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
973 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
974 cache_file
=$ac_optarg ;;
977 cache_file
=config.cache
;;
979 -datadir |
--datadir |
--datadi |
--datad)
981 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
982 datadir
=$ac_optarg ;;
984 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
985 |
--dataroo |
--dataro |
--datar)
986 ac_prev
=datarootdir
;;
987 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
988 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
989 datarootdir
=$ac_optarg ;;
991 -disable-* |
--disable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error $?
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=\
$ac_optarg ;;
1033 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1034 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1035 |
--exec |
--exe |
--ex)
1036 ac_prev
=exec_prefix
;;
1037 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1038 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1039 |
--exec=* |
--exe=* |
--ex=*)
1040 exec_prefix
=$ac_optarg ;;
1042 -gas |
--gas |
--ga |
--g)
1043 # Obsolete; use --with-gas.
1046 -help |
--help |
--hel |
--he |
-h)
1047 ac_init_help
=long
;;
1048 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1049 ac_init_help
=recursive
;;
1050 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1051 ac_init_help
=short
;;
1053 -host |
--host |
--hos |
--ho)
1054 ac_prev
=host_alias
;;
1055 -host=* |
--host=* |
--hos=* |
--ho=*)
1056 host_alias
=$ac_optarg ;;
1058 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1060 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1062 htmldir
=$ac_optarg ;;
1064 -includedir |
--includedir |
--includedi |
--included |
--include \
1065 |
--includ |
--inclu |
--incl |
--inc)
1066 ac_prev
=includedir
;;
1067 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1068 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1069 includedir
=$ac_optarg ;;
1071 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1073 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1074 infodir
=$ac_optarg ;;
1076 -libdir |
--libdir |
--libdi |
--libd)
1078 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1079 libdir
=$ac_optarg ;;
1081 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1082 |
--libexe |
--libex |
--libe)
1083 ac_prev
=libexecdir
;;
1084 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1085 |
--libexe=* |
--libex=* |
--libe=*)
1086 libexecdir
=$ac_optarg ;;
1088 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1089 ac_prev
=localedir
;;
1090 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1091 localedir
=$ac_optarg ;;
1093 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1094 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1095 ac_prev
=localstatedir
;;
1096 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1097 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1098 localstatedir
=$ac_optarg ;;
1100 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1102 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1103 mandir
=$ac_optarg ;;
1105 -nfp |
--nfp |
--nf)
1106 # Obsolete; use --without-fp.
1109 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1110 |
--no-cr |
--no-c |
-n)
1113 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1114 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1117 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1118 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1119 |
--oldin |
--oldi |
--old |
--ol |
--o)
1120 ac_prev
=oldincludedir
;;
1121 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1122 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1123 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1124 oldincludedir
=$ac_optarg ;;
1126 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1128 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1129 prefix
=$ac_optarg ;;
1131 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1132 |
--program-pre |
--program-pr |
--program-p)
1133 ac_prev
=program_prefix
;;
1134 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1135 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1136 program_prefix
=$ac_optarg ;;
1138 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1139 |
--program-suf |
--program-su |
--program-s)
1140 ac_prev
=program_suffix
;;
1141 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1142 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1143 program_suffix
=$ac_optarg ;;
1145 -program-transform-name |
--program-transform-name \
1146 |
--program-transform-nam |
--program-transform-na \
1147 |
--program-transform-n |
--program-transform- \
1148 |
--program-transform |
--program-transfor \
1149 |
--program-transfo |
--program-transf \
1150 |
--program-trans |
--program-tran \
1151 |
--progr-tra |
--program-tr |
--program-t)
1152 ac_prev
=program_transform_name
;;
1153 -program-transform-name=* |
--program-transform-name=* \
1154 |
--program-transform-nam=* |
--program-transform-na=* \
1155 |
--program-transform-n=* |
--program-transform-=* \
1156 |
--program-transform=* |
--program-transfor=* \
1157 |
--program-transfo=* |
--program-transf=* \
1158 |
--program-trans=* |
--program-tran=* \
1159 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1160 program_transform_name
=$ac_optarg ;;
1162 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1164 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1165 pdfdir
=$ac_optarg ;;
1167 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1169 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1173 |
-silent |
--silent |
--silen |
--sile |
--sil)
1176 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1177 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1178 |
--run |
--ru |
--r)
1179 ac_prev
=runstatedir
;;
1180 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1181 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1182 |
--run=* |
--ru=* |
--r=*)
1183 runstatedir
=$ac_optarg ;;
1185 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1187 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1189 sbindir
=$ac_optarg ;;
1191 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1192 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1193 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1195 ac_prev
=sharedstatedir
;;
1196 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1197 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1198 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1200 sharedstatedir
=$ac_optarg ;;
1202 -site |
--site |
--sit)
1204 -site=* |
--site=* |
--sit=*)
1207 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1209 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1210 srcdir
=$ac_optarg ;;
1212 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1213 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1214 ac_prev
=sysconfdir
;;
1215 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1216 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1217 sysconfdir
=$ac_optarg ;;
1219 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1220 ac_prev
=target_alias
;;
1221 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1222 target_alias
=$ac_optarg ;;
1224 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1227 -version |
--version |
--versio |
--versi |
--vers |
-V)
1228 ac_init_version
=: ;;
1231 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 as_fn_error $?
"invalid package name: $ac_useropt"
1235 ac_useropt_orig
=$ac_useropt
1236 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep
=', ';;
1244 eval with_
$ac_useropt=\
$ac_optarg ;;
1246 -without-* |
--without-*)
1247 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1250 as_fn_error $?
"invalid package name: $ac_useropt"
1251 ac_useropt_orig
=$ac_useropt
1252 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep
=', ';;
1260 eval with_
$ac_useropt=no
;;
1263 # Obsolete; use --with-x.
1266 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1267 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1268 ac_prev
=x_includes
;;
1269 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1270 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1271 x_includes
=$ac_optarg ;;
1273 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1274 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1275 ac_prev
=x_libraries
;;
1276 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1277 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1278 x_libraries
=$ac_optarg ;;
1280 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1285 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1289 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1291 eval $ac_envvar=\
$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305 if test -n "$ac_prev"; then
1306 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $?
"missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1313 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 # Check all directory arguments for consistency.
1319 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir runstatedir
1324 eval ac_val
=\$
$ac_var
1325 # Remove trailing slashes.
1328 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\
$ac_val;;
1331 # Be sure to have absolute directory names.
1333 [\\/$
]* | ?
:[\\/]* ) continue;;
1334 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1336 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1344 target
=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x
; then
1348 if test "x$build_alias" = x
; then
1349 cross_compiling
=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1358 test "$silent" = yes && exec 6>/dev
/null
1361 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di
=`ls -di .` &&
1363 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $?
"working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $?
"pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted
=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir
=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted
=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1405 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var
in $ac_precious_vars; do
1422 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1424 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures zfs 0.6.5.9 to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1499 --build=BUILD configure
for building on BUILD
[guessed
]
1500 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive
) echo "Configuration of zfs 0.6.5.9:";;
1512 --disable-option-checking ignore unrecognized
--enable/--with options
1513 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1514 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful
(and
1517 sometimes confusing
) to the casual installer
1518 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1519 --disable-silent-rules verbose build output
(undo
: "make V=0")
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1525 --enable-static[=PKGS
] build static libraries
[default
=yes]
1526 --enable-fast-install[=PKGS
]
1527 optimize
for fast installation
[default
=yes]
1528 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1529 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1531 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1532 --enable-sysvinit install SysV init scripts
[default
: yes]
1533 --enable-debug Enable generic debug support
[default
=no
]
1534 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1537 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1538 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1539 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning
(aka
"SONAME") variant to
1543 provide on AIX
, [default
=aix
].
1544 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1545 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1546 compiler
's sysroot if not specified).
1547 --with-spec=SPEC Spec files 'generic|redhat
'
1548 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1549 --with-mounthelperdir=DIR
1550 install mount.zfs in dir [[/sbin]]
1551 --with-udevdir=DIR install udev helpers [default=check]
1552 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1553 --with-systemdunitdir=DIR
1554 install systemd unit files in dir
1555 [[/usr/lib/systemd/system]]
1556 --with-systemdpresetdir=DIR
1557 install systemd preset files in dir
1558 [[/usr/lib/systemd/system-preset]]
1559 --with-systemdmodulesloaddir=DIR
1560 install systemd module load files into dir
1561 [[/usr/lib/modules-load.d]]
1562 --with-dracutdir=DIR install dracut helpers [default=check]
1563 --with-blkid support blkid caching [default=check]
1564 --with-linux=PATH Path to kernel source
1565 --with-linux-obj=PATH Path to kernel build objects
1566 --with-spl=PATH Path to spl source
1567 --with-spl-obj=PATH Path to spl build objects
1568 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1579 User-defined run-time library search path.
1581 CCAS assembler compiler command (defaults to CC)
1582 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1584 Use these variables to override the choices made by `configure' or to
help
1585 it to
find libraries and programs with nonstandard names
/locations.
1587 Report bugs to the package provider.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1601 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1603 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir
=$ac_pwd
1612 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir
=$ac_top_build_prefix
1617 .
) # We are building in place.
1619 ac_top_srcdir
=$ac_top_builddir_sub
1620 ac_abs_top_srcdir
=$ac_pwd ;;
1621 [\\/]* | ?
:[\\/]* ) # Absolute name.
1622 ac_srcdir
=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir
=$srcdir
1624 ac_abs_top_srcdir
=$srcdir ;;
1626 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1650 zfs configure
0.6.5.9
1651 generated by GNU Autoconf
2.69
1653 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1654 This configure
script is free software
; the Free Software Foundation
1655 gives unlimited permission to copy
, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile
()
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 rm -f conftest.
$ac_objext
1671 if { { ac_try
="$ac_compile"
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1712 *) ac_try_echo
=$ac_try;;
1714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1718 if test -s conftest.err
; then
1719 grep -v '^ *+' conftest.err
>conftest.er1
1720 cat conftest.er1
>&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest
$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest
$ac_exeext
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.
$ac_ext >&5
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status
$ac_retval
1746 } # ac_fn_c_try_link
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile
()
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \
${$3+:} false
; then :
1758 $as_echo_n "(cached) " >&6
1760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1765 if ac_fn_c_try_compile
"$LINENO"; then :
1770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 } # ac_fn_c_check_header_compile
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1784 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1785 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1826 *) ac_try_echo
=$ac_try;;
1828 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=$ac_status
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1881 # include <limits.h>
1883 # include <assert.h>
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1910 if ac_fn_c_try_link "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_func
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2002 eval "$3=\$ac_header_compiler"
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_mongrel
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2015 It was created by zfs $as_me 0.6.5.9, which was
2016 generated by GNU Autoconf 2.69. Invocation command line was
2028 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2029 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2030 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2031 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2032 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2034 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2035 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2037 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2038 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2039 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2040 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2041 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2042 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2043 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_must_keep_next=false
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2087 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 -* ) ac_must_keep_next=true ;;
2108 as_fn_append ac_configure_args " '$ac_arg'"
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2126 $as_echo "## ---------------- ##
2127 ## Cache variables. ##
2128 ## ---------------- ##"
2130 # The following way of writing the cache mishandles newlines in values,
2132 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2133 eval ac_val=\$$ac_var
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2148 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 $as_echo "## ----------------- ##
2163 ## Output variables. ##
2164 ## ----------------- ##"
2166 for ac_var in $ac_subst_vars
2168 eval ac_val=\$$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2176 if test -n "$ac_subst_files"; then
2177 $as_echo "## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##"
2181 for ac_var in $ac_subst_files
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -s confdefs.h; then
2193 $as_echo "## ----------- ##
2200 test "$ac_signal" != 0 &&
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208 for ac_signal in 1 2 13 15; do
2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2214 rm -f -r conftest* confdefs.h
2216 $as_echo "/* confdefs.h */" > confdefs.h
2218 # Predefined preprocessor variables.
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_STRING "$PACKAGE_STRING"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_URL "$PACKAGE_URL"
2245 # Let the site file select an alternate cache file if it wants to.
2246 # Prefer an explicitly selected file to automatically selected ones.
2249 if test -n "$CONFIG_SITE"; then
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2256 elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2263 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265 test "x$ac_site_file" = xNONE && continue
2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269 sed 's/^/| /' "$ac_site_file" >&5
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 as_fn_error $? "failed to load site
script $ac_site_file
2274 See \
`config.log' for more details" "$LINENO" 5; }
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 # Check that the precious variables saved in the cache have kept the same
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2306 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2310 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x
$ac_old_val`
2317 ac_new_val_w=`echo x
$ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2321 ac_cache_corrupted=:
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373 for ac_prog in gawk mawk nawk awk
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if ${ac_cv_prog_AWK+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 if test -n "$AWK"; then
2383 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 ac_cv_prog_AWK="$ac_prog"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test -n "$AWK"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2405 $as_echo "$AWK" >&6; }
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2412 test -n "$AWK" && break
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2416 $as_echo_n "checking metadata... " >&6; }
2419 _zfs_ac_meta_type="none"
2420 if test -f "$META"; then
2421 _zfs_ac_meta_type="META file"
2422 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2424 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2425 if test -n "$ZFS_META_NAME"; then
2427 cat >>confdefs.h <<_ACEOF
2428 #define ZFS_META_NAME "$ZFS_META_NAME"
2434 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2435 if test -n "$ZFS_META_VERSION"; then
2437 cat >>confdefs.h <<_ACEOF
2438 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2444 if test -n "${_dpkg_parsechangelog}"; then
2445 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2446 | $AWK '$1 == "Version:" { print $2; }' \
2448 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2450 *** Version $ZFS_META_VERSION in the META file is different than
2451 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2452 *** packaging require that these files have the same version.
2457 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2459 if test -n "${_dpkg_parsechangelog}"; then
2460 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2461 | $AWK '$1 == "Version:" { print $2; }' \
2463 if test -n "${_dpkg_release}"; then
2464 ZFS_META_RELEASE=${_dpkg_release}
2465 _zfs_ac_meta_type="dpkg-parsechangelog"
2467 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2468 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2469 _alias=$(git describe --match=${_match} 2>/dev/null)
2470 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2471 if test -n "${_release}"; then
2472 ZFS_META_RELEASE=${_release}
2473 _zfs_ac_meta_type="git describe"
2477 if test -n "$ZFS_META_RELEASE"; then
2479 cat >>confdefs.h <<_ACEOF
2480 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2485 RELEASE="$ZFS_META_RELEASE"
2489 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2490 if test -n "$ZFS_META_LICENSE"; then
2492 cat >>confdefs.h <<_ACEOF
2493 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2499 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2500 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2501 test -n "$ZFS_META_RELEASE" &&
2502 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2504 cat >>confdefs.h <<_ACEOF
2505 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2511 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2512 if test -n "$ZFS_META_DATA"; then
2514 cat >>confdefs.h <<_ACEOF
2515 #define ZFS_META_DATA "$ZFS_META_DATA"
2521 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2522 if test -n "$ZFS_META_AUTHOR"; then
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2532 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2533 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2534 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2535 if test -n "$ZFS_META_LT_CURRENT" \
2536 -o -n "$ZFS_META_LT_REVISION" \
2537 -o -n "$ZFS_META_LT_AGE"; then
2538 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2539 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2540 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2542 cat >>confdefs.h <<_ACEOF
2543 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2547 cat >>confdefs.h <<_ACEOF
2548 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2552 cat >>confdefs.h <<_ACEOF
2553 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2563 $as_echo "$_zfs_ac_meta_type" >&6; }
2567 for ac_dir in config "$srcdir"/config; do
2568 if test -f "$ac_dir/install-sh"; then
2570 ac_install_sh="$ac_aux_dir/install-sh -c"
2572 elif test -f "$ac_dir/install.sh"; then
2574 ac_install_sh="$ac_aux_dir/install.sh -c"
2576 elif test -f "$ac_dir/shtool"; then
2578 ac_install_sh="$ac_aux_dir/shtool install -c"
2582 if test -z "$ac_aux_dir"; then
2583 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2586 # These three variables are undocumented and unsupported,
2587 # and are intended to be withdrawn in a future Autoconf release.
2588 # They can cause serious problems if a builder's source tree is in a directory
2589 # whose full name contains unusual characters.
2590 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2591 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2592 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2596 # Make sure we can run config.sub.
2597 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2598 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2601 $as_echo_n "checking build system type... " >&6; }
2602 if ${ac_cv_build+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 ac_build_alias=$build_alias
2606 test "x$ac_build_alias" = x &&
2607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608 test "x$ac_build_alias" = x &&
2609 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2615 $as_echo "$ac_cv_build" >&6; }
2616 case $ac_cv_build in
2618 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2621 ac_save_IFS=$IFS; IFS='-'
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2631 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2635 $as_echo_n "checking host system type... " >&6; }
2636 if ${ac_cv_host+:} false; then :
2637 $as_echo_n "(cached) " >&6
2639 if test "x$host_alias" = x; then
2640 ac_cv_host=$ac_cv_build
2642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2648 $as_echo "$ac_cv_host" >&6; }
2651 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2654 ac_save_IFS=$IFS; IFS='-'
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2664 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2668 $as_echo_n "checking target system type... " >&6; }
2669 if ${ac_cv_target+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 if test "x$target_alias" = x; then
2673 ac_cv_target=$ac_cv_host
2675 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2681 $as_echo "$ac_cv_target" >&6; }
2682 case $ac_cv_target in
2684 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2686 target=$ac_cv_target
2687 ac_save_IFS=$IFS; IFS='-'
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2697 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2700 # The aliases save the names the user supplied, while $host etc.
2701 # will get canonicalized.
2702 test -n "$target_alias" &&
2703 test "$program_prefix$program_suffix$program_transform_name" = \
2705 program_prefix=${target_alias}-
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2709 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2710 # Check whether --enable-maintainer-mode was given.
2711 if test "${enable_maintainer_mode+set}" = set; then :
2712 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2714 USE_MAINTAINER_MODE=no
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2718 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2719 if test $USE_MAINTAINER_MODE = yes; then
2720 MAINTAINER_MODE_TRUE=
2721 MAINTAINER_MODE_FALSE='#'
2723 MAINTAINER_MODE_TRUE='#'
2724 MAINTAINER_MODE_FALSE=
2727 MAINT=$MAINTAINER_MODE_TRUE
2730 # Check whether --enable-silent-rules was given.
2731 if test "${enable_silent_rules+set}" = set; then :
2732 enableval=$enable_silent_rules;
2735 case $enable_silent_rules in # (((
2736 yes) AM_DEFAULT_VERBOSITY=0;;
2737 no) AM_DEFAULT_VERBOSITY=1;;
2738 *) AM_DEFAULT_VERBOSITY=0;;
2740 am_make=${MAKE-make}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2742 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2743 if ${am_cv_make_support_nested_variables+:} false; then :
2744 $as_echo_n "(cached) " >&6
2746 if $as_echo 'TRUE=$(BAR$(V))
2752 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2753 am_cv_make_support_nested_variables=yes
2755 am_cv_make_support_nested_variables=no
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2759 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2760 if test $am_cv_make_support_nested_variables = yes; then
2762 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2764 AM_V=$AM_DEFAULT_VERBOSITY
2765 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2769 am__api_version='1.15'
2771 # Find a good install program. We prefer a C program (faster),
2772 # so one script is as good as another. But avoid the broken or
2773 # incompatible versions:
2774 # SysV /etc/install, /usr/sbin/install
2775 # SunOS /usr/etc/install
2776 # IRIX /sbin/install
2778 # AmigaOS /C/install, which installs bootblocks on floppy discs
2779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2782 # OS/2's system install, which has a completely different semantic
2783 # ./install, which can be erroneously created by make from ./install.sh.
2784 # Reject install programs that cannot install multiple files.
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2786 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2787 if test -z "$INSTALL"; then
2788 if ${ac_cv_path_install+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 # Account for people who put trailing slashes in PATH elements.
2797 case $as_dir/ in #((
2798 ./ | .// | /[cC]/* | \
2799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2800 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803 # OSF1 and SCO ODT 3.0 have their own names for install.
2804 # Don't use installbsd from OSF since it installs stuff as root
2806 for ac_prog in ginstall scoinst install; do
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2809 if test $ac_prog = install &&
2810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # AIX install. It has an incompatible calling convention.
2813 elif test $ac_prog = install &&
2814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # program-specific install script used by HP pwplus--don't use.
2818 rm -rf conftest.one conftest.two conftest.dir
2819 echo one > conftest.one
2820 echo two > conftest.two
2822 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2823 test -s conftest.one && test -s conftest.two &&
2824 test -s conftest.dir/conftest.one &&
2825 test -s conftest.dir/conftest.two
2827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2840 rm -rf conftest.one conftest.two conftest.dir
2843 if test "${ac_cv_path_install+set}" = set; then
2844 INSTALL=$ac_cv_path_install
2846 # As a last resort, use the slow shell script. Don't cache a
2847 # value for INSTALL within a source directory, because that will
2848 # break other packages using the cache if that directory is
2849 # removed, or if the value is a relative name.
2850 INSTALL=$ac_install_sh
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2854 $as_echo "$INSTALL" >&6; }
2856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2857 # It thinks the first close brace ends the variable substitution.
2858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2865 $as_echo_n "checking whether build environment is sane... " >&6; }
2866 # Reject unsafe characters in $srcdir or the absolute working directory
2867 # name. Accept space and tab only in the latter.
2871 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2875 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2879 # Do 'set' in a subshell so we don't clobber the current shell's
2880 # arguments. Must try -L first in case configure is actually a
2881 # symlink; some systems play weird games with the mod time of symlinks
2882 # (eg FreeBSD returns the mod time of the symlink's containing
2886 for am_try
in 1 2; do
2887 echo "timestamp, slept: $am_has_slept" > conftest.
file
2888 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2889 if test "$*" = "X"; then
2891 set X
`ls -t "$srcdir/configure" conftest.file`
2893 if test "$*" != "X $srcdir/configure conftest.file" \
2894 && test "$*" != "X conftest.file $srcdir/configure"; then
2896 # If neither matched, then we have a broken ls. This can happen
2897 # if, for instance, CONFIG_SHELL is bash and it inherits a
2898 # broken ls alias from the environment. This has actually
2899 # happened. Such a system could not be considered "sane".
2900 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2901 alias in your environment" "$LINENO" 5
2903 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2910 test "$2" = conftest.
file
2916 as_fn_error $?
"newly created file is older than distributed files!
2917 Check your system clock" "$LINENO" 5
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920 $as_echo "yes" >&6; }
2921 # If we didn't sleep, we still need to ensure time stamps of config.status and
2922 # generated files are strictly newer.
2924 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2931 test "$program_prefix" != NONE
&&
2932 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2933 # Use a double $ so make ignores it.
2934 test "$program_suffix" != NONE
&&
2935 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2936 # Double any \ or $.
2937 # By default was `s,x,x', remove it if useless.
2938 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2939 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2941 # Expand $ac_aux_dir to an absolute path.
2942 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2944 if test x
"${MISSING+set}" != xset
; then
2947 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2949 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2952 # Use eval to expand $SHELL
2953 if eval "$MISSING --is-lightweight"; then
2954 am_missing_run
="$MISSING "
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2958 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2961 if test x
"${install_sh+set}" != xset
; then
2964 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2966 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2970 # Installed binaries are usually stripped using 'strip' when the user
2971 # run "make install-strip". However 'strip' might not be the right
2972 # tool to use in cross-compilation environments, therefore Automake
2973 # will honor the 'STRIP' environment variable to overrule this program.
2974 if test "$cross_compiling" != no
; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2977 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_STRIP+:} false
; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$STRIP"; then
2984 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir
=.
2991 for ac_exec_ext
in '' $ac_executable_extensions; do
2992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 STRIP
=$ac_cv_prog_STRIP
3004 if test -n "$STRIP"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3006 $as_echo "$STRIP" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3014 if test -z "$ac_cv_prog_STRIP"; then
3016 # Extract the first word of "strip", so it can be a program name with args.
3017 set dummy strip
; ac_word
=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$ac_ct_STRIP"; then
3024 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir
=.
3031 for ac_exec_ext
in '' $ac_executable_extensions; do
3032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_STRIP
="strip"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3044 if test -n "$ac_ct_STRIP"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3046 $as_echo "$ac_ct_STRIP" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3052 if test "x$ac_ct_STRIP" = x
; then
3055 case $cross_compiling:$ac_tool_warned in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned
=yes ;;
3064 STRIP
="$ac_cv_prog_STRIP"
3068 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3071 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3072 if test -z "$MKDIR_P"; then
3073 if ${ac_cv_path_mkdir+:} false
; then :
3074 $as_echo_n "(cached) " >&6
3076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3080 test -z "$as_dir" && as_dir
=.
3081 for ac_prog
in mkdir gmkdir
; do
3082 for ac_exec_ext
in '' $ac_executable_extensions; do
3083 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3084 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3085 'mkdir (GNU coreutils) '* | \
3086 'mkdir (coreutils) '* | \
3087 'mkdir (fileutils) '4.1*)
3088 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3098 test -d .
/--version && rmdir .
/--version
3099 if test "${ac_cv_path_mkdir+set}" = set; then
3100 MKDIR_P
="$ac_cv_path_mkdir -p"
3102 # As a last resort, use the slow shell script. Don't cache a
3103 # value for MKDIR_P within a source directory, because that will
3104 # break other packages using the cache if that directory is
3105 # removed, or if the value is a relative name.
3106 MKDIR_P
="$ac_install_sh -d"
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3110 $as_echo "$MKDIR_P" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3115 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3116 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3117 $as_echo_n "(cached) " >&6
3119 cat >conftest.
make <<\_ACEOF
3122 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3124 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3125 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3127 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3129 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3133 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 SET_MAKE
="MAKE=${MAKE-make}"
3143 rm -rf .tst
2>/dev
/null
3144 mkdir .tst
2>/dev
/null
3145 if test -d .tst
; then
3150 rmdir .tst
2>/dev
/null
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc
=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status
; then
3158 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3165 CYGPATH_W
='cygpath -w'
3172 # Define the identity of the package.
3177 cat >>confdefs.h
<<_ACEOF
3178 #define PACKAGE "$PACKAGE"
3182 cat >>confdefs.h
<<_ACEOF
3183 #define VERSION "$VERSION"
3186 # Some tools Automake needs.
3188 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3191 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3194 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3197 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3200 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3202 # For better backward compatibility. To be removed once Automake 1.9.x
3203 # dies out for good. For more background, see:
3204 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3205 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3206 mkdir_p
='$(MKDIR_P)'
3208 # We need awk for the "check" target (and possibly the TAP driver). The
3209 # system "awk" is bad on some platforms.
3210 # Always define AMTAR for backward compatibility. Yes, it's still used
3211 # in the wild :-( We should find a proper way to deprecate it ...
3215 # We'll loop over all known methods to create a tar archive until one works.
3216 _am_tools
='gnutar pax cpio none'
3218 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3225 # POSIX will say in a future version that running "rm -f" with no argument
3226 # is OK; and we want to be able to make that assumption in our Makefile
3227 # recipes. So use an aggressive probe to check that the usage we want is
3228 # actually supported "in the wild" to an acceptable degree.
3229 # See automake bug#10828.
3230 # To make any issue more visible, cause the running configure to be aborted
3231 # by default if the 'rm' program in use doesn't match our expectations; the
3232 # user can still override this though.
3233 if rm -f && rm -fr && rm -rf; then : OK
; else
3237 Your 'rm' program seems unable to run without file operands specified
3238 on the command line, even when the '-f' option is present. This is contrary
3239 to the behaviour of most rm programs out there, and not conforming with
3240 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3242 Please tell bug-automake@gnu.org about your system, including the value
3243 of your $PATH and any error possibly output before this message. This
3244 can help us improve future automake versions.
3247 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3248 echo 'Configuration will proceed anyway, since you have set the' >&2
3249 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3253 Aborting the configuration process, to ensure you take notice of the issue.
3255 You can download and install GNU coreutils to get an 'rm' implementation
3256 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3258 If you want to complete the configuration process using your problematic
3259 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3260 to "yes", and re-run configure.
3263 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3267 ac_config_headers
="$ac_config_headers zfs_config.h"
3272 ac_cpp
='$CPP $CPPFLAGS'
3273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false
; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC
="$CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3315 if test -z "$ac_cv_prog_CC"; then
3317 # Extract the first word of "gcc", so it can be a program name with args.
3318 set dummy gcc
; ac_word
=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC
="gcc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3353 if test "x$ac_ct_CC" = x
; then
3356 case $cross_compiling:$ac_tool_warned in
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360 ac_tool_warned
=yes ;;
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false
; then :
3375 $as_echo_n "(cached) " >&6
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc
; ac_word
=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false
; then :
3415 $as_echo_n "(cached) " >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC
="$CC" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected
=yes
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy
$ac_cv_prog_CC
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3449 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog
in cl.exe
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false
; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3506 test -n "$CC" && break
3509 if test -z "$CC"; then
3511 for ac_prog
in cl.exe
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy
$ac_prog; ac_word
=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC
="$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3550 test -n "$ac_ct_CC" && break
3553 if test "x$ac_ct_CC" = x
; then
3556 case $cross_compiling:$ac_tool_warned in
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned
=yes ;;
3569 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $?
"no acceptable C compiler found in \$PATH
3572 See \`config.log' for more details" "$LINENO" 5; }
3574 # Provide some information about the compiler.
3575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3578 for ac_option
in --version -v -V -qversion; do
3579 { { ac_try
="$ac_compiler $ac_option >&5"
3581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3588 if test -s conftest.err; then
3590 ... rest of stderr output deleted ...
3591 10q' conftest.err >conftest.er1
3592 cat conftest.er1 >&5
3594 rm -f conftest.er1 conftest.err
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 ac_clean_files_save=$ac_clean_files
3611 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3612 # Try to create an executable without -o first, disregard a.out.
3613 # It will help us diagnose broken compilers, and finding out an intuition
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3616 $as_echo_n "checking whether the C compiler works... " >&6; }
3617 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3619 # The possible output files:
3620 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3623 for ac_file in $ac_files
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3632 if { { ac_try="$ac_link_default"
3634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3635 *) ac_try_echo
=$ac_try;;
3637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link_default") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3644 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3645 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3646 # so that the user can short-circuit this test for compilers unknown to
3648 for ac_file
in $ac_files ''
3650 test -f "$ac_file" ||
continue
3652 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3655 # We found the default executable, but exeext='' is most
3659 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3661 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 # We set ac_cv_exeext here because the later test for it is not
3664 # safe: cross compilers may not add the suffix if given an `-o'
3665 # argument, so we may need to know it at that point already.
3666 # Even if this section looks crufty: it has the advantage of
3673 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3678 if test -z "$ac_file"; then :
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error
77 "C compiler cannot create executables
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 $as_echo "yes" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3693 $as_echo_n "checking for C compiler default output file name... " >&6; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3695 $as_echo "$ac_file" >&6; }
3696 ac_exeext
=$ac_cv_exeext
3698 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3699 ac_clean_files
=$ac_clean_files_save
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3701 $as_echo_n "checking for suffix of executables... " >&6; }
3702 if { { ac_try
="$ac_link"
3704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_link") 2>&5
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3714 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3715 # work properly (i.e., refer to `conftest.exe'), while it won't with
3717 for ac_file
in conftest.exe conftest conftest.
*; do
3718 test -f "$ac_file" ||
continue
3720 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3721 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3730 See \`config.log' for more details" "$LINENO" 5; }
3732 rm -f conftest conftest
$ac_cv_exeext
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3734 $as_echo "$ac_cv_exeext" >&6; }
3736 rm -f conftest.
$ac_ext
3737 EXEEXT
=$ac_cv_exeext
3739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3745 FILE *f = fopen ("conftest.out", "w");
3746 return ferror (f) || fclose (f) != 0;
3752 ac_clean_files
="$ac_clean_files conftest.out"
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3756 $as_echo_n "checking whether we are cross compiling... " >&6; }
3757 if test "$cross_compiling" != yes; then
3758 { { ac_try
="$ac_link"
3760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_link") 2>&5
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }
3769 if { ac_try='./conftest$ac_cv_exeext'
3770 { { case "(($ac_try" in
3771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3772 *) ac_try_echo
=$ac_try;;
3774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_try") 2>&5
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; }; then
3782 if test "$cross_compiling" = maybe
; then
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $?
"cannot run C compiled programs.
3788 If you meant to cross compile, use \`--host'.
3789 See \`config.log' for more details" "$LINENO" 5; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3794 $as_echo "$cross_compiling" >&6; }
3796 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3797 ac_clean_files
=$ac_clean_files_save
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3799 $as_echo_n "checking for suffix of object files... " >&6; }
3800 if ${ac_cv_objext+:} false
; then :
3801 $as_echo_n "(cached) " >&6
3803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3814 rm -f conftest.o conftest.obj
3815 if { { ac_try
="$ac_compile"
3817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compile") 2>&5
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 for ac_file in conftest.o conftest.obj conftest.*; do
3827 test -f "$ac_file" || continue;
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3841 See \
`config.log' for more details" "$LINENO" 5; }
3843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3846 $as_echo "$ac_cv_objext" >&6; }
3847 OBJEXT=$ac_cv_objext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3850 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3851 if ${ac_cv_c_compiler_gnu+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3868 if ac_fn_c_try_compile "$LINENO"; then :
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3878 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3879 if test $ac_compiler_gnu = yes; then
3884 ac_test_CFLAGS=${CFLAGS+set}
3885 ac_save_CFLAGS=$CFLAGS
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3887 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3888 if ${ac_cv_prog_cc_g+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 ac_save_c_werror_flag=$ac_c_werror_flag
3892 ac_c_werror_flag=yes
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 if ac_fn_c_try_compile "$LINENO"; then :
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3937 if ac_fn_c_try_compile "$LINENO"; then :
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 ac_c_werror_flag=$ac_save_c_werror_flag
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3948 $as_echo "$ac_cv_prog_cc_g" >&6; }
3949 if test "$ac_test_CFLAGS" = set; then
3950 CFLAGS=$ac_save_CFLAGS
3951 elif test $ac_cv_prog_cc_g = yes; then
3952 if test "$GCC" = yes; then
3958 if test "$GCC" = yes; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3965 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3966 if ${ac_cv_prog_cc_c89+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 ac_cv_prog_cc_c89=no
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3977 struct buf { int x; };
3978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3979 static char *e (p, i)
3985 static char *f (char * (*g) (char **, int), char **p, ...)
3990 s = g (p, va_arg (v,int));
3995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3996 function prototypes and stuff, but not '\xHH' hex character constants.
3997 These don't provoke an error unfortunately, instead are silently treated
3998 as 'x'. The following induces an error, until -std is added to get
3999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4000 array size at least. It's necessary to write '\x00'==0 to get something
4001 that's true only with -std. */
4002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4005 inside strings and character constants. */
4007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4009 int test (int i, double x);
4010 struct s1 {int (*f) (int a);};
4011 struct s2 {int (*f) (double a);};
4012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4026 CC="$ac_save_CC $ac_arg"
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_prog_cc_c89=$ac_arg
4030 rm -f core conftest.err conftest.$ac_objext
4031 test "x$ac_cv_prog_cc_c89" != "xno" && break
4033 rm -f conftest.$ac_ext
4038 case "x$ac_cv_prog_cc_c89" in
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;;
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4044 $as_echo "unsupported" >&6; } ;;
4046 CC="$CC $ac_cv_prog_cc_c89"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4048 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4050 if test "x$ac_cv_prog_cc_c89" != xno; then :
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4066 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4067 if ${am_cv_prog_cc_c_o+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4081 # Make sure it works both with $CC and with simple cc.
4082 # Following AC_PROG_CC_C_O, we do the test twice because some
4083 # compilers refuse to overwrite an existing .o file with -o,
4084 # though they will create one.
4085 am_cv_prog_cc_c_o=yes
4087 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4088 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } \
4092 && test -f conftest2.$ac_objext; then
4095 am_cv_prog_cc_c_o=no
4099 rm -f core conftest*
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4103 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4104 if test "$am_cv_prog_cc_c_o" != yes; then
4105 # Losing compiler, so override with the script.
4106 # FIXME: It is wrong to rewrite CC.
4107 # But if we don't then we get into trouble of one sort or another.
4108 # A longer-term fix would be to have automake use am__CC in this case,
4109 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4110 CC="$am_aux_dir/compile $CC"
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 DEPDIR="${am__leading_dot}deps"
4120 ac_config_commands="$ac_config_commands depfiles"
4123 am_make=${MAKE-make}
4124 cat > confinc << 'END'
4126 @echo this is the am__doit target
4129 # If we don't find an include directive, just comment out the code.
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4131 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4135 # First try GNU make style include.
4136 echo "include confinc" > confmf
4137 # Ignore all kinds of additional output from 'make'.
4138 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4139 *the\ am__doit\ target*)
4145 # Now try BSD make style include.
4146 if test "$am__include" = "#"; then
4147 echo '.include "confinc"' > confmf
4148 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4149 *the\ am__doit\ target*)
4150 am__include=.include
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4159 $as_echo "$_am_result" >&6; }
4160 rm -f confinc confmf
4162 # Check whether --enable-dependency-tracking was given.
4163 if test "${enable_dependency_tracking+set}" = set; then :
4164 enableval=$enable_dependency_tracking;
4167 if test "x$enable_dependency_tracking" != xno; then
4168 am_depcomp="$ac_aux_dir/depcomp"
4172 if test "x$enable_dependency_tracking" != xno; then
4182 depcc="$CC" am_compiler_list=
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4185 $as_echo_n "checking dependency style of $depcc... " >&6; }
4186 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4190 # We make a subdir and do the tests there. Otherwise we can end up
4191 # making bogus files that we don't know about and never remove. For
4192 # instance it was reported that on HP-UX the gcc test will end up
4193 # making a dummy file named 'D' -- because '-MD' means "put the output
4197 # Copy depcomp to subdir because otherwise we won't find it if we're
4198 # using a relative directory.
4199 cp "$am_depcomp" conftest.dir
4201 # We will build objects and dependencies in a subdirectory because
4202 # it helps to detect inapplicable dependency modes. For instance
4203 # both Tru64's cc and ICC support -MD to output dependencies as a
4204 # side effect of compilation, but ICC will put the dependencies in
4205 # the current directory while Tru64 will put them in the object
4209 am_cv_CC_dependencies_compiler_type=none
4210 if test "$am_compiler_list" = ""; then
4211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4214 case " $depcc " in #(
4215 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4218 for depmode in $am_compiler_list; do
4219 # Setup a source with many dependencies, because some compilers
4220 # like to wrap large dependency lists on column 80 (with \), and
4221 # we should not choose a depcomp mode which is confused by this.
4223 # We need to recreate these files for each test, as the compiler may
4224 # overwrite some of them when testing with obscure command lines.
4225 # This happens at least with the AIX C compiler.
4227 for i in 1 2 3 4 5 6; do
4228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4230 # Solaris 10 /bin/sh.
4231 echo '/* dummy */' > sub/conftst$i.h
4233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4236 # mode. It turns out that the SunPro C++ compiler does not properly
4237 # handle '-M -o', and we need to detect this. Also, some Intel
4238 # versions had trouble with output in subdirs.
4239 am__obj=sub/conftest.${OBJEXT-o}
4240 am__minus_obj="-o $am__obj"
4243 # This depmode causes a compiler race in universal mode.
4244 test "$am__universal" = false || continue
4247 # After this tag, mechanisms are not by side-effect, so they'll
4248 # only be used when explicitly requested.
4249 if test "x$enable_dependency_tracking" = xyes; then
4255 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4256 # This compiler won't grok '-c -o', but also, the minuso test has
4257 # not run yet. These depmodes are late enough in the game, and
4258 # so weak that their functioning should not be impacted.
4259 am__obj=conftest.${OBJEXT-o}
4264 if depmode=$depmode \
4265 source=sub/conftest.c object=$am__obj \
4266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268 >/dev/null 2>conftest.err &&
4269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273 # icc doesn't choke on unknown options, it will just issue warnings
4274 # or remarks (even with -Werror). So we grep stderr for any message
4275 # that says an option was ignored or not supported.
4276 # When given -MP, icc 7.0 and 7.1 complain thusly:
4277 # icc: Command line warning: ignoring option '-M'; no argument required
4278 # The diagnosis changed in icc 8.0:
4279 # icc: Command line remark: option '-MP' not supported
4280 if (grep 'ignoring option' conftest.err ||
4281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282 am_cv_CC_dependencies_compiler_type=$depmode
4291 am_cv_CC_dependencies_compiler_type=none
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4296 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4297 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4300 test "x$enable_dependency_tracking" != xno \
4301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4303 am__fastdepCC_FALSE='#'
4305 am__fastdepCC_TRUE='#'
4306 am__fastdepCC_FALSE=
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4313 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4318 macro_version='2.4.6'
4319 macro_revision='2.4.6'
4333 ltmain=$ac_aux_dir/ltmain.sh
4335 # Backslashify metacharacters that are still active within
4336 # double-quoted strings.
4337 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4339 # Same as above, but do not quote variable references.
4340 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4342 # Sed substitution to delay expansion of an escaped shell variable in a
4343 # double_quote_subst'ed string.
4344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4346 # Sed substitution to delay expansion of an escaped single quote.
4347 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4349 # Sed substitution to avoid accidental globbing in evaled expressions
4350 no_glob_subst='s/\*/\\\*/g'
4352 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4357 $as_echo_n "checking how to print
strings...
" >&6; }
4358 # Test print first, because it will be a builtin if present.
4359 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4360 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4362 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4365 # Use this function as a fallback that always works.
4366 func_fallback_echo ()
4368 eval 'cat <<_LTECHO_EOF
4372 ECHO='func_fallback_echo'
4375 # func_echo_all arg...
4376 # Invoke $ECHO with all args, space-separated.
4383 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4384 $as_echo "printf" >&6; } ;;
4385 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4386 $as_echo "print
-r" >&6; } ;;
4387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4388 $as_echo "cat" >&6; } ;;
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4405 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4406 if ${ac_cv_path_SED+:} false; then :
4407 $as_echo_n "(cached
) " >&6
4409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4410 for ac_i in 1 2 3 4 5 6 7; do
4411 ac_script="$ac_script$as_nl$ac_script"
4413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4414 { ac_script=; unset ac_script;}
4415 if test -z "$SED"; then
4416 ac_path_SED_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in sed gsed; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4426 as_fn_executable_p "$ac_path_SED" || continue
4427 # Check for GNU ac_path_SED and select it if it is found.
4428 # Check for GNU $ac_path_SED
4429 case `"$ac_path_SED" --version 2>&1` in
4431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4434 $as_echo_n 0123456789 >"conftest.
in"
4437 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4438 mv "conftest.tmp
" "conftest.
in"
4439 cp "conftest.
in" "conftest.
nl"
4440 $as_echo '' >> "conftest.
nl"
4441 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4442 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_SED_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_SED="$ac_path_SED"
4447 ac_path_SED_max=$ac_count
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 $ac_path_SED_found && break 3
4460 if test -z "$ac_cv_path_SED"; then
4461 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4469 $as_echo "$ac_cv_path_SED" >&6; }
4470 SED="$ac_cv_path_SED"
4473 test -z "$SED" && SED=sed
4474 Xsed="$SED -e 1s
/^X
//"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4487 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4488 if ${ac_cv_path_GREP+:} false; then :
4489 $as_echo_n "(cached
) " >&6
4491 if test -z "$GREP"; then
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 as_fn_executable_p "$ac_path_GREP" || continue
4503 # Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505 case `"$ac_path_GREP" --version 2>&1` in
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 $as_echo_n 0123456789 >"conftest.
in"
4513 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4514 mv "conftest.tmp
" "conftest.
in"
4515 cp "conftest.
in" "conftest.
nl"
4516 $as_echo 'GREP' >> "conftest.
nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4518 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4519 as_fn_arith $ac_count + 1 && ac_count=$as_val
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 $ac_path_GREP_found && break 3
4536 if test -z "$ac_cv_path_GREP"; then
4537 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4540 ac_cv_path_GREP=$GREP
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4545 $as_echo "$ac_cv_path_GREP" >&6; }
4546 GREP="$ac_cv_path_GREP"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4550 $as_echo_n "checking
for egrep...
" >&6; }
4551 if ${ac_cv_path_EGREP+:} false; then :
4552 $as_echo_n "(cached
) " >&6
4554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4555 then ac_cv_path_EGREP="$GREP -E"
4557 if test -z "$EGREP"; then
4558 ac_path_EGREP_found=false
4559 # Loop through the user's path and test for each of PROGNAME-LIST
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564 test -z "$as_dir" && as_dir=.
4565 for ac_prog in egrep; do
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4568 as_fn_executable_p "$ac_path_EGREP" || continue
4569 # Check for GNU ac_path_EGREP and select it if it is found.
4570 # Check for GNU $ac_path_EGREP
4571 case `"$ac_path_EGREP" --version 2>&1` in
4573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576 $as_echo_n 0123456789 >"conftest.
in"
4579 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4580 mv "conftest.tmp
" "conftest.
in"
4581 cp "conftest.
in" "conftest.
nl"
4582 $as_echo 'EGREP' >> "conftest.
nl"
4583 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4584 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4585 as_fn_arith $ac_count + 1 && ac_count=$as_val
4586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4587 # Best one so far, save it but keep looking for a better one
4588 ac_cv_path_EGREP="$ac_path_EGREP"
4589 ac_path_EGREP_max=$ac_count
4591 # 10*(2^10) chars as input seems more than enough
4592 test $ac_count -gt 10 && break
4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 $ac_path_EGREP_found && break 3
4602 if test -z "$ac_cv_path_EGREP"; then
4603 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4606 ac_cv_path_EGREP=$EGREP
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4612 $as_echo "$ac_cv_path_EGREP" >&6; }
4613 EGREP="$ac_cv_path_EGREP"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4617 $as_echo_n "checking
for fgrep...
" >&6; }
4618 if ${ac_cv_path_FGREP+:} false; then :
4619 $as_echo_n "(cached
) " >&6
4621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4622 then ac_cv_path_FGREP="$GREP -F"
4624 if test -z "$FGREP"; then
4625 ac_path_FGREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in fgrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4635 as_fn_executable_p "$ac_path_FGREP" || continue
4636 # Check for GNU ac_path_FGREP and select it if it is found.
4637 # Check for GNU $ac_path_FGREP
4638 case `"$ac_path_FGREP" --version 2>&1` in
4640 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4643 $as_echo_n 0123456789 >"conftest.
in"
4646 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4647 mv "conftest.tmp
" "conftest.
in"
4648 cp "conftest.
in" "conftest.
nl"
4649 $as_echo 'FGREP' >> "conftest.
nl"
4650 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4651 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_FGREP="$ac_path_FGREP"
4656 ac_path_FGREP_max=$ac_count
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 $ac_path_FGREP_found && break 3
4669 if test -z "$ac_cv_path_FGREP"; then
4670 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4673 ac_cv_path_FGREP=$FGREP
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4679 $as_echo "$ac_cv_path_FGREP" >&6; }
4680 FGREP="$ac_cv_path_FGREP"
4683 test -z "$GREP" && GREP=grep
4703 # Check whether --with-gnu-ld was given.
4704 if test "${with_gnu_ld+set}" = set; then :
4705 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4711 if test yes = "$GCC"; then
4712 # Check if gcc -print-prog-name=ld gives a path.
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4714 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4717 # gcc leaves a trailing carriage return, which upsets mingw
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4723 # Accept absolute paths.
4725 re_direlt='/[^/][^/]*/\.\./'
4726 # Canonicalize the pathname of ld
4727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4729 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4731 test -z "$LD" && LD=$ac_prog
4734 # If it fails, then pretend we aren't using GCC.
4738 # If it is relative, then search for the first ld in PATH.
4742 elif test yes = "$with_gnu_ld"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4744 $as_echo_n "checking
for GNU ld...
" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4747 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4749 if ${lt_cv_path_LD+:} false; then :
4750 $as_echo_n "(cached
) " >&6
4752 if test -z "$LD"; then
4753 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4754 for ac_dir in $PATH; do
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4758 lt_cv_path_LD=$ac_dir/$ac_prog
4759 # Check to see if the program is GNU ld. I'd rather use --version,
4760 # but apparently some variants of GNU ld only accept -v.
4761 # Break only if it was the GNU/non-GNU ld that we prefer.
4762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
4764 test no != "$with_gnu_ld" && break
4767 test yes != "$with_gnu_ld" && break
4774 lt_cv_path_LD=$LD # Let the user override the test with a path.
4779 if test -n "$LD"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4781 $as_echo "$LD" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4784 $as_echo "no
" >&6; }
4786 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4788 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4789 if ${lt_cv_prog_gnu_ld+:} false; then :
4790 $as_echo_n "(cached
) " >&6
4792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793 case `$LD -v 2>&1 </dev/null` in
4794 *GNU* | *'with BFD'*)
4795 lt_cv_prog_gnu_ld=yes
4798 lt_cv_prog_gnu_ld=no
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4804 with_gnu_ld=$lt_cv_prog_gnu_ld
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4815 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4816 if ${lt_cv_path_NM+:} false; then :
4817 $as_echo_n "(cached
) " >&6
4819 if test -n "$NM"; then
4820 # Let the user override the test.
4823 lt_nm_to_check=${ac_tool_prefix}nm
4824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4825 lt_nm_to_check="$lt_nm_to_check nm
"
4827 for lt_tmp_nm in $lt_nm_to_check; do
4828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4831 test -z "$ac_dir" && ac_dir=.
4832 tmp_nm=$ac_dir/$lt_tmp_nm
4833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4834 # Check to see if the nm accepts a BSD-compat flag.
4835 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4836 # nm: unknown option "B
" ignored
4837 # Tru64's nm complains that /dev/null is an invalid object file
4838 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4840 mingw*) lt_bad_file=conftest.nm/nofile ;;
4841 *) lt_bad_file=/dev/null ;;
4843 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4844 *$lt_bad_file* | *'Invalid file or object type'*)
4845 lt_cv_path_NM="$tmp_nm -B"
4849 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4851 lt_cv_path_NM="$tmp_nm -p"
4855 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4856 continue # so that we can try to find one that supports BSD flags
4865 : ${lt_cv_path_NM=no}
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4869 $as_echo "$lt_cv_path_NM" >&6; }
4870 if test no != "$lt_cv_path_NM"; then
4873 # Didn't find any BSD compatible name lister, look for dumpbin.
4874 if test -n "$DUMPBIN"; then :
4875 # Let the user override the test.
4877 if test -n "$ac_tool_prefix"; then
4878 for ac_prog in dumpbin "link
-dump"
4880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4883 $as_echo_n "checking
for $ac_word...
" >&6; }
4884 if ${ac_cv_prog_DUMPBIN+:} false; then :
4885 $as_echo_n "(cached
) " >&6
4887 if test -n "$DUMPBIN"; then
4888 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4907 DUMPBIN=$ac_cv_prog_DUMPBIN
4908 if test -n "$DUMPBIN"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4910 $as_echo "$DUMPBIN" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4913 $as_echo "no
" >&6; }
4917 test -n "$DUMPBIN" && break
4920 if test -z "$DUMPBIN"; then
4921 ac_ct_DUMPBIN=$DUMPBIN
4922 for ac_prog in dumpbin "link
-dump"
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4927 $as_echo_n "checking
for $ac_word...
" >&6; }
4928 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4929 $as_echo_n "(cached
) " >&6
4931 if test -n "$ac_ct_DUMPBIN"; then
4932 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4951 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4952 if test -n "$ac_ct_DUMPBIN"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4954 $as_echo "$ac_ct_DUMPBIN" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4957 $as_echo "no
" >&6; }
4961 test -n "$ac_ct_DUMPBIN" && break
4964 if test "x
$ac_ct_DUMPBIN" = x; then
4967 case $cross_compiling:$ac_tool_warned in
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4970 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4971 ac_tool_warned=yes ;;
4973 DUMPBIN=$ac_ct_DUMPBIN
4977 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4979 DUMPBIN="$DUMPBIN -symbols -headers"
4987 if test : != "$DUMPBIN"; then
4991 test -z "$NM" && NM=nm
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
4999 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5000 if ${lt_cv_nm_interface+:} false; then :
5001 $as_echo_n "(cached
) " >&6
5003 lt_cv_nm_interface="BSD nm
"
5004 echo "int some_variable
= 0;" > conftest.$ac_ext
5005 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5006 (eval "$ac_compile" 2>conftest.err)
5007 cat conftest.err >&5
5008 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5009 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5010 cat conftest.err >&5
5011 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5012 cat conftest.out >&5
5013 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5014 lt_cv_nm_interface="MS dumpbin
"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5019 $as_echo "$lt_cv_nm_interface" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5022 $as_echo_n "checking whether
ln -s works...
" >&6; }
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5029 $as_echo "no
, using
$LN_S" >&6; }
5032 # find the maximum length of command line arguments
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5034 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5035 if ${lt_cv_sys_max_cmd_len+:} false; then :
5036 $as_echo_n "(cached
) " >&6
5043 # On DJGPP, this test can blow up pretty badly due to problems in libc
5044 # (any single argument exceeding 2000 bytes causes a buffer overrun
5045 # during glob expansion). Even if it were fixed, the result of this
5046 # check would be larger than it should be.
5047 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5051 # Under GNU Hurd, this test is not required because there is
5052 # no limit to the length of command line arguments.
5053 # Libtool will interpret -1 as no limit whatsoever
5054 lt_cv_sys_max_cmd_len=-1;
5057 cygwin* | mingw* | cegcc*)
5058 # On Win9x/ME, this test blows up -- it succeeds, but takes
5059 # about 5 minutes as the teststring grows exponentially.
5060 # Worse, since 9x/ME are not pre-emptively multitasking,
5061 # you end up with a "frozen
" computer, even though with patience
5062 # the test eventually succeeds (with a max line length of 256k).
5063 # Instead, let's just punt: use the minimum linelength reported by
5064 # all of the supported platforms: 8192 (on NT/2K/XP).
5065 lt_cv_sys_max_cmd_len=8192;
5069 # On MiNT this can take a long time and run out of memory.
5070 lt_cv_sys_max_cmd_len=8192;
5074 # On AmigaOS with pdksh, this test takes hours, literally.
5075 # So we just punt and use a minimum line length of 8192.
5076 lt_cv_sys_max_cmd_len=8192;
5079 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5080 # This has been around since 386BSD, at least. Likely further.
5081 if test -x /sbin/sysctl; then
5082 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5083 elif test -x /usr/sbin/sysctl; then
5084 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5086 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5088 # And add a safety zone
5089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5094 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5095 lt_cv_sys_max_cmd_len=196608
5099 # The test takes a long time on OS/2.
5100 lt_cv_sys_max_cmd_len=8192
5104 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5105 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5106 # nice to cause kernel panics so lets avoid the loop below.
5107 # First set a reasonable default.
5108 lt_cv_sys_max_cmd_len=16384
5110 if test -x /sbin/sysconfig; then
5111 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5112 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5117 lt_cv_sys_max_cmd_len=102400
5119 sysv5* | sco5v6* | sysv4.2uw2*)
5120 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5121 if test -n "$kargmax"; then
5122 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5124 lt_cv_sys_max_cmd_len=32768
5128 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5129 if test -n "$lt_cv_sys_max_cmd_len" && \
5130 test undefined != "$lt_cv_sys_max_cmd_len"; then
5131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5134 # Make teststring a little bigger before we do anything with it.
5135 # a 1K string should be a reasonable start.
5136 for i in 1 2 3 4 5 6 7 8; do
5137 teststring=$teststring$teststring
5139 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5140 # If test is not a shell built-in, we'll probably end up computing a
5141 # maximum length that is only half of the actual maximum length, but
5143 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5144 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5145 test 17 != "$i" # 1/2 MB should be enough
5148 teststring=$teststring$teststring
5150 # Only check the string length outside the loop.
5151 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5153 # Add a significant safety factor because C++ compilers can tack on
5154 # massive amounts of additional arguments before passing them to the
5155 # linker. It appears as though 1/2 is a usable value.
5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5163 if test -n "$lt_cv_sys_max_cmd_len"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5165 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5168 $as_echo "none
" >&6; }
5170 max_cmd_len=$lt_cv_sys_max_cmd_len
5181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5191 # test EBCDIC or ASCII
5192 case `echo X|tr X '\101'` in
5193 A) # ASCII based system
5194 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5195 lt_SP2NL='tr \040 \012'
5196 lt_NL2SP='tr \015\012 \040\040'
5198 *) # EBCDIC based system
5199 lt_SP2NL='tr \100 \n'
5200 lt_NL2SP='tr \r\n \100\100'
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5213 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5214 if ${lt_cv_to_host_file_cmd+:} false; then :
5215 $as_echo_n "(cached
) " >&6
5220 *-*-mingw* ) # actually msys
5221 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5224 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5226 * ) # otherwise, assume *nix
5227 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5233 *-*-mingw* ) # actually msys
5234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5237 lt_cv_to_host_file_cmd=func_convert_file_noop
5239 * ) # otherwise, assume *nix
5240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5244 * ) # unhandled hosts (and "normal
" native builds)
5245 lt_cv_to_host_file_cmd=func_convert_file_noop
5251 to_host_file_cmd=$lt_cv_to_host_file_cmd
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5253 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5260 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5261 if ${lt_cv_to_tool_file_cmd+:} false; then :
5262 $as_echo_n "(cached
) " >&6
5264 #assume ordinary cross tools, or native build.
5265 lt_cv_to_tool_file_cmd=func_convert_file_noop
5269 *-*-mingw* ) # actually msys
5270 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5280 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5287 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5288 if ${lt_cv_ld_reload_flag+:} false; then :
5289 $as_echo_n "(cached
) " >&6
5291 lt_cv_ld_reload_flag='-r'
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5294 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5295 reload_flag=$lt_cv_ld_reload_flag
5296 case $reload_flag in
5298 *) reload_flag=" $reload_flag" ;;
5300 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5302 cygwin* | mingw* | pw32* | cegcc*)
5303 if test yes != "$GCC"; then
5308 if test yes = "$GCC"; then
5309 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5311 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5328 $as_echo_n "checking
for $ac_word...
" >&6; }
5329 if ${ac_cv_prog_OBJDUMP+:} false; then :
5330 $as_echo_n "(cached
) " >&6
5332 if test -n "$OBJDUMP"; then
5333 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5352 OBJDUMP=$ac_cv_prog_OBJDUMP
5353 if test -n "$OBJDUMP"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5355 $as_echo "$OBJDUMP" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5358 $as_echo "no
" >&6; }
5363 if test -z "$ac_cv_prog_OBJDUMP"; then
5364 ac_ct_OBJDUMP=$OBJDUMP
5365 # Extract the first word of "objdump
", so it can be a program name with args.
5366 set dummy objdump; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5368 $as_echo_n "checking
for $ac_word...
" >&6; }
5369 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5370 $as_echo_n "(cached
) " >&6
5372 if test -n "$ac_ct_OBJDUMP"; then
5373 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5392 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5393 if test -n "$ac_ct_OBJDUMP"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5395 $as_echo "$ac_ct_OBJDUMP" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5398 $as_echo "no
" >&6; }
5401 if test "x
$ac_ct_OBJDUMP" = x; then
5404 case $cross_compiling:$ac_tool_warned in
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5407 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5408 ac_tool_warned=yes ;;
5410 OBJDUMP=$ac_ct_OBJDUMP
5413 OBJDUMP="$ac_cv_prog_OBJDUMP"
5416 test -z "$OBJDUMP" && OBJDUMP=objdump
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5427 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5428 if ${lt_cv_deplibs_check_method+:} false; then :
5429 $as_echo_n "(cached
) " >&6
5431 lt_cv_file_magic_cmd='$MAGIC_CMD'
5432 lt_cv_file_magic_test_file=
5433 lt_cv_deplibs_check_method='unknown'
5434 # Need to set the preceding variable on all platforms that support
5435 # interlibrary dependencies.
5436 # 'none' -- dependencies not supported.
5437 # 'unknown' -- same as none, but documents that we really don't know.
5438 # 'pass_all' -- all dependencies passed with no checks.
5439 # 'test_compile' -- check by making test program.
5440 # 'file_magic [[regex]]' -- check by looking for files in library path
5441 # that responds to the $file_magic_cmd with a given extended regex.
5442 # If you have 'file' or equivalent on your system and you're not sure
5443 # whether 'pass_all' will *always* work, you probably want this one.
5447 lt_cv_deplibs_check_method=pass_all
5451 lt_cv_deplibs_check_method=pass_all
5455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5456 lt_cv_file_magic_cmd='/usr/bin/file -L'
5457 lt_cv_file_magic_test_file=/shlib/libc.so
5461 # func_win32_libid is a shell function defined in ltmain.sh
5462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463 lt_cv_file_magic_cmd='func_win32_libid'
5467 # Base MSYS/MinGW do not provide the 'file' command needed by
5468 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5469 # unless we find 'file', for example because we are cross-compiling.
5470 if ( file / ) >/dev/null 2>&1; then
5471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5472 lt_cv_file_magic_cmd='func_win32_libid'
5474 # Keep this pattern in sync with the one in func_win32_libid.
5475 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5476 lt_cv_file_magic_cmd='$OBJDUMP -f'
5481 # use the weaker test based on 'objdump'. See mingw*.
5482 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5483 lt_cv_file_magic_cmd='$OBJDUMP -f'
5486 darwin* | rhapsody*)
5487 lt_cv_deplibs_check_method=pass_all
5490 freebsd* | dragonfly*)
5491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 # Not sure whether the presence of OpenBSD here was a mistake.
5495 # Let's accept both of them until this is cleared up.
5496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5497 lt_cv_file_magic_cmd=/usr/bin/file
5498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5502 lt_cv_deplibs_check_method=pass_all
5507 lt_cv_deplibs_check_method=pass_all
5510 hpux10.20* | hpux11*)
5511 lt_cv_file_magic_cmd=/usr/bin/file
5514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5518 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]'
5519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5533 irix5* | irix6* | nonstopux*)
5535 *-32|*"-32 ") libmagic=32-bit;;
5536 *-n32|*"-n32 ") libmagic=N32;;
5537 *-64|*"-64 ") libmagic=64-bit;;
5538 *) libmagic=never-match;;
5540 lt_cv_deplibs_check_method=pass_all
5543 # This must be glibc/ELF.
5544 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5545 lt_cv_deplibs_check_method=pass_all
5548 netbsd* | netbsdelf*-gnu)
5549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5563 lt_cv_deplibs_check_method=pass_all
5567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5574 osf3* | osf4* | osf5*)
5575 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5583 lt_cv_deplibs_check_method=pass_all
5586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5587 lt_cv_deplibs_check_method=pass_all
5591 case $host_vendor in
5593 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]'
5594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5597 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_file_magic_cmd='/bin/file'
5601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5604 lt_cv_file_magic_cmd='/bin/file'
5605 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5606 lt_cv_file_magic_test_file=/lib/libc.so
5609 lt_cv_deplibs_check_method=pass_all
5612 lt_cv_deplibs_check_method=pass_all
5618 lt_cv_deplibs_check_method=pass_all
5621 lt_cv_deplibs_check_method=pass_all
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5627 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5631 if test "$build" = "$host"; then
5634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5643 file_magic_cmd=$lt_cv_file_magic_cmd
5644 deplibs_check_method=$lt_cv_deplibs_check_method
5645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5668 if test -n "$ac_tool_prefix"; then
5669 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5670 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5672 $as_echo_n "checking
for $ac_word...
" >&6; }
5673 if ${ac_cv_prog_DLLTOOL+:} false; then :
5674 $as_echo_n "(cached
) " >&6
5676 if test -n "$DLLTOOL"; then
5677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5696 DLLTOOL=$ac_cv_prog_DLLTOOL
5697 if test -n "$DLLTOOL"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5699 $as_echo "$DLLTOOL" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5702 $as_echo "no
" >&6; }
5707 if test -z "$ac_cv_prog_DLLTOOL"; then
5708 ac_ct_DLLTOOL=$DLLTOOL
5709 # Extract the first word of "dlltool
", so it can be a program name with args.
5710 set dummy dlltool; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5712 $as_echo_n "checking
for $ac_word...
" >&6; }
5713 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5714 $as_echo_n "(cached
) " >&6
5716 if test -n "$ac_ct_DLLTOOL"; then
5717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5736 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5737 if test -n "$ac_ct_DLLTOOL"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5739 $as_echo "$ac_ct_DLLTOOL" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5742 $as_echo "no
" >&6; }
5745 if test "x
$ac_ct_DLLTOOL" = x; then
5748 case $cross_compiling:$ac_tool_warned in
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5751 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5752 ac_tool_warned=yes ;;
5754 DLLTOOL=$ac_ct_DLLTOOL
5757 DLLTOOL="$ac_cv_prog_DLLTOOL"
5760 test -z "$DLLTOOL" && DLLTOOL=dlltool
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5772 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5773 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5774 $as_echo_n "(cached
) " >&6
5776 lt_cv_sharedlib_from_linklib_cmd='unknown'
5779 cygwin* | mingw* | pw32* | cegcc*)
5780 # two different shell functions defined in ltmain.sh;
5781 # decide which one to use based on capabilities of $DLLTOOL
5782 case `$DLLTOOL --help 2>&1` in
5783 *--identify-strict*)
5784 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5787 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5792 # fallback: assume linklib IS sharedlib
5793 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5799 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5800 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5801 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5810 if test -n "$ac_tool_prefix"; then
5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5816 $as_echo_n "checking
for $ac_word...
" >&6; }
5817 if ${ac_cv_prog_AR+:} false; then :
5818 $as_echo_n "(cached
) " >&6
5820 if test -n "$AR"; then
5821 ac_cv_prog_AR="$AR" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5841 if test -n "$AR"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5843 $as_echo "$AR" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5846 $as_echo "no
" >&6; }
5850 test -n "$AR" && break
5853 if test -z "$AR"; then
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858 set dummy $ac_prog; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5860 $as_echo_n "checking
for $ac_word...
" >&6; }
5861 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5862 $as_echo_n "(cached
) " >&6
5864 if test -n "$ac_ct_AR"; then
5865 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_AR="$ac_prog"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5884 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5885 if test -n "$ac_ct_AR"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5887 $as_echo "$ac_ct_AR" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5890 $as_echo "no
" >&6; }
5894 test -n "$ac_ct_AR" && break
5897 if test "x
$ac_ct_AR" = x; then
5900 case $cross_compiling:$ac_tool_warned in
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5903 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5904 ac_tool_warned=yes ;;
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5924 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5925 if ${lt_cv_ar_at_file+:} false; then :
5926 $as_echo_n "(cached
) " >&6
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941 echo conftest.$ac_objext > conftest.lst
5942 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5943 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5944 (eval $lt_ar_try) 2>&5
5946 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5947 test $ac_status = 0; }
5948 if test 0 -eq "$ac_status"; then
5949 # Ensure the archiver fails upon bogus file names.
5950 rm -f conftest.$ac_objext libconftest.a
5951 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5952 (eval $lt_ar_try) 2>&5
5954 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5955 test $ac_status = 0; }
5956 if test 0 -ne "$ac_status"; then
5960 rm -f conftest.* libconftest.a
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5967 $as_echo "$lt_cv_ar_at_file" >&6; }
5969 if test no = "$lt_cv_ar_at_file"; then
5972 archiver_list_spec=$lt_cv_ar_at_file
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5985 $as_echo_n "checking
for $ac_word...
" >&6; }
5986 if ${ac_cv_prog_STRIP+:} false; then :
5987 $as_echo_n "(cached
) " >&6
5989 if test -n "$STRIP"; then
5990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6009 STRIP=$ac_cv_prog_STRIP
6010 if test -n "$STRIP"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6012 $as_echo "$STRIP" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6015 $as_echo "no
" >&6; }
6020 if test -z "$ac_cv_prog_STRIP"; then
6022 # Extract the first word of "strip
", so it can be a program name with args.
6023 set dummy strip; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6025 $as_echo_n "checking
for $ac_word...
" >&6; }
6026 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6027 $as_echo_n "(cached
) " >&6
6029 if test -n "$ac_ct_STRIP"; then
6030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_ac_ct_STRIP="strip
"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6050 if test -n "$ac_ct_STRIP"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6052 $as_echo "$ac_ct_STRIP" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6055 $as_echo "no
" >&6; }
6058 if test "x
$ac_ct_STRIP" = x; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6064 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6065 ac_tool_warned=yes ;;
6070 STRIP="$ac_cv_prog_STRIP"
6073 test -z "$STRIP" && STRIP=:
6080 if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6084 $as_echo_n "checking
for $ac_word...
" >&6; }
6085 if ${ac_cv_prog_RANLIB+:} false; then :
6086 $as_echo_n "(cached
) " >&6
6088 if test -n "$RANLIB"; then
6089 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6108 RANLIB=$ac_cv_prog_RANLIB
6109 if test -n "$RANLIB"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6111 $as_echo "$RANLIB" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6114 $as_echo "no
" >&6; }
6119 if test -z "$ac_cv_prog_RANLIB"; then
6120 ac_ct_RANLIB=$RANLIB
6121 # Extract the first word of "ranlib
", so it can be a program name with args.
6122 set dummy ranlib; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6124 $as_echo_n "checking
for $ac_word...
" >&6; }
6125 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6126 $as_echo_n "(cached
) " >&6
6128 if test -n "$ac_ct_RANLIB"; then
6129 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6148 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6149 if test -n "$ac_ct_RANLIB"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6151 $as_echo "$ac_ct_RANLIB" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6154 $as_echo "no
" >&6; }
6157 if test "x
$ac_ct_RANLIB" = x; then
6160 case $cross_compiling:$ac_tool_warned in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6163 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6164 ac_tool_warned=yes ;;
6166 RANLIB=$ac_ct_RANLIB
6169 RANLIB="$ac_cv_prog_RANLIB"
6172 test -z "$RANLIB" && RANLIB=:
6179 # Determine commands to create old-style static archives.
6180 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6181 old_postinstall_cmds='chmod 644 $oldlib'
6182 old_postuninstall_cmds=
6184 if test -n "$RANLIB"; then
6187 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6190 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6193 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6198 lock_old_archive_extraction=yes ;;
6200 lock_old_archive_extraction=no ;;
6241 # If no C compiler was specified, use CC.
6244 # If no C compiler flags were specified, use CFLAGS.
6245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6247 # Allow CC to be a program name with arguments.
6251 # Check for command to grab the raw symbol name followed by C symbol from nm.
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6253 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6254 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6255 $as_echo_n "(cached
) " >&6
6258 # These are sane defaults that work on at least a few old systems.
6259 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6261 # Character class describing NM global symbol codes.
6262 symcode='[BCDEGRST]'
6264 # Regexp to match symbols that can be accessed directly from C.
6265 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6267 # Define system-specific variables.
6272 cygwin* | mingw* | pw32* | cegcc*)
6273 symcode='[ABCDGISTW]'
6276 if test ia64 = "$host_cpu"; then
6277 symcode='[ABCDEGRST]'
6281 symcode='[BCDEGRST]'
6284 symcode='[BCDEGQRST]'
6295 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6303 # If we're using GNU nm, then use its standard symbol codes.
6304 case `$NM -V 2>&1` in
6305 *GNU* | *'with BFD'*)
6306 symcode='[ABCDGIRSTW]' ;;
6309 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6310 # Gets list of data symbols to import.
6311 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6312 # Adjust the below global symbol transforms to fixup imported variables.
6313 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6314 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6315 lt_c_name_lib_hook="\
6316 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6317 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6319 # Disable hooks by default.
6320 lt_cv_sys_global_symbol_to_import=
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6331 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6332 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6334 # Transform an extracted symbol line into symbol name and symbol address
6335 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6337 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6338 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6340 # Transform an extracted symbol line into symbol name with lib prefix and
6342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6343 $lt_c_name_lib_hook\
6344 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6345 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6346 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6348 # Handle CRLF in mingw tool chain
6352 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6356 # Try without a prefix underscore, then with it.
6357 for ac_symprfx in "" "_
"; do
6359 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6360 symxfrm="\\1 $ac_symprfx\\2 \\2"
6362 # Write the raw and C identifiers.
6363 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6364 # Fake it for dumpbin and say T for any non-static function,
6365 # D for any global variable and I for any imported variable.
6366 # Also find C++ and __fastcall symbols from MSVC++,
6367 # which start with @ or ?.
6368 lt_cv_sys_global_symbol_pipe="$AWK '"\
6369 " {last_section=section; section=\$ 3};"\
6370 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6371 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6372 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6373 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6374 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6375 " \$ 0!~/External *\|/{next};"\
6376 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6377 " {if(hide[section]) next};"\
6378 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6379 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6380 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6381 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6382 " ' prfx
=^
$ac_symprfx"
6384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6386 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6388 # Check to see that the pipe works correctly.
6392 cat > conftest.$ac_ext <<_LT_EOF
6397 void nm_test_func(void);
6398 void nm_test_func(void){}
6402 int main(){nm_test_var='a';nm_test_func();return(0);}
6405 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 # Now try to grab the symbols.
6412 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6413 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6416 test $ac_status = 0; } && test -s "$nlist"; then
6417 # Try sorting and uniquifying the output.
6418 if sort "$nlist" | uniq > "$nlist"T; then
6419 mv -f "$nlist"T "$nlist"
6424 # Make sure that we snagged all the symbols we need.
6425 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6426 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6427 cat <<_LT_EOF > conftest.$ac_ext
6428 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6429 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6430 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6431 relocations are performed -- see ld's documentation on pseudo-relocs. */
6432 # define LT_DLSYM_CONST
6433 #elif defined __osf__
6434 /* This system does not cope well with relocations in const data. */
6435 # define LT_DLSYM_CONST
6437 # define LT_DLSYM_CONST const
6445 # Now generate the symbol file.
6446 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6448 cat <<_LT_EOF >> conftest.$ac_ext
6450 /* The mapping between symbol names and symbols. */
6451 LT_DLSYM_CONST struct {
6455 lt__PROGRAM__LTX_preloaded_symbols[] =
6457 { "@PROGRAM@
", (void *) 0 },
6459 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6460 cat <<\_LT_EOF >> conftest.$ac_ext
6464 /* This works around a problem in FreeBSD linker */
6465 #ifdef FREEBSD_WORKAROUND
6466 static const void *lt_preloaded_setup() {
6467 return lt__PROGRAM__LTX_preloaded_symbols;
6475 # Now try linking the two files.
6476 mv conftest.$ac_objext conftstm.$ac_objext
6477 lt_globsym_save_LIBS=$LIBS
6478 lt_globsym_save_CFLAGS=$CFLAGS
6479 LIBS=conftstm.$ac_objext
6480 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6481 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6482 (eval $ac_link) 2>&5
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6485 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6488 LIBS=$lt_globsym_save_LIBS
6489 CFLAGS=$lt_globsym_save_CFLAGS
6491 echo "cannot
find nm_test_func
in $nlist" >&5
6494 echo "cannot
find nm_test_var
in $nlist" >&5
6497 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6500 echo "$progname: failed program was
:" >&5
6501 cat conftest.$ac_ext >&5
6503 rm -rf conftest* conftst*
6505 # Do not use the global_symbol_pipe unless it works.
6506 if test yes = "$pipe_works"; then
6509 lt_cv_sys_global_symbol_pipe=
6515 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6516 lt_cv_sys_global_symbol_to_cdecl=
6518 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6520 $as_echo "failed
" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6523 $as_echo "ok
" >&6; }
6526 # Response file support.
6527 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6528 nm_file_list_spec='@'
6529 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6530 nm_file_list_spec='@'
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6570 $as_echo_n "checking
for sysroot...
" >&6; }
6572 # Check whether --with-sysroot was given.
6573 if test "${with_sysroot+set}" = set; then :
6574 withval=$with_sysroot;
6581 case $with_sysroot in #(
6583 if test yes = "$GCC"; then
6584 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6588 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6594 $as_echo "$with_sysroot" >&6; }
6595 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6600 $as_echo "${lt_sysroot:-no}" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6607 $as_echo_n "checking
for a working
dd...
" >&6; }
6608 if ${ac_cv_path_lt_DD+:} false; then :
6609 $as_echo_n "(cached
) " >&6
6611 printf 0123456789abcdef0123456789abcdef >conftest.i
6612 cat conftest.i conftest.i >conftest2.i
6614 if test -z "$lt_DD"; then
6615 ac_path_lt_DD_found=false
6616 # Loop through the user's path and test for each of PROGNAME-LIST
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_prog in dd; do
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6625 as_fn_executable_p "$ac_path_lt_DD" || continue
6626 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6627 cmp -s conftest.i conftest.out \
6628 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6630 $ac_path_lt_DD_found && break 3
6635 if test -z "$ac_cv_path_lt_DD"; then
6639 ac_cv_path_lt_DD=$lt_DD
6642 rm -f conftest.i conftest2.i conftest.out
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6645 $as_echo "$ac_cv_path_lt_DD" >&6; }
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6649 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6650 if ${lt_cv_truncate_bin+:} false; then :
6651 $as_echo_n "(cached
) " >&6
6653 printf 0123456789abcdef0123456789abcdef >conftest.i
6654 cat conftest.i conftest.i >conftest2.i
6656 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6657 cmp -s conftest.i conftest.out \
6658 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6660 rm -f conftest.i conftest2.i conftest.out
6661 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6664 $as_echo "$lt_cv_truncate_bin" >&6; }
6672 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6675 for cc_temp in $*""; do
6677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6683 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6686 # Check whether --enable-libtool-lock was given.
6687 if test "${enable_libtool_lock+set}" = set; then :
6688 enableval=$enable_libtool_lock;
6691 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6693 # Some flags need to be propagated to the compiler or linker for good
6697 # Find out what ABI is being produced by ac_compile, and set mode
6698 # options accordingly.
6699 echo 'int i;' > conftest.$ac_ext
6700 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701 (eval $ac_compile) 2>&5
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6704 test $ac_status = 0; }; then
6705 case `/usr/bin/file conftest.$ac_objext` in
6717 # Find out what ABI is being produced by ac_compile, and set linker
6718 # options accordingly.
6719 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6720 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721 (eval $ac_compile) 2>&5
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6724 test $ac_status = 0; }; then
6725 if test yes = "$lt_cv_prog_gnu_ld"; then
6726 case `/usr/bin/file conftest.$ac_objext` in
6728 LD="${LD-ld} -melf32bsmip"
6731 LD="${LD-ld} -melf32bmipn32"
6734 LD="${LD-ld} -melf64bmip"
6738 case `/usr/bin/file conftest.$ac_objext` in
6755 # Find out what ABI is being produced by ac_compile, and set linker
6756 # options accordingly.
6757 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6758 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759 (eval $ac_compile) 2>&5
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6762 test $ac_status = 0; }; then
6764 case `/usr/bin/file conftest.$ac_objext` in
6772 case `/usr/bin/file conftest.$ac_objext` in
6774 emul="${emul}btsmip
"
6777 emul="${emul}ltsmip
"
6780 case `/usr/bin/file conftest.$ac_objext` in
6785 LD="${LD-ld} -m $emul"
6790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6791 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6792 # Find out what ABI is being produced by ac_compile, and set linker
6793 # options accordingly. Note that the listed cases only cover the
6794 # situations where additional linker options are needed (such as when
6795 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6796 # vice versa); the common cases where no linker options are needed do
6797 # not appear in the list.
6798 echo 'int i;' > conftest.$ac_ext
6799 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 case `/usr/bin/file conftest.o` in
6807 x86_64-*kfreebsd*-gnu)
6808 LD="${LD-ld} -m elf_i386_fbsd
"
6811 case `/usr/bin/file conftest.o` in
6813 LD="${LD-ld} -m elf32_x86_64
"
6816 LD="${LD-ld} -m elf_i386
"
6820 powerpc64le-*linux*)
6821 LD="${LD-ld} -m elf32lppclinux
"
6824 LD="${LD-ld} -m elf32ppclinux
"
6827 LD="${LD-ld} -m elf_s390
"
6830 LD="${LD-ld} -m elf32_sparc
"
6836 x86_64-*kfreebsd*-gnu)
6837 LD="${LD-ld} -m elf_x86_64_fbsd
"
6840 LD="${LD-ld} -m elf_x86_64
"
6843 LD="${LD-ld} -m elf64lppc
"
6846 LD="${LD-ld} -m elf64ppc
"
6848 s390*-*linux*|s390*-*tpf*)
6849 LD="${LD-ld} -m elf64_s390
"
6852 LD="${LD-ld} -m elf64_sparc
"
6862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6864 CFLAGS="$CFLAGS -belf"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6866 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6867 if ${lt_cv_cc_needs_belf+:} false; then :
6868 $as_echo_n "(cached
) " >&6
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6887 if ac_fn_c_try_link "$LINENO"; then :
6888 lt_cv_cc_needs_belf=yes
6890 lt_cv_cc_needs_belf=no
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6895 ac_cpp='$CPP $CPPFLAGS'
6896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6902 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6903 if test yes != "$lt_cv_cc_needs_belf"; then
6904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6909 # Find out what ABI is being produced by ac_compile, and set linker
6910 # options accordingly.
6911 echo 'int i;' > conftest.$ac_ext
6912 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6913 (eval $ac_compile) 2>&5
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6916 test $ac_status = 0; }; then
6917 case `/usr/bin/file conftest.o` in
6919 case $lt_cv_prog_gnu_ld in
6922 i?86-*-solaris*|x86_64-*-solaris*)
6923 LD="${LD-ld} -m elf_x86_64
"
6926 LD="${LD-ld} -m elf64_sparc
"
6929 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6930 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6935 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6947 need_locks=$enable_libtool_lock
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}mt; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6953 $as_echo_n "checking
for $ac_word...
" >&6; }
6954 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6955 $as_echo_n "(cached
) " >&6
6957 if test -n "$MANIFEST_TOOL"; then
6958 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6977 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6978 if test -n "$MANIFEST_TOOL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6980 $as_echo "$MANIFEST_TOOL" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6983 $as_echo "no
" >&6; }
6988 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6989 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6990 # Extract the first word of "mt
", so it can be a program name with args.
6991 set dummy mt; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6993 $as_echo_n "checking
for $ac_word...
" >&6; }
6994 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6995 $as_echo_n "(cached
) " >&6
6997 if test -n "$ac_ct_MANIFEST_TOOL"; then
6998 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7017 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7018 if test -n "$ac_ct_MANIFEST_TOOL"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7020 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7023 $as_echo "no
" >&6; }
7026 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7029 case $cross_compiling:$ac_tool_warned in
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7032 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7033 ac_tool_warned=yes ;;
7035 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7038 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7041 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7043 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7044 if ${lt_cv_path_mainfest_tool+:} false; then :
7045 $as_echo_n "(cached
) " >&6
7047 lt_cv_path_mainfest_tool=no
7048 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7049 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7050 cat conftest.err >&5
7051 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7052 lt_cv_path_mainfest_tool=yes
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7057 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7058 if test yes != "$lt_cv_path_mainfest_tool"; then
7068 rhapsody* | darwin*)
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7073 $as_echo_n "checking
for $ac_word...
" >&6; }
7074 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7075 $as_echo_n "(cached
) " >&6
7077 if test -n "$DSYMUTIL"; then
7078 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7097 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7098 if test -n "$DSYMUTIL"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7100 $as_echo "$DSYMUTIL" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7103 $as_echo "no
" >&6; }
7108 if test -z "$ac_cv_prog_DSYMUTIL"; then
7109 ac_ct_DSYMUTIL=$DSYMUTIL
7110 # Extract the first word of "dsymutil
", so it can be a program name with args.
7111 set dummy dsymutil; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7113 $as_echo_n "checking
for $ac_word...
" >&6; }
7114 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7115 $as_echo_n "(cached
) " >&6
7117 if test -n "$ac_ct_DSYMUTIL"; then
7118 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7137 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7138 if test -n "$ac_ct_DSYMUTIL"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7140 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7143 $as_echo "no
" >&6; }
7146 if test "x
$ac_ct_DSYMUTIL" = x; then
7149 case $cross_compiling:$ac_tool_warned in
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7152 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7153 ac_tool_warned=yes ;;
7155 DSYMUTIL=$ac_ct_DSYMUTIL
7158 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7165 $as_echo_n "checking
for $ac_word...
" >&6; }
7166 if ${ac_cv_prog_NMEDIT+:} false; then :
7167 $as_echo_n "(cached
) " >&6
7169 if test -n "$NMEDIT"; then
7170 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7189 NMEDIT=$ac_cv_prog_NMEDIT
7190 if test -n "$NMEDIT"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7192 $as_echo "$NMEDIT" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7195 $as_echo "no
" >&6; }
7200 if test -z "$ac_cv_prog_NMEDIT"; then
7201 ac_ct_NMEDIT=$NMEDIT
7202 # Extract the first word of "nmedit
", so it can be a program name with args.
7203 set dummy nmedit; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7205 $as_echo_n "checking
for $ac_word...
" >&6; }
7206 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7207 $as_echo_n "(cached
) " >&6
7209 if test -n "$ac_ct_NMEDIT"; then
7210 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7230 if test -n "$ac_ct_NMEDIT"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7232 $as_echo "$ac_ct_NMEDIT" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7235 $as_echo "no
" >&6; }
7238 if test "x
$ac_ct_NMEDIT" = x; then
7241 case $cross_compiling:$ac_tool_warned in
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7244 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7245 ac_tool_warned=yes ;;
7247 NMEDIT=$ac_ct_NMEDIT
7250 NMEDIT="$ac_cv_prog_NMEDIT"
7253 if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7257 $as_echo_n "checking
for $ac_word...
" >&6; }
7258 if ${ac_cv_prog_LIPO+:} false; then :
7259 $as_echo_n "(cached
) " >&6
7261 if test -n "$LIPO"; then
7262 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7281 LIPO=$ac_cv_prog_LIPO
7282 if test -n "$LIPO"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7284 $as_echo "$LIPO" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7287 $as_echo "no
" >&6; }
7292 if test -z "$ac_cv_prog_LIPO"; then
7294 # Extract the first word of "lipo
", so it can be a program name with args.
7295 set dummy lipo; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7297 $as_echo_n "checking
for $ac_word...
" >&6; }
7298 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7299 $as_echo_n "(cached
) " >&6
7301 if test -n "$ac_ct_LIPO"; then
7302 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_LIPO="lipo
"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7321 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7322 if test -n "$ac_ct_LIPO"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7324 $as_echo "$ac_ct_LIPO" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7327 $as_echo "no
" >&6; }
7330 if test "x
$ac_ct_LIPO" = x; then
7333 case $cross_compiling:$ac_tool_warned in
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7336 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7337 ac_tool_warned=yes ;;
7342 LIPO="$ac_cv_prog_LIPO"
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}otool; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7349 $as_echo_n "checking
for $ac_word...
" >&6; }
7350 if ${ac_cv_prog_OTOOL+:} false; then :
7351 $as_echo_n "(cached
) " >&6
7353 if test -n "$OTOOL"; then
7354 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7373 OTOOL=$ac_cv_prog_OTOOL
7374 if test -n "$OTOOL"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7376 $as_echo "$OTOOL" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7379 $as_echo "no
" >&6; }
7384 if test -z "$ac_cv_prog_OTOOL"; then
7386 # Extract the first word of "otool
", so it can be a program name with args.
7387 set dummy otool; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7389 $as_echo_n "checking
for $ac_word...
" >&6; }
7390 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7391 $as_echo_n "(cached
) " >&6
7393 if test -n "$ac_ct_OTOOL"; then
7394 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_OTOOL="otool
"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7413 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7414 if test -n "$ac_ct_OTOOL"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7416 $as_echo "$ac_ct_OTOOL" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7419 $as_echo "no
" >&6; }
7422 if test "x
$ac_ct_OTOOL" = x; then
7425 case $cross_compiling:$ac_tool_warned in
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7428 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7429 ac_tool_warned=yes ;;
7434 OTOOL="$ac_cv_prog_OTOOL"
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7441 $as_echo_n "checking
for $ac_word...
" >&6; }
7442 if ${ac_cv_prog_OTOOL64+:} false; then :
7443 $as_echo_n "(cached
) " >&6
7445 if test -n "$OTOOL64"; then
7446 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7465 OTOOL64=$ac_cv_prog_OTOOL64
7466 if test -n "$OTOOL64"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7468 $as_echo "$OTOOL64" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7471 $as_echo "no
" >&6; }
7476 if test -z "$ac_cv_prog_OTOOL64"; then
7477 ac_ct_OTOOL64=$OTOOL64
7478 # Extract the first word of "otool64
", so it can be a program name with args.
7479 set dummy otool64; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7481 $as_echo_n "checking
for $ac_word...
" >&6; }
7482 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7483 $as_echo_n "(cached
) " >&6
7485 if test -n "$ac_ct_OTOOL64"; then
7486 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7505 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7506 if test -n "$ac_ct_OTOOL64"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7508 $as_echo "$ac_ct_OTOOL64" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7511 $as_echo "no
" >&6; }
7514 if test "x
$ac_ct_OTOOL64" = x; then
7517 case $cross_compiling:$ac_tool_warned in
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7520 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7521 ac_tool_warned=yes ;;
7523 OTOOL64=$ac_ct_OTOOL64
7526 OTOOL64="$ac_cv_prog_OTOOL64"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7556 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7557 if ${lt_cv_apple_cc_single_mod+:} false; then :
7558 $as_echo_n "(cached
) " >&6
7560 lt_cv_apple_cc_single_mod=no
7561 if test -z "$LT_MULTI_MODULE"; then
7562 # By default we will add the -single_module flag. You can override
7563 # by either setting the environment variable LT_MULTI_MODULE
7564 # non-empty at configure time, or by adding -multi_module to the
7566 rm -rf libconftest.dylib*
7567 echo "int foo
(void
){return 1;}" > conftest.c
7568 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7569 -dynamiclib -Wl,-single_module conftest.c
" >&5
7570 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7571 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7573 # If there is a non-empty error log, and "single_module
"
7574 # appears in it, assume the flag caused a linker warning
7575 if test -s conftest.err && $GREP single_module conftest.err; then
7576 cat conftest.err >&5
7577 # Otherwise, if the output was created with a 0 exit code from
7578 # the compiler, it worked.
7579 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7580 lt_cv_apple_cc_single_mod=yes
7582 cat conftest.err >&5
7584 rm -rf libconftest.dylib*
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7589 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7592 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7593 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7594 $as_echo_n "(cached
) " >&6
7596 lt_cv_ld_exported_symbols_list=no
7597 save_LDFLAGS=$LDFLAGS
7598 echo "_main
" > conftest.sym
7599 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7611 if ac_fn_c_try_link "$LINENO"; then :
7612 lt_cv_ld_exported_symbols_list=yes
7614 lt_cv_ld_exported_symbols_list=no
7616 rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 LDFLAGS=$save_LDFLAGS
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7625 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7626 if ${lt_cv_ld_force_load+:} false; then :
7627 $as_echo_n "(cached
) " >&6
7629 lt_cv_ld_force_load=no
7630 cat > conftest.c << _LT_EOF
7631 int forced_loaded() { return 2;}
7633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7635 echo "$AR cru libconftest.a conftest.o
" >&5
7636 $AR cru libconftest.a conftest.o 2>&5
7637 echo "$RANLIB libconftest.a
" >&5
7638 $RANLIB libconftest.a 2>&5
7639 cat > conftest.c << _LT_EOF
7640 int main() { return 0;}
7642 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7643 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7645 if test -s conftest.err && $GREP force_load conftest.err; then
7646 cat conftest.err >&5
7647 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7648 lt_cv_ld_force_load=yes
7650 cat conftest.err >&5
7652 rm -f conftest.err libconftest.a conftest conftest.c
7653 rm -rf conftest.dSYM
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7657 $as_echo "$lt_cv_ld_force_load" >&6; }
7659 rhapsody* | darwin1.[012])
7660 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7662 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7663 darwin*) # darwin 5.x on
7664 # if running on 10.5 or later, the deployment target defaults
7665 # to the OS version, if on x86, and 10.4, the deployment
7666 # target defaults to 10.4. Don't you love it?
7667 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7668 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7669 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7671 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7673 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7677 if test yes = "$lt_cv_apple_cc_single_mod"; then
7678 _lt_dar_single_mod='$single_module'
7680 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7681 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7685 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7686 _lt_dsymutil='~$DSYMUTIL $lib || :'
7693 # func_munge_path_list VARIABLE PATH
7694 # -----------------------------------
7695 # VARIABLE is name of variable containing _space_ separated list of
7696 # directories to be munged by the contents of PATH, which is string
7699 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7701 # string "DIR
[ DIR
]" will be appended to VARIABLE
7702 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7703 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7704 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7706 # VARIABLE will be replaced by "DIR
[ DIR
]"
7707 func_munge_path_list ()
7713 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7716 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7719 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7720 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7723 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7734 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7735 # On Suns, sometimes $CPP names a directory.
7736 if test -n "$CPP" && test -d "$CPP"; then
7739 if test -z "$CPP"; then
7740 if ${ac_cv_prog_CPP+:} false; then :
7741 $as_echo_n "(cached
) " >&6
7743 # Double quotes because CPP needs to be expanded
7744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7747 for ac_c_preproc_warn_flag in '' yes
7749 # Use a header file that comes with gcc, so configuring glibc
7750 # with a fresh cross-compiler works.
7751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752 # <limits.h> exists even on freestanding compilers.
7753 # On the NeXT, cc -E runs the code through the compiler's parser,
7754 # not just through cpp. "Syntax error
" is here to catch this case.
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7758 # include <limits.h>
7760 # include <assert.h>
7764 if ac_fn_c_try_cpp "$LINENO"; then :
7767 # Broken: fails on valid input.
7770 rm -f conftest.err conftest.i conftest.$ac_ext
7772 # OK, works on sane cases. Now check whether nonexistent headers
7773 # can be detected and how.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <ac_nonexistent.h>
7778 if ac_fn_c_try_cpp "$LINENO"; then :
7779 # Broken: success on invalid input.
7782 # Passes both tests.
7786 rm -f conftest.err conftest.i conftest.$ac_ext
7789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7790 rm -f conftest.i conftest.err conftest.$ac_ext
7791 if $ac_preproc_ok; then :
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7804 $as_echo "$CPP" >&6; }
7806 for ac_c_preproc_warn_flag in '' yes
7808 # Use a header file that comes with gcc, so configuring glibc
7809 # with a fresh cross-compiler works.
7810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811 # <limits.h> exists even on freestanding compilers.
7812 # On the NeXT, cc -E runs the code through the compiler's parser,
7813 # not just through cpp. "Syntax error
" is here to catch this case.
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7817 # include <limits.h>
7819 # include <assert.h>
7823 if ac_fn_c_try_cpp "$LINENO"; then :
7826 # Broken: fails on valid input.
7829 rm -f conftest.err conftest.i conftest.$ac_ext
7831 # OK, works on sane cases. Now check whether nonexistent headers
7832 # can be detected and how.
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <ac_nonexistent.h>
7837 if ac_fn_c_try_cpp "$LINENO"; then :
7838 # Broken: success on invalid input.
7841 # Passes both tests.
7845 rm -f conftest.err conftest.i conftest.$ac_ext
7848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7849 rm -f conftest.i conftest.err conftest.$ac_ext
7850 if $ac_preproc_ok; then :
7853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7855 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7856 See \`config.log' for more details
" "$LINENO" 5; }
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7867 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7868 if ${ac_cv_header_stdc+:} false; then :
7869 $as_echo_n "(cached
) " >&6
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7886 if ac_fn_c_try_compile "$LINENO"; then :
7887 ac_cv_header_stdc=yes
7889 ac_cv_header_stdc=no
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 if test $ac_cv_header_stdc = yes; then
7894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7900 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7901 $EGREP "memchr
" >/dev/null 2>&1; then :
7904 ac_cv_header_stdc=no
7910 if test $ac_cv_header_stdc = yes; then
7911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7917 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7918 $EGREP "free
" >/dev/null 2>&1; then :
7921 ac_cv_header_stdc=no
7927 if test $ac_cv_header_stdc = yes; then
7928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7929 if test "$cross_compiling" = yes; then :
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7936 #if ((' ' & 0x0FF) == 0x020)
7937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7940 # define ISLOWER(c) \
7941 (('a' <= (c) && (c) <= 'i') \
7942 || ('j' <= (c) && (c) <= 'r') \
7943 || ('s' <= (c) && (c) <= 'z'))
7944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7952 for (i = 0; i < 256; i++)
7953 if (XOR (islower (i), ISLOWER (i))
7954 || toupper (i) != TOUPPER (i))
7959 if ac_fn_c_try_run "$LINENO"; then :
7962 ac_cv_header_stdc=no
7964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7965 conftest.$ac_objext conftest.beam conftest.$ac_ext
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7971 $as_echo "$ac_cv_header_stdc" >&6; }
7972 if test $ac_cv_header_stdc = yes; then
7974 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7979 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7980 inttypes.h stdint.h unistd.h
7982 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7983 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7985 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7986 cat >>confdefs.h
<<_ACEOF
7987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7995 for ac_header
in dlfcn.h
7997 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7999 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8000 cat >>confdefs.h
<<_ACEOF
8001 #define HAVE_DLFCN_H 1
8022 # Check whether --enable-shared was given.
8023 if test "${enable_shared+set}" = set; then :
8024 enableval
=$enable_shared; p
=${PACKAGE-default}
8026 yes) enable_shared
=yes ;;
8027 no
) enable_shared
=no
;;
8030 # Look at the argument we got. We use all the common list separators.
8031 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8032 for pkg
in $enableval; do
8034 if test "X$pkg" = "X$p"; then
8053 # Check whether --enable-static was given.
8054 if test "${enable_static+set}" = set; then :
8055 enableval
=$enable_static; p
=${PACKAGE-default}
8057 yes) enable_static
=yes ;;
8058 no
) enable_static
=no
;;
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8063 for pkg
in $enableval; do
8065 if test "X$pkg" = "X$p"; then
8085 # Check whether --with-pic was given.
8086 if test "${with_pic+set}" = set; then :
8087 withval
=$with_pic; lt_p
=${PACKAGE-default}
8089 yes|no
) pic_mode
=$withval ;;
8092 # Look at the argument we got. We use all the common list separators.
8093 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8094 for lt_pkg
in $withval; do
8096 if test "X$lt_pkg" = "X$lt_p"; then
8114 # Check whether --enable-fast-install was given.
8115 if test "${enable_fast_install+set}" = set; then :
8116 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8118 yes) enable_fast_install
=yes ;;
8119 no
) enable_fast_install
=no
;;
8121 enable_fast_install
=no
8122 # Look at the argument we got. We use all the common list separators.
8123 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8124 for pkg
in $enableval; do
8126 if test "X$pkg" = "X$p"; then
8127 enable_fast_install
=yes
8134 enable_fast_install
=yes
8144 shared_archive_member_spec
=
8145 case $host,$enable_shared in
8146 power
*-*-aix[5-9]*,yes)
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8148 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8150 # Check whether --with-aix-soname was given.
8151 if test "${with_aix_soname+set}" = set; then :
8152 withval
=$with_aix_soname; case $withval in
8156 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8159 lt_cv_with_aix_soname
=$with_aix_soname
8161 if ${lt_cv_with_aix_soname+:} false
; then :
8162 $as_echo_n "(cached) " >&6
8164 lt_cv_with_aix_soname
=aix
8167 with_aix_soname
=$lt_cv_with_aix_soname
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8171 $as_echo "$with_aix_soname" >&6; }
8172 if test aix
!= "$with_aix_soname"; then
8173 # For the AIX way of multilib, we name the shared archive member
8174 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8175 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8176 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8177 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8178 if test 64 = "${OBJECT_MODE-32}"; then
8179 shared_archive_member_spec
=shr_64
8181 shared_archive_member_spec
=shr
8199 # This can be used to rebuild libtool when needed
8200 LIBTOOL_DEPS
=$ltmain
8202 # Always use our own libtool.
8203 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8234 test -z "$LN_S" && LN_S
="ln -s"
8249 if test -n "${ZSH_VERSION+set}"; then
8250 setopt NO_GLOB_SUBST
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8254 $as_echo_n "checking for objdir... " >&6; }
8255 if ${lt_cv_objdir+:} false
; then :
8256 $as_echo_n "(cached) " >&6
8258 rm -f .libs
2>/dev
/null
8259 mkdir .libs
2>/dev
/null
8260 if test -d .libs
; then
8263 # MS-DOS does not allow filenames that begin with a dot.
8266 rmdir .libs
2>/dev
/null
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8269 $as_echo "$lt_cv_objdir" >&6; }
8270 objdir
=$lt_cv_objdir
8276 cat >>confdefs.h
<<_ACEOF
8277 #define LT_OBJDIR "$lt_cv_objdir/"
8285 # AIX sometimes has problems with the GCC collect2 program. For some
8286 # reason, if we set the COLLECT_NAMES environment variable, the problems
8287 # vanish in a puff of smoke.
8288 if test set != "${COLLECT_NAMES+set}"; then
8290 export COLLECT_NAMES
8297 can_build_shared
=yes
8299 # All known linkers require a '.a' archive for static linking (except MSVC,
8300 # which needs '.lib').
8303 with_gnu_ld
=$lt_cv_prog_gnu_ld
8308 # Set sane defaults for various variables
8309 test -z "$CC" && CC
=cc
8310 test -z "$LTCC" && LTCC
=$CC
8311 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8312 test -z "$LD" && LD
=ld
8313 test -z "$ac_objext" && ac_objext
=o
8315 func_cc_basename
$compiler
8316 cc_basename
=$func_cc_basename_result
8319 # Only perform the check for file, if the check method requires it
8320 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8321 case $deplibs_check_method in
8323 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8325 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8326 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8327 $as_echo_n "(cached) " >&6
8331 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8334 lt_save_MAGIC_CMD
=$MAGIC_CMD
8335 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8336 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8337 for ac_dir
in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir
=.
8340 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8341 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8342 if test -n "$file_magic_test_file"; then
8343 case $deplibs_check_method in
8345 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8346 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8347 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8348 $EGREP "$file_magic_regex" > /dev
/null
; then
8353 *** Warning: the command libtool uses to detect shared libraries,
8354 *** $file_magic_cmd, produces output that libtool cannot recognize.
8355 *** The result is that libtool may fail to recognize shared libraries
8356 *** as such. This will affect the creation of libtool libraries that
8357 *** depend on shared libraries, but programs linked with such libtool
8358 *** libraries will work regardless of this problem. Nevertheless, you
8359 *** may want to report the problem to your system manager and/or to
8360 *** bug-libtool@gnu.org
8370 MAGIC_CMD
=$lt_save_MAGIC_CMD
8375 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8376 if test -n "$MAGIC_CMD"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8378 $as_echo "$MAGIC_CMD" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8388 if test -z "$lt_cv_path_MAGIC_CMD"; then
8389 if test -n "$ac_tool_prefix"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8391 $as_echo_n "checking for file... " >&6; }
8392 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8393 $as_echo_n "(cached) " >&6
8397 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8400 lt_save_MAGIC_CMD
=$MAGIC_CMD
8401 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8402 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8403 for ac_dir
in $ac_dummy; do
8405 test -z "$ac_dir" && ac_dir
=.
8406 if test -f "$ac_dir/file"; then
8407 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8408 if test -n "$file_magic_test_file"; then
8409 case $deplibs_check_method in
8411 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8412 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8413 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8414 $EGREP "$file_magic_regex" > /dev
/null
; then
8419 *** Warning: the command libtool uses to detect shared libraries,
8420 *** $file_magic_cmd, produces output that libtool cannot recognize.
8421 *** The result is that libtool may fail to recognize shared libraries
8422 *** as such. This will affect the creation of libtool libraries that
8423 *** depend on shared libraries, but programs linked with such libtool
8424 *** libraries will work regardless of this problem. Nevertheless, you
8425 *** may want to report the problem to your system manager and/or to
8426 *** bug-libtool@gnu.org
8436 MAGIC_CMD
=$lt_save_MAGIC_CMD
8441 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8442 if test -n "$MAGIC_CMD"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8444 $as_echo "$MAGIC_CMD" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8460 # Use C for the default configuration in the libtool script
8464 ac_cpp
='$CPP $CPPFLAGS'
8465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8470 # Source file extension for C test sources.
8473 # Object file extension for compiled C test sources.
8477 # Code to be used in simple compile tests
8478 lt_simple_compile_test_code
="int some_variable = 0;"
8480 # Code to be used in simple link tests
8481 lt_simple_link_test_code
='int main(){return(0);}'
8489 # If no C compiler was specified, use CC.
8492 # If no C compiler flags were specified, use CFLAGS.
8493 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8495 # Allow CC to be a program name with arguments.
8498 # Save the default compiler, since it gets overwritten when the other
8499 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8500 compiler_DEFAULT
=$CC
8502 # save warnings/boilerplate of simple test code
8503 ac_outfile
=conftest.
$ac_objext
8504 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8505 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8506 _lt_compiler_boilerplate
=`cat conftest.err`
8509 ac_outfile
=conftest.
$ac_objext
8510 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8511 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8512 _lt_linker_boilerplate
=`cat conftest.err`
8517 ## There is no encapsulation within the following macros, do not change
8518 ## the running order or otherwise move them around unless you know exactly
8519 ## what you are doing...
8520 if test -n "$compiler"; then
8522 lt_prog_compiler_no_builtin_flag
=
8524 if test yes = "$GCC"; then
8525 case $cc_basename in
8527 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8529 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8533 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8534 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8537 lt_cv_prog_compiler_rtti_exceptions
=no
8538 ac_outfile
=conftest.
$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8540 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile
=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err
)
8553 cat conftest.err
>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8560 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8561 lt_cv_prog_compiler_rtti_exceptions
=yes
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8568 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8570 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8571 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8583 lt_prog_compiler_wl
=
8584 lt_prog_compiler_pic
=
8585 lt_prog_compiler_static
=
8588 if test yes = "$GCC"; then
8589 lt_prog_compiler_wl
='-Wl,'
8590 lt_prog_compiler_static
='-static'
8594 # All AIX code is PIC.
8595 if test ia64
= "$host_cpu"; then
8596 # AIX 5 now supports IA64 processor
8597 lt_prog_compiler_static
='-Bstatic'
8599 lt_prog_compiler_pic
='-fPIC'
8605 # see comment about AmigaOS4 .so support
8606 lt_prog_compiler_pic
='-fPIC'
8609 # FIXME: we need at least 68020 code to build shared libraries, but
8610 # adding the '-m68020' flag to GCC prevents building anything better,
8612 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8617 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8618 # PIC is the default for these OSes.
8621 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8622 # This hack is so that the source file can tell whether it is being
8623 # built for inclusion in a dll (and should export symbols for example).
8624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8625 # (--disable-auto-import) libraries
8626 lt_prog_compiler_pic
='-DDLL_EXPORT'
8629 lt_prog_compiler_static
='$wl-static'
8634 darwin
* | rhapsody
*)
8635 # PIC is the default on this platform
8636 # Common symbols not allowed in MH_DYLIB files
8637 lt_prog_compiler_pic
='-fno-common'
8641 # PIC is the default for Haiku.
8642 # The "-static" flag exists, but is broken.
8643 lt_prog_compiler_static
=
8647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8649 # sets the default TLS model and affects inlining.
8655 lt_prog_compiler_pic
='-fPIC'
8661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8662 # Instead, we relocate shared libraries at runtime.
8666 # Just because we use GCC doesn't mean we suddenly get shared libraries
8667 # on systems that don't support them.
8668 lt_prog_compiler_can_build_shared
=no
8673 # QNX uses GNU C++, but need to define -shared option too, otherwise
8675 lt_prog_compiler_pic
='-fPIC -shared'
8679 if test -d /usr
/nec
; then
8680 lt_prog_compiler_pic
=-Kconform_pic
8685 lt_prog_compiler_pic
='-fPIC'
8689 case $cc_basename in
8690 nvcc
*) # Cuda Compiler Driver 2.2
8691 lt_prog_compiler_wl
='-Xlinker '
8692 if test -n "$lt_prog_compiler_pic"; then
8693 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8698 # PORTME Check for flag to pass linker flags through the system compiler.
8701 lt_prog_compiler_wl
='-Wl,'
8702 if test ia64
= "$host_cpu"; then
8703 # AIX 5 now supports IA64 processor
8704 lt_prog_compiler_static
='-Bstatic'
8706 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8710 darwin
* | rhapsody
*)
8711 # PIC is the default on this platform
8712 # Common symbols not allowed in MH_DYLIB files
8713 lt_prog_compiler_pic
='-fno-common'
8714 case $cc_basename in
8716 # NAG Fortran compiler
8717 lt_prog_compiler_wl
='-Wl,-Wl,,'
8718 lt_prog_compiler_pic
='-PIC'
8719 lt_prog_compiler_static
='-Bstatic'
8724 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8725 # This hack is so that the source file can tell whether it is being
8726 # built for inclusion in a dll (and should export symbols for example).
8727 lt_prog_compiler_pic
='-DDLL_EXPORT'
8730 lt_prog_compiler_static
='$wl-static'
8735 hpux9
* | hpux10
* | hpux11
*)
8736 lt_prog_compiler_wl
='-Wl,'
8737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8744 lt_prog_compiler_pic
='+Z'
8747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8748 lt_prog_compiler_static
='$wl-a ${wl}archive'
8751 irix5
* | irix6
* | nonstopux
*)
8752 lt_prog_compiler_wl
='-Wl,'
8753 # PIC (with -KPIC) is the default.
8754 lt_prog_compiler_static
='-non_shared'
8757 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8758 case $cc_basename in
8759 # old Intel for x86_64, which still supported -KPIC.
8761 lt_prog_compiler_wl
='-Wl,'
8762 lt_prog_compiler_pic
='-KPIC'
8763 lt_prog_compiler_static
='-static'
8765 # icc used to be incompatible with GCC.
8766 # ICC 10 doesn't accept -KPIC any more.
8768 lt_prog_compiler_wl
='-Wl,'
8769 lt_prog_compiler_pic
='-fPIC'
8770 lt_prog_compiler_static
='-static'
8772 # Lahey Fortran 8.1.
8774 lt_prog_compiler_wl
='-Wl,'
8775 lt_prog_compiler_pic
='--shared'
8776 lt_prog_compiler_static
='--static'
8779 # NAG Fortran compiler
8780 lt_prog_compiler_wl
='-Wl,-Wl,,'
8781 lt_prog_compiler_pic
='-PIC'
8782 lt_prog_compiler_static
='-Bstatic'
8785 # Fabrice Bellard et al's Tiny C Compiler
8786 lt_prog_compiler_wl
='-Wl,'
8787 lt_prog_compiler_pic
='-fPIC'
8788 lt_prog_compiler_static
='-static'
8790 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8791 # Portland Group compilers (*not* the Pentium gcc compiler,
8792 # which looks to be a dead project)
8793 lt_prog_compiler_wl
='-Wl,'
8794 lt_prog_compiler_pic
='-fpic'
8795 lt_prog_compiler_static
='-Bstatic'
8798 lt_prog_compiler_wl
='-Wl,'
8799 # All Alpha code is PIC.
8800 lt_prog_compiler_static
='-non_shared'
8802 xl
* | bgxl
* | bgf
* | mpixl
*)
8803 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8804 lt_prog_compiler_wl
='-Wl,'
8805 lt_prog_compiler_pic
='-qpic'
8806 lt_prog_compiler_static
='-qstaticlink'
8809 case `$CC -V 2>&1 | sed 5q` in
8810 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8811 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8812 lt_prog_compiler_pic
='-KPIC'
8813 lt_prog_compiler_static
='-Bstatic'
8814 lt_prog_compiler_wl
=''
8816 *Sun\ F
* |
*Sun
*Fortran
*)
8817 lt_prog_compiler_pic
='-KPIC'
8818 lt_prog_compiler_static
='-Bstatic'
8819 lt_prog_compiler_wl
='-Qoption ld '
8823 lt_prog_compiler_pic
='-KPIC'
8824 lt_prog_compiler_static
='-Bstatic'
8825 lt_prog_compiler_wl
='-Wl,'
8827 *Intel
*\
[CF
]*Compiler
*)
8828 lt_prog_compiler_wl
='-Wl,'
8829 lt_prog_compiler_pic
='-fPIC'
8830 lt_prog_compiler_static
='-static'
8833 lt_prog_compiler_wl
='-Wl,'
8834 lt_prog_compiler_pic
='-fpic'
8835 lt_prog_compiler_static
='-Bstatic'
8843 lt_prog_compiler_pic
='-KPIC'
8844 lt_prog_compiler_static
='-Bstatic'
8848 # QNX uses GNU C++, but need to define -shared option too, otherwise
8850 lt_prog_compiler_pic
='-fPIC -shared'
8853 osf3
* | osf4
* | osf5
*)
8854 lt_prog_compiler_wl
='-Wl,'
8855 # All OSF/1 code is PIC.
8856 lt_prog_compiler_static
='-non_shared'
8860 lt_prog_compiler_static
='-non_shared'
8864 lt_prog_compiler_pic
='-KPIC'
8865 lt_prog_compiler_static
='-Bstatic'
8866 case $cc_basename in
8867 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8868 lt_prog_compiler_wl
='-Qoption ld ';;
8870 lt_prog_compiler_wl
='-Wl,';;
8875 lt_prog_compiler_wl
='-Qoption ld '
8876 lt_prog_compiler_pic
='-PIC'
8877 lt_prog_compiler_static
='-Bstatic'
8880 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8881 lt_prog_compiler_wl
='-Wl,'
8882 lt_prog_compiler_pic
='-KPIC'
8883 lt_prog_compiler_static
='-Bstatic'
8887 if test -d /usr
/nec
; then
8888 lt_prog_compiler_pic
='-Kconform_pic'
8889 lt_prog_compiler_static
='-Bstatic'
8893 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8894 lt_prog_compiler_wl
='-Wl,'
8895 lt_prog_compiler_pic
='-KPIC'
8896 lt_prog_compiler_static
='-Bstatic'
8900 lt_prog_compiler_wl
='-Wl,'
8901 lt_prog_compiler_can_build_shared
=no
8905 lt_prog_compiler_pic
='-pic'
8906 lt_prog_compiler_static
='-Bstatic'
8910 lt_prog_compiler_can_build_shared
=no
8916 # For platforms that do not support PIC, -DPIC is meaningless:
8918 lt_prog_compiler_pic
=
8921 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8927 if ${lt_cv_prog_compiler_pic+:} false
; then :
8928 $as_echo_n "(cached) " >&6
8930 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8933 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8934 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8937 # Check to make sure the PIC flag actually works.
8939 if test -n "$lt_prog_compiler_pic"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8942 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8943 $as_echo_n "(cached) " >&6
8945 lt_cv_prog_compiler_pic_works
=no
8946 ac_outfile
=conftest.
$ac_objext
8947 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8948 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8949 # Insert the option either (1) after the last *FLAGS variable, or
8950 # (2) before a word containing "conftest.", or (3) at the end.
8951 # Note that $ac_compile itself does not contain backslashes and begins
8952 # with a dollar sign (not a hyphen), so the echo should work correctly.
8953 # The option is referenced via a variable to avoid confusing sed.
8954 lt_compile
=`echo "$ac_compile" | $SED \
8955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957 -e 's:$: $lt_compiler_flag:'`
8958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8959 (eval "$lt_compile" 2>conftest.err
)
8961 cat conftest.err
>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 if (exit $ac_status) && test -s "$ac_outfile"; then
8964 # The compiler can only warn and ignore the option if not recognized
8965 # So say no if there are warnings other than the usual output.
8966 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8967 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8968 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8969 lt_cv_prog_compiler_pic_works
=yes
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8976 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8978 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8979 case $lt_prog_compiler_pic in
8981 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8984 lt_prog_compiler_pic
=
8985 lt_prog_compiler_can_build_shared
=no
9001 # Check to make sure the static flag actually works.
9003 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9005 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9006 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9007 $as_echo_n "(cached) " >&6
9009 lt_cv_prog_compiler_static_works
=no
9010 save_LDFLAGS
=$LDFLAGS
9011 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9012 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9013 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9014 # The linker can only warn and ignore the option if not recognized
9015 # So say no if there are warnings
9016 if test -s conftest.err
; then
9017 # Append any errors to the config.log.
9018 cat conftest.err
1>&5
9019 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9020 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9021 if diff conftest.exp conftest.er2
>/dev
/null
; then
9022 lt_cv_prog_compiler_static_works
=yes
9025 lt_cv_prog_compiler_static_works
=yes
9029 LDFLAGS
=$save_LDFLAGS
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9033 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9035 if test yes = "$lt_cv_prog_compiler_static_works"; then
9038 lt_prog_compiler_static
=
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9049 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9050 $as_echo_n "(cached) " >&6
9052 lt_cv_prog_compiler_c_o
=no
9053 $RM -r conftest
2>/dev
/null
9057 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9059 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9060 # Insert the option either (1) after the last *FLAGS variable, or
9061 # (2) before a word containing "conftest.", or (3) at the end.
9062 # Note that $ac_compile itself does not contain backslashes and begins
9063 # with a dollar sign (not a hyphen), so the echo should work correctly.
9064 lt_compile
=`echo "$ac_compile" | $SED \
9065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067 -e 's:$: $lt_compiler_flag:'`
9068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9069 (eval "$lt_compile" 2>out
/conftest.err
)
9071 cat out
/conftest.err
>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9075 # The compiler can only warn and ignore the option if not recognized
9076 # So say no if there are warnings
9077 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9078 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9079 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9080 lt_cv_prog_compiler_c_o
=yes
9085 # SGI C++ compiler will create directory out/ii_files/ for
9086 # template instantiation
9087 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9088 $RM out
/* && rmdir out
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9095 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9104 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9105 $as_echo_n "(cached) " >&6
9107 lt_cv_prog_compiler_c_o
=no
9108 $RM -r conftest
2>/dev
/null
9112 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9114 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 lt_compile
=`echo "$ac_compile" | $SED \
9120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122 -e 's:$: $lt_compiler_flag:'`
9123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9124 (eval "$lt_compile" 2>out
/conftest.err
)
9126 cat out
/conftest.err
>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings
9132 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9133 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9134 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9135 lt_cv_prog_compiler_c_o
=yes
9140 # SGI C++ compiler will create directory out/ii_files/ for
9141 # template instantiation
9142 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9143 $RM out
/* && rmdir out
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9150 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9155 hard_links
=nottested
9156 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9157 # do not overwrite the value of need_locks provided by the user
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9159 $as_echo_n "checking if we can lock with hard links... " >&6; }
9162 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9164 ln conftest.a conftest.b
2>&5 || hard_links
=no
9165 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9167 $as_echo "$hard_links" >&6; }
9168 if test no
= "$hard_links"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9170 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9183 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9186 allow_undefined_flag
=
9187 always_export_symbols
=no
9189 archive_expsym_cmds
=
9190 compiler_needs_object
=no
9191 enable_shared_with_static_runtimes
=no
9192 export_dynamic_flag_spec
=
9193 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9194 hardcode_automatic
=no
9196 hardcode_direct_absolute
=no
9197 hardcode_libdir_flag_spec
=
9198 hardcode_libdir_separator
=
9200 hardcode_shlibpath_var
=unsupported
9202 link_all_deplibs
=unknown
9205 old_archive_from_new_cmds
=
9206 old_archive_from_expsyms_cmds
=
9207 thread_safe_flag_spec
=
9208 whole_archive_flag_spec
=
9209 # include_expsyms should be a list of space-separated symbols to be *always*
9210 # included in the symbol list
9212 # exclude_expsyms can be an extended regexp of symbols to exclude
9213 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9214 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9215 # as well as any symbol that contains 'd'.
9216 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9217 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9218 # platforms (ab)use it in PIC code, but their linkers get confused if
9219 # the symbol is explicitly referenced. Since portable code cannot
9220 # rely on this symbol name, it's probably fine to never include it in
9221 # preloaded symbol tables.
9222 # Exclude shared library initialization/finalization symbols.
9223 extract_expsyms_cmds
=
9226 cygwin
* | mingw
* | pw32
* | cegcc
*)
9227 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9228 # When not using gcc, we currently assume that we are using
9229 # Microsoft Visual C++.
9230 if test yes != "$GCC"; then
9235 # we just hope/assume this is gcc and not c89 (= MSVC++)
9241 linux
* | k
*bsd
*-gnu | gnu
*)
9248 # On some targets, GNU ld is compatible enough with the native linker
9249 # that we're better off using the native interface for both.
9250 lt_use_gnu_ld_interface
=no
9251 if test yes = "$with_gnu_ld"; then
9254 # The AIX port of GNU ld has always aspired to compatibility
9255 # with the native linker. However, as the warning in the GNU ld
9256 # block says, versions before 2.19.5* couldn't really create working
9257 # shared libraries, regardless of the interface used.
9258 case `$LD -v 2>&1` in
9259 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9260 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9261 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9263 lt_use_gnu_ld_interface
=yes
9268 lt_use_gnu_ld_interface
=yes
9273 if test yes = "$lt_use_gnu_ld_interface"; then
9274 # If archive_cmds runs LD, not CC, wlarc should be empty
9277 # Set some defaults for GNU ld with shared library support. These
9278 # are reset later if shared libraries are not supported. Putting them
9279 # here allows them to be overridden if necessary.
9280 runpath_var
=LD_RUN_PATH
9281 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9282 export_dynamic_flag_spec
='$wl--export-dynamic'
9283 # ancient GNU ld didn't support --whole-archive et. al.
9284 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9285 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9287 whole_archive_flag_spec
=
9289 supports_anon_versioning
=no
9290 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9291 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9292 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9293 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9294 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9295 *\
2.11.
*) ;; # other 2.11 versions
9296 *) supports_anon_versioning
=yes ;;
9299 # See if GNU ld supports shared libraries.
9302 # On AIX/PPC, the GNU linker is very broken
9303 if test ia64
!= "$host_cpu"; then
9307 *** Warning: the GNU linker, at least up to release 2.19, is reported
9308 *** to be unable to reliably create shared libraries on AIX.
9309 *** Therefore, libtool is disabling shared libraries support. If you
9310 *** really care for shared libraries, you may want to install binutils
9311 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9312 *** You will then need to restart the configuration process.
9321 # see comment about AmigaOS4 .so support
9322 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9323 archive_expsym_cmds
=''
9326 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)'
9327 hardcode_libdir_flag_spec
='-L$libdir'
9328 hardcode_minus_L
=yes
9334 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9335 allow_undefined_flag
=unsupported
9336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9337 # support --undefined. This deserves some investigation. FIXME
9338 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344 cygwin
* | mingw
* | pw32
* | cegcc
*)
9345 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9346 # as there is no search path for DLLs.
9347 hardcode_libdir_flag_spec
='-L$libdir'
9348 export_dynamic_flag_spec
='$wl--export-all-symbols'
9349 allow_undefined_flag
=unsupported
9350 always_export_symbols
=no
9351 enable_shared_with_static_runtimes
=yes
9352 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'
9353 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9355 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9356 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9357 # If the export-symbols file already is a .def file, use it as
9358 # is; otherwise, prepend EXPORTS...
9359 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9360 cp $export_symbols $output_objdir/$soname.def;
9362 echo EXPORTS > $output_objdir/$soname.def;
9363 cat $export_symbols >> $output_objdir/$soname.def;
9365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 link_all_deplibs
=yes
9377 hardcode_libdir_flag_spec
='-L$libdir'
9378 hardcode_minus_L
=yes
9379 allow_undefined_flag
=unsupported
9381 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9382 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9383 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9384 $ECHO EXPORTS >> $output_objdir/$libname.def~
9385 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9387 emximp -o $lib $output_objdir/$libname.def'
9388 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9391 $ECHO EXPORTS >> $output_objdir/$libname.def~
9393 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9394 prefix_cmds="$prefix_cmds -e 1d";
9396 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9397 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9399 emximp -o $lib $output_objdir/$libname.def'
9400 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9401 enable_shared_with_static_runtimes
=yes
9406 hardcode_shlibpath_var
=no
9407 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9408 export_dynamic_flag_spec
='$wl-E'
9409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9410 # Instead, shared libraries are loaded at an image base (0x10000000 by
9411 # default) and relocated if they conflict, which is a slow very memory
9412 # consuming and fragmenting process. To avoid this, we pick a random,
9413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9415 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9416 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'
9419 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9421 if test linux-dietlibc
= "$host_os"; then
9422 case $cc_basename in
9423 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9426 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9427 && test no
= "$tmp_diet"
9429 tmp_addflag
=' $pic_flag'
9430 tmp_sharedflag
='-shared'
9431 case $cc_basename,$host_cpu in
9432 pgcc
*) # Portland Group C compiler
9433 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'
9434 tmp_addflag
=' $pic_flag'
9436 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9437 # Portland Group f77 and f90 compilers
9438 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'
9439 tmp_addflag
=' $pic_flag -Mnomain' ;;
9440 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9441 tmp_addflag
=' -i_dynamic' ;;
9442 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9443 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9444 ifc
* | ifort
*) # Intel Fortran compiler
9445 tmp_addflag
=' -nofor_main' ;;
9446 lf95
*) # Lahey Fortran 8.1
9447 whole_archive_flag_spec
=
9448 tmp_sharedflag
='--shared' ;;
9449 nagfor
*) # NAGFOR 5.3
9450 tmp_sharedflag
='-Wl,-shared' ;;
9451 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9452 tmp_sharedflag
='-qmkshrobj'
9454 nvcc
*) # Cuda Compiler Driver 2.2
9455 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'
9456 compiler_needs_object
=yes
9459 case `$CC -V 2>&1 | sed 5q` in
9460 *Sun\ C
*) # Sun C 5.9
9461 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'
9462 compiler_needs_object
=yes
9463 tmp_sharedflag
='-G' ;;
9464 *Sun\ F
*) # Sun Fortran 8.3
9465 tmp_sharedflag
='-G' ;;
9467 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9469 if test yes = "$supports_anon_versioning"; then
9470 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9472 echo "local: *; };" >> $output_objdir/$libname.ver~
9473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9476 case $cc_basename in
9478 export_dynamic_flag_spec
='-rdynamic'
9480 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9481 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9482 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9483 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9484 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9485 if test yes = "$supports_anon_versioning"; then
9486 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9488 echo "local: *; };" >> $output_objdir/$libname.ver~
9489 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9498 netbsd
* | netbsdelf
*-gnu)
9499 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9500 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9504 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9509 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9514 *** create shared libraries on Solaris systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.9.1 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9521 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9522 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9523 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9529 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9530 case `$LD -v 2>&1` in
9531 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9536 *** reliably create shared libraries on SCO systems. Therefore, libtool
9537 *** is disabling shared libraries support. We urge you to upgrade GNU
9538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9539 *** your PATH or compiler configuration so that the native linker is
9540 *** used, and then restart.
9545 # For security reasons, it is highly recommended that you always
9546 # use absolute paths for naming shared libraries, and exclude the
9547 # DT_RUNPATH tag from executables and libraries. But doing so
9548 # requires that you compile everything twice, which is a pain.
9549 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9550 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9551 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_shlibpath_var
=no
9568 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9569 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9577 if test no
= "$ld_shlibs"; then
9579 hardcode_libdir_flag_spec
=
9580 export_dynamic_flag_spec
=
9581 whole_archive_flag_spec
=
9584 # PORTME fill in a description of your system's linker (not GNU ld)
9587 allow_undefined_flag
=unsupported
9588 always_export_symbols
=yes
9589 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'
9590 # Note: this linker hardcodes the directories in LIBPATH if there
9591 # are no directories specified by -L.
9592 hardcode_minus_L
=yes
9593 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9594 # Neither direct hardcoding nor static linking is supported with a
9596 hardcode_direct
=unsupported
9601 if test ia64
= "$host_cpu"; then
9602 # On IA64, the linker does run time linking by default, so we don't
9603 # have to do anything special.
9604 aix_use_runtimelinking
=no
9605 exp_sym_flag
='-Bexport'
9608 # If we're using GNU nm, then we don't want the "-C" option.
9609 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9610 # Without the "-l" option, or with the "-B" option, AIX nm treats
9611 # weak defined symbols like other global defined symbols, whereas
9612 # GNU nm marks them as "W".
9613 # While the 'weak' keyword is ignored in the Export File, we need
9614 # it in the Import File for the 'aix-soname' feature, so we have
9615 # to replace the "-B" option with "-P" for AIX nm.
9616 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9617 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'
9619 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'
9621 aix_use_runtimelinking
=no
9623 # Test if we are trying to use run time linking or normal
9624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625 # have runtime linking enabled, and use it for executables.
9626 # For shared libraries, we enable/disable runtime linking
9627 # depending on the kind of the shared library created -
9628 # when "with_aix_soname,aix_use_runtimelinking" is:
9629 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9630 # "aix,yes" lib.so shared, rtl:yes, for executables
9631 # lib.a static archive
9632 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9633 # lib.a(lib.so.V) shared, rtl:no, for executables
9634 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9635 # lib.a(lib.so.V) shared, rtl:no
9636 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9637 # lib.a static archive
9638 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9639 for ld_flag
in $LDFLAGS; do
9640 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9641 aix_use_runtimelinking
=yes
9645 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9646 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9647 # so we don't have lib.a shared libs to link our executables.
9648 # We have to force runtime linking in this case.
9649 aix_use_runtimelinking
=yes
9650 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9655 exp_sym_flag
='-bexport'
9656 no_entry_flag
='-bnoentry'
9659 # When large executables or shared objects are built, AIX ld can
9660 # have problems creating the table of contents. If linking a library
9661 # or program results in "error TOC overflow" add -mminimal-toc to
9662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9667 hardcode_direct_absolute
=yes
9668 hardcode_libdir_separator
=':'
9669 link_all_deplibs
=yes
9670 file_list_spec
='$wl-f,'
9671 case $with_aix_soname,$aix_use_runtimelinking in
9672 aix
,*) ;; # traditional, no import file
9673 svr4
,* |
*,yes) # use import file
9674 # The Import File defines what to hardcode.
9676 hardcode_direct_absolute
=no
9680 if test yes = "$GCC"; then
9681 case $host_os in aix4.
[012]|aix4.
[012].
*)
9682 # We only want to do this on AIX 4.2 and lower, the check
9683 # below for broken collect2 doesn't work under 4.3+
9684 collect2name
=`$CC -print-prog-name=collect2`
9685 if test -f "$collect2name" &&
9686 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9688 # We have reworked collect2
9691 # We have old collect2
9692 hardcode_direct
=unsupported
9693 # It fails to find uninstalled libraries when the uninstalled
9694 # path is not listed in the libpath. Setting hardcode_minus_L
9695 # to unsupported forces relinking
9696 hardcode_minus_L
=yes
9697 hardcode_libdir_flag_spec
='-L$libdir'
9698 hardcode_libdir_separator
=
9702 shared_flag
='-shared'
9703 if test yes = "$aix_use_runtimelinking"; then
9704 shared_flag
="$shared_flag "'$wl-G'
9706 # Need to ensure runtime linking is disabled for the traditional
9707 # shared library, or the linker may eventually find shared libraries
9708 # /with/ Import File - we do not want to mix them.
9709 shared_flag_aix
='-shared'
9710 shared_flag_svr4
='-shared $wl-G'
9713 if test ia64
= "$host_cpu"; then
9714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9715 # chokes on -Wl,-G. The following line is correct:
9718 if test yes = "$aix_use_runtimelinking"; then
9721 shared_flag
='$wl-bM:SRE'
9723 shared_flag_aix
='$wl-bM:SRE'
9724 shared_flag_svr4
='$wl-G'
9728 export_dynamic_flag_spec
='$wl-bexpall'
9729 # It seems that -bexpall does not export symbols beginning with
9730 # underscore (_), so it is better to generate a list of symbols to export.
9731 always_export_symbols
=yes
9732 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9733 # Warning - without using the other runtime loading flags (-brtl),
9734 # -berok will link without error, but may produce a broken library.
9735 allow_undefined_flag
='-berok'
9736 # Determine the default libpath from the value encoded in an
9738 if test set = "${lt_cv_aix_libpath+set}"; then
9739 aix_libpath
=$lt_cv_aix_libpath
9741 if ${lt_cv_aix_libpath_+:} false
; then :
9742 $as_echo_n "(cached) " >&6
9744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9755 if ac_fn_c_try_link
"$LINENO"; then :
9757 lt_aix_libpath_sed
='
9758 /Import File Strings/,/^$/ {
9760 s/^0 *\([^ ]*\) *$/\1/
9764 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 # Check for a 64-bit object if we didn't find anything.
9766 if test -z "$lt_cv_aix_libpath_"; then
9767 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 rm -f core conftest.err conftest.
$ac_objext \
9771 conftest
$ac_exeext conftest.
$ac_ext
9772 if test -z "$lt_cv_aix_libpath_"; then
9773 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9778 aix_libpath
=$lt_cv_aix_libpath_
9781 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9782 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
9784 if test ia64
= "$host_cpu"; then
9785 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9786 allow_undefined_flag
="-z nodefs"
9787 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"
9789 # Determine the default libpath from the value encoded in an
9791 if test set = "${lt_cv_aix_libpath+set}"; then
9792 aix_libpath
=$lt_cv_aix_libpath
9794 if ${lt_cv_aix_libpath_+:} false
; then :
9795 $as_echo_n "(cached) " >&6
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9808 if ac_fn_c_try_link
"$LINENO"; then :
9810 lt_aix_libpath_sed
='
9811 /Import File Strings/,/^$/ {
9813 s/^0 *\([^ ]*\) *$/\1/
9817 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9818 # Check for a 64-bit object if we didn't find anything.
9819 if test -z "$lt_cv_aix_libpath_"; then
9820 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 rm -f core conftest.err conftest.
$ac_objext \
9824 conftest
$ac_exeext conftest.
$ac_ext
9825 if test -z "$lt_cv_aix_libpath_"; then
9826 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9831 aix_libpath
=$lt_cv_aix_libpath_
9834 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9835 # Warning - without using the other run time loading flags,
9836 # -berok will link without error, but may produce a broken library.
9837 no_undefined_flag
=' $wl-bernotok'
9838 allow_undefined_flag
=' $wl-berok'
9839 if test yes = "$with_gnu_ld"; then
9840 # We only use this code for GNU lds that support --whole-archive.
9841 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9843 # Exported symbols can be pulled into shared objects from archives
9844 whole_archive_flag_spec
='$convenience'
9846 archive_cmds_need_lc
=yes
9847 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9848 # -brtl affects multiple linker settings, -berok does not and is overridden later
9849 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9850 if test svr4
!= "$with_aix_soname"; then
9851 # This is similar to how AIX traditionally builds its shared libraries.
9852 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'
9854 if test aix
!= "$with_aix_soname"; then
9855 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'
9857 # used by -dlpreopen to get the symbols
9858 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9860 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9870 archive_expsym_cmds
=''
9873 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)'
9874 hardcode_libdir_flag_spec
='-L$libdir'
9875 hardcode_minus_L
=yes
9881 export_dynamic_flag_spec
=-rdynamic
9884 cygwin
* | mingw
* | pw32
* | cegcc
*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 case $cc_basename in
9892 hardcode_libdir_flag_spec
=' '
9893 allow_undefined_flag
=unsupported
9894 always_export_symbols
=yes
9896 # Tell ltmain to make .lib files, not .a files.
9898 # Tell ltmain to make .dll files, not .so files.
9900 # FIXME: Setting linknames here is a bad hack.
9901 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9902 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9903 cp "$export_symbols" "$output_objdir/$soname.def";
9904 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9906 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9910 # The linker will not automatically build a static lib if we build a DLL.
9911 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9912 enable_shared_with_static_runtimes
=yes
9913 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9914 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9916 old_postinstall_cmds
='chmod 644 $oldlib'
9917 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9918 lt_tool_outputfile="@TOOL_OUTPUT@"~
9919 case $lt_outputfile in
9922 lt_outputfile=$lt_outputfile.exe
9923 lt_tool_outputfile=$lt_tool_outputfile.exe
9926 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9927 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9928 $RM "$lt_outputfile.manifest";
9932 # Assume MSVC wrapper
9933 hardcode_libdir_flag_spec
=' '
9934 allow_undefined_flag
=unsupported
9935 # Tell ltmain to make .lib files, not .a files.
9937 # Tell ltmain to make .dll files, not .so files.
9939 # FIXME: Setting linknames here is a bad hack.
9940 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9941 # The linker will automatically build a .lib file if we build a DLL.
9942 old_archive_from_new_cmds
='true'
9943 # FIXME: Should let the user specify the lib program.
9944 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9945 enable_shared_with_static_runtimes
=yes
9950 darwin
* | rhapsody
*)
9953 archive_cmds_need_lc
=no
9955 hardcode_automatic
=yes
9956 hardcode_shlibpath_var
=unsupported
9957 if test yes = "$lt_cv_ld_force_load"; then
9958 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\"`'
9961 whole_archive_flag_spec
=''
9963 link_all_deplibs
=yes
9964 allow_undefined_flag
=$_lt_dar_allow_undefined
9965 case $cc_basename in
9966 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9967 *) _lt_dar_can_shared
=$GCC ;;
9969 if test yes = "$_lt_dar_can_shared"; then
9970 output_verbose_link_cmd
=func_echo_all
9971 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9972 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9973 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"
9974 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"
9983 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_libdir_flag_spec
='-L$libdir'
9985 hardcode_shlibpath_var
=no
9988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9989 # support. Future versions do this automatically, but an explicit c++rt0.o
9990 # does not break anything, and helps significantly (at the cost of a little
9993 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9994 hardcode_libdir_flag_spec
='-R$libdir'
9996 hardcode_shlibpath_var
=no
9999 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10001 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_direct
=yes
10003 hardcode_minus_L
=yes
10004 hardcode_shlibpath_var
=no
10007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10008 freebsd
* | dragonfly
*)
10009 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010 hardcode_libdir_flag_spec
='-R$libdir'
10011 hardcode_direct
=yes
10012 hardcode_shlibpath_var
=no
10016 if test yes = "$GCC"; then
10017 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'
10019 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'
10021 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10022 hardcode_libdir_separator
=:
10023 hardcode_direct
=yes
10025 # hardcode_minus_L: Not really in the search PATH,
10026 # but as the default location of the library.
10027 hardcode_minus_L
=yes
10028 export_dynamic_flag_spec
='$wl-E'
10032 if test yes,no
= "$GCC,$with_gnu_ld"; then
10033 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10037 if test no
= "$with_gnu_ld"; then
10038 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10039 hardcode_libdir_separator
=:
10040 hardcode_direct
=yes
10041 hardcode_direct_absolute
=yes
10042 export_dynamic_flag_spec
='$wl-E'
10043 # hardcode_minus_L: Not really in the search PATH,
10044 # but as the default location of the library.
10045 hardcode_minus_L
=yes
10050 if test yes,no
= "$GCC,$with_gnu_ld"; then
10053 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10072 # Older versions of the 11.00 compiler do not understand -b yet
10073 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10075 $as_echo_n "checking if $CC understands -b... " >&6; }
10076 if ${lt_cv_prog_compiler__b+:} false
; then :
10077 $as_echo_n "(cached) " >&6
10079 lt_cv_prog_compiler__b
=no
10080 save_LDFLAGS
=$LDFLAGS
10081 LDFLAGS
="$LDFLAGS -b"
10082 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10083 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10084 # The linker can only warn and ignore the option if not recognized
10085 # So say no if there are warnings
10086 if test -s conftest.err
; then
10087 # Append any errors to the config.log.
10088 cat conftest.err
1>&5
10089 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10090 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10091 if diff conftest.exp conftest.er2
>/dev
/null
; then
10092 lt_cv_prog_compiler__b
=yes
10095 lt_cv_prog_compiler__b
=yes
10099 LDFLAGS
=$save_LDFLAGS
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10103 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10105 if test yes = "$lt_cv_prog_compiler__b"; then
10106 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10114 if test no
= "$with_gnu_ld"; then
10115 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10116 hardcode_libdir_separator
=:
10121 hardcode_shlibpath_var
=no
10124 hardcode_direct
=yes
10125 hardcode_direct_absolute
=yes
10126 export_dynamic_flag_spec
='$wl-E'
10128 # hardcode_minus_L: Not really in the search PATH,
10129 # but as the default location of the library.
10130 hardcode_minus_L
=yes
10136 irix5
* | irix6
* | nonstopux
*)
10137 if test yes = "$GCC"; then
10138 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'
10139 # Try to use the -exported_symbol ld option, if it does not
10140 # work, assume that -exports_file does not work either and
10141 # implicitly export all symbols.
10142 # This should be the same for all languages, so no per-tag cache variable.
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10144 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10145 if ${lt_cv_irix_exported_symbol+:} false
; then :
10146 $as_echo_n "(cached) " >&6
10148 save_LDFLAGS
=$LDFLAGS
10149 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int foo (void) { return 0; }
10154 if ac_fn_c_try_link
"$LINENO"; then :
10155 lt_cv_irix_exported_symbol
=yes
10157 lt_cv_irix_exported_symbol
=no
10159 rm -f core conftest.err conftest.
$ac_objext \
10160 conftest
$ac_exeext conftest.
$ac_ext
10161 LDFLAGS
=$save_LDFLAGS
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10164 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10165 if test yes = "$lt_cv_irix_exported_symbol"; then
10166 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'
10168 link_all_deplibs
=no
10170 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'
10171 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'
10173 archive_cmds_need_lc
='no'
10174 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10175 hardcode_libdir_separator
=:
10177 link_all_deplibs
=yes
10181 case $cc_basename in
10183 # Fabrice Bellard et al's Tiny C Compiler
10185 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10190 netbsd
* | netbsdelf
*-gnu)
10191 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10192 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10194 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10196 hardcode_libdir_flag_spec
='-R$libdir'
10197 hardcode_direct
=yes
10198 hardcode_shlibpath_var
=no
10202 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_direct
=yes
10204 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10205 hardcode_libdir_separator
=:
10206 hardcode_shlibpath_var
=no
10212 openbsd
* | bitrig
*)
10213 if test -f /usr
/libexec
/ld.so
; then
10214 hardcode_direct
=yes
10215 hardcode_shlibpath_var
=no
10216 hardcode_direct_absolute
=yes
10217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10218 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10220 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10221 export_dynamic_flag_spec
='$wl-E'
10223 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10232 hardcode_libdir_flag_spec
='-L$libdir'
10233 hardcode_minus_L
=yes
10234 allow_undefined_flag
=unsupported
10236 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10237 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10238 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10239 $ECHO EXPORTS >> $output_objdir/$libname.def~
10240 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10241 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10242 emximp -o $lib $output_objdir/$libname.def'
10243 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10246 $ECHO EXPORTS >> $output_objdir/$libname.def~
10247 prefix_cmds="$SED"~
10248 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10249 prefix_cmds="$prefix_cmds -e 1d";
10251 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10252 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10254 emximp -o $lib $output_objdir/$libname.def'
10255 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10256 enable_shared_with_static_runtimes
=yes
10260 if test yes = "$GCC"; then
10261 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10262 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'
10264 allow_undefined_flag
=' -expect_unresolved \*'
10265 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'
10267 archive_cmds_need_lc
='no'
10268 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10269 hardcode_libdir_separator
=:
10272 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10273 if test yes = "$GCC"; then
10274 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10275 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'
10276 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10278 allow_undefined_flag
=' -expect_unresolved \*'
10279 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'
10280 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~
10281 $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'
10283 # Both c and cxx compiler support -rpath directly
10284 hardcode_libdir_flag_spec
='-rpath $libdir'
10286 archive_cmds_need_lc
='no'
10287 hardcode_libdir_separator
=:
10291 no_undefined_flag
=' -z defs'
10292 if test yes = "$GCC"; then
10294 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $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'
10298 case `$CC -V 2>&1` in
10301 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313 hardcode_libdir_flag_spec
='-R$libdir'
10314 hardcode_shlibpath_var
=no
10316 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10318 # The compiler driver will combine and reorder linker options,
10319 # but understands '-z linker_flag'. GCC discards it without '$wl',
10320 # but is careful enough not to reorder.
10321 # Supported since Solaris 2.6 (maybe 2.5.1?)
10322 if test yes = "$GCC"; then
10323 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10325 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10329 link_all_deplibs
=yes
10333 if test sequent
= "$host_vendor"; then
10334 # Use $CC to link under sequent, because it throws in some extra .o
10335 # files that make .init and .fini sections work.
10336 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_libdir_flag_spec
='-L$libdir'
10341 hardcode_direct
=yes
10342 hardcode_minus_L
=yes
10343 hardcode_shlibpath_var
=no
10347 case $host_vendor in
10349 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_direct
=yes # is this really true???
10353 ## LD is ld it makes a PLAMLIB
10354 ## CC just makes a GrossModule.
10355 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356 reload_cmds
='$CC -r -o $output$reload_objs'
10360 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10364 runpath_var
='LD_RUN_PATH'
10365 hardcode_shlibpath_var
=no
10369 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var
=no
10371 export_dynamic_flag_spec
='-Bexport'
10375 if test -d /usr
/nec
; then
10376 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_shlibpath_var
=no
10378 runpath_var
=LD_RUN_PATH
10379 hardcode_runpath_var
=yes
10384 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10385 no_undefined_flag
='$wl-z,text'
10386 archive_cmds_need_lc
=no
10387 hardcode_shlibpath_var
=no
10388 runpath_var
='LD_RUN_PATH'
10390 if test yes = "$GCC"; then
10391 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 sysv5
* | sco3.2v5
* | sco5v6
*)
10400 # Note: We CANNOT use -z defs as we might desire, because we do not
10401 # link with -lc, and that would cause any symbols used from libc to
10402 # always be unresolved, which means just about no library would
10403 # ever link correctly. If we're not using GNU ld we use -z text
10404 # though, which does catch some bad symbols but isn't as heavy-handed
10406 no_undefined_flag
='$wl-z,text'
10407 allow_undefined_flag
='$wl-z,nodefs'
10408 archive_cmds_need_lc
=no
10409 hardcode_shlibpath_var
=no
10410 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10411 hardcode_libdir_separator
=':'
10412 link_all_deplibs
=yes
10413 export_dynamic_flag_spec
='$wl-Bexport'
10414 runpath_var
='LD_RUN_PATH'
10416 if test yes = "$GCC"; then
10417 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec
='-L$libdir'
10428 hardcode_shlibpath_var
=no
10436 if test sni
= "$host_vendor"; then
10438 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10439 export_dynamic_flag_spec
='$wl-Blargedynsym'
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test no
= "$ld_shlibs" && can_build_shared
=no
10449 with_gnu_ld
=$with_gnu_ld
10466 # Do we need to explicitly link libc?
10468 case "x$archive_cmds_need_lc" in
10470 # Assume -lc should be added
10471 archive_cmds_need_lc
=yes
10473 if test yes,yes = "$GCC,$enable_shared"; then
10474 case $archive_cmds in
10476 # FIXME: we may have to deal with multi-command sequences.
10479 # Test whether the compiler implicitly links with -lc since on some
10480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481 # to ld, don't add -lc before -lgcc.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10485 $as_echo_n "(cached) " >&6
10488 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491 (eval $ac_compile) 2>&5
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } 2>conftest.err
; then
10497 libobjs
=conftest.
$ac_objext
10499 wl
=$lt_prog_compiler_wl
10500 pic_flag
=$lt_prog_compiler_pic
10506 lt_save_allow_undefined_flag
=$allow_undefined_flag
10507 allow_undefined_flag
=
10508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512 test $ac_status = 0; }
10514 lt_cv_archive_cmds_need_lc
=no
10516 lt_cv_archive_cmds_need_lc
=yes
10518 allow_undefined_flag
=$lt_save_allow_undefined_flag
10520 cat conftest.err
1>&5
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688 if test yes = "$GCC"; then
10690 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10691 *) lt_awk_arg
='/^libraries:/' ;;
10694 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10695 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10697 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10698 case $lt_search_path_spec in
10700 # if the path contains ";" then we assume it to be the separator
10701 # otherwise default to the standard path separator (i.e. ":") - it is
10702 # assumed that no part of a normal pathname contains ";" but that should
10703 # okay in the real world where ";" in dirpaths is itself problematic.
10704 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10707 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10710 # Ok, now we have the path, separated by spaces, we can step through it
10711 # and add multilib dir if necessary...
10712 lt_tmp_lt_search_path_spec
=
10713 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714 # ...but if some path component already ends with the multilib dir we assume
10715 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10716 case "$lt_multi_os_dir; $lt_search_path_spec " in
10717 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10721 for lt_sys_path
in $lt_search_path_spec; do
10722 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10723 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10724 elif test -n "$lt_multi_os_dir"; then
10725 test -d "$lt_sys_path" && \
10726 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10729 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10730 BEGIN {RS = " "; FS = "/|\n";} {
10733 for (lt_i = NF; lt_i > 0; lt_i--) {
10734 if ($lt_i != "" && $lt_i != ".") {
10735 if ($lt_i == "..") {
10738 if (lt_count == 0) {
10739 lt_foo = "/" $lt_i lt_foo;
10746 if (lt_foo != "") { lt_freq[lt_foo]++; }
10747 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10749 # AWK program above erroneously prepends '/' to C:/dos/paths
10752 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10753 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10755 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10757 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10759 library_names_spec
=
10760 libname_spec
='lib$name'
10764 postuninstall_cmds
=
10768 shlibpath_overrides_runpath
=unknown
10770 dynamic_linker
="$host_os ld.so"
10771 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10772 need_lib_prefix
=unknown
10773 hardcode_into_libs
=no
10775 # when you set need_version to no, make sure it does not cause -set_version
10776 # flags to be left without arguments
10777 need_version
=unknown
10783 version_type
=linux
# correct to gnu/linux during the next big refactor
10784 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10785 shlibpath_var
=LIBPATH
10787 # AIX 3 has no versioning support, so we append a major version to the name.
10788 soname_spec
='$libname$release$shared_ext$major'
10792 version_type
=linux
# correct to gnu/linux during the next big refactor
10795 hardcode_into_libs
=yes
10796 if test ia64
= "$host_cpu"; then
10797 # AIX 5 supports IA64
10798 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10799 shlibpath_var
=LD_LIBRARY_PATH
10801 # With GCC up to 2.95.x, collect2 would create an import file
10802 # for dependence libraries. The import file would start with
10803 # the line '#! .'. This would cause the generated library to
10804 # depend on '.', always an invalid library. This was fixed in
10805 # development snapshots of GCC prior to 3.0.
10807 aix4 | aix4.
[01] | aix4.
[01].
*)
10808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10810 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10813 can_build_shared
=no
10817 # Using Import Files as archive members, it is possible to support
10818 # filename-based versioning of shared library archives on AIX. While
10819 # this would work for both with and without runtime linking, it will
10820 # prevent static linking of such archives. So we do filename-based
10821 # shared library versioning with .so extension only, which is used
10822 # when both runtime linking and shared linking is enabled.
10823 # Unfortunately, runtime linking may impact performance, so we do
10824 # not want this to be the default eventually. Also, we use the
10825 # versioned .so libs for executables only if there is the -brtl
10826 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10827 # To allow for filename-based versioning support, we need to create
10828 # libNAME.so.V as an archive file, containing:
10829 # *) an Import File, referring to the versioned filename of the
10830 # archive as well as the shared archive member, telling the
10831 # bitwidth (32 or 64) of that shared object, and providing the
10832 # list of exported symbols of that shared object, eventually
10833 # decorated with the 'weak' keyword
10834 # *) the shared object with the F_LOADONLY flag set, to really avoid
10835 # it being seen by the linker.
10836 # At run time we better use the real file rather than another symlink,
10837 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10839 case $with_aix_soname,$aix_use_runtimelinking in
10840 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10841 # soname into executable. Probably we can add versioning support to
10842 # collect2, so additional links can be useful in future.
10843 aix
,yes) # traditional libtool
10844 dynamic_linker
='AIX unversionable lib.so'
10845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10846 # instead of lib<name>.a to let people know that these are not
10847 # typical AIX shared libraries.
10848 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850 aix
,no
) # traditional AIX only
10851 dynamic_linker
='AIX lib.a(lib.so.V)'
10852 # We preserve .a as extension for shared libraries through AIX4.2
10853 # and later when we are not doing run time linking.
10854 library_names_spec
='$libname$release.a $libname.a'
10855 soname_spec
='$libname$release$shared_ext$major'
10857 svr4
,*) # full svr4 only
10858 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10859 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10860 # We do not specify a path in Import Files, so LIBPATH fires.
10861 shlibpath_overrides_runpath
=yes
10863 *,yes) # both, prefer svr4
10864 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10865 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10866 # unpreferred sharedlib libNAME.a needs extra handling
10867 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"'
10868 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"'
10869 # We do not specify a path in Import Files, so LIBPATH fires.
10870 shlibpath_overrides_runpath
=yes
10872 *,no
) # both, prefer aix
10873 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10874 library_names_spec
='$libname$release.a $libname.a'
10875 soname_spec
='$libname$release$shared_ext$major'
10876 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10877 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)'
10878 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"'
10881 shlibpath_var
=LIBPATH
10888 # Since July 2007 AmigaOS4 officially supports .so libraries.
10889 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10890 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 library_names_spec
='$libname.ixlibrary $libname.a'
10894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10895 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'
10901 library_names_spec
='$libname$shared_ext'
10902 dynamic_linker
="$host_os ld.so"
10903 shlibpath_var
=LIBRARY_PATH
10907 version_type
=linux
# correct to gnu/linux during the next big refactor
10909 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910 soname_spec
='$libname$release$shared_ext$major'
10911 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10912 shlibpath_var
=LD_LIBRARY_PATH
10913 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10914 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10915 # the default ld.so.conf also contains /usr/contrib/lib and
10916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10917 # libtool to hard-code these into programs
10920 cygwin
* | mingw
* | pw32
* | cegcc
*)
10921 version_type
=windows
10926 case $GCC,$cc_basename in
10929 library_names_spec
='$libname.dll.a'
10930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10931 postinstall_cmds
='base_file=`basename \$file`~
10932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10933 dldir=$destdir/`dirname \$dlpath`~
10934 test -d \$dldir || mkdir -p \$dldir~
10935 $install_prog $dir/$dlname \$dldir/$dlname~
10936 chmod a+x \$dldir/$dlname~
10937 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10938 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10940 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10941 dlpath=$dir/\$dldll~
10943 shlibpath_overrides_runpath
=yes
10947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10948 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10950 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10953 # MinGW DLLs use traditional 'lib' prefix
10954 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10957 # pw32 DLLs use 'pw' prefix rather than 'lib'
10958 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10961 dynamic_linker
='Win32 ld.exe'
10966 libname_spec
='$name'
10967 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10968 library_names_spec
='$libname.dll.lib'
10972 sys_lib_search_path_spec
=
10975 for lt_path
in $LIB
10978 # Let DOS variable expansion print the short 8.3 style file name.
10979 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10980 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10983 # Convert to MSYS style.
10984 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10987 # Convert to unix form, then to dos form, then back to unix form
10988 # but this time dos style (no spaces!) so that the unix form looks
10989 # like /cygdrive/c/PROGRA~1:/cygdr...
10990 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10991 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10992 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10995 sys_lib_search_path_spec
=$LIB
10996 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10997 # It is most probably a Windows format PATH.
10998 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11000 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11002 # FIXME: find the short name or the path components, as spaces are
11003 # common. (e.g. "Program Files" -> "PROGRA~1")
11007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11008 postinstall_cmds
='base_file=`basename \$file`~
11009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11010 dldir=$destdir/`dirname \$dlpath`~
11011 test -d \$dldir || mkdir -p \$dldir~
11012 $install_prog $dir/$dlname \$dldir/$dlname'
11013 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11014 dlpath=$dir/\$dldll~
11016 shlibpath_overrides_runpath
=yes
11017 dynamic_linker
='Win32 link.exe'
11021 # Assume MSVC wrapper
11022 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11023 dynamic_linker
='Win32 ld.exe'
11026 # FIXME: first we should search . and the directory the executable is in
11030 darwin
* | rhapsody
*)
11031 dynamic_linker
="$host_os dyld"
11032 version_type
=darwin
11035 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11036 soname_spec
='$libname$release$major$shared_ext'
11037 shlibpath_overrides_runpath
=yes
11038 shlibpath_var
=DYLD_LIBRARY_PATH
11039 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11041 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11042 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11046 version_type
=linux
# correct to gnu/linux during the next big refactor
11049 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050 soname_spec
='$libname$release$shared_ext$major'
11051 shlibpath_var
=LD_LIBRARY_PATH
11054 freebsd
* | dragonfly
*)
11055 # DragonFly does not have aout. When/if they implement a new
11056 # versioning mechanism, adjust this.
11057 if test -x /usr
/bin
/objformat
; then
11058 objformat
=`/usr/bin/objformat`
11061 freebsd
[23].
*) objformat
=aout
;;
11062 *) objformat
=elf
;;
11065 version_type
=freebsd-
$objformat
11066 case $version_type in
11068 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec
='$libname$release$shared_ext$major'
11074 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11078 shlibpath_var
=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath
=yes
11083 freebsd3.
[01]* | freebsdelf3.
[01]*)
11084 shlibpath_overrides_runpath
=yes
11085 hardcode_into_libs
=yes
11087 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11088 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11089 shlibpath_overrides_runpath
=no
11090 hardcode_into_libs
=yes
11092 *) # from 4.6 on, and DragonFly
11093 shlibpath_overrides_runpath
=yes
11094 hardcode_into_libs
=yes
11100 version_type
=linux
# correct to gnu/linux during the next big refactor
11103 dynamic_linker
="$host_os runtime_loader"
11104 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105 soname_spec
='$libname$release$shared_ext$major'
11106 shlibpath_var
=LIBRARY_PATH
11107 shlibpath_overrides_runpath
=no
11108 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11109 hardcode_into_libs
=yes
11112 hpux9
* | hpux10
* | hpux11
*)
11113 # Give a soname corresponding to the major version so that dld.sl refuses to
11114 # link against other versions.
11121 hardcode_into_libs
=yes
11122 dynamic_linker
="$host_os dld.so"
11123 shlibpath_var
=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11125 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec
='$libname$release$shared_ext$major'
11127 if test 32 = "$HPUX_IA64_MODE"; then
11128 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11129 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11131 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11132 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11137 hardcode_into_libs
=yes
11138 dynamic_linker
="$host_os dld.sl"
11139 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11140 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11141 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec
='$libname$release$shared_ext$major'
11143 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11144 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11148 dynamic_linker
="$host_os dld.sl"
11149 shlibpath_var
=SHLIB_PATH
11150 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11151 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152 soname_spec
='$libname$release$shared_ext$major'
11155 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11156 postinstall_cmds
='chmod 555 $lib'
11157 # or fails outright, so override atomically:
11158 install_override_mode
=555
11162 version_type
=linux
# correct to gnu/linux during the next big refactor
11165 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166 soname_spec
='$libname$release$shared_ext$major'
11167 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11168 shlibpath_var
=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath
=no
11170 hardcode_into_libs
=yes
11173 irix5
* | irix6
* | nonstopux
*)
11175 nonstopux
*) version_type
=nonstopux
;;
11177 if test yes = "$lt_cv_prog_gnu_ld"; then
11178 version_type
=linux
# correct to gnu/linux during the next big refactor
11185 soname_spec
='$libname$release$shared_ext$major'
11186 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11188 irix5
* | nonstopux
*)
11189 libsuff
= shlibsuff
=
11192 case $LD in # libtool.m4 will add one of these switches to LD
11193 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11194 libsuff
= shlibsuff
= libmagic
=32-bit;;
11195 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11196 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11197 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11198 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11199 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11203 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11204 shlibpath_overrides_runpath
=no
11205 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11206 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11207 hardcode_into_libs
=yes
11210 # No shared lib support for Linux oldld, aout, or coff.
11211 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11216 version_type
=none
# Android doesn't support versioned libraries.
11219 library_names_spec
='$libname$release$shared_ext'
11220 soname_spec
='$libname$release$shared_ext'
11222 shlibpath_var
=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath
=yes
11225 # This implies no fast_install, which is unacceptable.
11226 # Some rework will be needed to allow for fast_install
11227 # before this can be enabled.
11228 hardcode_into_libs
=yes
11230 dynamic_linker
='Android linker'
11231 # Don't embed -rpath directories since the linker doesn't support them.
11232 hardcode_libdir_flag_spec
='-L$libdir'
11235 # This must be glibc/ELF.
11236 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11237 version_type
=linux
# correct to gnu/linux during the next big refactor
11240 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec
='$libname$release$shared_ext$major'
11242 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11243 shlibpath_var
=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath
=no
11246 # Some binutils ld are patched to set DT_RUNPATH
11247 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11248 $as_echo_n "(cached) " >&6
11250 lt_cv_shlibpath_overrides_runpath
=no
11251 save_LDFLAGS
=$LDFLAGS
11252 save_libdir
=$libdir
11253 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11254 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11266 if ac_fn_c_try_link
"$LINENO"; then :
11267 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11268 lt_cv_shlibpath_overrides_runpath
=yes
11271 rm -f core conftest.err conftest.
$ac_objext \
11272 conftest
$ac_exeext conftest.
$ac_ext
11273 LDFLAGS
=$save_LDFLAGS
11274 libdir
=$save_libdir
11278 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11280 # This implies no fast_install, which is unacceptable.
11281 # Some rework will be needed to allow for fast_install
11282 # before this can be enabled.
11283 hardcode_into_libs
=yes
11285 # Ideally, we could use ldconfig to report *all* directores which are
11286 # searched for libraries, however this is still not possible. Aside from not
11287 # being certain /sbin/ldconfig is available, command
11288 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11289 # even though it is searched at run-time. Try to do the best guess by
11290 # appending ld.so.conf contents (and includes) to the search path.
11291 if test -f /etc
/ld.so.conf
; then
11292 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' ' '`
11293 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11296 # We used to test for /lib/ld.so.1 and disable shared libraries on
11297 # powerpc, because MkLinux only supported shared libraries with the
11298 # GNU dynamic linker. Since this was broken with cross compilers,
11299 # most powerpc-linux boxes support dynamic linking these days and
11300 # people can always --disable-shared, the test was removed, and we
11301 # assume the GNU/Linux dynamic linker is in use.
11302 dynamic_linker
='GNU/Linux ld.so'
11309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11310 soname_spec
='${libname}${release}${shared_ext}$major'
11311 shlibpath_var
=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath
=no
11313 hardcode_into_libs
=yes
11314 dynamic_linker
='NetBSD ld.elf_so'
11321 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11322 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11323 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11324 dynamic_linker
='NetBSD (a.out) ld.so'
11326 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327 soname_spec
='$libname$release$shared_ext$major'
11328 dynamic_linker
='NetBSD ld.elf_so'
11330 shlibpath_var
=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath
=yes
11332 hardcode_into_libs
=yes
11336 version_type
=linux
# correct to gnu/linux during the next big refactor
11337 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338 shlibpath_var
=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath
=yes
11346 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11347 soname_spec
='$libname$release$shared_ext$major'
11348 shlibpath_var
=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath
=no
11350 hardcode_into_libs
=yes
11351 dynamic_linker
='ldqnx.so'
11354 openbsd
* | bitrig
*)
11356 sys_lib_dlsearch_path_spec
=/usr
/lib
11358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11363 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11364 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365 shlibpath_var
=LD_LIBRARY_PATH
11366 shlibpath_overrides_runpath
=yes
11370 libname_spec
='$name'
11371 version_type
=windows
11375 # OS/2 can only load a DLL with a base name of 8 characters or less.
11376 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11377 v=$($ECHO $release$versuffix | tr -d .-);
11378 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11379 $ECHO $n$v`$shared_ext'
11380 library_names_spec
='${libname}_dll.$libext'
11381 dynamic_linker
='OS/2 ld.exe'
11382 shlibpath_var
=BEGINLIBPATH
11383 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11384 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11385 postinstall_cmds
='base_file=`basename \$file`~
11386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11387 dldir=$destdir/`dirname \$dlpath`~
11388 test -d \$dldir || mkdir -p \$dldir~
11389 $install_prog $dir/$dlname \$dldir/$dlname~
11390 chmod a+x \$dldir/$dlname~
11391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11394 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11395 dlpath=$dir/\$dldll~
11399 osf3
* | osf4
* | osf5
*)
11403 soname_spec
='$libname$release$shared_ext$major'
11404 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11405 shlibpath_var
=LD_LIBRARY_PATH
11406 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11407 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11415 version_type
=linux
# correct to gnu/linux during the next big refactor
11418 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11419 soname_spec
='$libname$release$shared_ext$major'
11420 shlibpath_var
=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath
=yes
11422 hardcode_into_libs
=yes
11423 # ldd complains unless libraries are executable
11424 postinstall_cmds
='chmod +x $lib'
11429 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11430 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11431 shlibpath_var
=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath
=yes
11433 if test yes = "$with_gnu_ld"; then
11440 version_type
=linux
# correct to gnu/linux during the next big refactor
11441 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442 soname_spec
='$libname$release$shared_ext$major'
11443 shlibpath_var
=LD_LIBRARY_PATH
11444 case $host_vendor in
11446 shlibpath_overrides_runpath
=no
11448 runpath_var
=LD_RUN_PATH
11456 shlibpath_overrides_runpath
=no
11457 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11463 if test -d /usr
/nec
; then
11464 version_type
=linux
# correct to gnu/linux during the next big refactor
11465 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11466 soname_spec
='$libname$shared_ext.$major'
11467 shlibpath_var
=LD_LIBRARY_PATH
11471 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11475 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11476 soname_spec
='$libname$release$shared_ext$major'
11477 shlibpath_var
=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath
=yes
11479 hardcode_into_libs
=yes
11480 if test yes = "$with_gnu_ld"; then
11481 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11483 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11486 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11490 sys_lib_dlsearch_path_spec
='/usr/lib'
11494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11495 version_type
=linux
# correct to gnu/linux during the next big refactor
11498 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 shlibpath_var
=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath
=no
11501 hardcode_into_libs
=yes
11505 version_type
=linux
# correct to gnu/linux during the next big refactor
11506 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec
='$libname$release$shared_ext$major'
11508 shlibpath_var
=LD_LIBRARY_PATH
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11516 $as_echo "$dynamic_linker" >&6; }
11517 test no
= "$dynamic_linker" && can_build_shared
=no
11519 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11520 if test yes = "$GCC"; then
11521 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11524 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11525 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11528 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11529 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11532 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11533 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11535 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11536 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11538 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11539 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11638 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11640 if test -n "$hardcode_libdir_flag_spec" ||
11641 test -n "$runpath_var" ||
11642 test yes = "$hardcode_automatic"; then
11644 # We can hardcode non-existent directories.
11645 if test no
!= "$hardcode_direct" &&
11646 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11647 # have to relink, otherwise we might link with an installed library
11648 # when we should be linking with a yet-to-be-installed one
11649 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11650 test no
!= "$hardcode_minus_L"; then
11651 # Linking always hardcodes the temporary library directory.
11652 hardcode_action
=relink
11654 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11655 hardcode_action
=immediate
11658 # We cannot hardcode anything, or else we can only hardcode existing
11660 hardcode_action
=unsupported
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11663 $as_echo "$hardcode_action" >&6; }
11665 if test relink
= "$hardcode_action" ||
11666 test yes = "$inherit_rpath"; then
11667 # Fast installation is not supported
11668 enable_fast_install
=no
11669 elif test yes = "$shlibpath_overrides_runpath" ||
11670 test no
= "$enable_shared"; then
11671 # Fast installation is not necessary
11672 enable_fast_install
=needless
11680 if test yes != "$enable_dlopen"; then
11681 enable_dlopen
=unknown
11682 enable_dlopen_self
=unknown
11683 enable_dlopen_self_static
=unknown
11690 lt_cv_dlopen
=load_add_on
11692 lt_cv_dlopen_self
=yes
11695 mingw
* | pw32
* | cegcc
*)
11696 lt_cv_dlopen
=LoadLibrary
11701 lt_cv_dlopen
=dlopen
11706 # if libdl is installed we need to link against it
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11709 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11710 $as_echo_n "(cached) " >&6
11712 ac_check_lib_save_LIBS
=$LIBS
11714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11732 if ac_fn_c_try_link
"$LINENO"; then :
11733 ac_cv_lib_dl_dlopen
=yes
11735 ac_cv_lib_dl_dlopen
=no
11737 rm -f core conftest.err conftest.
$ac_objext \
11738 conftest
$ac_exeext conftest.
$ac_ext
11739 LIBS
=$ac_check_lib_save_LIBS
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11743 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11744 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11749 lt_cv_dlopen_self
=yes
11756 # Don't try to run any link tests for TPF. We know it's impossible
11757 # because TPF is a cross-compiler, and we know how we open DSOs.
11758 lt_cv_dlopen
=dlopen
11760 lt_cv_dlopen_self
=no
11764 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes
; then :
11766 lt_cv_dlopen
=shl_load
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11771 $as_echo_n "(cached) " >&6
11773 ac_check_lib_save_LIBS
=$LIBS
11775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11788 return shl_load ();
11793 if ac_fn_c_try_link
"$LINENO"; then :
11794 ac_cv_lib_dld_shl_load
=yes
11796 ac_cv_lib_dld_shl_load
=no
11798 rm -f core conftest.err conftest.
$ac_objext \
11799 conftest
$ac_exeext conftest.
$ac_ext
11800 LIBS
=$ac_check_lib_save_LIBS
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11805 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11807 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes
; then :
11809 lt_cv_dlopen
=dlopen
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11814 $as_echo_n "(cached) " >&6
11816 ac_check_lib_save_LIBS
=$LIBS
11818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11836 if ac_fn_c_try_link
"$LINENO"; then :
11837 ac_cv_lib_dl_dlopen
=yes
11839 ac_cv_lib_dl_dlopen
=no
11841 rm -f core conftest.err conftest.
$ac_objext \
11842 conftest
$ac_exeext conftest.
$ac_ext
11843 LIBS
=$ac_check_lib_save_LIBS
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11848 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_check_lib_save_LIBS
=$LIBS
11856 LIBS
="-lsvld $LIBS"
11857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11875 if ac_fn_c_try_link
"$LINENO"; then :
11876 ac_cv_lib_svld_dlopen
=yes
11878 ac_cv_lib_svld_dlopen
=no
11880 rm -f core conftest.err conftest.
$ac_objext \
11881 conftest
$ac_exeext conftest.
$ac_ext
11882 LIBS
=$ac_check_lib_save_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11887 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11892 $as_echo_n "(cached) " >&6
11894 ac_check_lib_save_LIBS
=$LIBS
11896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11909 return dld_link ();
11914 if ac_fn_c_try_link
"$LINENO"; then :
11915 ac_cv_lib_dld_dld_link
=yes
11917 ac_cv_lib_dld_dld_link
=no
11919 rm -f core conftest.err conftest.
$ac_objext \
11920 conftest
$ac_exeext conftest.
$ac_ext
11921 LIBS
=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11926 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11947 if test no
= "$lt_cv_dlopen"; then
11953 case $lt_cv_dlopen in
11955 save_CPPFLAGS
=$CPPFLAGS
11956 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11958 save_LDFLAGS
=$LDFLAGS
11959 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11962 LIBS
="$lt_cv_dlopen_libs $LIBS"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false
; then :
11967 $as_echo_n "(cached) " >&6
11969 if test yes = "$cross_compiling"; then :
11970 lt_cv_dlopen_self
=cross
11972 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11973 lt_status
=$lt_dlunknown
11974 cat > conftest.
$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11985 # define LT_DLGLOBAL RTLD_GLOBAL
11988 # define LT_DLGLOBAL DL_GLOBAL
11990 # define LT_DLGLOBAL 0
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995 find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12001 # define LT_DLLAZY_OR_NOW DL_LAZY
12004 # define LT_DLLAZY_OR_NOW RTLD_NOW
12007 # define LT_DLLAZY_OR_NOW DL_NOW
12009 # define LT_DLLAZY_OR_NOW 0
12016 /* When -fvisibility=hidden is used, assume the code has been annotated
12017 correspondingly for the symbols needed. */
12018 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12022 int fnord () { return 42; }
12025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026 int status = $lt_dlunknown;
12030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12034 else puts (dlerror ());
12036 /* dlclose (self); */
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045 (eval $ac_link) 2>&5
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12049 (.
/conftest
; exit; ) >&5 2>/dev
/null
12051 case x
$lt_status in
12052 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12053 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12054 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12057 # compilation failed
12058 lt_cv_dlopen_self
=no
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12068 if test yes = "$lt_cv_dlopen_self"; then
12069 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false
; then :
12073 $as_echo_n "(cached) " >&6
12075 if test yes = "$cross_compiling"; then :
12076 lt_cv_dlopen_self_static
=cross
12078 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12079 lt_status
=$lt_dlunknown
12080 cat > conftest.
$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12096 # define LT_DLGLOBAL 0
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12115 # define LT_DLLAZY_OR_NOW 0
12122 /* When -fvisibility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12128 int fnord () { return 42; }
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12142 /* dlclose (self); */
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12155 (.
/conftest
; exit; ) >&5 2>/dev
/null
12157 case x
$lt_status in
12158 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12159 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12160 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12163 # compilation failed
12164 lt_cv_dlopen_self_static
=no
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12175 CPPFLAGS
=$save_CPPFLAGS
12176 LDFLAGS
=$save_LDFLAGS
12181 case $lt_cv_dlopen_self in
12182 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12183 *) enable_dlopen_self
=unknown
;;
12186 case $lt_cv_dlopen_self_static in
12187 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12188 *) enable_dlopen_self_static
=unknown
;;
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12213 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12214 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12218 # FIXME - insert some real tests, host_os isn't really good enough
12221 if test -n "$STRIP"; then
12222 striplib
="$STRIP -x"
12223 old_striplib
="$STRIP -S"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12249 # Report what library types will actually be built
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257 test no
= "$can_build_shared" && enable_shared
=no
12259 # On AIX, shared libraries and static libraries use the same namespace, and
12260 # are all built from PIC.
12263 test yes = "$enable_shared" && enable_static
=no
12264 if test -n "$RANLIB"; then
12265 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12266 postinstall_cmds
='$RANLIB $lib'
12271 if test ia64
!= "$host_cpu"; then
12272 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12273 yes,aix
,yes) ;; # shared object as lib.so file only
12274 yes,svr4
,*) ;; # shared object as lib.so archive member only
12275 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12281 $as_echo "$enable_shared" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12284 $as_echo_n "checking whether to build static libraries... " >&6; }
12285 # Make sure either enable_shared or enable_static is yes.
12286 test yes = "$enable_shared" || enable_static
=yes
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12288 $as_echo "$enable_static" >&6; }
12295 ac_cpp
='$CPP $CPPFLAGS'
12296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12316 ac_config_commands
="$ac_config_commands libtool"
12321 # Only expand once:
12324 # By default we simply use the C compiler to build assembly code.
12326 test "${CCAS+set}" = set || CCAS
=$CC
12327 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12331 depcc
="$CCAS" am_compiler_list
=
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12334 $as_echo_n "checking dependency style of $depcc... " >&6; }
12335 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12336 $as_echo_n "(cached) " >&6
12338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12339 # We make a subdir and do the tests there. Otherwise we can end up
12340 # making bogus files that we don't know about and never remove. For
12341 # instance it was reported that on HP-UX the gcc test will end up
12342 # making a dummy file named 'D' -- because '-MD' means "put the output
12344 rm -rf conftest.dir
12346 # Copy depcomp to subdir because otherwise we won't find it if we're
12347 # using a relative directory.
12348 cp "$am_depcomp" conftest.dir
12350 # We will build objects and dependencies in a subdirectory because
12351 # it helps to detect inapplicable dependency modes. For instance
12352 # both Tru64's cc and ICC support -MD to output dependencies as a
12353 # side effect of compilation, but ICC will put the dependencies in
12354 # the current directory while Tru64 will put them in the object
12358 am_cv_CCAS_dependencies_compiler_type
=none
12359 if test "$am_compiler_list" = ""; then
12360 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12362 am__universal
=false
12365 for depmode
in $am_compiler_list; do
12366 # Setup a source with many dependencies, because some compilers
12367 # like to wrap large dependency lists on column 80 (with \), and
12368 # we should not choose a depcomp mode which is confused by this.
12370 # We need to recreate these files for each test, as the compiler may
12371 # overwrite some of them when testing with obscure command lines.
12372 # This happens at least with the AIX C compiler.
12374 for i
in 1 2 3 4 5 6; do
12375 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12376 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12377 # Solaris 10 /bin/sh.
12378 echo '/* dummy */' > sub
/conftst
$i.h
12380 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12382 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12383 # mode. It turns out that the SunPro C++ compiler does not properly
12384 # handle '-M -o', and we need to detect this. Also, some Intel
12385 # versions had trouble with output in subdirs.
12386 am__obj
=sub
/conftest.
${OBJEXT-o}
12387 am__minus_obj
="-o $am__obj"
12390 # This depmode causes a compiler race in universal mode.
12391 test "$am__universal" = false ||
continue
12394 # After this tag, mechanisms are not by side-effect, so they'll
12395 # only be used when explicitly requested.
12396 if test "x$enable_dependency_tracking" = xyes
; then
12402 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12403 # This compiler won't grok '-c -o', but also, the minuso test has
12404 # not run yet. These depmodes are late enough in the game, and
12405 # so weak that their functioning should not be impacted.
12406 am__obj
=conftest.
${OBJEXT-o}
12411 if depmode
=$depmode \
12412 source=sub
/conftest.c object
=$am__obj \
12413 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12414 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12415 >/dev
/null
2>conftest.err
&&
12416 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12417 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12418 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12419 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12420 # icc doesn't choke on unknown options, it will just issue warnings
12421 # or remarks (even with -Werror). So we grep stderr for any message
12422 # that says an option was ignored or not supported.
12423 # When given -MP, icc 7.0 and 7.1 complain thusly:
12424 # icc: Command line warning: ignoring option '-M'; no argument required
12425 # The diagnosis changed in icc 8.0:
12426 # icc: Command line remark: option '-MP' not supported
12427 if (grep 'ignoring option' conftest.err ||
12428 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12429 am_cv_CCAS_dependencies_compiler_type
=$depmode
12436 rm -rf conftest.dir
12438 am_cv_CCAS_dependencies_compiler_type
=none
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12443 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12444 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12447 test "x$enable_dependency_tracking" != xno \
12448 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12449 am__fastdepCCAS_TRUE
=
12450 am__fastdepCCAS_FALSE
='#'
12452 am__fastdepCCAS_TRUE
='#'
12453 am__fastdepCCAS_FALSE
=
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12460 $as_echo_n "checking zfs author... " >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12462 $as_echo "$ZFS_META_AUTHOR" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12465 $as_echo_n "checking zfs license... " >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12467 $as_echo "$ZFS_META_LICENSE" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12472 $as_echo_n "checking linux distribution... " >&6; }
12473 if test -f /etc
/toss-release
; then
12475 elif test -f /etc
/fedora-release
; then
12477 elif test -f /etc
/redhat-release
; then
12479 elif test -f /etc
/gentoo-release
; then
12481 elif test -f /etc
/arch-release
; then
12483 elif test -f /etc
/SuSE-release
; then
12485 elif test -f /etc
/slackware-version
; then
12487 elif test -f /etc
/lunar.release
; then
12489 elif test -f /etc
/lsb-release
; then
12491 elif test -f /etc
/debian_version
; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12497 $as_echo "$VENDOR" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12501 $as_echo_n "checking default package type... " >&6; }
12503 toss
) DEFAULT_PACKAGE
=rpm
;;
12504 redhat
) DEFAULT_PACKAGE
=rpm
;;
12505 fedora
) DEFAULT_PACKAGE
=rpm
;;
12506 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12507 arch
) DEFAULT_PACKAGE
=tgz
;;
12508 sles
) DEFAULT_PACKAGE
=rpm
;;
12509 slackware
) DEFAULT_PACKAGE
=tgz
;;
12510 lunar
) DEFAULT_PACKAGE
=tgz
;;
12511 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12512 debian
) DEFAULT_PACKAGE
=deb
;;
12513 *) DEFAULT_PACKAGE
=rpm
;;
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12516 $as_echo "$DEFAULT_PACKAGE" >&6; }
12519 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12521 $as_echo_n "checking default init directory... " >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12523 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12527 $as_echo_n "checking default init script type... " >&6; }
12529 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12530 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12531 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12532 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12533 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12534 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12535 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12536 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12537 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12538 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12539 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12542 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12546 $as_echo_n "checking default init config direectory... " >&6; }
12548 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12549 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12550 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12551 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12552 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12553 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12554 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12555 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12558 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12562 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12563 if test -d /usr
/share
/initramfs-tools
; then
12564 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 $as_echo "yes" >&6; }
12568 DEFINE_INITRAMFS
=''
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12579 $as_echo_n "checking whether $RPM is available... " >&6; }
12580 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12582 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12585 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12591 $as_echo "$HAVE_RPM" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12596 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12597 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12599 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12602 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12608 $as_echo "$HAVE_RPMBUILD" >&6; }
12612 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12613 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12614 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12617 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12622 RPM_SPEC_DIR
="rpm/generic"
12624 # Check whether --with-spec was given.
12625 if test "${with_spec+set}" = set; then :
12626 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12631 $as_echo_n "checking whether spec files are available... " >&6; }
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12633 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12655 DPKGBUILD
=dpkg-buildpackage
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12658 $as_echo_n "checking whether $DPKG is available... " >&6; }
12659 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12661 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12664 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12670 $as_echo "$HAVE_DPKG" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12675 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12676 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12678 DPKGBUILD_VERSION
=$
(echo $tmp | \
12679 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12682 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12688 $as_echo "$HAVE_DPKGBUILD" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12704 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12705 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12707 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12710 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12716 $as_echo "$HAVE_ALIEN" >&6; }
12726 TARGET_ASM_DIR
=asm-generic
12731 # Check whether --with-config was given.
12732 if test "${with_config+set}" = set; then :
12733 withval
=$with_config; ZFS_CONFIG
="$withval"
12736 # Check whether --enable-linux-builtin was given.
12737 if test "${enable_linux_builtin+set}" = set; then :
12738 enableval
=$enable_linux_builtin;
12740 enable_linux_builtin
=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12745 $as_echo_n "checking zfs config... " >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12747 $as_echo "$ZFS_CONFIG" >&6; };
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12753 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12755 saved_flags
="$CFLAGS"
12756 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12769 if ac_fn_c_try_compile
"$LINENO"; then :
12771 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12773 $as_echo "yes" >&6; }
12777 NO_UNUSED_BUT_SET_VARIABLE
=
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 CFLAGS
="$saved_flags"
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12789 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12791 saved_flags
="$CFLAGS"
12792 CFLAGS
="$CFLAGS -Wbool-compare"
12794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12805 if ac_fn_c_try_compile
"$LINENO"; then :
12807 NO_BOOL_COMPARE
=-Wno-bool-compare
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12809 $as_echo "yes" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12820 CFLAGS
="$saved_flags"
12825 case "$ZFS_CONFIG" in
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12829 $as_echo_n "checking for dkms.conf file... " >&6; }
12830 if test -e dkms.conf
; then :
12833 *** ZFS should not be manually built in the DKMS source tree.
12834 *** Remove all ZFS packages before compiling the ZoL sources.
12835 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12840 $as_echo "not found" >&6; }
12846 # Check whether --with-mounthelperdir was given.
12847 if test "${with_mounthelperdir+set}" = set; then :
12848 withval
=$with_mounthelperdir; mounthelperdir
=$withval
12850 mounthelperdir
=/sbin
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12858 $as_echo_n "checking for udev directories... " >&6; }
12860 # Check whether --with-udevdir was given.
12861 if test "${with_udevdir+set}" = set; then :
12862 withval
=$with_udevdir; udevdir
=$withval
12868 if test "x$udevdir" = xcheck
; then :
12871 path2
=/usr
/lib
/udev
12874 if test -d "$path1"; then :
12878 if test -d "$path2"; then :
12889 # Check whether --with-udevruledir was given.
12890 if test "${with_udevruledir+set}" = set; then :
12891 withval
=$with_udevruledir; udevruledir
=$withval
12893 udevruledir
="${udevdir}/rules.d"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12900 $as_echo "$udevdir;$udevruledir" >&6; }
12903 # Check whether --enable-systemd was given.
12904 if test "${enable_systemd+set}" = set; then :
12905 enableval
=$enable_systemd;
12912 # Check whether --with-systemdunitdir was given.
12913 if test "${with_systemdunitdir+set}" = set; then :
12914 withval
=$with_systemdunitdir; systemdunitdir
=$withval
12916 systemdunitdir
=/usr
/lib
/systemd
/system
12921 # Check whether --with-systemdpresetdir was given.
12922 if test "${with_systemdpresetdir+set}" = set; then :
12923 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
12925 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
12930 # Check whether --with-systemdmodulesloaddir was given.
12931 if test "${with_systemdmodulesloaddir+set}" = set; then :
12932 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
12934 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
12939 if test "x$enable_systemd" = xyes
; then :
12941 ZFS_INIT_SYSTEMD
=systemd
12942 ZFS_MODULE_LOAD
=modules-load.d
12943 modulesloaddir
=$systemdmodulesloaddir
12954 # Check whether --enable-sysvinit was given.
12955 if test "${enable_sysvinit+set}" = set; then :
12956 enableval
=$enable_sysvinit;
12958 enable_sysvinit
=yes
12962 if test "x$enable_sysvinit" = xyes
; then :
12963 ZFS_INIT_SYSV
=init.d
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12970 $as_echo_n "checking for dracut directory... " >&6; }
12972 # Check whether --with-dracutdir was given.
12973 if test "${with_dracutdir+set}" = set; then :
12974 withval
=$with_dracutdir; dracutdir
=$withval
12980 if test "x$dracutdir" = xcheck
; then :
12982 path1
=/usr
/share
/dracut
12983 path2
=/usr
/lib
/dracut
12986 if test -d "$path1"; then :
12990 if test -d "$path2"; then :
12993 dracutdir
="$default"
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13002 $as_echo "$dracutdir" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13006 $as_echo_n "checking for target asm dir... " >&6; }
13007 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13009 case $TARGET_ARCH in
13011 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13014 TARGET_ASM_DIR
=asm-generic
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13020 $as_echo "$TARGET_ASM_DIR" >&6; }
13025 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13026 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13032 *** zlib.h missing, zlib-devel package required
13033 See \`config.log' for more details" "$LINENO" 5; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13039 $as_echo_n "checking for compress2 in -lz... " >&6; }
13040 if ${ac_cv_lib_z_compress2+:} false
; then :
13041 $as_echo_n "(cached) " >&6
13043 ac_check_lib_save_LIBS
=$LIBS
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13048 /* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13058 return compress2 ();
13063 if ac_fn_c_try_link
"$LINENO"; then :
13064 ac_cv_lib_z_compress2
=yes
13066 ac_cv_lib_z_compress2
=no
13068 rm -f core conftest.err conftest.
$ac_objext \
13069 conftest
$ac_exeext conftest.
$ac_ext
13070 LIBS
=$ac_check_lib_save_LIBS
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13073 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13074 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
13075 cat >>confdefs.h
<<_ACEOF
13076 #define HAVE_LIBZ 1
13082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13085 *** compress2() missing, zlib-devel package required
13086 See \`config.log' for more details" "$LINENO" 5; }
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13091 $as_echo_n "checking for uncompress in -lz... " >&6; }
13092 if ${ac_cv_lib_z_uncompress+:} false
; then :
13093 $as_echo_n "(cached) " >&6
13095 ac_check_lib_save_LIBS
=$LIBS
13097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13106 char uncompress ();
13110 return uncompress ();
13115 if ac_fn_c_try_link
"$LINENO"; then :
13116 ac_cv_lib_z_uncompress
=yes
13118 ac_cv_lib_z_uncompress
=no
13120 rm -f core conftest.err conftest.
$ac_objext \
13121 conftest
$ac_exeext conftest.
$ac_ext
13122 LIBS
=$ac_check_lib_save_LIBS
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13125 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13126 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
13127 cat >>confdefs.h
<<_ACEOF
13128 #define HAVE_LIBZ 1
13134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13137 *** uncompress() missing, zlib-devel package required
13138 See \`config.log' for more details" "$LINENO" 5; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13143 $as_echo_n "checking for crc32 in -lz... " >&6; }
13144 if ${ac_cv_lib_z_crc32+:} false
; then :
13145 $as_echo_n "(cached) " >&6
13147 ac_check_lib_save_LIBS
=$LIBS
13149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13167 if ac_fn_c_try_link
"$LINENO"; then :
13168 ac_cv_lib_z_crc32
=yes
13170 ac_cv_lib_z_crc32
=no
13172 rm -f core conftest.err conftest.
$ac_objext \
13173 conftest
$ac_exeext conftest.
$ac_ext
13174 LIBS
=$ac_check_lib_save_LIBS
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13177 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13178 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
13179 cat >>confdefs.h
<<_ACEOF
13180 #define HAVE_LIBZ 1
13186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13189 *** crc32() missing, zlib-devel package required
13190 See \`config.log' for more details" "$LINENO" 5; }
13197 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13203 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13204 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13210 *** uuid/uuid.h missing, libuuid-devel package required
13211 See \`config.log' for more details" "$LINENO" 5; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13217 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13218 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13219 $as_echo_n "(cached) " >&6
13221 ac_check_lib_save_LIBS
=$LIBS
13222 LIBS
="-luuid $LIBS"
13223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13232 char uuid_generate ();
13236 return uuid_generate ();
13241 if ac_fn_c_try_link
"$LINENO"; then :
13242 ac_cv_lib_uuid_uuid_generate
=yes
13244 ac_cv_lib_uuid_uuid_generate
=no
13246 rm -f core conftest.err conftest.
$ac_objext \
13247 conftest
$ac_exeext conftest.
$ac_ext
13248 LIBS
=$ac_check_lib_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13251 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13252 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13253 cat >>confdefs.h
<<_ACEOF
13254 #define HAVE_LIBUUID 1
13257 LIBS
="-luuid $LIBS"
13260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13263 *** uuid_generate() missing, libuuid-devel package required
13264 See \`config.log' for more details" "$LINENO" 5; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13269 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13270 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
13271 $as_echo_n "(cached) " >&6
13273 ac_check_lib_save_LIBS
=$LIBS
13274 LIBS
="-luuid $LIBS"
13275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13284 char uuid_is_null ();
13288 return uuid_is_null ();
13293 if ac_fn_c_try_link
"$LINENO"; then :
13294 ac_cv_lib_uuid_uuid_is_null
=yes
13296 ac_cv_lib_uuid_uuid_is_null
=no
13298 rm -f core conftest.err conftest.
$ac_objext \
13299 conftest
$ac_exeext conftest.
$ac_ext
13300 LIBS
=$ac_check_lib_save_LIBS
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13303 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13304 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
13305 cat >>confdefs.h
<<_ACEOF
13306 #define HAVE_LIBUUID 1
13309 LIBS
="-luuid $LIBS"
13312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13315 *** uuid_is_null() missing, libuuid-devel package required
13316 See \`config.log' for more details" "$LINENO" 5; }
13323 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13328 # Check whether --with-blkid was given.
13329 if test "${with_blkid+set}" = set; then :
13330 withval
=$with_blkid;
13337 if test "x$with_blkid" = xyes
; then :
13342 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13347 if test "x$with_blkid" = xcheck
; then :
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13350 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13351 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
13352 $as_echo_n "(cached) " >&6
13354 ac_check_lib_save_LIBS
=$LIBS
13355 LIBS
="-lblkid $LIBS"
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13359 /* Override any GCC internal prototype to avoid an error.
13360 Use char because int might match the return type of a GCC
13361 builtin and then its argument prototype would still apply. */
13365 char blkid_get_cache ();
13369 return blkid_get_cache ();
13374 if ac_fn_c_try_link
"$LINENO"; then :
13375 ac_cv_lib_blkid_blkid_get_cache
=yes
13377 ac_cv_lib_blkid_blkid_get_cache
=no
13379 rm -f core conftest.err conftest.
$ac_objext \
13380 conftest
$ac_exeext conftest.
$ac_ext
13381 LIBS
=$ac_check_lib_save_LIBS
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13384 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13385 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13388 $as_echo_n "checking for blkid zfs support... " >&6; }
13391 truncate
-s 64M
$ZFS_DEV
13392 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13393 dd of
=$ZFS_DEV bs
=1k count
=8 \
13394 seek
=128 conv
=notrunc
&>/dev
/null \
13395 >/dev
/null
2>/dev
/null
13396 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13397 dd of
=$ZFS_DEV bs
=1k count
=8 \
13398 seek
=132 conv
=notrunc
&>/dev
/null \
13399 >/dev
/null
2>/dev
/null
13400 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13401 dd of
=$ZFS_DEV bs
=1k count
=8 \
13402 seek
=136 conv
=notrunc
&>/dev
/null \
13403 >/dev
/null
2>/dev
/null
13404 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13405 dd of
=$ZFS_DEV bs
=1k count
=8 \
13406 seek
=140 conv
=notrunc
&>/dev
/null \
13407 >/dev
/null
2>/dev
/null
13412 if test "$cross_compiling" = yes; then :
13413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13415 as_fn_error $?
"cannot run test program while cross compiling
13416 See \`config.log' for more details" "$LINENO" 5; }
13418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13422 #include <stdlib.h>
13423 #include <blkid/blkid.h>
13432 if (blkid_get_cache(&cache, NULL) < 0)
13435 value = blkid_get_tag_value(cache, "TYPE",
13438 blkid_put_cache(cache);
13442 if (strcmp(value, "zfs_member")) {
13444 blkid_put_cache(cache);
13449 blkid_put_cache(cache);
13455 if ac_fn_c_try_run
"$LINENO"; then :
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13459 $as_echo "yes" >&6; }
13463 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470 $as_echo "no" >&6; }
13471 if test "x$with_blkid" != xcheck
; then :
13472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13474 as_fn_error $?
"--with-blkid given but unavailable
13475 See \`config.log' for more details" "$LINENO" 5; }
13479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13488 if test "x$with_blkid" != xcheck
; then :
13489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13491 as_fn_error $?
"--with-blkid given but unavailable
13492 See \`config.log' for more details" "$LINENO" 5; }
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13503 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13505 saved_flags
="$CFLAGS"
13506 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
13508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13519 if ac_fn_c_try_compile
"$LINENO"; then :
13521 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13523 $as_echo "yes" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13534 CFLAGS
="$saved_flags"
13538 if test "x$runstatedir" = x
; then
13539 runstatedir
='${localstatedir}/run'
13543 for ac_func
in mlockall
13545 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13546 if test "x$ac_cv_func_mlockall" = xyes
; then :
13547 cat >>confdefs.h
<<_ACEOF
13548 #define HAVE_MLOCKALL 1
13558 # Check whether --with-linux was given.
13559 if test "${with_linux+set}" = set; then :
13560 withval
=$with_linux; kernelsrc
="$withval"
13565 # Check whether --with-linux-obj was given.
13566 if test "${with_linux_obj+set}" = set; then :
13567 withval
=$with_linux_obj; kernelbuild
="$withval"
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13572 $as_echo_n "checking kernel source directory... " >&6; }
13573 if test -z "$kernelsrc"; then :
13575 if test -e "/lib/modules/$(uname -r)/source"; then :
13577 headersdir
="/lib/modules/$(uname -r)/source"
13578 sourcelink
=$
(readlink
-f "$headersdir")
13580 elif test -e "/lib/modules/$(uname -r)/build"; then :
13582 headersdir
="/lib/modules/$(uname -r)/build"
13583 sourcelink
=$
(readlink
-f "$headersdir")
13587 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13589 2>/dev
/null |
grep -v obj |
tail -1)
13593 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13595 kernelsrc
=`readlink -f ${sourcelink}`
13599 kernelsrc
="Not found"
13605 if test "$kernelsrc" = "NONE"; then :
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13614 $as_echo "$kernelsrc" >&6; }
13615 if test ! -d "$kernelsrc"; then :
13618 *** Please make sure the kernel devel package for your distribution
13619 *** is installed and then try again. If that fails, you can specify the
13620 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13625 $as_echo_n "checking kernel build directory... " >&6; }
13626 if test -z "$kernelbuild"; then :
13628 if test -e "/lib/modules/$(uname -r)/build"; then :
13630 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13632 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13634 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13636 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13638 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13640 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13642 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13646 kernelbuild
=${kernelsrc}
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13652 $as_echo "$kernelbuild" >&6; }
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13655 $as_echo_n "checking kernel source version... " >&6; }
13656 utsrelease1
=$kernelbuild/include
/linux
/version.h
13657 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13658 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13659 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13661 utsrelease
=linux
/version.h
13663 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13665 utsrelease
=linux
/utsrelease.h
13667 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13669 utsrelease
=generated
/utsrelease.h
13673 if test "$utsrelease"; then :
13675 kernsrcver
=`(echo "#include <$utsrelease>";
13676 echo "kernsrcver=UTS_RELEASE") |
13677 cpp -I $kernelbuild/include |
13678 grep "^kernsrcver=" | cut -d \" -f 2`
13680 if test -z "$kernsrcver"; then :
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13683 $as_echo "Not found" >&6; }
13684 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13691 $as_echo "Not found" >&6; }
13692 if test "x$enable_linux_builtin" != xyes
; then
13693 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13696 *** Cannot find UTS_RELEASE definition.
13697 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13703 $as_echo "$kernsrcver" >&6; }
13706 LINUX_OBJ
=${kernelbuild}
13707 LINUX_VERSION
=${kernsrcver}
13714 modpost
=$LINUX/scripts
/Makefile.modpost
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13716 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13717 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13719 if grep -q Modules.symvers
$modpost; then :
13721 LINUX_SYMBOLS
=Modules.symvers
13725 LINUX_SYMBOLS
=Module.symvers
13729 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13732 *** Please make sure the kernel devel package for your distribution
13733 *** is installed. If you are building with a custom kernel, make sure the
13734 *** kernel is configured, built, and the '--with-linux=PATH' configure
13735 *** option refers to the location of the kernel source." "$LINENO" 5
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13745 $as_echo "$LINUX_SYMBOLS" >&6; }
13751 # Check whether --with-spl was given.
13752 if test "${with_spl+set}" = set; then :
13753 withval
=$with_spl; splsrc
="$withval"
13758 # Check whether --with-spl-obj was given.
13759 if test "${with_spl_obj+set}" = set; then :
13760 withval
=$with_spl_obj; splbuild
="$withval"
13765 # Check whether --with-spl-timeout was given.
13766 if test "${with_spl_timeout+set}" = set; then :
13767 withval
=$with_spl_timeout; timeout
="$withval"
13773 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13774 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13775 splsrc2
="/usr/local/src/spl-${VERSION}"
13776 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13777 splsrc4
="/usr/src/spl-${VERSION}"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13782 $as_echo_n "checking spl source directory... " >&6; }
13783 if test -z "${splsrc}"; then :
13785 if test -e "${splsrc0}/spl.release.in"; then :
13789 elif test -e "${splsrc1}/spl.release.in"; then :
13793 elif test -e "${splsrc2}/spl.release.in"; then :
13797 elif test -e "${splsrc3}/spl.release.in"; then :
13799 splsrc
=$
(readlink
-f "${splsrc3}")
13801 elif test -e "${splsrc4}/spl.release.in" ; then :
13805 elif test -e "${splsrc5}/spl.release.in"; then :
13807 splsrc
=$
(readlink
-f "${splsrc5}")
13809 elif test -e "${splsrc6}/spl.release.in" ; then :
13821 if test "$splsrc" = "NONE"; then :
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13831 $as_echo "$splsrc" >&6; }
13832 if test ! -e "$splsrc/spl.release.in"; then :
13835 *** Please make sure the kmod spl devel package for your distribution
13836 *** is installed then try again. If that fails you can specify the
13837 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13842 $as_echo_n "checking spl build directory... " >&6; }
13844 if test -z "$splbuild"; then :
13846 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13848 splbuild
="${splsrc}/${LINUX_VERSION}"
13850 elif test -e "${splsrc}/spl_config.h" ; then :
13852 splbuild
="${splsrc}"
13854 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13856 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13860 splbuild
="Not found"
13865 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13872 timeout
=$
((timeout-1
))
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13878 $as_echo "$splbuild" >&6; }
13879 if ! test -e "$splbuild/spl_config.h"; then :
13882 *** Please make sure the kmod spl devel <kernel> package for your
13883 *** distribution is installed then try again. If that fails you
13884 *** can specify the location of the spl objects with the
13885 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13890 $as_echo_n "checking spl source version... " >&6; }
13891 if test -r $splbuild/spl_config.h
&&
13892 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13895 splsrcver
=`(echo "#include <spl_config.h>";
13896 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13898 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13902 if test -z "$splsrcver"; then :
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13905 $as_echo "Not found" >&6; }
13907 *** Cannot determine the version of the spl source.
13908 *** Please prepare the spl source before running this script" "$LINENO" 5
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13913 $as_echo "$splsrcver" >&6; }
13916 SPL_OBJ
=${splbuild}
13917 SPL_VERSION
=${splsrcver}
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13924 $as_echo_n "checking spl file name for module symbols... " >&6; }
13928 if test -r $SPL_OBJ/Module.symvers
; then :
13930 SPL_SYMBOLS
=Module.symvers
13932 elif test -r $SPL_OBJ/Modules.symvers
; then :
13934 SPL_SYMBOLS
=Modules.symvers
13936 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13938 SPL_SYMBOLS
=Module.symvers
13940 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13942 SPL_SYMBOLS
=Modules.symvers
13946 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13953 timeout
=$
((timeout-1
))
13958 if test "$SPL_SYMBOLS" = NONE
; then :
13960 SPL_SYMBOLS
=$LINUX_SYMBOLS
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13965 $as_echo "$SPL_SYMBOLS" >&6; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13970 $as_echo_n "checking whether modules can be built... " >&6; }
13973 cat confdefs.h
- <<_ACEOF >conftest.c
13988 cat - <<_ACEOF >conftest.h
13993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13994 echo "obj-m := conftest.o" >build
/Makefile
13996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13999 (eval $ac_try) 2>&5
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14004 (eval $ac_try) 2>&5
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; }; }; then :
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010 $as_echo "yes" >&6; }
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.
$ac_ext >&5
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 if test "x$enable_linux_builtin" != xyes
; then
14019 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14022 *** Unable to build an empty module.
14023 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14034 if test "x$cross_compiling" != xyes
; then :
14036 if test "$cross_compiling" = yes; then :
14037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14039 as_fn_error $?
"cannot run test program while cross compiling
14040 See \`config.log' for more details" "$LINENO" 5; }
14042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14046 #include "$LINUX/include/linux/license.h"
14052 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14059 if ac_fn_c_try_run
"$LINENO"; then :
14062 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14075 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14078 cat confdefs.h
- <<_ACEOF >conftest.c
14081 #include <linux/module.h>
14087 #if (THREAD_SIZE < 16384)
14088 #error "THREAD_SIZE is less than 16K"
14099 cat - <<_ACEOF >conftest.h
14104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14105 echo "obj-m := conftest.o" >build
/Makefile
14107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14110 (eval $ac_try) 2>&5
14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14115 (eval $ac_try) 2>&5
14117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14118 test $ac_status = 0; }; }; then :
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14123 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14127 $as_echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14143 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14146 cat confdefs.h
- <<_ACEOF >conftest.c
14149 #include <linux/module.h>
14155 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14156 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14167 cat - <<_ACEOF >conftest.h
14172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14173 echo "obj-m := conftest.o" >build
/Makefile
14175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14178 (eval $ac_try) 2>&5
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14183 (eval $ac_try) 2>&5
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; }; }; then :
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14192 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14193 tmp_flags
="$EXTRA_KCFLAGS"
14196 cat confdefs.h
- <<_ACEOF >conftest.c
14199 #include <linux/module.h>
14200 #include <linux/mutex.h>
14202 MODULE_LICENSE("$ZFS_META_LICENSE");
14212 mutex_unlock(&lock);
14222 cat - <<_ACEOF >conftest.h
14227 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14228 echo "obj-m := conftest.o" >build
/Makefile
14230 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14231 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14233 (eval $ac_try) 2>&5
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14238 (eval $ac_try) 2>&5
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; }; then :
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14247 $as_echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.
$ac_ext >&5
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14251 $as_echo "yes" >&6; }
14253 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14254 *** with the CDDL license and will prevent the module linking stage
14255 *** from succeeding. You must rebuild your kernel without this
14256 *** option enabled." "$LINENO" 5
14264 EXTRA_KCFLAGS
="$tmp_flags"
14268 $as_echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.
$ac_ext >&5
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14285 tmp_flags
="$EXTRA_KCFLAGS"
14286 EXTRA_KCFLAGS
="-I\$(src)"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14289 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14292 cat confdefs.h
- <<_ACEOF >conftest.c
14295 #include <linux/module.h>
14296 MODULE_LICENSE(ZFS_META_LICENSE);
14298 #define CREATE_TRACE_POINTS
14299 #include "conftest.h"
14305 trace_zfs_autoconf_event_one(1UL);
14306 trace_zfs_autoconf_event_two(2UL);
14316 cat - <<_ACEOF >conftest.h
14318 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14319 #define _CONFTEST_H
14321 #undef TRACE_SYSTEM
14322 #define TRACE_SYSTEM zfs
14323 #include <linux/tracepoint.h>
14325 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14326 TP_PROTO(unsigned long i),
14329 __field(unsigned long, i)
14334 TP_printk("i = %lu", __entry->i)
14337 #define DEFINE_AUTOCONF_EVENT(name) \
14338 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14339 TP_PROTO(unsigned long i), \
14341 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14342 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14344 #endif /* _CONFTEST_H */
14346 #undef TRACE_INCLUDE_PATH
14347 #define TRACE_INCLUDE_PATH .
14348 #define TRACE_INCLUDE_FILE conftest
14349 #include <trace/define_trace.h>
14354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14355 echo "obj-m := conftest.o" >build
/Makefile
14357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14360 (eval $ac_try) 2>&5
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14365 (eval $ac_try) 2>&5
14367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14368 test $ac_status = 0; }; }; then :
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14371 $as_echo "yes" >&6; }
14373 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14377 $as_echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.
$ac_ext >&5
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14389 EXTRA_KCFLAGS
="$tmp_flags"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14393 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14396 cat confdefs.h
- <<_ACEOF >conftest.c
14399 #include <linux/sched.h>
14405 current->bio_tail = (struct bio **) NULL;
14415 cat - <<_ACEOF >conftest.h
14420 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14421 echo "obj-m := conftest.o" >build
/Makefile
14423 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14424 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14426 (eval $ac_try) 2>&5
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14431 (eval $ac_try) 2>&5
14433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434 test $ac_status = 0; }; }; then :
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }
14439 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14443 $as_echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.
$ac_ext >&5
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 $as_echo "no" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14449 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14452 cat confdefs.h
- <<_ACEOF >conftest.c
14455 #include <linux/sched.h>
14461 current->bio_list = (struct bio_list *) NULL;
14471 cat - <<_ACEOF >conftest.h
14476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14477 echo "obj-m := conftest.o" >build
/Makefile
14479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14482 (eval $ac_try) 2>&5
14484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14485 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14487 (eval $ac_try) 2>&5
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; }; }; then :
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493 $as_echo "yes" >&6; }
14495 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.
$ac_ext >&5
14502 as_fn_error $?
"no - Please file a bug report at
14503 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14521 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14524 cat confdefs.h
- <<_ACEOF >conftest.c
14527 #include <linux/bio.h>
14534 struct bio *bio = NULL;
14535 blk_qc = submit_bio(bio);
14545 cat - <<_ACEOF >conftest.h
14550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14551 echo "obj-m := conftest.o" >build
/Makefile
14553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14556 (eval $ac_try) 2>&5
14558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14561 (eval $ac_try) 2>&5
14563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14564 test $ac_status = 0; }; }; then :
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14567 $as_echo "yes" >&6; }
14569 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14573 $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14588 $as_echo_n "checking block device operation prototypes... " >&6; }
14589 tmp_flags
="$EXTRA_KCFLAGS"
14590 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14593 cat confdefs.h
- <<_ACEOF >conftest.c
14596 #include <linux/blkdev.h>
14598 int blk_open(struct block_device *bdev, fmode_t mode)
14600 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14601 unsigned x, unsigned long y) { return 0; }
14602 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14603 unsigned x, unsigned long y) { return 0; }
14605 static const struct block_device_operations
14606 bops __attribute__ ((unused)) = {
14609 .ioctl = blk_ioctl,
14610 .compat_ioctl = blk_compat_ioctl,
14626 cat - <<_ACEOF >conftest.h
14631 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14632 echo "obj-m := conftest.o" >build
/Makefile
14634 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14635 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14637 (eval $ac_try) 2>&5
14639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14642 (eval $ac_try) 2>&5
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; }; }; then :
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14648 $as_echo "struct block_device" >&6; }
14650 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14654 $as_echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.
$ac_ext >&5
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14658 $as_echo "struct inode" >&6; }
14666 EXTRA_KCFLAGS
="$tmp_flags"
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14670 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14671 tmp_flags
="$EXTRA_KCFLAGS"
14672 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14675 cat confdefs.h
- <<_ACEOF >conftest.c
14678 #include <linux/blkdev.h>
14680 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14682 static const struct block_device_operations
14683 bops __attribute__ ((unused)) = {
14685 .release = blk_release,
14687 .compat_ioctl = NULL,
14703 cat - <<_ACEOF >conftest.h
14708 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14709 echo "obj-m := conftest.o" >build
/Makefile
14711 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14712 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14714 (eval $ac_try) 2>&5
14716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14719 (eval $ac_try) 2>&5
14721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 test $ac_status = 0; }; }; then :
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14725 $as_echo "void" >&6; }
14727 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14731 $as_echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.
$ac_ext >&5
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14735 $as_echo "int" >&6; }
14743 EXTRA_KCFLAGS
="$tmp_flags"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14746 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14749 cat confdefs.h
- <<_ACEOF >conftest.c
14752 #include <linux/types.h>
14758 fmode_t *ptr __attribute__ ((unused));
14768 cat - <<_ACEOF >conftest.h
14773 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14774 echo "obj-m := conftest.o" >build
/Makefile
14776 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14777 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14779 (eval $ac_try) 2>&5
14781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14782 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14784 (eval $ac_try) 2>&5
14786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14787 test $ac_status = 0; }; }; then :
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14790 $as_echo "yes" >&6; }
14792 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14811 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14814 cat confdefs.h
- <<_ACEOF >conftest.c
14817 #include <linux/kobject.h>
14823 int val __attribute__ ((unused));
14824 val = KOBJ_NAME_LEN;
14834 cat - <<_ACEOF >conftest.h
14839 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14840 echo "obj-m := conftest.o" >build
/Makefile
14842 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14843 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14845 (eval $ac_try) 2>&5
14847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14850 (eval $ac_try) 2>&5
14852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14853 test $ac_status = 0; }; }; then :
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14856 $as_echo "yes" >&6; }
14858 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14862 $as_echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.
$ac_ext >&5
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14877 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14880 cat confdefs.h
- <<_ACEOF >conftest.c
14883 #include <linux/fs.h>
14889 struct block_device *bdev = NULL;
14890 (void) blkdev_get(bdev, 0, NULL);
14900 cat - <<_ACEOF >conftest.h
14905 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14906 echo "obj-m := conftest.o" >build
/Makefile
14908 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14909 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14911 (eval $ac_try) 2>&5
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14916 (eval $ac_try) 2>&5
14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919 test $ac_status = 0; }; }; then :
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14922 $as_echo "yes" >&6; }
14924 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14928 $as_echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.
$ac_ext >&5
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
14942 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
14946 cat confdefs.h
- <<_ACEOF >conftest.c
14949 #include <linux/fs.h>
14955 blkdev_get_by_path(NULL, 0, NULL);
14965 cat - <<_ACEOF >conftest.h
14970 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14971 echo "obj-m := conftest.o" >build
/Makefile
14973 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14974 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14976 (eval $ac_try) 2>&5
14978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14979 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14981 (eval $ac_try) 2>&5
14983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14984 test $ac_status = 0; }; }; then :
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.
$ac_ext >&5
14996 if test $rc -ne 0; then :
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15002 if test "x$enable_linux_builtin" != xyes
; then
15004 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15005 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15007 if test $rc -ne 0; then
15009 for file in fs
/block_dev.c
; do
15010 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15011 "$LINUX/$file" 2>/dev
/null
15013 if test $rc -eq 0; then
15018 if test $export -eq 0; then :
15028 if test $rc -ne 0; then :
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15036 $as_echo "yes" >&6; }
15038 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15046 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15050 cat confdefs.h
- <<_ACEOF >conftest.c
15053 #include <linux/fs.h>
15059 open_bdev_exclusive(NULL, 0, NULL);
15069 cat - <<_ACEOF >conftest.h
15074 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15075 echo "obj-m := conftest.o" >build
/Makefile
15077 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15078 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15080 (eval $ac_try) 2>&5
15082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15083 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15085 (eval $ac_try) 2>&5
15087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }; }; then :
15091 $as_echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.
$ac_ext >&5
15100 if test $rc -ne 0; then :
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 $as_echo "no" >&6; }
15106 if test "x$enable_linux_builtin" != xyes
; then
15108 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15109 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15111 if test $rc -ne 0; then
15113 for file in fs
/block_dev.c
; do
15114 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15115 "$LINUX/$file" 2>/dev
/null
15117 if test $rc -eq 0; then
15122 if test $export -eq 0; then :
15132 if test $rc -ne 0; then :
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15140 $as_echo "yes" >&6; }
15142 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15150 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15154 cat confdefs.h
- <<_ACEOF >conftest.c
15157 #include <linux/fs.h>
15173 cat - <<_ACEOF >conftest.h
15178 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15179 echo "obj-m := conftest.o" >build
/Makefile
15181 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15182 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15184 (eval $ac_try) 2>&5
15186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15187 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15189 (eval $ac_try) 2>&5
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; }; }; then :
15195 $as_echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.
$ac_ext >&5
15204 if test $rc -ne 0; then :
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207 $as_echo "no" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15209 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15213 cat confdefs.h
- <<_ACEOF >conftest.c
15216 #include <linux/fs.h>
15222 lookup_bdev(NULL, FMODE_READ);
15232 cat - <<_ACEOF >conftest.h
15237 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15238 echo "obj-m := conftest.o" >build
/Makefile
15240 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15241 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15243 (eval $ac_try) 2>&5
15245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15246 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15248 (eval $ac_try) 2>&5
15250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15251 test $ac_status = 0; }; }; then :
15254 $as_echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.
$ac_ext >&5
15263 if test $rc -ne 0; then :
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266 $as_echo "no" >&6; }
15269 if test "x$enable_linux_builtin" != xyes
; then
15271 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15272 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15274 if test $rc -ne 0; then
15276 for file in fs
/block_dev.c
; do
15277 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15278 "$LINUX/$file" 2>/dev
/null
15280 if test $rc -eq 0; then
15285 if test $export -eq 0; then :
15295 if test $rc -ne 0; then :
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298 $as_echo "no" >&6; }
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15305 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15313 if test "x$enable_linux_builtin" != xyes
; then
15315 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15316 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15318 if test $rc -ne 0; then
15320 for file in fs
/block_dev.c
; do
15321 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15322 "$LINUX/$file" 2>/dev
/null
15324 if test $rc -eq 0; then
15329 if test $export -eq 0; then :
15339 if test $rc -ne 0; then :
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15344 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15348 cat confdefs.h
- <<_ACEOF >conftest.c
15351 #include <linux/fs.h>
15357 lookup_bdev(NULL, FMODE_READ);
15367 cat - <<_ACEOF >conftest.h
15372 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15373 echo "obj-m := conftest.o" >build
/Makefile
15375 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15376 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15378 (eval $ac_try) 2>&5
15380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15381 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15383 (eval $ac_try) 2>&5
15385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15386 test $ac_status = 0; }; }; then :
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.
$ac_ext >&5
15398 if test $rc -ne 0; then :
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401 $as_echo "no" >&6; }
15404 if test "x$enable_linux_builtin" != xyes
; then
15406 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15407 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15409 if test $rc -ne 0; then
15411 for file in fs
/block_dev.c
; do
15412 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15413 "$LINUX/$file" 2>/dev
/null
15415 if test $rc -eq 0; then
15420 if test $export -eq 0; then :
15430 if test $rc -ne 0; then :
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15438 $as_echo "yes" >&6; }
15440 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15450 $as_echo "yes" >&6; }
15452 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15461 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15464 cat confdefs.h
- <<_ACEOF >conftest.c
15467 #include <linux/buffer_head.h>
15473 struct block_device *bdev = NULL;
15474 invalidate_bdev(bdev);
15484 cat - <<_ACEOF >conftest.h
15489 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15490 echo "obj-m := conftest.o" >build
/Makefile
15492 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15493 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15495 (eval $ac_try) 2>&5
15497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15500 (eval $ac_try) 2>&5
15502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15503 test $ac_status = 0; }; }; then :
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15506 $as_echo "yes" >&6; }
15508 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15512 $as_echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.
$ac_ext >&5
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15527 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15528 tmp_flags
="$EXTRA_KCFLAGS"
15529 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15532 cat confdefs.h
- <<_ACEOF >conftest.c
15535 #include <linux/blkdev.h>
15541 struct block_device *bdev = NULL;
15542 bdev_logical_block_size(bdev);
15552 cat - <<_ACEOF >conftest.h
15557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15558 echo "obj-m := conftest.o" >build
/Makefile
15560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15561 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15563 (eval $ac_try) 2>&5
15565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15568 (eval $ac_try) 2>&5
15570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571 test $ac_status = 0; }; }; then :
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15574 $as_echo "yes" >&6; }
15576 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15580 $as_echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15592 EXTRA_KCFLAGS
="$tmp_flags"
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15596 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15597 tmp_flags
="$EXTRA_KCFLAGS"
15598 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15601 cat confdefs.h
- <<_ACEOF >conftest.c
15604 #include <linux/blkdev.h>
15610 struct block_device *bdev = NULL;
15611 bdev_physical_block_size(bdev);
15621 cat - <<_ACEOF >conftest.h
15626 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15627 echo "obj-m := conftest.o" >build
/Makefile
15629 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15630 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15632 (eval $ac_try) 2>&5
15634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15637 (eval $ac_try) 2>&5
15639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15640 test $ac_status = 0; }; }; then :
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643 $as_echo "yes" >&6; }
15645 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15649 $as_echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15661 EXTRA_KCFLAGS
="$tmp_flags"
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15665 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15668 cat confdefs.h
- <<_ACEOF >conftest.c
15671 #include <linux/bio.h>
15678 bio.bi_iter.bi_sector = 0;
15688 cat - <<_ACEOF >conftest.h
15693 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15694 echo "obj-m := conftest.o" >build
/Makefile
15696 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15697 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15699 (eval $ac_try) 2>&5
15701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15702 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15704 (eval $ac_try) 2>&5
15706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15707 test $ac_status = 0; }; }; then :
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15710 $as_echo "yes" >&6; }
15712 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15716 $as_echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.
$ac_ext >&5
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15720 $as_echo "no" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15731 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15734 cat confdefs.h
- <<_ACEOF >conftest.c
15737 #include <linux/bio.h>
15743 int flags __attribute__ ((unused));
15744 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15745 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15746 (1 << BIO_RW_FAILFAST_DRIVER));
15756 cat - <<_ACEOF >conftest.h
15761 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15762 echo "obj-m := conftest.o" >build
/Makefile
15764 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15765 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15767 (eval $ac_try) 2>&5
15769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15770 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15772 (eval $ac_try) 2>&5
15774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }; }; then :
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15778 $as_echo "yes" >&6; }
15780 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.
$ac_ext >&5
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15799 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15802 cat confdefs.h
- <<_ACEOF >conftest.c
15805 #include <linux/bio.h>
15811 int flags __attribute__ ((unused));
15812 flags = REQ_FAILFAST_MASK;
15822 cat - <<_ACEOF >conftest.h
15827 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15828 echo "obj-m := conftest.o" >build
/Makefile
15830 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15831 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15833 (eval $ac_try) 2>&5
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15838 (eval $ac_try) 2>&5
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; }; }; then :
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15844 $as_echo "yes" >&6; }
15846 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15850 $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.
$ac_ext >&5
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15865 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15868 cat confdefs.h
- <<_ACEOF >conftest.c
15871 #include <linux/blk_types.h>
15877 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
15887 cat - <<_ACEOF >conftest.h
15892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15893 echo "obj-m := conftest.o" >build
/Makefile
15895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15898 (eval $ac_try) 2>&5
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15903 (eval $ac_try) 2>&5
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }; }; then :
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15909 $as_echo "yes" >&6; }
15911 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
15915 $as_echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.
$ac_ext >&5
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
15930 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
15933 cat confdefs.h
- <<_ACEOF >conftest.c
15936 #include <linux/blk_types.h>
15942 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
15952 cat - <<_ACEOF >conftest.h
15957 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15958 echo "obj-m := conftest.o" >build
/Makefile
15960 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15961 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15963 (eval $ac_try) 2>&5
15965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15966 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15968 (eval $ac_try) 2>&5
15970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15971 test $ac_status = 0; }; }; then :
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15974 $as_echo "yes" >&6; }
15976 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
15980 $as_echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.
$ac_ext >&5
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984 $as_echo "no" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
15995 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
15998 cat confdefs.h
- <<_ACEOF >conftest.c
16001 #include <linux/blk_types.h>
16007 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16017 cat - <<_ACEOF >conftest.h
16022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16023 echo "obj-m := conftest.o" >build
/Makefile
16025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16028 (eval $ac_try) 2>&5
16030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16033 (eval $ac_try) 2>&5
16035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16036 test $ac_status = 0; }; }; then :
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039 $as_echo "yes" >&6; }
16041 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16045 $as_echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.
$ac_ext >&5
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16060 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16063 cat confdefs.h
- <<_ACEOF >conftest.c
16066 #include <linux/bio.h>
16072 struct bio bio __attribute__ ((unused));
16083 cat - <<_ACEOF >conftest.h
16088 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16089 echo "obj-m := conftest.o" >build
/Makefile
16091 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16092 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16099 (eval $ac_try) 2>&5
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; }; then :
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16107 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16111 $as_echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.
$ac_ext >&5
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16126 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16129 cat confdefs.h
- <<_ACEOF >conftest.c
16132 #include <linux/bio.h>
16134 void wanted_end_io(struct bio *bio) { return; }
16136 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16151 cat - <<_ACEOF >conftest.h
16156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16157 echo "obj-m := conftest.o" >build
/Makefile
16159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16162 (eval $ac_try) 2>&5
16164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16167 (eval $ac_try) 2>&5
16169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16170 test $ac_status = 0; }; }; then :
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173 $as_echo "yes" >&6; }
16175 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16179 $as_echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.
$ac_ext >&5
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183 $as_echo "no" >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16194 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16197 cat confdefs.h
- <<_ACEOF >conftest.c
16200 #include <linux/bio.h>
16206 int flags __attribute__ ((unused));
16207 flags = BIO_RW_BARRIER;
16217 cat - <<_ACEOF >conftest.h
16222 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16223 echo "obj-m := conftest.o" >build
/Makefile
16225 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16226 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16228 (eval $ac_try) 2>&5
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16233 (eval $ac_try) 2>&5
16235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236 test $ac_status = 0; }; }; then :
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16239 $as_echo "yes" >&6; }
16241 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16245 $as_echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.
$ac_ext >&5
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16249 $as_echo "no" >&6; }
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16260 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16263 cat confdefs.h
- <<_ACEOF >conftest.c
16266 #include <linux/bio.h>
16272 int flags __attribute__ ((unused));
16273 flags = BIO_RW_DISCARD;
16283 cat - <<_ACEOF >conftest.h
16288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16289 echo "obj-m := conftest.o" >build
/Makefile
16291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16294 (eval $ac_try) 2>&5
16296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16299 (eval $ac_try) 2>&5
16301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16302 test $ac_status = 0; }; }; then :
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16305 $as_echo "yes" >&6; }
16307 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16311 $as_echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.
$ac_ext >&5
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16315 $as_echo "no" >&6; }
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16326 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16327 tmp_flags
="$EXTRA_KCFLAGS"
16328 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16331 cat confdefs.h
- <<_ACEOF >conftest.c
16334 #include <linux/blkdev.h>
16340 struct request_queue *q = NULL;
16341 (void) blk_queue_flush(q, REQ_FLUSH);
16351 cat - <<_ACEOF >conftest.h
16356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16357 echo "obj-m := conftest.o" >build
/Makefile
16359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16362 (eval $ac_try) 2>&5
16364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16367 (eval $ac_try) 2>&5
16369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16370 test $ac_status = 0; }; }; then :
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16373 $as_echo "yes" >&6; }
16375 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16379 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16382 cat confdefs.h
- <<_ACEOF >conftest.c
16385 #include <linux/module.h>
16386 #include <linux/blkdev.h>
16388 MODULE_LICENSE("$ZFS_META_LICENSE");
16394 struct request_queue *q = NULL;
16395 (void) blk_queue_flush(q, REQ_FLUSH);
16405 cat - <<_ACEOF >conftest.h
16410 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16411 echo "obj-m := conftest.o" >build
/Makefile
16413 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16414 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16416 (eval $ac_try) 2>&5
16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16419 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16421 (eval $ac_try) 2>&5
16423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16424 test $ac_status = 0; }; }; then :
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16430 $as_echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.
$ac_ext >&5
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16436 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16447 $as_echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.
$ac_ext >&5
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16461 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16464 cat confdefs.h
- <<_ACEOF >conftest.c
16467 #include <linux/kernel.h>
16468 #include <linux/blkdev.h>
16475 struct request_queue *q = NULL;
16476 blk_queue_write_cache(q, true, true);
16486 cat - <<_ACEOF >conftest.h
16491 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16492 echo "obj-m := conftest.o" >build
/Makefile
16494 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16495 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16497 (eval $ac_try) 2>&5
16499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16500 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16502 (eval $ac_try) 2>&5
16504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16505 test $ac_status = 0; }; }; then :
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16508 $as_echo "yes" >&6; }
16510 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16514 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16517 cat confdefs.h
- <<_ACEOF >conftest.c
16520 #include <linux/kernel.h>
16521 #include <linux/module.h>
16522 #include <linux/blkdev.h>
16524 MODULE_LICENSE("$ZFS_META_LICENSE");
16530 struct request_queue *q = NULL;
16531 blk_queue_write_cache(q, true, true);
16541 cat - <<_ACEOF >conftest.h
16546 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16547 echo "obj-m := conftest.o" >build
/Makefile
16549 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16550 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16552 (eval $ac_try) 2>&5
16554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16555 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16557 (eval $ac_try) 2>&5
16559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16560 test $ac_status = 0; }; }; then :
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16566 $as_echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.
$ac_ext >&5
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16570 $as_echo "yes" >&6; }
16572 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16583 $as_echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.
$ac_ext >&5
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16587 $as_echo "no" >&6; }
16596 EXTRA_KCFLAGS
="$tmp_flags"
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16600 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16601 tmp_flags
="$EXTRA_KCFLAGS"
16602 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16605 cat confdefs.h
- <<_ACEOF >conftest.c
16608 #include <linux/blkdev.h>
16614 struct request_queue *q = NULL;
16615 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16625 cat - <<_ACEOF >conftest.h
16630 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16631 echo "obj-m := conftest.o" >build
/Makefile
16633 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16634 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16636 (eval $ac_try) 2>&5
16638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16639 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16641 (eval $ac_try) 2>&5
16643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16644 test $ac_status = 0; }; }; then :
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16649 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16653 $as_echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.
$ac_ext >&5
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16665 EXTRA_KCFLAGS
="$tmp_flags"
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16669 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16670 tmp_flags
="$EXTRA_KCFLAGS"
16671 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16674 cat confdefs.h
- <<_ACEOF >conftest.c
16677 #include <linux/blkdev.h>
16683 struct request_queue *q = NULL;
16684 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16694 cat - <<_ACEOF >conftest.h
16699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16700 echo "obj-m := conftest.o" >build
/Makefile
16702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16705 (eval $ac_try) 2>&5
16707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16710 (eval $ac_try) 2>&5
16712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16713 test $ac_status = 0; }; }; then :
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16716 $as_echo "yes" >&6; }
16718 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16722 $as_echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.
$ac_ext >&5
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16734 EXTRA_KCFLAGS
="$tmp_flags"
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16738 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
16739 tmp_flags
="$EXTRA_KCFLAGS"
16740 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16743 cat confdefs.h
- <<_ACEOF >conftest.c
16746 #include <linux/blkdev.h>
16752 extern enum bio_rw_flags rw;
16754 rw = BIO_RW_UNPLUG;
16764 cat - <<_ACEOF >conftest.h
16769 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16770 echo "obj-m := conftest.o" >build
/Makefile
16772 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16773 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16775 (eval $ac_try) 2>&5
16777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16778 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16780 (eval $ac_try) 2>&5
16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783 test $ac_status = 0; }; }; then :
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16786 $as_echo "yes" >&6; }
16788 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16792 $as_echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.
$ac_ext >&5
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16796 $as_echo "no" >&6; }
16804 EXTRA_KCFLAGS
="$tmp_flags"
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
16808 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
16809 tmp_flags
="$EXTRA_KCFLAGS"
16810 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16813 cat confdefs.h
- <<_ACEOF >conftest.c
16816 #include <linux/blkdev.h>
16822 struct blk_plug plug;
16824 blk_start_plug(&plug);
16825 blk_finish_plug(&plug);
16835 cat - <<_ACEOF >conftest.h
16840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16841 echo "obj-m := conftest.o" >build
/Makefile
16843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16846 (eval $ac_try) 2>&5
16848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16851 (eval $ac_try) 2>&5
16853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16854 test $ac_status = 0; }; }; then :
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16857 $as_echo "yes" >&6; }
16859 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
16863 $as_echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.
$ac_ext >&5
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867 $as_echo "no" >&6; }
16875 EXTRA_KCFLAGS
="$tmp_flags"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16879 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16880 tmp_flags
="$EXTRA_KCFLAGS"
16881 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16884 cat confdefs.h
- <<_ACEOF >conftest.c
16887 #include <linux/blkdev.h>
16893 struct gendisk *disk = NULL;
16894 (void) get_disk_ro(disk);
16904 cat - <<_ACEOF >conftest.h
16909 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16910 echo "obj-m := conftest.o" >build
/Makefile
16912 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16913 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16915 (eval $ac_try) 2>&5
16917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16918 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16920 (eval $ac_try) 2>&5
16922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16923 test $ac_status = 0; }; }; then :
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16926 $as_echo "yes" >&6; }
16928 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
16932 $as_echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.
$ac_ext >&5
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936 $as_echo "no" >&6; }
16944 EXTRA_KCFLAGS
="$tmp_flags"
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
16947 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
16951 cat confdefs.h
- <<_ACEOF >conftest.c
16954 #include <linux/genhd.h>
16960 get_gendisk(0, NULL);
16970 cat - <<_ACEOF >conftest.h
16975 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16976 echo "obj-m := conftest.o" >build
/Makefile
16978 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16979 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16981 (eval $ac_try) 2>&5
16983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16984 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16986 (eval $ac_try) 2>&5
16988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16989 test $ac_status = 0; }; }; then :
16992 $as_echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.
$ac_ext >&5
17001 if test $rc -ne 0; then :
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17007 if test "x$enable_linux_builtin" != xyes
; then
17009 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17010 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17012 if test $rc -ne 0; then
17014 for file in block
/genhd.c
; do
17015 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17016 "$LINUX/$file" 2>/dev
/null
17018 if test $rc -eq 0; then
17023 if test $export -eq 0; then :
17033 if test $rc -ne 0; then :
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17041 $as_echo "yes" >&6; }
17043 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17052 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17055 cat confdefs.h
- <<_ACEOF >conftest.c
17058 #include <linux/blk_types.h>
17064 struct bio *bio __attribute__ ((unused)) = NULL;
17066 bio_set_op_attrs(bio, 0, 0);
17076 cat - <<_ACEOF >conftest.h
17081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17082 echo "obj-m := conftest.o" >build
/Makefile
17084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17085 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17087 (eval $ac_try) 2>&5
17089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17092 (eval $ac_try) 2>&5
17094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17095 test $ac_status = 0; }; }; then :
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17098 $as_echo "yes" >&6; }
17100 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17104 $as_echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.
$ac_ext >&5
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 $as_echo "no" >&6; }
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17119 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17122 cat confdefs.h
- <<_ACEOF >conftest.c
17125 #include <linux/fs.h>
17131 int i __attribute__ ((unused));
17133 i = generic_readlink(NULL, NULL, 0);
17143 cat - <<_ACEOF >conftest.h
17148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17149 echo "obj-m := conftest.o" >build
/Makefile
17151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17154 (eval $ac_try) 2>&5
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17159 (eval $ac_try) 2>&5
17161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17162 test $ac_status = 0; }; }; then :
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17165 $as_echo "yes" >&6; }
17167 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17171 $as_echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.
$ac_ext >&5
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 $as_echo "no" >&6; }
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17186 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17189 cat confdefs.h
- <<_ACEOF >conftest.c
17192 #include <linux/blkdev.h>
17198 struct queue_limits ql __attribute__ ((unused));
17200 ql.discard_granularity = 0;
17210 cat - <<_ACEOF >conftest.h
17215 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17216 echo "obj-m := conftest.o" >build
/Makefile
17218 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17219 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17221 (eval $ac_try) 2>&5
17223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17224 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17226 (eval $ac_try) 2>&5
17228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17229 test $ac_status = 0; }; }; then :
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17232 $as_echo "yes" >&6; }
17234 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17238 $as_echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.
$ac_ext >&5
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17253 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17256 cat confdefs.h
- <<_ACEOF >conftest.c
17259 #include <linux/fs.h>
17260 #include <linux/xattr.h>
17262 const struct xattr_handler xattr_test_handler = {
17268 const struct xattr_handler *xattr_handlers[] = {
17269 &xattr_test_handler,
17272 const struct super_block sb __attribute__ ((unused)) = {
17273 .s_xattr = xattr_handlers,
17289 cat - <<_ACEOF >conftest.h
17294 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17295 echo "obj-m := conftest.o" >build
/Makefile
17297 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17298 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17300 (eval $ac_try) 2>&5
17302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17303 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17305 (eval $ac_try) 2>&5
17307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17308 test $ac_status = 0; }; }; then :
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17311 $as_echo "yes" >&6; }
17313 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17317 $as_echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.
$ac_ext >&5
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17332 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17335 cat confdefs.h
- <<_ACEOF >conftest.c
17338 #include <linux/xattr.h>
17340 static const struct xattr_handler
17341 xops __attribute__ ((unused)) = {
17342 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17358 cat - <<_ACEOF >conftest.h
17363 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17364 echo "obj-m := conftest.o" >build
/Makefile
17366 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17367 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17369 (eval $ac_try) 2>&5
17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17374 (eval $ac_try) 2>&5
17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17377 test $ac_status = 0; }; }; then :
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17380 $as_echo "yes" >&6; }
17382 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17386 $as_echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.
$ac_ext >&5
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17401 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17404 cat confdefs.h
- <<_ACEOF >conftest.c
17407 #include <linux/xattr.h>
17409 int get(const struct xattr_handler *handler,
17410 struct dentry *dentry, struct inode *inode,
17411 const char *name, void *buffer, size_t size) { return 0; }
17412 static const struct xattr_handler
17413 xops __attribute__ ((unused)) = {
17430 cat - <<_ACEOF >conftest.h
17435 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17436 echo "obj-m := conftest.o" >build
/Makefile
17438 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17439 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17441 (eval $ac_try) 2>&5
17443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17444 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17446 (eval $ac_try) 2>&5
17448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17449 test $ac_status = 0; }; }; then :
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17452 $as_echo "yes" >&6; }
17454 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17458 $as_echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.
$ac_ext >&5
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17462 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17465 cat confdefs.h
- <<_ACEOF >conftest.c
17468 #include <linux/xattr.h>
17470 int get(const struct xattr_handler *handler,
17471 struct dentry *dentry, const char *name,
17472 void *buffer, size_t size) { return 0; }
17473 static const struct xattr_handler
17474 xops __attribute__ ((unused)) = {
17491 cat - <<_ACEOF >conftest.h
17496 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17497 echo "obj-m := conftest.o" >build
/Makefile
17499 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17500 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17502 (eval $ac_try) 2>&5
17504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17505 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17507 (eval $ac_try) 2>&5
17509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510 test $ac_status = 0; }; }; then :
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17513 $as_echo "yes" >&6; }
17515 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17519 $as_echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.
$ac_ext >&5
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17523 $as_echo "no" >&6; }
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17525 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17528 cat confdefs.h
- <<_ACEOF >conftest.c
17531 #include <linux/xattr.h>
17533 int get(struct dentry *dentry, const char *name,
17534 void *buffer, size_t size, int handler_flags)
17536 static const struct xattr_handler
17537 xops __attribute__ ((unused)) = {
17554 cat - <<_ACEOF >conftest.h
17559 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17560 echo "obj-m := conftest.o" >build
/Makefile
17562 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17563 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17565 (eval $ac_try) 2>&5
17567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17568 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17570 (eval $ac_try) 2>&5
17572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17573 test $ac_status = 0; }; }; then :
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576 $as_echo "yes" >&6; }
17578 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17582 $as_echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.
$ac_ext >&5
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586 $as_echo "no" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17588 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17591 cat confdefs.h
- <<_ACEOF >conftest.c
17594 #include <linux/xattr.h>
17596 int get(struct inode *ip, const char *name,
17597 void *buffer, size_t size) { return 0; }
17598 static const struct xattr_handler
17599 xops __attribute__ ((unused)) = {
17616 cat - <<_ACEOF >conftest.h
17621 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17622 echo "obj-m := conftest.o" >build
/Makefile
17624 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17625 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627 (eval $ac_try) 2>&5
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17632 (eval $ac_try) 2>&5
17634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17635 test $ac_status = 0; }; }; then :
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17638 $as_echo "yes" >&6; }
17640 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17644 $as_echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.
$ac_ext >&5
17647 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17679 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17682 cat confdefs.h
- <<_ACEOF >conftest.c
17685 #include <linux/xattr.h>
17687 int set(const struct xattr_handler *handler,
17688 struct dentry *dentry, struct inode *inode,
17689 const char *name, const void *buffer,
17690 size_t size, int flags)
17692 static const struct xattr_handler
17693 xops __attribute__ ((unused)) = {
17710 cat - <<_ACEOF >conftest.h
17715 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17716 echo "obj-m := conftest.o" >build
/Makefile
17718 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17719 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17721 (eval $ac_try) 2>&5
17723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17724 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17726 (eval $ac_try) 2>&5
17728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17729 test $ac_status = 0; }; }; then :
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17732 $as_echo "yes" >&6; }
17734 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
17738 $as_echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.
$ac_ext >&5
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
17742 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
17745 cat confdefs.h
- <<_ACEOF >conftest.c
17748 #include <linux/xattr.h>
17750 int set(const struct xattr_handler *handler,
17751 struct dentry *dentry, const char *name,
17752 const void *buffer, size_t size, int flags)
17754 static const struct xattr_handler
17755 xops __attribute__ ((unused)) = {
17772 cat - <<_ACEOF >conftest.h
17777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17778 echo "obj-m := conftest.o" >build
/Makefile
17780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17781 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17783 (eval $ac_try) 2>&5
17785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17788 (eval $ac_try) 2>&5
17790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17791 test $ac_status = 0; }; }; then :
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17794 $as_echo "yes" >&6; }
17796 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
17800 $as_echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.
$ac_ext >&5
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17804 $as_echo "no" >&6; }
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
17806 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17809 cat confdefs.h
- <<_ACEOF >conftest.c
17812 #include <linux/xattr.h>
17814 int set(struct dentry *dentry, const char *name,
17815 const void *buffer, size_t size, int flags,
17816 int handler_flags) { return 0; }
17817 static const struct xattr_handler
17818 xops __attribute__ ((unused)) = {
17835 cat - <<_ACEOF >conftest.h
17840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17841 echo "obj-m := conftest.o" >build
/Makefile
17843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17846 (eval $ac_try) 2>&5
17848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17851 (eval $ac_try) 2>&5
17853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17854 test $ac_status = 0; }; }; then :
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17857 $as_echo "yes" >&6; }
17859 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
17863 $as_echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.
$ac_ext >&5
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
17869 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
17872 cat confdefs.h
- <<_ACEOF >conftest.c
17875 #include <linux/xattr.h>
17877 int set(struct inode *ip, const char *name,
17878 const void *buffer, size_t size, int flags)
17880 static const struct xattr_handler
17881 xops __attribute__ ((unused)) = {
17898 cat - <<_ACEOF >conftest.h
17903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17904 echo "obj-m := conftest.o" >build
/Makefile
17906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17907 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17909 (eval $ac_try) 2>&5
17911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17914 (eval $ac_try) 2>&5
17916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17917 test $ac_status = 0; }; }; then :
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17920 $as_echo "yes" >&6; }
17922 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.
$ac_ext >&5
17929 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
17961 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
17964 cat confdefs.h
- <<_ACEOF >conftest.c
17967 #include <linux/xattr.h>
17969 bool list(struct dentry *dentry) { return 0; }
17970 static const struct xattr_handler
17971 xops __attribute__ ((unused)) = {
17988 cat - <<_ACEOF >conftest.h
17993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17994 echo "obj-m := conftest.o" >build
/Makefile
17996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17999 (eval $ac_try) 2>&5
18001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18004 (eval $ac_try) 2>&5
18006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; }; }; then :
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18010 $as_echo "yes" >&6; }
18012 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.
$ac_ext >&5
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18020 $as_echo "no" >&6; }
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18022 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18025 cat confdefs.h
- <<_ACEOF >conftest.c
18028 #include <linux/xattr.h>
18030 size_t list(const struct xattr_handler *handler,
18031 struct dentry *dentry, char *list, size_t list_size,
18032 const char *name, size_t name_len) { return 0; }
18033 static const struct xattr_handler
18034 xops __attribute__ ((unused)) = {
18051 cat - <<_ACEOF >conftest.h
18056 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18057 echo "obj-m := conftest.o" >build
/Makefile
18059 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18060 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18062 (eval $ac_try) 2>&5
18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18067 (eval $ac_try) 2>&5
18069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18070 test $ac_status = 0; }; }; then :
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18073 $as_echo "yes" >&6; }
18075 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18079 $as_echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.
$ac_ext >&5
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18085 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18088 cat confdefs.h
- <<_ACEOF >conftest.c
18091 #include <linux/xattr.h>
18093 size_t list(struct dentry *dentry,
18094 char *list, size_t list_size,
18095 const char *name, size_t name_len,
18096 int handler_flags) { return 0; }
18097 static const struct xattr_handler
18098 xops __attribute__ ((unused)) = {
18115 cat - <<_ACEOF >conftest.h
18120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18121 echo "obj-m := conftest.o" >build
/Makefile
18123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18124 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18126 (eval $ac_try) 2>&5
18128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18131 (eval $ac_try) 2>&5
18133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134 test $ac_status = 0; }; }; then :
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18139 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18143 $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.
$ac_ext >&5
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18149 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18152 cat confdefs.h
- <<_ACEOF >conftest.c
18155 #include <linux/xattr.h>
18157 size_t list(struct inode *ip, char *lst,
18158 size_t list_size, const char *name,
18159 size_t name_len) { return 0; }
18160 static const struct xattr_handler
18161 xops __attribute__ ((unused)) = {
18178 cat - <<_ACEOF >conftest.h
18183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18184 echo "obj-m := conftest.o" >build
/Makefile
18186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18189 (eval $ac_try) 2>&5
18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18194 (eval $ac_try) 2>&5
18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18197 test $ac_status = 0; }; }; then :
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18200 $as_echo "yes" >&6; }
18202 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18206 $as_echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.
$ac_ext >&5
18209 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18241 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18244 cat confdefs.h
- <<_ACEOF >conftest.c
18247 #include <linux/fs.h>
18253 struct inode *ip = NULL;
18254 (void) inode_owner_or_capable(ip);
18264 cat - <<_ACEOF >conftest.h
18269 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18270 echo "obj-m := conftest.o" >build
/Makefile
18272 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18273 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18275 (eval $ac_try) 2>&5
18277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18278 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18280 (eval $ac_try) 2>&5
18282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18283 test $ac_status = 0; }; }; then :
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18286 $as_echo "yes" >&6; }
18288 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18292 $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.
$ac_ext >&5
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 $as_echo "no" >&6; }
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18298 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18301 cat confdefs.h
- <<_ACEOF >conftest.c
18304 #include <linux/fs.h>
18305 #include <linux/sched.h>
18311 struct inode *ip = NULL;
18312 (void) is_owner_or_cap(ip);
18322 cat - <<_ACEOF >conftest.h
18327 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18328 echo "obj-m := conftest.o" >build
/Makefile
18330 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18331 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18333 (eval $ac_try) 2>&5
18335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18336 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18338 (eval $ac_try) 2>&5
18340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; }; }; then :
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344 $as_echo "yes" >&6; }
18346 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.
$ac_ext >&5
18353 as_fn_error $?
"no - Please file a bug report at
18354 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18372 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18375 cat confdefs.h
- <<_ACEOF >conftest.c
18378 #include <linux/cred.h>
18379 #include <linux/fs.h>
18380 #include <linux/posix_acl_xattr.h>
18386 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18396 cat - <<_ACEOF >conftest.h
18401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18402 echo "obj-m := conftest.o" >build
/Makefile
18404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18407 (eval $ac_try) 2>&5
18409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18412 (eval $ac_try) 2>&5
18414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18415 test $ac_status = 0; }; }; then :
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18418 $as_echo "yes" >&6; }
18420 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18424 $as_echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.
$ac_ext >&5
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18439 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18442 cat confdefs.h
- <<_ACEOF >conftest.c
18445 #include <linux/cred.h>
18446 #include <linux/fs.h>
18447 #include <linux/posix_acl.h>
18453 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18454 posix_acl_release(tmp);
18464 cat - <<_ACEOF >conftest.h
18469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18470 echo "obj-m := conftest.o" >build
/Makefile
18472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18475 (eval $ac_try) 2>&5
18477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18478 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18480 (eval $ac_try) 2>&5
18482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483 test $ac_status = 0; }; }; then :
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18486 $as_echo "yes" >&6; }
18488 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18492 $as_echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.
$ac_ext >&5
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496 $as_echo "no" >&6; }
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18506 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18509 cat confdefs.h
- <<_ACEOF >conftest.c
18512 #include <linux/cred.h>
18513 #include <linux/fs.h>
18514 #include <linux/posix_acl.h>
18516 MODULE_LICENSE("$ZFS_META_LICENSE");
18522 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18523 posix_acl_release(tmp);
18533 cat - <<_ACEOF >conftest.h
18538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18539 echo "obj-m := conftest.o" >build
/Makefile
18541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18542 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18544 (eval $ac_try) 2>&5
18546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18547 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18549 (eval $ac_try) 2>&5
18551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18552 test $ac_status = 0; }; }; then :
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18555 $as_echo "no" >&6; }
18558 $as_echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.
$ac_ext >&5
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18562 $as_echo "yes" >&6; }
18564 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18576 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18579 cat confdefs.h
- <<_ACEOF >conftest.c
18582 #include <linux/module.h>
18583 #include <linux/cred.h>
18584 #include <linux/fs.h>
18585 #include <linux/posix_acl.h>
18587 MODULE_LICENSE("$ZFS_META_LICENSE");
18593 struct inode *ip = NULL;
18594 struct posix_acl *acl = posix_acl_alloc(1, 0);
18595 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18596 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18606 cat - <<_ACEOF >conftest.h
18611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18612 echo "obj-m := conftest.o" >build
/Makefile
18614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18617 (eval $ac_try) 2>&5
18619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18620 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18622 (eval $ac_try) 2>&5
18624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18625 test $ac_status = 0; }; }; then :
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 $as_echo "yes" >&6; }
18630 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18634 $as_echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.
$ac_ext >&5
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18638 $as_echo "no" >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18649 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18652 cat confdefs.h
- <<_ACEOF >conftest.c
18655 #include <linux/fs.h>
18656 #include <linux/posix_acl.h>
18662 posix_acl_chmod(NULL, 0, 0)
18672 cat - <<_ACEOF >conftest.h
18677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18678 echo "obj-m := conftest.o" >build
/Makefile
18680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18683 (eval $ac_try) 2>&5
18685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18686 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18688 (eval $ac_try) 2>&5
18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691 test $ac_status = 0; }; }; then :
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18694 $as_echo "yes" >&6; }
18696 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18700 $as_echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.
$ac_ext >&5
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18714 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18717 cat confdefs.h
- <<_ACEOF >conftest.c
18720 #include <linux/fs.h>
18721 #include <linux/posix_acl.h>
18727 __posix_acl_chmod(NULL, 0, 0)
18737 cat - <<_ACEOF >conftest.h
18742 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18743 echo "obj-m := conftest.o" >build
/Makefile
18745 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18746 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18748 (eval $ac_try) 2>&5
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18753 (eval $ac_try) 2>&5
18755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756 test $ac_status = 0; }; }; then :
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18759 $as_echo "yes" >&6; }
18761 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18765 $as_echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.
$ac_ext >&5
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18780 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18783 cat confdefs.h
- <<_ACEOF >conftest.c
18786 #include <linux/fs.h>
18787 #include <linux/posix_acl.h>
18794 posix_acl_equiv_mode(NULL,&tmp);
18804 cat - <<_ACEOF >conftest.h
18809 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18810 echo "obj-m := conftest.o" >build
/Makefile
18812 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18813 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18815 (eval $ac_try) 2>&5
18817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18818 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18820 (eval $ac_try) 2>&5
18822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18823 test $ac_status = 0; }; }; then :
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18826 $as_echo "yes" >&6; }
18828 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
18832 $as_echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.
$ac_ext >&5
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 $as_echo "no" >&6; }
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
18847 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
18850 cat confdefs.h
- <<_ACEOF >conftest.c
18853 #include <linux/fs.h>
18854 #include <linux/posix_acl.h>
18860 struct user_namespace *user_ns = NULL;
18861 const struct posix_acl *acl = NULL;
18864 error = posix_acl_valid(user_ns, acl);
18874 cat - <<_ACEOF >conftest.h
18879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18880 echo "obj-m := conftest.o" >build
/Makefile
18882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18885 (eval $ac_try) 2>&5
18887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18890 (eval $ac_try) 2>&5
18892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18893 test $ac_status = 0; }; }; then :
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18898 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.
$ac_ext >&5
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906 $as_echo "no" >&6; }
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
18917 $as_echo_n "checking whether iops->permission() exists... " >&6; }
18920 cat confdefs.h
- <<_ACEOF >conftest.c
18923 #include <linux/fs.h>
18925 int permission_fn(struct inode *inode, int mask) { return 0; }
18927 static const struct inode_operations
18928 iops __attribute__ ((unused)) = {
18929 .permission = permission_fn,
18945 cat - <<_ACEOF >conftest.h
18950 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18951 echo "obj-m := conftest.o" >build
/Makefile
18953 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18954 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18956 (eval $ac_try) 2>&5
18958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18959 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18961 (eval $ac_try) 2>&5
18963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18964 test $ac_status = 0; }; }; then :
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18967 $as_echo "yes" >&6; }
18969 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18973 $as_echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.
$ac_ext >&5
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
18988 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
18991 cat confdefs.h
- <<_ACEOF >conftest.c
18994 #include <linux/fs.h>
18996 int permission_fn(struct inode *inode, int mask,
18997 struct nameidata *nd) { return 0; }
18999 static const struct inode_operations
19000 iops __attribute__ ((unused)) = {
19001 .permission = permission_fn,
19017 cat - <<_ACEOF >conftest.h
19022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19023 echo "obj-m := conftest.o" >build
/Makefile
19025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19028 (eval $ac_try) 2>&5
19030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19033 (eval $ac_try) 2>&5
19035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19036 test $ac_status = 0; }; }; then :
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19041 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19044 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19048 $as_echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.
$ac_ext >&5
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19063 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19066 cat confdefs.h
- <<_ACEOF >conftest.c
19069 #include <linux/fs.h>
19071 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19073 static const struct inode_operations
19074 iops __attribute__ ((unused)) = {
19075 .check_acl = check_acl_fn,
19091 cat - <<_ACEOF >conftest.h
19096 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19097 echo "obj-m := conftest.o" >build
/Makefile
19099 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19100 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19102 (eval $ac_try) 2>&5
19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19105 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19107 (eval $ac_try) 2>&5
19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; }; }; then :
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19113 $as_echo "yes" >&6; }
19115 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19119 $as_echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.
$ac_ext >&5
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19123 $as_echo "no" >&6; }
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19134 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19137 cat confdefs.h
- <<_ACEOF >conftest.c
19140 #include <linux/fs.h>
19142 int check_acl_fn(struct inode *inode, int mask,
19143 unsigned int flags) { return 0; }
19145 static const struct inode_operations
19146 iops __attribute__ ((unused)) = {
19147 .check_acl = check_acl_fn,
19163 cat - <<_ACEOF >conftest.h
19168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19169 echo "obj-m := conftest.o" >build
/Makefile
19171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19174 (eval $ac_try) 2>&5
19176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19179 (eval $ac_try) 2>&5
19181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19182 test $ac_status = 0; }; }; then :
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19187 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19190 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19194 $as_echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.
$ac_ext >&5
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19209 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19212 cat confdefs.h
- <<_ACEOF >conftest.c
19215 #include <linux/fs.h>
19217 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19220 static const struct inode_operations
19221 iops __attribute__ ((unused)) = {
19222 .get_acl = get_acl_fn,
19238 cat - <<_ACEOF >conftest.h
19243 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19244 echo "obj-m := conftest.o" >build
/Makefile
19246 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19247 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19249 (eval $ac_try) 2>&5
19251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19254 (eval $ac_try) 2>&5
19256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19257 test $ac_status = 0; }; }; then :
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 $as_echo "yes" >&6; }
19262 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19266 $as_echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.
$ac_ext >&5
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19281 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19284 cat confdefs.h
- <<_ACEOF >conftest.c
19287 #include <linux/fs.h>
19289 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19292 static const struct inode_operations
19293 iops __attribute__ ((unused)) = {
19294 .set_acl = set_acl_fn,
19310 cat - <<_ACEOF >conftest.h
19315 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19316 echo "obj-m := conftest.o" >build
/Makefile
19318 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19319 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19321 (eval $ac_try) 2>&5
19323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19324 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19326 (eval $ac_try) 2>&5
19328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19329 test $ac_status = 0; }; }; then :
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19334 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19338 $as_echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.
$ac_ext >&5
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19354 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19357 cat confdefs.h
- <<_ACEOF >conftest.c
19360 #include <linux/fs.h>
19363 const struct path *p, struct kstat *k,
19364 u32 request_mask, unsigned int query_flags)
19367 static const struct inode_operations
19368 iops __attribute__ ((unused)) = {
19369 .getattr = test_getattr,
19385 cat - <<_ACEOF >conftest.h
19390 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19391 echo "obj-m := conftest.o" >build
/Makefile
19393 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19394 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19396 (eval $ac_try) 2>&5
19398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19399 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19401 (eval $ac_try) 2>&5
19403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19404 test $ac_status = 0; }; }; then :
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19407 $as_echo "yes" >&6; }
19409 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19413 $as_echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.
$ac_ext >&5
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417 $as_echo "no" >&6; }
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19428 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19431 cat confdefs.h
- <<_ACEOF >conftest.c
19434 #include <linux/fs.h>
19437 struct vfsmount *mnt, struct dentry *d,
19441 static const struct inode_operations
19442 iops __attribute__ ((unused)) = {
19443 .getattr = test_getattr,
19459 cat - <<_ACEOF >conftest.h
19464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19465 echo "obj-m := conftest.o" >build
/Makefile
19467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19468 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19470 (eval $ac_try) 2>&5
19472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19473 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19475 (eval $ac_try) 2>&5
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; }; }; then :
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481 $as_echo "yes" >&6; }
19483 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19487 $as_echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.
$ac_ext >&5
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491 $as_echo "no" >&6; }
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19503 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19506 cat confdefs.h
- <<_ACEOF >conftest.c
19509 #include <linux/fs.h>
19515 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19525 cat - <<_ACEOF >conftest.h
19530 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19531 echo "obj-m := conftest.o" >build
/Makefile
19533 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19534 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19536 (eval $ac_try) 2>&5
19538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19539 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19541 (eval $ac_try) 2>&5
19543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19544 test $ac_status = 0; }; }; then :
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19547 $as_echo "yes" >&6; }
19549 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19553 $as_echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.
$ac_ext >&5
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557 $as_echo "no" >&6; }
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19568 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19572 cat confdefs.h
- <<_ACEOF >conftest.c
19575 #include <linux/fs.h>
19577 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19578 static struct super_operations sops __attribute__ ((unused)) = {
19579 .show_options = show_options,
19595 cat - <<_ACEOF >conftest.h
19600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19601 echo "obj-m := conftest.o" >build
/Makefile
19603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19606 (eval $ac_try) 2>&5
19608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19609 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19611 (eval $ac_try) 2>&5
19613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19614 test $ac_status = 0; }; }; then :
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19617 $as_echo "yes" >&6; }
19619 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19623 $as_echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.
$ac_ext >&5
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19638 $as_echo_n "checking whether file_inode() is available... " >&6; }
19641 cat confdefs.h
- <<_ACEOF >conftest.c
19644 #include <linux/fs.h>
19650 struct file *f = NULL;
19661 cat - <<_ACEOF >conftest.h
19666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19667 echo "obj-m := conftest.o" >build
/Makefile
19669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19672 (eval $ac_try) 2>&5
19674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19677 (eval $ac_try) 2>&5
19679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19680 test $ac_status = 0; }; }; then :
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19683 $as_echo "yes" >&6; }
19685 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
19689 $as_echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.
$ac_ext >&5
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19693 $as_echo "no" >&6; }
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
19704 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19708 cat confdefs.h
- <<_ACEOF >conftest.c
19711 #include <linux/fs.h>
19713 int test_fsync(struct file *f, struct dentry *dentry, int x)
19716 static const struct file_operations
19717 fops __attribute__ ((unused)) = {
19718 .fsync = test_fsync,
19734 cat - <<_ACEOF >conftest.h
19739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19740 echo "obj-m := conftest.o" >build
/Makefile
19742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19745 (eval $ac_try) 2>&5
19747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19750 (eval $ac_try) 2>&5
19752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19753 test $ac_status = 0; }; }; then :
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
19756 $as_echo "dentry" >&6; }
19758 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.
$ac_ext >&5
19776 cat confdefs.h
- <<_ACEOF >conftest.c
19779 #include <linux/fs.h>
19781 int test_fsync(struct file *f, int x) { return 0; }
19783 static const struct file_operations
19784 fops __attribute__ ((unused)) = {
19785 .fsync = test_fsync,
19801 cat - <<_ACEOF >conftest.h
19806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19807 echo "obj-m := conftest.o" >build
/Makefile
19809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19812 (eval $ac_try) 2>&5
19814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19817 (eval $ac_try) 2>&5
19819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820 test $ac_status = 0; }; }; then :
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
19823 $as_echo "no dentry" >&6; }
19825 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
19829 $as_echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.
$ac_ext >&5
19843 cat confdefs.h
- <<_ACEOF >conftest.c
19846 #include <linux/fs.h>
19848 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
19851 static const struct file_operations
19852 fops __attribute__ ((unused)) = {
19853 .fsync = test_fsync,
19869 cat - <<_ACEOF >conftest.h
19874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19875 echo "obj-m := conftest.o" >build
/Makefile
19877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19880 (eval $ac_try) 2>&5
19882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19885 (eval $ac_try) 2>&5
19887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19888 test $ac_status = 0; }; }; then :
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
19891 $as_echo "range" >&6; }
19893 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.
$ac_ext >&5
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
19911 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19914 cat confdefs.h
- <<_ACEOF >conftest.c
19917 #include <linux/fs.h>
19918 void evict_inode (struct inode * t) { return; }
19919 static struct super_operations sops __attribute__ ((unused)) = {
19920 .evict_inode = evict_inode,
19936 cat - <<_ACEOF >conftest.h
19941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19942 echo "obj-m := conftest.o" >build
/Makefile
19944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19947 (eval $ac_try) 2>&5
19949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19952 (eval $ac_try) 2>&5
19954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955 test $ac_status = 0; }; }; then :
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19958 $as_echo "yes" >&6; }
19960 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.
$ac_ext >&5
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968 $as_echo "no" >&6; }
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
19979 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
19982 cat confdefs.h
- <<_ACEOF >conftest.c
19985 #include <linux/fs.h>
19987 void dirty_inode(struct inode *a, int b) { return; }
19989 static const struct super_operations
19990 sops __attribute__ ((unused)) = {
19991 .dirty_inode = dirty_inode,
20007 cat - <<_ACEOF >conftest.h
20012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20013 echo "obj-m := conftest.o" >build
/Makefile
20015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20018 (eval $ac_try) 2>&5
20020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20023 (eval $ac_try) 2>&5
20025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20026 test $ac_status = 0; }; }; then :
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20031 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20035 $as_echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.
$ac_ext >&5
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20039 $as_echo "no" >&6; }
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20050 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20053 cat confdefs.h
- <<_ACEOF >conftest.c
20056 #include <linux/fs.h>
20058 int nr_cached_objects(struct super_block *sb) { return 0; }
20060 static const struct super_operations
20061 sops __attribute__ ((unused)) = {
20062 .nr_cached_objects = nr_cached_objects,
20078 cat - <<_ACEOF >conftest.h
20083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20084 echo "obj-m := conftest.o" >build
/Makefile
20086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20087 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20089 (eval $ac_try) 2>&5
20091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20092 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20094 (eval $ac_try) 2>&5
20096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20097 test $ac_status = 0; }; }; then :
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20100 $as_echo "yes" >&6; }
20102 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20106 $as_echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.
$ac_ext >&5
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110 $as_echo "no" >&6; }
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20121 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20124 cat confdefs.h
- <<_ACEOF >conftest.c
20127 #include <linux/fs.h>
20129 void free_cached_objects(struct super_block *sb, int x)
20132 static const struct super_operations
20133 sops __attribute__ ((unused)) = {
20134 .free_cached_objects = free_cached_objects,
20150 cat - <<_ACEOF >conftest.h
20155 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20156 echo "obj-m := conftest.o" >build
/Makefile
20158 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20159 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20161 (eval $ac_try) 2>&5
20163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20164 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20166 (eval $ac_try) 2>&5
20168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20169 test $ac_status = 0; }; }; then :
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20172 $as_echo "yes" >&6; }
20174 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20178 $as_echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.
$ac_ext >&5
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182 $as_echo "no" >&6; }
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20194 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20197 cat confdefs.h
- <<_ACEOF >conftest.c
20200 #include <linux/fs.h>
20202 long test_fallocate(struct file *file, int mode,
20203 loff_t offset, loff_t len) { return 0; }
20205 static const struct file_operations
20206 fops __attribute__ ((unused)) = {
20207 .fallocate = test_fallocate,
20223 cat - <<_ACEOF >conftest.h
20228 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20229 echo "obj-m := conftest.o" >build
/Makefile
20231 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20232 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20234 (eval $ac_try) 2>&5
20236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20237 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20239 (eval $ac_try) 2>&5
20241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20242 test $ac_status = 0; }; }; then :
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20245 $as_echo "yes" >&6; }
20247 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20251 $as_echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.
$ac_ext >&5
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20255 $as_echo "no" >&6; }
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20266 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20269 cat confdefs.h
- <<_ACEOF >conftest.c
20272 #include <linux/fs.h>
20274 long test_fallocate(struct inode *inode, int mode,
20275 loff_t offset, loff_t len) { return 0; }
20277 static const struct inode_operations
20278 fops __attribute__ ((unused)) = {
20279 .fallocate = test_fallocate,
20295 cat - <<_ACEOF >conftest.h
20300 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20301 echo "obj-m := conftest.o" >build
/Makefile
20303 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20304 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20306 (eval $ac_try) 2>&5
20308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20309 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20311 (eval $ac_try) 2>&5
20313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20314 test $ac_status = 0; }; }; then :
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20317 $as_echo "yes" >&6; }
20319 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20323 $as_echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.
$ac_ext >&5
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20327 $as_echo "no" >&6; }
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20339 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20342 cat confdefs.h
- <<_ACEOF >conftest.c
20345 #include <linux/fs.h>
20347 static const struct file_operations
20348 fops __attribute__ ((unused)) = {
20365 cat - <<_ACEOF >conftest.h
20370 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20371 echo "obj-m := conftest.o" >build
/Makefile
20373 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20374 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20376 (eval $ac_try) 2>&5
20378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20379 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20381 (eval $ac_try) 2>&5
20383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384 test $ac_status = 0; }; }; then :
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20387 $as_echo "yes" >&6; }
20389 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20393 $as_echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.
$ac_ext >&5
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20397 $as_echo "no" >&6; }
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20408 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20411 cat confdefs.h
- <<_ACEOF >conftest.c
20414 #include <linux/fs.h>
20416 int mkdir(struct inode *inode, struct dentry *dentry,
20417 umode_t umode) { return 0; }
20419 static const struct inode_operations
20420 iops __attribute__ ((unused)) = {
20437 cat - <<_ACEOF >conftest.h
20442 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20443 echo "obj-m := conftest.o" >build
/Makefile
20445 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20446 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20448 (eval $ac_try) 2>&5
20450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20451 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20453 (eval $ac_try) 2>&5
20455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20456 test $ac_status = 0; }; }; then :
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20459 $as_echo "yes" >&6; }
20461 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20465 $as_echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.
$ac_ext >&5
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20469 $as_echo "no" >&6; }
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20480 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20483 cat confdefs.h
- <<_ACEOF >conftest.c
20486 #include <linux/fs.h>
20488 struct dentry *inode_lookup(struct inode *inode,
20489 struct dentry *dentry, struct nameidata *nidata)
20492 static const struct inode_operations iops
20493 __attribute__ ((unused)) = {
20494 .lookup = inode_lookup,
20510 cat - <<_ACEOF >conftest.h
20515 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20516 echo "obj-m := conftest.o" >build
/Makefile
20518 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20519 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20521 (eval $ac_try) 2>&5
20523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20524 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20526 (eval $ac_try) 2>&5
20528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20529 test $ac_status = 0; }; }; then :
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532 $as_echo "yes" >&6; }
20534 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20538 $as_echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.
$ac_ext >&5
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20542 $as_echo "no" >&6; }
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20553 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20556 cat confdefs.h
- <<_ACEOF >conftest.c
20559 #include <linux/fs.h>
20561 #ifdef HAVE_MKDIR_UMODE_T
20562 int inode_create(struct inode *inode ,struct dentry *dentry,
20563 umode_t umode, struct nameidata *nidata) { return 0; }
20565 int inode_create(struct inode *inode,struct dentry *dentry,
20566 int umode, struct nameidata * nidata) { return 0; }
20569 static const struct inode_operations
20570 iops __attribute__ ((unused)) = {
20571 .create = inode_create,
20587 cat - <<_ACEOF >conftest.h
20592 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20593 echo "obj-m := conftest.o" >build
/Makefile
20595 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20596 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20598 (eval $ac_try) 2>&5
20600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20601 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20603 (eval $ac_try) 2>&5
20605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20606 test $ac_status = 0; }; }; then :
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20609 $as_echo "yes" >&6; }
20611 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
20615 $as_echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.
$ac_ext >&5
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20619 $as_echo "no" >&6; }
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
20630 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
20633 cat confdefs.h
- <<_ACEOF >conftest.c
20636 #include <linux/fs.h>
20637 const char *get_link(struct dentry *de, struct inode *ip,
20638 struct delayed_call *done) { return "symlink"; }
20639 static struct inode_operations
20640 iops __attribute__ ((unused)) = {
20641 .get_link = get_link,
20657 cat - <<_ACEOF >conftest.h
20662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20663 echo "obj-m := conftest.o" >build
/Makefile
20665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20668 (eval $ac_try) 2>&5
20670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20671 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20673 (eval $ac_try) 2>&5
20675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20676 test $ac_status = 0; }; }; then :
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20679 $as_echo "yes" >&6; }
20681 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
20685 $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.
$ac_ext >&5
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
20691 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
20694 cat confdefs.h
- <<_ACEOF >conftest.c
20697 #include <linux/fs.h>
20698 const char *get_link(struct dentry *de, struct
20699 inode *ip, void **cookie) { return "symlink"; }
20700 static struct inode_operations
20701 iops __attribute__ ((unused)) = {
20702 .get_link = get_link,
20718 cat - <<_ACEOF >conftest.h
20723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20724 echo "obj-m := conftest.o" >build
/Makefile
20726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20729 (eval $ac_try) 2>&5
20731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20732 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20734 (eval $ac_try) 2>&5
20736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20737 test $ac_status = 0; }; }; then :
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20740 $as_echo "yes" >&6; }
20742 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
20746 $as_echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.
$ac_ext >&5
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20750 $as_echo "no" >&6; }
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
20753 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
20756 cat confdefs.h
- <<_ACEOF >conftest.c
20759 #include <linux/fs.h>
20760 const char *follow_link(struct dentry *de,
20761 void **cookie) { return "symlink"; }
20762 static struct inode_operations
20763 iops __attribute__ ((unused)) = {
20764 .follow_link = follow_link,
20780 cat - <<_ACEOF >conftest.h
20785 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20786 echo "obj-m := conftest.o" >build
/Makefile
20788 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20789 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20791 (eval $ac_try) 2>&5
20793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20794 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20796 (eval $ac_try) 2>&5
20798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20799 test $ac_status = 0; }; }; then :
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20802 $as_echo "yes" >&6; }
20804 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
20808 $as_echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.
$ac_ext >&5
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20812 $as_echo "no" >&6; }
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
20814 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
20817 cat confdefs.h
- <<_ACEOF >conftest.c
20820 #include <linux/fs.h>
20821 void *follow_link(struct dentry *de, struct
20822 nameidata *nd) { return (void *)NULL; }
20823 static struct inode_operations
20824 iops __attribute__ ((unused)) = {
20825 .follow_link = follow_link,
20841 cat - <<_ACEOF >conftest.h
20846 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20847 echo "obj-m := conftest.o" >build
/Makefile
20849 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20850 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20852 (eval $ac_try) 2>&5
20854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20855 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20857 (eval $ac_try) 2>&5
20859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20860 test $ac_status = 0; }; }; then :
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20863 $as_echo "yes" >&6; }
20865 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
20869 $as_echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.
$ac_ext >&5
20872 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
20906 cat confdefs.h
- <<_ACEOF >conftest.c
20909 #if !defined(HAVE_GET_LINK_DELAYED)
20910 #error "Expecting get_link() delayed done"
20926 cat - <<_ACEOF >conftest.h
20931 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20932 echo "obj-m := conftest.o" >build
/Makefile
20934 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20935 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20937 (eval $ac_try) 2>&5
20939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20940 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20942 (eval $ac_try) 2>&5
20944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20945 test $ac_status = 0; }; }; then :
20948 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
20952 $as_echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.
$ac_ext >&5
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
20956 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
20959 cat confdefs.h
- <<_ACEOF >conftest.c
20962 #include <linux/fs.h>
20963 void put_link(struct inode *ip, void *cookie)
20965 static struct inode_operations
20966 iops __attribute__ ((unused)) = {
20967 .put_link = put_link,
20983 cat - <<_ACEOF >conftest.h
20988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20989 echo "obj-m := conftest.o" >build
/Makefile
20991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20994 (eval $ac_try) 2>&5
20996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; }; then :
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21005 $as_echo "yes" >&6; }
21007 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21011 $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.
$ac_ext >&5
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21015 $as_echo "no" >&6; }
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21017 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21020 cat confdefs.h
- <<_ACEOF >conftest.c
21023 #include <linux/fs.h>
21024 void put_link(struct dentry *de, struct
21025 nameidata *nd, void *ptr) { return; }
21026 static struct inode_operations
21027 iops __attribute__ ((unused)) = {
21028 .put_link = put_link,
21044 cat - <<_ACEOF >conftest.h
21049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21050 echo "obj-m := conftest.o" >build
/Makefile
21052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21055 (eval $ac_try) 2>&5
21057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21060 (eval $ac_try) 2>&5
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }; }; then :
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066 $as_echo "yes" >&6; }
21068 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21072 $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.
$ac_ext >&5
21075 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21100 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21103 cat confdefs.h
- <<_ACEOF >conftest.c
21106 #include <linux/fs.h>
21107 void truncate_range(struct inode *inode, loff_t start,
21108 loff_t end) { return; }
21109 static struct inode_operations iops __attribute__ ((unused)) = {
21110 .truncate_range = truncate_range,
21126 cat - <<_ACEOF >conftest.h
21131 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21132 echo "obj-m := conftest.o" >build
/Makefile
21134 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21135 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21137 (eval $ac_try) 2>&5
21139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21140 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21142 (eval $ac_try) 2>&5
21144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21145 test $ac_status = 0; }; }; then :
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21148 $as_echo "yes" >&6; }
21150 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21154 $as_echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.
$ac_ext >&5
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21158 $as_echo "no" >&6; }
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21169 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21172 cat confdefs.h
- <<_ACEOF >conftest.c
21175 #include <linux/dcache.h>
21176 struct vfsmount *d_automount(struct path *p) { return NULL; }
21177 struct dentry_operations dops __attribute__ ((unused)) = {
21178 .d_automount = d_automount,
21194 cat - <<_ACEOF >conftest.h
21199 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21200 echo "obj-m := conftest.o" >build
/Makefile
21202 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21203 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21205 (eval $ac_try) 2>&5
21207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21208 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21210 (eval $ac_try) 2>&5
21212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21213 test $ac_status = 0; }; }; then :
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21216 $as_echo "yes" >&6; }
21218 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21222 $as_echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.
$ac_ext >&5
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21226 $as_echo "no" >&6; }
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21237 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21240 cat confdefs.h
- <<_ACEOF >conftest.c
21243 #include <linux/exportfs.h>
21244 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21245 struct inode *parent) { return 0; }
21246 static struct export_operations eops __attribute__ ((unused))={
21247 .encode_fh = encode_fh,
21263 cat - <<_ACEOF >conftest.h
21268 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21269 echo "obj-m := conftest.o" >build
/Makefile
21271 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21272 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21274 (eval $ac_try) 2>&5
21276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21277 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21279 (eval $ac_try) 2>&5
21281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21282 test $ac_status = 0; }; }; then :
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21285 $as_echo "yes" >&6; }
21287 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21291 $as_echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.
$ac_ext >&5
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21295 $as_echo "no" >&6; }
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21306 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21309 cat confdefs.h
- <<_ACEOF >conftest.c
21312 #include <linux/exportfs.h>
21313 int commit_metadata(struct inode *inode) { return 0; }
21314 static struct export_operations eops __attribute__ ((unused))={
21315 .commit_metadata = commit_metadata,
21331 cat - <<_ACEOF >conftest.h
21336 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21337 echo "obj-m := conftest.o" >build
/Makefile
21339 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21340 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21342 (eval $ac_try) 2>&5
21344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21345 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21347 (eval $ac_try) 2>&5
21349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21350 test $ac_status = 0; }; }; then :
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21353 $as_echo "yes" >&6; }
21355 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21359 $as_echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.
$ac_ext >&5
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 $as_echo "no" >&6; }
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21373 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21377 cat confdefs.h
- <<_ACEOF >conftest.c
21380 #include <linux/fs.h>
21396 cat - <<_ACEOF >conftest.h
21401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21402 echo "obj-m := conftest.o" >build
/Makefile
21404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21407 (eval $ac_try) 2>&5
21409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21412 (eval $ac_try) 2>&5
21414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21415 test $ac_status = 0; }; }; then :
21418 $as_echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.
$ac_ext >&5
21427 if test $rc -ne 0; then :
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430 $as_echo "no" >&6; }
21433 if test "x$enable_linux_builtin" != xyes
; then
21435 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21436 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21438 if test $rc -ne 0; then
21440 for file in fs
/inode.c
; do
21441 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21442 "$LINUX/$file" 2>/dev
/null
21444 if test $rc -eq 0; then
21449 if test $export -eq 0; then :
21459 if test $rc -ne 0; then :
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21462 $as_echo "no" >&6; }
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467 $as_echo "yes" >&6; }
21469 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21477 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21481 cat confdefs.h
- <<_ACEOF >conftest.c
21484 #include <linux/fs.h>
21490 struct dentry *dentry = NULL;
21491 struct iattr *attr = NULL;
21494 error = setattr_prepare(dentry, attr);
21504 cat - <<_ACEOF >conftest.h
21509 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21510 echo "obj-m := conftest.o" >build
/Makefile
21512 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21513 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21515 (eval $ac_try) 2>&5
21517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21518 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21520 (eval $ac_try) 2>&5
21522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21523 test $ac_status = 0; }; }; then :
21526 $as_echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.
$ac_ext >&5
21535 if test $rc -ne 0; then :
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21541 if test "x$enable_linux_builtin" != xyes
; then
21543 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
21544 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21546 if test $rc -ne 0; then
21548 for file in fs
/attr.c
; do
21549 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
21550 "$LINUX/$file" 2>/dev
/null
21552 if test $rc -eq 0; then
21557 if test $export -eq 0; then :
21567 if test $rc -ne 0; then :
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21570 $as_echo "no" >&6; }
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21575 $as_echo "yes" >&6; }
21577 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
21585 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
21589 cat confdefs.h
- <<_ACEOF >conftest.c
21592 #include <linux/fs.h>
21598 insert_inode_locked(NULL);
21608 cat - <<_ACEOF >conftest.h
21613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21614 echo "obj-m := conftest.o" >build
/Makefile
21616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21619 (eval $ac_try) 2>&5
21621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21622 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21624 (eval $ac_try) 2>&5
21626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21627 test $ac_status = 0; }; }; then :
21630 $as_echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.
$ac_ext >&5
21639 if test $rc -ne 0; then :
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21642 $as_echo "no" >&6; }
21645 if test "x$enable_linux_builtin" != xyes
; then
21647 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21648 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21650 if test $rc -ne 0; then
21652 for file in fs
/inode.c
; do
21653 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
21654 "$LINUX/$file" 2>/dev
/null
21656 if test $rc -eq 0; then
21661 if test $export -eq 0; then :
21671 if test $rc -ne 0; then :
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21674 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21679 $as_echo "yes" >&6; }
21681 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
21689 $as_echo_n "checking whether d_make_root() is available... " >&6; }
21693 cat confdefs.h
- <<_ACEOF >conftest.c
21696 #include <linux/dcache.h>
21712 cat - <<_ACEOF >conftest.h
21717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21718 echo "obj-m := conftest.o" >build
/Makefile
21720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21721 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21723 (eval $ac_try) 2>&5
21725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21728 (eval $ac_try) 2>&5
21730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21731 test $ac_status = 0; }; }; then :
21734 $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.
$ac_ext >&5
21743 if test $rc -ne 0; then :
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21746 $as_echo "no" >&6; }
21749 if test "x$enable_linux_builtin" != xyes
; then
21751 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
21752 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21754 if test $rc -ne 0; then
21756 for file in fs
/dcache.c
; do
21757 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
21758 "$LINUX/$file" 2>/dev
/null
21760 if test $rc -eq 0; then
21765 if test $export -eq 0; then :
21775 if test $rc -ne 0; then :
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21783 $as_echo "yes" >&6; }
21785 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
21793 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
21797 cat confdefs.h
- <<_ACEOF >conftest.c
21800 #include <linux/dcache.h>
21806 d_obtain_alias(NULL);
21816 cat - <<_ACEOF >conftest.h
21821 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21822 echo "obj-m := conftest.o" >build
/Makefile
21824 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21825 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21827 (eval $ac_try) 2>&5
21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21830 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21832 (eval $ac_try) 2>&5
21834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21835 test $ac_status = 0; }; }; then :
21838 $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.
$ac_ext >&5
21847 if test $rc -ne 0; then :
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21853 if test "x$enable_linux_builtin" != xyes
; then
21855 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21856 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21858 if test $rc -ne 0; then
21860 for file in fs
/dcache.c
; do
21861 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
21862 "$LINUX/$file" 2>/dev
/null
21864 if test $rc -eq 0; then
21869 if test $export -eq 0; then :
21879 if test $rc -ne 0; then :
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21882 $as_echo "no" >&6; }
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21887 $as_echo "yes" >&6; }
21889 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
21897 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
21901 cat confdefs.h
- <<_ACEOF >conftest.c
21904 #include <linux/dcache.h>
21910 struct inode *ip = NULL;
21911 d_prune_aliases(ip);
21921 cat - <<_ACEOF >conftest.h
21926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21927 echo "obj-m := conftest.o" >build
/Makefile
21929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932 (eval $ac_try) 2>&5
21934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21937 (eval $ac_try) 2>&5
21939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21940 test $ac_status = 0; }; }; then :
21943 $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.
$ac_ext >&5
21952 if test $rc -ne 0; then :
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 $as_echo "no" >&6; }
21958 if test "x$enable_linux_builtin" != xyes
; then
21960 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
21961 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21963 if test $rc -ne 0; then
21965 for file in fs
/dcache.c
; do
21966 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
21967 "$LINUX/$file" 2>/dev
/null
21969 if test $rc -eq 0; then
21974 if test $export -eq 0; then :
21984 if test $rc -ne 0; then :
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21992 $as_echo "yes" >&6; }
21994 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22002 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22006 cat confdefs.h
- <<_ACEOF >conftest.c
22009 #include <linux/dcache.h>
22015 d_set_d_op(NULL, NULL);
22025 cat - <<_ACEOF >conftest.h
22030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22031 echo "obj-m := conftest.o" >build
/Makefile
22033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22034 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22041 (eval $ac_try) 2>&5
22043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044 test $ac_status = 0; }; }; then :
22047 $as_echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.
$ac_ext >&5
22056 if test $rc -ne 0; then :
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22059 $as_echo "no" >&6; }
22062 if test "x$enable_linux_builtin" != xyes
; then
22064 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22065 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22067 if test $rc -ne 0; then
22069 for file in fs
/dcache.c
; do
22070 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22071 "$LINUX/$file" 2>/dev
/null
22073 if test $rc -eq 0; then
22078 if test $export -eq 0; then :
22088 if test $rc -ne 0; then :
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22091 $as_echo "no" >&6; }
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22096 $as_echo "yes" >&6; }
22098 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22107 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22110 cat confdefs.h
- <<_ACEOF >conftest.c
22113 #include <linux/dcache.h>
22115 int revalidate (struct dentry *dentry,
22116 struct nameidata *nidata) { return 0; }
22118 static const struct dentry_operations
22119 dops __attribute__ ((unused)) = {
22120 .d_revalidate = revalidate,
22136 cat - <<_ACEOF >conftest.h
22141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22142 echo "obj-m := conftest.o" >build
/Makefile
22144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22145 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22152 (eval $ac_try) 2>&5
22154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22155 test $ac_status = 0; }; }; then :
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22158 $as_echo "yes" >&6; }
22160 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22164 $as_echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.
$ac_ext >&5
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22168 $as_echo "no" >&6; }
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22179 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22182 cat confdefs.h
- <<_ACEOF >conftest.c
22185 #include <linux/dcache.h>
22187 const struct dentry_operations test_d_op = {
22188 .d_revalidate = NULL,
22195 struct dentry d __attribute__ ((unused));
22197 d.d_op = &test_d_op;
22207 cat - <<_ACEOF >conftest.h
22212 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22213 echo "obj-m := conftest.o" >build
/Makefile
22215 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22216 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22218 (eval $ac_try) 2>&5
22220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22221 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22223 (eval $ac_try) 2>&5
22225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22226 test $ac_status = 0; }; }; then :
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22229 $as_echo "yes" >&6; }
22231 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22235 $as_echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.
$ac_ext >&5
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239 $as_echo "no" >&6; }
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22249 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22253 cat confdefs.h
- <<_ACEOF >conftest.c
22256 #include <linux/fs.h>
22262 check_disk_size_change(NULL, NULL);
22272 cat - <<_ACEOF >conftest.h
22277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22278 echo "obj-m := conftest.o" >build
/Makefile
22280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22281 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22283 (eval $ac_try) 2>&5
22285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22286 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22288 (eval $ac_try) 2>&5
22290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291 test $ac_status = 0; }; }; then :
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.
$ac_ext >&5
22303 if test $rc -ne 0; then :
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306 $as_echo "no" >&6; }
22309 if test "x$enable_linux_builtin" != xyes
; then
22311 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
22312 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22314 if test $rc -ne 0; then
22316 for file in fs
/block_dev.c
; do
22317 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
22318 "$LINUX/$file" 2>/dev
/null
22320 if test $rc -eq 0; then
22325 if test $export -eq 0; then :
22335 if test $rc -ne 0; then :
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22343 $as_echo "yes" >&6; }
22345 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22353 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22357 cat confdefs.h
- <<_ACEOF >conftest.c
22360 #include <linux/mm.h>
22366 truncate_setsize(NULL, 0);
22376 cat - <<_ACEOF >conftest.h
22381 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22382 echo "obj-m := conftest.o" >build
/Makefile
22384 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22385 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22387 (eval $ac_try) 2>&5
22389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22390 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22392 (eval $ac_try) 2>&5
22394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22395 test $ac_status = 0; }; }; then :
22398 $as_echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.
$ac_ext >&5
22407 if test $rc -ne 0; then :
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22410 $as_echo "no" >&6; }
22413 if test "x$enable_linux_builtin" != xyes
; then
22415 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22416 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22418 if test $rc -ne 0; then
22420 for file in mm
/truncate.c
; do
22421 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22422 "$LINUX/$file" 2>/dev
/null
22424 if test $rc -eq 0; then
22429 if test $export -eq 0; then :
22439 if test $rc -ne 0; then :
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22442 $as_echo "no" >&6; }
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22447 $as_echo "yes" >&6; }
22449 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22458 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22461 cat confdefs.h
- <<_ACEOF >conftest.c
22464 #include <linux/security.h>
22470 struct inode *ip __attribute__ ((unused)) = NULL;
22471 struct inode *dip __attribute__ ((unused)) = NULL;
22472 const struct qstr *str __attribute__ ((unused)) = NULL;
22473 char *name __attribute__ ((unused)) = NULL;
22474 void *value __attribute__ ((unused)) = NULL;
22475 size_t len __attribute__ ((unused)) = 0;
22477 security_inode_init_security(ip, dip, str, &name, &value, &len);
22487 cat - <<_ACEOF >conftest.h
22492 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22493 echo "obj-m := conftest.o" >build
/Makefile
22495 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22496 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22498 (eval $ac_try) 2>&5
22500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }; then :
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22509 $as_echo "yes" >&6; }
22511 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22515 $as_echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.
$ac_ext >&5
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519 $as_echo "no" >&6; }
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22530 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22533 cat confdefs.h
- <<_ACEOF >conftest.c
22536 #include <linux/security.h>
22542 struct inode *ip __attribute__ ((unused)) = NULL;
22543 struct inode *dip __attribute__ ((unused)) = NULL;
22544 const struct qstr *str __attribute__ ((unused)) = NULL;
22545 initxattrs func __attribute__ ((unused)) = NULL;
22547 security_inode_init_security(ip, dip, str, func, NULL);
22557 cat - <<_ACEOF >conftest.h
22562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22563 echo "obj-m := conftest.o" >build
/Makefile
22565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22566 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }; then :
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22579 $as_echo "yes" >&6; }
22581 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22585 $as_echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.
$ac_ext >&5
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22589 $as_echo "no" >&6; }
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22599 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22603 cat confdefs.h
- <<_ACEOF >conftest.c
22606 #include <linux/fs.h>
22612 mount_nodev(NULL, 0, NULL, NULL);
22622 cat - <<_ACEOF >conftest.h
22627 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22628 echo "obj-m := conftest.o" >build
/Makefile
22630 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22631 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22633 (eval $ac_try) 2>&5
22635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22636 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }; then :
22644 $as_echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.
$ac_ext >&5
22653 if test $rc -ne 0; then :
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22656 $as_echo "no" >&6; }
22659 if test "x$enable_linux_builtin" != xyes
; then
22661 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22662 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22664 if test $rc -ne 0; then
22666 for file in fs
/super.c
; do
22667 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
22668 "$LINUX/$file" 2>/dev
/null
22670 if test $rc -eq 0; then
22675 if test $export -eq 0; then :
22685 if test $rc -ne 0; then :
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22688 $as_echo "no" >&6; }
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22693 $as_echo "yes" >&6; }
22695 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
22704 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22707 cat confdefs.h
- <<_ACEOF >conftest.c
22710 #include <linux/fs.h>
22712 int shrink(struct shrinker *s, struct shrink_control *sc)
22715 static const struct super_block
22716 sb __attribute__ ((unused)) = {
22717 .s_shrink.shrink = shrink,
22718 .s_shrink.seeks = DEFAULT_SEEKS,
22719 .s_shrink.batch = 0,
22735 cat - <<_ACEOF >conftest.h
22740 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22741 echo "obj-m := conftest.o" >build
/Makefile
22743 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22744 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22746 (eval $ac_try) 2>&5
22748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22749 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; }; then :
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22757 $as_echo "yes" >&6; }
22759 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
22764 $as_echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.
$ac_ext >&5
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22768 $as_echo "no" >&6; }
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
22779 $as_echo_n "checking whether shrink_control has nid... " >&6; }
22782 cat confdefs.h
- <<_ACEOF >conftest.c
22785 #include <linux/fs.h>
22791 struct shrink_control sc __attribute__ ((unused));
22792 unsigned long scnidsize __attribute__ ((unused)) =
22803 cat - <<_ACEOF >conftest.h
22808 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22809 echo "obj-m := conftest.o" >build
/Makefile
22811 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22812 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22814 (eval $ac_try) 2>&5
22816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22819 (eval $ac_try) 2>&5
22821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22822 test $ac_status = 0; }; }; then :
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22825 $as_echo "yes" >&6; }
22827 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
22831 $as_echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.
$ac_ext >&5
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22835 $as_echo "no" >&6; }
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
22846 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
22849 cat confdefs.h
- <<_ACEOF >conftest.c
22852 #include <linux/fs.h>
22858 struct super_block sb __attribute__ ((unused));
22860 INIT_LIST_HEAD(&sb.s_instances);
22870 cat - <<_ACEOF >conftest.h
22875 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22876 echo "obj-m := conftest.o" >build
/Makefile
22878 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22879 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22881 (eval $ac_try) 2>&5
22883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22884 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22886 (eval $ac_try) 2>&5
22888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22889 test $ac_status = 0; }; }; then :
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22892 $as_echo "yes" >&6; }
22894 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.
$ac_ext >&5
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22902 $as_echo "no" >&6; }
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
22912 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
22915 cat confdefs.h
- <<_ACEOF >conftest.c
22918 #include <linux/fs.h>
22924 struct super_block sb __attribute__ ((unused));
22935 cat - <<_ACEOF >conftest.h
22940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22941 echo "obj-m := conftest.o" >build
/Makefile
22943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22944 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22946 (eval $ac_try) 2>&5
22948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22949 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951 (eval $ac_try) 2>&5
22953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954 test $ac_status = 0; }; }; then :
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22957 $as_echo "yes" >&6; }
22959 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
22963 $as_echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.
$ac_ext >&5
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22967 $as_echo "no" >&6; }
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
22978 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
22982 cat confdefs.h
- <<_ACEOF >conftest.c
22985 #include <linux/backing-dev.h>
22986 struct backing_dev_info bdi;
22992 char *name = "bdi";
22993 int error __attribute__((unused)) =
22994 bdi_setup_and_register(&bdi, name);
23004 cat - <<_ACEOF >conftest.h
23009 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23010 echo "obj-m := conftest.o" >build
/Makefile
23012 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23013 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23015 (eval $ac_try) 2>&5
23017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23018 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }; then :
23026 $as_echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.
$ac_ext >&5
23035 if test $rc -ne 0; then :
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038 $as_echo "no" >&6; }
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23040 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23044 cat confdefs.h
- <<_ACEOF >conftest.c
23047 #include <linux/backing-dev.h>
23048 struct backing_dev_info bdi;
23054 char *name = "bdi";
23055 unsigned int cap = BDI_CAP_MAP_COPY;
23056 int error __attribute__((unused)) =
23057 bdi_setup_and_register(&bdi, name, cap);
23067 cat - <<_ACEOF >conftest.h
23072 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23073 echo "obj-m := conftest.o" >build
/Makefile
23075 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23076 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23078 (eval $ac_try) 2>&5
23080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23081 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23083 (eval $ac_try) 2>&5
23085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23086 test $ac_status = 0; }; }; then :
23089 $as_echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.
$ac_ext >&5
23098 if test $rc -ne 0; then :
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23101 $as_echo "no" >&6; }
23104 if test "x$enable_linux_builtin" != xyes
; then
23106 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23107 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23109 if test $rc -ne 0; then
23111 for file in mm
/backing-dev.c
; do
23112 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23113 "$LINUX/$file" 2>/dev
/null
23115 if test $rc -eq 0; then
23120 if test $export -eq 0; then :
23130 if test $rc -ne 0; then :
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23133 $as_echo "no" >&6; }
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23138 $as_echo "yes" >&6; }
23140 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23148 if test "x$enable_linux_builtin" != xyes
; then
23150 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23151 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23153 if test $rc -ne 0; then
23155 for file in mm
/backing-dev.c
; do
23156 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23157 "$LINUX/$file" 2>/dev
/null
23159 if test $rc -eq 0; then
23164 if test $export -eq 0; then :
23174 if test $rc -ne 0; then :
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23177 $as_echo "no" >&6; }
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23179 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23183 cat confdefs.h
- <<_ACEOF >conftest.c
23186 #include <linux/backing-dev.h>
23187 struct backing_dev_info bdi;
23193 char *name = "bdi";
23194 unsigned int cap = BDI_CAP_MAP_COPY;
23195 int error __attribute__((unused)) =
23196 bdi_setup_and_register(&bdi, name, cap);
23206 cat - <<_ACEOF >conftest.h
23211 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23212 echo "obj-m := conftest.o" >build
/Makefile
23214 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23215 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23217 (eval $ac_try) 2>&5
23219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23222 (eval $ac_try) 2>&5
23224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23225 test $ac_status = 0; }; }; then :
23228 $as_echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.
$ac_ext >&5
23237 if test $rc -ne 0; then :
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23240 $as_echo "no" >&6; }
23243 if test "x$enable_linux_builtin" != xyes
; then
23245 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23246 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23248 if test $rc -ne 0; then
23250 for file in mm
/backing-dev.c
; do
23251 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23252 "$LINUX/$file" 2>/dev
/null
23254 if test $rc -eq 0; then
23259 if test $export -eq 0; then :
23269 if test $rc -ne 0; then :
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23272 $as_echo "no" >&6; }
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23277 $as_echo "yes" >&6; }
23279 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23289 $as_echo "yes" >&6; }
23291 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23300 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23303 cat confdefs.h
- <<_ACEOF >conftest.c
23306 #include <linux/fs.h>
23313 unsigned int link = 0;
23314 (void) set_nlink(&node, link);
23324 cat - <<_ACEOF >conftest.h
23329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23330 echo "obj-m := conftest.o" >build
/Makefile
23332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23335 (eval $ac_try) 2>&5
23337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23340 (eval $ac_try) 2>&5
23342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23343 test $ac_status = 0; }; }; then :
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23346 $as_echo "yes" >&6; }
23348 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.
$ac_ext >&5
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23356 $as_echo "no" >&6; }
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
23367 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23368 tmp_flags
="$EXTRA_KCFLAGS"
23369 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23372 cat confdefs.h
- <<_ACEOF >conftest.c
23375 #include <linux/blkdev.h>
23376 #include <linux/elevator.h>
23383 struct request_queue *q = NULL;
23384 char *elevator = NULL;
23385 ret = elevator_change(q, elevator);
23395 cat - <<_ACEOF >conftest.h
23400 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23401 echo "obj-m := conftest.o" >build
/Makefile
23403 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23404 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23411 (eval $ac_try) 2>&5
23413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23414 test $ac_status = 0; }; }; then :
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23417 $as_echo "yes" >&6; }
23419 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
23423 $as_echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.
$ac_ext >&5
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23427 $as_echo "no" >&6; }
23435 EXTRA_KCFLAGS
="$tmp_flags"
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
23438 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
23441 cat confdefs.h
- <<_ACEOF >conftest.c
23444 #include <linux/fs.h>
23450 struct file_system_type *type = NULL;
23451 int (*test)(struct super_block *,void *) = NULL;
23452 int (*set)(struct super_block *,void *) = NULL;
23455 (void) sget(type, test, set, flags, data);
23465 cat - <<_ACEOF >conftest.h
23470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23471 echo "obj-m := conftest.o" >build
/Makefile
23473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23476 (eval $ac_try) 2>&5
23478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23479 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; }; then :
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23487 $as_echo "yes" >&6; }
23489 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
23493 $as_echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.
$ac_ext >&5
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23497 $as_echo "no" >&6; }
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
23507 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
23511 cat confdefs.h
- <<_ACEOF >conftest.c
23514 #include <linux/fs.h>
23520 struct file *fp __attribute__ ((unused)) = NULL;
23521 struct inode *ip __attribute__ ((unused)) = NULL;
23522 loff_t offset __attribute__ ((unused)) = 0;
23523 loff_t maxsize __attribute__ ((unused)) = 0;
23525 lseek_execute(fp, ip, offset, maxsize);
23535 cat - <<_ACEOF >conftest.h
23540 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23541 echo "obj-m := conftest.o" >build
/Makefile
23543 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23544 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23551 (eval $ac_try) 2>&5
23553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23554 test $ac_status = 0; }; }; then :
23557 $as_echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.
$ac_ext >&5
23566 if test $rc -ne 0; then :
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23569 $as_echo "no" >&6; }
23572 if test "x$enable_linux_builtin" != xyes
; then
23574 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
23575 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23577 if test $rc -ne 0; then
23579 for file in fs
/read_write.c
; do
23580 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
23581 "$LINUX/$file" 2>/dev
/null
23583 if test $rc -eq 0; then
23588 if test $export -eq 0; then :
23598 if test $rc -ne 0; then :
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23606 $as_echo "yes" >&6; }
23608 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
23617 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
23620 cat confdefs.h
- <<_ACEOF >conftest.c
23623 #include <linux/fs.h>
23624 int iterate(struct file *filp, struct dir_context * context)
23627 static const struct file_operations fops
23628 __attribute__ ((unused)) = {
23629 .iterate_shared = iterate,
23645 cat - <<_ACEOF >conftest.h
23650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23651 echo "obj-m := conftest.o" >build
/Makefile
23653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23661 (eval $ac_try) 2>&5
23663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23664 test $ac_status = 0; }; }; then :
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667 $as_echo "yes" >&6; }
23669 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
23673 $as_echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.
$ac_ext >&5
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23677 $as_echo "no" >&6; }
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
23680 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
23683 cat confdefs.h
- <<_ACEOF >conftest.c
23686 #include <linux/fs.h>
23687 int iterate(struct file *filp, struct dir_context * context)
23690 static const struct file_operations fops
23691 __attribute__ ((unused)) = {
23692 .iterate = iterate,
23708 cat - <<_ACEOF >conftest.h
23713 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23714 echo "obj-m := conftest.o" >build
/Makefile
23716 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23717 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23719 (eval $ac_try) 2>&5
23721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23722 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23724 (eval $ac_try) 2>&5
23726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23727 test $ac_status = 0; }; }; then :
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23730 $as_echo "yes" >&6; }
23732 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
23736 $as_echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.
$ac_ext >&5
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23740 $as_echo "no" >&6; }
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
23743 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
23746 cat confdefs.h
- <<_ACEOF >conftest.c
23749 #include <linux/fs.h>
23750 int readdir(struct file *filp, void *entry, filldir_t func)
23753 static const struct file_operations fops
23754 __attribute__ ((unused)) = {
23755 .readdir = readdir,
23771 cat - <<_ACEOF >conftest.h
23776 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23777 echo "obj-m := conftest.o" >build
/Makefile
23779 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23780 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782 (eval $ac_try) 2>&5
23784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23787 (eval $ac_try) 2>&5
23789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23790 test $ac_status = 0; }; }; then :
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23793 $as_echo "yes" >&6; }
23795 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
23799 $as_echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.
$ac_ext >&5
23802 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
23826 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
23829 cat confdefs.h
- <<_ACEOF >conftest.c
23832 #include <linux/fs.h>
23834 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
23836 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
23839 static const struct file_operations
23840 fops __attribute__ ((unused)) = {
23841 .read_iter = test_read,
23842 .write_iter = test_write,
23858 cat - <<_ACEOF >conftest.h
23863 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23864 echo "obj-m := conftest.o" >build
/Makefile
23866 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23867 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869 (eval $ac_try) 2>&5
23871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874 (eval $ac_try) 2>&5
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }; }; then :
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23880 $as_echo "yes" >&6; }
23882 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
23886 $as_echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.
$ac_ext >&5
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23890 $as_echo "no" >&6; }
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
23900 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
23903 cat confdefs.h
- <<_ACEOF >conftest.c
23906 #include <linux/fs.h>
23913 struct kiocb *iocb = NULL;
23914 struct iov_iter *iov = NULL;
23915 generic_write_checks(iocb, iov);
23925 cat - <<_ACEOF >conftest.h
23930 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23931 echo "obj-m := conftest.o" >build
/Makefile
23933 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23934 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }; then :
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23947 $as_echo "yes" >&6; }
23949 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
23953 $as_echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.
$ac_ext >&5
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23957 $as_echo "no" >&6; }
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
23968 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
23971 cat confdefs.h
- <<_ACEOF >conftest.c
23974 #include <linux/pagemap.h>
23981 kmap_atomic(&page);
23991 cat - <<_ACEOF >conftest.h
23996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23997 echo "obj-m := conftest.o" >build
/Makefile
23999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007 (eval $ac_try) 2>&5
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; }; then :
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24013 $as_echo "yes" >&6; }
24015 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24019 $as_echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.
$ac_ext >&5
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24023 $as_echo "no" >&6; }
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24034 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24037 cat confdefs.h
- <<_ACEOF >conftest.c
24040 #include <linux/namei.h>
24046 struct path *p = NULL;
24047 follow_down_one(p);
24057 cat - <<_ACEOF >conftest.h
24062 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24063 echo "obj-m := conftest.o" >build
/Makefile
24065 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24066 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24068 (eval $ac_try) 2>&5
24070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24071 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24073 (eval $ac_try) 2>&5
24075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24076 test $ac_status = 0; }; }; then :
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24079 $as_echo "yes" >&6; }
24081 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24085 $as_echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.
$ac_ext >&5
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24089 $as_echo "no" >&6; }
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24100 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24103 cat confdefs.h
- <<_ACEOF >conftest.c
24106 #include <linux/blkdev.h>
24108 int make_request(struct request_queue *q, struct bio *bio)
24117 blk_queue_make_request(NULL, &make_request);
24127 cat - <<_ACEOF >conftest.h
24132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24133 echo "obj-m := conftest.o" >build
/Makefile
24135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }; then :
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24149 $as_echo "yes" >&6; }
24151 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24154 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24158 $as_echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.
$ac_ext >&5
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162 $as_echo "no" >&6; }
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24164 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24167 cat confdefs.h
- <<_ACEOF >conftest.c
24170 #include <linux/blkdev.h>
24172 void make_request(struct request_queue *q, struct bio *bio)
24181 blk_queue_make_request(NULL, &make_request);
24191 cat - <<_ACEOF >conftest.h
24196 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24197 echo "obj-m := conftest.o" >build
/Makefile
24199 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24200 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24207 (eval $ac_try) 2>&5
24209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24210 test $ac_status = 0; }; }; then :
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24213 $as_echo "yes" >&6; }
24215 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
24219 $as_echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.
$ac_ext >&5
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24223 $as_echo "no" >&6; }
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
24225 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
24228 cat confdefs.h
- <<_ACEOF >conftest.c
24231 #include <linux/blkdev.h>
24233 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
24235 return (BLK_QC_T_NONE);
24242 blk_queue_make_request(NULL, &make_request);
24252 cat - <<_ACEOF >conftest.h
24257 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24258 echo "obj-m := conftest.o" >build
/Makefile
24260 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24261 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }; then :
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24274 $as_echo "yes" >&6; }
24276 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
24279 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
24283 $as_echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.
$ac_ext >&5
24286 as_fn_error $?
"no - Please file a bug report at
24287 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
24312 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
24316 cat confdefs.h
- <<_ACEOF >conftest.c
24319 #include <linux/bio.h>
24321 void (*generic_start_io_acct_f)(int, unsigned long,
24322 struct hd_struct *) = &generic_start_io_acct;
24323 void (*generic_end_io_acct_f)(int, struct hd_struct *,
24324 unsigned long) = &generic_end_io_acct;
24330 generic_start_io_acct(0, 0, NULL);
24331 generic_end_io_acct(0, NULL, 0);
24341 cat - <<_ACEOF >conftest.h
24346 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24347 echo "obj-m := conftest.o" >build
/Makefile
24349 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24350 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24352 (eval $ac_try) 2>&5
24354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24355 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24357 (eval $ac_try) 2>&5
24359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24360 test $ac_status = 0; }; }; then :
24363 $as_echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.
$ac_ext >&5
24372 if test $rc -ne 0; then :
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24378 if test "x$enable_linux_builtin" != xyes
; then
24380 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
24381 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24383 if test $rc -ne 0; then
24385 for file in block
/bio.c
; do
24386 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
24387 "$LINUX/$file" 2>/dev
/null
24389 if test $rc -eq 0; then
24394 if test $export -eq 0; then :
24404 if test $rc -ne 0; then :
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24407 $as_echo "no" >&6; }
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24412 $as_echo "yes" >&6; }
24414 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
24423 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
24426 cat confdefs.h
- <<_ACEOF >conftest.c
24429 #include <linux/fs.h>
24430 int rename_fn(struct inode *sip, struct dentry *sdp,
24431 struct inode *tip, struct dentry *tdp,
24432 unsigned int flags) { return 0; }
24434 static const struct inode_operations
24435 iops __attribute__ ((unused)) = {
24436 .rename = rename_fn,
24452 cat - <<_ACEOF >conftest.h
24457 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24458 echo "obj-m := conftest.o" >build
/Makefile
24460 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24461 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24463 (eval $ac_try) 2>&5
24465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24466 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24468 (eval $ac_try) 2>&5
24470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24471 test $ac_status = 0; }; }; then :
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24474 $as_echo "yes" >&6; }
24476 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
24480 $as_echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.
$ac_ext >&5
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24484 $as_echo "no" >&6; }
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
24495 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
24498 cat confdefs.h
- <<_ACEOF >conftest.c
24501 #include <linux/fs.h>
24502 #include <linux/xattr.h>
24504 static const struct inode_operations
24505 iops __attribute__ ((unused)) = {
24506 .setxattr = generic_setxattr
24522 cat - <<_ACEOF >conftest.h
24527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24528 echo "obj-m := conftest.o" >build
/Makefile
24530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24533 (eval $ac_try) 2>&5
24535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }; then :
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24544 $as_echo "yes" >&6; }
24546 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
24550 $as_echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.
$ac_ext >&5
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24554 $as_echo "no" >&6; }
24564 if test "$LINUX_OBJ" != "$LINUX"; then :
24566 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
24572 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
24573 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
24574 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
24575 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
24582 # Check whether --with-linux was given.
24583 if test "${with_linux+set}" = set; then :
24584 withval
=$with_linux; kernelsrc
="$withval"
24589 # Check whether --with-linux-obj was given.
24590 if test "${with_linux_obj+set}" = set; then :
24591 withval
=$with_linux_obj; kernelbuild
="$withval"
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
24596 $as_echo_n "checking kernel source directory... " >&6; }
24597 if test -z "$kernelsrc"; then :
24599 if test -e "/lib/modules/$(uname -r)/source"; then :
24601 headersdir
="/lib/modules/$(uname -r)/source"
24602 sourcelink
=$
(readlink
-f "$headersdir")
24604 elif test -e "/lib/modules/$(uname -r)/build"; then :
24606 headersdir
="/lib/modules/$(uname -r)/build"
24607 sourcelink
=$
(readlink
-f "$headersdir")
24611 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
24613 2>/dev
/null |
grep -v obj |
tail -1)
24617 if test -n "$sourcelink" && test -e ${sourcelink}; then :
24619 kernelsrc
=`readlink -f ${sourcelink}`
24623 kernelsrc
="Not found"
24629 if test "$kernelsrc" = "NONE"; then :
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
24638 $as_echo "$kernelsrc" >&6; }
24639 if test ! -d "$kernelsrc"; then :
24642 *** Please make sure the kernel devel package for your distribution
24643 *** is installed and then try again. If that fails, you can specify the
24644 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
24649 $as_echo_n "checking kernel build directory... " >&6; }
24650 if test -z "$kernelbuild"; then :
24652 if test -e "/lib/modules/$(uname -r)/build"; then :
24654 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
24656 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
24658 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
24660 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
24662 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
24664 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
24666 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
24670 kernelbuild
=${kernelsrc}
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
24676 $as_echo "$kernelbuild" >&6; }
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
24679 $as_echo_n "checking kernel source version... " >&6; }
24680 utsrelease1
=$kernelbuild/include
/linux
/version.h
24681 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
24682 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
24683 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
24685 utsrelease
=linux
/version.h
24687 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
24689 utsrelease
=linux
/utsrelease.h
24691 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
24693 utsrelease
=generated
/utsrelease.h
24697 if test "$utsrelease"; then :
24699 kernsrcver
=`(echo "#include <$utsrelease>";
24700 echo "kernsrcver=UTS_RELEASE") |
24701 cpp -I $kernelbuild/include |
24702 grep "^kernsrcver=" | cut -d \" -f 2`
24704 if test -z "$kernsrcver"; then :
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24707 $as_echo "Not found" >&6; }
24708 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24715 $as_echo "Not found" >&6; }
24716 if test "x$enable_linux_builtin" != xyes
; then
24717 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
24720 *** Cannot find UTS_RELEASE definition.
24721 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
24727 $as_echo "$kernsrcver" >&6; }
24730 LINUX_OBJ
=${kernelbuild}
24731 LINUX_VERSION
=${kernsrcver}
24738 modpost
=$LINUX/scripts
/Makefile.modpost
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
24740 $as_echo_n "checking kernel file name for module symbols... " >&6; }
24741 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
24743 if grep -q Modules.symvers
$modpost; then :
24745 LINUX_SYMBOLS
=Modules.symvers
24749 LINUX_SYMBOLS
=Module.symvers
24753 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
24756 *** Please make sure the kernel devel package for your distribution
24757 *** is installed. If you are building with a custom kernel, make sure the
24758 *** kernel is configured, built, and the '--with-linux=PATH' configure
24759 *** option refers to the location of the kernel source." "$LINENO" 5
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
24769 $as_echo "$LINUX_SYMBOLS" >&6; }
24775 # Check whether --with-spl was given.
24776 if test "${with_spl+set}" = set; then :
24777 withval
=$with_spl; splsrc
="$withval"
24782 # Check whether --with-spl-obj was given.
24783 if test "${with_spl_obj+set}" = set; then :
24784 withval
=$with_spl_obj; splbuild
="$withval"
24789 # Check whether --with-spl-timeout was given.
24790 if test "${with_spl_timeout+set}" = set; then :
24791 withval
=$with_spl_timeout; timeout
="$withval"
24797 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
24798 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
24799 splsrc2
="/usr/local/src/spl-${VERSION}"
24800 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
24801 splsrc4
="/usr/src/spl-${VERSION}"
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
24806 $as_echo_n "checking spl source directory... " >&6; }
24807 if test -z "${splsrc}"; then :
24809 if test -e "${splsrc0}/spl.release.in"; then :
24813 elif test -e "${splsrc1}/spl.release.in"; then :
24817 elif test -e "${splsrc2}/spl.release.in"; then :
24821 elif test -e "${splsrc3}/spl.release.in"; then :
24823 splsrc
=$
(readlink
-f "${splsrc3}")
24825 elif test -e "${splsrc4}/spl.release.in" ; then :
24829 elif test -e "${splsrc5}/spl.release.in"; then :
24831 splsrc
=$
(readlink
-f "${splsrc5}")
24833 elif test -e "${splsrc6}/spl.release.in" ; then :
24845 if test "$splsrc" = "NONE"; then :
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
24855 $as_echo "$splsrc" >&6; }
24856 if test ! -e "$splsrc/spl.release.in"; then :
24859 *** Please make sure the kmod spl devel package for your distribution
24860 *** is installed then try again. If that fails you can specify the
24861 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
24866 $as_echo_n "checking spl build directory... " >&6; }
24868 if test -z "$splbuild"; then :
24870 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
24872 splbuild
="${splsrc}/${LINUX_VERSION}"
24874 elif test -e "${splsrc}/spl_config.h" ; then :
24876 splbuild
="${splsrc}"
24878 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
24880 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
24884 splbuild
="Not found"
24889 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
24896 timeout
=$
((timeout-1
))
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
24902 $as_echo "$splbuild" >&6; }
24903 if ! test -e "$splbuild/spl_config.h"; then :
24906 *** Please make sure the kmod spl devel <kernel> package for your
24907 *** distribution is installed then try again. If that fails you
24908 *** can specify the location of the spl objects with the
24909 *** '--with-spl-obj=PATH' option." "$LINENO" 5
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
24914 $as_echo_n "checking spl source version... " >&6; }
24915 if test -r $splbuild/spl_config.h
&&
24916 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
24919 splsrcver
=`(echo "#include <spl_config.h>";
24920 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
24922 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
24926 if test -z "$splsrcver"; then :
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24929 $as_echo "Not found" >&6; }
24931 *** Cannot determine the version of the spl source.
24932 *** Please prepare the spl source before running this script" "$LINENO" 5
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
24937 $as_echo "$splsrcver" >&6; }
24940 SPL_OBJ
=${splbuild}
24941 SPL_VERSION
=${splsrcver}
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
24948 $as_echo_n "checking spl file name for module symbols... " >&6; }
24952 if test -r $SPL_OBJ/Module.symvers
; then :
24954 SPL_SYMBOLS
=Module.symvers
24956 elif test -r $SPL_OBJ/Modules.symvers
; then :
24958 SPL_SYMBOLS
=Modules.symvers
24960 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
24962 SPL_SYMBOLS
=Module.symvers
24964 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
24966 SPL_SYMBOLS
=Modules.symvers
24970 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
24977 timeout
=$
((timeout-1
))
24982 if test "$SPL_SYMBOLS" = NONE
; then :
24984 SPL_SYMBOLS
=$LINUX_SYMBOLS
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
24989 $as_echo "$SPL_SYMBOLS" >&6; }
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
24994 $as_echo_n "checking whether modules can be built... " >&6; }
24997 cat confdefs.h
- <<_ACEOF >conftest.c
25012 cat - <<_ACEOF >conftest.h
25017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25018 echo "obj-m := conftest.o" >build
/Makefile
25020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25023 (eval $ac_try) 2>&5
25025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }; then :
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25034 $as_echo "yes" >&6; }
25037 $as_echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.
$ac_ext >&5
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25041 $as_echo "no" >&6; }
25042 if test "x$enable_linux_builtin" != xyes
; then
25043 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
25046 *** Unable to build an empty module.
25047 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
25058 if test "x$cross_compiling" != xyes
; then :
25060 if test "$cross_compiling" = yes; then :
25061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25063 as_fn_error $?
"cannot run test program while cross compiling
25064 See \`config.log' for more details" "$LINENO" 5; }
25066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25067 /* end confdefs.h. */
25070 #include "$LINUX/include/linux/license.h"
25076 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
25083 if ac_fn_c_try_run
"$LINENO"; then :
25086 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
25090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
25099 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
25102 cat confdefs.h
- <<_ACEOF >conftest.c
25105 #include <linux/module.h>
25111 #if (THREAD_SIZE < 16384)
25112 #error "THREAD_SIZE is less than 16K"
25123 cat - <<_ACEOF >conftest.h
25128 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25129 echo "obj-m := conftest.o" >build
/Makefile
25131 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25132 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }; then :
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25145 $as_echo "yes" >&6; }
25147 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
25151 $as_echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.
$ac_ext >&5
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25155 $as_echo "no" >&6; }
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
25167 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
25170 cat confdefs.h
- <<_ACEOF >conftest.c
25173 #include <linux/module.h>
25179 #ifndef CONFIG_DEBUG_LOCK_ALLOC
25180 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
25191 cat - <<_ACEOF >conftest.h
25196 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25197 echo "obj-m := conftest.o" >build
/Makefile
25199 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25200 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }; then :
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25213 $as_echo "yes" >&6; }
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
25216 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
25217 tmp_flags
="$EXTRA_KCFLAGS"
25220 cat confdefs.h
- <<_ACEOF >conftest.c
25223 #include <linux/module.h>
25224 #include <linux/mutex.h>
25226 MODULE_LICENSE("$ZFS_META_LICENSE");
25236 mutex_unlock(&lock);
25246 cat - <<_ACEOF >conftest.h
25251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25252 echo "obj-m := conftest.o" >build
/Makefile
25254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262 (eval $ac_try) 2>&5
25264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265 test $ac_status = 0; }; }; then :
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25268 $as_echo "no" >&6; }
25271 $as_echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.
$ac_ext >&5
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25275 $as_echo "yes" >&6; }
25277 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
25278 *** with the CDDL license and will prevent the module linking stage
25279 *** from succeeding. You must rebuild your kernel without this
25280 *** option enabled." "$LINENO" 5
25288 EXTRA_KCFLAGS
="$tmp_flags"
25292 $as_echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.
$ac_ext >&5
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25296 $as_echo "no" >&6; }
25309 tmp_flags
="$EXTRA_KCFLAGS"
25310 EXTRA_KCFLAGS
="-I\$(src)"
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
25313 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
25316 cat confdefs.h
- <<_ACEOF >conftest.c
25319 #include <linux/module.h>
25320 MODULE_LICENSE(ZFS_META_LICENSE);
25322 #define CREATE_TRACE_POINTS
25323 #include "conftest.h"
25329 trace_zfs_autoconf_event_one(1UL);
25330 trace_zfs_autoconf_event_two(2UL);
25340 cat - <<_ACEOF >conftest.h
25342 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
25343 #define _CONFTEST_H
25345 #undef TRACE_SYSTEM
25346 #define TRACE_SYSTEM zfs
25347 #include <linux/tracepoint.h>
25349 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
25350 TP_PROTO(unsigned long i),
25353 __field(unsigned long, i)
25358 TP_printk("i = %lu", __entry->i)
25361 #define DEFINE_AUTOCONF_EVENT(name) \
25362 DEFINE_EVENT(zfs_autoconf_event_class, name, \
25363 TP_PROTO(unsigned long i), \
25365 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
25366 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
25368 #endif /* _CONFTEST_H */
25370 #undef TRACE_INCLUDE_PATH
25371 #define TRACE_INCLUDE_PATH .
25372 #define TRACE_INCLUDE_FILE conftest
25373 #include <trace/define_trace.h>
25378 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25379 echo "obj-m := conftest.o" >build
/Makefile
25381 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25382 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384 (eval $ac_try) 2>&5
25386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }; then :
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25395 $as_echo "yes" >&6; }
25397 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
25401 $as_echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.
$ac_ext >&5
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25405 $as_echo "no" >&6; }
25413 EXTRA_KCFLAGS
="$tmp_flags"
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
25417 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
25420 cat confdefs.h
- <<_ACEOF >conftest.c
25423 #include <linux/sched.h>
25429 current->bio_tail = (struct bio **) NULL;
25439 cat - <<_ACEOF >conftest.h
25444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25445 echo "obj-m := conftest.o" >build
/Makefile
25447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25450 (eval $ac_try) 2>&5
25452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; }; then :
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25461 $as_echo "yes" >&6; }
25463 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
25467 $as_echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.
$ac_ext >&5
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25471 $as_echo "no" >&6; }
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
25473 $as_echo_n "checking whether current->bio_list exists... " >&6; }
25476 cat confdefs.h
- <<_ACEOF >conftest.c
25479 #include <linux/sched.h>
25485 current->bio_list = (struct bio_list *) NULL;
25495 cat - <<_ACEOF >conftest.h
25500 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25501 echo "obj-m := conftest.o" >build
/Makefile
25503 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25504 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }; then :
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25517 $as_echo "yes" >&6; }
25519 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
25523 $as_echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.
$ac_ext >&5
25526 as_fn_error $?
"no - Please file a bug report at
25527 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
25545 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
25548 cat confdefs.h
- <<_ACEOF >conftest.c
25551 #include <linux/bio.h>
25558 struct bio *bio = NULL;
25559 blk_qc = submit_bio(bio);
25569 cat - <<_ACEOF >conftest.h
25574 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25575 echo "obj-m := conftest.o" >build
/Makefile
25577 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25578 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25580 (eval $ac_try) 2>&5
25582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25583 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25585 (eval $ac_try) 2>&5
25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; }; then :
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25591 $as_echo "yes" >&6; }
25593 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.
$ac_ext >&5
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25601 $as_echo "no" >&6; }
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
25612 $as_echo_n "checking block device operation prototypes... " >&6; }
25613 tmp_flags
="$EXTRA_KCFLAGS"
25614 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25617 cat confdefs.h
- <<_ACEOF >conftest.c
25620 #include <linux/blkdev.h>
25622 int blk_open(struct block_device *bdev, fmode_t mode)
25624 int blk_ioctl(struct block_device *bdev, fmode_t mode,
25625 unsigned x, unsigned long y) { return 0; }
25626 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
25627 unsigned x, unsigned long y) { return 0; }
25629 static const struct block_device_operations
25630 bops __attribute__ ((unused)) = {
25633 .ioctl = blk_ioctl,
25634 .compat_ioctl = blk_compat_ioctl,
25650 cat - <<_ACEOF >conftest.h
25655 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25656 echo "obj-m := conftest.o" >build
/Makefile
25658 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25659 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }; then :
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
25672 $as_echo "struct block_device" >&6; }
25674 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
25678 $as_echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.
$ac_ext >&5
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
25682 $as_echo "struct inode" >&6; }
25690 EXTRA_KCFLAGS
="$tmp_flags"
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
25694 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
25695 tmp_flags
="$EXTRA_KCFLAGS"
25696 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25699 cat confdefs.h
- <<_ACEOF >conftest.c
25702 #include <linux/blkdev.h>
25704 void blk_release(struct gendisk *g, fmode_t mode) { return; }
25706 static const struct block_device_operations
25707 bops __attribute__ ((unused)) = {
25709 .release = blk_release,
25711 .compat_ioctl = NULL,
25727 cat - <<_ACEOF >conftest.h
25732 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25733 echo "obj-m := conftest.o" >build
/Makefile
25735 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25736 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25743 (eval $ac_try) 2>&5
25745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }; }; then :
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
25749 $as_echo "void" >&6; }
25751 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
25755 $as_echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.
$ac_ext >&5
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
25759 $as_echo "int" >&6; }
25767 EXTRA_KCFLAGS
="$tmp_flags"
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
25770 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
25773 cat confdefs.h
- <<_ACEOF >conftest.c
25776 #include <linux/types.h>
25782 fmode_t *ptr __attribute__ ((unused));
25792 cat - <<_ACEOF >conftest.h
25797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25798 echo "obj-m := conftest.o" >build
/Makefile
25800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25803 (eval $ac_try) 2>&5
25805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25808 (eval $ac_try) 2>&5
25810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25811 test $ac_status = 0; }; }; then :
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25814 $as_echo "yes" >&6; }
25816 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
25820 $as_echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.
$ac_ext >&5
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25824 $as_echo "no" >&6; }
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
25835 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
25838 cat confdefs.h
- <<_ACEOF >conftest.c
25841 #include <linux/kobject.h>
25847 int val __attribute__ ((unused));
25848 val = KOBJ_NAME_LEN;
25858 cat - <<_ACEOF >conftest.h
25863 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25864 echo "obj-m := conftest.o" >build
/Makefile
25866 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25867 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }; then :
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25880 $as_echo "yes" >&6; }
25882 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
25886 $as_echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.
$ac_ext >&5
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25890 $as_echo "no" >&6; }
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
25901 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
25904 cat confdefs.h
- <<_ACEOF >conftest.c
25907 #include <linux/fs.h>
25913 struct block_device *bdev = NULL;
25914 (void) blkdev_get(bdev, 0, NULL);
25924 cat - <<_ACEOF >conftest.h
25929 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25930 echo "obj-m := conftest.o" >build
/Makefile
25932 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25933 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25935 (eval $ac_try) 2>&5
25937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25938 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }; then :
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25946 $as_echo "yes" >&6; }
25948 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
25952 $as_echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.
$ac_ext >&5
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25956 $as_echo "no" >&6; }
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
25966 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
25970 cat confdefs.h
- <<_ACEOF >conftest.c
25973 #include <linux/fs.h>
25979 blkdev_get_by_path(NULL, 0, NULL);
25989 cat - <<_ACEOF >conftest.h
25994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25995 echo "obj-m := conftest.o" >build
/Makefile
25997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }; then :
26011 $as_echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.
$ac_ext >&5
26020 if test $rc -ne 0; then :
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26023 $as_echo "no" >&6; }
26026 if test "x$enable_linux_builtin" != xyes
; then
26028 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
26029 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26031 if test $rc -ne 0; then
26033 for file in fs
/block_dev.c
; do
26034 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
26035 "$LINUX/$file" 2>/dev
/null
26037 if test $rc -eq 0; then
26042 if test $export -eq 0; then :
26052 if test $rc -ne 0; then :
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26055 $as_echo "no" >&6; }
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26060 $as_echo "yes" >&6; }
26062 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
26070 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
26074 cat confdefs.h
- <<_ACEOF >conftest.c
26077 #include <linux/fs.h>
26083 open_bdev_exclusive(NULL, 0, NULL);
26093 cat - <<_ACEOF >conftest.h
26098 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26099 echo "obj-m := conftest.o" >build
/Makefile
26101 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26102 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26104 (eval $ac_try) 2>&5
26106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26107 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109 (eval $ac_try) 2>&5
26111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112 test $ac_status = 0; }; }; then :
26115 $as_echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.
$ac_ext >&5
26124 if test $rc -ne 0; then :
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26127 $as_echo "no" >&6; }
26130 if test "x$enable_linux_builtin" != xyes
; then
26132 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
26133 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26135 if test $rc -ne 0; then
26137 for file in fs
/block_dev.c
; do
26138 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
26139 "$LINUX/$file" 2>/dev
/null
26141 if test $rc -eq 0; then
26146 if test $export -eq 0; then :
26156 if test $rc -ne 0; then :
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26159 $as_echo "no" >&6; }
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26164 $as_echo "yes" >&6; }
26166 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
26174 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
26178 cat confdefs.h
- <<_ACEOF >conftest.c
26181 #include <linux/fs.h>
26197 cat - <<_ACEOF >conftest.h
26202 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26203 echo "obj-m := conftest.o" >build
/Makefile
26205 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26206 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26208 (eval $ac_try) 2>&5
26210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26213 (eval $ac_try) 2>&5
26215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216 test $ac_status = 0; }; }; then :
26219 $as_echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.
$ac_ext >&5
26228 if test $rc -ne 0; then :
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26231 $as_echo "no" >&6; }
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26233 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26237 cat confdefs.h
- <<_ACEOF >conftest.c
26240 #include <linux/fs.h>
26246 lookup_bdev(NULL, FMODE_READ);
26256 cat - <<_ACEOF >conftest.h
26261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26262 echo "obj-m := conftest.o" >build
/Makefile
26264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272 (eval $ac_try) 2>&5
26274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275 test $ac_status = 0; }; }; then :
26278 $as_echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.
$ac_ext >&5
26287 if test $rc -ne 0; then :
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26290 $as_echo "no" >&6; }
26293 if test "x$enable_linux_builtin" != xyes
; then
26295 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26296 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26298 if test $rc -ne 0; then
26300 for file in fs
/block_dev.c
; do
26301 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26302 "$LINUX/$file" 2>/dev
/null
26304 if test $rc -eq 0; then
26309 if test $export -eq 0; then :
26319 if test $rc -ne 0; then :
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26322 $as_echo "no" >&6; }
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26327 $as_echo "yes" >&6; }
26329 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26337 if test "x$enable_linux_builtin" != xyes
; then
26339 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26340 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26342 if test $rc -ne 0; then
26344 for file in fs
/block_dev.c
; do
26345 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26346 "$LINUX/$file" 2>/dev
/null
26348 if test $rc -eq 0; then
26353 if test $export -eq 0; then :
26363 if test $rc -ne 0; then :
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26366 $as_echo "no" >&6; }
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26368 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26372 cat confdefs.h
- <<_ACEOF >conftest.c
26375 #include <linux/fs.h>
26381 lookup_bdev(NULL, FMODE_READ);
26391 cat - <<_ACEOF >conftest.h
26396 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26397 echo "obj-m := conftest.o" >build
/Makefile
26399 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26400 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26407 (eval $ac_try) 2>&5
26409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26410 test $ac_status = 0; }; }; then :
26413 $as_echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.
$ac_ext >&5
26422 if test $rc -ne 0; then :
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26425 $as_echo "no" >&6; }
26428 if test "x$enable_linux_builtin" != xyes
; then
26430 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26431 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26433 if test $rc -ne 0; then
26435 for file in fs
/block_dev.c
; do
26436 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26437 "$LINUX/$file" 2>/dev
/null
26439 if test $rc -eq 0; then
26444 if test $export -eq 0; then :
26454 if test $rc -ne 0; then :
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457 $as_echo "no" >&6; }
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26462 $as_echo "yes" >&6; }
26464 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474 $as_echo "yes" >&6; }
26476 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
26485 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
26488 cat confdefs.h
- <<_ACEOF >conftest.c
26491 #include <linux/buffer_head.h>
26497 struct block_device *bdev = NULL;
26498 invalidate_bdev(bdev);
26508 cat - <<_ACEOF >conftest.h
26513 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26514 echo "obj-m := conftest.o" >build
/Makefile
26516 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26517 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26524 (eval $ac_try) 2>&5
26526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26527 test $ac_status = 0; }; }; then :
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26530 $as_echo "yes" >&6; }
26532 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
26536 $as_echo "$as_me: failed program was:" >&5
26537 sed 's/^/| /' conftest.
$ac_ext >&5
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26540 $as_echo "no" >&6; }
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
26551 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
26552 tmp_flags
="$EXTRA_KCFLAGS"
26553 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26556 cat confdefs.h
- <<_ACEOF >conftest.c
26559 #include <linux/blkdev.h>
26565 struct block_device *bdev = NULL;
26566 bdev_logical_block_size(bdev);
26576 cat - <<_ACEOF >conftest.h
26581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26582 echo "obj-m := conftest.o" >build
/Makefile
26584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26587 (eval $ac_try) 2>&5
26589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26590 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }; then :
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26598 $as_echo "yes" >&6; }
26600 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
26604 $as_echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.
$ac_ext >&5
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26608 $as_echo "no" >&6; }
26616 EXTRA_KCFLAGS
="$tmp_flags"
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
26620 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
26621 tmp_flags
="$EXTRA_KCFLAGS"
26622 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26625 cat confdefs.h
- <<_ACEOF >conftest.c
26628 #include <linux/blkdev.h>
26634 struct block_device *bdev = NULL;
26635 bdev_physical_block_size(bdev);
26645 cat - <<_ACEOF >conftest.h
26650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26651 echo "obj-m := conftest.o" >build
/Makefile
26653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }; then :
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26667 $as_echo "yes" >&6; }
26669 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
26673 $as_echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.
$ac_ext >&5
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677 $as_echo "no" >&6; }
26685 EXTRA_KCFLAGS
="$tmp_flags"
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
26689 $as_echo_n "checking whether bio has bi_iter... " >&6; }
26692 cat confdefs.h
- <<_ACEOF >conftest.c
26695 #include <linux/bio.h>
26702 bio.bi_iter.bi_sector = 0;
26712 cat - <<_ACEOF >conftest.h
26717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26718 echo "obj-m := conftest.o" >build
/Makefile
26720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26721 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26723 (eval $ac_try) 2>&5
26725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26728 (eval $ac_try) 2>&5
26730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26731 test $ac_status = 0; }; }; then :
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26736 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
26740 $as_echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.
$ac_ext >&5
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26744 $as_echo "no" >&6; }
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
26755 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
26758 cat confdefs.h
- <<_ACEOF >conftest.c
26761 #include <linux/bio.h>
26767 int flags __attribute__ ((unused));
26768 flags = ((1 << BIO_RW_FAILFAST_DEV) |
26769 (1 << BIO_RW_FAILFAST_TRANSPORT) |
26770 (1 << BIO_RW_FAILFAST_DRIVER));
26780 cat - <<_ACEOF >conftest.h
26785 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26786 echo "obj-m := conftest.o" >build
/Makefile
26788 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26789 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26791 (eval $ac_try) 2>&5
26793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26794 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; }; then :
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26802 $as_echo "yes" >&6; }
26804 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
26808 $as_echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.
$ac_ext >&5
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26812 $as_echo "no" >&6; }
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
26823 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
26826 cat confdefs.h
- <<_ACEOF >conftest.c
26829 #include <linux/bio.h>
26835 int flags __attribute__ ((unused));
26836 flags = REQ_FAILFAST_MASK;
26846 cat - <<_ACEOF >conftest.h
26851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26852 echo "obj-m := conftest.o" >build
/Makefile
26854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26857 (eval $ac_try) 2>&5
26859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26862 (eval $ac_try) 2>&5
26864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26865 test $ac_status = 0; }; }; then :
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26868 $as_echo "yes" >&6; }
26870 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
26874 $as_echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.
$ac_ext >&5
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878 $as_echo "no" >&6; }
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
26889 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
26892 cat confdefs.h
- <<_ACEOF >conftest.c
26895 #include <linux/blk_types.h>
26901 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
26911 cat - <<_ACEOF >conftest.h
26916 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26917 echo "obj-m := conftest.o" >build
/Makefile
26919 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26920 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26927 (eval $ac_try) 2>&5
26929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26930 test $ac_status = 0; }; }; then :
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26933 $as_echo "yes" >&6; }
26935 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
26939 $as_echo "$as_me: failed program was:" >&5
26940 sed 's/^/| /' conftest.
$ac_ext >&5
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26943 $as_echo "no" >&6; }
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
26954 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
26957 cat confdefs.h
- <<_ACEOF >conftest.c
26960 #include <linux/blk_types.h>
26966 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
26976 cat - <<_ACEOF >conftest.h
26981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26982 echo "obj-m := conftest.o" >build
/Makefile
26984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26985 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26987 (eval $ac_try) 2>&5
26989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26992 (eval $ac_try) 2>&5
26994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26995 test $ac_status = 0; }; }; then :
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26998 $as_echo "yes" >&6; }
27000 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
27004 $as_echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.
$ac_ext >&5
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
27019 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
27022 cat confdefs.h
- <<_ACEOF >conftest.c
27025 #include <linux/blk_types.h>
27031 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
27041 cat - <<_ACEOF >conftest.h
27046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27047 echo "obj-m := conftest.o" >build
/Makefile
27049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27057 (eval $ac_try) 2>&5
27059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060 test $ac_status = 0; }; }; then :
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27063 $as_echo "yes" >&6; }
27065 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
27069 $as_echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.
$ac_ext >&5
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27073 $as_echo "no" >&6; }
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
27084 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
27087 cat confdefs.h
- <<_ACEOF >conftest.c
27090 #include <linux/bio.h>
27096 struct bio bio __attribute__ ((unused));
27107 cat - <<_ACEOF >conftest.h
27112 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27113 echo "obj-m := conftest.o" >build
/Makefile
27115 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27116 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27118 (eval $ac_try) 2>&5
27120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123 (eval $ac_try) 2>&5
27125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126 test $ac_status = 0; }; }; then :
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27129 $as_echo "yes" >&6; }
27131 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
27135 $as_echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.
$ac_ext >&5
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27139 $as_echo "no" >&6; }
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
27150 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
27153 cat confdefs.h
- <<_ACEOF >conftest.c
27156 #include <linux/bio.h>
27158 void wanted_end_io(struct bio *bio) { return; }
27160 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
27175 cat - <<_ACEOF >conftest.h
27180 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27181 echo "obj-m := conftest.o" >build
/Makefile
27183 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27184 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27186 (eval $ac_try) 2>&5
27188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27189 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }; then :
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27197 $as_echo "yes" >&6; }
27199 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
27203 $as_echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.
$ac_ext >&5
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27207 $as_echo "no" >&6; }
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
27218 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
27221 cat confdefs.h
- <<_ACEOF >conftest.c
27224 #include <linux/bio.h>
27230 int flags __attribute__ ((unused));
27231 flags = BIO_RW_BARRIER;
27241 cat - <<_ACEOF >conftest.h
27246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27247 echo "obj-m := conftest.o" >build
/Makefile
27249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27252 (eval $ac_try) 2>&5
27254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27257 (eval $ac_try) 2>&5
27259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260 test $ac_status = 0; }; }; then :
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27263 $as_echo "yes" >&6; }
27265 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
27269 $as_echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.
$ac_ext >&5
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27273 $as_echo "no" >&6; }
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
27284 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
27287 cat confdefs.h
- <<_ACEOF >conftest.c
27290 #include <linux/bio.h>
27296 int flags __attribute__ ((unused));
27297 flags = BIO_RW_DISCARD;
27307 cat - <<_ACEOF >conftest.h
27312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27313 echo "obj-m := conftest.o" >build
/Makefile
27315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27316 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27318 (eval $ac_try) 2>&5
27320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27321 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27323 (eval $ac_try) 2>&5
27325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27326 test $ac_status = 0; }; }; then :
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27329 $as_echo "yes" >&6; }
27331 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
27335 $as_echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.
$ac_ext >&5
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27339 $as_echo "no" >&6; }
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
27350 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
27351 tmp_flags
="$EXTRA_KCFLAGS"
27352 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27355 cat confdefs.h
- <<_ACEOF >conftest.c
27358 #include <linux/blkdev.h>
27364 struct request_queue *q = NULL;
27365 (void) blk_queue_flush(q, REQ_FLUSH);
27375 cat - <<_ACEOF >conftest.h
27380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27381 echo "obj-m := conftest.o" >build
/Makefile
27383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27391 (eval $ac_try) 2>&5
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; }; then :
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27397 $as_echo "yes" >&6; }
27399 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
27403 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
27406 cat confdefs.h
- <<_ACEOF >conftest.c
27409 #include <linux/module.h>
27410 #include <linux/blkdev.h>
27412 MODULE_LICENSE("$ZFS_META_LICENSE");
27418 struct request_queue *q = NULL;
27419 (void) blk_queue_flush(q, REQ_FLUSH);
27429 cat - <<_ACEOF >conftest.h
27434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27435 echo "obj-m := conftest.o" >build
/Makefile
27437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27440 (eval $ac_try) 2>&5
27442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }; then :
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27451 $as_echo "no" >&6; }
27454 $as_echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.
$ac_ext >&5
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27458 $as_echo "yes" >&6; }
27460 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
27471 $as_echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.
$ac_ext >&5
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27475 $as_echo "no" >&6; }
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
27485 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
27488 cat confdefs.h
- <<_ACEOF >conftest.c
27491 #include <linux/kernel.h>
27492 #include <linux/blkdev.h>
27499 struct request_queue *q = NULL;
27500 blk_queue_write_cache(q, true, true);
27510 cat - <<_ACEOF >conftest.h
27515 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27516 echo "obj-m := conftest.o" >build
/Makefile
27518 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27519 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27526 (eval $ac_try) 2>&5
27528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27529 test $ac_status = 0; }; }; then :
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27532 $as_echo "yes" >&6; }
27534 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
27538 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
27541 cat confdefs.h
- <<_ACEOF >conftest.c
27544 #include <linux/kernel.h>
27545 #include <linux/module.h>
27546 #include <linux/blkdev.h>
27548 MODULE_LICENSE("$ZFS_META_LICENSE");
27554 struct request_queue *q = NULL;
27555 blk_queue_write_cache(q, true, true);
27565 cat - <<_ACEOF >conftest.h
27570 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27571 echo "obj-m := conftest.o" >build
/Makefile
27573 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27574 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27576 (eval $ac_try) 2>&5
27578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27579 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }; then :
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27587 $as_echo "no" >&6; }
27590 $as_echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.
$ac_ext >&5
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27594 $as_echo "yes" >&6; }
27596 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
27607 $as_echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.
$ac_ext >&5
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27611 $as_echo "no" >&6; }
27620 EXTRA_KCFLAGS
="$tmp_flags"
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
27624 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
27625 tmp_flags
="$EXTRA_KCFLAGS"
27626 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27629 cat confdefs.h
- <<_ACEOF >conftest.c
27632 #include <linux/blkdev.h>
27638 struct request_queue *q = NULL;
27639 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
27649 cat - <<_ACEOF >conftest.h
27654 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27655 echo "obj-m := conftest.o" >build
/Makefile
27657 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27658 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27660 (eval $ac_try) 2>&5
27662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27663 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27665 (eval $ac_try) 2>&5
27667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27668 test $ac_status = 0; }; }; then :
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27671 $as_echo "yes" >&6; }
27673 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
27677 $as_echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.
$ac_ext >&5
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27681 $as_echo "no" >&6; }
27689 EXTRA_KCFLAGS
="$tmp_flags"
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
27693 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
27694 tmp_flags
="$EXTRA_KCFLAGS"
27695 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27698 cat confdefs.h
- <<_ACEOF >conftest.c
27701 #include <linux/blkdev.h>
27707 struct request_queue *q = NULL;
27708 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
27718 cat - <<_ACEOF >conftest.h
27723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27724 echo "obj-m := conftest.o" >build
/Makefile
27726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729 (eval $ac_try) 2>&5
27731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27734 (eval $ac_try) 2>&5
27736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; }; then :
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27740 $as_echo "yes" >&6; }
27742 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
27746 $as_echo "$as_me: failed program was:" >&5
27747 sed 's/^/| /' conftest.
$ac_ext >&5
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27750 $as_echo "no" >&6; }
27758 EXTRA_KCFLAGS
="$tmp_flags"
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
27762 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
27763 tmp_flags
="$EXTRA_KCFLAGS"
27764 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27767 cat confdefs.h
- <<_ACEOF >conftest.c
27770 #include <linux/blkdev.h>
27776 extern enum bio_rw_flags rw;
27778 rw = BIO_RW_UNPLUG;
27788 cat - <<_ACEOF >conftest.h
27793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27794 echo "obj-m := conftest.o" >build
/Makefile
27796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27799 (eval $ac_try) 2>&5
27801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27804 (eval $ac_try) 2>&5
27806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27807 test $ac_status = 0; }; }; then :
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27810 $as_echo "yes" >&6; }
27812 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
27816 $as_echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.
$ac_ext >&5
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27820 $as_echo "no" >&6; }
27828 EXTRA_KCFLAGS
="$tmp_flags"
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
27832 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
27833 tmp_flags
="$EXTRA_KCFLAGS"
27834 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27837 cat confdefs.h
- <<_ACEOF >conftest.c
27840 #include <linux/blkdev.h>
27846 struct blk_plug plug;
27848 blk_start_plug(&plug);
27849 blk_finish_plug(&plug);
27859 cat - <<_ACEOF >conftest.h
27864 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27865 echo "obj-m := conftest.o" >build
/Makefile
27867 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27868 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27870 (eval $ac_try) 2>&5
27872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27873 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27875 (eval $ac_try) 2>&5
27877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27878 test $ac_status = 0; }; }; then :
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27881 $as_echo "yes" >&6; }
27883 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
27887 $as_echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.
$ac_ext >&5
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27891 $as_echo "no" >&6; }
27899 EXTRA_KCFLAGS
="$tmp_flags"
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
27903 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
27904 tmp_flags
="$EXTRA_KCFLAGS"
27905 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27908 cat confdefs.h
- <<_ACEOF >conftest.c
27911 #include <linux/blkdev.h>
27917 struct gendisk *disk = NULL;
27918 (void) get_disk_ro(disk);
27928 cat - <<_ACEOF >conftest.h
27933 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27934 echo "obj-m := conftest.o" >build
/Makefile
27936 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27937 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27939 (eval $ac_try) 2>&5
27941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27942 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27944 (eval $ac_try) 2>&5
27946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27947 test $ac_status = 0; }; }; then :
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27950 $as_echo "yes" >&6; }
27952 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
27956 $as_echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.
$ac_ext >&5
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27960 $as_echo "no" >&6; }
27968 EXTRA_KCFLAGS
="$tmp_flags"
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
27971 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
27975 cat confdefs.h
- <<_ACEOF >conftest.c
27978 #include <linux/genhd.h>
27984 get_gendisk(0, NULL);
27994 cat - <<_ACEOF >conftest.h
27999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28000 echo "obj-m := conftest.o" >build
/Makefile
28002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28010 (eval $ac_try) 2>&5
28012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28013 test $ac_status = 0; }; }; then :
28016 $as_echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.
$ac_ext >&5
28025 if test $rc -ne 0; then :
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28028 $as_echo "no" >&6; }
28031 if test "x$enable_linux_builtin" != xyes
; then
28033 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
28034 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28036 if test $rc -ne 0; then
28038 for file in block
/genhd.c
; do
28039 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
28040 "$LINUX/$file" 2>/dev
/null
28042 if test $rc -eq 0; then
28047 if test $export -eq 0; then :
28057 if test $rc -ne 0; then :
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28060 $as_echo "no" >&6; }
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28065 $as_echo "yes" >&6; }
28067 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
28076 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
28079 cat confdefs.h
- <<_ACEOF >conftest.c
28082 #include <linux/blk_types.h>
28088 struct bio *bio __attribute__ ((unused)) = NULL;
28090 bio_set_op_attrs(bio, 0, 0);
28100 cat - <<_ACEOF >conftest.h
28105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28106 echo "obj-m := conftest.o" >build
/Makefile
28108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28111 (eval $ac_try) 2>&5
28113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28114 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28116 (eval $ac_try) 2>&5
28118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28119 test $ac_status = 0; }; }; then :
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28122 $as_echo "yes" >&6; }
28124 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.
$ac_ext >&5
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28132 $as_echo "no" >&6; }
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
28143 $as_echo_n "checking whether generic_readlink is global... " >&6; }
28146 cat confdefs.h
- <<_ACEOF >conftest.c
28149 #include <linux/fs.h>
28155 int i __attribute__ ((unused));
28157 i = generic_readlink(NULL, NULL, 0);
28167 cat - <<_ACEOF >conftest.h
28172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28173 echo "obj-m := conftest.o" >build
/Makefile
28175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28178 (eval $ac_try) 2>&5
28180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28181 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28183 (eval $ac_try) 2>&5
28185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28186 test $ac_status = 0; }; }; then :
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189 $as_echo "yes" >&6; }
28191 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
28195 $as_echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.
$ac_ext >&5
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28199 $as_echo "no" >&6; }
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
28210 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
28213 cat confdefs.h
- <<_ACEOF >conftest.c
28216 #include <linux/blkdev.h>
28222 struct queue_limits ql __attribute__ ((unused));
28224 ql.discard_granularity = 0;
28234 cat - <<_ACEOF >conftest.h
28239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28240 echo "obj-m := conftest.o" >build
/Makefile
28242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28245 (eval $ac_try) 2>&5
28247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28250 (eval $ac_try) 2>&5
28252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28253 test $ac_status = 0; }; }; then :
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28256 $as_echo "yes" >&6; }
28258 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
28262 $as_echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.
$ac_ext >&5
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28266 $as_echo "no" >&6; }
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
28277 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
28280 cat confdefs.h
- <<_ACEOF >conftest.c
28283 #include <linux/fs.h>
28284 #include <linux/xattr.h>
28286 const struct xattr_handler xattr_test_handler = {
28292 const struct xattr_handler *xattr_handlers[] = {
28293 &xattr_test_handler,
28296 const struct super_block sb __attribute__ ((unused)) = {
28297 .s_xattr = xattr_handlers,
28313 cat - <<_ACEOF >conftest.h
28318 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28319 echo "obj-m := conftest.o" >build
/Makefile
28321 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28322 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28324 (eval $ac_try) 2>&5
28326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28327 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28329 (eval $ac_try) 2>&5
28331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28332 test $ac_status = 0; }; }; then :
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28335 $as_echo "yes" >&6; }
28337 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
28341 $as_echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.
$ac_ext >&5
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28345 $as_echo "no" >&6; }
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
28356 $as_echo_n "checking whether xattr_handler has name... " >&6; }
28359 cat confdefs.h
- <<_ACEOF >conftest.c
28362 #include <linux/xattr.h>
28364 static const struct xattr_handler
28365 xops __attribute__ ((unused)) = {
28366 .name = XATTR_NAME_POSIX_ACL_ACCESS,
28382 cat - <<_ACEOF >conftest.h
28387 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28388 echo "obj-m := conftest.o" >build
/Makefile
28390 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28391 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28393 (eval $ac_try) 2>&5
28395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28396 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28398 (eval $ac_try) 2>&5
28400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28401 test $ac_status = 0; }; }; then :
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28404 $as_echo "yes" >&6; }
28406 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
28410 $as_echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.
$ac_ext >&5
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28414 $as_echo "no" >&6; }
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
28425 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
28428 cat confdefs.h
- <<_ACEOF >conftest.c
28431 #include <linux/xattr.h>
28433 int get(const struct xattr_handler *handler,
28434 struct dentry *dentry, struct inode *inode,
28435 const char *name, void *buffer, size_t size) { return 0; }
28436 static const struct xattr_handler
28437 xops __attribute__ ((unused)) = {
28454 cat - <<_ACEOF >conftest.h
28459 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28460 echo "obj-m := conftest.o" >build
/Makefile
28462 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28463 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28465 (eval $ac_try) 2>&5
28467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28468 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28470 (eval $ac_try) 2>&5
28472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28473 test $ac_status = 0; }; }; then :
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28476 $as_echo "yes" >&6; }
28478 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
28482 $as_echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.
$ac_ext >&5
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
28486 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
28489 cat confdefs.h
- <<_ACEOF >conftest.c
28492 #include <linux/xattr.h>
28494 int get(const struct xattr_handler *handler,
28495 struct dentry *dentry, const char *name,
28496 void *buffer, size_t size) { return 0; }
28497 static const struct xattr_handler
28498 xops __attribute__ ((unused)) = {
28515 cat - <<_ACEOF >conftest.h
28520 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28521 echo "obj-m := conftest.o" >build
/Makefile
28523 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28524 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28526 (eval $ac_try) 2>&5
28528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28529 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }; then :
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28537 $as_echo "yes" >&6; }
28539 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
28543 $as_echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.
$ac_ext >&5
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28547 $as_echo "no" >&6; }
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
28549 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
28552 cat confdefs.h
- <<_ACEOF >conftest.c
28555 #include <linux/xattr.h>
28557 int get(struct dentry *dentry, const char *name,
28558 void *buffer, size_t size, int handler_flags)
28560 static const struct xattr_handler
28561 xops __attribute__ ((unused)) = {
28578 cat - <<_ACEOF >conftest.h
28583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28584 echo "obj-m := conftest.o" >build
/Makefile
28586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28589 (eval $ac_try) 2>&5
28591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28594 (eval $ac_try) 2>&5
28596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28597 test $ac_status = 0; }; }; then :
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28600 $as_echo "yes" >&6; }
28602 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
28606 $as_echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.
$ac_ext >&5
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28610 $as_echo "no" >&6; }
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
28612 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
28615 cat confdefs.h
- <<_ACEOF >conftest.c
28618 #include <linux/xattr.h>
28620 int get(struct inode *ip, const char *name,
28621 void *buffer, size_t size) { return 0; }
28622 static const struct xattr_handler
28623 xops __attribute__ ((unused)) = {
28640 cat - <<_ACEOF >conftest.h
28645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28646 echo "obj-m := conftest.o" >build
/Makefile
28648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28651 (eval $ac_try) 2>&5
28653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28654 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28656 (eval $ac_try) 2>&5
28658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28659 test $ac_status = 0; }; }; then :
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28662 $as_echo "yes" >&6; }
28664 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
28668 $as_echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.
$ac_ext >&5
28671 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
28703 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
28706 cat confdefs.h
- <<_ACEOF >conftest.c
28709 #include <linux/xattr.h>
28711 int set(const struct xattr_handler *handler,
28712 struct dentry *dentry, struct inode *inode,
28713 const char *name, const void *buffer,
28714 size_t size, int flags)
28716 static const struct xattr_handler
28717 xops __attribute__ ((unused)) = {
28734 cat - <<_ACEOF >conftest.h
28739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28740 echo "obj-m := conftest.o" >build
/Makefile
28742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28745 (eval $ac_try) 2>&5
28747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28750 (eval $ac_try) 2>&5
28752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28753 test $ac_status = 0; }; }; then :
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28756 $as_echo "yes" >&6; }
28758 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
28762 $as_echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.
$ac_ext >&5
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
28766 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
28769 cat confdefs.h
- <<_ACEOF >conftest.c
28772 #include <linux/xattr.h>
28774 int set(const struct xattr_handler *handler,
28775 struct dentry *dentry, const char *name,
28776 const void *buffer, size_t size, int flags)
28778 static const struct xattr_handler
28779 xops __attribute__ ((unused)) = {
28796 cat - <<_ACEOF >conftest.h
28801 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28802 echo "obj-m := conftest.o" >build
/Makefile
28804 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28805 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28807 (eval $ac_try) 2>&5
28809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28810 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28812 (eval $ac_try) 2>&5
28814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28815 test $ac_status = 0; }; }; then :
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28818 $as_echo "yes" >&6; }
28820 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
28824 $as_echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.
$ac_ext >&5
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28828 $as_echo "no" >&6; }
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
28830 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
28833 cat confdefs.h
- <<_ACEOF >conftest.c
28836 #include <linux/xattr.h>
28838 int set(struct dentry *dentry, const char *name,
28839 const void *buffer, size_t size, int flags,
28840 int handler_flags) { return 0; }
28841 static const struct xattr_handler
28842 xops __attribute__ ((unused)) = {
28859 cat - <<_ACEOF >conftest.h
28864 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28865 echo "obj-m := conftest.o" >build
/Makefile
28867 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28868 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28870 (eval $ac_try) 2>&5
28872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28873 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28875 (eval $ac_try) 2>&5
28877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28878 test $ac_status = 0; }; }; then :
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28881 $as_echo "yes" >&6; }
28883 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
28887 $as_echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.
$ac_ext >&5
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28891 $as_echo "no" >&6; }
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
28893 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
28896 cat confdefs.h
- <<_ACEOF >conftest.c
28899 #include <linux/xattr.h>
28901 int set(struct inode *ip, const char *name,
28902 const void *buffer, size_t size, int flags)
28904 static const struct xattr_handler
28905 xops __attribute__ ((unused)) = {
28922 cat - <<_ACEOF >conftest.h
28927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28928 echo "obj-m := conftest.o" >build
/Makefile
28930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28931 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28933 (eval $ac_try) 2>&5
28935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28936 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28938 (eval $ac_try) 2>&5
28940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28941 test $ac_status = 0; }; }; then :
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28944 $as_echo "yes" >&6; }
28946 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
28950 $as_echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.
$ac_ext >&5
28953 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
28985 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
28988 cat confdefs.h
- <<_ACEOF >conftest.c
28991 #include <linux/xattr.h>
28993 bool list(struct dentry *dentry) { return 0; }
28994 static const struct xattr_handler
28995 xops __attribute__ ((unused)) = {
29012 cat - <<_ACEOF >conftest.h
29017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29018 echo "obj-m := conftest.o" >build
/Makefile
29020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29028 (eval $ac_try) 2>&5
29030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29031 test $ac_status = 0; }; }; then :
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034 $as_echo "yes" >&6; }
29036 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
29040 $as_echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.
$ac_ext >&5
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044 $as_echo "no" >&6; }
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
29046 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
29049 cat confdefs.h
- <<_ACEOF >conftest.c
29052 #include <linux/xattr.h>
29054 size_t list(const struct xattr_handler *handler,
29055 struct dentry *dentry, char *list, size_t list_size,
29056 const char *name, size_t name_len) { return 0; }
29057 static const struct xattr_handler
29058 xops __attribute__ ((unused)) = {
29075 cat - <<_ACEOF >conftest.h
29080 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29081 echo "obj-m := conftest.o" >build
/Makefile
29083 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29084 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29086 (eval $ac_try) 2>&5
29088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29089 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29091 (eval $ac_try) 2>&5
29093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29094 test $ac_status = 0; }; }; then :
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29097 $as_echo "yes" >&6; }
29099 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
29103 $as_echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.
$ac_ext >&5
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29107 $as_echo "no" >&6; }
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
29109 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
29112 cat confdefs.h
- <<_ACEOF >conftest.c
29115 #include <linux/xattr.h>
29117 size_t list(struct dentry *dentry,
29118 char *list, size_t list_size,
29119 const char *name, size_t name_len,
29120 int handler_flags) { return 0; }
29121 static const struct xattr_handler
29122 xops __attribute__ ((unused)) = {
29139 cat - <<_ACEOF >conftest.h
29144 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29145 echo "obj-m := conftest.o" >build
/Makefile
29147 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29148 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29150 (eval $ac_try) 2>&5
29152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29153 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29155 (eval $ac_try) 2>&5
29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158 test $ac_status = 0; }; }; then :
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161 $as_echo "yes" >&6; }
29163 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
29167 $as_echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.
$ac_ext >&5
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29171 $as_echo "no" >&6; }
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
29173 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
29176 cat confdefs.h
- <<_ACEOF >conftest.c
29179 #include <linux/xattr.h>
29181 size_t list(struct inode *ip, char *lst,
29182 size_t list_size, const char *name,
29183 size_t name_len) { return 0; }
29184 static const struct xattr_handler
29185 xops __attribute__ ((unused)) = {
29202 cat - <<_ACEOF >conftest.h
29207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29208 echo "obj-m := conftest.o" >build
/Makefile
29210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29213 (eval $ac_try) 2>&5
29215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29218 (eval $ac_try) 2>&5
29220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29221 test $ac_status = 0; }; }; then :
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29224 $as_echo "yes" >&6; }
29226 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
29230 $as_echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.
$ac_ext >&5
29233 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
29265 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
29268 cat confdefs.h
- <<_ACEOF >conftest.c
29271 #include <linux/fs.h>
29277 struct inode *ip = NULL;
29278 (void) inode_owner_or_capable(ip);
29288 cat - <<_ACEOF >conftest.h
29293 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29294 echo "obj-m := conftest.o" >build
/Makefile
29296 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29297 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29304 (eval $ac_try) 2>&5
29306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307 test $ac_status = 0; }; }; then :
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29310 $as_echo "yes" >&6; }
29312 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
29316 $as_echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.
$ac_ext >&5
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320 $as_echo "no" >&6; }
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
29322 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
29325 cat confdefs.h
- <<_ACEOF >conftest.c
29328 #include <linux/fs.h>
29329 #include <linux/sched.h>
29335 struct inode *ip = NULL;
29336 (void) is_owner_or_cap(ip);
29346 cat - <<_ACEOF >conftest.h
29351 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29352 echo "obj-m := conftest.o" >build
/Makefile
29354 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29355 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29357 (eval $ac_try) 2>&5
29359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29360 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29362 (eval $ac_try) 2>&5
29364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29365 test $ac_status = 0; }; }; then :
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29368 $as_echo "yes" >&6; }
29370 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
29374 $as_echo "$as_me: failed program was:" >&5
29375 sed 's/^/| /' conftest.
$ac_ext >&5
29377 as_fn_error $?
"no - Please file a bug report at
29378 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
29396 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
29399 cat confdefs.h
- <<_ACEOF >conftest.c
29402 #include <linux/cred.h>
29403 #include <linux/fs.h>
29404 #include <linux/posix_acl_xattr.h>
29410 posix_acl_from_xattr(&init_user_ns, NULL, 0);
29420 cat - <<_ACEOF >conftest.h
29425 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29426 echo "obj-m := conftest.o" >build
/Makefile
29428 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29429 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29431 (eval $ac_try) 2>&5
29433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29434 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29436 (eval $ac_try) 2>&5
29438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29439 test $ac_status = 0; }; }; then :
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442 $as_echo "yes" >&6; }
29444 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
29448 $as_echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.
$ac_ext >&5
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29452 $as_echo "no" >&6; }
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
29463 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
29466 cat confdefs.h
- <<_ACEOF >conftest.c
29469 #include <linux/cred.h>
29470 #include <linux/fs.h>
29471 #include <linux/posix_acl.h>
29477 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29478 posix_acl_release(tmp);
29488 cat - <<_ACEOF >conftest.h
29493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29494 echo "obj-m := conftest.o" >build
/Makefile
29496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29497 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29499 (eval $ac_try) 2>&5
29501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29502 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29504 (eval $ac_try) 2>&5
29506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29507 test $ac_status = 0; }; }; then :
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29510 $as_echo "yes" >&6; }
29512 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
29516 $as_echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.
$ac_ext >&5
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29520 $as_echo "no" >&6; }
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
29530 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
29533 cat confdefs.h
- <<_ACEOF >conftest.c
29536 #include <linux/cred.h>
29537 #include <linux/fs.h>
29538 #include <linux/posix_acl.h>
29540 MODULE_LICENSE("$ZFS_META_LICENSE");
29546 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29547 posix_acl_release(tmp);
29557 cat - <<_ACEOF >conftest.h
29562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29563 echo "obj-m := conftest.o" >build
/Makefile
29565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29566 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29568 (eval $ac_try) 2>&5
29570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29571 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29573 (eval $ac_try) 2>&5
29575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29576 test $ac_status = 0; }; }; then :
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29579 $as_echo "no" >&6; }
29582 $as_echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.
$ac_ext >&5
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29586 $as_echo "yes" >&6; }
29588 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
29600 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
29603 cat confdefs.h
- <<_ACEOF >conftest.c
29606 #include <linux/module.h>
29607 #include <linux/cred.h>
29608 #include <linux/fs.h>
29609 #include <linux/posix_acl.h>
29611 MODULE_LICENSE("$ZFS_META_LICENSE");
29617 struct inode *ip = NULL;
29618 struct posix_acl *acl = posix_acl_alloc(1, 0);
29619 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
29620 forget_cached_acl(ip, ACL_TYPE_ACCESS);
29630 cat - <<_ACEOF >conftest.h
29635 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29636 echo "obj-m := conftest.o" >build
/Makefile
29638 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29639 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29641 (eval $ac_try) 2>&5
29643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29644 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29646 (eval $ac_try) 2>&5
29648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29649 test $ac_status = 0; }; }; then :
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29652 $as_echo "yes" >&6; }
29654 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
29658 $as_echo "$as_me: failed program was:" >&5
29659 sed 's/^/| /' conftest.
$ac_ext >&5
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29662 $as_echo "no" >&6; }
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
29673 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
29676 cat confdefs.h
- <<_ACEOF >conftest.c
29679 #include <linux/fs.h>
29680 #include <linux/posix_acl.h>
29686 posix_acl_chmod(NULL, 0, 0)
29696 cat - <<_ACEOF >conftest.h
29701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29702 echo "obj-m := conftest.o" >build
/Makefile
29704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29705 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29707 (eval $ac_try) 2>&5
29709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29710 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29712 (eval $ac_try) 2>&5
29714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29715 test $ac_status = 0; }; }; then :
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29718 $as_echo "yes" >&6; }
29720 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
29724 $as_echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.
$ac_ext >&5
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29728 $as_echo "no" >&6; }
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
29738 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
29741 cat confdefs.h
- <<_ACEOF >conftest.c
29744 #include <linux/fs.h>
29745 #include <linux/posix_acl.h>
29751 __posix_acl_chmod(NULL, 0, 0)
29761 cat - <<_ACEOF >conftest.h
29766 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29767 echo "obj-m := conftest.o" >build
/Makefile
29769 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29770 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29772 (eval $ac_try) 2>&5
29774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29775 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29777 (eval $ac_try) 2>&5
29779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29780 test $ac_status = 0; }; }; then :
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29783 $as_echo "yes" >&6; }
29785 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
29789 $as_echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.
$ac_ext >&5
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29793 $as_echo "no" >&6; }
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
29804 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
29807 cat confdefs.h
- <<_ACEOF >conftest.c
29810 #include <linux/fs.h>
29811 #include <linux/posix_acl.h>
29818 posix_acl_equiv_mode(NULL,&tmp);
29828 cat - <<_ACEOF >conftest.h
29833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29834 echo "obj-m := conftest.o" >build
/Makefile
29836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29837 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29839 (eval $ac_try) 2>&5
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29844 (eval $ac_try) 2>&5
29846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29847 test $ac_status = 0; }; }; then :
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29850 $as_echo "yes" >&6; }
29852 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
29856 $as_echo "$as_me: failed program was:" >&5
29857 sed 's/^/| /' conftest.
$ac_ext >&5
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
29871 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
29874 cat confdefs.h
- <<_ACEOF >conftest.c
29877 #include <linux/fs.h>
29878 #include <linux/posix_acl.h>
29884 struct user_namespace *user_ns = NULL;
29885 const struct posix_acl *acl = NULL;
29888 error = posix_acl_valid(user_ns, acl);
29898 cat - <<_ACEOF >conftest.h
29903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29904 echo "obj-m := conftest.o" >build
/Makefile
29906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29907 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29909 (eval $ac_try) 2>&5
29911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29912 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29914 (eval $ac_try) 2>&5
29916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29917 test $ac_status = 0; }; }; then :
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29920 $as_echo "yes" >&6; }
29922 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
29926 $as_echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.
$ac_ext >&5
29929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29930 $as_echo "no" >&6; }
29940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
29941 $as_echo_n "checking whether iops->permission() exists... " >&6; }
29944 cat confdefs.h
- <<_ACEOF >conftest.c
29947 #include <linux/fs.h>
29949 int permission_fn(struct inode *inode, int mask) { return 0; }
29951 static const struct inode_operations
29952 iops __attribute__ ((unused)) = {
29953 .permission = permission_fn,
29969 cat - <<_ACEOF >conftest.h
29974 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29975 echo "obj-m := conftest.o" >build
/Makefile
29977 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29978 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29980 (eval $ac_try) 2>&5
29982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29983 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29985 (eval $ac_try) 2>&5
29987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29988 test $ac_status = 0; }; }; then :
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991 $as_echo "yes" >&6; }
29993 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
29997 $as_echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.
$ac_ext >&5
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30001 $as_echo "no" >&6; }
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
30012 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
30015 cat confdefs.h
- <<_ACEOF >conftest.c
30018 #include <linux/fs.h>
30020 int permission_fn(struct inode *inode, int mask,
30021 struct nameidata *nd) { return 0; }
30023 static const struct inode_operations
30024 iops __attribute__ ((unused)) = {
30025 .permission = permission_fn,
30041 cat - <<_ACEOF >conftest.h
30046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30047 echo "obj-m := conftest.o" >build
/Makefile
30049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30057 (eval $ac_try) 2>&5
30059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30060 test $ac_status = 0; }; }; then :
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063 $as_echo "yes" >&6; }
30065 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30068 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
30072 $as_echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.
$ac_ext >&5
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30076 $as_echo "no" >&6; }
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
30087 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
30090 cat confdefs.h
- <<_ACEOF >conftest.c
30093 #include <linux/fs.h>
30095 int check_acl_fn(struct inode *inode, int mask) { return 0; }
30097 static const struct inode_operations
30098 iops __attribute__ ((unused)) = {
30099 .check_acl = check_acl_fn,
30115 cat - <<_ACEOF >conftest.h
30120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30121 echo "obj-m := conftest.o" >build
/Makefile
30123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30124 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30126 (eval $ac_try) 2>&5
30128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30131 (eval $ac_try) 2>&5
30133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30134 test $ac_status = 0; }; }; then :
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137 $as_echo "yes" >&6; }
30139 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30143 $as_echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.
$ac_ext >&5
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30147 $as_echo "no" >&6; }
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
30158 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
30161 cat confdefs.h
- <<_ACEOF >conftest.c
30164 #include <linux/fs.h>
30166 int check_acl_fn(struct inode *inode, int mask,
30167 unsigned int flags) { return 0; }
30169 static const struct inode_operations
30170 iops __attribute__ ((unused)) = {
30171 .check_acl = check_acl_fn,
30187 cat - <<_ACEOF >conftest.h
30192 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30193 echo "obj-m := conftest.o" >build
/Makefile
30195 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30196 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30198 (eval $ac_try) 2>&5
30200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30201 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30203 (eval $ac_try) 2>&5
30205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30206 test $ac_status = 0; }; }; then :
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30209 $as_echo "yes" >&6; }
30211 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30214 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
30218 $as_echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.
$ac_ext >&5
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30222 $as_echo "no" >&6; }
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
30233 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
30236 cat confdefs.h
- <<_ACEOF >conftest.c
30239 #include <linux/fs.h>
30241 struct posix_acl *get_acl_fn(struct inode *inode, int type)
30244 static const struct inode_operations
30245 iops __attribute__ ((unused)) = {
30246 .get_acl = get_acl_fn,
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: yes" >&5
30284 $as_echo "yes" >&6; }
30286 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
30290 $as_echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.
$ac_ext >&5
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30294 $as_echo "no" >&6; }
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
30305 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
30308 cat confdefs.h
- <<_ACEOF >conftest.c
30311 #include <linux/fs.h>
30313 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
30316 static const struct inode_operations
30317 iops __attribute__ ((unused)) = {
30318 .set_acl = set_acl_fn,
30334 cat - <<_ACEOF >conftest.h
30339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30340 echo "obj-m := conftest.o" >build
/Makefile
30342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30345 (eval $ac_try) 2>&5
30347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30350 (eval $ac_try) 2>&5
30352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30353 test $ac_status = 0; }; }; then :
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30356 $as_echo "yes" >&6; }
30358 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
30362 $as_echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.
$ac_ext >&5
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30366 $as_echo "no" >&6; }
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
30378 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
30381 cat confdefs.h
- <<_ACEOF >conftest.c
30384 #include <linux/fs.h>
30387 const struct path *p, struct kstat *k,
30388 u32 request_mask, unsigned int query_flags)
30391 static const struct inode_operations
30392 iops __attribute__ ((unused)) = {
30393 .getattr = test_getattr,
30409 cat - <<_ACEOF >conftest.h
30414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30415 echo "obj-m := conftest.o" >build
/Makefile
30417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30420 (eval $ac_try) 2>&5
30422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30425 (eval $ac_try) 2>&5
30427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30428 test $ac_status = 0; }; }; then :
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30431 $as_echo "yes" >&6; }
30433 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
30437 $as_echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.
$ac_ext >&5
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30441 $as_echo "no" >&6; }
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
30452 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
30455 cat confdefs.h
- <<_ACEOF >conftest.c
30458 #include <linux/fs.h>
30461 struct vfsmount *mnt, struct dentry *d,
30465 static const struct inode_operations
30466 iops __attribute__ ((unused)) = {
30467 .getattr = test_getattr,
30483 cat - <<_ACEOF >conftest.h
30488 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30489 echo "obj-m := conftest.o" >build
/Makefile
30491 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30492 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30494 (eval $ac_try) 2>&5
30496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30497 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30499 (eval $ac_try) 2>&5
30501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30502 test $ac_status = 0; }; }; then :
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30505 $as_echo "yes" >&6; }
30507 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
30511 $as_echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.
$ac_ext >&5
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30515 $as_echo "no" >&6; }
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
30527 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
30530 cat confdefs.h
- <<_ACEOF >conftest.c
30533 #include <linux/fs.h>
30539 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
30549 cat - <<_ACEOF >conftest.h
30554 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30555 echo "obj-m := conftest.o" >build
/Makefile
30557 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30558 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30560 (eval $ac_try) 2>&5
30562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30563 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30565 (eval $ac_try) 2>&5
30567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30568 test $ac_status = 0; }; }; then :
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30571 $as_echo "yes" >&6; }
30573 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
30577 $as_echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.
$ac_ext >&5
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 $as_echo "no" >&6; }
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
30592 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
30596 cat confdefs.h
- <<_ACEOF >conftest.c
30599 #include <linux/fs.h>
30601 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
30602 static struct super_operations sops __attribute__ ((unused)) = {
30603 .show_options = show_options,
30619 cat - <<_ACEOF >conftest.h
30624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30625 echo "obj-m := conftest.o" >build
/Makefile
30627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30630 (eval $ac_try) 2>&5
30632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30635 (eval $ac_try) 2>&5
30637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30638 test $ac_status = 0; }; }; then :
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30641 $as_echo "yes" >&6; }
30643 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
30647 $as_echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.
$ac_ext >&5
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651 $as_echo "no" >&6; }
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
30662 $as_echo_n "checking whether file_inode() is available... " >&6; }
30665 cat confdefs.h
- <<_ACEOF >conftest.c
30668 #include <linux/fs.h>
30674 struct file *f = NULL;
30685 cat - <<_ACEOF >conftest.h
30690 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30691 echo "obj-m := conftest.o" >build
/Makefile
30693 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30694 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30696 (eval $ac_try) 2>&5
30698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30699 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30701 (eval $ac_try) 2>&5
30703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30704 test $ac_status = 0; }; }; then :
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30707 $as_echo "yes" >&6; }
30709 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
30713 $as_echo "$as_me: failed program was:" >&5
30714 sed 's/^/| /' conftest.
$ac_ext >&5
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30717 $as_echo "no" >&6; }
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
30728 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
30732 cat confdefs.h
- <<_ACEOF >conftest.c
30735 #include <linux/fs.h>
30737 int test_fsync(struct file *f, struct dentry *dentry, int x)
30740 static const struct file_operations
30741 fops __attribute__ ((unused)) = {
30742 .fsync = test_fsync,
30758 cat - <<_ACEOF >conftest.h
30763 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30764 echo "obj-m := conftest.o" >build
/Makefile
30766 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30767 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30769 (eval $ac_try) 2>&5
30771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30772 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30774 (eval $ac_try) 2>&5
30776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30777 test $ac_status = 0; }; }; then :
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
30780 $as_echo "dentry" >&6; }
30782 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
30786 $as_echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.
$ac_ext >&5
30800 cat confdefs.h
- <<_ACEOF >conftest.c
30803 #include <linux/fs.h>
30805 int test_fsync(struct file *f, int x) { return 0; }
30807 static const struct file_operations
30808 fops __attribute__ ((unused)) = {
30809 .fsync = test_fsync,
30825 cat - <<_ACEOF >conftest.h
30830 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30831 echo "obj-m := conftest.o" >build
/Makefile
30833 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30834 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30841 (eval $ac_try) 2>&5
30843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30844 test $ac_status = 0; }; }; then :
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
30847 $as_echo "no dentry" >&6; }
30849 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
30853 $as_echo "$as_me: failed program was:" >&5
30854 sed 's/^/| /' conftest.
$ac_ext >&5
30867 cat confdefs.h
- <<_ACEOF >conftest.c
30870 #include <linux/fs.h>
30872 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
30875 static const struct file_operations
30876 fops __attribute__ ((unused)) = {
30877 .fsync = test_fsync,
30893 cat - <<_ACEOF >conftest.h
30898 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30899 echo "obj-m := conftest.o" >build
/Makefile
30901 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30902 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30904 (eval $ac_try) 2>&5
30906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30909 (eval $ac_try) 2>&5
30911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30912 test $ac_status = 0; }; }; then :
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
30915 $as_echo "range" >&6; }
30917 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
30921 $as_echo "$as_me: failed program was:" >&5
30922 sed 's/^/| /' conftest.
$ac_ext >&5
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
30935 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
30938 cat confdefs.h
- <<_ACEOF >conftest.c
30941 #include <linux/fs.h>
30942 void evict_inode (struct inode * t) { return; }
30943 static struct super_operations sops __attribute__ ((unused)) = {
30944 .evict_inode = evict_inode,
30960 cat - <<_ACEOF >conftest.h
30965 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30966 echo "obj-m := conftest.o" >build
/Makefile
30968 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30969 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30971 (eval $ac_try) 2>&5
30973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30974 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30976 (eval $ac_try) 2>&5
30978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30979 test $ac_status = 0; }; }; then :
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30982 $as_echo "yes" >&6; }
30984 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
30988 $as_echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.
$ac_ext >&5
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30992 $as_echo "no" >&6; }
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
31003 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
31006 cat confdefs.h
- <<_ACEOF >conftest.c
31009 #include <linux/fs.h>
31011 void dirty_inode(struct inode *a, int b) { return; }
31013 static const struct super_operations
31014 sops __attribute__ ((unused)) = {
31015 .dirty_inode = dirty_inode,
31031 cat - <<_ACEOF >conftest.h
31036 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31037 echo "obj-m := conftest.o" >build
/Makefile
31039 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31040 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31042 (eval $ac_try) 2>&5
31044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31045 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31047 (eval $ac_try) 2>&5
31049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31050 test $ac_status = 0; }; }; then :
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31053 $as_echo "yes" >&6; }
31055 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
31059 $as_echo "$as_me: failed program was:" >&5
31060 sed 's/^/| /' conftest.
$ac_ext >&5
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31063 $as_echo "no" >&6; }
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
31074 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
31077 cat confdefs.h
- <<_ACEOF >conftest.c
31080 #include <linux/fs.h>
31082 int nr_cached_objects(struct super_block *sb) { return 0; }
31084 static const struct super_operations
31085 sops __attribute__ ((unused)) = {
31086 .nr_cached_objects = nr_cached_objects,
31102 cat - <<_ACEOF >conftest.h
31107 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31108 echo "obj-m := conftest.o" >build
/Makefile
31110 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31111 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31113 (eval $ac_try) 2>&5
31115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31116 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31118 (eval $ac_try) 2>&5
31120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31121 test $ac_status = 0; }; }; then :
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31124 $as_echo "yes" >&6; }
31126 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
31130 $as_echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.
$ac_ext >&5
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134 $as_echo "no" >&6; }
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
31145 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
31148 cat confdefs.h
- <<_ACEOF >conftest.c
31151 #include <linux/fs.h>
31153 void free_cached_objects(struct super_block *sb, int x)
31156 static const struct super_operations
31157 sops __attribute__ ((unused)) = {
31158 .free_cached_objects = free_cached_objects,
31174 cat - <<_ACEOF >conftest.h
31179 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31180 echo "obj-m := conftest.o" >build
/Makefile
31182 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31183 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31185 (eval $ac_try) 2>&5
31187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31188 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31190 (eval $ac_try) 2>&5
31192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31193 test $ac_status = 0; }; }; then :
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196 $as_echo "yes" >&6; }
31198 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
31202 $as_echo "$as_me: failed program was:" >&5
31203 sed 's/^/| /' conftest.
$ac_ext >&5
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31206 $as_echo "no" >&6; }
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
31218 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
31221 cat confdefs.h
- <<_ACEOF >conftest.c
31224 #include <linux/fs.h>
31226 long test_fallocate(struct file *file, int mode,
31227 loff_t offset, loff_t len) { return 0; }
31229 static const struct file_operations
31230 fops __attribute__ ((unused)) = {
31231 .fallocate = test_fallocate,
31247 cat - <<_ACEOF >conftest.h
31252 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31253 echo "obj-m := conftest.o" >build
/Makefile
31255 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31256 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31258 (eval $ac_try) 2>&5
31260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31261 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31263 (eval $ac_try) 2>&5
31265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31266 test $ac_status = 0; }; }; then :
31268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31269 $as_echo "yes" >&6; }
31271 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
31275 $as_echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.
$ac_ext >&5
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279 $as_echo "no" >&6; }
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
31290 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
31293 cat confdefs.h
- <<_ACEOF >conftest.c
31296 #include <linux/fs.h>
31298 long test_fallocate(struct inode *inode, int mode,
31299 loff_t offset, loff_t len) { return 0; }
31301 static const struct inode_operations
31302 fops __attribute__ ((unused)) = {
31303 .fallocate = test_fallocate,
31319 cat - <<_ACEOF >conftest.h
31324 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31325 echo "obj-m := conftest.o" >build
/Makefile
31327 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31328 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31330 (eval $ac_try) 2>&5
31332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31333 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31341 $as_echo "yes" >&6; }
31343 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
31347 $as_echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.
$ac_ext >&5
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31351 $as_echo "no" >&6; }
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
31363 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
31366 cat confdefs.h
- <<_ACEOF >conftest.c
31369 #include <linux/fs.h>
31371 static const struct file_operations
31372 fops __attribute__ ((unused)) = {
31389 cat - <<_ACEOF >conftest.h
31394 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31395 echo "obj-m := conftest.o" >build
/Makefile
31397 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31398 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31400 (eval $ac_try) 2>&5
31402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31403 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31405 (eval $ac_try) 2>&5
31407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31408 test $ac_status = 0; }; }; then :
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31411 $as_echo "yes" >&6; }
31413 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
31417 $as_echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.
$ac_ext >&5
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421 $as_echo "no" >&6; }
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
31432 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
31435 cat confdefs.h
- <<_ACEOF >conftest.c
31438 #include <linux/fs.h>
31440 int mkdir(struct inode *inode, struct dentry *dentry,
31441 umode_t umode) { return 0; }
31443 static const struct inode_operations
31444 iops __attribute__ ((unused)) = {
31461 cat - <<_ACEOF >conftest.h
31466 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31467 echo "obj-m := conftest.o" >build
/Makefile
31469 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31470 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31472 (eval $ac_try) 2>&5
31474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31475 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31477 (eval $ac_try) 2>&5
31479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31480 test $ac_status = 0; }; }; then :
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31483 $as_echo "yes" >&6; }
31485 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
31489 $as_echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.
$ac_ext >&5
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31493 $as_echo "no" >&6; }
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
31504 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
31507 cat confdefs.h
- <<_ACEOF >conftest.c
31510 #include <linux/fs.h>
31512 struct dentry *inode_lookup(struct inode *inode,
31513 struct dentry *dentry, struct nameidata *nidata)
31516 static const struct inode_operations iops
31517 __attribute__ ((unused)) = {
31518 .lookup = inode_lookup,
31534 cat - <<_ACEOF >conftest.h
31539 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31540 echo "obj-m := conftest.o" >build
/Makefile
31542 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31543 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31545 (eval $ac_try) 2>&5
31547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31548 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31550 (eval $ac_try) 2>&5
31552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31553 test $ac_status = 0; }; }; then :
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31556 $as_echo "yes" >&6; }
31558 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
31562 $as_echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.
$ac_ext >&5
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31566 $as_echo "no" >&6; }
31576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
31577 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
31580 cat confdefs.h
- <<_ACEOF >conftest.c
31583 #include <linux/fs.h>
31585 #ifdef HAVE_MKDIR_UMODE_T
31586 int inode_create(struct inode *inode ,struct dentry *dentry,
31587 umode_t umode, struct nameidata *nidata) { return 0; }
31589 int inode_create(struct inode *inode,struct dentry *dentry,
31590 int umode, struct nameidata * nidata) { return 0; }
31593 static const struct inode_operations
31594 iops __attribute__ ((unused)) = {
31595 .create = inode_create,
31611 cat - <<_ACEOF >conftest.h
31616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31617 echo "obj-m := conftest.o" >build
/Makefile
31619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31622 (eval $ac_try) 2>&5
31624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31627 (eval $ac_try) 2>&5
31629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31630 test $ac_status = 0; }; }; then :
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31633 $as_echo "yes" >&6; }
31635 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
31639 $as_echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.
$ac_ext >&5
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31643 $as_echo "no" >&6; }
31653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
31654 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
31657 cat confdefs.h
- <<_ACEOF >conftest.c
31660 #include <linux/fs.h>
31661 const char *get_link(struct dentry *de, struct inode *ip,
31662 struct delayed_call *done) { return "symlink"; }
31663 static struct inode_operations
31664 iops __attribute__ ((unused)) = {
31665 .get_link = get_link,
31681 cat - <<_ACEOF >conftest.h
31686 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31687 echo "obj-m := conftest.o" >build
/Makefile
31689 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31690 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31692 (eval $ac_try) 2>&5
31694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31695 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31697 (eval $ac_try) 2>&5
31699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31700 test $ac_status = 0; }; }; then :
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31703 $as_echo "yes" >&6; }
31705 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
31709 $as_echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.
$ac_ext >&5
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713 $as_echo "no" >&6; }
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
31715 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
31718 cat confdefs.h
- <<_ACEOF >conftest.c
31721 #include <linux/fs.h>
31722 const char *get_link(struct dentry *de, struct
31723 inode *ip, void **cookie) { return "symlink"; }
31724 static struct inode_operations
31725 iops __attribute__ ((unused)) = {
31726 .get_link = get_link,
31742 cat - <<_ACEOF >conftest.h
31747 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31748 echo "obj-m := conftest.o" >build
/Makefile
31750 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31751 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31753 (eval $ac_try) 2>&5
31755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31756 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31758 (eval $ac_try) 2>&5
31760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31761 test $ac_status = 0; }; }; then :
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31764 $as_echo "yes" >&6; }
31766 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
31770 $as_echo "$as_me: failed program was:" >&5
31771 sed 's/^/| /' conftest.
$ac_ext >&5
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31774 $as_echo "no" >&6; }
31776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
31777 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
31780 cat confdefs.h
- <<_ACEOF >conftest.c
31783 #include <linux/fs.h>
31784 const char *follow_link(struct dentry *de,
31785 void **cookie) { return "symlink"; }
31786 static struct inode_operations
31787 iops __attribute__ ((unused)) = {
31788 .follow_link = follow_link,
31804 cat - <<_ACEOF >conftest.h
31809 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31810 echo "obj-m := conftest.o" >build
/Makefile
31812 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31813 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31815 (eval $ac_try) 2>&5
31817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31818 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31820 (eval $ac_try) 2>&5
31822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31823 test $ac_status = 0; }; }; then :
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31826 $as_echo "yes" >&6; }
31828 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
31832 $as_echo "$as_me: failed program was:" >&5
31833 sed 's/^/| /' conftest.
$ac_ext >&5
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836 $as_echo "no" >&6; }
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
31838 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
31841 cat confdefs.h
- <<_ACEOF >conftest.c
31844 #include <linux/fs.h>
31845 void *follow_link(struct dentry *de, struct
31846 nameidata *nd) { return (void *)NULL; }
31847 static struct inode_operations
31848 iops __attribute__ ((unused)) = {
31849 .follow_link = follow_link,
31865 cat - <<_ACEOF >conftest.h
31870 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31871 echo "obj-m := conftest.o" >build
/Makefile
31873 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31874 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31876 (eval $ac_try) 2>&5
31878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31879 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31881 (eval $ac_try) 2>&5
31883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31884 test $ac_status = 0; }; }; then :
31886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31887 $as_echo "yes" >&6; }
31889 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
31893 $as_echo "$as_me: failed program was:" >&5
31894 sed 's/^/| /' conftest.
$ac_ext >&5
31896 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
31930 cat confdefs.h
- <<_ACEOF >conftest.c
31933 #if !defined(HAVE_GET_LINK_DELAYED)
31934 #error "Expecting get_link() delayed done"
31950 cat - <<_ACEOF >conftest.h
31955 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31956 echo "obj-m := conftest.o" >build
/Makefile
31958 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31959 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31961 (eval $ac_try) 2>&5
31963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31964 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31966 (eval $ac_try) 2>&5
31968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31969 test $ac_status = 0; }; }; then :
31972 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
31976 $as_echo "$as_me: failed program was:" >&5
31977 sed 's/^/| /' conftest.
$ac_ext >&5
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
31980 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
31983 cat confdefs.h
- <<_ACEOF >conftest.c
31986 #include <linux/fs.h>
31987 void put_link(struct inode *ip, void *cookie)
31989 static struct inode_operations
31990 iops __attribute__ ((unused)) = {
31991 .put_link = put_link,
32007 cat - <<_ACEOF >conftest.h
32012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32013 echo "obj-m := conftest.o" >build
/Makefile
32015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32018 (eval $ac_try) 2>&5
32020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32023 (eval $ac_try) 2>&5
32025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32026 test $ac_status = 0; }; }; then :
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32029 $as_echo "yes" >&6; }
32031 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
32035 $as_echo "$as_me: failed program was:" >&5
32036 sed 's/^/| /' conftest.
$ac_ext >&5
32038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32039 $as_echo "no" >&6; }
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
32041 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
32044 cat confdefs.h
- <<_ACEOF >conftest.c
32047 #include <linux/fs.h>
32048 void put_link(struct dentry *de, struct
32049 nameidata *nd, void *ptr) { return; }
32050 static struct inode_operations
32051 iops __attribute__ ((unused)) = {
32052 .put_link = put_link,
32068 cat - <<_ACEOF >conftest.h
32073 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32074 echo "obj-m := conftest.o" >build
/Makefile
32076 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32077 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32079 (eval $ac_try) 2>&5
32081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32082 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32084 (eval $ac_try) 2>&5
32086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32087 test $ac_status = 0; }; }; then :
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32090 $as_echo "yes" >&6; }
32092 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
32096 $as_echo "$as_me: failed program was:" >&5
32097 sed 's/^/| /' conftest.
$ac_ext >&5
32099 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
32124 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
32127 cat confdefs.h
- <<_ACEOF >conftest.c
32130 #include <linux/fs.h>
32131 void truncate_range(struct inode *inode, loff_t start,
32132 loff_t end) { return; }
32133 static struct inode_operations iops __attribute__ ((unused)) = {
32134 .truncate_range = truncate_range,
32150 cat - <<_ACEOF >conftest.h
32155 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32156 echo "obj-m := conftest.o" >build
/Makefile
32158 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32159 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32161 (eval $ac_try) 2>&5
32163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32164 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32166 (eval $ac_try) 2>&5
32168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32169 test $ac_status = 0; }; }; then :
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32172 $as_echo "yes" >&6; }
32174 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
32178 $as_echo "$as_me: failed program was:" >&5
32179 sed 's/^/| /' conftest.
$ac_ext >&5
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32182 $as_echo "no" >&6; }
32192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
32193 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
32196 cat confdefs.h
- <<_ACEOF >conftest.c
32199 #include <linux/dcache.h>
32200 struct vfsmount *d_automount(struct path *p) { return NULL; }
32201 struct dentry_operations dops __attribute__ ((unused)) = {
32202 .d_automount = d_automount,
32218 cat - <<_ACEOF >conftest.h
32223 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32224 echo "obj-m := conftest.o" >build
/Makefile
32226 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32227 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32229 (eval $ac_try) 2>&5
32231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32232 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32234 (eval $ac_try) 2>&5
32236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32237 test $ac_status = 0; }; }; then :
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32240 $as_echo "yes" >&6; }
32242 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
32246 $as_echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.
$ac_ext >&5
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250 $as_echo "no" >&6; }
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
32261 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
32264 cat confdefs.h
- <<_ACEOF >conftest.c
32267 #include <linux/exportfs.h>
32268 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
32269 struct inode *parent) { return 0; }
32270 static struct export_operations eops __attribute__ ((unused))={
32271 .encode_fh = encode_fh,
32287 cat - <<_ACEOF >conftest.h
32292 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32293 echo "obj-m := conftest.o" >build
/Makefile
32295 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32296 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32298 (eval $ac_try) 2>&5
32300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32301 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32303 (eval $ac_try) 2>&5
32305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32306 test $ac_status = 0; }; }; then :
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32309 $as_echo "yes" >&6; }
32311 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
32315 $as_echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.
$ac_ext >&5
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32319 $as_echo "no" >&6; }
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
32330 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
32333 cat confdefs.h
- <<_ACEOF >conftest.c
32336 #include <linux/exportfs.h>
32337 int commit_metadata(struct inode *inode) { return 0; }
32338 static struct export_operations eops __attribute__ ((unused))={
32339 .commit_metadata = commit_metadata,
32355 cat - <<_ACEOF >conftest.h
32360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32361 echo "obj-m := conftest.o" >build
/Makefile
32363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32366 (eval $ac_try) 2>&5
32368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32371 (eval $ac_try) 2>&5
32373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32374 test $ac_status = 0; }; }; then :
32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377 $as_echo "yes" >&6; }
32379 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
32383 $as_echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.
$ac_ext >&5
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32387 $as_echo "no" >&6; }
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
32397 $as_echo_n "checking whether clear_inode() is available... " >&6; }
32401 cat confdefs.h
- <<_ACEOF >conftest.c
32404 #include <linux/fs.h>
32420 cat - <<_ACEOF >conftest.h
32425 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32426 echo "obj-m := conftest.o" >build
/Makefile
32428 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32429 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32431 (eval $ac_try) 2>&5
32433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32434 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32436 (eval $ac_try) 2>&5
32438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32439 test $ac_status = 0; }; }; then :
32442 $as_echo "$as_me: failed program was:" >&5
32443 sed 's/^/| /' conftest.
$ac_ext >&5
32451 if test $rc -ne 0; then :
32453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32454 $as_echo "no" >&6; }
32457 if test "x$enable_linux_builtin" != xyes
; then
32459 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
32460 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32462 if test $rc -ne 0; then
32464 for file in fs
/inode.c
; do
32465 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
32466 "$LINUX/$file" 2>/dev
/null
32468 if test $rc -eq 0; then
32473 if test $export -eq 0; then :
32483 if test $rc -ne 0; then :
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32486 $as_echo "no" >&6; }
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32491 $as_echo "yes" >&6; }
32493 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
32501 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
32505 cat confdefs.h
- <<_ACEOF >conftest.c
32508 #include <linux/fs.h>
32514 struct dentry *dentry = NULL;
32515 struct iattr *attr = NULL;
32518 error = setattr_prepare(dentry, attr);
32528 cat - <<_ACEOF >conftest.h
32533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32534 echo "obj-m := conftest.o" >build
/Makefile
32536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32539 (eval $ac_try) 2>&5
32541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32544 (eval $ac_try) 2>&5
32546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32547 test $ac_status = 0; }; }; then :
32550 $as_echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.
$ac_ext >&5
32559 if test $rc -ne 0; then :
32561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32562 $as_echo "no" >&6; }
32565 if test "x$enable_linux_builtin" != xyes
; then
32567 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
32568 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32570 if test $rc -ne 0; then
32572 for file in fs
/attr.c
; do
32573 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
32574 "$LINUX/$file" 2>/dev
/null
32576 if test $rc -eq 0; then
32581 if test $export -eq 0; then :
32591 if test $rc -ne 0; then :
32593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32594 $as_echo "no" >&6; }
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32599 $as_echo "yes" >&6; }
32601 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
32609 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
32613 cat confdefs.h
- <<_ACEOF >conftest.c
32616 #include <linux/fs.h>
32622 insert_inode_locked(NULL);
32632 cat - <<_ACEOF >conftest.h
32637 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32638 echo "obj-m := conftest.o" >build
/Makefile
32640 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32641 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32643 (eval $ac_try) 2>&5
32645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32646 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32648 (eval $ac_try) 2>&5
32650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32651 test $ac_status = 0; }; }; then :
32654 $as_echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.
$ac_ext >&5
32663 if test $rc -ne 0; then :
32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32666 $as_echo "no" >&6; }
32669 if test "x$enable_linux_builtin" != xyes
; then
32671 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
32672 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32674 if test $rc -ne 0; then
32676 for file in fs
/inode.c
; do
32677 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
32678 "$LINUX/$file" 2>/dev
/null
32680 if test $rc -eq 0; then
32685 if test $export -eq 0; then :
32695 if test $rc -ne 0; then :
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32698 $as_echo "no" >&6; }
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32703 $as_echo "yes" >&6; }
32705 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
32712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
32713 $as_echo_n "checking whether d_make_root() is available... " >&6; }
32717 cat confdefs.h
- <<_ACEOF >conftest.c
32720 #include <linux/dcache.h>
32736 cat - <<_ACEOF >conftest.h
32741 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32742 echo "obj-m := conftest.o" >build
/Makefile
32744 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32745 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32747 (eval $ac_try) 2>&5
32749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32750 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32752 (eval $ac_try) 2>&5
32754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32755 test $ac_status = 0; }; }; then :
32758 $as_echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.
$ac_ext >&5
32767 if test $rc -ne 0; then :
32769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32770 $as_echo "no" >&6; }
32773 if test "x$enable_linux_builtin" != xyes
; then
32775 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
32776 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32778 if test $rc -ne 0; then
32780 for file in fs
/dcache.c
; do
32781 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
32782 "$LINUX/$file" 2>/dev
/null
32784 if test $rc -eq 0; then
32789 if test $export -eq 0; then :
32799 if test $rc -ne 0; then :
32801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32802 $as_echo "no" >&6; }
32806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32807 $as_echo "yes" >&6; }
32809 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
32817 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
32821 cat confdefs.h
- <<_ACEOF >conftest.c
32824 #include <linux/dcache.h>
32830 d_obtain_alias(NULL);
32840 cat - <<_ACEOF >conftest.h
32845 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32846 echo "obj-m := conftest.o" >build
/Makefile
32848 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32849 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32851 (eval $ac_try) 2>&5
32853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32854 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32856 (eval $ac_try) 2>&5
32858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32859 test $ac_status = 0; }; }; then :
32862 $as_echo "$as_me: failed program was:" >&5
32863 sed 's/^/| /' conftest.
$ac_ext >&5
32871 if test $rc -ne 0; then :
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32874 $as_echo "no" >&6; }
32877 if test "x$enable_linux_builtin" != xyes
; then
32879 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
32880 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32882 if test $rc -ne 0; then
32884 for file in fs
/dcache.c
; do
32885 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
32886 "$LINUX/$file" 2>/dev
/null
32888 if test $rc -eq 0; then
32893 if test $export -eq 0; then :
32903 if test $rc -ne 0; then :
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32911 $as_echo "yes" >&6; }
32913 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
32921 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
32925 cat confdefs.h
- <<_ACEOF >conftest.c
32928 #include <linux/dcache.h>
32934 struct inode *ip = NULL;
32935 d_prune_aliases(ip);
32945 cat - <<_ACEOF >conftest.h
32950 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32951 echo "obj-m := conftest.o" >build
/Makefile
32953 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32954 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32956 (eval $ac_try) 2>&5
32958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32959 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32961 (eval $ac_try) 2>&5
32963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32964 test $ac_status = 0; }; }; then :
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.
$ac_ext >&5
32976 if test $rc -ne 0; then :
32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32979 $as_echo "no" >&6; }
32982 if test "x$enable_linux_builtin" != xyes
; then
32984 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
32985 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32987 if test $rc -ne 0; then
32989 for file in fs
/dcache.c
; do
32990 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
32991 "$LINUX/$file" 2>/dev
/null
32993 if test $rc -eq 0; then
32998 if test $export -eq 0; then :
33008 if test $rc -ne 0; then :
33010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33011 $as_echo "no" >&6; }
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33016 $as_echo "yes" >&6; }
33018 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
33026 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
33030 cat confdefs.h
- <<_ACEOF >conftest.c
33033 #include <linux/dcache.h>
33039 d_set_d_op(NULL, NULL);
33049 cat - <<_ACEOF >conftest.h
33054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33055 echo "obj-m := conftest.o" >build
/Makefile
33057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33060 (eval $ac_try) 2>&5
33062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33065 (eval $ac_try) 2>&5
33067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33068 test $ac_status = 0; }; }; then :
33071 $as_echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.
$ac_ext >&5
33080 if test $rc -ne 0; then :
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33083 $as_echo "no" >&6; }
33086 if test "x$enable_linux_builtin" != xyes
; then
33088 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
33089 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33091 if test $rc -ne 0; then
33093 for file in fs
/dcache.c
; do
33094 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
33095 "$LINUX/$file" 2>/dev
/null
33097 if test $rc -eq 0; then
33102 if test $export -eq 0; then :
33112 if test $rc -ne 0; then :
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33115 $as_echo "no" >&6; }
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33120 $as_echo "yes" >&6; }
33122 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
33130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
33131 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
33134 cat confdefs.h
- <<_ACEOF >conftest.c
33137 #include <linux/dcache.h>
33139 int revalidate (struct dentry *dentry,
33140 struct nameidata *nidata) { return 0; }
33142 static const struct dentry_operations
33143 dops __attribute__ ((unused)) = {
33144 .d_revalidate = revalidate,
33160 cat - <<_ACEOF >conftest.h
33165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33166 echo "obj-m := conftest.o" >build
/Makefile
33168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33171 (eval $ac_try) 2>&5
33173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33174 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33176 (eval $ac_try) 2>&5
33178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33179 test $ac_status = 0; }; }; then :
33181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33182 $as_echo "yes" >&6; }
33184 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
33188 $as_echo "$as_me: failed program was:" >&5
33189 sed 's/^/| /' conftest.
$ac_ext >&5
33191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33192 $as_echo "no" >&6; }
33202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
33203 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
33206 cat confdefs.h
- <<_ACEOF >conftest.c
33209 #include <linux/dcache.h>
33211 const struct dentry_operations test_d_op = {
33212 .d_revalidate = NULL,
33219 struct dentry d __attribute__ ((unused));
33221 d.d_op = &test_d_op;
33231 cat - <<_ACEOF >conftest.h
33236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33237 echo "obj-m := conftest.o" >build
/Makefile
33239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33242 (eval $ac_try) 2>&5
33244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33247 (eval $ac_try) 2>&5
33249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33250 test $ac_status = 0; }; }; then :
33252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33253 $as_echo "yes" >&6; }
33255 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
33259 $as_echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.
$ac_ext >&5
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33263 $as_echo "no" >&6; }
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
33273 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
33277 cat confdefs.h
- <<_ACEOF >conftest.c
33280 #include <linux/fs.h>
33286 check_disk_size_change(NULL, NULL);
33296 cat - <<_ACEOF >conftest.h
33301 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33302 echo "obj-m := conftest.o" >build
/Makefile
33304 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33305 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33307 (eval $ac_try) 2>&5
33309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33310 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33312 (eval $ac_try) 2>&5
33314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33315 test $ac_status = 0; }; }; then :
33318 $as_echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.
$ac_ext >&5
33327 if test $rc -ne 0; then :
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33330 $as_echo "no" >&6; }
33333 if test "x$enable_linux_builtin" != xyes
; then
33335 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
33336 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33338 if test $rc -ne 0; then
33340 for file in fs
/block_dev.c
; do
33341 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
33342 "$LINUX/$file" 2>/dev
/null
33344 if test $rc -eq 0; then
33349 if test $export -eq 0; then :
33359 if test $rc -ne 0; then :
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33362 $as_echo "no" >&6; }
33366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33367 $as_echo "yes" >&6; }
33369 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
33377 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
33381 cat confdefs.h
- <<_ACEOF >conftest.c
33384 #include <linux/mm.h>
33390 truncate_setsize(NULL, 0);
33400 cat - <<_ACEOF >conftest.h
33405 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33406 echo "obj-m := conftest.o" >build
/Makefile
33408 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33409 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33411 (eval $ac_try) 2>&5
33413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33414 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33416 (eval $ac_try) 2>&5
33418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33419 test $ac_status = 0; }; }; then :
33422 $as_echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.
$ac_ext >&5
33431 if test $rc -ne 0; then :
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33434 $as_echo "no" >&6; }
33437 if test "x$enable_linux_builtin" != xyes
; then
33439 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
33440 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33442 if test $rc -ne 0; then
33444 for file in mm
/truncate.c
; do
33445 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
33446 "$LINUX/$file" 2>/dev
/null
33448 if test $rc -eq 0; then
33453 if test $export -eq 0; then :
33463 if test $rc -ne 0; then :
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466 $as_echo "no" >&6; }
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33471 $as_echo "yes" >&6; }
33473 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
33482 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
33485 cat confdefs.h
- <<_ACEOF >conftest.c
33488 #include <linux/security.h>
33494 struct inode *ip __attribute__ ((unused)) = NULL;
33495 struct inode *dip __attribute__ ((unused)) = NULL;
33496 const struct qstr *str __attribute__ ((unused)) = NULL;
33497 char *name __attribute__ ((unused)) = NULL;
33498 void *value __attribute__ ((unused)) = NULL;
33499 size_t len __attribute__ ((unused)) = 0;
33501 security_inode_init_security(ip, dip, str, &name, &value, &len);
33511 cat - <<_ACEOF >conftest.h
33516 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33517 echo "obj-m := conftest.o" >build
/Makefile
33519 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33520 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33522 (eval $ac_try) 2>&5
33524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33525 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33527 (eval $ac_try) 2>&5
33529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33530 test $ac_status = 0; }; }; then :
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33533 $as_echo "yes" >&6; }
33535 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33539 $as_echo "$as_me: failed program was:" >&5
33540 sed 's/^/| /' conftest.
$ac_ext >&5
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33543 $as_echo "no" >&6; }
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
33554 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
33557 cat confdefs.h
- <<_ACEOF >conftest.c
33560 #include <linux/security.h>
33566 struct inode *ip __attribute__ ((unused)) = NULL;
33567 struct inode *dip __attribute__ ((unused)) = NULL;
33568 const struct qstr *str __attribute__ ((unused)) = NULL;
33569 initxattrs func __attribute__ ((unused)) = NULL;
33571 security_inode_init_security(ip, dip, str, func, NULL);
33581 cat - <<_ACEOF >conftest.h
33586 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33587 echo "obj-m := conftest.o" >build
/Makefile
33589 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33590 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33592 (eval $ac_try) 2>&5
33594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33595 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33597 (eval $ac_try) 2>&5
33599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33600 test $ac_status = 0; }; }; then :
33602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33603 $as_echo "yes" >&6; }
33605 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33609 $as_echo "$as_me: failed program was:" >&5
33610 sed 's/^/| /' conftest.
$ac_ext >&5
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613 $as_echo "no" >&6; }
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
33623 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
33627 cat confdefs.h
- <<_ACEOF >conftest.c
33630 #include <linux/fs.h>
33636 mount_nodev(NULL, 0, NULL, NULL);
33646 cat - <<_ACEOF >conftest.h
33651 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33652 echo "obj-m := conftest.o" >build
/Makefile
33654 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33655 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33657 (eval $ac_try) 2>&5
33659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33660 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33662 (eval $ac_try) 2>&5
33664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33665 test $ac_status = 0; }; }; then :
33668 $as_echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.
$ac_ext >&5
33677 if test $rc -ne 0; then :
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33680 $as_echo "no" >&6; }
33683 if test "x$enable_linux_builtin" != xyes
; then
33685 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
33686 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33688 if test $rc -ne 0; then
33690 for file in fs
/super.c
; do
33691 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
33692 "$LINUX/$file" 2>/dev
/null
33694 if test $rc -eq 0; then
33699 if test $export -eq 0; then :
33709 if test $rc -ne 0; then :
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712 $as_echo "no" >&6; }
33716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33717 $as_echo "yes" >&6; }
33719 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
33727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
33728 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
33731 cat confdefs.h
- <<_ACEOF >conftest.c
33734 #include <linux/fs.h>
33736 int shrink(struct shrinker *s, struct shrink_control *sc)
33739 static const struct super_block
33740 sb __attribute__ ((unused)) = {
33741 .s_shrink.shrink = shrink,
33742 .s_shrink.seeks = DEFAULT_SEEKS,
33743 .s_shrink.batch = 0,
33759 cat - <<_ACEOF >conftest.h
33764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33765 echo "obj-m := conftest.o" >build
/Makefile
33767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33768 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33775 (eval $ac_try) 2>&5
33777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33778 test $ac_status = 0; }; }; then :
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33781 $as_echo "yes" >&6; }
33783 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
33788 $as_echo "$as_me: failed program was:" >&5
33789 sed 's/^/| /' conftest.
$ac_ext >&5
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33792 $as_echo "no" >&6; }
33802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
33803 $as_echo_n "checking whether shrink_control has nid... " >&6; }
33806 cat confdefs.h
- <<_ACEOF >conftest.c
33809 #include <linux/fs.h>
33815 struct shrink_control sc __attribute__ ((unused));
33816 unsigned long scnidsize __attribute__ ((unused)) =
33827 cat - <<_ACEOF >conftest.h
33832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33833 echo "obj-m := conftest.o" >build
/Makefile
33835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33838 (eval $ac_try) 2>&5
33840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33843 (eval $ac_try) 2>&5
33845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33846 test $ac_status = 0; }; }; then :
33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33849 $as_echo "yes" >&6; }
33851 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
33855 $as_echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.
$ac_ext >&5
33858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33859 $as_echo "no" >&6; }
33869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
33870 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
33873 cat confdefs.h
- <<_ACEOF >conftest.c
33876 #include <linux/fs.h>
33882 struct super_block sb __attribute__ ((unused));
33884 INIT_LIST_HEAD(&sb.s_instances);
33894 cat - <<_ACEOF >conftest.h
33899 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33900 echo "obj-m := conftest.o" >build
/Makefile
33902 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33903 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33905 (eval $ac_try) 2>&5
33907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33908 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33910 (eval $ac_try) 2>&5
33912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33913 test $ac_status = 0; }; }; then :
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33916 $as_echo "yes" >&6; }
33918 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
33922 $as_echo "$as_me: failed program was:" >&5
33923 sed 's/^/| /' conftest.
$ac_ext >&5
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33926 $as_echo "no" >&6; }
33935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
33936 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
33939 cat confdefs.h
- <<_ACEOF >conftest.c
33942 #include <linux/fs.h>
33948 struct super_block sb __attribute__ ((unused));
33959 cat - <<_ACEOF >conftest.h
33964 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33965 echo "obj-m := conftest.o" >build
/Makefile
33967 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33968 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33970 (eval $ac_try) 2>&5
33972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33973 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33975 (eval $ac_try) 2>&5
33977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33978 test $ac_status = 0; }; }; then :
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33981 $as_echo "yes" >&6; }
33983 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
33987 $as_echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.
$ac_ext >&5
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33991 $as_echo "no" >&6; }
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
34002 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
34006 cat confdefs.h
- <<_ACEOF >conftest.c
34009 #include <linux/backing-dev.h>
34010 struct backing_dev_info bdi;
34016 char *name = "bdi";
34017 int error __attribute__((unused)) =
34018 bdi_setup_and_register(&bdi, name);
34028 cat - <<_ACEOF >conftest.h
34033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34034 echo "obj-m := conftest.o" >build
/Makefile
34036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34037 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34039 (eval $ac_try) 2>&5
34041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34042 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34044 (eval $ac_try) 2>&5
34046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34047 test $ac_status = 0; }; }; then :
34050 $as_echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.
$ac_ext >&5
34059 if test $rc -ne 0; then :
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34062 $as_echo "no" >&6; }
34063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34064 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34068 cat confdefs.h
- <<_ACEOF >conftest.c
34071 #include <linux/backing-dev.h>
34072 struct backing_dev_info bdi;
34078 char *name = "bdi";
34079 unsigned int cap = BDI_CAP_MAP_COPY;
34080 int error __attribute__((unused)) =
34081 bdi_setup_and_register(&bdi, name, cap);
34091 cat - <<_ACEOF >conftest.h
34096 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34097 echo "obj-m := conftest.o" >build
/Makefile
34099 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34100 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34102 (eval $ac_try) 2>&5
34104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34105 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34107 (eval $ac_try) 2>&5
34109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34110 test $ac_status = 0; }; }; then :
34113 $as_echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.
$ac_ext >&5
34122 if test $rc -ne 0; then :
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34125 $as_echo "no" >&6; }
34128 if test "x$enable_linux_builtin" != xyes
; then
34130 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
34131 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34133 if test $rc -ne 0; then
34135 for file in mm
/backing-dev.c
; do
34136 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
34137 "$LINUX/$file" 2>/dev
/null
34139 if test $rc -eq 0; then
34144 if test $export -eq 0; then :
34154 if test $rc -ne 0; then :
34156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34157 $as_echo "no" >&6; }
34161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34162 $as_echo "yes" >&6; }
34164 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
34172 if test "x$enable_linux_builtin" != xyes
; then
34174 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
34175 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34177 if test $rc -ne 0; then
34179 for file in mm
/backing-dev.c
; do
34180 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
34181 "$LINUX/$file" 2>/dev
/null
34183 if test $rc -eq 0; then
34188 if test $export -eq 0; then :
34198 if test $rc -ne 0; then :
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34201 $as_echo "no" >&6; }
34202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34203 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34207 cat confdefs.h
- <<_ACEOF >conftest.c
34210 #include <linux/backing-dev.h>
34211 struct backing_dev_info bdi;
34217 char *name = "bdi";
34218 unsigned int cap = BDI_CAP_MAP_COPY;
34219 int error __attribute__((unused)) =
34220 bdi_setup_and_register(&bdi, name, cap);
34230 cat - <<_ACEOF >conftest.h
34235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34236 echo "obj-m := conftest.o" >build
/Makefile
34238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34241 (eval $ac_try) 2>&5
34243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34246 (eval $ac_try) 2>&5
34248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34249 test $ac_status = 0; }; }; then :
34252 $as_echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.
$ac_ext >&5
34261 if test $rc -ne 0; then :
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34264 $as_echo "no" >&6; }
34267 if test "x$enable_linux_builtin" != xyes
; then
34269 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
34270 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34272 if test $rc -ne 0; then
34274 for file in mm
/backing-dev.c
; do
34275 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
34276 "$LINUX/$file" 2>/dev
/null
34278 if test $rc -eq 0; then
34283 if test $export -eq 0; then :
34293 if test $rc -ne 0; then :
34295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34296 $as_echo "no" >&6; }
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34301 $as_echo "yes" >&6; }
34303 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
34312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34313 $as_echo "yes" >&6; }
34315 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
34323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
34324 $as_echo_n "checking whether set_nlink() is available... " >&6; }
34327 cat confdefs.h
- <<_ACEOF >conftest.c
34330 #include <linux/fs.h>
34337 unsigned int link = 0;
34338 (void) set_nlink(&node, link);
34348 cat - <<_ACEOF >conftest.h
34353 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34354 echo "obj-m := conftest.o" >build
/Makefile
34356 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34357 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34359 (eval $ac_try) 2>&5
34361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34362 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34364 (eval $ac_try) 2>&5
34366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34367 test $ac_status = 0; }; }; then :
34369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34370 $as_echo "yes" >&6; }
34372 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
34376 $as_echo "$as_me: failed program was:" >&5
34377 sed 's/^/| /' conftest.
$ac_ext >&5
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34380 $as_echo "no" >&6; }
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
34391 $as_echo_n "checking whether elevator_change() is available... " >&6; }
34392 tmp_flags
="$EXTRA_KCFLAGS"
34393 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
34396 cat confdefs.h
- <<_ACEOF >conftest.c
34399 #include <linux/blkdev.h>
34400 #include <linux/elevator.h>
34407 struct request_queue *q = NULL;
34408 char *elevator = NULL;
34409 ret = elevator_change(q, elevator);
34419 cat - <<_ACEOF >conftest.h
34424 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34425 echo "obj-m := conftest.o" >build
/Makefile
34427 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34428 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34430 (eval $ac_try) 2>&5
34432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34433 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34435 (eval $ac_try) 2>&5
34437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34438 test $ac_status = 0; }; }; then :
34440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34441 $as_echo "yes" >&6; }
34443 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
34447 $as_echo "$as_me: failed program was:" >&5
34448 sed 's/^/| /' conftest.
$ac_ext >&5
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34451 $as_echo "no" >&6; }
34459 EXTRA_KCFLAGS
="$tmp_flags"
34461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
34462 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
34465 cat confdefs.h
- <<_ACEOF >conftest.c
34468 #include <linux/fs.h>
34474 struct file_system_type *type = NULL;
34475 int (*test)(struct super_block *,void *) = NULL;
34476 int (*set)(struct super_block *,void *) = NULL;
34479 (void) sget(type, test, set, flags, data);
34489 cat - <<_ACEOF >conftest.h
34494 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34495 echo "obj-m := conftest.o" >build
/Makefile
34497 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34498 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34500 (eval $ac_try) 2>&5
34502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34503 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34505 (eval $ac_try) 2>&5
34507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34508 test $ac_status = 0; }; }; then :
34510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34511 $as_echo "yes" >&6; }
34513 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
34517 $as_echo "$as_me: failed program was:" >&5
34518 sed 's/^/| /' conftest.
$ac_ext >&5
34520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34521 $as_echo "no" >&6; }
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
34531 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
34535 cat confdefs.h
- <<_ACEOF >conftest.c
34538 #include <linux/fs.h>
34544 struct file *fp __attribute__ ((unused)) = NULL;
34545 struct inode *ip __attribute__ ((unused)) = NULL;
34546 loff_t offset __attribute__ ((unused)) = 0;
34547 loff_t maxsize __attribute__ ((unused)) = 0;
34549 lseek_execute(fp, ip, offset, maxsize);
34559 cat - <<_ACEOF >conftest.h
34564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34565 echo "obj-m := conftest.o" >build
/Makefile
34567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34570 (eval $ac_try) 2>&5
34572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34575 (eval $ac_try) 2>&5
34577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34578 test $ac_status = 0; }; }; then :
34581 $as_echo "$as_me: failed program was:" >&5
34582 sed 's/^/| /' conftest.
$ac_ext >&5
34590 if test $rc -ne 0; then :
34592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34593 $as_echo "no" >&6; }
34596 if test "x$enable_linux_builtin" != xyes
; then
34598 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
34599 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34601 if test $rc -ne 0; then
34603 for file in fs
/read_write.c
; do
34604 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
34605 "$LINUX/$file" 2>/dev
/null
34607 if test $rc -eq 0; then
34612 if test $export -eq 0; then :
34622 if test $rc -ne 0; then :
34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34625 $as_echo "no" >&6; }
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34630 $as_echo "yes" >&6; }
34632 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
34641 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
34644 cat confdefs.h
- <<_ACEOF >conftest.c
34647 #include <linux/fs.h>
34648 int iterate(struct file *filp, struct dir_context * context)
34651 static const struct file_operations fops
34652 __attribute__ ((unused)) = {
34653 .iterate_shared = iterate,
34669 cat - <<_ACEOF >conftest.h
34674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34675 echo "obj-m := conftest.o" >build
/Makefile
34677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34685 (eval $ac_try) 2>&5
34687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34688 test $ac_status = 0; }; }; then :
34690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34691 $as_echo "yes" >&6; }
34693 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
34697 $as_echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.
$ac_ext >&5
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34701 $as_echo "no" >&6; }
34703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
34704 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
34707 cat confdefs.h
- <<_ACEOF >conftest.c
34710 #include <linux/fs.h>
34711 int iterate(struct file *filp, struct dir_context * context)
34714 static const struct file_operations fops
34715 __attribute__ ((unused)) = {
34716 .iterate = iterate,
34732 cat - <<_ACEOF >conftest.h
34737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34738 echo "obj-m := conftest.o" >build
/Makefile
34740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34743 (eval $ac_try) 2>&5
34745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34748 (eval $ac_try) 2>&5
34750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34751 test $ac_status = 0; }; }; then :
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34754 $as_echo "yes" >&6; }
34756 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
34760 $as_echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.
$ac_ext >&5
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34764 $as_echo "no" >&6; }
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
34767 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
34770 cat confdefs.h
- <<_ACEOF >conftest.c
34773 #include <linux/fs.h>
34774 int readdir(struct file *filp, void *entry, filldir_t func)
34777 static const struct file_operations fops
34778 __attribute__ ((unused)) = {
34779 .readdir = readdir,
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 :
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34817 $as_echo "yes" >&6; }
34819 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
34823 $as_echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.
$ac_ext >&5
34826 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
34850 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
34853 cat confdefs.h
- <<_ACEOF >conftest.c
34856 #include <linux/fs.h>
34858 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
34860 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
34863 static const struct file_operations
34864 fops __attribute__ ((unused)) = {
34865 .read_iter = test_read,
34866 .write_iter = test_write,
34882 cat - <<_ACEOF >conftest.h
34887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34888 echo "obj-m := conftest.o" >build
/Makefile
34890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34893 (eval $ac_try) 2>&5
34895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34898 (eval $ac_try) 2>&5
34900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34901 test $ac_status = 0; }; }; then :
34903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34904 $as_echo "yes" >&6; }
34906 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
34910 $as_echo "$as_me: failed program was:" >&5
34911 sed 's/^/| /' conftest.
$ac_ext >&5
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34914 $as_echo "no" >&6; }
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
34924 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
34927 cat confdefs.h
- <<_ACEOF >conftest.c
34930 #include <linux/fs.h>
34937 struct kiocb *iocb = NULL;
34938 struct iov_iter *iov = NULL;
34939 generic_write_checks(iocb, iov);
34949 cat - <<_ACEOF >conftest.h
34954 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34955 echo "obj-m := conftest.o" >build
/Makefile
34957 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34958 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34960 (eval $ac_try) 2>&5
34962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34963 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34965 (eval $ac_try) 2>&5
34967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34968 test $ac_status = 0; }; }; then :
34970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34971 $as_echo "yes" >&6; }
34973 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
34977 $as_echo "$as_me: failed program was:" >&5
34978 sed 's/^/| /' conftest.
$ac_ext >&5
34980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34981 $as_echo "no" >&6; }
34991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
34992 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
34995 cat confdefs.h
- <<_ACEOF >conftest.c
34998 #include <linux/pagemap.h>
35005 kmap_atomic(&page);
35015 cat - <<_ACEOF >conftest.h
35020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35021 echo "obj-m := conftest.o" >build
/Makefile
35023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35026 (eval $ac_try) 2>&5
35028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35029 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35031 (eval $ac_try) 2>&5
35033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35034 test $ac_status = 0; }; }; then :
35036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35037 $as_echo "yes" >&6; }
35039 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
35043 $as_echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.
$ac_ext >&5
35046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35047 $as_echo "no" >&6; }
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
35058 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
35061 cat confdefs.h
- <<_ACEOF >conftest.c
35064 #include <linux/namei.h>
35070 struct path *p = NULL;
35071 follow_down_one(p);
35081 cat - <<_ACEOF >conftest.h
35086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35087 echo "obj-m := conftest.o" >build
/Makefile
35089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35092 (eval $ac_try) 2>&5
35094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35097 (eval $ac_try) 2>&5
35099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35100 test $ac_status = 0; }; }; then :
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35103 $as_echo "yes" >&6; }
35105 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
35109 $as_echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.
$ac_ext >&5
35112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35113 $as_echo "no" >&6; }
35123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
35124 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
35127 cat confdefs.h
- <<_ACEOF >conftest.c
35130 #include <linux/blkdev.h>
35132 int make_request(struct request_queue *q, struct bio *bio)
35141 blk_queue_make_request(NULL, &make_request);
35151 cat - <<_ACEOF >conftest.h
35156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35157 echo "obj-m := conftest.o" >build
/Makefile
35159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35162 (eval $ac_try) 2>&5
35164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35165 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35167 (eval $ac_try) 2>&5
35169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35170 test $ac_status = 0; }; }; then :
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35173 $as_echo "yes" >&6; }
35175 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
35178 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
35182 $as_echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.
$ac_ext >&5
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35186 $as_echo "no" >&6; }
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
35188 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
35191 cat confdefs.h
- <<_ACEOF >conftest.c
35194 #include <linux/blkdev.h>
35196 void make_request(struct request_queue *q, struct bio *bio)
35205 blk_queue_make_request(NULL, &make_request);
35215 cat - <<_ACEOF >conftest.h
35220 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35221 echo "obj-m := conftest.o" >build
/Makefile
35223 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35224 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35231 (eval $ac_try) 2>&5
35233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35234 test $ac_status = 0; }; }; then :
35236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35237 $as_echo "yes" >&6; }
35239 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
35243 $as_echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.
$ac_ext >&5
35246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35247 $as_echo "no" >&6; }
35248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
35249 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
35252 cat confdefs.h
- <<_ACEOF >conftest.c
35255 #include <linux/blkdev.h>
35257 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
35259 return (BLK_QC_T_NONE);
35266 blk_queue_make_request(NULL, &make_request);
35276 cat - <<_ACEOF >conftest.h
35281 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35282 echo "obj-m := conftest.o" >build
/Makefile
35284 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35285 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35287 (eval $ac_try) 2>&5
35289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35290 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35292 (eval $ac_try) 2>&5
35294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35295 test $ac_status = 0; }; }; then :
35297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298 $as_echo "yes" >&6; }
35300 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
35303 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
35307 $as_echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.
$ac_ext >&5
35310 as_fn_error $?
"no - Please file a bug report at
35311 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
35335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
35336 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
35340 cat confdefs.h
- <<_ACEOF >conftest.c
35343 #include <linux/bio.h>
35345 void (*generic_start_io_acct_f)(int, unsigned long,
35346 struct hd_struct *) = &generic_start_io_acct;
35347 void (*generic_end_io_acct_f)(int, struct hd_struct *,
35348 unsigned long) = &generic_end_io_acct;
35354 generic_start_io_acct(0, 0, NULL);
35355 generic_end_io_acct(0, NULL, 0);
35365 cat - <<_ACEOF >conftest.h
35370 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35371 echo "obj-m := conftest.o" >build
/Makefile
35373 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35374 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35376 (eval $ac_try) 2>&5
35378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35379 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35381 (eval $ac_try) 2>&5
35383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35384 test $ac_status = 0; }; }; then :
35387 $as_echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.
$ac_ext >&5
35396 if test $rc -ne 0; then :
35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35399 $as_echo "no" >&6; }
35402 if test "x$enable_linux_builtin" != xyes
; then
35404 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
35405 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35407 if test $rc -ne 0; then
35409 for file in block
/bio.c
; do
35410 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
35411 "$LINUX/$file" 2>/dev
/null
35413 if test $rc -eq 0; then
35418 if test $export -eq 0; then :
35428 if test $rc -ne 0; then :
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35431 $as_echo "no" >&6; }
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35436 $as_echo "yes" >&6; }
35438 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
35446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
35447 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
35450 cat confdefs.h
- <<_ACEOF >conftest.c
35453 #include <linux/fs.h>
35454 int rename_fn(struct inode *sip, struct dentry *sdp,
35455 struct inode *tip, struct dentry *tdp,
35456 unsigned int flags) { return 0; }
35458 static const struct inode_operations
35459 iops __attribute__ ((unused)) = {
35460 .rename = rename_fn,
35476 cat - <<_ACEOF >conftest.h
35481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35482 echo "obj-m := conftest.o" >build
/Makefile
35484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35487 (eval $ac_try) 2>&5
35489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35490 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35492 (eval $ac_try) 2>&5
35494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35495 test $ac_status = 0; }; }; then :
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35498 $as_echo "yes" >&6; }
35500 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
35504 $as_echo "$as_me: failed program was:" >&5
35505 sed 's/^/| /' conftest.
$ac_ext >&5
35507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35508 $as_echo "no" >&6; }
35518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
35519 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
35522 cat confdefs.h
- <<_ACEOF >conftest.c
35525 #include <linux/fs.h>
35526 #include <linux/xattr.h>
35528 static const struct inode_operations
35529 iops __attribute__ ((unused)) = {
35530 .setxattr = generic_setxattr
35546 cat - <<_ACEOF >conftest.h
35551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35552 echo "obj-m := conftest.o" >build
/Makefile
35554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35555 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35557 (eval $ac_try) 2>&5
35559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35560 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35562 (eval $ac_try) 2>&5
35564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35565 test $ac_status = 0; }; }; then :
35567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35568 $as_echo "yes" >&6; }
35570 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
35574 $as_echo "$as_me: failed program was:" >&5
35575 sed 's/^/| /' conftest.
$ac_ext >&5
35577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35578 $as_echo "no" >&6; }
35588 if test "$LINUX_OBJ" != "$LINUX"; then :
35590 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
35596 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
35597 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
35598 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
35599 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
35605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
35606 $as_echo_n "checking for dkms.conf file... " >&6; }
35607 if test -e dkms.conf
; then :
35610 *** ZFS should not be manually built in the DKMS source tree.
35611 *** Remove all ZFS packages before compiling the ZoL sources.
35612 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35617 $as_echo "not found" >&6; }
35623 # Check whether --with-mounthelperdir was given.
35624 if test "${with_mounthelperdir+set}" = set; then :
35625 withval
=$with_mounthelperdir; mounthelperdir
=$withval
35627 mounthelperdir
=/sbin
35634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
35635 $as_echo_n "checking for udev directories... " >&6; }
35637 # Check whether --with-udevdir was given.
35638 if test "${with_udevdir+set}" = set; then :
35639 withval
=$with_udevdir; udevdir
=$withval
35645 if test "x$udevdir" = xcheck
; then :
35648 path2
=/usr
/lib
/udev
35651 if test -d "$path1"; then :
35655 if test -d "$path2"; then :
35666 # Check whether --with-udevruledir was given.
35667 if test "${with_udevruledir+set}" = set; then :
35668 withval
=$with_udevruledir; udevruledir
=$withval
35670 udevruledir
="${udevdir}/rules.d"
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
35677 $as_echo "$udevdir;$udevruledir" >&6; }
35680 # Check whether --enable-systemd was given.
35681 if test "${enable_systemd+set}" = set; then :
35682 enableval
=$enable_systemd;
35689 # Check whether --with-systemdunitdir was given.
35690 if test "${with_systemdunitdir+set}" = set; then :
35691 withval
=$with_systemdunitdir; systemdunitdir
=$withval
35693 systemdunitdir
=/usr
/lib
/systemd
/system
35698 # Check whether --with-systemdpresetdir was given.
35699 if test "${with_systemdpresetdir+set}" = set; then :
35700 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
35702 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
35707 # Check whether --with-systemdmodulesloaddir was given.
35708 if test "${with_systemdmodulesloaddir+set}" = set; then :
35709 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
35711 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
35716 if test "x$enable_systemd" = xyes
; then :
35718 ZFS_INIT_SYSTEMD
=systemd
35719 ZFS_MODULE_LOAD
=modules-load.d
35720 modulesloaddir
=$systemdmodulesloaddir
35731 # Check whether --enable-sysvinit was given.
35732 if test "${enable_sysvinit+set}" = set; then :
35733 enableval
=$enable_sysvinit;
35735 enable_sysvinit
=yes
35739 if test "x$enable_sysvinit" = xyes
; then :
35740 ZFS_INIT_SYSV
=init.d
35746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
35747 $as_echo_n "checking for dracut directory... " >&6; }
35749 # Check whether --with-dracutdir was given.
35750 if test "${with_dracutdir+set}" = set; then :
35751 withval
=$with_dracutdir; dracutdir
=$withval
35757 if test "x$dracutdir" = xcheck
; then :
35759 path1
=/usr
/share
/dracut
35760 path2
=/usr
/lib
/dracut
35763 if test -d "$path1"; then :
35767 if test -d "$path2"; then :
35770 dracutdir
="$default"
35778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
35779 $as_echo "$dracutdir" >&6; }
35782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
35783 $as_echo_n "checking for target asm dir... " >&6; }
35784 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
35786 case $TARGET_ARCH in
35788 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
35791 TARGET_ASM_DIR
=asm-generic
35796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
35797 $as_echo "$TARGET_ASM_DIR" >&6; }
35802 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
35803 if test "x$ac_cv_header_zlib_h" = xyes
; then :
35806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35809 *** zlib.h missing, zlib-devel package required
35810 See \`config.log' for more details" "$LINENO" 5; }
35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
35816 $as_echo_n "checking for compress2 in -lz... " >&6; }
35817 if ${ac_cv_lib_z_compress2+:} false
; then :
35818 $as_echo_n "(cached) " >&6
35820 ac_check_lib_save_LIBS
=$LIBS
35822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35823 /* end confdefs.h. */
35825 /* Override any GCC internal prototype to avoid an error.
35826 Use char because int might match the return type of a GCC
35827 builtin and then its argument prototype would still apply. */
35835 return compress2 ();
35840 if ac_fn_c_try_link
"$LINENO"; then :
35841 ac_cv_lib_z_compress2
=yes
35843 ac_cv_lib_z_compress2
=no
35845 rm -f core conftest.err conftest.
$ac_objext \
35846 conftest
$ac_exeext conftest.
$ac_ext
35847 LIBS
=$ac_check_lib_save_LIBS
35849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
35850 $as_echo "$ac_cv_lib_z_compress2" >&6; }
35851 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
35852 cat >>confdefs.h
<<_ACEOF
35853 #define HAVE_LIBZ 1
35859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35862 *** compress2() missing, zlib-devel package required
35863 See \`config.log' for more details" "$LINENO" 5; }
35867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
35868 $as_echo_n "checking for uncompress in -lz... " >&6; }
35869 if ${ac_cv_lib_z_uncompress+:} false
; then :
35870 $as_echo_n "(cached) " >&6
35872 ac_check_lib_save_LIBS
=$LIBS
35874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35875 /* end confdefs.h. */
35877 /* Override any GCC internal prototype to avoid an error.
35878 Use char because int might match the return type of a GCC
35879 builtin and then its argument prototype would still apply. */
35883 char uncompress ();
35887 return uncompress ();
35892 if ac_fn_c_try_link
"$LINENO"; then :
35893 ac_cv_lib_z_uncompress
=yes
35895 ac_cv_lib_z_uncompress
=no
35897 rm -f core conftest.err conftest.
$ac_objext \
35898 conftest
$ac_exeext conftest.
$ac_ext
35899 LIBS
=$ac_check_lib_save_LIBS
35901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
35902 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
35903 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
35904 cat >>confdefs.h
<<_ACEOF
35905 #define HAVE_LIBZ 1
35911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35914 *** uncompress() missing, zlib-devel package required
35915 See \`config.log' for more details" "$LINENO" 5; }
35919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
35920 $as_echo_n "checking for crc32 in -lz... " >&6; }
35921 if ${ac_cv_lib_z_crc32+:} false
; then :
35922 $as_echo_n "(cached) " >&6
35924 ac_check_lib_save_LIBS
=$LIBS
35926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35927 /* end confdefs.h. */
35929 /* Override any GCC internal prototype to avoid an error.
35930 Use char because int might match the return type of a GCC
35931 builtin and then its argument prototype would still apply. */
35944 if ac_fn_c_try_link
"$LINENO"; then :
35945 ac_cv_lib_z_crc32
=yes
35947 ac_cv_lib_z_crc32
=no
35949 rm -f core conftest.err conftest.
$ac_objext \
35950 conftest
$ac_exeext conftest.
$ac_ext
35951 LIBS
=$ac_check_lib_save_LIBS
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
35954 $as_echo "$ac_cv_lib_z_crc32" >&6; }
35955 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
35956 cat >>confdefs.h
<<_ACEOF
35957 #define HAVE_LIBZ 1
35963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35966 *** crc32() missing, zlib-devel package required
35967 See \`config.log' for more details" "$LINENO" 5; }
35974 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
35980 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
35981 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
35984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35987 *** uuid/uuid.h missing, libuuid-devel package required
35988 See \`config.log' for more details" "$LINENO" 5; }
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
35994 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
35995 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
35996 $as_echo_n "(cached) " >&6
35998 ac_check_lib_save_LIBS
=$LIBS
35999 LIBS
="-luuid $LIBS"
36000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
36001 /* end confdefs.h. */
36003 /* Override any GCC internal prototype to avoid an error.
36004 Use char because int might match the return type of a GCC
36005 builtin and then its argument prototype would still apply. */
36009 char uuid_generate ();
36013 return uuid_generate ();
36018 if ac_fn_c_try_link
"$LINENO"; then :
36019 ac_cv_lib_uuid_uuid_generate
=yes
36021 ac_cv_lib_uuid_uuid_generate
=no
36023 rm -f core conftest.err conftest.
$ac_objext \
36024 conftest
$ac_exeext conftest.
$ac_ext
36025 LIBS
=$ac_check_lib_save_LIBS
36027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
36028 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
36029 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
36030 cat >>confdefs.h
<<_ACEOF
36031 #define HAVE_LIBUUID 1
36034 LIBS
="-luuid $LIBS"
36037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36040 *** uuid_generate() missing, libuuid-devel package required
36041 See \`config.log' for more details" "$LINENO" 5; }
36045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
36046 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
36047 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
36048 $as_echo_n "(cached) " >&6
36050 ac_check_lib_save_LIBS
=$LIBS
36051 LIBS
="-luuid $LIBS"
36052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
36053 /* end confdefs.h. */
36055 /* Override any GCC internal prototype to avoid an error.
36056 Use char because int might match the return type of a GCC
36057 builtin and then its argument prototype would still apply. */
36061 char uuid_is_null ();
36065 return uuid_is_null ();
36070 if ac_fn_c_try_link
"$LINENO"; then :
36071 ac_cv_lib_uuid_uuid_is_null
=yes
36073 ac_cv_lib_uuid_uuid_is_null
=no
36075 rm -f core conftest.err conftest.
$ac_objext \
36076 conftest
$ac_exeext conftest.
$ac_ext
36077 LIBS
=$ac_check_lib_save_LIBS
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
36080 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
36081 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
36082 cat >>confdefs.h
<<_ACEOF
36083 #define HAVE_LIBUUID 1
36086 LIBS
="-luuid $LIBS"
36089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36092 *** uuid_is_null() missing, libuuid-devel package required
36093 See \`config.log' for more details" "$LINENO" 5; }
36100 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
36105 # Check whether --with-blkid was given.
36106 if test "${with_blkid+set}" = set; then :
36107 withval
=$with_blkid;
36114 if test "x$with_blkid" = xyes
; then :
36119 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
36124 if test "x$with_blkid" = xcheck
; then :
36126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
36127 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
36128 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
36129 $as_echo_n "(cached) " >&6
36131 ac_check_lib_save_LIBS
=$LIBS
36132 LIBS
="-lblkid $LIBS"
36133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
36134 /* end confdefs.h. */
36136 /* Override any GCC internal prototype to avoid an error.
36137 Use char because int might match the return type of a GCC
36138 builtin and then its argument prototype would still apply. */
36142 char blkid_get_cache ();
36146 return blkid_get_cache ();
36151 if ac_fn_c_try_link
"$LINENO"; then :
36152 ac_cv_lib_blkid_blkid_get_cache
=yes
36154 ac_cv_lib_blkid_blkid_get_cache
=no
36156 rm -f core conftest.err conftest.
$ac_objext \
36157 conftest
$ac_exeext conftest.
$ac_ext
36158 LIBS
=$ac_check_lib_save_LIBS
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
36161 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
36162 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
36164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
36165 $as_echo_n "checking for blkid zfs support... " >&6; }
36168 truncate
-s 64M
$ZFS_DEV
36169 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
36170 dd of
=$ZFS_DEV bs
=1k count
=8 \
36171 seek
=128 conv
=notrunc
&>/dev
/null \
36172 >/dev
/null
2>/dev
/null
36173 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
36174 dd of
=$ZFS_DEV bs
=1k count
=8 \
36175 seek
=132 conv
=notrunc
&>/dev
/null \
36176 >/dev
/null
2>/dev
/null
36177 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
36178 dd of
=$ZFS_DEV bs
=1k count
=8 \
36179 seek
=136 conv
=notrunc
&>/dev
/null \
36180 >/dev
/null
2>/dev
/null
36181 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
36182 dd of
=$ZFS_DEV bs
=1k count
=8 \
36183 seek
=140 conv
=notrunc
&>/dev
/null \
36184 >/dev
/null
2>/dev
/null
36189 if test "$cross_compiling" = yes; then :
36190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36192 as_fn_error $?
"cannot run test program while cross compiling
36193 See \`config.log' for more details" "$LINENO" 5; }
36195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
36196 /* end confdefs.h. */
36199 #include <stdlib.h>
36200 #include <blkid/blkid.h>
36209 if (blkid_get_cache(&cache, NULL) < 0)
36212 value = blkid_get_tag_value(cache, "TYPE",
36215 blkid_put_cache(cache);
36219 if (strcmp(value, "zfs_member")) {
36221 blkid_put_cache(cache);
36226 blkid_put_cache(cache);
36232 if ac_fn_c_try_run
"$LINENO"; then :
36235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36236 $as_echo "yes" >&6; }
36240 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36247 $as_echo "no" >&6; }
36248 if test "x$with_blkid" != xcheck
; then :
36249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36251 as_fn_error $?
"--with-blkid given but unavailable
36252 See \`config.log' for more details" "$LINENO" 5; }
36256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
36257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
36265 if test "x$with_blkid" != xcheck
; then :
36266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36268 as_fn_error $?
"--with-blkid given but unavailable
36269 See \`config.log' for more details" "$LINENO" 5; }
36279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
36280 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
36282 saved_flags
="$CFLAGS"
36283 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
36285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
36286 /* end confdefs.h. */
36296 if ac_fn_c_try_compile
"$LINENO"; then :
36298 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
36299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36300 $as_echo "yes" >&6; }
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36306 $as_echo "no" >&6; }
36309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36311 CFLAGS
="$saved_flags"
36315 if test "x$runstatedir" = x
; then
36316 runstatedir
='${localstatedir}/run'
36320 for ac_func
in mlockall
36322 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
36323 if test "x$ac_cv_func_mlockall" = xyes
; then :
36324 cat >>confdefs.h
<<_ACEOF
36325 #define HAVE_MLOCKALL 1
36334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
36335 $as_echo "Error!" >&6; }
36336 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
36337 user kernel|user|all|srpm" "$LINENO" 5 ;;
36340 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
36342 CONFIG_USER_FALSE
='#'
36344 CONFIG_USER_TRUE
='#'
36348 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
36349 test "x$enable_linux_builtin" != xyes
; then
36350 CONFIG_KERNEL_TRUE
=
36351 CONFIG_KERNEL_FALSE
='#'
36353 CONFIG_KERNEL_TRUE
='#'
36354 CONFIG_KERNEL_FALSE
=
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
36360 $as_echo_n "checking whether debugging is enabled... " >&6; }
36361 # Check whether --enable-debug was given.
36362 if test "${enable_debug+set}" = set; then :
36363 enableval
=$enable_debug;
36369 if test "x$enable_debug" = xyes
; then :
36371 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
36372 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
36373 DEBUG_CFLAGS
="-DDEBUG -Werror"
36374 DEBUG_STACKFLAGS
="-fstack-check"
36375 DEBUG_ZFS
="_with_debug"
36377 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
36382 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
36383 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
36384 DEBUG_CFLAGS
="-DNDEBUG"
36385 DEBUG_STACKFLAGS
=""
36386 DEBUG_ZFS
="_without_debug"
36393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
36394 $as_echo "$enable_debug" >&6; }
36397 # Check whether --enable-debug-dmu-tx was given.
36398 if test "${enable_debug_dmu_tx+set}" = set; then :
36399 enableval
=$enable_debug_dmu_tx;
36401 enable_debug_dmu_tx
=no
36405 if test "x$enable_debug_dmu_tx" = xyes
; then :
36407 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
36408 DEBUG_DMU_TX
="_with_debug_dmu_tx"
36410 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
36415 DEBUG_DMU_TX
="_without_debug_dmu_tx"
36420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
36421 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
36422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
36423 $as_echo "$enable_debug_dmu_tx" >&6; }
36426 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"
36429 cat >confcache
<<\_ACEOF
36430 # This file is a shell script that caches the results of configure
36431 # tests run on this system so they can be shared between configure
36432 # scripts and configure runs, see configure's option --config-cache.
36433 # It is not useful on other systems. If it contains results you don't
36434 # want to keep, you may remove or edit it.
36436 # config.status only pays attention to the cache file if you give it
36437 # the --recheck option to rerun configure.
36439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36441 # following values.
36445 # The following way of writing the cache mishandles newlines in values,
36446 # but we know of no workaround that is simple, portable, and efficient.
36447 # So, we kill variables containing newlines.
36448 # Ultrix sh set writes to stderr and can't be redirected directly,
36449 # and sets the high bit in the cache file unless we assign to the vars.
36451 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36452 eval ac_val
=\$
$ac_var
36456 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36460 _ | IFS | as_nl
) ;; #(
36461 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
36462 *) { eval $ac_var=; unset $ac_var;} ;;
36468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36469 *${as_nl}ac_space
=\
*)
36470 # `set' does not quote correctly, so add quotes: double-quote
36471 # substitution turns \\\\ into \\, and sed turns \\ into \.
36474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36477 # `set' quotes correctly as required by POSIX, so do not add quotes.
36478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36491 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
36492 if test -w "$cache_file"; then
36493 if test "x$cache_file" != "x/dev/null"; then
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36495 $as_echo "$as_me: updating cache $cache_file" >&6;}
36496 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
36497 cat confcache
>"$cache_file"
36499 case $cache_file in #(
36501 mv -f confcache
"$cache_file"$$
&&
36502 mv -f "$cache_file"$$
"$cache_file" ;; #(
36504 mv -f confcache
"$cache_file" ;;
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36515 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
36516 # Let make expand exec_prefix.
36517 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
36519 DEFS
=-DHAVE_CONFIG_H
36524 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
36525 # 1. Remove the extension, and $U if already installed.
36526 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
36527 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
36528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36529 # will be set to the directory where LIBOBJS objects are built.
36530 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36531 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
36533 LIBOBJS
=$ac_libobjs
36535 LTLIBOBJS
=$ac_ltlibobjs
36538 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36539 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
36540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36543 $as_echo_n "checking that generated files are newer than configure... " >&6; }
36544 if test -n "$am_sleep_pid"; then
36545 # Hide warnings about reused PIDs.
36546 wait $am_sleep_pid 2>/dev
/null
36548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36549 $as_echo "done" >&6; }
36550 if test -n "$EXEEXT"; then
36552 am__EXEEXT_FALSE
='#'
36554 am__EXEEXT_TRUE
='#'
36558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36559 as_fn_error $?
"conditional \"AMDEP\" was never defined.
36560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36563 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
36564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36566 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
36567 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
36568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36570 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
36571 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
36572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36574 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
36575 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
36576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36579 : "${CONFIG_STATUS=./config.status}"
36581 ac_clean_files_save
=$ac_clean_files
36582 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
36583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36588 # Generated by $as_me.
36589 # Run this file to recreate the current configuration.
36590 # Compiler output produced by configure, useful for debugging
36591 # configure, is in config.log if it exists.
36594 ac_cs_recheck=false
36597 SHELL=\${CONFIG_SHELL-$SHELL}
36600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
36601 ## -------------------- ##
36602 ## M4sh Initialization. ##
36603 ## -------------------- ##
36605 # Be more Bourne compatible
36606 DUALCASE
=1; export DUALCASE
# for MKS sh
36607 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
36610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36611 # is contrary to our usage. Disable this feature.
36612 alias -g '${1+"$@"}'='"$@"'
36613 setopt NO_GLOB_SUBST
36615 case `(set -o) 2>/dev/null` in #(
36627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
36628 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36631 # Prefer a ksh shell builtin over an external printf program on Solaris,
36632 # but without wasting forks for bash or zsh.
36633 if test -z "$BASH_VERSION$ZSH_VERSION" \
36634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36635 as_echo='print
-r --'
36636 as_echo_n='print
-rn --'
36637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36638 as_echo='printf %s
\n'
36639 as_echo_n='printf %s
'
36641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36642 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
36643 as_echo_n='/usr
/ucb
/echo -n'
36645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36646 as_echo_n_body='eval
36650 expr "X$arg" : "X\\(.*\\)$as_nl";
36651 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36653 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
36655 export as_echo_n_body
36656 as_echo_n='sh
-c $as_echo_n_body as_echo
'
36658 export as_echo_body
36659 as_echo='sh
-c $as_echo_body as_echo
'
36662 # The user is always right.
36663 if test "${PATH_SEPARATOR+set}" != set; then
36665 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36666 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36673 # We need space, tab and new line, in precisely that order. Quoting is
36674 # there to prevent editors from complaining about space-tab.
36675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
36676 # splitting by setting IFS to empty value.)
36679 # Find who we are. Look in the path if we contain no directory separator.
36682 *[\\/]* ) as_myself=$0 ;;
36683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36684 for as_dir in $PATH
36687 test -z "$as_dir" && as_dir=.
36688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36694 # We did not find ourselves, most probably we were run as `sh COMMAND'
36695 # in which case we are not to be found in the path.
36696 if test "x$as_myself" = x
; then
36699 if test ! -f "$as_myself"; then
36700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36704 # Unset variables that we do not need and which cause bugs (e.g. in
36705 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36706 # suppresses any "Segmentation fault" message there. '((' could
36707 # trigger a bug in pdksh 5.2.14.
36708 for as_var
in BASH_ENV ENV MAIL MAILPATH
36709 do eval test x\
${$as_var+set} = xset \
36710 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
36723 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
36726 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36727 # ----------------------------------------
36728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36730 # script with STATUS, using 1 if that was 0.
36733 as_status
=$1; test $as_status -eq 0 && as_status
=1
36735 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
36736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36738 $as_echo "$as_me: error: $2" >&2
36739 as_fn_exit
$as_status
36743 # as_fn_set_status STATUS
36744 # -----------------------
36745 # Set $? to STATUS, without forking.
36746 as_fn_set_status
()
36749 } # as_fn_set_status
36751 # as_fn_exit STATUS
36752 # -----------------
36753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36757 as_fn_set_status
$1
36763 # Portably unset VAR.
36766 { eval $1=; unset $1;}
36768 as_unset
=as_fn_unset
36769 # as_fn_append VAR VALUE
36770 # ----------------------
36771 # Append the text in VALUE to the end of the definition contained in VAR. Take
36772 # advantage of any shell optimizations that allow amortized linear growth over
36773 # repeated appends, instead of the typical quadratic growth present in naive
36775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
36776 eval 'as_fn_append ()
36787 # as_fn_arith ARG...
36788 # ------------------
36789 # Perform arithmetic evaluation on the ARGs, and store the result in the
36790 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36791 # must be portable across $(()) and expr.
36792 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
36793 eval 'as_fn_arith ()
36800 as_val
=`expr "$@" || test $? -eq 1`
36805 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
36806 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
36812 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36813 as_basename
=basename
36818 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
36824 as_me
=`$as_basename -- "$0" ||
36825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36826 X"$0" : 'X\(//\)$' \| \
36827 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36829 sed '/^.*\/\([^/][^/]*\)\/*$/{
36843 # Avoid depending upon Character Ranges.
36844 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36845 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36846 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
36847 as_cr_digits
='0123456789'
36848 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36850 ECHO_C
= ECHO_N
= ECHO_T
=
36851 case `echo -n x` in #(((((
36853 case `echo 'xy\c'` in
36854 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
36856 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
36863 rm -f conf$$ conf$$.exe conf$$.
file
36864 if test -d conf$$.dir
; then
36865 rm -f conf$$.dir
/conf$$.
file
36868 mkdir conf$$.dir
2>/dev
/null
36870 if (echo >conf$$.
file) 2>/dev
/null
; then
36871 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
36873 # ... but there are two gotchas:
36874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36876 # In both cases, we have to default to `cp -pR'.
36877 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
36879 elif ln conf$$.
file conf$$
2>/dev
/null
; then
36887 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
36888 rmdir conf$$.dir
2>/dev
/null
36893 # Create "$as_dir" as a directory, including parents if necessary.
36898 -*) as_dir
=.
/$as_dir;;
36900 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
36904 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36905 *) as_qdir
=$as_dir;;
36907 as_dirs
="'$as_qdir' $as_dirs"
36908 as_dir
=`$as_dirname -- "$as_dir" ||
36909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36910 X"$as_dir" : 'X\(//\)[^/]' \| \
36911 X"$as_dir" : 'X\(//\)$' \| \
36912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36913 $as_echo X"$as_dir" |
36914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36918 /^X\(\/\/\)[^/].*/{
36931 test -d "$as_dir" && break
36933 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36934 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
36938 if mkdir
-p .
2>/dev
/null
; then
36939 as_mkdir_p
='mkdir -p "$as_dir"'
36941 test -d .
/-p && rmdir .
/-p
36946 # as_fn_executable_p FILE
36947 # -----------------------
36948 # Test if FILE is an executable regular file.
36949 as_fn_executable_p
()
36951 test -f "$1" && test -x "$1"
36952 } # as_fn_executable_p
36953 as_test_x
='test -x'
36954 as_executable_p
=as_fn_executable_p
36956 # Sed expression to map a string onto a valid CPP name.
36957 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36959 # Sed expression to map a string onto a valid variable name.
36960 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36964 ## ----------------------------------- ##
36965 ## Main body of $CONFIG_STATUS script. ##
36966 ## ----------------------------------- ##
36968 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
36970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36971 # Save the log message, to keep $0 and so on meaningful, and to
36972 # report actual input values of CONFIG_FILES etc. instead of their
36973 # values after options handling.
36975 This file was extended by zfs $as_me 0.6.5.9, which was
36976 generated by GNU Autoconf 2.69. Invocation command line was
36978 CONFIG_FILES = $CONFIG_FILES
36979 CONFIG_HEADERS = $CONFIG_HEADERS
36980 CONFIG_LINKS = $CONFIG_LINKS
36981 CONFIG_COMMANDS = $CONFIG_COMMANDS
36984 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36989 case $ac_config_files in *"
36990 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
36993 case $ac_config_headers in *"
36994 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
36998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36999 # Files that config.status was made for.
37000 config_files="$ac_config_files"
37001 config_headers="$ac_config_headers"
37002 config_commands="$ac_config_commands"
37006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37008 \`$as_me' instantiates files and other configuration actions
37009 from templates according to the current configuration. Unless the files
37010 and actions are specified as TAGs, all are instantiated by default.
37012 Usage: $0 [OPTION]... [TAG]...
37014 -h, --help print this help, then exit
37015 -V, --version print version number and configuration settings, then exit
37016 --config print configuration, then exit
37017 -q, --quiet, --silent
37018 do not print progress messages
37019 -d, --debug don't remove temporary files
37020 --recheck update $as_me by reconfiguring in the same conditions
37021 --file=FILE[:TEMPLATE]
37022 instantiate the configuration file FILE
37023 --header=FILE[:TEMPLATE]
37024 instantiate the configuration header FILE
37026 Configuration files:
37029 Configuration headers:
37032 Configuration commands:
37035 Report bugs to the package provider."
37038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37039 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37041 zfs config.status 0.6.5.9
37042 configured by $0, generated by GNU Autoconf 2.69,
37043 with options \\"\$ac_cs_config\\"
37045 Copyright (C) 2012 Free Software Foundation, Inc.
37046 This config.status script is free software; the Free Software Foundation
37047 gives unlimited permission to copy, distribute and modify it."
37054 test -n "\$AWK" || AWK=awk
37057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37058 # The default lists apply if the user does not specify any file.
37064 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
37065 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
37069 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
37081 # Handling of the options.
37082 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
37084 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
37085 $as_echo "$ac_cs_version"; exit ;;
37086 --config |
--confi |
--conf |
--con |
--co |
--c )
37087 $as_echo "$ac_cs_config"; exit ;;
37088 --debug |
--debu |
--deb |
--de |
--d |
-d )
37090 --file |
--fil |
--fi |
--f )
37093 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37094 '') as_fn_error $?
"missing file argument" ;;
37096 as_fn_append CONFIG_FILES
" '$ac_optarg'"
37097 ac_need_defaults
=false
;;
37098 --header |
--heade |
--head |
--hea )
37101 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37103 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
37104 ac_need_defaults
=false
;;
37106 # Conflict between --help and --header
37107 as_fn_error $?
"ambiguous option: \`$1'
37108 Try \`$0 --help' for more information.";;
37109 --help |
--hel |
-h )
37110 $as_echo "$ac_cs_usage"; exit ;;
37111 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
37112 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
37115 # This is an error.
37116 -*) as_fn_error $?
"unrecognized option: \`$1'
37117 Try \`$0 --help' for more information." ;;
37119 *) as_fn_append ac_config_targets
" $1"
37120 ac_need_defaults
=false
;;
37126 ac_configure_extra_args
=
37128 if $ac_cs_silent; then
37130 ac_configure_extra_args
="$ac_configure_extra_args --silent"
37134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37135 if \$ac_cs_recheck; then
37136 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37138 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37139 CONFIG_SHELL='$SHELL'
37140 export CONFIG_SHELL
37145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37150 ## Running $as_me. ##
37156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37160 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37163 # The HP-UX ksh and POSIX shell print the target directory to stdout
37164 # if CDPATH is set.
37165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37167 sed_quote_subst='$sed_quote_subst'
37168 double_quote_subst='$double_quote_subst'
37169 delay_variable_subst='$delay_variable_subst'
37170 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37171 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37172 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37173 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37174 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37175 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37176 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37177 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37178 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37179 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37180 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37181 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37182 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37183 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37184 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37185 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37186 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37187 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37188 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37189 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37190 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37191 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37192 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37193 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37194 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37195 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37196 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37197 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37198 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37199 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37200 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37201 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37202 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37203 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37204 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37205 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37206 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37207 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37208 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37209 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37210 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37211 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37212 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37213 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37214 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37215 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37216 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37217 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37218 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37219 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37220 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37221 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37222 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37223 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37224 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37225 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37226 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37227 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37228 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"`'
37229 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37230 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37231 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37232 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37233 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37234 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37235 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37236 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37237 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37238 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37239 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37240 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37241 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37242 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37243 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37244 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37245 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37246 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37247 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37248 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37249 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37250 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37251 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37252 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37253 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37254 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37255 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37256 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37257 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37258 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37259 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37260 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37261 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37262 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37263 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37264 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37265 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37266 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37267 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37268 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37269 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37270 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37271 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37272 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37273 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37274 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37275 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37276 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37277 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37278 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37279 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37280 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37281 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37282 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37283 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37284 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37285 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37286 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37287 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37288 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37289 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37290 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37291 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37292 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37293 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37294 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37295 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37296 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37297 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37298 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37307 LTCFLAGS='$LTCFLAGS'
37308 compiler='$compiler_DEFAULT'
37310 # A function that is used when there is no print builtin or printf.
37311 func_fallback_echo ()
37313 eval 'cat <<_LTECHO_EOF
37318 # Quote evaled strings.
37333 deplibs_check_method \
37338 sharedlib_from_linklib_cmd \
37341 archiver_list_spec \
37347 lt_cv_sys_global_symbol_pipe \
37348 lt_cv_sys_global_symbol_to_cdecl \
37349 lt_cv_sys_global_symbol_to_import \
37350 lt_cv_sys_global_symbol_to_c_name_address \
37351 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37352 lt_cv_nm_interface \
37353 nm_file_list_spec \
37354 lt_cv_truncate_bin \
37355 lt_prog_compiler_no_builtin_flag \
37356 lt_prog_compiler_pic \
37357 lt_prog_compiler_wl \
37358 lt_prog_compiler_static \
37359 lt_cv_prog_compiler_c_o \
37368 export_dynamic_flag_spec \
37369 whole_archive_flag_spec \
37370 compiler_needs_object \
37372 allow_undefined_flag \
37373 no_undefined_flag \
37374 hardcode_libdir_flag_spec \
37375 hardcode_libdir_separator \
37379 variables_saved_for_relink \
37381 library_names_spec \
37383 install_override_mode \
37387 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37388 *[\\\\\\\`\\"\\\$]*)
37389 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37392 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37397 # Double-quote double-evaled strings.
37398 for var in reload_cmds \
37399 old_postinstall_cmds \
37400 old_postuninstall_cmds \
37402 extract_expsyms_cmds \
37403 old_archive_from_new_cmds \
37404 old_archive_from_expsyms_cmds \
37406 archive_expsym_cmds \
37408 module_expsym_cmds \
37409 export_symbols_cmds \
37413 postuninstall_cmds \
37415 sys_lib_search_path_spec \
37416 configure_time_dlsearch_path \
37417 configure_time_lt_sys_library_path; do
37418 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37419 *[\\\\\\\`\\"\\\$]*)
37420 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37423 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37428 ac_aux_dir='$ac_aux_dir'
37430 # See if we are running on zsh, and set the options that allow our
37431 # commands through without removal of \ escapes INIT.
37432 if test -n "\${ZSH_VERSION+set}"; then
37433 setopt NO_GLOB_SUBST
37447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37449 # Handling of arguments.
37450 for ac_config_target
in $ac_config_targets
37452 case $ac_config_target in
37453 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
37454 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
37455 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
37456 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
37457 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
37458 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
37459 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
37460 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
37461 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
37462 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
37463 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
37464 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
37465 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
37466 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
37467 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
37468 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
37469 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
37470 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
37472 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37477 # If the user did not use the arguments to specify the items to instantiate,
37478 # then the envvar interface is used. Set only those that are not.
37479 # We use the long form for the default assignment because of an extremely
37480 # bizarre bug on SunOS 4.1.3.
37481 if $ac_need_defaults; then
37482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
37483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
37484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
37487 # Have a temporary directory for convenience. Make it in the build tree
37488 # simply because there is no reason against having it here, and in addition,
37489 # creating and moving files from /tmp can sometimes cause problems.
37490 # Hook for its removal unless debugging.
37491 # Note that there is a small window in which the directory will not be cleaned:
37492 # after its creation but before its name has been assigned to `$tmp'.
37496 trap 'exit_status=$?
37497 : "${ac_tmp:=$tmp}"
37498 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37500 trap 'as_fn_exit 1' 1 2 13 15
37502 # Create a (secure) tmp directory for tmp files.
37505 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37509 tmp
=.
/conf$$
-$RANDOM
37510 (umask 077 && mkdir
"$tmp")
37511 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
37514 # Set up the scripts for CONFIG_FILES section.
37515 # No need to generate them if there are no CONFIG_FILES.
37516 # This happens for instance with `./config.status config.h'.
37517 if test -n "$CONFIG_FILES"; then
37520 ac_cr
=`echo X | tr X '\015'`
37521 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37522 # But we know of no other shell where ac_cr would be empty at this
37523 # point, so we can use a bashism as a fallback.
37524 if test "x$ac_cr" = x
; then
37525 eval ac_cr
=\$
\'\\r
\'
37527 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37531 ac_cs_awk_cr
=$ac_cr
37534 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37539 echo "cat >conf$$subs.awk <<_ACEOF" &&
37540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37542 } >conf$$subs.sh ||
37543 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37544 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37546 for ac_last_try in false false false false false :; do
37547 . ./conf$$subs.sh ||
37548 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37550 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
37551 if test $ac_delim_n = $ac_delim_num; then
37553 elif $ac_last_try; then
37554 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37556 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
37559 rm -f conf$$subs.sh
37561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37562 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
37566 s/^/S["/; s
/!.
*/"]=/
37576 s/\(.\{148\}\)..*/\1/
37578 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
37583 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
37590 s/\(.\{148\}\)..*/\1/
37592 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
37596 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
37601 ' <conf$$subs.awk | sed '
37606 ' >>$CONFIG_STATUS || ac_write_fail=1
37607 rm -f conf$$subs.awk
37608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37610 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
37611 for (key in S) S_is_set[key] = 1
37617 nfields = split(line, field, "@
")
37619 len = length(field[1])
37620 for (i = 2; i < nfields; i++) {
37622 keylen = length(key)
37623 if (S_is_set[key]) {
37625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37626 len += length(value) + length(field[++i])
37637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37638 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37639 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
37642 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
37643 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
37646 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37647 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
37648 # trailing colons and then remove the whole line if VPATH becomes empty
37649 # (actually we leave an empty line to preserve line numbers).
37650 if test "x
$srcdir" = x.; then
37651 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37670 fi # test -n "$CONFIG_FILES"
37672 # Set up the scripts for CONFIG_HEADERS section.
37673 # No need to generate them if there are no CONFIG_HEADERS.
37674 # This happens for instance with `./config.status Makefile'.
37675 if test -n "$CONFIG_HEADERS"; then
37676 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
37680 # Transform confdefs.h into an awk script `defines.awk', embedded as
37681 # here-document in config.status, that substitutes the proper values into
37682 # config.h.in to produce config.h.
37684 # Create a delimiter string that does not exist in confdefs.h, to ease
37685 # handling of long lines.
37687 for ac_last_try in false false :; do
37688 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
37689 if test -z "$ac_tt"; then
37691 elif $ac_last_try; then
37692 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
37694 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
37698 # For the awk script, D is an array of macro values keyed by name,
37699 # likewise P contains macro parameters if any. Preserve backslash
37700 # newline sequences.
37702 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37704 s/.\{148\}/&'"$ac_delim"'/g
37707 s/^[ ]*#[ ]*define[ ][ ]*/ /
37714 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
37716 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
37720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
37721 D["\
1"]=" \
3\\\\\\n
"\\/p
37723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
37728 s/.\{148\}/&'"$ac_delim"'/g
37733 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
37736 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
37738 ' <confdefs.h | sed '
37739 s/'"$ac_delim"'/"\\\
37740 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37743 for (key in D) D_is_set[key] = 1
37746 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37748 split(line, arg, " ")
37749 if (arg[1] == "#") {
37753 defundef
= substr
(arg
[1], 2)
37756 split(mac1
, mac2
, "(") #)
37758 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
37759 if (D_is_set
[macro
]) {
37760 # Preserve the white space surrounding the "#".
37761 print prefix
"define", macro P
[macro
] D
[macro
]
37764 # Replace #undef with comments. This is necessary, for example,
37765 # in the case of _POSIX_SOURCE, which is predefined and required
37766 # on some systems where configure will not decide to define it.
37767 if (defundef
== "undef") {
37768 print
"/*", prefix defundef
, macro
, "*/"
37776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37777 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
37778 fi # test -n "$CONFIG_HEADERS"
37781 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37786 :[FHLC
]) ac_mode
=$ac_tag; continue;;
37788 case $ac_mode$ac_tag in
37790 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
37791 :[FH
]-) ac_tag
=-:-;;
37792 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
37809 -) ac_f
="$ac_tmp/stdin";;
37810 *) # Look for the file first in the build tree, then in the source tree
37811 # (if the path is not absolute). The absolute path cannot be DOS-style,
37812 # because $ac_f cannot contain `:'.
37816 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
37818 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37820 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37821 as_fn_append ac_file_inputs
" '$ac_f'"
37824 # Let's still pretend it is `configure' which instantiates (i.e., don't
37825 # use $as_me), people would be surprised to read:
37826 # /* config.h. Generated by config.status. */
37827 configure_input
='Generated from '`
37828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37830 if test x
"$ac_file" != x-
; then
37831 configure_input
="$ac_file. $configure_input"
37832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37833 $as_echo "$as_me: creating $ac_file" >&6;}
37835 # Neutralize special characters interpreted by sed in replacement strings.
37836 case $configure_input in #(
37837 *\
&* |
*\|
* |
*\\* )
37838 ac_sed_conf_input
=`$as_echo "$configure_input" |
37839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37840 *) ac_sed_conf_input
=$configure_input;;
37844 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
37845 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
37850 ac_dir
=`$as_dirname -- "$ac_file" ||
37851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37852 X"$ac_file" : 'X\(//\)[^/]' \| \
37853 X"$ac_file" : 'X\(//\)$' \| \
37854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37855 $as_echo X"$ac_file" |
37856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37860 /^X\(\/\/\)[^/].*/{
37873 as_dir
="$ac_dir"; as_fn_mkdir_p
37877 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
37879 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37880 # A ".." for each directory in $ac_dir_suffix.
37881 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37882 case $ac_top_builddir_sub in
37883 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
37884 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
37887 ac_abs_top_builddir
=$ac_pwd
37888 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
37889 # for backward compatibility:
37890 ac_top_builddir
=$ac_top_build_prefix
37893 .
) # We are building in place.
37895 ac_top_srcdir
=$ac_top_builddir_sub
37896 ac_abs_top_srcdir
=$ac_pwd ;;
37897 [\\/]* | ?
:[\\/]* ) # Absolute name.
37898 ac_srcdir
=$srcdir$ac_dir_suffix;
37899 ac_top_srcdir
=$srcdir
37900 ac_abs_top_srcdir
=$srcdir ;;
37901 *) # Relative name.
37902 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
37903 ac_top_srcdir
=$ac_top_build_prefix$srcdir
37904 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
37906 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
37916 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
37917 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
37919 ac_MKDIR_P
=$MKDIR_P
37921 [\\/$
]* | ?
:[\\/]* ) ;;
37922 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
37926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37927 # If the template does not know about datarootdir, expand it.
37928 # FIXME: This hack should be removed a few years after 2.60.
37929 ac_datarootdir_hack
=; ac_datarootdir_seen
=
37940 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37941 *datarootdir
*) ac_datarootdir_seen
=yes;;
37942 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
37943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37944 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37947 ac_datarootdir_hack='
37948 s&@datadir@&$datadir&g
37949 s&@docdir@&$docdir&g
37950 s&@infodir@&$infodir&g
37951 s&@localedir@&$localedir&g
37952 s&@mandir@&$mandir&g
37953 s&\\\${datarootdir}&$datarootdir&g' ;;
37957 # Neutralize VPATH when `$srcdir' = `.'.
37958 # Shell code in configure.ac might set extrasub.
37959 # FIXME: do we really want to maintain this feature?
37960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37961 ac_sed_extra="$ac_vpsub
37964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37966 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
37967 s|@configure_input@|
$ac_sed_conf_input|
;t t
37968 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
37969 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
37970 s
&@srcdir@
&$ac_srcdir&;t t
37971 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
37972 s
&@top_srcdir@
&$ac_top_srcdir&;t t
37973 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
37974 s
&@builddir@
&$ac_builddir&;t t
37975 s
&@abs_builddir@
&$ac_abs_builddir&;t t
37976 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
37977 s
&@INSTALL@
&$ac_INSTALL&;t t
37978 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
37979 $ac_datarootdir_hack
37981 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
37982 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
37984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37985 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
37986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37987 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
37989 which seems to be undefined. Please make sure it is defined" >&5
37990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
37991 which seems to be undefined. Please make sure it is defined" >&2;}
37993 rm -f "$ac_tmp/stdin"
37995 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37996 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38004 if test x"$ac_file" != x-; then
38006 $as_echo "/* $configure_input */" \
38007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38008 } >"$ac_tmp/config.h" \
38009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38010 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
38015 mv "$ac_tmp/config.h" "$ac_file" \
38016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38019 $as_echo "/* $configure_input */" \
38020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38021 || as_fn_error $? "could not create -" "$LINENO" 5
38023 # Compute "$ac_file"'s index
in $config_headers.
38026 for _am_header
in $config_headers :; do
38027 case $_am_header in
38028 $_am_arg |
$_am_arg:* )
38031 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
38034 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38035 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38036 X"$_am_arg" : 'X\(//\)[^/]' \| \
38037 X"$_am_arg" : 'X\(//\)$' \| \
38038 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38039 $as_echo X"$_am_arg" |
38040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38044 /^X\(\/\/\)[^/].*/{
38056 s/.*/./; q'`/stamp-h
$_am_stamp_count
38059 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38060 $as_echo "$as_me: executing $ac_file commands" >&6;}
38065 case $ac_file$ac_mode in
38067 (mv zfs_config.h zfs_config.h.tmp
&&
38068 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
38069 rm zfs_config.h.tmp
) ||
exit 1 ;;
38070 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
38071 # Older Autoconf quotes --file arguments for eval, but not when files
38072 # are listed without --file. Let's play safe and only enable the eval
38073 # if we detect the quoting.
38074 case $CONFIG_FILES in
38075 *\'*) eval set x
"$CONFIG_FILES" ;;
38076 *) set x
$CONFIG_FILES ;;
38081 # Strip MF so we end up with the name of the file.
38082 mf
=`echo "$mf" | sed -e 's/:.*$//'`
38083 # Check whether this is an Automake generated Makefile or not.
38084 # We used to match only the files named 'Makefile.in', but
38085 # some people rename them; so instead we look at the file content.
38086 # Grep'ing the first line is not enough: some people post-process
38087 # each Makefile.in and add a new line on top of each file to say so.
38088 # Grep'ing the whole file is not good either: AIX grep has a line
38089 # limit of 2048, but all sed's we know have understand at least 4000.
38090 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
38091 dirpart
=`$as_dirname -- "$mf" ||
38092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38093 X"$mf" : 'X\(//\)[^/]' \| \
38094 X"$mf" : 'X\(//\)$' \| \
38095 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38101 /^X\(\/\/\)[^/].*/{
38117 # Extract the definition of DEPDIR, am__include, and am__quote
38118 # from the Makefile without running 'make'.
38119 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
38120 test -z "$DEPDIR" && continue
38121 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
38122 test -z "$am__include" && continue
38123 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
38124 # Find all dependency output files, they are included files with
38125 # $(DEPDIR) in their names. We invoke sed twice because it is the
38126 # simplest approach to changing $(DEPDIR) to its actual value in the
38128 for file in `sed -n "
38129 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38130 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
38131 # Make sure the directory exists.
38132 test -f "$dirpart/$file" && continue
38133 fdir
=`$as_dirname -- "$file" ||
38134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38135 X"$file" : 'X\(//\)[^/]' \| \
38136 X"$file" : 'X\(//\)$' \| \
38137 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38138 $as_echo X"$file" |
38139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38143 /^X\(\/\/\)[^/].*/{
38156 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
38157 # echo "creating $dirpart/$file"
38158 echo '# dummy' > "$dirpart/$file"
38165 # See if we are running on zsh, and set the options that allow our
38166 # commands through without removal of \ escapes.
38167 if test -n "${ZSH_VERSION+set}"; then
38168 setopt NO_GLOB_SUBST
38172 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38175 cat <<_LT_EOF >> "$cfgfile"
38177 # Generated automatically by $as_me ($PACKAGE) $VERSION
38178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38180 # Provide generalized library-building support services.
38181 # Written by Gordon Matzigkeit, 1996
38183 # Copyright (C) 2014 Free Software Foundation, Inc.
38184 # This is free software; see the source for copying conditions. There is NO
38185 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38187 # GNU Libtool is free software; you can redistribute it and/or modify
38188 # it under the terms of the GNU General Public License as published by
38189 # the Free Software Foundation; either version 2 of of the License, or
38190 # (at your option) any later version.
38192 # As a special exception to the GNU General Public License, if you
38193 # distribute this file as part of a program or library that is built
38194 # using GNU Libtool, you may include this file under the same
38195 # distribution terms that you use for the rest of that program.
38197 # GNU Libtool is distributed in the hope that it will be useful, but
38198 # WITHOUT ANY WARRANTY; without even the implied warranty of
38199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38200 # GNU General Public License for more details.
38202 # You should have received a copy of the GNU General Public License
38203 # along with this program. If not, see <http://www.gnu.org/licenses/>.
38206 # The names of the tagged configurations supported by this script.
38209 # Configured defaults for sys_lib_dlsearch_path munging.
38210 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38212 # ### BEGIN LIBTOOL CONFIG
38214 # Which release of libtool.m4 was used?
38215 macro_version=$macro_version
38216 macro_revision=$macro_revision
38218 # Whether or not to build shared libraries.
38219 build_libtool_libs=$enable_shared
38221 # Whether or not to build static libraries.
38222 build_old_libs=$enable_static
38224 # What type of objects to build.
38227 # Whether or not to optimize for fast installation.
38228 fast_install=$enable_fast_install
38230 # Shared archive member basename,for filename based shared library versioning on AIX.
38231 shared_archive_member_spec=$shared_archive_member_spec
38233 # Shell to use when invoking shell scripts.
38236 # An echo program that protects backslashes.
38239 # The PATH separator for the build system.
38240 PATH_SEPARATOR=$lt_PATH_SEPARATOR
38243 host_alias=$host_alias
38247 # The build system.
38248 build_alias=$build_alias
38252 # A sed program that does not truncate output.
38255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38256 Xsed="\$SED -e 1s/^X//"
38258 # A grep program that handles long lines.
38264 # A literal string matcher.
38267 # A BSD- or MS-compatible name lister.
38270 # Whether we need soft or hard links.
38273 # What is the maximum length of a command?
38274 max_cmd_len=$max_cmd_len
38276 # Object file suffix (normally "o").
38279 # Executable file suffix (normally "").
38282 # whether the shell understands "unset".
38285 # turn spaces into newlines.
38288 # turn newlines into spaces.
38291 # convert \$build file names to \$host format.
38292 to_host_file_cmd=$lt_cv_to_host_file_cmd
38294 # convert \$build files to toolchain format.
38295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38297 # An object symbol dumper.
38298 OBJDUMP=$lt_OBJDUMP
38300 # Method to check whether dependent libraries are shared objects.
38301 deplibs_check_method=$lt_deplibs_check_method
38303 # Command to use when deplibs_check_method = "file_magic".
38304 file_magic_cmd=$lt_file_magic_cmd
38306 # How to find potential files when deplibs_check_method = "file_magic".
38307 file_magic_glob=$lt_file_magic_glob
38309 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38310 want_nocaseglob=$lt_want_nocaseglob
38312 # DLL creation program.
38313 DLLTOOL=$lt_DLLTOOL
38315 # Command to associate shared and link libraries.
38316 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38321 # Flags to create an archive.
38322 AR_FLAGS=$lt_AR_FLAGS
38324 # How to feed a file listing to the archiver.
38325 archiver_list_spec=$lt_archiver_list_spec
38327 # A symbol stripping program.
38330 # Commands used to install an old-style archive.
38332 old_postinstall_cmds=$lt_old_postinstall_cmds
38333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38335 # Whether to use a lock for old archive extraction.
38336 lock_old_archive_extraction=$lock_old_archive_extraction
38341 # LTCC compiler flags.
38342 LTCFLAGS=$lt_CFLAGS
38344 # Take the output of nm and produce a listing of raw symbols and C names.
38345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38347 # Transform the output of nm in a proper C declaration.
38348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38350 # Transform the output of nm into a list of symbols to manually relocate.
38351 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38353 # Transform the output of nm in a C name address pair.
38354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38356 # Transform the output of nm in a C name address pair when lib prefix is needed.
38357 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38359 # The name lister interface.
38360 nm_interface=$lt_lt_cv_nm_interface
38362 # Specify filename containing input files for \$NM.
38363 nm_file_list_spec=$lt_nm_file_list_spec
38365 # The root where to search for dependent libraries,and where our libraries should be installed.
38366 lt_sysroot=$lt_sysroot
38368 # Command to truncate a binary pipe.
38369 lt_truncate_bin=$lt_lt_cv_truncate_bin
38371 # The name of the directory that contains temporary libtool files.
38374 # Used to examine libraries when file_magic_cmd begins with "file".
38375 MAGIC_CMD=$MAGIC_CMD
38377 # Must we lock files when doing compilation?
38378 need_locks=$lt_need_locks
38381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38384 DSYMUTIL=$lt_DSYMUTIL
38386 # Tool to change global to local symbols on Mac OS X.
38389 # Tool to manipulate fat objects and archives on Mac OS X.
38392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38396 OTOOL64=$lt_OTOOL64
38398 # Old archive suffix (normally "a").
38401 # Shared library suffix (normally ".so").
38402 shrext_cmds=$lt_shrext_cmds
38404 # The commands to extract the exported symbol list from a shared archive.
38405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38407 # Variables whose values should be saved in libtool wrapper scripts and
38408 # restored at link time.
38409 variables_saved_for_relink=$lt_variables_saved_for_relink
38411 # Do we need the "lib" prefix for modules?
38412 need_lib_prefix=$need_lib_prefix
38414 # Do we need a version for libraries?
38415 need_version=$need_version
38417 # Library versioning type.
38418 version_type=$version_type
38420 # Shared library runtime path variable.
38421 runpath_var=$runpath_var
38423 # Shared library path variable.
38424 shlibpath_var=$shlibpath_var
38426 # Is shlibpath searched before the hard-coded library search path?
38427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38429 # Format of library name prefix.
38430 libname_spec=$lt_libname_spec
38432 # List of archive names. First name is the real one, the rest are links.
38433 # The last name is the one that the linker finds with -lNAME
38434 library_names_spec=$lt_library_names_spec
38436 # The coded name of the library, if different from the real name.
38437 soname_spec=$lt_soname_spec
38439 # Permission mode override for installation of shared libraries.
38440 install_override_mode=$lt_install_override_mode
38442 # Command to use after installation of a shared archive.
38443 postinstall_cmds=$lt_postinstall_cmds
38445 # Command to use after uninstallation of a shared archive.
38446 postuninstall_cmds=$lt_postuninstall_cmds
38448 # Commands used to finish a libtool library installation in a directory.
38449 finish_cmds=$lt_finish_cmds
38451 # As "finish_cmds", except a single script fragment to be evaled but
38453 finish_eval=$lt_finish_eval
38455 # Whether we should hardcode library paths into libraries.
38456 hardcode_into_libs=$hardcode_into_libs
38458 # Compile-time system search path for libraries.
38459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38461 # Detected run-time system search path for libraries.
38462 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38464 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38465 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38467 # Whether dlopen is supported.
38468 dlopen_support=$enable_dlopen
38470 # Whether dlopen of programs is supported.
38471 dlopen_self=$enable_dlopen_self
38473 # Whether dlopen of statically linked programs is supported.
38474 dlopen_self_static=$enable_dlopen_self_static
38476 # Commands to strip libraries.
38477 old_striplib=$lt_old_striplib
38478 striplib=$lt_striplib
38481 # The linker used to build libraries.
38484 # How to create reloadable object files.
38485 reload_flag=$lt_reload_flag
38486 reload_cmds=$lt_reload_cmds
38488 # Commands used to build an old-style archive.
38489 old_archive_cmds=$lt_old_archive_cmds
38491 # A language specific compiler.
38494 # Is the compiler the GNU compiler?
38497 # Compiler flag to turn off builtin functions.
38498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38500 # Additional compiler flags for building library objects.
38501 pic_flag=$lt_lt_prog_compiler_pic
38503 # How to pass a linker flag through the compiler.
38504 wl=$lt_lt_prog_compiler_wl
38506 # Compiler flag to prevent dynamic linking.
38507 link_static_flag=$lt_lt_prog_compiler_static
38509 # Does compiler simultaneously support -c and -o options?
38510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38512 # Whether or not to add -lc for building shared libraries.
38513 build_libtool_need_lc=$archive_cmds_need_lc
38515 # Whether or not to disallow shared libs when runtime libs are static.
38516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38518 # Compiler flag to allow reflexive dlopens.
38519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38521 # Compiler flag to generate shared objects directly from archives.
38522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38524 # Whether the compiler copes with passing no objects directly.
38525 compiler_needs_object=$lt_compiler_needs_object
38527 # Create an old-style archive from a shared archive.
38528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38530 # Create a temporary old-style archive to link instead of a shared archive.
38531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38533 # Commands used to build a shared archive.
38534 archive_cmds=$lt_archive_cmds
38535 archive_expsym_cmds=$lt_archive_expsym_cmds
38537 # Commands used to build a loadable module if different from building
38538 # a shared archive.
38539 module_cmds=$lt_module_cmds
38540 module_expsym_cmds=$lt_module_expsym_cmds
38542 # Whether we are building with GNU ld or not.
38543 with_gnu_ld=$lt_with_gnu_ld
38545 # Flag that allows shared libraries with undefined symbols to be built.
38546 allow_undefined_flag=$lt_allow_undefined_flag
38548 # Flag that enforces no undefined symbols.
38549 no_undefined_flag=$lt_no_undefined_flag
38551 # Flag to hardcode \$libdir into a binary during linking.
38552 # This must work even if \$libdir does not exist
38553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38555 # Whether we need a single "-rpath" flag with a separated argument.
38556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38558 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38559 # DIR into the resulting binary.
38560 hardcode_direct=$hardcode_direct
38562 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38563 # DIR into the resulting binary and the resulting library dependency is
38564 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
38565 # library is relocated.
38566 hardcode_direct_absolute=$hardcode_direct_absolute
38568 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38569 # into the resulting binary.
38570 hardcode_minus_L=$hardcode_minus_L
38572 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38573 # into the resulting binary.
38574 hardcode_shlibpath_var=$hardcode_shlibpath_var
38576 # Set to "yes" if building a shared library automatically hardcodes DIR
38577 # into the library and all subsequent libraries and executables linked
38579 hardcode_automatic=$hardcode_automatic
38581 # Set to yes if linker adds runtime paths of dependent libraries
38582 # to runtime path list.
38583 inherit_rpath=$inherit_rpath
38585 # Whether libtool must link a program against all its dependency libraries.
38586 link_all_deplibs=$link_all_deplibs
38588 # Set to "yes" if exported symbols are required.
38589 always_export_symbols=$always_export_symbols
38591 # The commands to list exported symbols.
38592 export_symbols_cmds=$lt_export_symbols_cmds
38594 # Symbols that should not be listed in the preloaded symbols.
38595 exclude_expsyms=$lt_exclude_expsyms
38597 # Symbols that must always be exported.
38598 include_expsyms=$lt_include_expsyms
38600 # Commands necessary for linking programs (against libraries) with templates.
38601 prelink_cmds=$lt_prelink_cmds
38603 # Commands necessary for finishing linking programs.
38604 postlink_cmds=$lt_postlink_cmds
38606 # Specify filename containing input files.
38607 file_list_spec=$lt_file_list_spec
38609 # How to hardcode a shared library path into an executable.
38610 hardcode_action=$hardcode_action
38612 # ### END LIBTOOL CONFIG
38616 cat <<'_LT_EOF' >> "$cfgfile"
38618 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38620 # func_munge_path_list VARIABLE PATH
38621 # -----------------------------------
38622 # VARIABLE is name of variable containing _space_ separated list of
38623 # directories to be munged by the contents of PATH, which is string
38626 # string "DIR[ DIR]" will be prepended to VARIABLE
38628 # string "DIR[ DIR]" will be appended to VARIABLE
38629 # "DIRP[:DIRP]::[DIRA:]DIRA"
38630 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38631 # "DIRA[ DIRA]" will be appended to VARIABLE
38633 # VARIABLE will be replaced by "DIR[ DIR]"
38634 func_munge_path_list ()
38640 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38643 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38646 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38647 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38650 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38656 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38657 func_cc_basename ()
38659 for cc_temp in $*""; do
38661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38667 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38671 # ### END FUNCTIONS SHARED WITH CONFIGURE
38677 cat <<\_LT_EOF
>> "$cfgfile"
38678 # AIX sometimes has problems with the GCC collect2 program. For some
38679 # reason, if we set the COLLECT_NAMES environment variable, the problems
38680 # vanish in a puff of smoke.
38681 if test set != "${COLLECT_NAMES+set}"; then
38683 export COLLECT_NAMES
38690 ltmain
=$ac_aux_dir/ltmain.sh
38693 # We use sed instead of cat because bash on DJGPP gets confused if
38694 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38695 # text mode, it properly converts lines to CR/LF. This bash problem
38696 # is reportedly fixed, but why not run on old versions too?
38697 sed '$q' "$ltmain" >> "$cfgfile" \
38698 ||
(rm -f "$cfgfile"; exit 1)
38700 mv -f "$cfgfile" "$ofile" ||
38701 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38712 ac_clean_files
=$ac_clean_files_save
38714 test $ac_write_fail = 0 ||
38715 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
38718 # configure is writing to config.log, and then calls config.status.
38719 # config.status does its own redirection, appending to config.log.
38720 # Unfortunately, on DOS this fails, as config.log is still kept open
38721 # by configure, so config.status won't be able to write to it; its
38722 # output is simply discarded. So we exec the FD to /dev/null,
38723 # effectively closing config.log, so it can be properly (re)opened and
38724 # appended to by config.status. When coming back to configure, we
38725 # need to make the FD available again.
38726 if test "$no_create" != yes; then
38728 ac_config_status_args
=
38729 test "$silent" = yes &&
38730 ac_config_status_args
="$ac_config_status_args --quiet"
38732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
38734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38735 # would make configure fail if this is the last instruction.
38736 $ac_cs_success || as_fn_exit
1
38738 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
38739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38740 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}